From 7acaaf314148c920393dfbe25423e13d46b298da Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Thu, 23 Apr 2026 05:20:45 -0700 Subject: [PATCH] Update to `4.2.0` --- .github/workflows/build.yml | 10 +- README.md | 5 +- build.gradle | 38 +- .../ActivateFarmElementCsReqOuterClass.java | 30 +- .../ActivateFarmElementScRspOuterClass.java | 260 +- .../proto/ActivityScheduleInfoOuterClass.java | 46 +- .../proto/AddRogueBuffScNotifyOuterClass.java | 394 -- .../AddRogueMiracleScNotifyOuterClass.java | 396 -- .../proto/ApplyFriendCsReqOuterClass.java | 14 +- .../proto/ArchiveDataOuterClass.java | 576 ++- .../proto/AssistMonsterWaveOuterClass.java | 20 +- .../proto/AssistSimpleInfoOuterClass.java | 330 +- .../proto/AvatarExpUpCsReqOuterClass.java | 32 +- .../proto/AvatarExpUpScRspOuterClass.java | 34 +- .../emu/lunarcore/proto/AvatarOuterClass.java | 900 ++-- .../AvatarPathChangedNotifyOuterClass.java | 30 +- .../proto/AvatarPathInfoOuterClass.java | 896 ++++ ...ava => AvatarPathSkillTreeOuterClass.java} | 219 +- ...ava => AvatarReccomendDataOuterClass.java} | 66 +- .../lunarcore/proto/AvatarSyncOuterClass.java | 135 +- .../lunarcore/proto/AvatarTypeOuterClass.java | 107 +- .../proto/BattleAvatarOuterClass.java | 171 +- .../proto/BattlePassInfoNotifyOuterClass.java | 934 ++-- .../proto/BattleRecord1InfoOuterClass.java | 540 +++ .../proto/BattleRecord1OuterClass.java | 361 ++ ...java => BattleRecordAvatarOuterClass.java} | 310 +- .../proto/BattleRecordAvatarsOuterClass.java | 296 ++ .../proto/BattleRecordType2OuterClass.java | 1897 ++++++++ .../proto/BigDataRecommendTypeOuterClass.java | 168 + .../proto/BoardDataSyncOuterClass.java | 307 +- .../lunarcore/proto/BuffInfoOuterClass.java | 288 +- .../proto/BuyGoodsCsReqOuterClass.java | 199 +- .../proto/BuyGoodsScRspOuterClass.java | 176 +- .../ChallengeBossBuffInfoOuterClass.java | 20 +- .../proto/ChallengeBossInfoOuterClass.java | 516 +-- ...llengeBossPhaseSettleNotifyOuterClass.java | 662 +-- ...ChallengeBossSingleNodeInfoOuterClass.java | 202 +- .../proto/ChallengeExtInfoOuterClass.java | 27 +- .../proto/ChallengeInfoOuterClass.java | 620 +-- .../ChallengeLineupNotifyOuterClass.java | 14 +- .../lunarcore/proto/ChallengeOuterClass.java | 205 +- ...PeakGroupDataUpdateScNotifyOuterClass.java | 288 ++ .../ChallengePeakGroupInfoOuterClass.java | 801 ++++ .../ChallengePeakLevelInfoOuterClass.java | 710 +++ .../ChallengePeakMobLineupInfoOuterClass.java | 382 ++ ...ChallengePeakSettleScNotifyOuterClass.java | 1023 +++++ .../proto/ChallengeRewardOuterClass.java | 30 +- .../ChallengeSettleNotifyOuterClass.java | 674 ++- .../ChallengeStoryBuffInfoOuterClass.java | 20 +- .../proto/ChallengeStoryInfoOuterClass.java | 482 +- .../ChangeLineupLeaderCsReqOuterClass.java | 14 +- .../ChangeLineupLeaderScRspOuterClass.java | 30 +- ...ChangePropTimelineInfoCsReqOuterClass.java | 364 ++ ...hangePropTimelineInfoScRspOuterClass.java} | 141 +- .../proto/ChargerInfoOuterClass.java | 166 +- .../proto/ChatContentInfoOuterClass.java | 395 ++ ...ass.java => ChatHeaderInfoOuterClass.java} | 122 +- .../lunarcore/proto/ChatInfoOuterClass.java | 477 ++ .../proto/ChatMsgInfoOuterClass.java | 370 ++ .../emu/lunarcore/proto/ChatOuterClass.java | 644 --- .../proto/ChessRogueAvatarInfoOuterClass.java | 400 -- .../proto/ChessRogueBuffInfoOuterClass.java | 282 -- .../proto/ChessRogueCellInfoOuterClass.java | 393 -- .../proto/ChessRogueCellOuterClass.java | 1184 ----- .../ChessRogueCellUpdateNotifyOuterClass.java | 425 -- .../ChessRogueCurrentInfoOuterClass.java | 1100 ----- .../proto/ChessRogueInfoOuterClass.java | 381 -- .../proto/ChessRogueItemInfoOuterClass.java | 617 --- .../ChessRogueMiracleDataOuterClass.java | 295 -- .../ChessRogueNousDiceInfoOuterClass.java | 541 --- .../proto/ChessRogueNousDiceOuterClass.java | 1369 ------ ...essRogueNousDiceSurfaceInfoOuterClass.java | 342 -- ...ChessRogueNousEditDiceCsReqOuterClass.java | 283 -- ...ChessRogueNousMainStoryInfoOuterClass.java | 361 -- .../ChessRogueNousQueryInfoOuterClass.java | 192 - .../ChessRogueNousStoryInfoOuterClass.java | 942 ---- .../ChessRogueReRollDiceCsReqOuterClass.java | 260 -- .../proto/ChessRogueStartCsReqOuterClass.java | 924 ---- .../proto/ChessRogueStartScRspOuterClass.java | 794 ---- ...ueUpdateActionPointScNotifyOuterClass.java | 266 -- ...teAllowedSelectCellScNotifyOuterClass.java | 388 -- ...RogueUpdateDiceInfoScNotifyOuterClass.java | 285 -- ...siveAccumulateValueScNotifyOuterClass.java | 265 -- ...ogueUpdateMoneyInfoScNotifyOuterClass.java | 286 -- .../ChessRogueVirtualItemInfoOuterClass.java | 518 --- .../ClientMailAttachmentItemOuterClass.java | 14 +- .../lunarcore/proto/ClientMailOuterClass.java | 630 +-- .../proto/ComposeItemCsReqOuterClass.java | 48 +- .../proto/ComposeItemScRspOuterClass.java | 232 +- .../ComposeSelectedRelicCsReqOuterClass.java | 311 +- .../ComposeSelectedRelicScRspOuterClass.java | 190 +- .../proto/ContentPackageDataOuterClass.java | 14 +- .../ContentPackageGetDataScRspOuterClass.java | 32 +- .../proto/ContentPackageInfoOuterClass.java | 30 +- .../proto/ContentPackageStatusOuterClass.java | 52 +- .../CurPetChangedScNotifyOuterClass.java | 42 +- .../CurTrialActivityScNotifyOuterClass.java | 422 ++ .../DailyActiveInfoNotifyOuterClass.java | 150 +- .../proto/DailyActivityInfoOuterClass.java | 62 +- .../DeactivateFarmElementCsReqOuterClass.java | 14 +- .../DeactivateFarmElementScRspOuterClass.java | 164 +- .../proto/DelMailCsReqOuterClass.java | 56 +- .../proto/DelMailScRspOuterClass.java | 36 +- .../proto/DeleteFriendCsReqOuterClass.java | 14 +- ...SocialEventServerCacheCsReqOuterClass.java | 56 +- ...SocialEventServerCacheScRspOuterClass.java | 92 +- .../proto/DeployRotaterCsReqOuterClass.java | 16 +- .../proto/DeployRotaterScRspOuterClass.java | 236 +- .../proto/DestroyItemCsReqOuterClass.java | 56 +- .../proto/DevelopmentTypeOuterClass.java | 18 +- .../proto/DiscardRelicCsReqOuterClass.java | 22 +- .../proto/DispatchTokenOuterClass.java | 1054 +++++ .../DisplayAvatarDetailInfoOuterClass.java | 881 ++-- .../proto/DisplayAvatarOuterClass.java | 164 +- .../proto/DisplayAvatarVecOuterClass.java | 34 +- .../proto/DisplayEquipmentInfoOuterClass.java | 64 +- .../proto/DisplayRelicInfoOuterClass.java | 296 +- .../proto/DoGachaCsReqOuterClass.java | 370 +- .../DoGachaInRollShopCsReqOuterClass.java | 421 -- .../proto/DoGachaScRspOuterClass.java | 445 +- .../proto/DressAvatarCsReqOuterClass.java | 166 +- ...va => DressAvatarSkinCsReqOuterClass.java} | 195 +- .../DressRelicAvatarCsReqOuterClass.java | 34 +- .../EnableRogueTalentCsReqOuterClass.java | 260 -- .../EnhanceRogueBuffCsReqOuterClass.java | 260 -- .../EnhanceRogueBuffScRspOuterClass.java | 442 -- ...EnterMapRotationRegionCsReqOuterClass.java | 16 +- ...EnterMapRotationRegionScRspOuterClass.java | 48 +- .../EnterRogueMapRoomCsReqOuterClass.java | 341 -- .../EnterRogueMapRoomScRspOuterClass.java | 542 --- .../EnterSceneByServerScNotifyOuterClass.java | 230 +- .../proto/EnterSceneCsReqOuterClass.java | 30 +- .../proto/EnteredSceneInfoOuterClass.java | 166 +- .../proto/EntityBuffChangeInfoOuterClass.java | 192 +- .../proto/EntityMotionOuterClass.java | 48 +- .../lunarcore/proto/EquipRelicOuterClass.java | 30 +- .../lunarcore/proto/EquipmentOuterClass.java | 664 +-- .../ExchangeGachaCeilingCsReqOuterClass.java | 166 +- .../ExchangeGachaCeilingScRspOuterClass.java | 254 +- .../proto/ExchangeHcoinCsReqOuterClass.java | 14 +- .../proto/ExchangeHcoinScRspOuterClass.java | 162 +- .../proto/ExpUpEquipmentCsReqOuterClass.java | 32 +- .../proto/ExpUpEquipmentScRspOuterClass.java | 54 +- .../proto/ExpUpRelicCsReqOuterClass.java | 32 +- .../proto/ExpUpRelicScRspOuterClass.java | 14 +- .../proto/ExtraLineupTypeOuterClass.java | 94 +- .../proto/FarmStageGachaInfoOuterClass.java | 46 +- .../proto/FeatureSwitchInfoOuterClass.java | 490 ++ ...java => FeatureSwitchParamOuterClass.java} | 152 +- .../proto/FeatureSwitchTypeOuterClass.java | 1351 ++++++ .../proto/FinishQuestCsReqOuterClass.java | 422 ++ ...s.java => FinishQuestScRspOuterClass.java} | 76 +- ...nishRogueDialogueGroupCsReqOuterClass.java | 343 -- ...> FinishTutorialGuideCsReqOuterClass.java} | 124 +- ...> FinishTutorialGuideScRspOuterClass.java} | 275 +- .../proto/FirstNpcTalkInfoOuterClass.java | 97 +- .../proto/FriendApplyInfoOuterClass.java | 24 +- .../FriendBattleRecordType1OuterClass.java | 477 ++ ...=> FriendBattleRecordType2OuterClass.java} | 159 +- .../proto/FriendChallengeInfoOuterClass.java | 562 +++ .../FriendDevelopmentInfoOuterClass.java | 750 ++++ .../proto/FriendListInfoOuterClass.java | 78 +- .../proto/FriendRecommendInfoOuterClass.java | 57 +- .../proto/GachaCeilingOuterClass.java | 34 +- .../lunarcore/proto/GachaInfoOuterClass.java | 569 +-- .../lunarcore/proto/GachaItemOuterClass.java | 354 +- .../lunarcore/proto/GateserverOuterClass.java | 1837 ++++---- ...ActivityScheduleConfigScRspOuterClass.java | 34 +- .../GetAllLineupDataScRspOuterClass.java | 190 +- .../proto/GetArchiveDataScRspOuterClass.java | 32 +- ...a => GetAssistHistoryScRspOuterClass.java} | 58 +- .../proto/GetAvatarDataCsReqOuterClass.java | 22 +- .../proto/GetAvatarDataScRspOuterClass.java | 528 ++- .../proto/GetBagScRspOuterClass.java | 334 +- .../proto/GetBasicInfoScRspOuterClass.java | 614 +-- ...GetBigDataAllRecommendCsReqOuterClass.java | 295 ++ ...GetBigDataAllRecommendScRspOuterClass.java | 581 +++ .../GetBigDataRecommendCsReqOuterClass.java | 375 ++ .../GetBigDataRecommendScRspOuterClass.java | 536 +++ ...llengeGroupStatisticsCsReqOuterClass.java} | 171 +- ...allengeGroupStatisticsScRspOuterClass.java | 486 ++ .../GetChallengePeakDataScRspOuterClass.java | 459 ++ .../proto/GetChallengeScRspOuterClass.java | 54 +- ...hessRogueNousStoryInfoScRspOuterClass.java | 498 --- ....java => GetCrossInfoScRspOuterClass.java} | 123 +- .../proto/GetCurChallengeScRspOuterClass.java | 32 +- .../GetCurLineupDataScRspOuterClass.java | 32 +- .../proto/GetCurSceneInfoScRspOuterClass.java | 32 +- .../GetDailyActiveInfoScRspOuterClass.java | 92 +- .../proto/GetEnteredSceneScRspOuterClass.java | 34 +- .../GetExpeditionDataScRspOuterClass.java | 759 ++++ .../GetFarmStageGachaInfoScRspOuterClass.java | 34 +- ...stTalkByPerformanceNpcCsReqOuterClass.java | 20 +- ...stTalkByPerformanceNpcScRspOuterClass.java | 20 +- .../proto/GetFirstTalkNpcCsReqOuterClass.java | 20 +- .../proto/GetFirstTalkNpcScRspOuterClass.java | 34 +- ...GetFriendApplyListInfoScRspOuterClass.java | 34 +- ...iendBattleRecordDetailCsReqOuterClass.java | 479 ++ ...iendBattleRecordDetailScRspOuterClass.java | 582 +++ ...tFriendChallengeLineupCsReqOuterClass.java | 262 ++ ...tFriendChallengeLineupScRspOuterClass.java | 500 +++ ...FriendDevelopmentInfoCsReqOuterClass.java} | 125 +- ...tFriendDevelopmentInfoScRspOuterClass.java | 460 ++ .../GetFriendListInfoScRspOuterClass.java | 34 +- .../GetFriendLoginInfoScRspOuterClass.java | 62 +- ...riendRecommendListInfoScRspOuterClass.java | 70 +- .../proto/GetGachaCeilingCsReqOuterClass.java | 14 +- .../proto/GetGachaCeilingScRspOuterClass.java | 48 +- .../proto/GetGachaInfoScRspOuterClass.java | 162 +- .../GetHeroBasicTypeInfoScRspOuterClass.java | 727 --- .../proto/GetJukeboxDataScRspOuterClass.java | 106 +- ...> GetLineupAvatarDataScRspOuterClass.java} | 171 +- .../proto/GetMailScRspOuterClass.java | 72 +- ...MainMissionCustomValueCsReqOuterClass.java | 303 ++ ...ainMissionCustomValueScRspOuterClass.java} | 171 +- ....java => GetMarkChestScRspOuterClass.java} | 155 +- .../proto/GetMissionDataScRspOuterClass.java | 571 +++ .../GetMissionEventDataScRspOuterClass.java | 464 ++ .../GetMissionStatusCsReqOuterClass.java | 165 +- .../GetMissionStatusScRspOuterClass.java | 622 +-- ...GetMultiPathAvatarInfoScRspOuterClass.java | 974 ---- .../GetNpcTakenRewardCsReqOuterClass.java | 14 +- .../GetNpcTakenRewardScRspOuterClass.java | 30 +- ...va => GetOfferingInfoCsReqOuterClass.java} | 148 +- ...va => GetOfferingInfoScRspOuterClass.java} | 170 +- .../proto/GetPamSkinDataScRspOuterClass.java | 462 ++ .../proto/GetPetDataScRspOuterClass.java | 52 +- .../proto/GetPhoneDataScRspOuterClass.java | 520 ++- .../GetPlayerBoardDataScRspOuterClass.java | 254 +- .../GetPlayerDetailInfoCsReqOuterClass.java | 14 +- .../GetPlayerDetailInfoScRspOuterClass.java | 32 +- .../GetPrivateChatHistoryCsReqOuterClass.java | 30 +- .../GetPrivateChatHistoryScRspOuterClass.java | 220 +- .../proto/GetQuestDataScRspOuterClass.java | 50 +- .../GetRechargeGiftInfoScRspOuterClass.java | 259 ++ .../proto/GetRollShopInfoCsReqOuterClass.java | 260 -- .../proto/GetSceneMapInfoCsReqOuterClass.java | 97 +- .../proto/GetSceneMapInfoScRspOuterClass.java | 102 +- .../proto/GetShopListCsReqOuterClass.java | 14 +- .../proto/GetShopListScRspOuterClass.java | 30 +- ...ocialEventServerCacheScRspOuterClass.java} | 172 +- ...a => GetTutorialGuideScRspOuterClass.java} | 158 +- ...s.java => GetTutorialScRspOuterClass.java} | 168 +- .../GetUnlockTeleportCsReqOuterClass.java | 20 +- .../GetUnlockTeleportScRspOuterClass.java | 36 +- .../emu/lunarcore/proto/GoodsOuterClass.java | 62 +- .../GroupStateChangeCsReqOuterClass.java | 16 +- .../GroupStateChangeScNotifyOuterClass.java | 74 +- .../GroupStateChangeScRspOuterClass.java | 52 +- .../proto/GroupStateInfoOuterClass.java | 372 +- .../proto/HandleFriendCsReqOuterClass.java | 30 +- .../proto/HandleFriendScRspOuterClass.java | 64 +- ...gueCommonPendingActionCsReqOuterClass.java | 733 --- ...gueCommonPendingActionScRspOuterClass.java | 838 ---- .../proto/HeadIconFrameInfoOuterClass.java | 260 ++ .../lunarcore/proto/HeadIconOuterClass.java | 14 +- .../proto/InteractChargerCsReqOuterClass.java | 16 +- .../proto/InteractChargerScRspOuterClass.java | 220 +- .../proto/InteractPropCsReqOuterClass.java | 166 +- .../proto/InteractPropScRspOuterClass.java | 66 +- .../proto/ItemCostListOuterClass.java | 18 +- .../lunarcore/proto/ItemCostOuterClass.java | 32 +- .../lunarcore/proto/ItemListOuterClass.java | 18 +- .../emu/lunarcore/proto/ItemOuterClass.java | 714 +-- .../proto/JoinLineupCsReqOuterClass.java | 608 +-- .../proto/LANBPBBAJLMOuterClass.java | 280 -- .../proto/LLJFPKKLGAKOuterClass.java | 381 -- .../proto/LeaveRogueScRspOuterClass.java | 563 --- .../proto/LineupAvatarDataOuterClass.java | 453 ++ .../proto/LineupAvatarOuterClass.java | 230 +- .../lunarcore/proto/LineupInfoOuterClass.java | 364 +- .../proto/LineupSlotDataOuterClass.java | 186 +- .../proto/LockEquipmentCsReqOuterClass.java | 36 +- .../proto/LockEquipmentScRspOuterClass.java | 14 +- .../proto/LockRelicCsReqOuterClass.java | 36 +- .../proto/LockRelicScRspOuterClass.java | 97 +- .../proto/MECNPEEJJDEOuterClass.java | 278 -- ... => MainMissionCustomValueOuterClass.java} | 372 +- ...ss.java => MainMissionDataOuterClass.java} | 261 +- .../proto/MapInfoGroupOuterClass.java | 1013 +++++ ...ass.java => MapPropDefInfoOuterClass.java} | 317 +- .../proto/MapPropInfoOuterClass.java | 522 +++ .../proto/MarkAvatarCsReqOuterClass.java | 30 +- .../proto/MarkAvatarScRspOuterClass.java | 30 +- ...> MarkChestChangedScNotifyOuterClass.java} | 147 +- .../proto/MarkChestInfoOuterClass.java | 375 ++ .../proto/MarkReadMailCsReqOuterClass.java | 14 +- .../proto/MarkReadMailScRspOuterClass.java | 162 +- .../lunarcore/proto/MaterialOuterClass.java | 30 +- .../proto/MaterialSubmitInfoOuterClass.java | 502 +++ .../lunarcore/proto/MazeChestOuterClass.java | 46 +- .../proto/MazeMapDataOuterClass.java | 1006 ----- .../MissionCustomValueDataOuterClass.java | 14 +- .../lunarcore/proto/MissionOuterClass.java | 170 +- .../MissionStatusBySceneInfoOuterClass.java | 861 ++++ .../proto/MissionSyncOuterClass.java | 48 +- .../proto/MonsterArchiveOuterClass.java | 16 +- .../lunarcore/proto/MotionInfoOuterClass.java | 208 +- .../proto/MultiPathAvatarInfoOuterClass.java | 357 +- .../proto/MultiPathAvatarTypeOuterClass.java | 58 +- .../proto/NewMailScNotifyOuterClass.java | 20 +- .../NpcDialogueEventParamOuterClass.java | 166 +- .../proto/NpcExtraInfoOuterClass.java | 109 +- .../proto/NpcRogueInfoOuterClass.java | 1307 ------ .../proto/NpcTalkInfoOuterClass.java | 14 +- .../proto/OfferingInfoOuterClass.java | 874 ++++ .../proto/OfferingStateOuterClass.java | 128 + .../proto/PVEBattleResultCsReqOuterClass.java | 538 +-- .../proto/PVEBattleResultScRspOuterClass.java | 1087 ++--- .../proto/PickRogueAvatarScRspOuterClass.java | 301 -- .../lunarcore/proto/PileItemOuterClass.java | 166 +- .../PlayBackGroundMusicCsReqOuterClass.java | 42 +- .../PlayBackGroundMusicScRspOuterClass.java | 268 +- .../PlayerChallengeDetailInfoOuterClass.java | 1258 ++++++ .../proto/PlayerDetailInfoOuterClass.java | 1078 +++-- .../proto/PlayerDisplayInfoOuterClass.java | 928 ++++ .../PlayerDisplaySettingsOuterClass.java | 290 +- .../proto/PlayerGetTokenCsReqOuterClass.java | 254 +- .../proto/PlayerGetTokenScRspOuterClass.java | 226 +- .../proto/PlayerHeartbeatCsReqOuterClass.java | 76 +- .../proto/PlayerHeartbeatScRspOuterClass.java | 116 +- .../proto/PlayerLoginScRspOuterClass.java | 106 +- .../proto/PlayerMocDisplayInfoOuterClass.java | 582 +++ ...s.java => PlayerOutfitInfoOuterClass.java} | 148 +- .../proto/PlayerRecordInfoOuterClass.java | 534 +-- .../proto/PlayerSettingInfoOuterClass.java | 2067 +++++++-- ...s.java => PlayerSimpleInfoOuterClass.java} | 1354 +++--- .../proto/PlayerSyncScNotifyOuterClass.java | 1031 +++-- .../proto/PlayingStateOuterClass.java | 18 +- .../lunarcore/proto/ProductOuterClass.java | 1363 ++++++ .../proto/PromoteAvatarCsReqOuterClass.java | 34 +- .../PromoteEquipmentCsReqOuterClass.java | 32 +- .../proto/PropAeonInfoOuterClass.java | 421 -- .../proto/PropExtraInfoOuterClass.java | 116 +- .../proto/PropRogueInfoOuterClass.java | 340 -- .../proto/PropTimelineInfoOuterClass.java | 383 ++ .../QueryProductInfoScRspOuterClass.java | 617 +++ .../emu/lunarcore/proto/QuestOuterClass.java | 185 +- .../QuickStartCocoonStageCsReqOuterClass.java | 502 +++ ...QuickStartCocoonStageScRspOuterClass.java} | 527 +-- .../QuickStartFarmElementCsReqOuterClass.java | 422 ++ ...QuickStartFarmElementScRspOuterClass.java} | 366 +- .../proto/QuitLineupCsReqOuterClass.java | 458 +- .../proto/RankUpAvatarCsReqOuterClass.java | 190 +- .../proto/RankUpEquipmentCsReqOuterClass.java | 32 +- ...eEnterLastElementStageCsReqOuterClass.java | 14 +- ...eEnterLastElementStageScRspOuterClass.java | 190 +- .../proto/RecallPetCsReqOuterClass.java | 14 +- .../proto/RecallPetScRspOuterClass.java | 217 +- ...RefreshTriggerByClientCsReqOuterClass.java | 54 +- ...reshTriggerByClientScNotifyOuterClass.java | 68 +- ...RefreshTriggerByClientScRspOuterClass.java | 68 +- .../proto/RelicArchiveOuterClass.java | 30 +- .../RelicAvatarRecommendScRspOuterClass.java | 543 --- .../emu/lunarcore/proto/RelicOuterClass.java | 893 ++-- .../lunarcore/proto/RelicParamOuterClass.java | 30 +- ...java => RelicReccomendDataOuterClass.java} | 66 +- .../RelicReforgeConfirmCsReqOuterClass.java | 341 ++ .../proto/RelicReforgeCsReqOuterClass.java | 341 ++ ...java => RelicSmartSuitPlanOuterClass.java} | 192 +- ...cSmartWearGetPinRelicCsReqOuterClass.java} | 124 +- ...icSmartWearGetPinRelicScRspOuterClass.java | 492 ++ ...RelicSmartWearGetPlanCsReqOuterClass.java} | 76 +- .../RelicSmartWearGetPlanScRspOuterClass.java | 457 ++ .../proto/RemoveRotaterCsReqOuterClass.java | 16 +- .../proto/RemoveRotaterScRspOuterClass.java | 224 +- .../proto/ReplaceLineupCsReqOuterClass.java | 240 +- ...ReserveStaminaExchangeCsReqOuterClass.java | 14 +- ...ReserveStaminaExchangeScRspOuterClass.java | 30 +- .../proto/RevcMsgScNotifyOuterClass.java | 456 +- .../RogueAchivedMiracleInfoOuterClass.java | 457 -- .../proto/RogueActionOuterClass.java | 558 --- .../RogueActionResultDataOuterClass.java | 797 ---- .../proto/RogueActionResultOuterClass.java | 395 -- .../proto/RogueAeonInfoOuterClass.java | 543 --- .../lunarcore/proto/RogueAeonOuterClass.java | 421 -- .../proto/RogueAreaInfoOuterClass.java | 293 -- .../lunarcore/proto/RogueAreaOuterClass.java | 664 --- .../proto/RogueAreaStatusOuterClass.java | 154 - .../proto/RogueAvatarInfoOuterClass.java | 301 -- .../RogueAvatarReviveCostOuterClass.java | 281 -- .../proto/RogueBonusSelectOuterClass.java | 174 - .../proto/RogueBuffDataOuterClass.java | 339 -- .../proto/RogueBuffEnhanceInfoOuterClass.java | 444 -- .../proto/RogueBuffInfoOuterClass.java | 293 -- .../proto/RogueBuffSelectInfoOuterClass.java | 1138 ----- .../proto/RogueBuffSourceOuterClass.java | 250 -- ...mmonActionResultDisplayTypeOuterClass.java | 133 - .../proto/RogueCommonBuffOuterClass.java | 341 -- .../RogueCommonBuffSelectInfoOuterClass.java | 1405 ------ ...RogueCommonBuffSelectResultOuterClass.java | 261 -- ...RogueCommonBuffSelectSourceOuterClass.java | 169 - ...ogueCommonDialogueBasicInfoOuterClass.java | 343 -- ...RogueCommonDialogueDataInfoOuterClass.java | 483 -- .../RogueCommonDialogueInfoOuterClass.java | 331 -- ...logueOptionBattleResultInfoOuterClass.java | 266 -- ...onDialogueOptionDisplayInfoOuterClass.java | 348 -- ...gueCommonDialogueOptionInfoOuterClass.java | 728 --- ...monDialogueOptionResultInfoOuterClass.java | 325 -- .../RogueCommonPendingActionOuterClass.java | 362 -- .../RogueCurVirtualItemInfoOuterClass.java | 341 -- .../proto/RogueCurrentInfoOuterClass.java | 1054 ----- .../proto/RogueDialogueEventOuterClass.java | 743 --- .../RogueDialogueEventParamOuterClass.java | 584 --- .../proto/RogueFinishInfoOuterClass.java | 1081 ----- .../proto/RogueHandbookAeonOuterClass.java | 800 ---- .../proto/RogueHandbookDataOuterClass.java | 646 --- .../proto/RogueHandbookMiracleOuterClass.java | 341 -- .../proto/RogueInfoDataOuterClass.java | 691 --- .../lunarcore/proto/RogueInfoOuterClass.java | 382 -- .../proto/RogueMapInfoOuterClass.java | 617 --- .../proto/RogueMiracleDataInfoOuterClass.java | 939 ---- .../proto/RogueMiracleDataOuterClass.java | 281 -- .../proto/RogueMiracleInfoDataOuterClass.java | 458 -- .../proto/RogueMiracleInfoOuterClass.java | 282 -- .../proto/RogueMiracleOuterClass.java | 878 ---- .../RogueMiracleSelectInfoOuterClass.java | 530 --- .../proto/RogueMiracleSourceOuterClass.java | 295 -- .../RogueNpcDisappearCsReqOuterClass.java | 260 -- .../proto/RogueRecordInfoOuterClass.java | 532 --- .../proto/RogueRerollBuffOuterClass.java | 283 -- .../lunarcore/proto/RogueRoomOuterClass.java | 479 -- .../proto/RogueRoomStatusOuterClass.java | 158 - .../proto/RogueScoreRewardInfoOuterClass.java | 826 ---- .../proto/RogueSeasonInfoOuterClass.java | 422 -- .../proto/RogueStatusOuterClass.java | 168 - .../RogueSyncContextBoardEventOuterClass.java | 341 -- .../proto/RogueTalentInfoOuterClass.java | 294 -- .../proto/RogueTalentOuterClass.java | 491 -- .../proto/RogueTalentStatusOuterClass.java | 130 - .../proto/RogueUnlockProgressOuterClass.java | 420 -- .../proto/RogueVirtualItemInfoOuterClass.java | 280 -- .../proto/RollRogueBuffScRspOuterClass.java | 362 -- .../proto/RotateMapCsReqOuterClass.java | 452 +- .../proto/RotateMapScRspOuterClass.java | 190 +- .../proto/RotaterDataOuterClass.java | 176 +- .../proto/RotatorEnergyInfoOuterClass.java | 70 +- .../proto/SceneActorInfoOuterClass.java | 300 +- .../proto/SceneBattleInfoOuterClass.java | 742 +-- .../SceneCastSkillCostMpCsReqOuterClass.java | 150 +- .../SceneCastSkillCostMpScRspOuterClass.java | 158 +- .../proto/SceneCastSkillCsReqOuterClass.java | 278 +- ...neCastSkillMpUpdateScNotifyOuterClass.java | 30 +- .../proto/SceneCastSkillScRspOuterClass.java | 48 +- .../proto/SceneEnterStageCsReqOuterClass.java | 14 +- .../proto/SceneEnterStageScRspOuterClass.java | 32 +- .../proto/SceneEntityGroupInfoOuterClass.java | 531 ++- .../proto/SceneEntityInfoOuterClass.java | 682 +-- .../proto/SceneEntityMoveCsReqOuterClass.java | 20 +- .../SceneEntityMoveScNotifyOuterClass.java | 208 +- .../SceneEntityRefreshInfoOuterClass.java | 32 +- .../SceneEntityTeleportCsReqOuterClass.java | 32 +- .../SceneEntityTeleportScRspOuterClass.java | 190 +- .../SceneGroupRefreshInfoOuterClass.java | 323 +- .../SceneGroupRefreshScNotifyOuterClass.java | 115 +- .../proto/SceneGroupStateOuterClass.java | 184 +- .../proto/SceneIdentifierInfoOuterClass.java | 422 ++ .../lunarcore/proto/SceneInfoOuterClass.java | 1049 +++-- .../proto/SceneMapInfoOuterClass.java | 1740 +++++++ ...a => SceneMonsterExtraInfoOuterClass.java} | 58 +- .../proto/SceneMonsterOuterClass.java | 261 +- .../proto/SceneMonsterWaveOuterClass.java | 424 +- .../SceneMonsterWaveParamOuterClass.java | 14 +- .../proto/SceneNpcInfoOuterClass.java | 18 +- .../proto/SceneNpcMonsterInfoOuterClass.java | 218 +- .../ScenePlaneEventScNotifyOuterClass.java | 40 +- .../proto/ScenePropInfoOuterClass.java | 272 +- .../proto/SceneSummonUnitInfoOuterClass.java | 312 +- .../proto/SearchPlayerCsReqOuterClass.java | 20 +- .../proto/SearchPlayerScRspOuterClass.java | 46 +- .../SelectChatBubbleCsReqOuterClass.java | 14 +- .../SelectChatBubbleScRspOuterClass.java | 104 +- ...SelectInclinationTextCsReqOuterClass.java} | 124 +- .../SelectInclinationTextScRspOuterClass.java | 340 ++ ...java => SelectPamSkinCsReqOuterClass.java} | 120 +- .../proto/SelectPamSkinScRspOuterClass.java | 421 ++ .../SelectPhoneThemeCsReqOuterClass.java | 14 +- .../SelectPhoneThemeScRspOuterClass.java | 112 +- ...ueCommonDialogueOptionCsReqOuterClass.java | 347 -- ...ueCommonDialogueOptionScRspOuterClass.java | 734 --- ...lectRogueDialogueEventCsReqOuterClass.java | 343 -- ...lectRogueDialogueEventScRspOuterClass.java | 548 --- .../proto/SellItemCsReqOuterClass.java | 32 +- .../proto/SellItemScRspOuterClass.java | 32 +- .../proto/SendMsgCsReqOuterClass.java | 442 +- .../proto/ServerAnnounceNotifyOuterClass.java | 1271 ++++++ .../proto/ServerPrefsOuterClass.java | 36 +- .../proto/SetAssistAvatarCsReqOuterClass.java | 36 +- .../proto/SetAssistAvatarScRspOuterClass.java | 52 +- .../SetAvatarEnhancedIdCsReqOuterClass.java | 341 ++ ...> SetAvatarEnhancedIdScRspOuterClass.java} | 144 +- .../proto/SetAvatarPathCsReqOuterClass.java | 14 +- .../proto/SetAvatarPathScRspOuterClass.java | 16 +- ...ngePeakMobLineupAvatarCsReqOuterClass.java | 385 ++ ...ngePeakMobLineupAvatarScRspOuterClass.java | 265 ++ .../proto/SetClientPausedCsReqOuterClass.java | 14 +- .../proto/SetClientPausedScRspOuterClass.java | 30 +- .../SetDisplayAvatarCsReqOuterClass.java | 18 +- .../SetDisplayAvatarScRspOuterClass.java | 34 +- .../proto/SetFriendMarkCsReqOuterClass.java | 30 +- .../proto/SetFriendMarkScRspOuterClass.java | 46 +- .../SetGameplayBirthdayCsReqOuterClass.java | 14 +- .../SetGameplayBirthdayScRspOuterClass.java | 156 +- ...SetGroupCustomSaveDataCsReqOuterClass.java | 92 +- ...SetGroupCustomSaveDataScRspOuterClass.java | 352 +- .../proto/SetHeadIconCsReqOuterClass.java | 14 +- .../proto/SetHeadIconScRspOuterClass.java | 158 +- .../proto/SetLineupNameCsReqOuterClass.java | 36 +- .../proto/SetLineupNameScRspOuterClass.java | 192 +- .../proto/SetNicknameCsReqOuterClass.java | 20 +- ...va => SetPlayerOutfitCsReqOuterClass.java} | 134 +- .../proto/SetSignatureScRspOuterClass.java | 36 +- ...va => SetTrainWorldIdCsReqOuterClass.java} | 120 +- ...va => SetTrainWorldIdScRspOuterClass.java} | 128 +- .../emu/lunarcore/proto/ShopOuterClass.java | 412 +- .../proto/SimpleAvatarInfoOuterClass.java | 373 ++ .../SocialEventServerCacheOuterClass.java | 502 +++ .../proto/StageMergedInfoOuterClass.java | 542 +++ .../proto/StaminaInfoScNotifyOuterClass.java | 332 +- .../proto/StartChallengeCsReqOuterClass.java | 294 +- .../StartChallengePeakCsReqOuterClass.java | 382 ++ .../proto/StartChallengeScRspOuterClass.java | 70 +- ...StartChallengeStoryBuffInfoOuterClass.java | 30 +- .../StartChallengeStoryInfoOuterClass.java | 216 +- .../StartCocoonStageCsReqOuterClass.java | 407 +- .../StartCocoonStageScRspOuterClass.java | 388 +- ...rtNewChallengeStoryBuffInfoOuterClass.java | 160 +- .../StartPartialChallengeCsReqOuterClass.java | 190 +- .../StartPartialChallengeScRspOuterClass.java | 218 +- .../proto/StartRogueCsReqOuterClass.java | 463 -- .../proto/StartRogueScRspOuterClass.java | 563 --- ...=> StartTrialActivityCsReqOuterClass.java} | 120 +- .../StartTrialActivityScRspOuterClass.java | 340 ++ .../proto/SummonPetCsReqOuterClass.java | 14 +- .../proto/SummonPetScRspOuterClass.java | 247 +- .../proto/SwapLineupCsReqOuterClass.java | 302 +- .../proto/SwitchHandDataOuterClass.java | 644 +++ ...a => SwitchHandFinishScRspOuterClass.java} | 154 +- .../proto/SwitchHandOpDataOuterClass.java | 423 ++ .../proto/SwitchHandOpPropTypeOuterClass.java | 130 + .../SwitchHandUpdateCsReqOuterClass.java | 440 ++ ...a => SwitchHandUpdateScRspOuterClass.java} | 282 +- .../SwitchLineupIndexCsReqOuterClass.java | 14 +- .../SwitchLineupIndexScRspOuterClass.java | 16 +- .../SyncApplyFriendScNotifyOuterClass.java | 16 +- ...ChessRogueNousValueScNotifyOuterClass.java | 283 -- .../SyncClientResVersionCsReqOuterClass.java | 14 +- .../SyncClientResVersionScRspOuterClass.java | 16 +- .../SyncDeleteFriendScNotifyOuterClass.java | 14 +- ...ntityBuffChangeListScNotifyOuterClass.java | 18 +- .../SyncHandleFriendScNotifyOuterClass.java | 48 +- .../proto/SyncLineupNotifyOuterClass.java | 38 +- .../lunarcore/proto/SyncReasonOuterClass.java | 160 - ...RogueBuffSelectInfoScNotifyOuterClass.java | 284 -- ...eCommonActionResultScNotifyOuterClass.java | 500 --- ...eCommonDialogueDataScNotifyOuterClass.java | 304 -- ...ialogueOptionFinishScNotifyOuterClass.java | 556 --- ...CommonPendingActionScNotifyOuterClass.java | 371 -- ...ueDialogueEventDataScNotifyOuterClass.java | 303 -- .../SyncRogueMapRoomScNotifyOuterClass.java | 362 -- ...ueMiracleSelectInfoScNotifyOuterClass.java | 287 -- .../SyncRogueStatusScNotifyOuterClass.java | 293 -- ...ogueVirtualItemInfoScNotifyOuterClass.java | 285 -- .../TakeChallengeRewardCsReqOuterClass.java | 42 +- .../TakeChallengeRewardScRspOuterClass.java | 246 +- .../TakeMailAttachmentCsReqOuterClass.java | 92 +- .../TakeMailAttachmentScRspOuterClass.java | 54 +- ... => TakeOffAvatarSkinCsReqOuterClass.java} | 76 +- .../TakeOffEquipmentCsReqOuterClass.java | 14 +- .../proto/TakeOffRelicCsReqOuterClass.java | 36 +- .../TakePromotionRewardCsReqOuterClass.java | 164 +- .../TakePromotionRewardScRspOuterClass.java | 32 +- .../TakenChallengeRewardInfoOuterClass.java | 89 +- .../proto/TextJoinInfoOuterClass.java | 58 +- .../proto/TextJoinQueryCsReqOuterClass.java | 56 +- .../proto/TextJoinQueryScRspOuterClass.java | 70 +- .../proto/TrialActivityStatusOuterClass.java | 116 + .../proto/TutorialGuideOuterClass.java | 371 ++ .../lunarcore/proto/TutorialOuterClass.java | 371 ++ .../proto/TutorialStatusOuterClass.java | 130 + .../UnlockAvatarPathCsReqOuterClass.java | 294 ++ .../UnlockAvatarPathScRspOuterClass.java | 598 +++ ...> UnlockAvatarSkinScNotifyOuterClass.java} | 124 +- .../UnlockBackGroundMusicCsReqOuterClass.java | 20 +- .../UnlockBackGroundMusicScRspOuterClass.java | 56 +- .../UnlockChatBubbleScNotifyOuterClass.java | 14 +- ...=> UnlockPhoneCaseScNotifyOuterClass.java} | 124 +- .../UnlockPhoneThemeScNotifyOuterClass.java | 14 +- .../proto/UnlockSkilltreeCsReqOuterClass.java | 50 +- .../proto/UnlockSkilltreeScRspOuterClass.java | 216 +- ...ava => UnlockTutorialCsReqOuterClass.java} | 123 +- ...ava => UnlockTutorialScRspOuterClass.java} | 137 +- .../proto/UnlockedMusicOuterClass.java | 172 +- .../proto/UpdateEnergyScNotifyOuterClass.java | 16 +- ...UpdateFeatureSwitchScNotifyOuterClass.java | 298 ++ .../UpdateGroupPropertyCsReqOuterClass.java | 553 +++ .../UpdateGroupPropertyScRspOuterClass.java | 825 ++++ .../proto/UpdateMarkChestCsReqOuterClass.java | 458 ++ ...va => UpdateMarkChestScRspOuterClass.java} | 403 +- .../UpdateServerPrefsDataCsReqOuterClass.java | 16 +- .../UpdateServerPrefsDataScRspOuterClass.java | 164 +- .../proto/UseItemCsReqOuterClass.java | 304 +- .../proto/UseItemScRspOuterClass.java | 314 +- .../emu/lunarcore/proto/VectorOuterClass.java | 236 +- src/main/java/emu/lunarcore/Config.java | 6 + .../java/emu/lunarcore/GameConstants.java | 24 +- src/main/java/emu/lunarcore/LunarCore.java | 6 +- .../emu/lunarcore/command/CommandArgs.java | 15 +- .../command/commands/BuildAvatarCommand.java | 196 + .../command/commands/ClearCommand.java | 12 +- .../command/commands/HealCommand.java | 2 + .../command/commands/RefillMPCommand.java | 5 +- .../command/commands/TeleportCommand.java | 23 + .../java/emu/lunarcore/data/GameData.java | 276 +- .../java/emu/lunarcore/data/GameDepot.java | 49 +- .../java/emu/lunarcore/data/GameResource.java | 19 - .../lunarcore/data/ResourceDeserializers.java | 10 +- .../emu/lunarcore/data/ResourceLoader.java | 352 +- .../data/common/ExcelMonsterParam.java | 16 + .../emu/lunarcore/data/config/FloorInfo.java | 71 +- .../emu/lunarcore/data/config/GroupInfo.java | 30 +- .../config/LevelGroupMissionCondition.java | 25 + .../data/config/LoadConditionInfo.java | 11 + .../lunarcore/data/config/MissionInfo.java | 101 + .../data/config/MissionTaskInfo.java | 54 + .../lunarcore/data/config/MonsterInfo.java | 1 + .../emu/lunarcore/data/config/NpcInfo.java | 1 + .../emu/lunarcore/data/config/PropInfo.java | 2 + .../data/config/SkillAbilityInfo.java | 4 +- .../lunarcore/data/config/SummonUnitInfo.java | 8 +- .../emu/lunarcore/data/config/TaskInfo.java | 5 + .../rogue/RogueDialogueBaseConfigInfo.java | 19 - .../rogue/RogueDialogueEventConfigInfo.java | 14 - .../RogueDialogueEventOptionConfigInfo.java | 22 - ...eDialogueEventOptionDynamicConfigInfo.java | 9 - .../data/config/rogue/RogueNPCConfigInfo.java | 13 - .../rogue/RogueNPCDialogueConfigInfo.java | 7 - .../data/custom/ActivityScheduleData.java | 11 - .../data/excel/ActivityPanelExcel.java | 4 +- .../lunarcore/data/excel/AvatarDemoExcel.java | 50 + .../data/excel/AvatarEnhanceExcel.java | 27 + .../emu/lunarcore/data/excel/AvatarExcel.java | 23 +- .../data/excel/AvatarExpItemExcel.java | 6 +- .../data/excel/AvatarGlobalBuffExcel.java | 23 + .../data/excel/AvatarPromotionExcel.java | 19 +- .../lunarcore/data/excel/AvatarRankExcel.java | 8 +- .../data/excel/AvatarRelicRecommendExcel.java | 53 + .../data/excel/AvatarSkillTreeExcel.java | 35 +- .../lunarcore/data/excel/AvatarSkinExcel.java | 17 + .../data/excel/BackGroundMusicExcel.java | 4 +- .../data/excel/BattleEventDataExcel.java | 28 +- .../data/excel/ChallengeBossExtraExcel.java | 6 +- .../lunarcore/data/excel/ChallengeExcel.java | 37 +- .../data/excel/ChallengeGroupExcel.java | 4 +- .../data/excel/ChallengePeakExcel.java | 17 + .../data/excel/ChallengePeakGroupExcel.java | 19 + .../data/excel/ChallengeRewardExcel.java | 10 +- .../data/excel/ChallengeStoryExtraExcel.java | 6 +- .../data/excel/ChallengeTargetExcel.java | 8 +- .../lunarcore/data/excel/ChatBubbleExcel.java | 6 +- .../emu/lunarcore/data/excel/CocoonExcel.java | 19 +- .../data/excel/ContentPackageExcel.java | 6 +- .../data/excel/DialogueEventExcel.java | 32 - .../lunarcore/data/excel/EquipmentExcel.java | 6 +- .../data/excel/EquipmentExpItemExcel.java | 6 +- .../data/excel/EquipmentExpTypeExcel.java | 17 +- .../data/excel/EquipmentPromotionExcel.java | 17 +- .../lunarcore/data/excel/ExpTypeExcel.java | 17 +- .../lunarcore/data/excel/ExpeditionExcel.java | 23 + .../data/excel/FarmElementExcel.java | 29 + .../lunarcore/data/excel/InteractExcel.java | 9 +- .../data/excel/ItemComposeExcel.java | 4 +- .../emu/lunarcore/data/excel/ItemExcel.java | 15 +- .../lunarcore/data/excel/ItemUseExcel.java | 8 +- .../data/excel/MainMissionExcel.java | 19 + .../data/excel/MapEntranceExcel.java | 6 +- .../data/excel/MappingInfoExcel.java | 85 +- .../lunarcore/data/excel/MazeBuffExcel.java | 15 +- .../lunarcore/data/excel/MazePlaneExcel.java | 4 +- .../data/excel/MonsterDropExcel.java | 37 +- .../lunarcore/data/excel/MonsterExcel.java | 4 +- .../data/excel/MultiplePathAvatarExcel.java | 4 +- .../emu/lunarcore/data/excel/NpcExcel.java | 4 +- .../lunarcore/data/excel/NpcMonsterExcel.java | 4 +- .../data/excel/OfferingTypeExcel.java | 17 + .../emu/lunarcore/data/excel/PetExcel.java | 6 +- .../lunarcore/data/excel/PhoneThemeExcel.java | 6 +- .../lunarcore/data/excel/PlaneEventExcel.java | 32 + .../lunarcore/data/excel/PlayerIconExcel.java | 6 +- .../data/excel/PlayerLevelExcel.java | 6 +- .../lunarcore/data/excel/PomSkinExcel.java | 17 + .../emu/lunarcore/data/excel/PropExcel.java | 11 +- .../emu/lunarcore/data/excel/QuestExcel.java | 8 +- .../emu/lunarcore/data/excel/RelicExcel.java | 6 +- .../data/excel/RelicExpItemExcel.java | 6 +- .../data/excel/RelicExpTypeExcel.java | 17 +- .../data/excel/RelicMainAffixExcel.java | 17 +- .../lunarcore/data/excel/RelicSetExcel.java | 6 +- .../data/excel/RelicSubAffixExcel.java | 17 +- .../emu/lunarcore/data/excel/RewardExcel.java | 25 +- .../lunarcore/data/excel/RogueAeonExcel.java | 18 - .../lunarcore/data/excel/RogueAreaExcel.java | 37 - .../lunarcore/data/excel/RogueBonusExcel.java | 25 - .../lunarcore/data/excel/RogueBuffExcel.java | 50 - .../data/excel/RogueBuffGroupExcel.java | 66 - .../data/excel/RogueDLCAreaExcel.java | 38 - .../data/excel/RogueManagerExcel.java | 51 - .../lunarcore/data/excel/RogueMapExcel.java | 28 - .../data/excel/RogueMiracleExcel.java | 26 - .../data/excel/RogueMonsterExcel.java | 19 - .../lunarcore/data/excel/RogueNPCExcel.java | 25 - .../data/excel/RogueNousDiceBranchExcel.java | 26 - .../data/excel/RogueNousMainStoryExcel.java | 23 - .../data/excel/RogueNousSubStoryExcel.java | 23 - .../lunarcore/data/excel/RogueRoomExcel.java | 26 - .../data/excel/RogueTalentExcel.java | 21 - .../emu/lunarcore/data/excel/ShopExcel.java | 4 +- .../lunarcore/data/excel/ShopGoodsExcel.java | 6 +- .../data/excel/SpecialAvatarExcel.java | 26 + .../emu/lunarcore/data/excel/StageExcel.java | 10 +- .../lunarcore/data/excel/SummonUnitExcel.java | 8 +- .../lunarcore/data/excel/TextJoinExcel.java | 4 +- .../lunarcore/data/excel/TutorialExcel.java | 16 + .../data/excel/TutorialGuideExcel.java | 16 + .../emu/lunarcore/data/resource/ExcelMap.java | 86 + .../lunarcore/data/resource/GameResource.java | 12 + .../data/resource/MultiKeyExcelMap.java | 70 + .../data/resource/MultiKeyGameResource.java | 9 + .../lunarcore/data/resource/ResourceBase.java | 12 + .../lunarcore/data/resource/ResourceMap.java | 9 + .../data/{ => resource}/ResourceType.java | 4 +- .../lunarcore/database/DatabaseManager.java | 23 +- .../emu/lunarcore/game/account/Account.java | 34 +- .../emu/lunarcore/game/avatar/AvatarData.java | 77 +- .../game/avatar/AvatarMultiPath.java | 48 +- .../avatar/AvatarSkillTreeAnchorType.java | 49 + .../lunarcore/game/avatar/AvatarStorage.java | 33 +- .../emu/lunarcore/game/avatar/BaseAvatar.java | 2 + .../emu/lunarcore/game/avatar/GameAvatar.java | 182 +- .../emu/lunarcore/game/battle/Battle.java | 47 +- .../lunarcore/game/battle/BattleService.java | 99 +- .../MazeSkillSetAttackTargetMonsterDie.java | 7 - .../game/challenge/ChallengeEntityLoader.java | 8 +- .../game/challenge/ChallengeInstance.java | 72 +- .../game/challenge/ChallengeManager.java | 129 +- .../emu/lunarcore/game/chat/ChatManager.java | 4 +- .../emu/lunarcore/game/chat/ChatMessage.java | 25 +- .../emu/lunarcore/game/drops/DropParam.java | 12 +- .../emu/lunarcore/game/drops/DropService.java | 69 +- .../lunarcore/game/enums/AvatarBaseType.java | 3 +- .../game/enums/AvatarPropertyType.java | 19 +- .../emu/lunarcore/game/enums/ItemSubType.java | 3 + .../lunarcore/game/enums/ItemUseMethod.java | 3 +- .../game/enums/MissionStatusType.java | 17 + .../emu/lunarcore/game/enums/PlaneType.java | 9 +- .../emu/lunarcore/game/enums/PropType.java | 4 +- .../game/enums/RogueDialogueType.java | 2 +- .../game/enums/RogueMiracleCategory.java | 19 + .../emu/lunarcore/game/enums/StageType.java | 3 +- .../lunarcore/game/friends/Friendship.java | 4 +- .../emu/lunarcore/game/gacha/GachaBanner.java | 15 + .../lunarcore/game/gacha/GachaService.java | 2 +- .../lunarcore/game/inventory/GameItem.java | 165 +- .../game/inventory/GameItemSubAffix.java | 4 +- .../lunarcore/game/inventory/Inventory.java | 267 +- .../game/inventory/InventoryService.java | 136 +- .../game/inventory/ItemParamMap.java | 94 +- .../game/inventory/ItemUseHandler.java | 3 +- .../emu/lunarcore/game/player/Player.java | 215 +- .../game/player/PlayerGameInstance.java | 38 + .../lunarcore/game/player/PlayerGender.java | 31 +- .../game/player/PlayerUnlockData.java | 78 +- .../game/player/lineup/LineupManager.java | 58 +- .../game/player/lineup/PlayerExtraLineup.java | 3 +- .../game/player/lineup/PlayerLineup.java | 12 +- .../lunarcore/game/rogue/RogueBonusData.java | 14 - .../game/rogue/RogueBonusSelectMenu.java | 55 - .../lunarcore/game/rogue/RogueBuffData.java | 58 - .../game/rogue/RogueBuffSelectMenu.java | 155 - .../lunarcore/game/rogue/RogueBuffType.java | 39 - .../game/rogue/RogueEntityLoader.java | 157 - .../game/rogue/RogueEventManager.java | 181 - .../lunarcore/game/rogue/RogueInstance.java | 713 --- .../lunarcore/game/rogue/RogueManager.java | 290 -- .../game/rogue/RogueMiracleData.java | 38 - .../game/rogue/RogueMiracleSelectMenu.java | 67 - .../lunarcore/game/rogue/RogueRoomData.java | 50 - .../lunarcore/game/rogue/RogueRoomType.java | 23 - .../lunarcore/game/rogue/RogueTalentData.java | 33 - .../game/rogue/event/RogueEventInstance.java | 54 - .../game/rogue/event/RogueEventParam.java | 38 - .../rogue/event/RogueEventResultInfo.java | 14 - .../java/emu/lunarcore/game/scene/Scene.java | 158 +- .../game/scene/SceneEntityLoader.java | 61 +- .../emu/lunarcore/game/scene/SceneGroup.java | 17 + .../game/scene/TrainEntityLoader.java | 12 + .../game/scene/entity/EntityMonster.java | 2 +- .../game/scene/entity/EntityNpc.java | 19 +- .../game/scene/entity/EntityProp.java | 25 +- .../scene/entity/extra/PropRogueData.java | 25 - .../TriggerOpenTreasureWhenMonsterDie.java | 1 + .../emu/lunarcore/game/shop/ShopService.java | 2 +- .../emu/lunarcore/game/trial/TrialAvatar.java | 79 + .../game/trial/TrialEntityLoader.java | 70 + .../lunarcore/game/trial/TrialInstance.java | 68 + .../lunarcore/game/trial/TrialManager.java | 96 + .../emu/lunarcore/server/game/GameServer.java | 1 - .../server/game/GameServerPacketHandler.java | 11 +- .../lunarcore/server/game/GameSession.java | 15 +- .../emu/lunarcore/server/http/HttpServer.java | 19 +- .../server/http/handlers/AppLoginHandler.java | 69 + .../http/handlers/QueryGatewayHandler.java | 19 +- .../server/http/objects/NewLoginReqJson.java | 6 + .../server/http/objects/NewLoginResJson.java | 60 + .../emu/lunarcore/server/packet/CmdId.java | 3983 ++++++++++------- .../lunarcore/server/packet/CmdIdUtils.java | 17 +- .../lunarcore/server/packet/recv/Handler.java | 2 +- .../recv/HandlerActivateFarmElementCsReq.java | 2 +- .../packet/recv/HandlerApplyFriendCsReq.java | 2 +- .../packet/recv/HandlerBuyGoodsCsReq.java | 2 +- ....java => HandlerChessRogueQueryCsReq.java} | 7 +- ...lerClockParkGetOngoingScriptInfoCsReq.java | 15 + .../recv/HandlerClockParkQuitScriptCsReq.java | 16 + .../recv/HandlerCommonRogueQueryCsReq.java | 16 + .../packet/recv/HandlerComposeItemCsReq.java | 8 +- .../HandlerComposeSelectedRelicCsReq.java | 13 +- .../HandlerContentPackageGetDataCsReq.java | 2 +- .../HandlerDeactivateFarmElementCsReq.java | 19 + .../packet/recv/HandlerDelMailCsReq.java | 4 +- .../packet/recv/HandlerDeleteFriendCsReq.java | 2 +- ...dlerDeleteSocialEventServerCacheCsReq.java | 20 + .../recv/HandlerDeployRotaterCsReq.java | 20 - .../packet/recv/HandlerDestroyItemCsReq.java | 2 +- .../packet/recv/HandlerDiscardRelicCsReq.java | 2 +- .../recv/HandlerDressAvatarSkinCsReq.java | 34 + .../recv/HandlerEnableRogueTalentCsReq.java | 24 - .../recv/HandlerEnhanceRogueBuffCsReq.java | 20 - .../recv/HandlerEnterRogueMapRoomCsReq.java | 30 - .../packet/recv/HandlerEnterSceneCsReq.java | 2 +- .../packet/recv/HandlerEnterSectionCsReq.java | 15 + .../HandlerExchangeGachaCeilingCsReq.java | 2 +- .../recv/HandlerExchangeHcoinCsReq.java | 7 +- .../packet/recv/HandlerExpUpRelicCsReq.java | 4 +- .../packet/recv/HandlerFinishQuestCsReq.java | 24 + ...HandlerFinishRogueCommonDialogueCsReq.java | 23 - .../recv/HandlerFinishTalkMissionCsReq.java | 20 - .../recv/HandlerFinishTutorialGuideCsReq.java | 23 + ...HandlerGetActivityScheduleConfigCsReq.java | 3 +- .../recv/HandlerGetArchiveDataCsReq.java | 4 +- .../recv/HandlerGetAssistHistoryCsReq.java | 4 +- .../HandlerGetBigDataAllRecommendCsReq.java | 19 + .../recv/HandlerGetBigDataRecommendCsReq.java | 19 + ...ndlerGetChallengeGroupStatisticsCsReq.java | 19 + ... => HandlerGetChallengePeakDataCsReq.java} | 8 +- ...andlerGetChessRogueNousStoryInfoCsReq.java | 15 + .../HandlerGetChessRogueStoryInfoCsReq.java | 16 + ...Req.java => HandlerGetCrossInfoCsReq.java} | 8 +- .../recv/HandlerGetCurChallengeCsReq.java | 6 +- .../HandlerGetFarmStageGachaInfoCsReq.java | 2 +- ...dlerGetFirstTalkByPerformanceNpcCsReq.java | 2 +- .../recv/HandlerGetFirstTalkNpcCsReq.java | 5 +- ...ndlerGetFriendBattleRecordDetailCsReq.java | 31 + .../HandlerGetFriendDevelopmentInfoCsReq.java | 20 + .../recv/HandlerGetFriendLoginInfoCsReq.java | 6 - .../recv/HandlerGetJukeboxDataCsReq.java | 1 - .../recv/HandlerGetLineupAvatarDataCsReq.java | 17 + ...HandlerGetMainMissionCustomValueCsReq.java | 20 + .../recv/HandlerGetMapRotationDataCsReq.java | 16 + .../packet/recv/HandlerGetMarkChestCsReq.java | 37 + .../recv/HandlerGetNpcTakenRewardCsReq.java | 2 +- .../recv/HandlerGetOfferingInfoCsReq.java | 19 + .../recv/HandlerGetPamSkinDataCsReq.java | 17 + .../recv/HandlerGetPlayerDetailInfoCsReq.java | 2 +- ...HandlerGetPreAvatarActivityListCsReq.java} | 8 +- .../HandlerGetPreAvatarGrowthInfoCsReq.java | 16 + .../HandlerGetPrivateChatHistoryCsReq.java | 4 +- .../recv/HandlerGetRechargeGiftInfoCsReq.java | 15 + .../HandlerGetRogueBuffEnhanceInfoCsReq.java | 15 - ...andlerGetRogueCommonDialogueDataCsReq.java | 17 + ...ndlerGetRogueEndlessActivityDataCsReq.java | 15 + .../packet/recv/HandlerGetRogueInfoCsReq.java | 8 +- .../HandlerGetRogueInitialScoreCsReq.java | 3 +- .../HandlerGetRogueScoreRewardInfoCsReq.java | 8 +- .../recv/HandlerGetRogueTalentInfoCsReq.java | 8 +- .../recv/HandlerGetSceneMapInfoCsReq.java | 6 +- .../packet/recv/HandlerGetShopListCsReq.java | 2 +- ...andlerGetSocialEventServerCacheCsReq.java} | 8 +- ...erGetStrongChallengeActivityDataCsReq.java | 16 + ...erGetTreasureDungeonActivityDataCsReq.java | 2 +- .../packet/recv/HandlerGetTutorialCsReq.java | 17 + .../recv/HandlerGetTutorialGuideCsReq.java | 17 + .../recv/HandlerGetUnlockTeleportCsReq.java | 2 +- .../HandlerGetUnreleasedBlockInfoCsReq.java | 16 + .../packet/recv/HandlerHandleFriendCsReq.java | 2 +- ...erHandleRogueCommonPendingActionCsReq.java | 26 - .../recv/HandlerInteractChargerCsReq.java | 21 - .../recv/HandlerLeaveChallengeCsReq.java | 6 +- .../recv/HandlerLeaveTrialActivityCsReq.java | 30 + .../packet/recv/HandlerMarkAvatarCsReq.java | 4 +- .../packet/recv/HandlerMarkReadMailCsReq.java | 2 +- .../recv/HandlerPickRogueAvatarCsReq.java | 17 - .../recv/HandlerPlayBackGroundMusicCsReq.java | 4 +- .../recv/HandlerPlayerGetTokenCsReq.java | 58 +- .../recv/HandlerPlayerHeartBeatCsReq.java | 4 +- .../packet/recv/HandlerPlayerLoginCsReq.java | 12 +- .../recv/HandlerPlayerLoginFinishCsReq.java | 4 - .../recv/HandlerQueryProductInfoCsReq.java | 3 +- .../HandlerQuickStartCocoonStageCsReq.java | 28 + .../HandlerQuickStartFarmElementCsReq.java | 40 + .../HandlerReEnterLastElementStageCsReq.java | 2 +- .../HandlerReStartChallengePeakCsReq.java | 16 + .../packet/recv/HandlerRecallPetCsReq.java | 2 +- .../HandlerRefreshTriggerByClientCsReq.java | 6 +- .../recv/HandlerRelicRecommendCsReq.java | 20 - .../recv/HandlerRelicReforgeConfirmCsReq.java | 20 + .../packet/recv/HandlerRelicReforgeCsReq.java | 20 + ...HandlerRelicSmartWearGetPinRelicCsReq.java | 19 + .../HandlerRelicSmartWearGetPlanCsReq.java | 20 + .../HandlerReserveStaminaExchangeCsReq.java | 2 +- .../recv/HandlerRogueArcadeGetInfoCsReq.java | 15 + .../recv/HandlerRogueMagicQueryCsReq.java | 16 + .../recv/HandlerRogueNpcDisappearCsReq.java | 24 - ...erRogueTournGetArchiveRepositoryCsReq.java | 16 + ...rRogueTournGetCurRogueCocoonInfoCsReq.java | 16 + ...RogueTournGetPermanentTalentInfoCsReq.java | 16 + .../recv/HandlerRogueTournQueryCsReq.java | 16 + .../recv/HandlerSceneCastSkillCsReq.java | 24 +- .../recv/HandlerSceneEnterStageCsReq.java | 12 +- .../recv/HandlerSceneEntityMoveCsReq.java | 2 +- .../recv/HandlerSceneEntityTeleportCsReq.java | 30 + .../packet/recv/HandlerSearchPlayerCsReq.java | 8 +- .../recv/HandlerSelectChatBubbleCsReq.java | 6 +- .../HandlerSelectInclinationTextCsReq.java | 18 + .../recv/HandlerSelectPamSkinCsReq.java | 20 + .../recv/HandlerSelectPhoneThemeCsReq.java | 6 +- ...rSelectRogueCommonDialogueOptionCsReq.java | 30 - .../packet/recv/HandlerSendMsgCsReq.java | 10 +- .../recv/HandlerSetAssistAvatarCsReq.java | 2 +- .../recv/HandlerSetAvatarEnhancedIdCsReq.java | 46 + .../recv/HandlerSetAvatarPathCsReq.java | 2 +- ...rSetChallengePeakMobLineupAvatarCsReq.java | 24 + .../recv/HandlerSetDisplayAvatarCsReq.java | 2 +- .../recv/HandlerSetGameplayBirthdayCsReq.java | 2 +- .../packet/recv/HandlerSetHeadIconCsReq.java | 2 +- .../packet/recv/HandlerSetNicknameCsReq.java | 4 +- .../recv/HandlerSetRogueCollectionCsReq.java | 15 + .../packet/recv/HandlerSetSignatureCsReq.java | 2 +- .../recv/HandlerSetTrainWorldIdCsReq.java | 20 + .../recv/HandlerStartChallengeCsReq.java | 4 +- .../recv/HandlerStartChallengePeakCsReq.java | 20 + .../recv/HandlerStartCocoonStageCsReq.java | 13 +- .../HandlerStartPartialChallengeCsReq.java | 18 +- .../packet/recv/HandlerStartRogueCsReq.java | 19 - .../recv/HandlerStartTrialActivityCsReq.java | 22 + .../packet/recv/HandlerSummonPetCsReq.java | 7 +- .../recv/HandlerSwitchLineupIndexCsReq.java | 21 - .../recv/HandlerTakeChallengeRewardCsReq.java | 2 +- .../recv/HandlerTakeMailAttachmentCsReq.java | 4 +- .../recv/HandlerTakeOffAvatarSkinCsReq.java | 28 + .../recv/HandlerTakePromotionRewardCsReq.java | 2 +- .../recv/HandlerTextJoinQueryCsReq.java | 2 +- .../recv/HandlerTrainPartyGetDataCsReq.java | 15 + .../recv/HandlerUnlockAvatarPathCsReq.java | 19 + .../HandlerUnlockBackGroundMusicCsReq.java | 7 +- .../recv/HandlerUnlockSkilltreeCsReq.java | 19 +- .../recv/HandlerUnlockTutorialCsReq.java | 19 + .../recv/HandlerUpdateGroupPropertyCsReq.java | 21 + .../recv/HandlerUpdateMarkChestCsReq.java | 49 + .../HandlerUpdateServerPrefsDataCsReq.java | 4 +- .../packet/recv/HandlerUseItemCsReq.java | 2 +- .../lunarcore/server/packet/send/Packet.java | 2 +- .../send/PacketActivateFarmElementScRsp.java | 10 +- .../send/PacketAvatarPathChangedNotify.java | 4 +- .../send/PacketBattlePassInfoNotify.java | 25 +- .../packet/send/PacketBuyGoodsScRsp.java | 8 +- .../send/PacketChallengeLineupNotify.java | 4 +- ...tChallengePeakGroupDataUpdateScNotify.java | 32 + .../send/PacketChallengeSettleNotify.java | 8 +- .../packet/send/PacketComposeItemScRsp.java | 4 +- .../send/PacketComposeSelectedRelicScRsp.java | 6 +- .../PacketContentPackageGetDataScRsp.java | 10 +- .../send/PacketCurPetChangedScNotify.java | 4 +- .../send/PacketCurTrialActivityScNotify.java | 23 + .../send/PacketDailyActiveInfoNotify.java | 18 +- .../PacketDeactivateFarmElementScRsp.java | 18 + .../packet/send/PacketDelMailScRsp.java | 6 +- ...cketDeleteSocialEventServerCacheScRsp.java | 21 + .../packet/send/PacketDeployRotaterScRsp.java | 24 - .../packet/send/PacketDoGachaScRsp.java | 4 +- .../send/PacketEnableRogueTalentScRsp.java | 28 - .../send/PacketEnhanceRogueBuffScRsp.java | 18 - .../PacketEnterMapRotationRegionScRsp.java | 6 +- .../send/PacketEnterRogueMapRoomScRsp.java | 21 - .../PacketEnterSceneByServerScNotify.java | 2 +- .../send/PacketExchangeGachaCeilingScRsp.java | 8 +- .../packet/send/PacketExchangeHcoinScRsp.java | 16 + .../send/PacketExpUpEquipmentScRsp.java | 6 +- .../packet/send/PacketExpUpRelicScRsp.java | 2 +- .../send/PacketFinishTalkMissionScRsp.java | 26 - .../send/PacketFinishTutorialGuideScRsp.java | 33 + .../PacketGetActivityScheduleConfigScRsp.java | 56 +- .../send/PacketGetArchiveDataScRsp.java | 46 +- .../packet/send/PacketGetAvatarDataScRsp.java | 27 +- .../server/packet/send/PacketGetBagScRsp.java | 7 + .../packet/send/PacketGetBasicInfoScRsp.java | 9 +- .../PacketGetBigDataAllRecommendScRsp.java | 24 + .../send/PacketGetBigDataRecommendScRsp.java | 19 + ...acketGetChallengeGroupStatisticsScRsp.java | 17 + .../send/PacketGetChallengePeakDataScRsp.java | 18 + .../packet/send/PacketGetChallengeScRsp.java | 15 +- ...PacketGetChessRogueNousStoryInfoScRsp.java | 29 - .../send/PacketGetCurChallengeScRsp.java | 12 +- .../send/PacketGetDailyActiveInfoScRsp.java | 22 +- .../send/PacketGetEnteredSceneScRsp.java | 12 +- .../PacketGetFarmStageGachaInfoScRsp.java | 8 +- ...cketGetFirstTalkByPerformanceNpcScRsp.java | 8 +- .../send/PacketGetFirstTalkNpcScRsp.java | 25 + .../PacketGetFriendApplyListInfoScRsp.java | 10 +- ...acketGetFriendBattleRecordDetailScRsp.java | 123 + .../PacketGetFriendDevelopmentInfoScRsp.java | 42 + .../send/PacketGetFriendListInfoScRsp.java | 43 +- .../send/PacketGetFriendLoginInfoScRsp.java | 4 +- ...PacketGetFriendRecommendListInfoScRsp.java | 8 +- .../send/PacketGetGachaCeilingScRsp.java | 10 +- .../send/PacketGetJukeboxDataScRsp.java | 10 +- .../send/PacketGetLineupAvatarDataScRsp.java | 31 + .../packet/send/PacketGetMailScRsp.java | 6 +- .../PacketGetMainMissionCustomValueScRsp.java | 27 + .../packet/send/PacketGetMarkChestScRsp.java | 24 + .../PacketGetMultiPathAvatarInfoScRsp.java | 32 - .../send/PacketGetNpcTakenRewardScRsp.java | 4 +- .../send/PacketGetOfferingInfoScRsp.java | 38 + .../send/PacketGetPamSkinDataScRsp.java | 27 + .../packet/send/PacketGetPetDataScRsp.java | 6 +- .../packet/send/PacketGetPhoneDataScRsp.java | 11 +- .../send/PacketGetPlayerBoardDataScRsp.java | 20 +- .../send/PacketGetPlayerDetailInfoScRsp.java | 2 +- .../PacketGetPrivateChatHistoryScRsp.java | 6 +- .../packet/send/PacketGetQuestDataScRsp.java | 37 +- .../PacketGetRogueBuffEnhanceInfoScRsp.java | 42 - .../send/PacketGetRogueHandbookDataScRsp.java | 23 - .../packet/send/PacketGetRogueInfoScRsp.java | 18 - .../send/PacketGetRogueInitialScoreScRsp.java | 28 - .../PacketGetRogueScoreRewardInfoScRsp.java | 32 - .../send/PacketGetRogueTalentInfoScRsp.java | 18 - .../send/PacketGetSceneMapInfoScRsp.java | 131 +- .../packet/send/PacketGetShopListScRsp.java | 17 +- .../PacketGetSocialEventServerCacheScRsp.java | 24 + .../send/PacketGetTutorialGuideScRsp.java | 27 + .../packet/send/PacketGetTutorialScRsp.java | 27 + .../send/PacketGetUnlockTeleportScRsp.java | 10 +- .../send/PacketGroupStateChangeScNotify.java | 18 +- .../send/PacketGroupStateChangeScRsp.java | 6 +- .../packet/send/PacketHandleFriendScRsp.java | 6 +- ...etHandleRogueCommonPendingActionScRsp.java | 31 - .../send/PacketInteractChargerScRsp.java | 18 - .../packet/send/PacketInteractPropScRsp.java | 6 +- .../packet/send/PacketLeaveRogueScRsp.java | 20 - .../packet/send/PacketMarkAvatarScRsp.java | 8 +- .../send/PacketMarkChestChangedScNotify.java | 23 + .../packet/send/PacketNewMailScNotify.java | 4 +- .../send/PacketPVEBattleResultScRsp.java | 14 +- .../send/PacketPickRogueAvatarScRsp.java | 21 - .../send/PacketPlayBackGroundMusicScRsp.java | 8 +- .../send/PacketPlayerHeartBeatScRsp.java | 4 +- .../packet/send/PacketPlayerSyncScNotify.java | 195 +- .../send/PacketQueryProductInfoScRsp.java | 19 + .../PacketQuickStartCocoonStageScRsp.java | 26 + .../PacketQuickStartFarmElementScRsp.java | 24 + .../PacketReEnterLastElementStageScRsp.java | 10 +- .../packet/send/PacketRecallPetScRsp.java | 4 +- .../PacketRefreshTriggerByClientScNotify.java | 6 +- .../PacketRefreshTriggerByClientScRsp.java | 4 +- .../send/PacketRelicRecommendScRsp.java | 17 - .../PacketRelicSmartWearGetPinRelicScRsp.java | 18 + .../PacketRelicSmartWearGetPlanScRsp.java | 18 + .../PacketReserveStaminaExchangeScRsp.java | 6 +- .../packet/send/PacketRevcMsgScNotify.java | 14 +- .../packet/send/PacketRotateMapScRsp.java | 6 +- .../send/PacketSceneCastSkillCostMpScRsp.java | 4 +- .../PacketSceneCastSkillMpUpdateScNotify.java | 4 +- .../send/PacketSceneCastSkillScRsp.java | 2 +- .../send/PacketSceneEnterStageScRsp.java | 14 +- .../send/PacketSceneEntityMoveScNotify.java | 6 +- .../send/PacketSceneEntityTeleportScRsp.java | 19 + .../send/PacketSceneGroupRefreshScNotify.java | 29 +- .../send/PacketScenePlaneEventScNotify.java | 14 +- .../packet/send/PacketSearchPlayerScRsp.java | 6 +- .../send/PacketSelectChatBubbleScRsp.java | 10 +- .../PacketSelectInclinationTextScRsp.java | 17 + .../packet/send/PacketSelectPamSkinScRsp.java | 22 + .../send/PacketSelectPhoneThemeScRsp.java | 10 +- ...tSelectRogueCommonDialogueOptionScRsp.java | 25 - .../send/PacketSelectRogueMiracleScRsp.java | 24 - .../send/PacketSetAssistAvatarScRsp.java | 8 +- .../send/PacketSetAvatarEnhancedIdScRsp.java | 27 + .../packet/send/PacketSetAvatarPathScRsp.java | 6 +- .../send/PacketSetClientPausedScRsp.java | 4 +- .../send/PacketSetDisplayAvatarScRsp.java | 12 +- .../send/PacketSetGameplayBirthdayScRsp.java | 6 +- .../packet/send/PacketSetHeadIconScRsp.java | 10 +- .../packet/send/PacketSetSignatureScRsp.java | 4 +- .../send/PacketSetTrainWorldIdScRsp.java | 17 + .../send/PacketStaminaInfoScNotify.java | 4 +- .../send/PacketStartChallengeScRsp.java | 25 +- .../send/PacketStartCocoonStageScRsp.java | 29 +- .../packet/send/PacketStartRogueScRsp.java | 33 - .../send/PacketStartTrialActivityScRsp.java | 23 + .../packet/send/PacketSummonPetScRsp.java | 13 +- .../send/PacketSyncApplyFriendScNotify.java | 4 +- .../send/PacketSyncDeleteFriendScNotify.java | 4 +- ...acketSyncEntityBuffChangeListScNotify.java | 12 +- .../send/PacketSyncHandleFriendScNotify.java | 6 +- ...etSyncRogueCommonActionResultScNotify.java | 43 - ...etSyncRogueCommonDialogueDataScNotify.java | 17 - ...gueCommonDialogueOptionFinishScNotify.java | 20 - ...tSyncRogueCommonPendingActionScNotify.java | 49 - .../send/PacketSyncRogueFinishScNotify.java | 21 - .../send/PacketSyncRogueMapRoomScNotify.java | 20 - ...acketSyncRogueVirtualItemInfoScNotify.java | 21 - .../send/PacketTakeChallengeRewardScRsp.java | 10 +- .../send/PacketTakeMailAttachmentScRsp.java | 8 +- .../send/PacketTakePromotionRewardScRsp.java | 4 +- .../packet/send/PacketTextJoinQueryScRsp.java | 7 +- .../send/PacketUnlockAvatarPathScRsp.java | 18 + .../send/PacketUnlockAvatarSkinScNotify.java | 17 + .../PacketUnlockBackGroundMusicScRsp.java | 9 +- .../send/PacketUnlockChatBubbleScNotify.java | 4 +- .../send/PacketUnlockPhoneCaseScNotify.java | 17 + .../send/PacketUnlockPhoneThemeScNotify.java | 4 +- .../send/PacketUnlockSkilltreeScRsp.java | 1 + .../send/PacketUnlockTutorialScRsp.java | 22 + .../send/PacketUpdateEnergyScNotify.java | 6 +- .../PacketUpdateFeatureSwitchScNotify.java | 25 + .../send/PacketUpdateGroupPropertyScRsp.java | 20 + .../send/PacketUpdateMarkChestScRsp.java | 25 + .../PacketUpdateServerPrefsDataScRsp.java | 4 +- .../packet/send/PacketUseItemScRsp.java | 8 +- .../java/emu/lunarcore/util/Handbook.java | 22 +- .../java/emu/lunarcore/util/Location.java | 26 + .../java/emu/lunarcore/util/Position.java | 11 +- src/main/java/emu/lunarcore/util/Utils.java | 30 + 1142 files changed, 93681 insertions(+), 100605 deletions(-) delete mode 100644 src/generated/main/emu/lunarcore/proto/AddRogueBuffScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/AddRogueMiracleScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/AvatarPathInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueBuffOuterClass.java => AvatarPathSkillTreeOuterClass.java} (56%) rename src/generated/main/emu/lunarcore/proto/{GetQuestDataCsReqOuterClass.java => AvatarReccomendDataOuterClass.java} (54%) create mode 100644 src/generated/main/emu/lunarcore/proto/BattleRecord1InfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/BattleRecord1OuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueRecordAvatarOuterClass.java => BattleRecordAvatarOuterClass.java} (69%) create mode 100644 src/generated/main/emu/lunarcore/proto/BattleRecordAvatarsOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/BattleRecordType2OuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/BigDataRecommendTypeOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChallengePeakGroupDataUpdateScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChallengePeakGroupInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChallengePeakLevelInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChallengePeakMobLineupInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChallengePeakSettleScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{FinishRogueCommonDialogueScRspOuterClass.java => ChangePropTimelineInfoScRspOuterClass.java} (55%) create mode 100644 src/generated/main/emu/lunarcore/proto/ChatContentInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueNousValueOuterClass.java => ChatHeaderInfoOuterClass.java} (52%) create mode 100644 src/generated/main/emu/lunarcore/proto/ChatInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ChatMsgInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChatOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueAvatarInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueBuffInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueCellInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueCellOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueCurrentInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueItemInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueMiracleDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueNousStoryInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueStartCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueStartScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueUpdateActionPointScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAllowedSelectCellScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDiceInfoScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDicePassiveAccumulateValueScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueUpdateMoneyInfoScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/ChessRogueVirtualItemInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/CurTrialActivityScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/DispatchTokenOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueVirtualItemDataOuterClass.java => DressAvatarSkinCsReqOuterClass.java} (50%) delete mode 100644 src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/FeatureSwitchInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueBuffDataOuterClass.java => FeatureSwitchParamOuterClass.java} (52%) create mode 100644 src/generated/main/emu/lunarcore/proto/FeatureSwitchTypeOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/FinishQuestCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueNpcDisappearScRspOuterClass.java => FinishQuestScRspOuterClass.java} (64%) delete mode 100644 src/generated/main/emu/lunarcore/proto/FinishRogueDialogueGroupCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueMiracleSelectResultOuterClass.java => FinishTutorialGuideCsReqOuterClass.java} (53%) rename src/generated/main/emu/lunarcore/proto/{ChessRogueRollDiceScRspOuterClass.java => FinishTutorialGuideScRspOuterClass.java} (52%) create mode 100644 src/generated/main/emu/lunarcore/proto/FriendBattleRecordType1OuterClass.java rename src/generated/main/emu/lunarcore/proto/{SyncRogueFinishScNotifyOuterClass.java => FriendBattleRecordType2OuterClass.java} (51%) create mode 100644 src/generated/main/emu/lunarcore/proto/FriendChallengeInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/FriendDevelopmentInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueBuffSelectOuterClass.java => GetAssistHistoryScRspOuterClass.java} (56%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetBigDataRecommendCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetBigDataRecommendScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{MazeGroupOuterClass.java => GetChallengeGroupStatisticsCsReqOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetChallengePeakDataScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueHandbookBuffOuterClass.java => GetCrossInfoScRspOuterClass.java} (55%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetExpeditionDataScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueBonusSelectResultOuterClass.java => GetFriendDevelopmentInfoCsReqOuterClass.java} (51%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{GetRogueInitialScoreScRspOuterClass.java => GetLineupAvatarDataScRspOuterClass.java} (51%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueNousEditDiceScRspOuterClass.java => GetMainMissionCustomValueScRspOuterClass.java} (51%) rename src/generated/main/emu/lunarcore/proto/{ChessRogueConfirmRollScRspOuterClass.java => GetMarkChestScRspOuterClass.java} (56%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetMissionDataScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetMissionEventDataScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/GetMultiPathAvatarInfoScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{PickRogueAvatarCsReqOuterClass.java => GetOfferingInfoCsReqOuterClass.java} (53%) rename src/generated/main/emu/lunarcore/proto/{GetRogueHandbookDataScRspOuterClass.java => GetOfferingInfoScRspOuterClass.java} (53%) create mode 100644 src/generated/main/emu/lunarcore/proto/GetPamSkinDataScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/GetRechargeGiftInfoScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{GetRogueScoreRewardInfoScRspOuterClass.java => GetSocialEventServerCacheScRspOuterClass.java} (51%) rename src/generated/main/emu/lunarcore/proto/{GetRogueBuffEnhanceInfoScRspOuterClass.java => GetTutorialGuideScRspOuterClass.java} (55%) rename src/generated/main/emu/lunarcore/proto/{GetRogueTalentInfoScRspOuterClass.java => GetTutorialScRspOuterClass.java} (55%) delete mode 100644 src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/HeadIconFrameInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/LANBPBBAJLMOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/LLJFPKKLGAKOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/LineupAvatarDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java rename src/generated/main/emu/lunarcore/proto/{FinishTalkMissionScRspOuterClass.java => MainMissionCustomValueOuterClass.java} (52%) rename src/generated/main/emu/lunarcore/proto/{FinishTalkMissionCsReqOuterClass.java => MainMissionDataOuterClass.java} (57%) create mode 100644 src/generated/main/emu/lunarcore/proto/MapInfoGroupOuterClass.java rename src/generated/main/emu/lunarcore/proto/{MazePropOuterClass.java => MapPropDefInfoOuterClass.java} (56%) create mode 100644 src/generated/main/emu/lunarcore/proto/MapPropInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueBuffEnhanceShopInfoOuterClass.java => MarkChestChangedScNotifyOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/MarkChestInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/MaterialSubmitInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/MissionStatusBySceneInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/OfferingInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/OfferingStateOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PlayerChallengeDetailInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PlayerDisplayInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PlayerMocDisplayInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueBonusSelectInfoOuterClass.java => PlayerOutfitInfoOuterClass.java} (51%) rename src/generated/main/emu/lunarcore/proto/{SimpleInfoOuterClass.java => PlayerSimpleInfoOuterClass.java} (51%) create mode 100644 src/generated/main/emu/lunarcore/proto/ProductOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/PropTimelineInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/QueryProductInfoScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{DoGachaInRollShopScRspOuterClass.java => QuickStartCocoonStageScRspOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/QuickStartFarmElementCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{SelectRogueBuffScRspOuterClass.java => QuickStartFarmElementScRspOuterClass.java} (50%) delete mode 100644 src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueMiracleSelectOuterClass.java => RelicReccomendDataOuterClass.java} (59%) create mode 100644 src/generated/main/emu/lunarcore/proto/RelicReforgeConfirmCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/RelicReforgeCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueHandbookEventOuterClass.java => RelicSmartSuitPlanOuterClass.java} (51%) rename src/generated/main/emu/lunarcore/proto/{FinishRogueCommonDialogueCsReqOuterClass.java => RelicSmartWearGetPinRelicCsReqOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RelicRecommendCsReqOuterClass.java => RelicSmartWearGetPlanCsReqOuterClass.java} (64%) create mode 100644 src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAreaOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueAvatarReviveCostOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectResultOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCurVirtualItemInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueDialogueEventParamOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueInfoDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleDataInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleInfoDataOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueRerollBuffOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueSyncContextBoardEventOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/RollRogueBuffScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SceneIdentifierInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SceneMapInfoOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RogueBuffRollInfoOuterClass.java => SceneMonsterExtraInfoOuterClass.java} (55%) rename src/generated/main/emu/lunarcore/proto/{ChessRogueNousSubStoryInfoOuterClass.java => SelectInclinationTextCsReqOuterClass.java} (50%) create mode 100644 src/generated/main/emu/lunarcore/proto/SelectInclinationTextScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{RelicAvatarRecommendCsReqOuterClass.java => SelectPamSkinCsReqOuterClass.java} (52%) create mode 100644 src/generated/main/emu/lunarcore/proto/SelectPamSkinScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueSelectCellScRspOuterClass.java => SetAvatarEnhancedIdScRspOuterClass.java} (57%) create mode 100644 src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueMiracleInfoOuterClass.java => SetPlayerOutfitCsReqOuterClass.java} (50%) rename src/generated/main/emu/lunarcore/proto/{SelectRogueBuffCsReqOuterClass.java => SetTrainWorldIdCsReqOuterClass.java} (54%) rename src/generated/main/emu/lunarcore/proto/{RelicRecommendScRspOuterClass.java => SetTrainWorldIdScRspOuterClass.java} (61%) create mode 100644 src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SocialEventServerCacheOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/StageMergedInfoOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/StartChallengePeakCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueRollDiceCsReqOuterClass.java => StartTrialActivityCsReqOuterClass.java} (55%) create mode 100644 src/generated/main/emu/lunarcore/proto/StartTrialActivityScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SwitchHandDataOuterClass.java rename src/generated/main/emu/lunarcore/proto/{EnableRogueTalentScRspOuterClass.java => SwitchHandFinishScRspOuterClass.java} (57%) create mode 100644 src/generated/main/emu/lunarcore/proto/SwitchHandOpDataOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SwitchHandOpPropTypeOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/SwitchHandUpdateCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{SelectRogueMiracleScRspOuterClass.java => SwitchHandUpdateScRspOuterClass.java} (50%) delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncChessRogueNousValueScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueBuffSelectInfoScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueDialogueEventDataScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueMiracleSelectInfoScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java delete mode 100644 src/generated/main/emu/lunarcore/proto/SyncRogueVirtualItemInfoScNotifyOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueAvatarOuterClass.java => TakeOffAvatarSkinCsReqOuterClass.java} (64%) create mode 100644 src/generated/main/emu/lunarcore/proto/TrialActivityStatusOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/TutorialGuideOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/TutorialOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/TutorialStatusOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/UnlockAvatarPathCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/UnlockAvatarPathScRspOuterClass.java rename src/generated/main/emu/lunarcore/proto/{ChessRogueSelectCellCsReqOuterClass.java => UnlockAvatarSkinScNotifyOuterClass.java} (50%) rename src/generated/main/emu/lunarcore/proto/{SelectRogueMiracleCsReqOuterClass.java => UnlockPhoneCaseScNotifyOuterClass.java} (53%) rename src/generated/main/emu/lunarcore/proto/{ChessRogueMoneyInfoOuterClass.java => UnlockTutorialCsReqOuterClass.java} (54%) rename src/generated/main/emu/lunarcore/proto/{GetRogueInfoScRspOuterClass.java => UnlockTutorialScRspOuterClass.java} (61%) create mode 100644 src/generated/main/emu/lunarcore/proto/UpdateFeatureSwitchScNotifyOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyCsReqOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyScRspOuterClass.java create mode 100644 src/generated/main/emu/lunarcore/proto/UpdateMarkChestCsReqOuterClass.java rename src/generated/main/emu/lunarcore/proto/{GetRollShopInfoScRspOuterClass.java => UpdateMarkChestScRspOuterClass.java} (50%) create mode 100644 src/main/java/emu/lunarcore/command/commands/BuildAvatarCommand.java create mode 100644 src/main/java/emu/lunarcore/command/commands/TeleportCommand.java delete mode 100644 src/main/java/emu/lunarcore/data/GameResource.java create mode 100644 src/main/java/emu/lunarcore/data/common/ExcelMonsterParam.java create mode 100644 src/main/java/emu/lunarcore/data/config/LevelGroupMissionCondition.java create mode 100644 src/main/java/emu/lunarcore/data/config/LoadConditionInfo.java create mode 100644 src/main/java/emu/lunarcore/data/config/MissionInfo.java create mode 100644 src/main/java/emu/lunarcore/data/config/MissionTaskInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java delete mode 100644 src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java create mode 100644 src/main/java/emu/lunarcore/data/excel/AvatarDemoExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/AvatarEnhanceExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/AvatarGlobalBuffExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/AvatarRelicRecommendExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/AvatarSkinExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/ChallengePeakExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/ChallengePeakGroupExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/ExpeditionExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/FarmElementExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/MainMissionExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/OfferingTypeExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/PlaneEventExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/PomSkinExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueAeonExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueBuffExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueDLCAreaExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueManagerExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueMonsterExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueNousDiceBranchExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueNousMainStoryExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueNousSubStoryExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java delete mode 100644 src/main/java/emu/lunarcore/data/excel/RogueTalentExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/SpecialAvatarExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/TutorialExcel.java create mode 100644 src/main/java/emu/lunarcore/data/excel/TutorialGuideExcel.java create mode 100644 src/main/java/emu/lunarcore/data/resource/ExcelMap.java create mode 100644 src/main/java/emu/lunarcore/data/resource/GameResource.java create mode 100644 src/main/java/emu/lunarcore/data/resource/MultiKeyExcelMap.java create mode 100644 src/main/java/emu/lunarcore/data/resource/MultiKeyGameResource.java create mode 100644 src/main/java/emu/lunarcore/data/resource/ResourceBase.java create mode 100644 src/main/java/emu/lunarcore/data/resource/ResourceMap.java rename src/main/java/emu/lunarcore/data/{ => resource}/ResourceType.java (91%) create mode 100644 src/main/java/emu/lunarcore/game/avatar/AvatarSkillTreeAnchorType.java create mode 100644 src/main/java/emu/lunarcore/game/enums/MissionStatusType.java create mode 100644 src/main/java/emu/lunarcore/game/enums/RogueMiracleCategory.java create mode 100644 src/main/java/emu/lunarcore/game/player/PlayerGameInstance.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBonusSelectMenu.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBuffData.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueBuffType.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueInstance.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueManager.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueMiracleSelectMenu.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/RogueTalentData.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java delete mode 100644 src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java create mode 100644 src/main/java/emu/lunarcore/game/scene/SceneGroup.java create mode 100644 src/main/java/emu/lunarcore/game/scene/TrainEntityLoader.java delete mode 100644 src/main/java/emu/lunarcore/game/scene/entity/extra/PropRogueData.java create mode 100644 src/main/java/emu/lunarcore/game/trial/TrialAvatar.java create mode 100644 src/main/java/emu/lunarcore/game/trial/TrialEntityLoader.java create mode 100644 src/main/java/emu/lunarcore/game/trial/TrialInstance.java create mode 100644 src/main/java/emu/lunarcore/game/trial/TrialManager.java create mode 100644 src/main/java/emu/lunarcore/server/http/handlers/AppLoginHandler.java create mode 100644 src/main/java/emu/lunarcore/server/http/objects/NewLoginReqJson.java create mode 100644 src/main/java/emu/lunarcore/server/http/objects/NewLoginResJson.java rename src/main/java/emu/lunarcore/server/packet/recv/{HandlerLeaveRogueCsReq.java => HandlerChessRogueQueryCsReq.java} (68%) create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkGetOngoingScriptInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkQuitScriptCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerCommonRogueQueryCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerDeactivateFarmElementCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteSocialEventServerCacheCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerDeployRotaterCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerDressAvatarSkinCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerEnableRogueTalentCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerEnhanceRogueBuffCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterRogueMapRoomCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSectionCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishQuestCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTalkMissionCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTutorialGuideCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataAllRecommendCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataRecommendCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengeGroupStatisticsCsReq.java rename src/main/java/emu/lunarcore/server/packet/recv/{HandlerGetRogueHandbookDataCsReq.java => HandlerGetChallengePeakDataCsReq.java} (59%) create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueNousStoryInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueStoryInfoCsReq.java rename src/main/java/emu/lunarcore/server/packet/recv/{HandlerQuitRogueCsReq.java => HandlerGetCrossInfoCsReq.java} (68%) create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendBattleRecordDetailCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendDevelopmentInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetLineupAvatarDataCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMapRotationDataCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMarkChestCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetOfferingInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPamSkinDataCsReq.java rename src/main/java/emu/lunarcore/server/packet/recv/{HandlerGetFriendChallengeLineupCsReq.java => HandlerGetPreAvatarActivityListCsReq.java} (66%) create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarGrowthInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRechargeGiftInfoCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueBuffEnhanceInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueCommonDialogueDataCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueEndlessActivityDataCsReq.java rename src/main/java/emu/lunarcore/server/packet/recv/{HandlerGetMultiPathAvatarInfoCsReq.java => HandlerGetSocialEventServerCacheCsReq.java} (53%) create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetStrongChallengeActivityDataCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialGuideCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnreleasedBlockInfoCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerInteractChargerCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveTrialActivityCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartCocoonStageCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartFarmElementCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerReStartChallengePeakCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicRecommendCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeConfirmCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPinRelicCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPlanCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueArcadeGetInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueMagicQueryCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetArchiveRepositoryCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetCurRogueCocoonInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetPermanentTalentInfoCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournQueryCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityTeleportCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectInclinationTextCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPamSkinCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarEnhancedIdCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSetChallengePeakMobLineupAvatarCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSetRogueCollectionCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSetTrainWorldIdCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengePeakCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerStartTrialActivityCsReq.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerSwitchLineupIndexCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeOffAvatarSkinCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerTrainPartyGetDataCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockAvatarPathCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockTutorialCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateGroupPropertyCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateMarkChestCsReq.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketChallengePeakGroupDataUpdateScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketCurTrialActivityScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketDeactivateFarmElementScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketDeleteSocialEventServerCacheScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketDeployRotaterScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketEnableRogueTalentScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketEnhanceRogueBuffScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketEnterRogueMapRoomScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketExchangeHcoinScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketFinishTalkMissionScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketFinishTutorialGuideScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataAllRecommendScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataRecommendScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeGroupStatisticsScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengePeakDataScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetChessRogueNousStoryInfoScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkNpcScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendBattleRecordDetailScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendDevelopmentInfoScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetLineupAvatarDataScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetMarkChestScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetMultiPathAvatarInfoScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetOfferingInfoScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetPamSkinDataScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueHandbookDataScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInfoScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInitialScoreScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueTalentInfoScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetSocialEventServerCacheScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialGuideScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketHandleRogueCommonPendingActionScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketInteractChargerScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketLeaveRogueScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketMarkChestChangedScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketQueryProductInfoScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartCocoonStageScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartFarmElementScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketRelicRecommendScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPinRelicScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPlanScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityTeleportScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSelectInclinationTextScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSelectPamSkinScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarEnhancedIdScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSetTrainWorldIdScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketStartTrialActivityScRsp.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueFinishScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java delete mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueVirtualItemInfoScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarPathScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarSkinScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneCaseScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUnlockTutorialScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUpdateFeatureSwitchScNotify.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUpdateGroupPropertyScRsp.java create mode 100644 src/main/java/emu/lunarcore/server/packet/send/PacketUpdateMarkChestScRsp.java create mode 100644 src/main/java/emu/lunarcore/util/Location.java diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ced53d..6802f8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,14 +19,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v5 with: distribution: temurin - java-version: '17' + java-version: '21' - name: Cache gradle files - uses: actions/cache@v2 + uses: actions/cache@v5 with: path: | ~/.gradle/caches @@ -38,7 +38,7 @@ jobs: - name: Run Gradle run: chmod +x gradlew && ./gradlew && ./gradlew jar - name: Upload build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v6 with: name: LunarCore path: LunarCore.jar diff --git a/README.md b/README.md index 0b8c7c9..7fa8de8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%202.5.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light) +![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%204.2.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
GitHub release (latest by date) GitHub GitHub last commit GitHub Workflow Status
Discord - LunarCore
@@ -24,9 +24,10 @@ # Running the server and client ### Prerequisites -* [Java 17 JDK](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) +* [Java 21 JDK](https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html) ### Recommended +* [Java 25 JDK](https://www.oracle.com/java/technologies/javase/jdk25-archive-downloads.html) * [MongoDB 4.0+](https://www.mongodb.com/try/download/community) ### Compiling the server diff --git a/build.gradle b/build.gradle index cae3efc..c39f2d3 100644 --- a/build.gradle +++ b/build.gradle @@ -23,10 +23,10 @@ plugins { compileJava.options.encoding = "UTF-8" compileTestJava.options.encoding = "UTF-8" -sourceCompatibility = JavaVersion.VERSION_17 -targetCompatibility = JavaVersion.VERSION_17 +sourceCompatibility = JavaVersion.VERSION_21 +targetCompatibility = JavaVersion.VERSION_21 -version = '1.3.0' +version = '2.0.0' var shouldGenerateProto = System.getenv("GENERATE_PROTO") == "true" System.out.println(shouldGenerateProto ? @@ -69,34 +69,34 @@ protobuf { dependencies { implementation fileTree(dir: 'lib', include: ['*.jar']) - implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.9' - implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.4.14' - implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.4.14' + implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.17' + implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.5.32' + implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.5.32' - implementation group: 'it.unimi.dsi', name: 'fastutil-core', version: '8.5.12' + implementation group: 'it.unimi.dsi', name: 'fastutil-core', version: '8.5.18' implementation group: 'org.reflections', name: 'reflections', version: '0.10.2' - implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1' - implementation group: 'us.hebi.quickbuf', name: 'quickbuf-runtime', version: '1.3.1' + implementation group: 'com.google.code.gson', name: 'gson', version: '2.13.2' + implementation group: 'us.hebi.quickbuf', name: 'quickbuf-runtime', version: '1.4' - implementation group: 'io.javalin', name: 'javalin', version: '5.6.3' + implementation group: 'io.javalin', name: 'javalin', version: '6.7.0' - implementation group: 'io.netty', name: 'netty-common', version: '4.1.101.Final' - implementation group: 'io.netty', name: 'netty-handler', version: '4.1.101.Final' - implementation group: 'io.netty', name: 'netty-transport-native-epoll', version: '4.1.101.Final' - implementation group: 'io.netty', name: 'netty-transport-native-kqueue', version: '4.1.101.Final' + implementation group: 'io.netty', name: 'netty-common', version: '4.1.132.Final' + implementation group: 'io.netty', name: 'netty-handler', version: '4.1.132.Final' + implementation group: 'io.netty', name: 'netty-transport-native-epoll', version: '4.1.132.Final' + implementation group: 'io.netty', name: 'netty-transport-native-kqueue', version: '4.1.132.Final' implementation group: 'dev.morphia.morphia', name: 'morphia-core', version: '2.3.9' implementation group: 'de.bwaldvogel', name: 'mongo-java-server', version: '1.44.0' implementation group: 'de.bwaldvogel', name: 'mongo-java-server-h2-backend', version: '1.44.0' - implementation group: 'org.jline', name: 'jline', version: '3.24.1' - implementation group: 'org.jline', name: 'jline-terminal-jansi', version: '3.24.1' + implementation group: 'org.jline', name: 'jline', version: '3.30.9' + implementation group: 'org.jline', name: 'jline-terminal-jansi', version: '3.30.9' protobuf files('proto/') - compileOnly 'org.projectlombok:lombok:1.18.30' - annotationProcessor 'org.projectlombok:lombok:1.18.30' + compileOnly 'org.projectlombok:lombok:1.18.42' + annotationProcessor 'org.projectlombok:lombok:1.18.42' } configurations.all { @@ -111,7 +111,7 @@ clean { application { // Define the main class for the application - mainClassName = 'emu.lunarcore.LunarCore' + mainClass.set('emu.lunarcore.LunarCore') } run { diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java index 5a90c5c..abd76b9 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ActivateFarmElementCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 world_level = 9; + * optional uint32 world_level = 1; */ private int worldLevel; /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 8; */ private int entityId; @@ -39,7 +39,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 world_level = 9; + * optional uint32 world_level = 1; * @return whether the worldLevel field is set */ public boolean hasWorldLevel() { @@ -47,7 +47,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 world_level = 9; + * optional uint32 world_level = 1; * @return this */ public ActivateFarmElementCsReq clearWorldLevel() { @@ -57,7 +57,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 world_level = 9; + * optional uint32 world_level = 1; * @return the worldLevel */ public int getWorldLevel() { @@ -65,7 +65,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 world_level = 9; + * optional uint32 world_level = 1; * @param value the worldLevel to set * @return this */ @@ -76,7 +76,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 8; * @return whether the entityId field is set */ public boolean hasEntityId() { @@ -84,7 +84,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 8; * @return this */ public ActivateFarmElementCsReq clearEntityId() { @@ -94,7 +94,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 8; * @return the entityId */ public int getEntityId() { @@ -102,7 +102,7 @@ public final class ActivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 8; * @param value the entityId to set * @return this */ @@ -177,11 +177,11 @@ public final class ActivateFarmElementCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(entityId); } } @@ -205,16 +205,16 @@ public final class ActivateFarmElementCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 8: { // worldLevel worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 64) { break; } } - case 104: { + case 64: { // entityId entityId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java index eb3bf58..756ec7d 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivateFarmElementScRspOuterClass.java @@ -19,20 +19,20 @@ public final class ActivateFarmElementScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 2; + * optional uint32 retcode = 4; + */ + private int retcode; + + /** + * optional uint32 entity_id = 9; */ private int entityId; /** - * optional uint32 world_level = 8; + * optional uint32 world_level = 11; */ private int worldLevel; - /** - * optional uint32 retcode = 11; - */ - private int retcode; - private ActivateFarmElementScRsp() { } @@ -44,99 +44,25 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 entity_id = 2; - * @return whether the entityId field is set + * optional uint32 retcode = 4; + * @return whether the retcode field is set */ - public boolean hasEntityId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 2; - * @return this - */ - public ActivateFarmElementScRsp clearEntityId() { - bitField0_ &= ~0x00000001; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 2; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 2; - * @param value the entityId to set - * @return this - */ - public ActivateFarmElementScRsp setEntityId(final int value) { - bitField0_ |= 0x00000001; - entityId = value; - return this; - } - - /** - * optional uint32 world_level = 8; - * @return whether the worldLevel field is set - */ - public boolean hasWorldLevel() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 world_level = 8; - * @return this - */ - public ActivateFarmElementScRsp clearWorldLevel() { - bitField0_ &= ~0x00000002; - worldLevel = 0; - return this; - } - - /** - * optional uint32 world_level = 8; - * @return the worldLevel - */ - public int getWorldLevel() { - return worldLevel; - } - - /** - * optional uint32 world_level = 8; - * @param value the worldLevel to set - * @return this - */ - public ActivateFarmElementScRsp setWorldLevel(final int value) { - bitField0_ |= 0x00000002; - worldLevel = value; - return this; - } - - /** - * optional uint32 retcode = 11; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return this */ public ActivateFarmElementScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -144,24 +70,98 @@ public final class ActivateFarmElementScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ public ActivateFarmElementScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 entity_id = 9; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 entity_id = 9; + * @return this + */ + public ActivateFarmElementScRsp clearEntityId() { + bitField0_ &= ~0x00000002; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 9; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 9; + * @param value the entityId to set + * @return this + */ + public ActivateFarmElementScRsp setEntityId(final int value) { + bitField0_ |= 0x00000002; + entityId = value; + return this; + } + + /** + * optional uint32 world_level = 11; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 world_level = 11; + * @return this + */ + public ActivateFarmElementScRsp clearWorldLevel() { + bitField0_ &= ~0x00000004; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 11; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 11; + * @param value the worldLevel to set + * @return this + */ + public ActivateFarmElementScRsp setWorldLevel(final int value) { + bitField0_ |= 0x00000004; + worldLevel = value; + return this; + } + @Override public ActivateFarmElementScRsp copyFrom(final ActivateFarmElementScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + retcode = other.retcode; entityId = other.entityId; worldLevel = other.worldLevel; - retcode = other.retcode; } return this; } @@ -172,15 +172,15 @@ public final class ActivateFarmElementScRspOuterClass { return this; } cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasEntityId()) { setEntityId(other.entityId); } if (other.hasWorldLevel()) { setWorldLevel(other.worldLevel); } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } return this; } @@ -191,9 +191,9 @@ public final class ActivateFarmElementScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + retcode = 0; entityId = 0; worldLevel = 0; - retcode = 0; return this; } @@ -217,24 +217,24 @@ public final class ActivateFarmElementScRspOuterClass { } ActivateFarmElementScRsp other = (ActivateFarmElementScRsp) o; return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) && (!hasEntityId() || entityId == other.entityId) - && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasRetcode() || retcode == other.retcode); + && (!hasWorldLevel() || worldLevel == other.worldLevel); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(entityId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(worldLevel); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 88); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(worldLevel); } } @@ -242,13 +242,13 @@ public final class ActivateFarmElementScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } return size; } @@ -260,18 +260,18 @@ public final class ActivateFarmElementScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // entityId - entityId = input.readUInt32(); + case 32: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 72) { break; } } - case 64: { - // worldLevel - worldLevel = input.readUInt32(); + case 72: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 88) { @@ -279,8 +279,8 @@ public final class ActivateFarmElementScRspOuterClass { } } case 88: { - // retcode - retcode = input.readUInt32(); + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public final class ActivateFarmElementScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } output.endObject(); } @@ -323,12 +323,23 @@ public final class ActivateFarmElementScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -2102099874: case -740565257: { if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { entityId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -340,17 +351,6 @@ public final class ActivateFarmElementScRspOuterClass { if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { worldLevel = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -411,11 +411,11 @@ public final class ActivateFarmElementScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - - static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java index 08726db..5469761 100644 --- a/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ActivityScheduleInfoOuterClass.java @@ -19,12 +19,12 @@ public final class ActivityScheduleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 6; */ private long beginTime; /** - * optional int64 end_time = 9; + * optional int64 end_time = 12; */ private long endTime; @@ -34,7 +34,7 @@ public final class ActivityScheduleInfoOuterClass { private int activityId; /** - * optional uint32 module_id = 12; + * optional uint32 module_id = 15; */ private int moduleId; @@ -49,7 +49,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 6; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -57,7 +57,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 6; * @return this */ public ActivityScheduleInfo clearBeginTime() { @@ -67,7 +67,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 6; * @return the beginTime */ public long getBeginTime() { @@ -75,7 +75,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 6; * @param value the beginTime to set * @return this */ @@ -86,7 +86,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 end_time = 9; + * optional int64 end_time = 12; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -94,7 +94,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 end_time = 9; + * optional int64 end_time = 12; * @return this */ public ActivityScheduleInfo clearEndTime() { @@ -104,7 +104,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 end_time = 9; + * optional int64 end_time = 12; * @return the endTime */ public long getEndTime() { @@ -112,7 +112,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional int64 end_time = 9; + * optional int64 end_time = 12; * @param value the endTime to set * @return this */ @@ -160,7 +160,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional uint32 module_id = 12; + * optional uint32 module_id = 15; * @return whether the moduleId field is set */ public boolean hasModuleId() { @@ -168,7 +168,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional uint32 module_id = 12; + * optional uint32 module_id = 15; * @return this */ public ActivityScheduleInfo clearModuleId() { @@ -178,7 +178,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional uint32 module_id = 12; + * optional uint32 module_id = 15; * @return the moduleId */ public int getModuleId() { @@ -186,7 +186,7 @@ public final class ActivityScheduleInfoOuterClass { } /** - * optional uint32 module_id = 12; + * optional uint32 module_id = 15; * @param value the moduleId to set * @return this */ @@ -273,11 +273,11 @@ public final class ActivityScheduleInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 96); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { @@ -285,7 +285,7 @@ public final class ActivityScheduleInfoOuterClass { output.writeUInt32NoTag(activityId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(moduleId); } } @@ -315,16 +315,16 @@ public final class ActivityScheduleInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 96) { break; } } - case 72: { + case 96: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000002; @@ -338,11 +338,11 @@ public final class ActivityScheduleInfoOuterClass { activityId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // moduleId moduleId = input.readUInt32(); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/AddRogueBuffScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/AddRogueBuffScNotifyOuterClass.java deleted file mode 100644 index 3b5f08c..0000000 --- a/src/generated/main/emu/lunarcore/proto/AddRogueBuffScNotifyOuterClass.java +++ /dev/null @@ -1,394 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class AddRogueBuffScNotifyOuterClass { - /** - * Protobuf type {@code AddRogueBuffScNotify} - */ - public static final class AddRogueBuffScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueBuffSource source = 4; - */ - private int source; - - /** - * optional .RogueBuff maze_buff_info = 1; - */ - private final RogueBuffOuterClass.RogueBuff mazeBuffInfo = RogueBuffOuterClass.RogueBuff.newInstance(); - - private AddRogueBuffScNotify() { - } - - /** - * @return a new empty instance of {@code AddRogueBuffScNotify} - */ - public static AddRogueBuffScNotify newInstance() { - return new AddRogueBuffScNotify(); - } - - /** - * optional .RogueBuffSource source = 4; - * @return whether the source field is set - */ - public boolean hasSource() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueBuffSource source = 4; - * @return this - */ - public AddRogueBuffScNotify clearSource() { - bitField0_ &= ~0x00000001; - source = 0; - return this; - } - - /** - * optional .RogueBuffSource source = 4; - * @return the source - */ - public RogueBuffSourceOuterClass.RogueBuffSource getSource() { - return RogueBuffSourceOuterClass.RogueBuffSource.forNumber(source); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link AddRogueBuffScNotify#getSource()}.getNumber(). - * - * @return numeric wire representation - */ - public int getSourceValue() { - return source; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueBuffSourceOuterClass.RogueBuffSource}. Setting an invalid value - * can cause {@link AddRogueBuffScNotify#getSource()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public AddRogueBuffScNotify setSourceValue(final int value) { - bitField0_ |= 0x00000001; - source = value; - return this; - } - - /** - * optional .RogueBuffSource source = 4; - * @param value the source to set - * @return this - */ - public AddRogueBuffScNotify setSource(final RogueBuffSourceOuterClass.RogueBuffSource value) { - bitField0_ |= 0x00000001; - source = value.getNumber(); - return this; - } - - /** - * optional .RogueBuff maze_buff_info = 1; - * @return whether the mazeBuffInfo field is set - */ - public boolean hasMazeBuffInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueBuff maze_buff_info = 1; - * @return this - */ - public AddRogueBuffScNotify clearMazeBuffInfo() { - bitField0_ &= ~0x00000002; - mazeBuffInfo.clear(); - return this; - } - - /** - * optional .RogueBuff maze_buff_info = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMazeBuffInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffOuterClass.RogueBuff getMazeBuffInfo() { - return mazeBuffInfo; - } - - /** - * optional .RogueBuff maze_buff_info = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffOuterClass.RogueBuff getMutableMazeBuffInfo() { - bitField0_ |= 0x00000002; - return mazeBuffInfo; - } - - /** - * optional .RogueBuff maze_buff_info = 1; - * @param value the mazeBuffInfo to set - * @return this - */ - public AddRogueBuffScNotify setMazeBuffInfo(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000002; - mazeBuffInfo.copyFrom(value); - return this; - } - - @Override - public AddRogueBuffScNotify copyFrom(final AddRogueBuffScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - source = other.source; - mazeBuffInfo.copyFrom(other.mazeBuffInfo); - } - return this; - } - - @Override - public AddRogueBuffScNotify mergeFrom(final AddRogueBuffScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSource()) { - setSourceValue(other.source); - } - if (other.hasMazeBuffInfo()) { - getMutableMazeBuffInfo().mergeFrom(other.mazeBuffInfo); - } - return this; - } - - @Override - public AddRogueBuffScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - source = 0; - mazeBuffInfo.clear(); - return this; - } - - @Override - public AddRogueBuffScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mazeBuffInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof AddRogueBuffScNotify)) { - return false; - } - AddRogueBuffScNotify other = (AddRogueBuffScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasSource() || source == other.source) - && (!hasMazeBuffInfo() || mazeBuffInfo.equals(other.mazeBuffInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeEnumNoTag(source); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(mazeBuffInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(source); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(mazeBuffInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public AddRogueBuffScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // source - final int value = input.readInt32(); - if (RogueBuffSourceOuterClass.RogueBuffSource.forNumber(value) != null) { - source = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // mazeBuffInfo - input.readMessage(mazeBuffInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.source, source, RogueBuffSourceOuterClass.RogueBuffSource.converter()); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.mazeBuffInfo, mazeBuffInfo); - } - output.endObject(); - } - - @Override - public AddRogueBuffScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -896505829: { - if (input.isAtField(FieldNames.source)) { - if (!input.trySkipNullValue()) { - final RogueBuffSourceOuterClass.RogueBuffSource value = input.readEnum(RogueBuffSourceOuterClass.RogueBuffSource.converter()); - if (value != null) { - source = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 1147143296: - case -1635080038: { - if (input.isAtField(FieldNames.mazeBuffInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(mazeBuffInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public AddRogueBuffScNotify clone() { - return new AddRogueBuffScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static AddRogueBuffScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new AddRogueBuffScNotify(), data).checkInitialized(); - } - - public static AddRogueBuffScNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new AddRogueBuffScNotify(), input).checkInitialized(); - } - - public static AddRogueBuffScNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new AddRogueBuffScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating AddRogueBuffScNotify messages - */ - public static MessageFactory getFactory() { - return AddRogueBuffScNotifyFactory.INSTANCE; - } - - private enum AddRogueBuffScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public AddRogueBuffScNotify create() { - return AddRogueBuffScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName source = FieldName.forField("source"); - - static final FieldName mazeBuffInfo = FieldName.forField("mazeBuffInfo", "maze_buff_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/AddRogueMiracleScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/AddRogueMiracleScNotifyOuterClass.java deleted file mode 100644 index afd547b..0000000 --- a/src/generated/main/emu/lunarcore/proto/AddRogueMiracleScNotifyOuterClass.java +++ /dev/null @@ -1,396 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class AddRogueMiracleScNotifyOuterClass { - /** - * Protobuf type {@code AddRogueMiracleScNotify} - */ - public static final class AddRogueMiracleScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueMiracleSource source = 15; - */ - private int source; - - /** - * optional .RogueMiracle rogue_miracle = 4; - */ - private final RogueMiracleOuterClass.RogueMiracle rogueMiracle = RogueMiracleOuterClass.RogueMiracle.newInstance(); - - private AddRogueMiracleScNotify() { - } - - /** - * @return a new empty instance of {@code AddRogueMiracleScNotify} - */ - public static AddRogueMiracleScNotify newInstance() { - return new AddRogueMiracleScNotify(); - } - - /** - * optional .RogueMiracleSource source = 15; - * @return whether the source field is set - */ - public boolean hasSource() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueMiracleSource source = 15; - * @return this - */ - public AddRogueMiracleScNotify clearSource() { - bitField0_ &= ~0x00000001; - source = 0; - return this; - } - - /** - * optional .RogueMiracleSource source = 15; - * @return the source - */ - public RogueMiracleSourceOuterClass.RogueMiracleSource getSource() { - return RogueMiracleSourceOuterClass.RogueMiracleSource.forNumber(source); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link AddRogueMiracleScNotify#getSource()}.getNumber(). - * - * @return numeric wire representation - */ - public int getSourceValue() { - return source; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueMiracleSourceOuterClass.RogueMiracleSource}. Setting an invalid value - * can cause {@link AddRogueMiracleScNotify#getSource()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public AddRogueMiracleScNotify setSourceValue(final int value) { - bitField0_ |= 0x00000001; - source = value; - return this; - } - - /** - * optional .RogueMiracleSource source = 15; - * @param value the source to set - * @return this - */ - public AddRogueMiracleScNotify setSource( - final RogueMiracleSourceOuterClass.RogueMiracleSource value) { - bitField0_ |= 0x00000001; - source = value.getNumber(); - return this; - } - - /** - * optional .RogueMiracle rogue_miracle = 4; - * @return whether the rogueMiracle field is set - */ - public boolean hasRogueMiracle() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueMiracle rogue_miracle = 4; - * @return this - */ - public AddRogueMiracleScNotify clearRogueMiracle() { - bitField0_ &= ~0x00000002; - rogueMiracle.clear(); - return this; - } - - /** - * optional .RogueMiracle rogue_miracle = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueMiracle()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleOuterClass.RogueMiracle getRogueMiracle() { - return rogueMiracle; - } - - /** - * optional .RogueMiracle rogue_miracle = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleOuterClass.RogueMiracle getMutableRogueMiracle() { - bitField0_ |= 0x00000002; - return rogueMiracle; - } - - /** - * optional .RogueMiracle rogue_miracle = 4; - * @param value the rogueMiracle to set - * @return this - */ - public AddRogueMiracleScNotify setRogueMiracle( - final RogueMiracleOuterClass.RogueMiracle value) { - bitField0_ |= 0x00000002; - rogueMiracle.copyFrom(value); - return this; - } - - @Override - public AddRogueMiracleScNotify copyFrom(final AddRogueMiracleScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - source = other.source; - rogueMiracle.copyFrom(other.rogueMiracle); - } - return this; - } - - @Override - public AddRogueMiracleScNotify mergeFrom(final AddRogueMiracleScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSource()) { - setSourceValue(other.source); - } - if (other.hasRogueMiracle()) { - getMutableRogueMiracle().mergeFrom(other.rogueMiracle); - } - return this; - } - - @Override - public AddRogueMiracleScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - source = 0; - rogueMiracle.clear(); - return this; - } - - @Override - public AddRogueMiracleScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracle.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof AddRogueMiracleScNotify)) { - return false; - } - AddRogueMiracleScNotify other = (AddRogueMiracleScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasSource() || source == other.source) - && (!hasRogueMiracle() || rogueMiracle.equals(other.rogueMiracle)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeEnumNoTag(source); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(rogueMiracle); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(source); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracle); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public AddRogueMiracleScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 120: { - // source - final int value = input.readInt32(); - if (RogueMiracleSourceOuterClass.RogueMiracleSource.forNumber(value) != null) { - source = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // rogueMiracle - input.readMessage(rogueMiracle); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.source, source, RogueMiracleSourceOuterClass.RogueMiracleSource.converter()); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueMiracle, rogueMiracle); - } - output.endObject(); - } - - @Override - public AddRogueMiracleScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -896505829: { - if (input.isAtField(FieldNames.source)) { - if (!input.trySkipNullValue()) { - final RogueMiracleSourceOuterClass.RogueMiracleSource value = input.readEnum(RogueMiracleSourceOuterClass.RogueMiracleSource.converter()); - if (value != null) { - source = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -1479551689: - case 1697369868: { - if (input.isAtField(FieldNames.rogueMiracle)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracle); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public AddRogueMiracleScNotify clone() { - return new AddRogueMiracleScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static AddRogueMiracleScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new AddRogueMiracleScNotify(), data).checkInitialized(); - } - - public static AddRogueMiracleScNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new AddRogueMiracleScNotify(), input).checkInitialized(); - } - - public static AddRogueMiracleScNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new AddRogueMiracleScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating AddRogueMiracleScNotify messages - */ - public static MessageFactory getFactory() { - return AddRogueMiracleScNotifyFactory.INSTANCE; - } - - private enum AddRogueMiracleScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public AddRogueMiracleScNotify create() { - return AddRogueMiracleScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName source = FieldName.forField("source"); - - static final FieldName rogueMiracle = FieldName.forField("rogueMiracle", "rogue_miracle"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java index 64ac440..31e8ef4 100644 --- a/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ApplyFriendCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ApplyFriendCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 7; + * optional uint32 uid = 15; */ private int uid; @@ -39,7 +39,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 15; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 15; * @return this */ public ApplyFriendCsReq clearUid() { @@ -57,7 +57,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 15; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public final class ApplyFriendCsReqOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 15; * @param value the uid to set * @return this */ @@ -202,7 +202,7 @@ public final class ApplyFriendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { @@ -230,7 +230,7 @@ public final class ApplyFriendCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 120: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java index 4e00bf4..d51bcc5 100644 --- a/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ArchiveDataOuterClass.java @@ -20,25 +20,34 @@ public final class ArchiveDataOuterClass { public static final class ArchiveData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; + /** + * repeated uint32 GLHNOAKHHPD = 2; + */ + private final RepeatedInt gLHNOAKHHPD = RepeatedInt.newEmptyInstance(); + /** *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
+     *  guessed
      * 
* - * repeated uint32 archive_equipment_id_list = 12; + * repeated uint32 archive_equipment_id_list = 7; */ private final RepeatedInt archiveEquipmentIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .RelicArchive relic_list = 2; + * repeated uint32 OOICHLFIHLF = 12; */ - private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicArchiveOuterClass.RelicArchive.getFactory()); + private final RepeatedInt oOICHLFIHLF = RepeatedInt.newEmptyInstance(); /** - * repeated .MonsterArchive archive_monster_id_list = 5; + * repeated .MonsterArchive monster_list = 6; */ - private final RepeatedMessage archiveMonsterIdList = RepeatedMessage.newEmptyInstance(MonsterArchiveOuterClass.MonsterArchive.getFactory()); + private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(MonsterArchiveOuterClass.MonsterArchive.getFactory()); + + /** + * repeated .RelicArchive relic_list = 8; + */ + private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicArchiveOuterClass.RelicArchive.getFactory()); private ArchiveData() { } @@ -51,40 +60,105 @@ public final class ArchiveDataOuterClass { } /** - *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
-     * 
- * - * repeated uint32 archive_equipment_id_list = 12; - * @return whether the archiveEquipmentIdList field is set + * repeated uint32 GLHNOAKHHPD = 2; + * @return whether the gLHNOAKHHPD field is set */ - public boolean hasArchiveEquipmentIdList() { + public boolean hasGLHNOAKHHPD() { return (bitField0_ & 0x00000001) != 0; } + /** + * repeated uint32 GLHNOAKHHPD = 2; + * @return this + */ + public ArchiveData clearGLHNOAKHHPD() { + bitField0_ &= ~0x00000001; + gLHNOAKHHPD.clear(); + return this; + } + + /** + * repeated uint32 GLHNOAKHHPD = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGLHNOAKHHPD()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getGLHNOAKHHPD() { + return gLHNOAKHHPD; + } + + /** + * repeated uint32 GLHNOAKHHPD = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableGLHNOAKHHPD() { + bitField0_ |= 0x00000001; + return gLHNOAKHHPD; + } + + /** + * repeated uint32 GLHNOAKHHPD = 2; + * @param value the gLHNOAKHHPD to add + * @return this + */ + public ArchiveData addGLHNOAKHHPD(final int value) { + bitField0_ |= 0x00000001; + gLHNOAKHHPD.add(value); + return this; + } + + /** + * repeated uint32 GLHNOAKHHPD = 2; + * @param values the gLHNOAKHHPD to add + * @return this + */ + public ArchiveData addAllGLHNOAKHHPD(final int... values) { + bitField0_ |= 0x00000001; + gLHNOAKHHPD.addAll(values); + return this; + } + /** *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
+     *  guessed
      * 
* - * repeated uint32 archive_equipment_id_list = 12; + * repeated uint32 archive_equipment_id_list = 7; + * @return whether the archiveEquipmentIdList field is set + */ + public boolean hasArchiveEquipmentIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 archive_equipment_id_list = 7; * @return this */ public ArchiveData clearArchiveEquipmentIdList() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; archiveEquipmentIdList.clear(); return this; } /** *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
+     *  guessed
      * 
* - * repeated uint32 archive_equipment_id_list = 12; + * repeated uint32 archive_equipment_id_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -99,11 +173,10 @@ public final class ArchiveDataOuterClass { /** *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
+     *  guessed
      * 
* - * repeated uint32 archive_equipment_id_list = 12; + * repeated uint32 archive_equipment_id_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -112,62 +185,196 @@ public final class ArchiveDataOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableArchiveEquipmentIdList() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; return archiveEquipmentIdList; } /** *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
+     *  guessed
      * 
* - * repeated uint32 archive_equipment_id_list = 12; + * repeated uint32 archive_equipment_id_list = 7; * @param value the archiveEquipmentIdList to add * @return this */ public ArchiveData addArchiveEquipmentIdList(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; archiveEquipmentIdList.add(value); return this; } /** *
-     *  repeated uint32 archive_missing_avatar_id_list = 2; // isnt used
-     *  repeated uint32 archive_missing_equipment_id_list = 14; // isnt used
+     *  guessed
      * 
* - * repeated uint32 archive_equipment_id_list = 12; + * repeated uint32 archive_equipment_id_list = 7; * @param values the archiveEquipmentIdList to add * @return this */ public ArchiveData addAllArchiveEquipmentIdList(final int... values) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; archiveEquipmentIdList.addAll(values); return this; } /** - * repeated .RelicArchive relic_list = 2; - * @return whether the relicList field is set + * repeated uint32 OOICHLFIHLF = 12; + * @return whether the oOICHLFIHLF field is set */ - public boolean hasRelicList() { - return (bitField0_ & 0x00000002) != 0; + public boolean hasOOICHLFIHLF() { + return (bitField0_ & 0x00000004) != 0; } /** - * repeated .RelicArchive relic_list = 2; + * repeated uint32 OOICHLFIHLF = 12; + * @return this + */ + public ArchiveData clearOOICHLFIHLF() { + bitField0_ &= ~0x00000004; + oOICHLFIHLF.clear(); + return this; + } + + /** + * repeated uint32 OOICHLFIHLF = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOOICHLFIHLF()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOOICHLFIHLF() { + return oOICHLFIHLF; + } + + /** + * repeated uint32 OOICHLFIHLF = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableOOICHLFIHLF() { + bitField0_ |= 0x00000004; + return oOICHLFIHLF; + } + + /** + * repeated uint32 OOICHLFIHLF = 12; + * @param value the oOICHLFIHLF to add + * @return this + */ + public ArchiveData addOOICHLFIHLF(final int value) { + bitField0_ |= 0x00000004; + oOICHLFIHLF.add(value); + return this; + } + + /** + * repeated uint32 OOICHLFIHLF = 12; + * @param values the oOICHLFIHLF to add + * @return this + */ + public ArchiveData addAllOOICHLFIHLF(final int... values) { + bitField0_ |= 0x00000004; + oOICHLFIHLF.addAll(values); + return this; + } + + /** + * repeated .MonsterArchive monster_list = 6; + * @return whether the monsterList field is set + */ + public boolean hasMonsterList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .MonsterArchive monster_list = 6; + * @return this + */ + public ArchiveData clearMonsterList() { + bitField0_ &= ~0x00000008; + monsterList.clear(); + return this; + } + + /** + * repeated .MonsterArchive monster_list = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMonsterList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMonsterList() { + return monsterList; + } + + /** + * repeated .MonsterArchive monster_list = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMonsterList() { + bitField0_ |= 0x00000008; + return monsterList; + } + + /** + * repeated .MonsterArchive monster_list = 6; + * @param value the monsterList to add + * @return this + */ + public ArchiveData addMonsterList(final MonsterArchiveOuterClass.MonsterArchive value) { + bitField0_ |= 0x00000008; + monsterList.add(value); + return this; + } + + /** + * repeated .MonsterArchive monster_list = 6; + * @param values the monsterList to add + * @return this + */ + public ArchiveData addAllMonsterList(final MonsterArchiveOuterClass.MonsterArchive... values) { + bitField0_ |= 0x00000008; + monsterList.addAll(values); + return this; + } + + /** + * repeated .RelicArchive relic_list = 8; + * @return whether the relicList field is set + */ + public boolean hasRelicList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .RelicArchive relic_list = 8; * @return this */ public ArchiveData clearRelicList() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000010; relicList.clear(); return this; } /** - * repeated .RelicArchive relic_list = 2; + * repeated .RelicArchive relic_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -181,7 +388,7 @@ public final class ArchiveDataOuterClass { } /** - * repeated .RelicArchive relic_list = 2; + * repeated .RelicArchive relic_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -190,111 +397,42 @@ public final class ArchiveDataOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRelicList() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; return relicList; } /** - * repeated .RelicArchive relic_list = 2; + * repeated .RelicArchive relic_list = 8; * @param value the relicList to add * @return this */ public ArchiveData addRelicList(final RelicArchiveOuterClass.RelicArchive value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; relicList.add(value); return this; } /** - * repeated .RelicArchive relic_list = 2; + * repeated .RelicArchive relic_list = 8; * @param values the relicList to add * @return this */ public ArchiveData addAllRelicList(final RelicArchiveOuterClass.RelicArchive... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; relicList.addAll(values); return this; } - /** - * repeated .MonsterArchive archive_monster_id_list = 5; - * @return whether the archiveMonsterIdList field is set - */ - public boolean hasArchiveMonsterIdList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .MonsterArchive archive_monster_id_list = 5; - * @return this - */ - public ArchiveData clearArchiveMonsterIdList() { - bitField0_ &= ~0x00000004; - archiveMonsterIdList.clear(); - return this; - } - - /** - * repeated .MonsterArchive archive_monster_id_list = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableArchiveMonsterIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getArchiveMonsterIdList() { - return archiveMonsterIdList; - } - - /** - * repeated .MonsterArchive archive_monster_id_list = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableArchiveMonsterIdList( - ) { - bitField0_ |= 0x00000004; - return archiveMonsterIdList; - } - - /** - * repeated .MonsterArchive archive_monster_id_list = 5; - * @param value the archiveMonsterIdList to add - * @return this - */ - public ArchiveData addArchiveMonsterIdList( - final MonsterArchiveOuterClass.MonsterArchive value) { - bitField0_ |= 0x00000004; - archiveMonsterIdList.add(value); - return this; - } - - /** - * repeated .MonsterArchive archive_monster_id_list = 5; - * @param values the archiveMonsterIdList to add - * @return this - */ - public ArchiveData addAllArchiveMonsterIdList( - final MonsterArchiveOuterClass.MonsterArchive... values) { - bitField0_ |= 0x00000004; - archiveMonsterIdList.addAll(values); - return this; - } - @Override public ArchiveData copyFrom(final ArchiveData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + gLHNOAKHHPD.copyFrom(other.gLHNOAKHHPD); archiveEquipmentIdList.copyFrom(other.archiveEquipmentIdList); + oOICHLFIHLF.copyFrom(other.oOICHLFIHLF); + monsterList.copyFrom(other.monsterList); relicList.copyFrom(other.relicList); - archiveMonsterIdList.copyFrom(other.archiveMonsterIdList); } return this; } @@ -305,15 +443,21 @@ public final class ArchiveDataOuterClass { return this; } cachedSize = -1; + if (other.hasGLHNOAKHHPD()) { + getMutableGLHNOAKHHPD().addAll(other.gLHNOAKHHPD); + } if (other.hasArchiveEquipmentIdList()) { getMutableArchiveEquipmentIdList().addAll(other.archiveEquipmentIdList); } + if (other.hasOOICHLFIHLF()) { + getMutableOOICHLFIHLF().addAll(other.oOICHLFIHLF); + } + if (other.hasMonsterList()) { + getMutableMonsterList().addAll(other.monsterList); + } if (other.hasRelicList()) { getMutableRelicList().addAll(other.relicList); } - if (other.hasArchiveMonsterIdList()) { - getMutableArchiveMonsterIdList().addAll(other.archiveMonsterIdList); - } return this; } @@ -324,9 +468,11 @@ public final class ArchiveDataOuterClass { } cachedSize = -1; bitField0_ = 0; + gLHNOAKHHPD.clear(); archiveEquipmentIdList.clear(); + oOICHLFIHLF.clear(); + monsterList.clear(); relicList.clear(); - archiveMonsterIdList.clear(); return this; } @@ -337,9 +483,11 @@ public final class ArchiveDataOuterClass { } cachedSize = -1; bitField0_ = 0; + gLHNOAKHHPD.clear(); archiveEquipmentIdList.clear(); + oOICHLFIHLF.clear(); + monsterList.clearQuick(); relicList.clearQuick(); - archiveMonsterIdList.clearQuick(); return this; } @@ -353,29 +501,43 @@ public final class ArchiveDataOuterClass { } ArchiveData other = (ArchiveData) o; return bitField0_ == other.bitField0_ + && (!hasGLHNOAKHHPD() || gLHNOAKHHPD.equals(other.gLHNOAKHHPD)) && (!hasArchiveEquipmentIdList() || archiveEquipmentIdList.equals(other.archiveEquipmentIdList)) - && (!hasRelicList() || relicList.equals(other.relicList)) - && (!hasArchiveMonsterIdList() || archiveMonsterIdList.equals(other.archiveMonsterIdList)); + && (!hasOOICHLFIHLF() || oOICHLFIHLF.equals(other.oOICHLFIHLF)) + && (!hasMonsterList() || monsterList.equals(other.monsterList)) + && (!hasRelicList() || relicList.equals(other.relicList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < archiveEquipmentIdList.length(); i++) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(archiveEquipmentIdList.array()[i]); + for (int i = 0; i < gLHNOAKHHPD.length(); i++) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(gLHNOAKHHPD.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(relicList.get(i)); + for (int i = 0; i < archiveEquipmentIdList.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(archiveEquipmentIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < archiveMonsterIdList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(archiveMonsterIdList.get(i)); + for (int i = 0; i < oOICHLFIHLF.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(oOICHLFIHLF.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < monsterList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(monsterList.get(i)); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < relicList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(relicList.get(i)); } } } @@ -384,13 +546,19 @@ public final class ArchiveDataOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * archiveEquipmentIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveEquipmentIdList); + size += (1 * gLHNOAKHHPD.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(gLHNOAKHHPD); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); + size += (1 * archiveEquipmentIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveEquipmentIdList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * archiveMonsterIdList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(archiveMonsterIdList); + size += (1 * oOICHLFIHLF.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(oOICHLFIHLF); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } return size; } @@ -402,27 +570,45 @@ public final class ArchiveDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { - // archiveEquipmentIdList [packed=true] - input.readPackedUInt32(archiveEquipmentIdList, tag); + case 18: { + // gLHNOAKHHPD [packed=true] + input.readPackedUInt32(gLHNOAKHHPD, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 58) { break; } } - case 18: { + case 58: { + // archiveEquipmentIdList [packed=true] + input.readPackedUInt32(archiveEquipmentIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // oOICHLFIHLF [packed=true] + input.readPackedUInt32(oOICHLFIHLF, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // monsterList + tag = input.readRepeatedMessage(monsterList, tag); + bitField0_ |= 0x00000008; + if (tag != 66) { + break; + } + } + case 66: { // relicList tag = input.readRepeatedMessage(relicList, tag); - bitField0_ |= 0x00000002; - if (tag != 42) { - break; - } - } - case 42: { - // archiveMonsterIdList - tag = input.readRepeatedMessage(archiveMonsterIdList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -437,10 +623,22 @@ public final class ArchiveDataOuterClass { tag = input.readTag(); break; } - case 96: { + case 16: { + // gLHNOAKHHPD [packed=false] + tag = input.readRepeatedUInt32(gLHNOAKHHPD, tag); + bitField0_ |= 0x00000001; + break; + } + case 56: { // archiveEquipmentIdList [packed=false] tag = input.readRepeatedUInt32(archiveEquipmentIdList, tag); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + break; + } + case 96: { + // oOICHLFIHLF [packed=false] + tag = input.readRepeatedUInt32(oOICHLFIHLF, tag); + bitField0_ |= 0x00000004; break; } } @@ -451,13 +649,19 @@ public final class ArchiveDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.archiveEquipmentIdList, archiveEquipmentIdList); + output.writeRepeatedUInt32(FieldNames.gLHNOAKHHPD, gLHNOAKHHPD); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.relicList, relicList); + output.writeRepeatedUInt32(FieldNames.archiveEquipmentIdList, archiveEquipmentIdList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.archiveMonsterIdList, archiveMonsterIdList); + output.writeRepeatedUInt32(FieldNames.oOICHLFIHLF, oOICHLFIHLF); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.monsterList, monsterList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.relicList, relicList); } output.endObject(); } @@ -469,12 +673,46 @@ public final class ArchiveDataOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -246412254: { + if (input.isAtField(FieldNames.gLHNOAKHHPD)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(gLHNOAKHHPD); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 1521227365: case 967463252: { if (input.isAtField(FieldNames.archiveEquipmentIdList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(archiveEquipmentIdList); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 857548129: { + if (input.isAtField(FieldNames.oOICHLFIHLF)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(oOICHLFIHLF); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1541271448: + case 552401379: { + if (input.isAtField(FieldNames.monsterList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(monsterList); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -486,19 +724,7 @@ public final class ArchiveDataOuterClass { if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(relicList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 912174897: - case 1817787488: { - if (input.isAtField(FieldNames.archiveMonsterIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(archiveMonsterIdList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -557,11 +783,15 @@ public final class ArchiveDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName gLHNOAKHHPD = FieldName.forField("GLHNOAKHHPD"); + static final FieldName archiveEquipmentIdList = FieldName.forField("archiveEquipmentIdList", "archive_equipment_id_list"); - static final FieldName relicList = FieldName.forField("relicList", "relic_list"); + static final FieldName oOICHLFIHLF = FieldName.forField("OOICHLFIHLF"); - static final FieldName archiveMonsterIdList = FieldName.forField("archiveMonsterIdList", "archive_monster_id_list"); + static final FieldName monsterList = FieldName.forField("monsterList", "monster_list"); + + static final FieldName relicList = FieldName.forField("relicList", "relic_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AssistMonsterWaveOuterClass.java b/src/generated/main/emu/lunarcore/proto/AssistMonsterWaveOuterClass.java index 832153c..aceede1 100644 --- a/src/generated/main/emu/lunarcore/proto/AssistMonsterWaveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AssistMonsterWaveOuterClass.java @@ -20,7 +20,7 @@ public final class AssistMonsterWaveOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; */ private final RepeatedInt entityIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class AssistMonsterWaveOuterClass { } /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; * @return whether the entityIdList field is set */ public boolean hasEntityIdList() { @@ -43,7 +43,7 @@ public final class AssistMonsterWaveOuterClass { } /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; * @return this */ public AssistMonsterWave clearEntityIdList() { @@ -53,7 +53,7 @@ public final class AssistMonsterWaveOuterClass { } /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class AssistMonsterWaveOuterClass { } /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class AssistMonsterWaveOuterClass { } /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; * @param value the entityIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class AssistMonsterWaveOuterClass { } /** - * repeated uint32 entity_id_list = 4; + * repeated uint32 entity_id_list = 2; * @param values the entityIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class AssistMonsterWaveOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entityIdList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(entityIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class AssistMonsterWaveOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 18: { // entityIdList [packed=true] input.readPackedUInt32(entityIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class AssistMonsterWaveOuterClass { tag = input.readTag(); break; } - case 32: { + case 16: { // entityIdList [packed=false] tag = input.readRepeatedUInt32(entityIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java index 53b79b0..a63eaf6 100644 --- a/src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AssistSimpleInfoOuterClass.java @@ -19,25 +19,25 @@ public final class AssistSimpleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 2; - */ - private int avatarId; - - /** - * optional uint32 pos = 6; + * optional uint32 pos = 2; */ private int pos; /** - * optional uint32 level = 12; + * optional uint32 avatar_id = 3; */ - private int level; + private int avatarId; /** - * optional uint32 dressed_skin_id = 15; + * optional uint32 dressed_skin_id = 9; */ private int dressedSkinId; + /** + * optional uint32 level = 15; + */ + private int level; + private AssistSimpleInfo() { } @@ -49,62 +49,25 @@ public final class AssistSimpleInfoOuterClass { } /** - * optional uint32 avatar_id = 2; - * @return whether the avatarId field is set + * optional uint32 pos = 2; + * @return whether the pos field is set */ - public boolean hasAvatarId() { + public boolean hasPos() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 2; - * @return this - */ - public AssistSimpleInfo clearAvatarId() { - bitField0_ &= ~0x00000001; - avatarId = 0; - return this; - } - - /** - * optional uint32 avatar_id = 2; - * @return the avatarId - */ - public int getAvatarId() { - return avatarId; - } - - /** - * optional uint32 avatar_id = 2; - * @param value the avatarId to set - * @return this - */ - public AssistSimpleInfo setAvatarId(final int value) { - bitField0_ |= 0x00000001; - avatarId = value; - return this; - } - - /** - * optional uint32 pos = 6; - * @return whether the pos field is set - */ - public boolean hasPos() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 pos = 6; + * optional uint32 pos = 2; * @return this */ public AssistSimpleInfo clearPos() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; pos = 0; return this; } /** - * optional uint32 pos = 6; + * optional uint32 pos = 2; * @return the pos */ public int getPos() { @@ -112,73 +75,73 @@ public final class AssistSimpleInfoOuterClass { } /** - * optional uint32 pos = 6; + * optional uint32 pos = 2; * @param value the pos to set * @return this */ public AssistSimpleInfo setPos(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; pos = value; return this; } /** - * optional uint32 level = 12; - * @return whether the level field is set + * optional uint32 avatar_id = 3; + * @return whether the avatarId field is set */ - public boolean hasLevel() { + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 3; + * @return this + */ + public AssistSimpleInfo clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 3; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 3; + * @param value the avatarId to set + * @return this + */ + public AssistSimpleInfo setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + /** + * optional uint32 dressed_skin_id = 9; + * @return whether the dressedSkinId field is set + */ + public boolean hasDressedSkinId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 level = 12; - * @return this - */ - public AssistSimpleInfo clearLevel() { - bitField0_ &= ~0x00000004; - level = 0; - return this; - } - - /** - * optional uint32 level = 12; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 12; - * @param value the level to set - * @return this - */ - public AssistSimpleInfo setLevel(final int value) { - bitField0_ |= 0x00000004; - level = value; - return this; - } - - /** - * optional uint32 dressed_skin_id = 15; - * @return whether the dressedSkinId field is set - */ - public boolean hasDressedSkinId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 dressed_skin_id = 15; + * optional uint32 dressed_skin_id = 9; * @return this */ public AssistSimpleInfo clearDressedSkinId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; dressedSkinId = 0; return this; } /** - * optional uint32 dressed_skin_id = 15; + * optional uint32 dressed_skin_id = 9; * @return the dressedSkinId */ public int getDressedSkinId() { @@ -186,25 +149,62 @@ public final class AssistSimpleInfoOuterClass { } /** - * optional uint32 dressed_skin_id = 15; + * optional uint32 dressed_skin_id = 9; * @param value the dressedSkinId to set * @return this */ public AssistSimpleInfo setDressedSkinId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; dressedSkinId = value; return this; } + /** + * optional uint32 level = 15; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 level = 15; + * @return this + */ + public AssistSimpleInfo clearLevel() { + bitField0_ &= ~0x00000008; + level = 0; + return this; + } + + /** + * optional uint32 level = 15; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 15; + * @param value the level to set + * @return this + */ + public AssistSimpleInfo setLevel(final int value) { + bitField0_ |= 0x00000008; + level = value; + return this; + } + @Override public AssistSimpleInfo copyFrom(final AssistSimpleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; pos = other.pos; - level = other.level; + avatarId = other.avatarId; dressedSkinId = other.dressedSkinId; + level = other.level; } return this; } @@ -215,18 +215,18 @@ public final class AssistSimpleInfoOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } if (other.hasPos()) { setPos(other.pos); } - if (other.hasLevel()) { - setLevel(other.level); + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); } if (other.hasDressedSkinId()) { setDressedSkinId(other.dressedSkinId); } + if (other.hasLevel()) { + setLevel(other.level); + } return this; } @@ -237,10 +237,10 @@ public final class AssistSimpleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; pos = 0; - level = 0; + avatarId = 0; dressedSkinId = 0; + level = 0; return this; } @@ -264,29 +264,29 @@ public final class AssistSimpleInfoOuterClass { } AssistSimpleInfo other = (AssistSimpleInfo) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) && (!hasPos() || pos == other.pos) - && (!hasLevel() || level == other.level) - && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId); + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) + && (!hasLevel() || level == other.level); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); output.writeUInt32NoTag(pos); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(avatarId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(dressedSkinId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(dressedSkinId); + output.writeUInt32NoTag(level); } } @@ -294,16 +294,16 @@ public final class AssistSimpleInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } return size; } @@ -316,26 +316,26 @@ public final class AssistSimpleInfoOuterClass { while (true) { switch (tag) { case 16: { - // avatarId - avatarId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { // pos pos = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 24) { break; } } - case 96: { - // level - level = input.readUInt32(); + case 24: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // dressedSkinId + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 120) { @@ -343,8 +343,8 @@ public final class AssistSimpleInfoOuterClass { } } case 120: { - // dressedSkinId - dressedSkinId = input.readUInt32(); + // level + level = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,16 +369,16 @@ public final class AssistSimpleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.pos, pos); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + output.writeUInt32(FieldNames.level, level); } output.endObject(); } @@ -390,11 +390,10 @@ public final class AssistSimpleInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 111188: { + if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + pos = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -402,10 +401,11 @@ public final class AssistSimpleInfoOuterClass { } break; } - case 111188: { - if (input.isAtField(FieldNames.pos)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - pos = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -413,22 +413,22 @@ public final class AssistSimpleInfoOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { - if (!input.trySkipNullValue()) { - level = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -407000018: case 2012697844: { if (input.isAtField(FieldNames.dressedSkinId)) { if (!input.trySkipNullValue()) { dressedSkinId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -489,13 +489,13 @@ public final class AssistSimpleInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName pos = FieldName.forField("pos"); - static final FieldName level = FieldName.forField("level"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); + + static final FieldName level = FieldName.forField("level"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java index 20712dc..cf4e68f 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class AvatarExpUpCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 3; */ private int baseAvatarId; /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 9; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 3; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -47,7 +47,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 3; * @return this */ public AvatarExpUpCsReq clearBaseAvatarId() { @@ -57,7 +57,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 3; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -65,7 +65,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 3; * @param value the baseAvatarId to set * @return this */ @@ -76,7 +76,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 9; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 9; * @return this */ public AvatarExpUpCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class AvatarExpUpCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 4; + * optional .ItemCostList item_cost_list = 9; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class AvatarExpUpCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 74); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class AvatarExpUpCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 24: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { + case 74: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java index 4a86c20..d21ee12 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarExpUpScRspOuterClass.java @@ -20,12 +20,12 @@ public final class AvatarExpUpScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 14; */ private int retcode; /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +40,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 14; * @return this */ public AvatarExpUpScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +85,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; * @return this */ public AvatarExpUpScRsp clearReturnItemList() { @@ -95,7 +95,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; * @param value the returnItemList to add * @return this */ @@ -134,7 +134,7 @@ public final class AvatarExpUpScRspOuterClass { } /** - * repeated .PileItem return_item_list = 11; + * repeated .PileItem return_item_list = 6; * @param values the returnItemList to add * @return this */ @@ -210,12 +210,12 @@ public final class AvatarExpUpScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 50); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +240,16 @@ public final class AvatarExpUpScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 50) { break; } } - case 90: { + case 50: { // returnItemList tag = input.readRepeatedMessage(returnItemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java index 27c36dc..05465f5 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarOuterClass.java @@ -11,7 +11,6 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; public final class AvatarOuterClass { /** @@ -21,65 +20,45 @@ public final class AvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 first_met_timestamp = 4; + * optional uint64 first_met_timestamp = 2; */ private long firstMetTimestamp; /** - * optional uint32 level = 1; - */ - private int level; - - /** - * optional uint32 equipment_unique_id = 3; - */ - private int equipmentUniqueId; - - /** - * optional uint32 dressed_skin_id = 8; - */ - private int dressedSkinId; - - /** - * optional uint32 promotion = 9; + * optional uint32 promotion = 3; */ private int promotion; /** - * optional uint32 exp = 10; + * optional uint32 level = 8; */ - private int exp; + private int level; /** - * optional uint32 rank = 13; - */ - private int rank; - - /** - * optional uint32 base_avatar_id = 15; + * optional uint32 base_avatar_id = 9; */ private int baseAvatarId; /** - * optional bool is_marked = 6; + * optional uint32 changed_avatar_type = 13; + */ + private int changedAvatarType; + + /** + * optional uint32 exp = 14; + */ + private int exp; + + /** + * optional bool is_marked = 5; */ private boolean isMarked; /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; */ private final RepeatedInt takenRewards = RepeatedInt.newEmptyInstance(); - /** - * repeated .EquipRelic equip_relic_list = 2; - */ - private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - */ - private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); - private Avatar() { } @@ -91,7 +70,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 4; + * optional uint64 first_met_timestamp = 2; * @return whether the firstMetTimestamp field is set */ public boolean hasFirstMetTimestamp() { @@ -99,7 +78,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 4; + * optional uint64 first_met_timestamp = 2; * @return this */ public Avatar clearFirstMetTimestamp() { @@ -109,7 +88,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 4; + * optional uint64 first_met_timestamp = 2; * @return the firstMetTimestamp */ public long getFirstMetTimestamp() { @@ -117,7 +96,7 @@ public final class AvatarOuterClass { } /** - * optional uint64 first_met_timestamp = 4; + * optional uint64 first_met_timestamp = 2; * @param value the firstMetTimestamp to set * @return this */ @@ -128,136 +107,25 @@ public final class AvatarOuterClass { } /** - * optional uint32 level = 1; - * @return whether the level field is set + * optional uint32 promotion = 3; + * @return whether the promotion field is set */ - public boolean hasLevel() { + public boolean hasPromotion() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 level = 1; - * @return this - */ - public Avatar clearLevel() { - bitField0_ &= ~0x00000002; - level = 0; - return this; - } - - /** - * optional uint32 level = 1; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 1; - * @param value the level to set - * @return this - */ - public Avatar setLevel(final int value) { - bitField0_ |= 0x00000002; - level = value; - return this; - } - - /** - * optional uint32 equipment_unique_id = 3; - * @return whether the equipmentUniqueId field is set - */ - public boolean hasEquipmentUniqueId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 equipment_unique_id = 3; - * @return this - */ - public Avatar clearEquipmentUniqueId() { - bitField0_ &= ~0x00000004; - equipmentUniqueId = 0; - return this; - } - - /** - * optional uint32 equipment_unique_id = 3; - * @return the equipmentUniqueId - */ - public int getEquipmentUniqueId() { - return equipmentUniqueId; - } - - /** - * optional uint32 equipment_unique_id = 3; - * @param value the equipmentUniqueId to set - * @return this - */ - public Avatar setEquipmentUniqueId(final int value) { - bitField0_ |= 0x00000004; - equipmentUniqueId = value; - return this; - } - - /** - * optional uint32 dressed_skin_id = 8; - * @return whether the dressedSkinId field is set - */ - public boolean hasDressedSkinId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 dressed_skin_id = 8; - * @return this - */ - public Avatar clearDressedSkinId() { - bitField0_ &= ~0x00000008; - dressedSkinId = 0; - return this; - } - - /** - * optional uint32 dressed_skin_id = 8; - * @return the dressedSkinId - */ - public int getDressedSkinId() { - return dressedSkinId; - } - - /** - * optional uint32 dressed_skin_id = 8; - * @param value the dressedSkinId to set - * @return this - */ - public Avatar setDressedSkinId(final int value) { - bitField0_ |= 0x00000008; - dressedSkinId = value; - return this; - } - - /** - * optional uint32 promotion = 9; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 promotion = 9; + * optional uint32 promotion = 3; * @return this */ public Avatar clearPromotion() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000002; promotion = 0; return this; } /** - * optional uint32 promotion = 9; + * optional uint32 promotion = 3; * @return the promotion */ public int getPromotion() { @@ -265,18 +133,129 @@ public final class AvatarOuterClass { } /** - * optional uint32 promotion = 9; + * optional uint32 promotion = 3; * @param value the promotion to set * @return this */ public Avatar setPromotion(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000002; promotion = value; return this; } /** - * optional uint32 exp = 10; + * optional uint32 level = 8; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 level = 8; + * @return this + */ + public Avatar clearLevel() { + bitField0_ &= ~0x00000004; + level = 0; + return this; + } + + /** + * optional uint32 level = 8; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 8; + * @param value the level to set + * @return this + */ + public Avatar setLevel(final int value) { + bitField0_ |= 0x00000004; + level = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return this + */ + public Avatar clearBaseAvatarId() { + bitField0_ &= ~0x00000008; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 9; + * @param value the baseAvatarId to set + * @return this + */ + public Avatar setBaseAvatarId(final int value) { + bitField0_ |= 0x00000008; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 changed_avatar_type = 13; + * @return whether the changedAvatarType field is set + */ + public boolean hasChangedAvatarType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 changed_avatar_type = 13; + * @return this + */ + public Avatar clearChangedAvatarType() { + bitField0_ &= ~0x00000010; + changedAvatarType = 0; + return this; + } + + /** + * optional uint32 changed_avatar_type = 13; + * @return the changedAvatarType + */ + public int getChangedAvatarType() { + return changedAvatarType; + } + + /** + * optional uint32 changed_avatar_type = 13; + * @param value the changedAvatarType to set + * @return this + */ + public Avatar setChangedAvatarType(final int value) { + bitField0_ |= 0x00000010; + changedAvatarType = value; + return this; + } + + /** + * optional uint32 exp = 14; * @return whether the exp field is set */ public boolean hasExp() { @@ -284,7 +263,7 @@ public final class AvatarOuterClass { } /** - * optional uint32 exp = 10; + * optional uint32 exp = 14; * @return this */ public Avatar clearExp() { @@ -294,7 +273,7 @@ public final class AvatarOuterClass { } /** - * optional uint32 exp = 10; + * optional uint32 exp = 14; * @return the exp */ public int getExp() { @@ -302,7 +281,7 @@ public final class AvatarOuterClass { } /** - * optional uint32 exp = 10; + * optional uint32 exp = 14; * @param value the exp to set * @return this */ @@ -313,99 +292,25 @@ public final class AvatarOuterClass { } /** - * optional uint32 rank = 13; - * @return whether the rank field is set + * optional bool is_marked = 5; + * @return whether the isMarked field is set */ - public boolean hasRank() { + public boolean hasIsMarked() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 rank = 13; - * @return this - */ - public Avatar clearRank() { - bitField0_ &= ~0x00000040; - rank = 0; - return this; - } - - /** - * optional uint32 rank = 13; - * @return the rank - */ - public int getRank() { - return rank; - } - - /** - * optional uint32 rank = 13; - * @param value the rank to set - * @return this - */ - public Avatar setRank(final int value) { - bitField0_ |= 0x00000040; - rank = value; - return this; - } - - /** - * optional uint32 base_avatar_id = 15; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional uint32 base_avatar_id = 15; - * @return this - */ - public Avatar clearBaseAvatarId() { - bitField0_ &= ~0x00000080; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 15; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 15; - * @param value the baseAvatarId to set - * @return this - */ - public Avatar setBaseAvatarId(final int value) { - bitField0_ |= 0x00000080; - baseAvatarId = value; - return this; - } - - /** - * optional bool is_marked = 6; - * @return whether the isMarked field is set - */ - public boolean hasIsMarked() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * optional bool is_marked = 6; + * optional bool is_marked = 5; * @return this */ public Avatar clearIsMarked() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000040; isMarked = false; return this; } /** - * optional bool is_marked = 6; + * optional bool is_marked = 5; * @return the isMarked */ public boolean getIsMarked() { @@ -413,36 +318,36 @@ public final class AvatarOuterClass { } /** - * optional bool is_marked = 6; + * optional bool is_marked = 5; * @param value the isMarked to set * @return this */ public Avatar setIsMarked(final boolean value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; isMarked = value; return this; } /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; * @return whether the takenRewards field is set */ public boolean hasTakenRewards() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000080) != 0; } /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; * @return this */ public Avatar clearTakenRewards() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000080; takenRewards.clear(); return this; } /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -456,7 +361,7 @@ public final class AvatarOuterClass { } /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -465,185 +370,45 @@ public final class AvatarOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableTakenRewards() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; return takenRewards; } /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; * @param value the takenRewards to add * @return this */ public Avatar addTakenRewards(final int value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; takenRewards.add(value); return this; } /** - * repeated uint32 taken_rewards = 11; + * repeated uint32 taken_rewards = 12; * @param values the takenRewards to add * @return this */ public Avatar addAllTakenRewards(final int... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; takenRewards.addAll(values); return this; } - /** - * repeated .EquipRelic equip_relic_list = 2; - * @return whether the equipRelicList field is set - */ - public boolean hasEquipRelicList() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * repeated .EquipRelic equip_relic_list = 2; - * @return this - */ - public Avatar clearEquipRelicList() { - bitField0_ &= ~0x00000400; - equipRelicList.clear(); - return this; - } - - /** - * repeated .EquipRelic equip_relic_list = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableEquipRelicList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getEquipRelicList() { - return equipRelicList; - } - - /** - * repeated .EquipRelic equip_relic_list = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableEquipRelicList() { - bitField0_ |= 0x00000400; - return equipRelicList; - } - - /** - * repeated .EquipRelic equip_relic_list = 2; - * @param value the equipRelicList to add - * @return this - */ - public Avatar addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { - bitField0_ |= 0x00000400; - equipRelicList.add(value); - return this; - } - - /** - * repeated .EquipRelic equip_relic_list = 2; - * @param values the equipRelicList to add - * @return this - */ - public Avatar addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) { - bitField0_ |= 0x00000400; - equipRelicList.addAll(values); - return this; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - * @return whether the skilltreeList field is set - */ - public boolean hasSkilltreeList() { - return (bitField0_ & 0x00000800) != 0; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - * @return this - */ - public Avatar clearSkilltreeList() { - bitField0_ &= ~0x00000800; - skilltreeList.clear(); - return this; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableSkilltreeList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getSkilltreeList() { - return skilltreeList; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableSkilltreeList() { - bitField0_ |= 0x00000800; - return skilltreeList; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - * @param value the skilltreeList to add - * @return this - */ - public Avatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000800; - skilltreeList.add(value); - return this; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 14; - * @param values the skilltreeList to add - * @return this - */ - public Avatar addAllSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000800; - skilltreeList.addAll(values); - return this; - } - @Override public Avatar copyFrom(final Avatar other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; firstMetTimestamp = other.firstMetTimestamp; - level = other.level; - equipmentUniqueId = other.equipmentUniqueId; - dressedSkinId = other.dressedSkinId; promotion = other.promotion; - exp = other.exp; - rank = other.rank; + level = other.level; baseAvatarId = other.baseAvatarId; + changedAvatarType = other.changedAvatarType; + exp = other.exp; isMarked = other.isMarked; takenRewards.copyFrom(other.takenRewards); - equipRelicList.copyFrom(other.equipRelicList); - skilltreeList.copyFrom(other.skilltreeList); } return this; } @@ -657,39 +422,27 @@ public final class AvatarOuterClass { if (other.hasFirstMetTimestamp()) { setFirstMetTimestamp(other.firstMetTimestamp); } - if (other.hasLevel()) { - setLevel(other.level); - } - if (other.hasEquipmentUniqueId()) { - setEquipmentUniqueId(other.equipmentUniqueId); - } - if (other.hasDressedSkinId()) { - setDressedSkinId(other.dressedSkinId); - } if (other.hasPromotion()) { setPromotion(other.promotion); } - if (other.hasExp()) { - setExp(other.exp); - } - if (other.hasRank()) { - setRank(other.rank); + if (other.hasLevel()) { + setLevel(other.level); } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasChangedAvatarType()) { + setChangedAvatarType(other.changedAvatarType); + } + if (other.hasExp()) { + setExp(other.exp); + } if (other.hasIsMarked()) { setIsMarked(other.isMarked); } if (other.hasTakenRewards()) { getMutableTakenRewards().addAll(other.takenRewards); } - if (other.hasEquipRelicList()) { - getMutableEquipRelicList().addAll(other.equipRelicList); - } - if (other.hasSkilltreeList()) { - getMutableSkilltreeList().addAll(other.skilltreeList); - } return this; } @@ -701,17 +454,13 @@ public final class AvatarOuterClass { cachedSize = -1; bitField0_ = 0; firstMetTimestamp = 0L; - level = 0; - equipmentUniqueId = 0; - dressedSkinId = 0; promotion = 0; - exp = 0; - rank = 0; + level = 0; baseAvatarId = 0; + changedAvatarType = 0; + exp = 0; isMarked = false; takenRewards.clear(); - equipRelicList.clear(); - skilltreeList.clear(); return this; } @@ -723,8 +472,6 @@ public final class AvatarOuterClass { cachedSize = -1; bitField0_ = 0; takenRewards.clear(); - equipRelicList.clearQuick(); - skilltreeList.clearQuick(); return this; } @@ -739,75 +486,51 @@ public final class AvatarOuterClass { Avatar other = (Avatar) o; return bitField0_ == other.bitField0_ && (!hasFirstMetTimestamp() || firstMetTimestamp == other.firstMetTimestamp) - && (!hasLevel() || level == other.level) - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) - && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) && (!hasPromotion() || promotion == other.promotion) - && (!hasExp() || exp == other.exp) - && (!hasRank() || rank == other.rank) + && (!hasLevel() || level == other.level) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasChangedAvatarType() || changedAvatarType == other.changedAvatarType) + && (!hasExp() || exp == other.exp) && (!hasIsMarked() || isMarked == other.isMarked) - && (!hasTakenRewards() || takenRewards.equals(other.takenRewards)) - && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)) - && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)); + && (!hasTakenRewards() || takenRewards.equals(other.takenRewards)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 16); output.writeUInt64NoTag(firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(level); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(equipmentUniqueId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(dressedSkinId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 72); output.writeUInt32NoTag(promotion); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(baseAvatarId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(changedAvatarType); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(rank); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isMarked); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < takenRewards.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(takenRewards.array()[i]); } } - if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < equipRelicList.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(equipRelicList.get(i)); - } - } - if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < skilltreeList.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(skilltreeList.get(i)); - } - } } @Override @@ -817,38 +540,26 @@ public final class AvatarOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(changedAvatarType); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000100) != 0) { size += 2; } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000080) != 0) { size += (1 * takenRewards.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewards); } - if ((bitField0_ & 0x00000400) != 0) { - size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); - } - if ((bitField0_ & 0x00000800) != 0) { - size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); - } return size; } @@ -859,108 +570,74 @@ public final class AvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 16: { // firstMetTimestamp firstMetTimestamp = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 24) { break; } } case 24: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); - bitField0_ |= 0x00000004; + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // dressedSkinId - dressedSkinId = input.readUInt32(); - bitField0_ |= 0x00000008; + // level + level = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 72) { break; } } case 72: { - // promotion - promotion = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // exp - exp = input.readUInt32(); - bitField0_ |= 0x00000020; + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // rank - rank = input.readUInt32(); - bitField0_ |= 0x00000040; + // changedAvatarType + changedAvatarType = input.readUInt32(); + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000080; + case 112: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 48) { + if (tag != 40) { break; } } - case 48: { + case 40: { // isMarked isMarked = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 90) { + if (tag != 98) { break; } } - case 90: { + case 98: { // takenRewards [packed=true] input.readPackedUInt32(takenRewards, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // equipRelicList - tag = input.readRepeatedMessage(equipRelicList, tag); - bitField0_ |= 0x00000400; - if (tag != 114) { - break; - } - } - case 114: { - // skilltreeList - tag = input.readRepeatedMessage(skilltreeList, tag); - bitField0_ |= 0x00000800; if (tag != 0) { break; } @@ -975,10 +652,10 @@ public final class AvatarOuterClass { tag = input.readTag(); break; } - case 88: { + case 96: { // takenRewards [packed=false] tag = input.readRepeatedUInt32(takenRewards, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; break; } } @@ -992,38 +669,26 @@ public final class AvatarOuterClass { output.writeUInt64(FieldNames.firstMetTimestamp, firstMetTimestamp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.changedAvatarType, changedAvatarType); } if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.rank, rank); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); - } - if ((bitField0_ & 0x00000100) != 0) { output.writeBool(FieldNames.isMarked, isMarked); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeRepeatedUInt32(FieldNames.takenRewards, takenRewards); } - if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); - } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); - } output.endObject(); } @@ -1046,10 +711,10 @@ public final class AvatarOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -1057,11 +722,10 @@ public final class AvatarOuterClass { } break; } - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1069,11 +733,11 @@ public final class AvatarOuterClass { } break; } - case -407000018: - case 2012697844: { - if (input.isAtField(FieldNames.dressedSkinId)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - dressedSkinId = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1081,10 +745,11 @@ public final class AvatarOuterClass { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 1985011207: + case 1120127317: { + if (input.isAtField(FieldNames.changedAvatarType)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + changedAvatarType = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1103,35 +768,12 @@ public final class AvatarOuterClass { } break; } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { - if (!input.trySkipNullValue()) { - rank = input.readUInt32(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { - if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } case -407271946: case -617266975: { if (input.isAtField(FieldNames.isMarked)) { if (!input.trySkipNullValue()) { isMarked = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -1143,31 +785,7 @@ public final class AvatarOuterClass { if (input.isAtField(FieldNames.takenRewards)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(takenRewards); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1578968161: - case -795441831: { - if (input.isAtField(FieldNames.equipRelicList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(equipRelicList); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1549763245: - case 815647086: { - if (input.isAtField(FieldNames.skilltreeList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(skilltreeList); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000080; } } else { input.skipUnknownField(); @@ -1228,27 +846,19 @@ public final class AvatarOuterClass { static class FieldNames { static final FieldName firstMetTimestamp = FieldName.forField("firstMetTimestamp", "first_met_timestamp"); - static final FieldName level = FieldName.forField("level"); - - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); - - static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); - static final FieldName promotion = FieldName.forField("promotion"); - static final FieldName exp = FieldName.forField("exp"); - - static final FieldName rank = FieldName.forField("rank"); + static final FieldName level = FieldName.forField("level"); static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName changedAvatarType = FieldName.forField("changedAvatarType", "changed_avatar_type"); + + static final FieldName exp = FieldName.forField("exp"); + static final FieldName isMarked = FieldName.forField("isMarked", "is_marked"); static final FieldName takenRewards = FieldName.forField("takenRewards", "taken_rewards"); - - static final FieldName equipRelicList = FieldName.forField("equipRelicList", "equip_relic_list"); - - static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarPathChangedNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarPathChangedNotifyOuterClass.java index ce81d3b..216a319 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarPathChangedNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarPathChangedNotifyOuterClass.java @@ -19,12 +19,12 @@ public final class AvatarPathChangedNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 5; */ private int baseAvatarId; /** - * optional .MultiPathAvatarType changed_avatar_type = 8; + * optional .MultiPathAvatarType changed_avatar_type = 7; */ private int changedAvatarType; @@ -39,7 +39,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 5; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -47,7 +47,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 5; * @return this */ public AvatarPathChangedNotify clearBaseAvatarId() { @@ -57,7 +57,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 5; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -65,7 +65,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional uint32 base_avatar_id = 3; + * optional uint32 base_avatar_id = 5; * @param value the baseAvatarId to set * @return this */ @@ -76,7 +76,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional .MultiPathAvatarType changed_avatar_type = 8; + * optional .MultiPathAvatarType changed_avatar_type = 7; * @return whether the changedAvatarType field is set */ public boolean hasChangedAvatarType() { @@ -84,7 +84,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional .MultiPathAvatarType changed_avatar_type = 8; + * optional .MultiPathAvatarType changed_avatar_type = 7; * @return this */ public AvatarPathChangedNotify clearChangedAvatarType() { @@ -94,7 +94,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional .MultiPathAvatarType changed_avatar_type = 8; + * optional .MultiPathAvatarType changed_avatar_type = 7; * @return the changedAvatarType */ public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getChangedAvatarType() { @@ -127,7 +127,7 @@ public final class AvatarPathChangedNotifyOuterClass { } /** - * optional .MultiPathAvatarType changed_avatar_type = 8; + * optional .MultiPathAvatarType changed_avatar_type = 7; * @param value the changedAvatarType to set * @return this */ @@ -203,11 +203,11 @@ public final class AvatarPathChangedNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 56); output.writeEnumNoTag(changedAvatarType); } } @@ -231,16 +231,16 @@ public final class AvatarPathChangedNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 40: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 56) { break; } } - case 64: { + case 56: { // changedAvatarType final int value = input.readInt32(); if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/AvatarPathInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarPathInfoOuterClass.java new file mode 100644 index 0000000..3f182c5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/AvatarPathInfoOuterClass.java @@ -0,0 +1,896 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class AvatarPathInfoOuterClass { + /** + * Protobuf type {@code AvatarPathInfo} + */ + public static final class AvatarPathInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 first_met_timestamp = 12; + */ + private long firstMetTimestamp; + + /** + * optional uint32 avatar_skin = 8; + */ + private int avatarSkin; + + /** + * optional uint32 avatar_id = 10; + */ + private int avatarId; + + /** + * optional uint32 rank = 11; + */ + private int rank; + + /** + * optional uint32 path_equipment_id = 13; + */ + private int pathEquipmentId; + + /** + * optional uint32 enhance_id = 14; + */ + private int enhanceId; + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + */ + private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarPathSkillTreeOuterClass.AvatarPathSkillTree.getFactory()); + + /** + * repeated .EquipRelic equip_relic_list = 9; + */ + private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); + + private AvatarPathInfo() { + } + + /** + * @return a new empty instance of {@code AvatarPathInfo} + */ + public static AvatarPathInfo newInstance() { + return new AvatarPathInfo(); + } + + /** + * optional uint64 first_met_timestamp = 12; + * @return whether the firstMetTimestamp field is set + */ + public boolean hasFirstMetTimestamp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 first_met_timestamp = 12; + * @return this + */ + public AvatarPathInfo clearFirstMetTimestamp() { + bitField0_ &= ~0x00000001; + firstMetTimestamp = 0L; + return this; + } + + /** + * optional uint64 first_met_timestamp = 12; + * @return the firstMetTimestamp + */ + public long getFirstMetTimestamp() { + return firstMetTimestamp; + } + + /** + * optional uint64 first_met_timestamp = 12; + * @param value the firstMetTimestamp to set + * @return this + */ + public AvatarPathInfo setFirstMetTimestamp(final long value) { + bitField0_ |= 0x00000001; + firstMetTimestamp = value; + return this; + } + + /** + * optional uint32 avatar_skin = 8; + * @return whether the avatarSkin field is set + */ + public boolean hasAvatarSkin() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_skin = 8; + * @return this + */ + public AvatarPathInfo clearAvatarSkin() { + bitField0_ &= ~0x00000002; + avatarSkin = 0; + return this; + } + + /** + * optional uint32 avatar_skin = 8; + * @return the avatarSkin + */ + public int getAvatarSkin() { + return avatarSkin; + } + + /** + * optional uint32 avatar_skin = 8; + * @param value the avatarSkin to set + * @return this + */ + public AvatarPathInfo setAvatarSkin(final int value) { + bitField0_ |= 0x00000002; + avatarSkin = value; + return this; + } + + /** + * optional uint32 avatar_id = 10; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 avatar_id = 10; + * @return this + */ + public AvatarPathInfo clearAvatarId() { + bitField0_ &= ~0x00000004; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 10; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 10; + * @param value the avatarId to set + * @return this + */ + public AvatarPathInfo setAvatarId(final int value) { + bitField0_ |= 0x00000004; + avatarId = value; + return this; + } + + /** + * optional uint32 rank = 11; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 rank = 11; + * @return this + */ + public AvatarPathInfo clearRank() { + bitField0_ &= ~0x00000008; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 11; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 11; + * @param value the rank to set + * @return this + */ + public AvatarPathInfo setRank(final int value) { + bitField0_ |= 0x00000008; + rank = value; + return this; + } + + /** + * optional uint32 path_equipment_id = 13; + * @return whether the pathEquipmentId field is set + */ + public boolean hasPathEquipmentId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 path_equipment_id = 13; + * @return this + */ + public AvatarPathInfo clearPathEquipmentId() { + bitField0_ &= ~0x00000010; + pathEquipmentId = 0; + return this; + } + + /** + * optional uint32 path_equipment_id = 13; + * @return the pathEquipmentId + */ + public int getPathEquipmentId() { + return pathEquipmentId; + } + + /** + * optional uint32 path_equipment_id = 13; + * @param value the pathEquipmentId to set + * @return this + */ + public AvatarPathInfo setPathEquipmentId(final int value) { + bitField0_ |= 0x00000010; + pathEquipmentId = value; + return this; + } + + /** + * optional uint32 enhance_id = 14; + * @return whether the enhanceId field is set + */ + public boolean hasEnhanceId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 enhance_id = 14; + * @return this + */ + public AvatarPathInfo clearEnhanceId() { + bitField0_ &= ~0x00000020; + enhanceId = 0; + return this; + } + + /** + * optional uint32 enhance_id = 14; + * @return the enhanceId + */ + public int getEnhanceId() { + return enhanceId; + } + + /** + * optional uint32 enhance_id = 14; + * @param value the enhanceId to set + * @return this + */ + public AvatarPathInfo setEnhanceId(final int value) { + bitField0_ |= 0x00000020; + enhanceId = value; + return this; + } + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + * @return whether the skilltreeList field is set + */ + public boolean hasSkilltreeList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + * @return this + */ + public AvatarPathInfo clearSkilltreeList() { + bitField0_ &= ~0x00000040; + skilltreeList.clear(); + return this; + } + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSkilltreeList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSkilltreeList() { + return skilltreeList; + } + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableSkilltreeList( + ) { + bitField0_ |= 0x00000040; + return skilltreeList; + } + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + * @param value the skilltreeList to add + * @return this + */ + public AvatarPathInfo addSkilltreeList( + final AvatarPathSkillTreeOuterClass.AvatarPathSkillTree value) { + bitField0_ |= 0x00000040; + skilltreeList.add(value); + return this; + } + + /** + * repeated .AvatarPathSkillTree skilltree_list = 1; + * @param values the skilltreeList to add + * @return this + */ + public AvatarPathInfo addAllSkilltreeList( + final AvatarPathSkillTreeOuterClass.AvatarPathSkillTree... values) { + bitField0_ |= 0x00000040; + skilltreeList.addAll(values); + return this; + } + + /** + * repeated .EquipRelic equip_relic_list = 9; + * @return whether the equipRelicList field is set + */ + public boolean hasEquipRelicList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .EquipRelic equip_relic_list = 9; + * @return this + */ + public AvatarPathInfo clearEquipRelicList() { + bitField0_ &= ~0x00000080; + equipRelicList.clear(); + return this; + } + + /** + * repeated .EquipRelic equip_relic_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEquipRelicList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipRelicList() { + return equipRelicList; + } + + /** + * repeated .EquipRelic equip_relic_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableEquipRelicList() { + bitField0_ |= 0x00000080; + return equipRelicList; + } + + /** + * repeated .EquipRelic equip_relic_list = 9; + * @param value the equipRelicList to add + * @return this + */ + public AvatarPathInfo addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { + bitField0_ |= 0x00000080; + equipRelicList.add(value); + return this; + } + + /** + * repeated .EquipRelic equip_relic_list = 9; + * @param values the equipRelicList to add + * @return this + */ + public AvatarPathInfo addAllEquipRelicList(final EquipRelicOuterClass.EquipRelic... values) { + bitField0_ |= 0x00000080; + equipRelicList.addAll(values); + return this; + } + + @Override + public AvatarPathInfo copyFrom(final AvatarPathInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + firstMetTimestamp = other.firstMetTimestamp; + avatarSkin = other.avatarSkin; + avatarId = other.avatarId; + rank = other.rank; + pathEquipmentId = other.pathEquipmentId; + enhanceId = other.enhanceId; + skilltreeList.copyFrom(other.skilltreeList); + equipRelicList.copyFrom(other.equipRelicList); + } + return this; + } + + @Override + public AvatarPathInfo mergeFrom(final AvatarPathInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFirstMetTimestamp()) { + setFirstMetTimestamp(other.firstMetTimestamp); + } + if (other.hasAvatarSkin()) { + setAvatarSkin(other.avatarSkin); + } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasRank()) { + setRank(other.rank); + } + if (other.hasPathEquipmentId()) { + setPathEquipmentId(other.pathEquipmentId); + } + if (other.hasEnhanceId()) { + setEnhanceId(other.enhanceId); + } + if (other.hasSkilltreeList()) { + getMutableSkilltreeList().addAll(other.skilltreeList); + } + if (other.hasEquipRelicList()) { + getMutableEquipRelicList().addAll(other.equipRelicList); + } + return this; + } + + @Override + public AvatarPathInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + firstMetTimestamp = 0L; + avatarSkin = 0; + avatarId = 0; + rank = 0; + pathEquipmentId = 0; + enhanceId = 0; + skilltreeList.clear(); + equipRelicList.clear(); + return this; + } + + @Override + public AvatarPathInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + skilltreeList.clearQuick(); + equipRelicList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AvatarPathInfo)) { + return false; + } + AvatarPathInfo other = (AvatarPathInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFirstMetTimestamp() || firstMetTimestamp == other.firstMetTimestamp) + && (!hasAvatarSkin() || avatarSkin == other.avatarSkin) + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasRank() || rank == other.rank) + && (!hasPathEquipmentId() || pathEquipmentId == other.pathEquipmentId) + && (!hasEnhanceId() || enhanceId == other.enhanceId) + && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) + && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt64NoTag(firstMetTimestamp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(avatarSkin); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(pathEquipmentId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(enhanceId); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < skilltreeList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(skilltreeList.get(i)); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < equipRelicList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(equipRelicList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(firstMetTimestamp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarSkin); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pathEquipmentId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(enhanceId); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AvatarPathInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // firstMetTimestamp + firstMetTimestamp = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // avatarSkin + avatarSkin = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // pathEquipmentId + pathEquipmentId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // enhanceId + enhanceId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // skilltreeList + tag = input.readRepeatedMessage(skilltreeList, tag); + bitField0_ |= 0x00000040; + if (tag != 74) { + break; + } + } + case 74: { + // equipRelicList + tag = input.readRepeatedMessage(equipRelicList, tag); + bitField0_ |= 0x00000080; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.firstMetTimestamp, firstMetTimestamp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarSkin, avatarSkin); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.pathEquipmentId, pathEquipmentId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.enhanceId, enhanceId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + } + output.endObject(); + } + + @Override + public AvatarPathInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1893996906: + case 329864996: { + if (input.isAtField(FieldNames.firstMetTimestamp)) { + if (!input.trySkipNullValue()) { + firstMetTimestamp = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403192202: + case 397266083: { + if (input.isAtField(FieldNames.avatarSkin)) { + if (!input.trySkipNullValue()) { + avatarSkin = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1371565540: + case -1584422074: { + if (input.isAtField(FieldNames.pathEquipmentId)) { + if (!input.trySkipNullValue()) { + pathEquipmentId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1259067497: + case 376408140: { + if (input.isAtField(FieldNames.enhanceId)) { + if (!input.trySkipNullValue()) { + enhanceId = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1549763245: + case 815647086: { + if (input.isAtField(FieldNames.skilltreeList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(skilltreeList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1578968161: + case -795441831: { + if (input.isAtField(FieldNames.equipRelicList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(equipRelicList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AvatarPathInfo clone() { + return new AvatarPathInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AvatarPathInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarPathInfo(), data).checkInitialized(); + } + + public static AvatarPathInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarPathInfo(), input).checkInitialized(); + } + + public static AvatarPathInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarPathInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating AvatarPathInfo messages + */ + public static MessageFactory getFactory() { + return AvatarPathInfoFactory.INSTANCE; + } + + private enum AvatarPathInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public AvatarPathInfo create() { + return AvatarPathInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName firstMetTimestamp = FieldName.forField("firstMetTimestamp", "first_met_timestamp"); + + static final FieldName avatarSkin = FieldName.forField("avatarSkin", "avatar_skin"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName rank = FieldName.forField("rank"); + + static final FieldName pathEquipmentId = FieldName.forField("pathEquipmentId", "path_equipment_id"); + + static final FieldName enhanceId = FieldName.forField("enhanceId", "enhance_id"); + + static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); + + static final FieldName equipRelicList = FieldName.forField("equipRelicList", "equip_relic_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarPathSkillTreeOuterClass.java similarity index 56% rename from src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java rename to src/generated/main/emu/lunarcore/proto/AvatarPathSkillTreeOuterClass.java index 9e29303..d0512ea 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarPathSkillTreeOuterClass.java @@ -11,53 +11,90 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueBuffOuterClass { +public final class AvatarPathSkillTreeOuterClass { /** - * Protobuf type {@code RogueBuff} + * Protobuf type {@code AvatarPathSkillTree} */ - public static final class RogueBuff extends ProtoMessage implements Cloneable { + public static final class AvatarPathSkillTree extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 level = 3; + * optional uint32 anchor_point_id = 6; + */ + private int anchorPointId; + + /** + * optional uint32 level = 7; */ private int level; - /** - * optional uint32 buff_id = 7; - */ - private int buffId; - - private RogueBuff() { + private AvatarPathSkillTree() { } /** - * @return a new empty instance of {@code RogueBuff} + * @return a new empty instance of {@code AvatarPathSkillTree} */ - public static RogueBuff newInstance() { - return new RogueBuff(); + public static AvatarPathSkillTree newInstance() { + return new AvatarPathSkillTree(); } /** - * optional uint32 level = 3; - * @return whether the level field is set + * optional uint32 anchor_point_id = 6; + * @return whether the anchorPointId field is set */ - public boolean hasLevel() { + public boolean hasAnchorPointId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 level = 3; + * optional uint32 anchor_point_id = 6; * @return this */ - public RogueBuff clearLevel() { + public AvatarPathSkillTree clearAnchorPointId() { bitField0_ &= ~0x00000001; + anchorPointId = 0; + return this; + } + + /** + * optional uint32 anchor_point_id = 6; + * @return the anchorPointId + */ + public int getAnchorPointId() { + return anchorPointId; + } + + /** + * optional uint32 anchor_point_id = 6; + * @param value the anchorPointId to set + * @return this + */ + public AvatarPathSkillTree setAnchorPointId(final int value) { + bitField0_ |= 0x00000001; + anchorPointId = value; + return this; + } + + /** + * optional uint32 level = 7; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 7; + * @return this + */ + public AvatarPathSkillTree clearLevel() { + bitField0_ &= ~0x00000002; level = 0; return this; } /** - * optional uint32 level = 3; + * optional uint32 level = 7; * @return the level */ public int getLevel() { @@ -65,93 +102,56 @@ public final class RogueBuffOuterClass { } /** - * optional uint32 level = 3; + * optional uint32 level = 7; * @param value the level to set * @return this */ - public RogueBuff setLevel(final int value) { - bitField0_ |= 0x00000001; + public AvatarPathSkillTree setLevel(final int value) { + bitField0_ |= 0x00000002; level = value; return this; } - /** - * optional uint32 buff_id = 7; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 buff_id = 7; - * @return this - */ - public RogueBuff clearBuffId() { - bitField0_ &= ~0x00000002; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 7; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 7; - * @param value the buffId to set - * @return this - */ - public RogueBuff setBuffId(final int value) { - bitField0_ |= 0x00000002; - buffId = value; - return this; - } - @Override - public RogueBuff copyFrom(final RogueBuff other) { + public AvatarPathSkillTree copyFrom(final AvatarPathSkillTree other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + anchorPointId = other.anchorPointId; level = other.level; - buffId = other.buffId; } return this; } @Override - public RogueBuff mergeFrom(final RogueBuff other) { + public AvatarPathSkillTree mergeFrom(final AvatarPathSkillTree other) { if (other.isEmpty()) { return this; } cachedSize = -1; + if (other.hasAnchorPointId()) { + setAnchorPointId(other.anchorPointId); + } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasBuffId()) { - setBuffId(other.buffId); - } return this; } @Override - public RogueBuff clear() { + public AvatarPathSkillTree clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; + anchorPointId = 0; level = 0; - buffId = 0; return this; } @Override - public RogueBuff clearQuick() { + public AvatarPathSkillTree clearQuick() { if (isEmpty()) { return this; } @@ -165,24 +165,24 @@ public final class RogueBuffOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueBuff)) { + if (!(o instanceof AvatarPathSkillTree)) { return false; } - RogueBuff other = (RogueBuff) o; + AvatarPathSkillTree other = (AvatarPathSkillTree) o; return bitField0_ == other.bitField0_ - && (!hasLevel() || level == other.level) - && (!hasBuffId() || buffId == other.buffId); + && (!hasAnchorPointId() || anchorPointId == other.anchorPointId) + && (!hasLevel() || level == other.level); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(anchorPointId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(buffId); + output.writeUInt32NoTag(level); } } @@ -190,24 +190,24 @@ public final class RogueBuffOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(anchorPointId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueBuff mergeFrom(final ProtoSource input) throws IOException { + public AvatarPathSkillTree mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // level - level = input.readUInt32(); + case 48: { + // anchorPointId + anchorPointId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 56) { @@ -215,8 +215,8 @@ public final class RogueBuffOuterClass { } } case 56: { - // buffId - buffId = input.readUInt32(); + // level + level = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,25 +241,26 @@ public final class RogueBuffOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.anchorPointId, anchorPointId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.level, level); } output.endObject(); } @Override - public RogueBuff mergeFrom(final JsonSource input) throws IOException { + public AvatarPathSkillTree mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 1468762710: + case -279831436: { + if (input.isAtField(FieldNames.anchorPointId)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + anchorPointId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public final class RogueBuffOuterClass { } break; } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -290,8 +290,8 @@ public final class RogueBuffOuterClass { } @Override - public RogueBuff clone() { - return new RogueBuff().copyFrom(this); + public AvatarPathSkillTree clone() { + return new AvatarPathSkillTree().copyFrom(this); } @Override @@ -299,31 +299,32 @@ public final class RogueBuffOuterClass { return ((bitField0_) == 0); } - public static RogueBuff parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuff(), data).checkInitialized(); + public static AvatarPathSkillTree parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AvatarPathSkillTree(), data).checkInitialized(); } - public static RogueBuff parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuff(), input).checkInitialized(); + public static AvatarPathSkillTree parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarPathSkillTree(), input).checkInitialized(); } - public static RogueBuff parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuff(), input).checkInitialized(); + public static AvatarPathSkillTree parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarPathSkillTree(), input).checkInitialized(); } /** - * @return factory for creating RogueBuff messages + * @return factory for creating AvatarPathSkillTree messages */ - public static MessageFactory getFactory() { - return RogueBuffFactory.INSTANCE; + public static MessageFactory getFactory() { + return AvatarPathSkillTreeFactory.INSTANCE; } - private enum RogueBuffFactory implements MessageFactory { + private enum AvatarPathSkillTreeFactory implements MessageFactory { INSTANCE; @Override - public RogueBuff create() { - return RogueBuff.newInstance(); + public AvatarPathSkillTree create() { + return AvatarPathSkillTree.newInstance(); } } @@ -331,9 +332,9 @@ public final class RogueBuffOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName level = FieldName.forField("level"); + static final FieldName anchorPointId = FieldName.forField("anchorPointId", "anchor_point_id"); - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName level = FieldName.forField("level"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetQuestDataCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarReccomendDataOuterClass.java similarity index 54% rename from src/generated/main/emu/lunarcore/proto/GetQuestDataCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/AvatarReccomendDataOuterClass.java index de1eec4..e825a53 100644 --- a/src/generated/main/emu/lunarcore/proto/GetQuestDataCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarReccomendDataOuterClass.java @@ -10,31 +10,39 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class GetQuestDataCsReqOuterClass { +public final class AvatarReccomendDataOuterClass { /** - * Protobuf type {@code GetQuestDataCsReq} + *
+   * repeated KNNFPFKCABE APFECOOPNKN = 7;
+   * 
+ * + * Protobuf type {@code AvatarReccomendData} */ - public static final class GetQuestDataCsReq extends ProtoMessage implements Cloneable { + public static final class AvatarReccomendData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - private GetQuestDataCsReq() { + private AvatarReccomendData() { } /** - * @return a new empty instance of {@code GetQuestDataCsReq} + *
+     * repeated KNNFPFKCABE APFECOOPNKN = 7;
+     * 
+ * + * @return a new empty instance of {@code AvatarReccomendData} */ - public static GetQuestDataCsReq newInstance() { - return new GetQuestDataCsReq(); + public static AvatarReccomendData newInstance() { + return new AvatarReccomendData(); } @Override - public GetQuestDataCsReq copyFrom(final GetQuestDataCsReq other) { + public AvatarReccomendData copyFrom(final AvatarReccomendData other) { cachedSize = other.cachedSize; return this; } @Override - public GetQuestDataCsReq mergeFrom(final GetQuestDataCsReq other) { + public AvatarReccomendData mergeFrom(final AvatarReccomendData other) { if (other.isEmpty()) { return this; } @@ -43,7 +51,7 @@ public final class GetQuestDataCsReqOuterClass { } @Override - public GetQuestDataCsReq clear() { + public AvatarReccomendData clear() { if (isEmpty()) { return this; } @@ -52,7 +60,7 @@ public final class GetQuestDataCsReqOuterClass { } @Override - public GetQuestDataCsReq clearQuick() { + public AvatarReccomendData clearQuick() { if (isEmpty()) { return this; } @@ -65,10 +73,10 @@ public final class GetQuestDataCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof GetQuestDataCsReq)) { + if (!(o instanceof AvatarReccomendData)) { return false; } - GetQuestDataCsReq other = (GetQuestDataCsReq) o; + AvatarReccomendData other = (AvatarReccomendData) o; return true; } @@ -84,7 +92,7 @@ public final class GetQuestDataCsReqOuterClass { @Override @SuppressWarnings("fallthrough") - public GetQuestDataCsReq mergeFrom(final ProtoSource input) throws IOException { + public AvatarReccomendData mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -110,7 +118,7 @@ public final class GetQuestDataCsReqOuterClass { } @Override - public GetQuestDataCsReq mergeFrom(final JsonSource input) throws IOException { + public AvatarReccomendData mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -127,8 +135,8 @@ public final class GetQuestDataCsReqOuterClass { } @Override - public GetQuestDataCsReq clone() { - return new GetQuestDataCsReq().copyFrom(this); + public AvatarReccomendData clone() { + return new AvatarReccomendData().copyFrom(this); } @Override @@ -136,32 +144,32 @@ public final class GetQuestDataCsReqOuterClass { return ((bitField0_) == 0); } - public static GetQuestDataCsReq parseFrom(final byte[] data) throws + public static AvatarReccomendData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetQuestDataCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new AvatarReccomendData(), data).checkInitialized(); } - public static GetQuestDataCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetQuestDataCsReq(), input).checkInitialized(); + public static AvatarReccomendData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarReccomendData(), input).checkInitialized(); } - public static GetQuestDataCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetQuestDataCsReq(), input).checkInitialized(); + public static AvatarReccomendData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AvatarReccomendData(), input).checkInitialized(); } /** - * @return factory for creating GetQuestDataCsReq messages + * @return factory for creating AvatarReccomendData messages */ - public static MessageFactory getFactory() { - return GetQuestDataCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return AvatarReccomendDataFactory.INSTANCE; } - private enum GetQuestDataCsReqFactory implements MessageFactory { + private enum AvatarReccomendDataFactory implements MessageFactory { INSTANCE; @Override - public GetQuestDataCsReq create() { - return GetQuestDataCsReq.newInstance(); + public AvatarReccomendData create() { + return AvatarReccomendData.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java index a24bb46..2d12c8a 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarSyncOuterClass.java @@ -20,10 +20,15 @@ public final class AvatarSyncOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + */ + private final RepeatedMessage avatarPathInfoList = RepeatedMessage.newEmptyInstance(AvatarPathInfoOuterClass.AvatarPathInfo.getFactory()); + private AvatarSync() { } @@ -35,7 +40,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -43,7 +48,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; * @return this */ public AvatarSync clearAvatarList() { @@ -53,7 +58,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +72,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +86,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; * @param value the avatarList to add * @return this */ @@ -92,7 +97,7 @@ public final class AvatarSyncOuterClass { } /** - * repeated .Avatar avatar_list = 10; + * repeated .Avatar avatar_list = 6; * @param values the avatarList to add * @return this */ @@ -102,12 +107,82 @@ public final class AvatarSyncOuterClass { return this; } + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + * @return whether the avatarPathInfoList field is set + */ + public boolean hasAvatarPathInfoList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + * @return this + */ + public AvatarSync clearAvatarPathInfoList() { + bitField0_ &= ~0x00000002; + avatarPathInfoList.clear(); + return this; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAvatarPathInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarPathInfoList() { + return avatarPathInfoList; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAvatarPathInfoList() { + bitField0_ |= 0x00000002; + return avatarPathInfoList; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + * @param value the avatarPathInfoList to add + * @return this + */ + public AvatarSync addAvatarPathInfoList(final AvatarPathInfoOuterClass.AvatarPathInfo value) { + bitField0_ |= 0x00000002; + avatarPathInfoList.add(value); + return this; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 14; + * @param values the avatarPathInfoList to add + * @return this + */ + public AvatarSync addAllAvatarPathInfoList( + final AvatarPathInfoOuterClass.AvatarPathInfo... values) { + bitField0_ |= 0x00000002; + avatarPathInfoList.addAll(values); + return this; + } + @Override public AvatarSync copyFrom(final AvatarSync other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; avatarList.copyFrom(other.avatarList); + avatarPathInfoList.copyFrom(other.avatarPathInfoList); } return this; } @@ -121,6 +196,9 @@ public final class AvatarSyncOuterClass { if (other.hasAvatarList()) { getMutableAvatarList().addAll(other.avatarList); } + if (other.hasAvatarPathInfoList()) { + getMutableAvatarPathInfoList().addAll(other.avatarPathInfoList); + } return this; } @@ -132,6 +210,7 @@ public final class AvatarSyncOuterClass { cachedSize = -1; bitField0_ = 0; avatarList.clear(); + avatarPathInfoList.clear(); return this; } @@ -143,6 +222,7 @@ public final class AvatarSyncOuterClass { cachedSize = -1; bitField0_ = 0; avatarList.clearQuick(); + avatarPathInfoList.clearQuick(); return this; } @@ -156,17 +236,24 @@ public final class AvatarSyncOuterClass { } AvatarSync other = (AvatarSync) o; return bitField0_ == other.bitField0_ - && (!hasAvatarList() || avatarList.equals(other.avatarList)); + && (!hasAvatarList() || avatarList.equals(other.avatarList)) + && (!hasAvatarPathInfoList() || avatarPathInfoList.equals(other.avatarPathInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 50); output.writeMessageNoTag(avatarList.get(i)); } } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < avatarPathInfoList.length(); i++) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(avatarPathInfoList.get(i)); + } + } } @Override @@ -175,6 +262,9 @@ public final class AvatarSyncOuterClass { if ((bitField0_ & 0x00000001) != 0) { size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * avatarPathInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarPathInfoList); + } return size; } @@ -185,10 +275,18 @@ public final class AvatarSyncOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 50: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000001; + if (tag != 114) { + break; + } + } + case 114: { + // avatarPathInfoList + tag = input.readRepeatedMessage(avatarPathInfoList, tag); + bitField0_ |= 0x00000002; if (tag != 0) { break; } @@ -213,6 +311,9 @@ public final class AvatarSyncOuterClass { if ((bitField0_ & 0x00000001) != 0) { output.writeRepeatedMessage(FieldNames.avatarList, avatarList); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.avatarPathInfoList, avatarPathInfoList); + } output.endObject(); } @@ -235,6 +336,18 @@ public final class AvatarSyncOuterClass { } break; } + case 1918381482: + case 11642267: { + if (input.isAtField(FieldNames.avatarPathInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarPathInfoList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -288,6 +401,8 @@ public final class AvatarSyncOuterClass { */ static class FieldNames { static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + + static final FieldName avatarPathInfoList = FieldName.forField("avatarPathInfoList", "avatar_path_info_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java index a2778bb..8901fc8 100644 --- a/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/AvatarTypeOuterClass.java @@ -32,7 +32,27 @@ public final class AvatarTypeOuterClass { /** * AVATAR_ASSIST_TYPE = 4; */ - AVATAR_ASSIST_TYPE("AVATAR_ASSIST_TYPE", 4); + AVATAR_ASSIST_TYPE("AVATAR_ASSIST_TYPE", 4), + + /** + * AVATAR_AETHER_DIVIDE_TYPE = 5; + */ + AVATAR_AETHER_DIVIDE_TYPE("AVATAR_AETHER_DIVIDE_TYPE", 5), + + /** + * AVATAR_UPGRADE_AVAILABLE_TYPE = 6; + */ + AVATAR_UPGRADE_AVAILABLE_TYPE("AVATAR_UPGRADE_AVAILABLE_TYPE", 6), + + /** + * AVATAR_GRID_FIGHT_TYPE = 7; + */ + AVATAR_GRID_FIGHT_TYPE("AVATAR_GRID_FIGHT_TYPE", 7), + + /** + * AVATAR_UNKNOWN_TYPE_1 = 8; + */ + AVATAR_UNKNOWN_TYPE_1("AVATAR_UNKNOWN_TYPE_1", 8); /** * AVATAR_TYPE_NONE = 0; @@ -59,6 +79,26 @@ public final class AvatarTypeOuterClass { */ public static final int AVATAR_ASSIST_TYPE_VALUE = 4; + /** + * AVATAR_AETHER_DIVIDE_TYPE = 5; + */ + public static final int AVATAR_AETHER_DIVIDE_TYPE_VALUE = 5; + + /** + * AVATAR_UPGRADE_AVAILABLE_TYPE = 6; + */ + public static final int AVATAR_UPGRADE_AVAILABLE_TYPE_VALUE = 6; + + /** + * AVATAR_GRID_FIGHT_TYPE = 7; + */ + public static final int AVATAR_GRID_FIGHT_TYPE_VALUE = 7; + + /** + * AVATAR_UNKNOWN_TYPE_1 = 8; + */ + public static final int AVATAR_UNKNOWN_TYPE_1_VALUE = 8; + private final String name; private final int number; @@ -112,7 +152,7 @@ public final class AvatarTypeOuterClass { enum AvatarTypeConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final AvatarType[] lookup = new AvatarType[5]; + private static final AvatarType[] lookup = new AvatarType[9]; static { lookup[0] = AVATAR_TYPE_NONE; @@ -120,6 +160,10 @@ public final class AvatarTypeOuterClass { lookup[2] = AVATAR_LIMIT_TYPE; lookup[3] = AVATAR_FORMAL_TYPE; lookup[4] = AVATAR_ASSIST_TYPE; + lookup[5] = AVATAR_AETHER_DIVIDE_TYPE; + lookup[6] = AVATAR_UPGRADE_AVAILABLE_TYPE; + lookup[7] = AVATAR_GRID_FIGHT_TYPE; + lookup[8] = AVATAR_UNKNOWN_TYPE_1; } @Override @@ -132,25 +176,54 @@ public final class AvatarTypeOuterClass { @Override public final AvatarType forName(final CharSequence value) { - if (value.length() == 16) { - if (ProtoUtil.isEqual("AVATAR_TYPE_NONE", value)) { - return AVATAR_TYPE_NONE; + switch (value.length()) { + case 16: { + if (ProtoUtil.isEqual("AVATAR_TYPE_NONE", value)) { + return AVATAR_TYPE_NONE; + } + break; } - } - if (value.length() == 17) { - if (ProtoUtil.isEqual("AVATAR_TRIAL_TYPE", value)) { - return AVATAR_TRIAL_TYPE; + case 17: { + if (ProtoUtil.isEqual("AVATAR_TRIAL_TYPE", value)) { + return AVATAR_TRIAL_TYPE; + } + if (ProtoUtil.isEqual("AVATAR_LIMIT_TYPE", value)) { + return AVATAR_LIMIT_TYPE; + } + break; } - if (ProtoUtil.isEqual("AVATAR_LIMIT_TYPE", value)) { - return AVATAR_LIMIT_TYPE; + case 18: { + if (ProtoUtil.isEqual("AVATAR_FORMAL_TYPE", value)) { + return AVATAR_FORMAL_TYPE; + } + if (ProtoUtil.isEqual("AVATAR_ASSIST_TYPE", value)) { + return AVATAR_ASSIST_TYPE; + } + break; } - } - if (value.length() == 18) { - if (ProtoUtil.isEqual("AVATAR_FORMAL_TYPE", value)) { - return AVATAR_FORMAL_TYPE; + case 21: { + if (ProtoUtil.isEqual("AVATAR_UNKNOWN_TYPE_1", value)) { + return AVATAR_UNKNOWN_TYPE_1; + } + break; } - if (ProtoUtil.isEqual("AVATAR_ASSIST_TYPE", value)) { - return AVATAR_ASSIST_TYPE; + case 22: { + if (ProtoUtil.isEqual("AVATAR_GRID_FIGHT_TYPE", value)) { + return AVATAR_GRID_FIGHT_TYPE; + } + break; + } + case 25: { + if (ProtoUtil.isEqual("AVATAR_AETHER_DIVIDE_TYPE", value)) { + return AVATAR_AETHER_DIVIDE_TYPE; + } + break; + } + case 29: { + if (ProtoUtil.isEqual("AVATAR_UPGRADE_AVAILABLE_TYPE", value)) { + return AVATAR_UPGRADE_AVAILABLE_TYPE; + } + break; } } return null; diff --git a/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java index fc6c0e5..d42416c 100644 --- a/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleAvatarOuterClass.java @@ -59,6 +59,11 @@ public final class BattleAvatarOuterClass { */ private int assistUid; + /** + * optional uint32 avatar_enhance_id = 19; + */ + private int avatarEnhanceId; + /** * optional .AvatarType avatar_type = 1; */ @@ -390,12 +395,49 @@ public final class BattleAvatarOuterClass { return this; } + /** + * optional uint32 avatar_enhance_id = 19; + * @return whether the avatarEnhanceId field is set + */ + public boolean hasAvatarEnhanceId() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 avatar_enhance_id = 19; + * @return this + */ + public BattleAvatar clearAvatarEnhanceId() { + bitField0_ &= ~0x00000100; + avatarEnhanceId = 0; + return this; + } + + /** + * optional uint32 avatar_enhance_id = 19; + * @return the avatarEnhanceId + */ + public int getAvatarEnhanceId() { + return avatarEnhanceId; + } + + /** + * optional uint32 avatar_enhance_id = 19; + * @param value the avatarEnhanceId to set + * @return this + */ + public BattleAvatar setAvatarEnhanceId(final int value) { + bitField0_ |= 0x00000100; + avatarEnhanceId = value; + return this; + } + /** * optional .AvatarType avatar_type = 1; * @return whether the avatarType field is set */ public boolean hasAvatarType() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -403,7 +445,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar clearAvatarType() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; avatarType = 0; return this; } @@ -436,7 +478,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar setAvatarTypeValue(final int value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; avatarType = value; return this; } @@ -447,7 +489,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; avatarType = value.getNumber(); return this; } @@ -457,7 +499,7 @@ public final class BattleAvatarOuterClass { * @return whether the spBar field is set */ public boolean hasSpBar() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** @@ -465,7 +507,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar clearSpBar() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; spBar.clear(); return this; } @@ -494,7 +536,7 @@ public final class BattleAvatarOuterClass { * @return internal storage object for modifications */ public SpBarInfoOuterClass.SpBarInfo getMutableSpBar() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return spBar; } @@ -504,7 +546,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar setSpBar(final SpBarInfoOuterClass.SpBarInfo value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; spBar.copyFrom(value); return this; } @@ -514,7 +556,7 @@ public final class BattleAvatarOuterClass { * @return whether the skilltreeList field is set */ public boolean hasSkilltreeList() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000800) != 0; } /** @@ -522,7 +564,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar clearSkilltreeList() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000800; skilltreeList.clear(); return this; } @@ -551,7 +593,7 @@ public final class BattleAvatarOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableSkilltreeList() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; return skilltreeList; } @@ -561,7 +603,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar addSkilltreeList(final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; skilltreeList.add(value); return this; } @@ -573,7 +615,7 @@ public final class BattleAvatarOuterClass { */ public BattleAvatar addAllSkilltreeList( final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; skilltreeList.addAll(values); return this; } @@ -583,7 +625,7 @@ public final class BattleAvatarOuterClass { * @return whether the equipmentList field is set */ public boolean hasEquipmentList() { - return (bitField0_ & 0x00000800) != 0; + return (bitField0_ & 0x00001000) != 0; } /** @@ -591,7 +633,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar clearEquipmentList() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00001000; equipmentList.clear(); return this; } @@ -620,7 +662,7 @@ public final class BattleAvatarOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipmentList() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return equipmentList; } @@ -630,7 +672,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar addEquipmentList(final BattleEquipmentOuterClass.BattleEquipment value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; equipmentList.add(value); return this; } @@ -642,7 +684,7 @@ public final class BattleAvatarOuterClass { */ public BattleAvatar addAllEquipmentList( final BattleEquipmentOuterClass.BattleEquipment... values) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; equipmentList.addAll(values); return this; } @@ -652,7 +694,7 @@ public final class BattleAvatarOuterClass { * @return whether the relicList field is set */ public boolean hasRelicList() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00002000) != 0; } /** @@ -660,7 +702,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar clearRelicList() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; relicList.clear(); return this; } @@ -689,7 +731,7 @@ public final class BattleAvatarOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRelicList() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return relicList; } @@ -699,7 +741,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar addRelicList(final BattleRelicOuterClass.BattleRelic value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; relicList.add(value); return this; } @@ -710,7 +752,7 @@ public final class BattleAvatarOuterClass { * @return this */ public BattleAvatar addAllRelicList(final BattleRelicOuterClass.BattleRelic... values) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; relicList.addAll(values); return this; } @@ -728,6 +770,7 @@ public final class BattleAvatarOuterClass { promotion = other.promotion; worldLevel = other.worldLevel; assistUid = other.assistUid; + avatarEnhanceId = other.avatarEnhanceId; avatarType = other.avatarType; spBar.copyFrom(other.spBar); skilltreeList.copyFrom(other.skilltreeList); @@ -767,6 +810,9 @@ public final class BattleAvatarOuterClass { if (other.hasAssistUid()) { setAssistUid(other.assistUid); } + if (other.hasAvatarEnhanceId()) { + setAvatarEnhanceId(other.avatarEnhanceId); + } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -800,6 +846,7 @@ public final class BattleAvatarOuterClass { promotion = 0; worldLevel = 0; assistUid = 0; + avatarEnhanceId = 0; avatarType = 0; spBar.clear(); skilltreeList.clear(); @@ -840,6 +887,7 @@ public final class BattleAvatarOuterClass { && (!hasPromotion() || promotion == other.promotion) && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasAssistUid() || assistUid == other.assistUid) + && (!hasAvatarEnhanceId() || avatarEnhanceId == other.avatarEnhanceId) && (!hasAvatarType() || avatarType == other.avatarType) && (!hasSpBar() || spBar.equals(other.spBar)) && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) @@ -882,26 +930,30 @@ public final class BattleAvatarOuterClass { output.writeUInt32NoTag(assistUid); } if ((bitField0_ & 0x00000100) != 0) { + output.writeRawLittleEndian16((short) 408); + output.writeUInt32NoTag(avatarEnhanceId); + } + if ((bitField0_ & 0x00000200) != 0) { output.writeRawByte((byte) 8); output.writeEnumNoTag(avatarType); } - if ((bitField0_ & 0x00000200) != 0) { + if ((bitField0_ & 0x00000400) != 0) { output.writeRawLittleEndian16((short) 386); output.writeMessageNoTag(spBar); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000800) != 0) { for (int i = 0; i < skilltreeList.length(); i++) { output.writeRawByte((byte) 50); output.writeMessageNoTag(skilltreeList.get(i)); } } - if ((bitField0_ & 0x00000800) != 0) { + if ((bitField0_ & 0x00001000) != 0) { for (int i = 0; i < equipmentList.length(); i++) { output.writeRawByte((byte) 58); output.writeMessageNoTag(equipmentList.get(i)); } } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00002000) != 0) { for (int i = 0; i < relicList.length(); i++) { output.writeRawByte((byte) 90); output.writeMessageNoTag(relicList.get(i)); @@ -937,18 +989,21 @@ public final class BattleAvatarOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(assistUid); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + size += 2 + ProtoSink.computeUInt32SizeNoTag(avatarEnhanceId); } if ((bitField0_ & 0x00000200) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(spBar); + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); } if ((bitField0_ & 0x00000400) != 0) { - size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); + size += 2 + ProtoSink.computeMessageSizeNoTag(spBar); } if ((bitField0_ & 0x00000800) != 0) { - size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); } if ((bitField0_ & 0x00001000) != 0) { + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + } + if ((bitField0_ & 0x00002000) != 0) { size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } return size; @@ -1029,6 +1084,15 @@ public final class BattleAvatarOuterClass { assistUid = input.readUInt32(); bitField0_ |= 0x00000080; tag = input.readTag(); + if (tag != 152) { + break; + } + } + case 152: { + // avatarEnhanceId + avatarEnhanceId = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); if (tag != 8) { break; } @@ -1038,7 +1102,7 @@ public final class BattleAvatarOuterClass { final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { avatarType = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } tag = input.readTag(); if (tag != 130) { @@ -1048,7 +1112,7 @@ public final class BattleAvatarOuterClass { case 130: { // spBar input.readMessage(spBar); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; tag = input.readTag(); if (tag != 50) { break; @@ -1057,7 +1121,7 @@ public final class BattleAvatarOuterClass { case 50: { // skilltreeList tag = input.readRepeatedMessage(skilltreeList, tag); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; if (tag != 58) { break; } @@ -1065,7 +1129,7 @@ public final class BattleAvatarOuterClass { case 58: { // equipmentList tag = input.readRepeatedMessage(equipmentList, tag); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; if (tag != 90) { break; } @@ -1073,7 +1137,7 @@ public final class BattleAvatarOuterClass { case 90: { // relicList tag = input.readRepeatedMessage(relicList, tag); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; if (tag != 0) { break; } @@ -1120,18 +1184,21 @@ public final class BattleAvatarOuterClass { output.writeUInt32(FieldNames.assistUid, assistUid); } if ((bitField0_ & 0x00000100) != 0) { - output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + output.writeUInt32(FieldNames.avatarEnhanceId, avatarEnhanceId); } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.spBar, spBar); + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); + output.writeMessage(FieldNames.spBar, spBar); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); } if ((bitField0_ & 0x00001000) != 0) { + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + } + if ((bitField0_ & 0x00002000) != 0) { output.writeRepeatedMessage(FieldNames.relicList, relicList); } output.endObject(); @@ -1234,6 +1301,18 @@ public final class BattleAvatarOuterClass { } break; } + case -94590192: + case 306903794: { + if (input.isAtField(FieldNames.avatarEnhanceId)) { + if (!input.trySkipNullValue()) { + avatarEnhanceId = input.readUInt32(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } case -403148749: case 397309536: { if (input.isAtField(FieldNames.avatarType)) { @@ -1241,7 +1320,7 @@ public final class BattleAvatarOuterClass { final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); if (value != null) { avatarType = value.getNumber(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { input.skipUnknownEnumValue(); } @@ -1256,7 +1335,7 @@ public final class BattleAvatarOuterClass { if (input.isAtField(FieldNames.spBar)) { if (!input.trySkipNullValue()) { input.readMessage(spBar); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } else { input.skipUnknownField(); @@ -1268,7 +1347,7 @@ public final class BattleAvatarOuterClass { if (input.isAtField(FieldNames.skilltreeList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(skilltreeList); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -1280,7 +1359,7 @@ public final class BattleAvatarOuterClass { if (input.isAtField(FieldNames.equipmentList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentList); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -1292,7 +1371,7 @@ public final class BattleAvatarOuterClass { if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(relicList); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } else { input.skipUnknownField(); @@ -1367,6 +1446,8 @@ public final class BattleAvatarOuterClass { static final FieldName assistUid = FieldName.forField("assistUid", "assist_uid"); + static final FieldName avatarEnhanceId = FieldName.forField("avatarEnhanceId", "avatar_enhance_id"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); static final FieldName spBar = FieldName.forField("spBar", "sp_bar"); diff --git a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java index 23a669b..ac28324 100644 --- a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java @@ -21,61 +21,67 @@ public final class BattlePassInfoNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 taken_premium_reward1 = 3; - */ - private long takenPremiumReward1; - - /** - * optional uint64 taken_premium_extended_reward = 6; - */ - private long takenPremiumExtendedReward; - - /** - * optional uint64 taken_free_extended_reward = 7; - */ - private long takenFreeExtendedReward; - - /** - *
-     *  the difficult ones
-     * 
- * - * optional uint64 taken_free_reward = 8; - */ - private long takenFreeReward; - - /** - * optional uint64 taken_premium_reward2 = 12; + * optional uint64 taken_premium_reward2 = 3; */ private long takenPremiumReward2; /** - * optional uint64 taken_premium_optional_reward = 15; + * optional uint64 taken_premium_optional_reward = 7; */ private long takenPremiumOptionalReward; /** - * optional uint32 level = 1; + * optional uint64 taken_free_extended_reward = 8; */ - private int level; + private long takenFreeExtendedReward; /** - * optional uint32 exp = 4; + * optional uint64 taken_premium_extended_optional_reward = 9; + */ + private long takenPremiumExtendedOptionalReward; + + /** + * optional uint64 taken_premium_extended_reward2 = 11; + */ + private long takenPremiumExtendedReward2; + + /** + * optional uint64 taken_premium_extended_reward = 13; + */ + private long takenPremiumExtendedReward; + + /** + * optional uint64 taken_premium_reward1 = 14; + */ + private long takenPremiumReward1; + + /** + * optional uint64 taken_free_reward = 15; + */ + private long takenFreeReward; + + /** + * optional uint32 exp = 1; */ private int exp; /** - * optional uint32 cur_bp_id = 9; + * optional uint32 cur_bp_id = 6; */ private int curBpId; /** - * optional uint32 cur_week_add_exp_sum = 14; + * optional uint32 cur_week_add_exp_sum = 10; */ private int curWeekAddExpSum; /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 13; + * optional uint32 level = 12; + */ + private int level; + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 5; */ private int bpTierType; @@ -90,81 +96,81 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint64 taken_premium_reward1 = 3; - * @return whether the takenPremiumReward1 field is set + * optional uint64 taken_premium_reward2 = 3; + * @return whether the takenPremiumReward2 field is set */ - public boolean hasTakenPremiumReward1() { + public boolean hasTakenPremiumReward2() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint64 taken_premium_reward1 = 3; + * optional uint64 taken_premium_reward2 = 3; * @return this */ - public BattlePassInfoNotify clearTakenPremiumReward1() { + public BattlePassInfoNotify clearTakenPremiumReward2() { bitField0_ &= ~0x00000001; - takenPremiumReward1 = 0L; + takenPremiumReward2 = 0L; return this; } /** - * optional uint64 taken_premium_reward1 = 3; - * @return the takenPremiumReward1 + * optional uint64 taken_premium_reward2 = 3; + * @return the takenPremiumReward2 */ - public long getTakenPremiumReward1() { - return takenPremiumReward1; + public long getTakenPremiumReward2() { + return takenPremiumReward2; } /** - * optional uint64 taken_premium_reward1 = 3; - * @param value the takenPremiumReward1 to set + * optional uint64 taken_premium_reward2 = 3; + * @param value the takenPremiumReward2 to set * @return this */ - public BattlePassInfoNotify setTakenPremiumReward1(final long value) { + public BattlePassInfoNotify setTakenPremiumReward2(final long value) { bitField0_ |= 0x00000001; - takenPremiumReward1 = value; + takenPremiumReward2 = value; return this; } /** - * optional uint64 taken_premium_extended_reward = 6; - * @return whether the takenPremiumExtendedReward field is set + * optional uint64 taken_premium_optional_reward = 7; + * @return whether the takenPremiumOptionalReward field is set */ - public boolean hasTakenPremiumExtendedReward() { + public boolean hasTakenPremiumOptionalReward() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint64 taken_premium_extended_reward = 6; + * optional uint64 taken_premium_optional_reward = 7; * @return this */ - public BattlePassInfoNotify clearTakenPremiumExtendedReward() { + public BattlePassInfoNotify clearTakenPremiumOptionalReward() { bitField0_ &= ~0x00000002; - takenPremiumExtendedReward = 0L; + takenPremiumOptionalReward = 0L; return this; } /** - * optional uint64 taken_premium_extended_reward = 6; - * @return the takenPremiumExtendedReward + * optional uint64 taken_premium_optional_reward = 7; + * @return the takenPremiumOptionalReward */ - public long getTakenPremiumExtendedReward() { - return takenPremiumExtendedReward; + public long getTakenPremiumOptionalReward() { + return takenPremiumOptionalReward; } /** - * optional uint64 taken_premium_extended_reward = 6; - * @param value the takenPremiumExtendedReward to set + * optional uint64 taken_premium_optional_reward = 7; + * @param value the takenPremiumOptionalReward to set * @return this */ - public BattlePassInfoNotify setTakenPremiumExtendedReward(final long value) { + public BattlePassInfoNotify setTakenPremiumOptionalReward(final long value) { bitField0_ |= 0x00000002; - takenPremiumExtendedReward = value; + takenPremiumOptionalReward = value; return this; } /** - * optional uint64 taken_free_extended_reward = 7; + * optional uint64 taken_free_extended_reward = 8; * @return whether the takenFreeExtendedReward field is set */ public boolean hasTakenFreeExtendedReward() { @@ -172,7 +178,7 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint64 taken_free_extended_reward = 7; + * optional uint64 taken_free_extended_reward = 8; * @return this */ public BattlePassInfoNotify clearTakenFreeExtendedReward() { @@ -182,7 +188,7 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint64 taken_free_extended_reward = 7; + * optional uint64 taken_free_extended_reward = 8; * @return the takenFreeExtendedReward */ public long getTakenFreeExtendedReward() { @@ -190,7 +196,7 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint64 taken_free_extended_reward = 7; + * optional uint64 taken_free_extended_reward = 8; * @param value the takenFreeExtendedReward to set * @return this */ @@ -201,37 +207,173 @@ public final class BattlePassInfoNotifyOuterClass { } /** - *
-     *  the difficult ones
-     * 
- * - * optional uint64 taken_free_reward = 8; - * @return whether the takenFreeReward field is set + * optional uint64 taken_premium_extended_optional_reward = 9; + * @return whether the takenPremiumExtendedOptionalReward field is set */ - public boolean hasTakenFreeReward() { + public boolean hasTakenPremiumExtendedOptionalReward() { return (bitField0_ & 0x00000008) != 0; } /** - *
-     *  the difficult ones
-     * 
- * - * optional uint64 taken_free_reward = 8; + * optional uint64 taken_premium_extended_optional_reward = 9; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumExtendedOptionalReward() { + bitField0_ &= ~0x00000008; + takenPremiumExtendedOptionalReward = 0L; + return this; + } + + /** + * optional uint64 taken_premium_extended_optional_reward = 9; + * @return the takenPremiumExtendedOptionalReward + */ + public long getTakenPremiumExtendedOptionalReward() { + return takenPremiumExtendedOptionalReward; + } + + /** + * optional uint64 taken_premium_extended_optional_reward = 9; + * @param value the takenPremiumExtendedOptionalReward to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumExtendedOptionalReward(final long value) { + bitField0_ |= 0x00000008; + takenPremiumExtendedOptionalReward = value; + return this; + } + + /** + * optional uint64 taken_premium_extended_reward2 = 11; + * @return whether the takenPremiumExtendedReward2 field is set + */ + public boolean hasTakenPremiumExtendedReward2() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint64 taken_premium_extended_reward2 = 11; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumExtendedReward2() { + bitField0_ &= ~0x00000010; + takenPremiumExtendedReward2 = 0L; + return this; + } + + /** + * optional uint64 taken_premium_extended_reward2 = 11; + * @return the takenPremiumExtendedReward2 + */ + public long getTakenPremiumExtendedReward2() { + return takenPremiumExtendedReward2; + } + + /** + * optional uint64 taken_premium_extended_reward2 = 11; + * @param value the takenPremiumExtendedReward2 to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumExtendedReward2(final long value) { + bitField0_ |= 0x00000010; + takenPremiumExtendedReward2 = value; + return this; + } + + /** + * optional uint64 taken_premium_extended_reward = 13; + * @return whether the takenPremiumExtendedReward field is set + */ + public boolean hasTakenPremiumExtendedReward() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint64 taken_premium_extended_reward = 13; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumExtendedReward() { + bitField0_ &= ~0x00000020; + takenPremiumExtendedReward = 0L; + return this; + } + + /** + * optional uint64 taken_premium_extended_reward = 13; + * @return the takenPremiumExtendedReward + */ + public long getTakenPremiumExtendedReward() { + return takenPremiumExtendedReward; + } + + /** + * optional uint64 taken_premium_extended_reward = 13; + * @param value the takenPremiumExtendedReward to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumExtendedReward(final long value) { + bitField0_ |= 0x00000020; + takenPremiumExtendedReward = value; + return this; + } + + /** + * optional uint64 taken_premium_reward1 = 14; + * @return whether the takenPremiumReward1 field is set + */ + public boolean hasTakenPremiumReward1() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint64 taken_premium_reward1 = 14; + * @return this + */ + public BattlePassInfoNotify clearTakenPremiumReward1() { + bitField0_ &= ~0x00000040; + takenPremiumReward1 = 0L; + return this; + } + + /** + * optional uint64 taken_premium_reward1 = 14; + * @return the takenPremiumReward1 + */ + public long getTakenPremiumReward1() { + return takenPremiumReward1; + } + + /** + * optional uint64 taken_premium_reward1 = 14; + * @param value the takenPremiumReward1 to set + * @return this + */ + public BattlePassInfoNotify setTakenPremiumReward1(final long value) { + bitField0_ |= 0x00000040; + takenPremiumReward1 = value; + return this; + } + + /** + * optional uint64 taken_free_reward = 15; + * @return whether the takenFreeReward field is set + */ + public boolean hasTakenFreeReward() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint64 taken_free_reward = 15; * @return this */ public BattlePassInfoNotify clearTakenFreeReward() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000080; takenFreeReward = 0L; return this; } /** - *
-     *  the difficult ones
-     * 
- * - * optional uint64 taken_free_reward = 8; + * optional uint64 taken_free_reward = 15; * @return the takenFreeReward */ public long getTakenFreeReward() { @@ -239,151 +381,36 @@ public final class BattlePassInfoNotifyOuterClass { } /** - *
-     *  the difficult ones
-     * 
- * - * optional uint64 taken_free_reward = 8; + * optional uint64 taken_free_reward = 15; * @param value the takenFreeReward to set * @return this */ public BattlePassInfoNotify setTakenFreeReward(final long value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; takenFreeReward = value; return this; } /** - * optional uint64 taken_premium_reward2 = 12; - * @return whether the takenPremiumReward2 field is set - */ - public boolean hasTakenPremiumReward2() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint64 taken_premium_reward2 = 12; - * @return this - */ - public BattlePassInfoNotify clearTakenPremiumReward2() { - bitField0_ &= ~0x00000010; - takenPremiumReward2 = 0L; - return this; - } - - /** - * optional uint64 taken_premium_reward2 = 12; - * @return the takenPremiumReward2 - */ - public long getTakenPremiumReward2() { - return takenPremiumReward2; - } - - /** - * optional uint64 taken_premium_reward2 = 12; - * @param value the takenPremiumReward2 to set - * @return this - */ - public BattlePassInfoNotify setTakenPremiumReward2(final long value) { - bitField0_ |= 0x00000010; - takenPremiumReward2 = value; - return this; - } - - /** - * optional uint64 taken_premium_optional_reward = 15; - * @return whether the takenPremiumOptionalReward field is set - */ - public boolean hasTakenPremiumOptionalReward() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint64 taken_premium_optional_reward = 15; - * @return this - */ - public BattlePassInfoNotify clearTakenPremiumOptionalReward() { - bitField0_ &= ~0x00000020; - takenPremiumOptionalReward = 0L; - return this; - } - - /** - * optional uint64 taken_premium_optional_reward = 15; - * @return the takenPremiumOptionalReward - */ - public long getTakenPremiumOptionalReward() { - return takenPremiumOptionalReward; - } - - /** - * optional uint64 taken_premium_optional_reward = 15; - * @param value the takenPremiumOptionalReward to set - * @return this - */ - public BattlePassInfoNotify setTakenPremiumOptionalReward(final long value) { - bitField0_ |= 0x00000020; - takenPremiumOptionalReward = value; - return this; - } - - /** - * optional uint32 level = 1; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional uint32 level = 1; - * @return this - */ - public BattlePassInfoNotify clearLevel() { - bitField0_ &= ~0x00000040; - level = 0; - return this; - } - - /** - * optional uint32 level = 1; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 1; - * @param value the level to set - * @return this - */ - public BattlePassInfoNotify setLevel(final int value) { - bitField0_ |= 0x00000040; - level = value; - return this; - } - - /** - * optional uint32 exp = 4; + * optional uint32 exp = 1; * @return whether the exp field is set */ public boolean hasExp() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** - * optional uint32 exp = 4; + * optional uint32 exp = 1; * @return this */ public BattlePassInfoNotify clearExp() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; exp = 0; return this; } /** - * optional uint32 exp = 4; + * optional uint32 exp = 1; * @return the exp */ public int getExp() { @@ -391,36 +418,36 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint32 exp = 4; + * optional uint32 exp = 1; * @param value the exp to set * @return this */ public BattlePassInfoNotify setExp(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; exp = value; return this; } /** - * optional uint32 cur_bp_id = 9; + * optional uint32 cur_bp_id = 6; * @return whether the curBpId field is set */ public boolean hasCurBpId() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000200) != 0; } /** - * optional uint32 cur_bp_id = 9; + * optional uint32 cur_bp_id = 6; * @return this */ public BattlePassInfoNotify clearCurBpId() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000200; curBpId = 0; return this; } /** - * optional uint32 cur_bp_id = 9; + * optional uint32 cur_bp_id = 6; * @return the curBpId */ public int getCurBpId() { @@ -428,36 +455,36 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint32 cur_bp_id = 9; + * optional uint32 cur_bp_id = 6; * @param value the curBpId to set * @return this */ public BattlePassInfoNotify setCurBpId(final int value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; curBpId = value; return this; } /** - * optional uint32 cur_week_add_exp_sum = 14; + * optional uint32 cur_week_add_exp_sum = 10; * @return whether the curWeekAddExpSum field is set */ public boolean hasCurWeekAddExpSum() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00000400) != 0; } /** - * optional uint32 cur_week_add_exp_sum = 14; + * optional uint32 cur_week_add_exp_sum = 10; * @return this */ public BattlePassInfoNotify clearCurWeekAddExpSum() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; curWeekAddExpSum = 0; return this; } /** - * optional uint32 cur_week_add_exp_sum = 14; + * optional uint32 cur_week_add_exp_sum = 10; * @return the curWeekAddExpSum */ public int getCurWeekAddExpSum() { @@ -465,36 +492,73 @@ public final class BattlePassInfoNotifyOuterClass { } /** - * optional uint32 cur_week_add_exp_sum = 14; + * optional uint32 cur_week_add_exp_sum = 10; * @param value the curWeekAddExpSum to set * @return this */ public BattlePassInfoNotify setCurWeekAddExpSum(final int value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; curWeekAddExpSum = value; return this; } /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 13; - * @return whether the bpTierType field is set + * optional uint32 level = 12; + * @return whether the level field is set */ - public boolean hasBpTierType() { - return (bitField0_ & 0x00000400) != 0; + public boolean hasLevel() { + return (bitField0_ & 0x00000800) != 0; } /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 13; + * optional uint32 level = 12; + * @return this + */ + public BattlePassInfoNotify clearLevel() { + bitField0_ &= ~0x00000800; + level = 0; + return this; + } + + /** + * optional uint32 level = 12; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 12; + * @param value the level to set + * @return this + */ + public BattlePassInfoNotify setLevel(final int value) { + bitField0_ |= 0x00000800; + level = value; + return this; + } + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 5; + * @return whether the bpTierType field is set + */ + public boolean hasBpTierType() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 5; * @return this */ public BattlePassInfoNotify clearBpTierType() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00001000; bpTierType = 0; return this; } /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 13; + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 5; * @return the bpTierType */ public BpTierType getBpTierType() { @@ -521,18 +585,18 @@ public final class BattlePassInfoNotifyOuterClass { * @return this */ public BattlePassInfoNotify setBpTierTypeValue(final int value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; bpTierType = value; return this; } /** - * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 13; + * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 5; * @param value the bpTierType to set * @return this */ public BattlePassInfoNotify setBpTierType(final BpTierType value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; bpTierType = value.getNumber(); return this; } @@ -542,16 +606,18 @@ public final class BattlePassInfoNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - takenPremiumReward1 = other.takenPremiumReward1; - takenPremiumExtendedReward = other.takenPremiumExtendedReward; - takenFreeExtendedReward = other.takenFreeExtendedReward; - takenFreeReward = other.takenFreeReward; takenPremiumReward2 = other.takenPremiumReward2; takenPremiumOptionalReward = other.takenPremiumOptionalReward; - level = other.level; + takenFreeExtendedReward = other.takenFreeExtendedReward; + takenPremiumExtendedOptionalReward = other.takenPremiumExtendedOptionalReward; + takenPremiumExtendedReward2 = other.takenPremiumExtendedReward2; + takenPremiumExtendedReward = other.takenPremiumExtendedReward; + takenPremiumReward1 = other.takenPremiumReward1; + takenFreeReward = other.takenFreeReward; exp = other.exp; curBpId = other.curBpId; curWeekAddExpSum = other.curWeekAddExpSum; + level = other.level; bpTierType = other.bpTierType; } return this; @@ -563,26 +629,29 @@ public final class BattlePassInfoNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasTakenPremiumReward1()) { - setTakenPremiumReward1(other.takenPremiumReward1); - } - if (other.hasTakenPremiumExtendedReward()) { - setTakenPremiumExtendedReward(other.takenPremiumExtendedReward); - } - if (other.hasTakenFreeExtendedReward()) { - setTakenFreeExtendedReward(other.takenFreeExtendedReward); - } - if (other.hasTakenFreeReward()) { - setTakenFreeReward(other.takenFreeReward); - } if (other.hasTakenPremiumReward2()) { setTakenPremiumReward2(other.takenPremiumReward2); } if (other.hasTakenPremiumOptionalReward()) { setTakenPremiumOptionalReward(other.takenPremiumOptionalReward); } - if (other.hasLevel()) { - setLevel(other.level); + if (other.hasTakenFreeExtendedReward()) { + setTakenFreeExtendedReward(other.takenFreeExtendedReward); + } + if (other.hasTakenPremiumExtendedOptionalReward()) { + setTakenPremiumExtendedOptionalReward(other.takenPremiumExtendedOptionalReward); + } + if (other.hasTakenPremiumExtendedReward2()) { + setTakenPremiumExtendedReward2(other.takenPremiumExtendedReward2); + } + if (other.hasTakenPremiumExtendedReward()) { + setTakenPremiumExtendedReward(other.takenPremiumExtendedReward); + } + if (other.hasTakenPremiumReward1()) { + setTakenPremiumReward1(other.takenPremiumReward1); + } + if (other.hasTakenFreeReward()) { + setTakenFreeReward(other.takenFreeReward); } if (other.hasExp()) { setExp(other.exp); @@ -593,6 +662,9 @@ public final class BattlePassInfoNotifyOuterClass { if (other.hasCurWeekAddExpSum()) { setCurWeekAddExpSum(other.curWeekAddExpSum); } + if (other.hasLevel()) { + setLevel(other.level); + } if (other.hasBpTierType()) { setBpTierTypeValue(other.bpTierType); } @@ -606,16 +678,18 @@ public final class BattlePassInfoNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - takenPremiumReward1 = 0L; - takenPremiumExtendedReward = 0L; - takenFreeExtendedReward = 0L; - takenFreeReward = 0L; takenPremiumReward2 = 0L; takenPremiumOptionalReward = 0L; - level = 0; + takenFreeExtendedReward = 0L; + takenPremiumExtendedOptionalReward = 0L; + takenPremiumExtendedReward2 = 0L; + takenPremiumExtendedReward = 0L; + takenPremiumReward1 = 0L; + takenFreeReward = 0L; exp = 0; curBpId = 0; curWeekAddExpSum = 0; + level = 0; bpTierType = 0; return this; } @@ -640,16 +714,18 @@ public final class BattlePassInfoNotifyOuterClass { } BattlePassInfoNotify other = (BattlePassInfoNotify) o; return bitField0_ == other.bitField0_ - && (!hasTakenPremiumReward1() || takenPremiumReward1 == other.takenPremiumReward1) - && (!hasTakenPremiumExtendedReward() || takenPremiumExtendedReward == other.takenPremiumExtendedReward) - && (!hasTakenFreeExtendedReward() || takenFreeExtendedReward == other.takenFreeExtendedReward) - && (!hasTakenFreeReward() || takenFreeReward == other.takenFreeReward) && (!hasTakenPremiumReward2() || takenPremiumReward2 == other.takenPremiumReward2) && (!hasTakenPremiumOptionalReward() || takenPremiumOptionalReward == other.takenPremiumOptionalReward) - && (!hasLevel() || level == other.level) + && (!hasTakenFreeExtendedReward() || takenFreeExtendedReward == other.takenFreeExtendedReward) + && (!hasTakenPremiumExtendedOptionalReward() || takenPremiumExtendedOptionalReward == other.takenPremiumExtendedOptionalReward) + && (!hasTakenPremiumExtendedReward2() || takenPremiumExtendedReward2 == other.takenPremiumExtendedReward2) + && (!hasTakenPremiumExtendedReward() || takenPremiumExtendedReward == other.takenPremiumExtendedReward) + && (!hasTakenPremiumReward1() || takenPremiumReward1 == other.takenPremiumReward1) + && (!hasTakenFreeReward() || takenFreeReward == other.takenFreeReward) && (!hasExp() || exp == other.exp) && (!hasCurBpId() || curBpId == other.curBpId) && (!hasCurWeekAddExpSum() || curWeekAddExpSum == other.curWeekAddExpSum) + && (!hasLevel() || level == other.level) && (!hasBpTierType() || bpTierType == other.bpTierType); } @@ -657,46 +733,54 @@ public final class BattlePassInfoNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt64NoTag(takenPremiumReward1); + output.writeUInt64NoTag(takenPremiumReward2); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt64NoTag(takenPremiumExtendedReward); + output.writeRawByte((byte) 56); + output.writeUInt64NoTag(takenPremiumOptionalReward); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt64NoTag(takenFreeExtendedReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt64NoTag(takenFreeReward); + output.writeRawByte((byte) 72); + output.writeUInt64NoTag(takenPremiumExtendedOptionalReward); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt64NoTag(takenPremiumReward2); + output.writeRawByte((byte) 88); + output.writeUInt64NoTag(takenPremiumExtendedReward2); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt64NoTag(takenPremiumOptionalReward); + output.writeRawByte((byte) 104); + output.writeUInt64NoTag(takenPremiumExtendedReward); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 112); + output.writeUInt64NoTag(takenPremiumReward1); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(exp); + output.writeRawByte((byte) 120); + output.writeUInt64NoTag(takenFreeReward); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(curBpId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(curWeekAddExpSum); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(curBpId); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(curWeekAddExpSum); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 40); output.writeEnumNoTag(bpTierType); } } @@ -705,36 +789,42 @@ public final class BattlePassInfoNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward1); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward2); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumOptionalReward); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeExtendedReward); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeReward); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedOptionalReward); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward2); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward2); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumOptionalReward); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward1); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); + size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeReward); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curBpId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curBpId); } if ((bitField0_ & 0x00000400) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00001000) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(bpTierType); } return size; @@ -748,101 +838,119 @@ public final class BattlePassInfoNotifyOuterClass { while (true) { switch (tag) { case 24: { - // takenPremiumReward1 - takenPremiumReward1 = input.readUInt64(); + // takenPremiumReward2 + takenPremiumReward2 = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // takenPremiumExtendedReward - takenPremiumExtendedReward = input.readUInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 56) { break; } } case 56: { - // takenFreeExtendedReward - takenFreeExtendedReward = input.readUInt64(); - bitField0_ |= 0x00000004; + // takenPremiumOptionalReward + takenPremiumOptionalReward = input.readUInt64(); + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // takenFreeReward - takenFreeReward = input.readUInt64(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // takenPremiumReward2 - takenPremiumReward2 = input.readUInt64(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // takenPremiumOptionalReward - takenPremiumOptionalReward = input.readUInt64(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // exp - exp = input.readUInt32(); - bitField0_ |= 0x00000080; + // takenFreeExtendedReward + takenFreeExtendedReward = input.readUInt64(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 72) { break; } } case 72: { - // curBpId - curBpId = input.readUInt32(); - bitField0_ |= 0x00000100; + // takenPremiumExtendedOptionalReward + takenPremiumExtendedOptionalReward = input.readUInt64(); + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 112) { + if (tag != 88) { break; } } - case 112: { - // curWeekAddExpSum - curWeekAddExpSum = input.readUInt32(); - bitField0_ |= 0x00000200; + case 88: { + // takenPremiumExtendedReward2 + takenPremiumExtendedReward2 = input.readUInt64(); + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 104) { break; } } case 104: { + // takenPremiumExtendedReward + takenPremiumExtendedReward = input.readUInt64(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // takenPremiumReward1 + takenPremiumReward1 = input.readUInt64(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // takenFreeReward + takenFreeReward = input.readUInt64(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // curBpId + curBpId = input.readUInt32(); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // curWeekAddExpSum + curWeekAddExpSum = input.readUInt32(); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { // bpTierType final int value = input.readInt32(); if (BpTierType.forNumber(value) != null) { bpTierType = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; } tag = input.readTag(); if (tag != 0) { @@ -867,36 +975,42 @@ public final class BattlePassInfoNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.takenPremiumReward1, takenPremiumReward1); + output.writeUInt64(FieldNames.takenPremiumReward2, takenPremiumReward2); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt64(FieldNames.takenPremiumExtendedReward, takenPremiumExtendedReward); + output.writeUInt64(FieldNames.takenPremiumOptionalReward, takenPremiumOptionalReward); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt64(FieldNames.takenFreeExtendedReward, takenFreeExtendedReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt64(FieldNames.takenFreeReward, takenFreeReward); + output.writeUInt64(FieldNames.takenPremiumExtendedOptionalReward, takenPremiumExtendedOptionalReward); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt64(FieldNames.takenPremiumReward2, takenPremiumReward2); + output.writeUInt64(FieldNames.takenPremiumExtendedReward2, takenPremiumExtendedReward2); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt64(FieldNames.takenPremiumOptionalReward, takenPremiumOptionalReward); + output.writeUInt64(FieldNames.takenPremiumExtendedReward, takenPremiumExtendedReward); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt64(FieldNames.takenPremiumReward1, takenPremiumReward1); } if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.exp, exp); + output.writeUInt64(FieldNames.takenFreeReward, takenFreeReward); } if ((bitField0_ & 0x00000100) != 0) { - output.writeUInt32(FieldNames.curBpId, curBpId); + output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000200) != 0) { - output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum); + output.writeUInt32(FieldNames.curBpId, curBpId); } if ((bitField0_ & 0x00000400) != 0) { + output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00001000) != 0) { output.writeEnum(FieldNames.bpTierType, bpTierType, BpTierType.converter()); } output.endObject(); @@ -909,11 +1023,11 @@ public final class BattlePassInfoNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 226926898: - case 1195903362: { - if (input.isAtField(FieldNames.takenPremiumReward1)) { + case 226926899: + case 1195903363: { + if (input.isAtField(FieldNames.takenPremiumReward2)) { if (!input.trySkipNullValue()) { - takenPremiumReward1 = input.readUInt64(); + takenPremiumReward2 = input.readUInt64(); bitField0_ |= 0x00000001; } } else { @@ -921,11 +1035,11 @@ public final class BattlePassInfoNotifyOuterClass { } break; } - case -1290021512: - case -2138632299: { - if (input.isAtField(FieldNames.takenPremiumExtendedReward)) { + case 736311903: + case 548161422: { + if (input.isAtField(FieldNames.takenPremiumOptionalReward)) { if (!input.trySkipNullValue()) { - takenPremiumExtendedReward = input.readUInt64(); + takenPremiumOptionalReward = input.readUInt64(); bitField0_ |= 0x00000002; } } else { @@ -945,11 +1059,11 @@ public final class BattlePassInfoNotifyOuterClass { } break; } - case 1065549026: - case 135671018: { - if (input.isAtField(FieldNames.takenFreeReward)) { + case 798665720: + case -208746680: { + if (input.isAtField(FieldNames.takenPremiumExtendedOptionalReward)) { if (!input.trySkipNullValue()) { - takenFreeReward = input.readUInt64(); + takenPremiumExtendedOptionalReward = input.readUInt64(); bitField0_ |= 0x00000008; } } else { @@ -957,11 +1071,11 @@ public final class BattlePassInfoNotifyOuterClass { } break; } - case 226926899: - case 1195903363: { - if (input.isAtField(FieldNames.takenPremiumReward2)) { + case -1335961158: + case -1873091779: { + if (input.isAtField(FieldNames.takenPremiumExtendedReward2)) { if (!input.trySkipNullValue()) { - takenPremiumReward2 = input.readUInt64(); + takenPremiumExtendedReward2 = input.readUInt64(); bitField0_ |= 0x00000010; } } else { @@ -969,11 +1083,11 @@ public final class BattlePassInfoNotifyOuterClass { } break; } - case 736311903: - case 548161422: { - if (input.isAtField(FieldNames.takenPremiumOptionalReward)) { + case -1290021512: + case -2138632299: { + if (input.isAtField(FieldNames.takenPremiumExtendedReward)) { if (!input.trySkipNullValue()) { - takenPremiumOptionalReward = input.readUInt64(); + takenPremiumExtendedReward = input.readUInt64(); bitField0_ |= 0x00000020; } } else { @@ -981,10 +1095,11 @@ public final class BattlePassInfoNotifyOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 226926898: + case 1195903362: { + if (input.isAtField(FieldNames.takenPremiumReward1)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + takenPremiumReward1 = input.readUInt64(); bitField0_ |= 0x00000040; } } else { @@ -992,11 +1107,23 @@ public final class BattlePassInfoNotifyOuterClass { } break; } + case 1065549026: + case 135671018: { + if (input.isAtField(FieldNames.takenFreeReward)) { + if (!input.trySkipNullValue()) { + takenFreeReward = input.readUInt64(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } case 100893: { if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { exp = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -1008,7 +1135,7 @@ public final class BattlePassInfoNotifyOuterClass { if (input.isAtField(FieldNames.curBpId)) { if (!input.trySkipNullValue()) { curBpId = input.readUInt32(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -1020,7 +1147,18 @@ public final class BattlePassInfoNotifyOuterClass { if (input.isAtField(FieldNames.curWeekAddExpSum)) { if (!input.trySkipNullValue()) { curWeekAddExpSum = input.readUInt32(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -1034,7 +1172,7 @@ public final class BattlePassInfoNotifyOuterClass { final BpTierType value = input.readEnum(BpTierType.converter()); if (value != null) { bpTierType = value.getNumber(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; } else { input.skipUnknownEnumValue(); } @@ -1086,8 +1224,8 @@ public final class BattlePassInfoNotifyOuterClass { /** *
-     *  up to lv64 => normal
-     *  after lv64 => extended
+     *  up to lv64 => normal, flag 0
+     *  after lv64 => extended, flag 1
      * 
* * Protobuf enum {@code BpTierType} @@ -1239,19 +1377,21 @@ public final class BattlePassInfoNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName takenPremiumReward1 = FieldName.forField("takenPremiumReward1", "taken_premium_reward1"); - - static final FieldName takenPremiumExtendedReward = FieldName.forField("takenPremiumExtendedReward", "taken_premium_extended_reward"); - - static final FieldName takenFreeExtendedReward = FieldName.forField("takenFreeExtendedReward", "taken_free_extended_reward"); - - static final FieldName takenFreeReward = FieldName.forField("takenFreeReward", "taken_free_reward"); - static final FieldName takenPremiumReward2 = FieldName.forField("takenPremiumReward2", "taken_premium_reward2"); static final FieldName takenPremiumOptionalReward = FieldName.forField("takenPremiumOptionalReward", "taken_premium_optional_reward"); - static final FieldName level = FieldName.forField("level"); + static final FieldName takenFreeExtendedReward = FieldName.forField("takenFreeExtendedReward", "taken_free_extended_reward"); + + static final FieldName takenPremiumExtendedOptionalReward = FieldName.forField("takenPremiumExtendedOptionalReward", "taken_premium_extended_optional_reward"); + + static final FieldName takenPremiumExtendedReward2 = FieldName.forField("takenPremiumExtendedReward2", "taken_premium_extended_reward2"); + + static final FieldName takenPremiumExtendedReward = FieldName.forField("takenPremiumExtendedReward", "taken_premium_extended_reward"); + + static final FieldName takenPremiumReward1 = FieldName.forField("takenPremiumReward1", "taken_premium_reward1"); + + static final FieldName takenFreeReward = FieldName.forField("takenFreeReward", "taken_free_reward"); static final FieldName exp = FieldName.forField("exp"); @@ -1259,6 +1399,8 @@ public final class BattlePassInfoNotifyOuterClass { static final FieldName curWeekAddExpSum = FieldName.forField("curWeekAddExpSum", "cur_week_add_exp_sum"); + static final FieldName level = FieldName.forField("level"); + static final FieldName bpTierType = FieldName.forField("bpTierType", "bp_tier_type"); } } diff --git a/src/generated/main/emu/lunarcore/proto/BattleRecord1InfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRecord1InfoOuterClass.java new file mode 100644 index 0000000..bb057d1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleRecord1InfoOuterClass.java @@ -0,0 +1,540 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class BattleRecord1InfoOuterClass { + /** + * Protobuf type {@code BattleRecord1Info} + */ + public static final class BattleRecord1Info extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 battle_record_stars = 6; + */ + private int battleRecordStars; + + /** + * optional uint32 round_count = 8; + */ + private int roundCount; + + /** + * optional uint32 level = 12; + */ + private int level; + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + */ + private final RepeatedMessage battleRecordAvatars = RepeatedMessage.newEmptyInstance(BattleRecordAvatarsOuterClass.BattleRecordAvatars.getFactory()); + + private BattleRecord1Info() { + } + + /** + * @return a new empty instance of {@code BattleRecord1Info} + */ + public static BattleRecord1Info newInstance() { + return new BattleRecord1Info(); + } + + /** + * optional uint32 battle_record_stars = 6; + * @return whether the battleRecordStars field is set + */ + public boolean hasBattleRecordStars() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 battle_record_stars = 6; + * @return this + */ + public BattleRecord1Info clearBattleRecordStars() { + bitField0_ &= ~0x00000001; + battleRecordStars = 0; + return this; + } + + /** + * optional uint32 battle_record_stars = 6; + * @return the battleRecordStars + */ + public int getBattleRecordStars() { + return battleRecordStars; + } + + /** + * optional uint32 battle_record_stars = 6; + * @param value the battleRecordStars to set + * @return this + */ + public BattleRecord1Info setBattleRecordStars(final int value) { + bitField0_ |= 0x00000001; + battleRecordStars = value; + return this; + } + + /** + * optional uint32 round_count = 8; + * @return whether the roundCount field is set + */ + public boolean hasRoundCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 round_count = 8; + * @return this + */ + public BattleRecord1Info clearRoundCount() { + bitField0_ &= ~0x00000002; + roundCount = 0; + return this; + } + + /** + * optional uint32 round_count = 8; + * @return the roundCount + */ + public int getRoundCount() { + return roundCount; + } + + /** + * optional uint32 round_count = 8; + * @param value the roundCount to set + * @return this + */ + public BattleRecord1Info setRoundCount(final int value) { + bitField0_ |= 0x00000002; + roundCount = value; + return this; + } + + /** + * optional uint32 level = 12; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 level = 12; + * @return this + */ + public BattleRecord1Info clearLevel() { + bitField0_ &= ~0x00000004; + level = 0; + return this; + } + + /** + * optional uint32 level = 12; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 12; + * @param value the level to set + * @return this + */ + public BattleRecord1Info setLevel(final int value) { + bitField0_ |= 0x00000004; + level = value; + return this; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + * @return whether the battleRecordAvatars field is set + */ + public boolean hasBattleRecordAvatars() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + * @return this + */ + public BattleRecord1Info clearBattleRecordAvatars() { + bitField0_ &= ~0x00000008; + battleRecordAvatars.clear(); + return this; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBattleRecordAvatars()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleRecordAvatars( + ) { + return battleRecordAvatars; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableBattleRecordAvatars( + ) { + bitField0_ |= 0x00000008; + return battleRecordAvatars; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + * @param value the battleRecordAvatars to add + * @return this + */ + public BattleRecord1Info addBattleRecordAvatars( + final BattleRecordAvatarsOuterClass.BattleRecordAvatars value) { + bitField0_ |= 0x00000008; + battleRecordAvatars.add(value); + return this; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 11; + * @param values the battleRecordAvatars to add + * @return this + */ + public BattleRecord1Info addAllBattleRecordAvatars( + final BattleRecordAvatarsOuterClass.BattleRecordAvatars... values) { + bitField0_ |= 0x00000008; + battleRecordAvatars.addAll(values); + return this; + } + + @Override + public BattleRecord1Info copyFrom(final BattleRecord1Info other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleRecordStars = other.battleRecordStars; + roundCount = other.roundCount; + level = other.level; + battleRecordAvatars.copyFrom(other.battleRecordAvatars); + } + return this; + } + + @Override + public BattleRecord1Info mergeFrom(final BattleRecord1Info other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleRecordStars()) { + setBattleRecordStars(other.battleRecordStars); + } + if (other.hasRoundCount()) { + setRoundCount(other.roundCount); + } + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasBattleRecordAvatars()) { + getMutableBattleRecordAvatars().addAll(other.battleRecordAvatars); + } + return this; + } + + @Override + public BattleRecord1Info clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleRecordStars = 0; + roundCount = 0; + level = 0; + battleRecordAvatars.clear(); + return this; + } + + @Override + public BattleRecord1Info clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleRecordAvatars.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleRecord1Info)) { + return false; + } + BattleRecord1Info other = (BattleRecord1Info) o; + return bitField0_ == other.bitField0_ + && (!hasBattleRecordStars() || battleRecordStars == other.battleRecordStars) + && (!hasRoundCount() || roundCount == other.roundCount) + && (!hasLevel() || level == other.level) + && (!hasBattleRecordAvatars() || battleRecordAvatars.equals(other.battleRecordAvatars)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(battleRecordStars); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(roundCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < battleRecordAvatars.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(battleRecordAvatars.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleRecordStars); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * battleRecordAvatars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleRecordAvatars); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleRecord1Info mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // battleRecordStars + battleRecordStars = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // roundCount + roundCount = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // battleRecordAvatars + tag = input.readRepeatedMessage(battleRecordAvatars, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.battleRecordStars, battleRecordStars); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.roundCount, roundCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.battleRecordAvatars, battleRecordAvatars); + } + output.endObject(); + } + + @Override + public BattleRecord1Info mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1025792328: + case 59201306: { + if (input.isAtField(FieldNames.battleRecordStars)) { + if (!input.trySkipNullValue()) { + battleRecordStars = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -171935711: + case -244677858: { + if (input.isAtField(FieldNames.roundCount)) { + if (!input.trySkipNullValue()) { + roundCount = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -976809263: + case -1974979917: { + if (input.isAtField(FieldNames.battleRecordAvatars)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(battleRecordAvatars); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleRecord1Info clone() { + return new BattleRecord1Info().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleRecord1Info parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleRecord1Info(), data).checkInitialized(); + } + + public static BattleRecord1Info parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecord1Info(), input).checkInitialized(); + } + + public static BattleRecord1Info parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecord1Info(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleRecord1Info messages + */ + public static MessageFactory getFactory() { + return BattleRecord1InfoFactory.INSTANCE; + } + + private enum BattleRecord1InfoFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleRecord1Info create() { + return BattleRecord1Info.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleRecordStars = FieldName.forField("battleRecordStars", "battle_record_stars"); + + static final FieldName roundCount = FieldName.forField("roundCount", "round_count"); + + static final FieldName level = FieldName.forField("level"); + + static final FieldName battleRecordAvatars = FieldName.forField("battleRecordAvatars", "battle_record_avatars"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleRecord1OuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRecord1OuterClass.java new file mode 100644 index 0000000..5505aa5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleRecord1OuterClass.java @@ -0,0 +1,361 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class BattleRecord1OuterClass { + /** + * Protobuf type {@code BattleRecord1} + */ + public static final class BattleRecord1 extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 record_id = 9; + */ + private int recordId; + + /** + * optional .BattleRecord1Info record_info = 1; + */ + private final BattleRecord1InfoOuterClass.BattleRecord1Info recordInfo = BattleRecord1InfoOuterClass.BattleRecord1Info.newInstance(); + + private BattleRecord1() { + } + + /** + * @return a new empty instance of {@code BattleRecord1} + */ + public static BattleRecord1 newInstance() { + return new BattleRecord1(); + } + + /** + * optional uint32 record_id = 9; + * @return whether the recordId field is set + */ + public boolean hasRecordId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 record_id = 9; + * @return this + */ + public BattleRecord1 clearRecordId() { + bitField0_ &= ~0x00000001; + recordId = 0; + return this; + } + + /** + * optional uint32 record_id = 9; + * @return the recordId + */ + public int getRecordId() { + return recordId; + } + + /** + * optional uint32 record_id = 9; + * @param value the recordId to set + * @return this + */ + public BattleRecord1 setRecordId(final int value) { + bitField0_ |= 0x00000001; + recordId = value; + return this; + } + + /** + * optional .BattleRecord1Info record_info = 1; + * @return whether the recordInfo field is set + */ + public boolean hasRecordInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .BattleRecord1Info record_info = 1; + * @return this + */ + public BattleRecord1 clearRecordInfo() { + bitField0_ &= ~0x00000002; + recordInfo.clear(); + return this; + } + + /** + * optional .BattleRecord1Info record_info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRecordInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public BattleRecord1InfoOuterClass.BattleRecord1Info getRecordInfo() { + return recordInfo; + } + + /** + * optional .BattleRecord1Info record_info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public BattleRecord1InfoOuterClass.BattleRecord1Info getMutableRecordInfo() { + bitField0_ |= 0x00000002; + return recordInfo; + } + + /** + * optional .BattleRecord1Info record_info = 1; + * @param value the recordInfo to set + * @return this + */ + public BattleRecord1 setRecordInfo(final BattleRecord1InfoOuterClass.BattleRecord1Info value) { + bitField0_ |= 0x00000002; + recordInfo.copyFrom(value); + return this; + } + + @Override + public BattleRecord1 copyFrom(final BattleRecord1 other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + recordId = other.recordId; + recordInfo.copyFrom(other.recordInfo); + } + return this; + } + + @Override + public BattleRecord1 mergeFrom(final BattleRecord1 other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRecordId()) { + setRecordId(other.recordId); + } + if (other.hasRecordInfo()) { + getMutableRecordInfo().mergeFrom(other.recordInfo); + } + return this; + } + + @Override + public BattleRecord1 clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + recordId = 0; + recordInfo.clear(); + return this; + } + + @Override + public BattleRecord1 clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + recordInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleRecord1)) { + return false; + } + BattleRecord1 other = (BattleRecord1) o; + return bitField0_ == other.bitField0_ + && (!hasRecordId() || recordId == other.recordId) + && (!hasRecordInfo() || recordInfo.equals(other.recordInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(recordId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(recordInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(recordId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(recordInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleRecord1 mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // recordId + recordId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // recordInfo + input.readMessage(recordInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.recordId, recordId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.recordInfo, recordInfo); + } + output.endObject(); + } + + @Override + public BattleRecord1 mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -799234740: + case 993548233: { + if (input.isAtField(FieldNames.recordId)) { + if (!input.trySkipNullValue()) { + recordId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 734573727: + case 1317125084: { + if (input.isAtField(FieldNames.recordInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(recordInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleRecord1 clone() { + return new BattleRecord1().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleRecord1 parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleRecord1(), data).checkInitialized(); + } + + public static BattleRecord1 parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecord1(), input).checkInitialized(); + } + + public static BattleRecord1 parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecord1(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleRecord1 messages + */ + public static MessageFactory getFactory() { + return BattleRecord1Factory.INSTANCE; + } + + private enum BattleRecord1Factory implements MessageFactory { + INSTANCE; + + @Override + public BattleRecord1 create() { + return BattleRecord1.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName recordId = FieldName.forField("recordId", "record_id"); + + static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRecordAvatarOuterClass.java similarity index 69% rename from src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java rename to src/generated/main/emu/lunarcore/proto/BattleRecordAvatarOuterClass.java index ee3d432..c34d44b 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueRecordAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BattleRecordAvatarOuterClass.java @@ -11,78 +11,41 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueRecordAvatarOuterClass { +public final class BattleRecordAvatarOuterClass { /** - * Protobuf type {@code RogueRecordAvatar} + * Protobuf type {@code BattleRecordAvatar} */ - public static final class RogueRecordAvatar extends ProtoMessage implements Cloneable { + public static final class BattleRecordAvatar extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 id = 1; - */ - private int id; - /** * optional uint32 level = 4; */ private int level; /** - * optional uint32 slot = 13; + * optional uint32 index = 14; */ - private int slot; + private int index; /** - * optional .AvatarType avatar_type = 11; + * optional uint32 id = 15; + */ + private int id; + + /** + * optional .AvatarType avatar_type = 1; */ private int avatarType; - private RogueRecordAvatar() { + private BattleRecordAvatar() { } /** - * @return a new empty instance of {@code RogueRecordAvatar} + * @return a new empty instance of {@code BattleRecordAvatar} */ - public static RogueRecordAvatar newInstance() { - return new RogueRecordAvatar(); - } - - /** - * optional uint32 id = 1; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 id = 1; - * @return this - */ - public RogueRecordAvatar clearId() { - bitField0_ &= ~0x00000001; - id = 0; - return this; - } - - /** - * optional uint32 id = 1; - * @return the id - */ - public int getId() { - return id; - } - - /** - * optional uint32 id = 1; - * @param value the id to set - * @return this - */ - public RogueRecordAvatar setId(final int value) { - bitField0_ |= 0x00000001; - id = value; - return this; + public static BattleRecordAvatar newInstance() { + return new BattleRecordAvatar(); } /** @@ -90,15 +53,15 @@ public final class RogueRecordAvatarOuterClass { * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** * optional uint32 level = 4; * @return this */ - public RogueRecordAvatar clearLevel() { - bitField0_ &= ~0x00000002; + public BattleRecordAvatar clearLevel() { + bitField0_ &= ~0x00000001; level = 0; return this; } @@ -116,51 +79,88 @@ public final class RogueRecordAvatarOuterClass { * @param value the level to set * @return this */ - public RogueRecordAvatar setLevel(final int value) { - bitField0_ |= 0x00000002; + public BattleRecordAvatar setLevel(final int value) { + bitField0_ |= 0x00000001; level = value; return this; } /** - * optional uint32 slot = 13; - * @return whether the slot field is set + * optional uint32 index = 14; + * @return whether the index field is set */ - public boolean hasSlot() { + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 14; + * @return this + */ + public BattleRecordAvatar clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 14; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 14; + * @param value the index to set + * @return this + */ + public BattleRecordAvatar setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional uint32 id = 15; + * @return whether the id field is set + */ + public boolean hasId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 slot = 13; + * optional uint32 id = 15; * @return this */ - public RogueRecordAvatar clearSlot() { + public BattleRecordAvatar clearId() { bitField0_ &= ~0x00000004; - slot = 0; + id = 0; return this; } /** - * optional uint32 slot = 13; - * @return the slot + * optional uint32 id = 15; + * @return the id */ - public int getSlot() { - return slot; + public int getId() { + return id; } /** - * optional uint32 slot = 13; - * @param value the slot to set + * optional uint32 id = 15; + * @param value the id to set * @return this */ - public RogueRecordAvatar setSlot(final int value) { + public BattleRecordAvatar setId(final int value) { bitField0_ |= 0x00000004; - slot = value; + id = value; return this; } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 1; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -168,17 +168,17 @@ public final class RogueRecordAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 1; * @return this */ - public RogueRecordAvatar clearAvatarType() { + public BattleRecordAvatar clearAvatarType() { bitField0_ &= ~0x00000008; avatarType = 0; return this; } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 1; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -187,7 +187,7 @@ public final class RogueRecordAvatarOuterClass { /** * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueRecordAvatar#getAvatarType()}.getNumber(). + * equivalent to {@link BattleRecordAvatar#getAvatarType()}.getNumber(). * * @return numeric wire representation */ @@ -199,55 +199,55 @@ public final class RogueRecordAvatarOuterClass { * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value - * can cause {@link RogueRecordAvatar#getAvatarType()} to return null + * can cause {@link BattleRecordAvatar#getAvatarType()} to return null * * @param value the numeric wire value to set * @return this */ - public RogueRecordAvatar setAvatarTypeValue(final int value) { + public BattleRecordAvatar setAvatarTypeValue(final int value) { bitField0_ |= 0x00000008; avatarType = value; return this; } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 1; * @param value the avatarType to set * @return this */ - public RogueRecordAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + public BattleRecordAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { bitField0_ |= 0x00000008; avatarType = value.getNumber(); return this; } @Override - public RogueRecordAvatar copyFrom(final RogueRecordAvatar other) { + public BattleRecordAvatar copyFrom(final BattleRecordAvatar other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - id = other.id; level = other.level; - slot = other.slot; + index = other.index; + id = other.id; avatarType = other.avatarType; } return this; } @Override - public RogueRecordAvatar mergeFrom(final RogueRecordAvatar other) { + public BattleRecordAvatar mergeFrom(final BattleRecordAvatar other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasId()) { - setId(other.id); - } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasSlot()) { - setSlot(other.slot); + if (other.hasIndex()) { + setIndex(other.index); + } + if (other.hasId()) { + setId(other.id); } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); @@ -256,21 +256,21 @@ public final class RogueRecordAvatarOuterClass { } @Override - public RogueRecordAvatar clear() { + public BattleRecordAvatar clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - id = 0; level = 0; - slot = 0; + index = 0; + id = 0; avatarType = 0; return this; } @Override - public RogueRecordAvatar clearQuick() { + public BattleRecordAvatar clearQuick() { if (isEmpty()) { return this; } @@ -284,33 +284,33 @@ public final class RogueRecordAvatarOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueRecordAvatar)) { + if (!(o instanceof BattleRecordAvatar)) { return false; } - RogueRecordAvatar other = (RogueRecordAvatar) o; + BattleRecordAvatar other = (BattleRecordAvatar) o; return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) && (!hasLevel() || level == other.level) - && (!hasSlot() || slot == other.slot) + && (!hasIndex() || index == other.index) + && (!hasId() || id == other.id) && (!hasAvatarType() || avatarType == other.avatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(level); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(index); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(slot); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 8); output.writeEnumNoTag(avatarType); } } @@ -319,13 +319,13 @@ public final class RogueRecordAvatarOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -335,39 +335,39 @@ public final class RogueRecordAvatarOuterClass { @Override @SuppressWarnings("fallthrough") - public RogueRecordAvatar mergeFrom(final ProtoSource input) throws IOException { + public BattleRecordAvatar mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // id - id = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 32) { - break; - } - } case 32: { // level level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // index + index = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { - // slot - slot = input.readUInt32(); + case 120: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 88) { + if (tag != 8) { break; } } - case 88: { + case 8: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -397,13 +397,13 @@ public final class RogueRecordAvatarOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.index, index); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.slot, slot); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -412,16 +412,16 @@ public final class RogueRecordAvatarOuterClass { } @Override - public RogueRecordAvatar mergeFrom(final JsonSource input) throws IOException { + public BattleRecordAvatar mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -429,10 +429,10 @@ public final class RogueRecordAvatarOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -440,10 +440,10 @@ public final class RogueRecordAvatarOuterClass { } break; } - case 3533310: { - if (input.isAtField(FieldNames.slot)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - slot = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -479,8 +479,8 @@ public final class RogueRecordAvatarOuterClass { } @Override - public RogueRecordAvatar clone() { - return new RogueRecordAvatar().copyFrom(this); + public BattleRecordAvatar clone() { + return new BattleRecordAvatar().copyFrom(this); } @Override @@ -488,32 +488,32 @@ public final class RogueRecordAvatarOuterClass { return ((bitField0_) == 0); } - public static RogueRecordAvatar parseFrom(final byte[] data) throws + public static BattleRecordAvatar parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueRecordAvatar(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new BattleRecordAvatar(), data).checkInitialized(); } - public static RogueRecordAvatar parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRecordAvatar(), input).checkInitialized(); + public static BattleRecordAvatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecordAvatar(), input).checkInitialized(); } - public static RogueRecordAvatar parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRecordAvatar(), input).checkInitialized(); + public static BattleRecordAvatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecordAvatar(), input).checkInitialized(); } /** - * @return factory for creating RogueRecordAvatar messages + * @return factory for creating BattleRecordAvatar messages */ - public static MessageFactory getFactory() { - return RogueRecordAvatarFactory.INSTANCE; + public static MessageFactory getFactory() { + return BattleRecordAvatarFactory.INSTANCE; } - private enum RogueRecordAvatarFactory implements MessageFactory { + private enum BattleRecordAvatarFactory implements MessageFactory { INSTANCE; @Override - public RogueRecordAvatar create() { - return RogueRecordAvatar.newInstance(); + public BattleRecordAvatar create() { + return BattleRecordAvatar.newInstance(); } } @@ -521,11 +521,11 @@ public final class RogueRecordAvatarOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName id = FieldName.forField("id"); - static final FieldName level = FieldName.forField("level"); - static final FieldName slot = FieldName.forField("slot"); + static final FieldName index = FieldName.forField("index"); + + static final FieldName id = FieldName.forField("id"); static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); } diff --git a/src/generated/main/emu/lunarcore/proto/BattleRecordAvatarsOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRecordAvatarsOuterClass.java new file mode 100644 index 0000000..7cf4026 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleRecordAvatarsOuterClass.java @@ -0,0 +1,296 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class BattleRecordAvatarsOuterClass { + /** + * Protobuf type {@code BattleRecordAvatars} + */ + public static final class BattleRecordAvatars extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + */ + private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(BattleRecordAvatarOuterClass.BattleRecordAvatar.getFactory()); + + private BattleRecordAvatars() { + } + + /** + * @return a new empty instance of {@code BattleRecordAvatars} + */ + public static BattleRecordAvatars newInstance() { + return new BattleRecordAvatars(); + } + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + * @return this + */ + public BattleRecordAvatars clearAvatarList() { + bitField0_ &= ~0x00000001; + avatarList.clear(); + return this; + } + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarList() { + return avatarList; + } + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAvatarList() { + bitField0_ |= 0x00000001; + return avatarList; + } + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + * @param value the avatarList to add + * @return this + */ + public BattleRecordAvatars addAvatarList( + final BattleRecordAvatarOuterClass.BattleRecordAvatar value) { + bitField0_ |= 0x00000001; + avatarList.add(value); + return this; + } + + /** + * repeated .BattleRecordAvatar avatar_list = 7; + * @param values the avatarList to add + * @return this + */ + public BattleRecordAvatars addAllAvatarList( + final BattleRecordAvatarOuterClass.BattleRecordAvatar... values) { + bitField0_ |= 0x00000001; + avatarList.addAll(values); + return this; + } + + @Override + public BattleRecordAvatars copyFrom(final BattleRecordAvatars other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarList.copyFrom(other.avatarList); + } + return this; + } + + @Override + public BattleRecordAvatars mergeFrom(final BattleRecordAvatars other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarList()) { + getMutableAvatarList().addAll(other.avatarList); + } + return this; + } + + @Override + public BattleRecordAvatars clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarList.clear(); + return this; + } + + @Override + public BattleRecordAvatars clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleRecordAvatars)) { + return false; + } + BattleRecordAvatars other = (BattleRecordAvatars) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarList() || avatarList.equals(other.avatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(avatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleRecordAvatars mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 58: { + // avatarList + tag = input.readRepeatedMessage(avatarList, tag); + bitField0_ |= 0x00000001; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedMessage(FieldNames.avatarList, avatarList); + } + output.endObject(); + } + + @Override + public BattleRecordAvatars mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleRecordAvatars clone() { + return new BattleRecordAvatars().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleRecordAvatars parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleRecordAvatars(), data).checkInitialized(); + } + + public static BattleRecordAvatars parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecordAvatars(), input).checkInitialized(); + } + + public static BattleRecordAvatars parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecordAvatars(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleRecordAvatars messages + */ + public static MessageFactory getFactory() { + return BattleRecordAvatarsFactory.INSTANCE; + } + + private enum BattleRecordAvatarsFactory implements MessageFactory { + INSTANCE; + + @Override + public BattleRecordAvatars create() { + return BattleRecordAvatars.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BattleRecordType2OuterClass.java b/src/generated/main/emu/lunarcore/proto/BattleRecordType2OuterClass.java new file mode 100644 index 0000000..2718387 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BattleRecordType2OuterClass.java @@ -0,0 +1,1897 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; + +public final class BattleRecordType2OuterClass { + /** + * Protobuf type {@code BattleRecordType2} + */ + public static final class BattleRecordType2 extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 record_id = 3; + */ + private int recordId; + + /** + * optional .BattleRecordType2.RecordType2 record = 7; + */ + private final RecordType2 record = RecordType2.newInstance(); + + private BattleRecordType2() { + } + + /** + * @return a new empty instance of {@code BattleRecordType2} + */ + public static BattleRecordType2 newInstance() { + return new BattleRecordType2(); + } + + /** + * optional uint32 record_id = 3; + * @return whether the recordId field is set + */ + public boolean hasRecordId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 record_id = 3; + * @return this + */ + public BattleRecordType2 clearRecordId() { + bitField0_ &= ~0x00000001; + recordId = 0; + return this; + } + + /** + * optional uint32 record_id = 3; + * @return the recordId + */ + public int getRecordId() { + return recordId; + } + + /** + * optional uint32 record_id = 3; + * @param value the recordId to set + * @return this + */ + public BattleRecordType2 setRecordId(final int value) { + bitField0_ |= 0x00000001; + recordId = value; + return this; + } + + /** + * optional .BattleRecordType2.RecordType2 record = 7; + * @return whether the record field is set + */ + public boolean hasRecord() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .BattleRecordType2.RecordType2 record = 7; + * @return this + */ + public BattleRecordType2 clearRecord() { + bitField0_ &= ~0x00000002; + record.clear(); + return this; + } + + /** + * optional .BattleRecordType2.RecordType2 record = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRecord()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RecordType2 getRecord() { + return record; + } + + /** + * optional .BattleRecordType2.RecordType2 record = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RecordType2 getMutableRecord() { + bitField0_ |= 0x00000002; + return record; + } + + /** + * optional .BattleRecordType2.RecordType2 record = 7; + * @param value the record to set + * @return this + */ + public BattleRecordType2 setRecord(final RecordType2 value) { + bitField0_ |= 0x00000002; + record.copyFrom(value); + return this; + } + + @Override + public BattleRecordType2 copyFrom(final BattleRecordType2 other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + recordId = other.recordId; + record.copyFrom(other.record); + } + return this; + } + + @Override + public BattleRecordType2 mergeFrom(final BattleRecordType2 other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRecordId()) { + setRecordId(other.recordId); + } + if (other.hasRecord()) { + getMutableRecord().mergeFrom(other.record); + } + return this; + } + + @Override + public BattleRecordType2 clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + recordId = 0; + record.clear(); + return this; + } + + @Override + public BattleRecordType2 clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof BattleRecordType2)) { + return false; + } + BattleRecordType2 other = (BattleRecordType2) o; + return bitField0_ == other.bitField0_ + && (!hasRecordId() || recordId == other.recordId) + && (!hasRecord() || record.equals(other.record)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(recordId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(record); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(recordId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(record); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public BattleRecordType2 mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // recordId + recordId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // record + input.readMessage(record); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.recordId, recordId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.record, record); + } + output.endObject(); + } + + @Override + public BattleRecordType2 mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -799234740: + case 993548233: { + if (input.isAtField(FieldNames.recordId)) { + if (!input.trySkipNullValue()) { + recordId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -934908847: { + if (input.isAtField(FieldNames.record)) { + if (!input.trySkipNullValue()) { + input.readMessage(record); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public BattleRecordType2 clone() { + return new BattleRecordType2().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static BattleRecordType2 parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new BattleRecordType2(), data).checkInitialized(); + } + + public static BattleRecordType2 parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecordType2(), input).checkInitialized(); + } + + public static BattleRecordType2 parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new BattleRecordType2(), input).checkInitialized(); + } + + /** + * @return factory for creating BattleRecordType2 messages + */ + public static MessageFactory getFactory() { + return BattleRecordType2Factory.INSTANCE; + } + + /** + * Protobuf type {@code RecordDisplayAvatar} + */ + public static final class RecordDisplayAvatar extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 level = 1; + */ + private int level; + + /** + * optional uint32 slot = 3; + */ + private int slot; + + /** + * optional uint32 id = 5; + */ + private int id; + + /** + * optional .AvatarType avatar_type = 2; + */ + private int avatarType; + + private RecordDisplayAvatar() { + } + + /** + * @return a new empty instance of {@code RecordDisplayAvatar} + */ + public static RecordDisplayAvatar newInstance() { + return new RecordDisplayAvatar(); + } + + /** + * optional uint32 level = 1; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 level = 1; + * @return this + */ + public RecordDisplayAvatar clearLevel() { + bitField0_ &= ~0x00000001; + level = 0; + return this; + } + + /** + * optional uint32 level = 1; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 1; + * @param value the level to set + * @return this + */ + public RecordDisplayAvatar setLevel(final int value) { + bitField0_ |= 0x00000001; + level = value; + return this; + } + + /** + * optional uint32 slot = 3; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 slot = 3; + * @return this + */ + public RecordDisplayAvatar clearSlot() { + bitField0_ &= ~0x00000002; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 3; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 3; + * @param value the slot to set + * @return this + */ + public RecordDisplayAvatar setSlot(final int value) { + bitField0_ |= 0x00000002; + slot = value; + return this; + } + + /** + * optional uint32 id = 5; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 id = 5; + * @return this + */ + public RecordDisplayAvatar clearId() { + bitField0_ &= ~0x00000004; + id = 0; + return this; + } + + /** + * optional uint32 id = 5; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 5; + * @param value the id to set + * @return this + */ + public RecordDisplayAvatar setId(final int value) { + bitField0_ |= 0x00000004; + id = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return this + */ + public RecordDisplayAvatar clearAvatarType() { + bitField0_ &= ~0x00000008; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link RecordDisplayAvatar#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link RecordDisplayAvatar#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public RecordDisplayAvatar setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000008; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 2; + * @param value the avatarType to set + * @return this + */ + public RecordDisplayAvatar setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000008; + avatarType = value.getNumber(); + return this; + } + + @Override + public RecordDisplayAvatar copyFrom(final RecordDisplayAvatar other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + level = other.level; + slot = other.slot; + id = other.id; + avatarType = other.avatarType; + } + return this; + } + + @Override + public RecordDisplayAvatar mergeFrom(final RecordDisplayAvatar other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLevel()) { + setLevel(other.level); + } + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + return this; + } + + @Override + public RecordDisplayAvatar clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + level = 0; + slot = 0; + id = 0; + avatarType = 0; + return this; + } + + @Override + public RecordDisplayAvatar clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RecordDisplayAvatar)) { + return false; + } + RecordDisplayAvatar other = (RecordDisplayAvatar) o; + return bitField0_ == other.bitField0_ + && (!hasLevel() || level == other.level) + && (!hasSlot() || slot == other.slot) + && (!hasId() || id == other.id) + && (!hasAvatarType() || avatarType == other.avatarType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(slot); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(avatarType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RecordDisplayAvatar mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000008; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + output.endObject(); + } + + @Override + public RecordDisplayAvatar mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { + if (!input.trySkipNullValue()) { + level = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RecordDisplayAvatar clone() { + return new RecordDisplayAvatar().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RecordDisplayAvatar parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RecordDisplayAvatar(), data).checkInitialized(); + } + + public static RecordDisplayAvatar parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RecordDisplayAvatar(), input).checkInitialized(); + } + + public static RecordDisplayAvatar parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RecordDisplayAvatar(), input).checkInitialized(); + } + + /** + * @return factory for creating RecordDisplayAvatar messages + */ + public static MessageFactory getFactory() { + return RecordDisplayAvatarFactory.INSTANCE; + } + + private enum RecordDisplayAvatarFactory implements MessageFactory { + INSTANCE; + + @Override + public RecordDisplayAvatar create() { + return RecordDisplayAvatar.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName level = FieldName.forField("level"); + + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + } + } + + /** + * Protobuf type {@code RecordDisplayInfo} + */ + public static final class RecordDisplayInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + */ + private final RepeatedInt unkRepeated = RepeatedInt.newEmptyInstance(); + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + */ + private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(RecordDisplayAvatar.getFactory()); + + private RecordDisplayInfo() { + } + + /** + * @return a new empty instance of {@code RecordDisplayInfo} + */ + public static RecordDisplayInfo newInstance() { + return new RecordDisplayInfo(); + } + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + * @return whether the unkRepeated field is set + */ + public boolean hasUnkRepeated() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + * @return this + */ + public RecordDisplayInfo clearUnkRepeated() { + bitField0_ &= ~0x00000001; + unkRepeated.clear(); + return this; + } + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnkRepeated()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnkRepeated() { + return unkRepeated; + } + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnkRepeated() { + bitField0_ |= 0x00000001; + return unkRepeated; + } + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + * @param value the unkRepeated to add + * @return this + */ + public RecordDisplayInfo addUnkRepeated(final int value) { + bitField0_ |= 0x00000001; + unkRepeated.add(value); + return this; + } + + /** + *
+       * repeated RogueBuff buff_list = 14;
+       * 
+ * + * repeated uint32 unk_repeated = 8; + * @param values the unkRepeated to add + * @return this + */ + public RecordDisplayInfo addAllUnkRepeated(final int... values) { + bitField0_ |= 0x00000001; + unkRepeated.addAll(values); + return this; + } + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + * @return this + */ + public RecordDisplayInfo clearAvatarList() { + bitField0_ &= ~0x00000002; + avatarList.clear(); + return this; + } + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarList() { + return avatarList; + } + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAvatarList() { + bitField0_ |= 0x00000002; + return avatarList; + } + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + * @param value the avatarList to add + * @return this + */ + public RecordDisplayInfo addAvatarList(final RecordDisplayAvatar value) { + bitField0_ |= 0x00000002; + avatarList.add(value); + return this; + } + + /** + * repeated .BattleRecordType2.RecordDisplayAvatar avatar_list = 5; + * @param values the avatarList to add + * @return this + */ + public RecordDisplayInfo addAllAvatarList(final RecordDisplayAvatar... values) { + bitField0_ |= 0x00000002; + avatarList.addAll(values); + return this; + } + + @Override + public RecordDisplayInfo copyFrom(final RecordDisplayInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unkRepeated.copyFrom(other.unkRepeated); + avatarList.copyFrom(other.avatarList); + } + return this; + } + + @Override + public RecordDisplayInfo mergeFrom(final RecordDisplayInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnkRepeated()) { + getMutableUnkRepeated().addAll(other.unkRepeated); + } + if (other.hasAvatarList()) { + getMutableAvatarList().addAll(other.avatarList); + } + return this; + } + + @Override + public RecordDisplayInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkRepeated.clear(); + avatarList.clear(); + return this; + } + + @Override + public RecordDisplayInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkRepeated.clear(); + avatarList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RecordDisplayInfo)) { + return false; + } + RecordDisplayInfo other = (RecordDisplayInfo) o; + return bitField0_ == other.bitField0_ + && (!hasUnkRepeated() || unkRepeated.equals(other.unkRepeated)) + && (!hasAvatarList() || avatarList.equals(other.avatarList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < unkRepeated.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(unkRepeated.array()[i]); + } + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < avatarList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(avatarList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * unkRepeated.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unkRepeated); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RecordDisplayInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 66: { + // unkRepeated [packed=true] + input.readPackedUInt32(unkRepeated, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // avatarList + tag = input.readRepeatedMessage(avatarList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 64: { + // unkRepeated [packed=false] + tag = input.readRepeatedUInt32(unkRepeated, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.unkRepeated, unkRepeated); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.avatarList, avatarList); + } + output.endObject(); + } + + @Override + public RecordDisplayInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -427796852: + case -2071716825: { + if (input.isAtField(FieldNames.unkRepeated)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unkRepeated); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403402345: + case 397055940: { + if (input.isAtField(FieldNames.avatarList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RecordDisplayInfo clone() { + return new RecordDisplayInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RecordDisplayInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RecordDisplayInfo(), data).checkInitialized(); + } + + public static RecordDisplayInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RecordDisplayInfo(), input).checkInitialized(); + } + + public static RecordDisplayInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RecordDisplayInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating RecordDisplayInfo messages + */ + public static MessageFactory getFactory() { + return RecordDisplayInfoFactory.INSTANCE; + } + + private enum RecordDisplayInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public RecordDisplayInfo create() { + return RecordDisplayInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unkRepeated = FieldName.forField("unkRepeated", "unk_repeated"); + + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); + } + } + + /** + * Protobuf type {@code RecordType2} + */ + public static final class RecordType2 extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 score = 9; + */ + private int score; + + /** + * optional uint32 int2 = 1131; + */ + private int int2; + + /** + * optional uint32 int1 = 1911; + */ + private int int1; + + /** + * optional bool is_win = 4; + */ + private boolean isWin; + + /** + * optional .BattleRecordType2.RecordDisplayInfo display_info = 5; + */ + private final RecordDisplayInfo displayInfo = RecordDisplayInfo.newInstance(); + + private RecordType2() { + } + + /** + * @return a new empty instance of {@code RecordType2} + */ + public static RecordType2 newInstance() { + return new RecordType2(); + } + + /** + * optional uint32 score = 9; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 score = 9; + * @return this + */ + public RecordType2 clearScore() { + bitField0_ &= ~0x00000001; + score = 0; + return this; + } + + /** + * optional uint32 score = 9; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 score = 9; + * @param value the score to set + * @return this + */ + public RecordType2 setScore(final int value) { + bitField0_ |= 0x00000001; + score = value; + return this; + } + + /** + * optional uint32 int2 = 1131; + * @return whether the int2 field is set + */ + public boolean hasInt2() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 int2 = 1131; + * @return this + */ + public RecordType2 clearInt2() { + bitField0_ &= ~0x00000002; + int2 = 0; + return this; + } + + /** + * optional uint32 int2 = 1131; + * @return the int2 + */ + public int getInt2() { + return int2; + } + + /** + * optional uint32 int2 = 1131; + * @param value the int2 to set + * @return this + */ + public RecordType2 setInt2(final int value) { + bitField0_ |= 0x00000002; + int2 = value; + return this; + } + + /** + * optional uint32 int1 = 1911; + * @return whether the int1 field is set + */ + public boolean hasInt1() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 int1 = 1911; + * @return this + */ + public RecordType2 clearInt1() { + bitField0_ &= ~0x00000004; + int1 = 0; + return this; + } + + /** + * optional uint32 int1 = 1911; + * @return the int1 + */ + public int getInt1() { + return int1; + } + + /** + * optional uint32 int1 = 1911; + * @param value the int1 to set + * @return this + */ + public RecordType2 setInt1(final int value) { + bitField0_ |= 0x00000004; + int1 = value; + return this; + } + + /** + * optional bool is_win = 4; + * @return whether the isWin field is set + */ + public boolean hasIsWin() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool is_win = 4; + * @return this + */ + public RecordType2 clearIsWin() { + bitField0_ &= ~0x00000008; + isWin = false; + return this; + } + + /** + * optional bool is_win = 4; + * @return the isWin + */ + public boolean getIsWin() { + return isWin; + } + + /** + * optional bool is_win = 4; + * @param value the isWin to set + * @return this + */ + public RecordType2 setIsWin(final boolean value) { + bitField0_ |= 0x00000008; + isWin = value; + return this; + } + + /** + * optional .BattleRecordType2.RecordDisplayInfo display_info = 5; + * @return whether the displayInfo field is set + */ + public boolean hasDisplayInfo() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .BattleRecordType2.RecordDisplayInfo display_info = 5; + * @return this + */ + public RecordType2 clearDisplayInfo() { + bitField0_ &= ~0x00000010; + displayInfo.clear(); + return this; + } + + /** + * optional .BattleRecordType2.RecordDisplayInfo display_info = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDisplayInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RecordDisplayInfo getDisplayInfo() { + return displayInfo; + } + + /** + * optional .BattleRecordType2.RecordDisplayInfo display_info = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RecordDisplayInfo getMutableDisplayInfo() { + bitField0_ |= 0x00000010; + return displayInfo; + } + + /** + * optional .BattleRecordType2.RecordDisplayInfo display_info = 5; + * @param value the displayInfo to set + * @return this + */ + public RecordType2 setDisplayInfo(final RecordDisplayInfo value) { + bitField0_ |= 0x00000010; + displayInfo.copyFrom(value); + return this; + } + + @Override + public RecordType2 copyFrom(final RecordType2 other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + score = other.score; + int2 = other.int2; + int1 = other.int1; + isWin = other.isWin; + displayInfo.copyFrom(other.displayInfo); + } + return this; + } + + @Override + public RecordType2 mergeFrom(final RecordType2 other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasInt2()) { + setInt2(other.int2); + } + if (other.hasInt1()) { + setInt1(other.int1); + } + if (other.hasIsWin()) { + setIsWin(other.isWin); + } + if (other.hasDisplayInfo()) { + getMutableDisplayInfo().mergeFrom(other.displayInfo); + } + return this; + } + + @Override + public RecordType2 clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + score = 0; + int2 = 0; + int1 = 0; + isWin = false; + displayInfo.clear(); + return this; + } + + @Override + public RecordType2 clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + displayInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RecordType2)) { + return false; + } + RecordType2 other = (RecordType2) o; + return bitField0_ == other.bitField0_ + && (!hasScore() || score == other.score) + && (!hasInt2() || int2 == other.int2) + && (!hasInt1() || int1 == other.int1) + && (!hasIsWin() || isWin == other.isWin) + && (!hasDisplayInfo() || displayInfo.equals(other.displayInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 18136); + output.writeUInt32NoTag(int2); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 30648); + output.writeUInt32NoTag(int1); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeBoolNoTag(isWin); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(displayInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(int2); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(int1); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(displayInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RecordType2 mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 9048) { + break; + } + } + case 9048: { + // int2 + int2 = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 15288) { + break; + } + } + case 15288: { + // int1 + int1 = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // isWin + isWin = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // displayInfo + input.readMessage(displayInfo); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.int2, int2); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.int1, int1); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.isWin, isWin); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeMessage(FieldNames.displayInfo, displayInfo); + } + output.endObject(); + } + + @Override + public RecordType2 mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 109264530: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237411: { + if (input.isAtField(FieldNames.int2)) { + if (!input.trySkipNullValue()) { + int2 = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237410: { + if (input.isAtField(FieldNames.int1)) { + if (!input.trySkipNullValue()) { + int1 = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100482642: + case -1179753657: { + if (input.isAtField(FieldNames.isWin)) { + if (!input.trySkipNullValue()) { + isWin = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1714012304: + case 1614949899: { + if (input.isAtField(FieldNames.displayInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(displayInfo); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RecordType2 clone() { + return new RecordType2().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RecordType2 parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RecordType2(), data).checkInitialized(); + } + + public static RecordType2 parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RecordType2(), input).checkInitialized(); + } + + public static RecordType2 parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RecordType2(), input).checkInitialized(); + } + + /** + * @return factory for creating RecordType2 messages + */ + public static MessageFactory getFactory() { + return RecordType2Factory.INSTANCE; + } + + private enum RecordType2Factory implements MessageFactory { + INSTANCE; + + @Override + public RecordType2 create() { + return RecordType2.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName score = FieldName.forField("score"); + + static final FieldName int2 = FieldName.forField("int2"); + + static final FieldName int1 = FieldName.forField("int1"); + + static final FieldName isWin = FieldName.forField("isWin", "is_win"); + + static final FieldName displayInfo = FieldName.forField("displayInfo", "display_info"); + } + } + + private enum BattleRecordType2Factory implements MessageFactory { + INSTANCE; + + @Override + public BattleRecordType2 create() { + return BattleRecordType2.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName recordId = FieldName.forField("recordId", "record_id"); + + static final FieldName record = FieldName.forField("record"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BigDataRecommendTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/BigDataRecommendTypeOuterClass.java new file mode 100644 index 0000000..9762494 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/BigDataRecommendTypeOuterClass.java @@ -0,0 +1,168 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class BigDataRecommendTypeOuterClass { + /** + * Protobuf enum {@code BigDataRecommendType} + */ + public enum BigDataRecommendType implements ProtoEnum { + /** + * BIG_DATA_RECOMMEND_TYPE_NONE = 0; + */ + BIG_DATA_RECOMMEND_TYPE_NONE("BIG_DATA_RECOMMEND_TYPE_NONE", 0), + + /** + * BIG_DATA_RECOMMEND_TYPE_EQUIPMENT = 1; + */ + BIG_DATA_RECOMMEND_TYPE_EQUIPMENT("BIG_DATA_RECOMMEND_TYPE_EQUIPMENT", 1), + + /** + * BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT = 2; + */ + BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT("BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT", 2), + + /** + * BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR = 3; + */ + BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR("BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR", 3), + + /** + * BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC = 4; + */ + BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC("BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC", 4); + + /** + * BIG_DATA_RECOMMEND_TYPE_NONE = 0; + */ + public static final int BIG_DATA_RECOMMEND_TYPE_NONE_VALUE = 0; + + /** + * BIG_DATA_RECOMMEND_TYPE_EQUIPMENT = 1; + */ + public static final int BIG_DATA_RECOMMEND_TYPE_EQUIPMENT_VALUE = 1; + + /** + * BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT = 2; + */ + public static final int BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT_VALUE = 2; + + /** + * BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR = 3; + */ + public static final int BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR_VALUE = 3; + + /** + * BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC = 4; + */ + public static final int BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC_VALUE = 4; + + private final String name; + + private final int number; + + private BigDataRecommendType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return BigDataRecommendTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static BigDataRecommendType forNumber(int value) { + return BigDataRecommendTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static BigDataRecommendType forNumberOr(int number, BigDataRecommendType other) { + BigDataRecommendType value = forNumber(number); + return value == null ? other : value; + } + + enum BigDataRecommendTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final BigDataRecommendType[] lookup = new BigDataRecommendType[5]; + + static { + lookup[0] = BIG_DATA_RECOMMEND_TYPE_NONE; + lookup[1] = BIG_DATA_RECOMMEND_TYPE_EQUIPMENT; + lookup[2] = BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT; + lookup[3] = BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR; + lookup[4] = BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC; + } + + @Override + public final BigDataRecommendType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final BigDataRecommendType forName(final CharSequence value) { + switch (value.length()) { + case 28: { + if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_NONE", value)) { + return BIG_DATA_RECOMMEND_TYPE_NONE; + } + break; + } + case 33: { + if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_EQUIPMENT", value)) { + return BIG_DATA_RECOMMEND_TYPE_EQUIPMENT; + } + break; + } + case 34: { + if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT", value)) { + return BIG_DATA_RECOMMEND_TYPE_RELIC_SUIT; + } + break; + } + case 36: { + if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR", value)) { + return BIG_DATA_RECOMMEND_TYPE_RELIC_AVATAR; + } + if (ProtoUtil.isEqual("BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC", value)) { + return BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java index 9213247..9fd8294 100644 --- a/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BoardDataSyncOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; import us.hebi.quickbuf.RepeatedMessage; import us.hebi.quickbuf.Utf8String; @@ -21,12 +22,22 @@ public final class BoardDataSyncOuterClass { private static final long serialVersionUID = 0L; /** - * optional string signature = 13; + * optional .HeadIconFrameInfo head_icon_frame_info = 7; + */ + private final HeadIconFrameInfoOuterClass.HeadIconFrameInfo headIconFrameInfo = HeadIconFrameInfoOuterClass.HeadIconFrameInfo.newInstance(); + + /** + * optional string signature = 1; */ private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + */ + private final RepeatedInt unlockedHeadIconFrameIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .HeadIcon unlocked_head_icon_list = 3; */ private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); @@ -41,25 +52,83 @@ public final class BoardDataSyncOuterClass { } /** - * optional string signature = 13; - * @return whether the signature field is set + * optional .HeadIconFrameInfo head_icon_frame_info = 7; + * @return whether the headIconFrameInfo field is set */ - public boolean hasSignature() { + public boolean hasHeadIconFrameInfo() { return (bitField0_ & 0x00000001) != 0; } /** - * optional string signature = 13; + * optional .HeadIconFrameInfo head_icon_frame_info = 7; + * @return this + */ + public BoardDataSync clearHeadIconFrameInfo() { + bitField0_ &= ~0x00000001; + headIconFrameInfo.clear(); + return this; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableHeadIconFrameInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public HeadIconFrameInfoOuterClass.HeadIconFrameInfo getHeadIconFrameInfo() { + return headIconFrameInfo; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public HeadIconFrameInfoOuterClass.HeadIconFrameInfo getMutableHeadIconFrameInfo() { + bitField0_ |= 0x00000001; + return headIconFrameInfo; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 7; + * @param value the headIconFrameInfo to set + * @return this + */ + public BoardDataSync setHeadIconFrameInfo( + final HeadIconFrameInfoOuterClass.HeadIconFrameInfo value) { + bitField0_ |= 0x00000001; + headIconFrameInfo.copyFrom(value); + return this; + } + + /** + * optional string signature = 1; + * @return whether the signature field is set + */ + public boolean hasSignature() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string signature = 1; * @return this */ public BoardDataSync clearSignature() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; signature.clear(); return this; } /** - * optional string signature = 13; + * optional string signature = 1; * @return the signature */ public String getSignature() { @@ -67,7 +136,7 @@ public final class BoardDataSyncOuterClass { } /** - * optional string signature = 13; + * optional string signature = 1; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -75,56 +144,124 @@ public final class BoardDataSyncOuterClass { } /** - * optional string signature = 13; + * optional string signature = 1; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; return this.signature; } /** - * optional string signature = 13; + * optional string signature = 1; * @param value the signature to set * @return this */ public BoardDataSync setSignature(final CharSequence value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; signature.copyFrom(value); return this; } /** - * optional string signature = 13; + * optional string signature = 1; * @param value the signature to set * @return this */ public BoardDataSync setSignature(final Utf8String value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; signature.copyFrom(value); return this; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; - * @return whether the unlockedHeadIconList field is set + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + * @return whether the unlockedHeadIconFrameIdList field is set */ - public boolean hasUnlockedHeadIconList() { - return (bitField0_ & 0x00000002) != 0; + public boolean hasUnlockedHeadIconFrameIdList() { + return (bitField0_ & 0x00000004) != 0; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + * @return this + */ + public BoardDataSync clearUnlockedHeadIconFrameIdList() { + bitField0_ &= ~0x00000004; + unlockedHeadIconFrameIdList.clear(); + return this; + } + + /** + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnlockedHeadIconFrameIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnlockedHeadIconFrameIdList() { + return unlockedHeadIconFrameIdList; + } + + /** + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnlockedHeadIconFrameIdList() { + bitField0_ |= 0x00000004; + return unlockedHeadIconFrameIdList; + } + + /** + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + * @param value the unlockedHeadIconFrameIdList to add + * @return this + */ + public BoardDataSync addUnlockedHeadIconFrameIdList(final int value) { + bitField0_ |= 0x00000004; + unlockedHeadIconFrameIdList.add(value); + return this; + } + + /** + * repeated uint32 unlocked_head_icon_frame_id_list = 15; + * @param values the unlockedHeadIconFrameIdList to add + * @return this + */ + public BoardDataSync addAllUnlockedHeadIconFrameIdList(final int... values) { + bitField0_ |= 0x00000004; + unlockedHeadIconFrameIdList.addAll(values); + return this; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 3; + * @return whether the unlockedHeadIconList field is set + */ + public boolean hasUnlockedHeadIconList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .HeadIcon unlocked_head_icon_list = 3; * @return this */ public BoardDataSync clearUnlockedHeadIconList() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000008; unlockedHeadIconList.clear(); return this; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -138,7 +275,7 @@ public final class BoardDataSyncOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -147,28 +284,28 @@ public final class BoardDataSyncOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableUnlockedHeadIconList() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; return unlockedHeadIconList; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 3; * @param value the unlockedHeadIconList to add * @return this */ public BoardDataSync addUnlockedHeadIconList(final HeadIconOuterClass.HeadIcon value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; unlockedHeadIconList.add(value); return this; } /** - * repeated .HeadIcon unlocked_head_icon_list = 14; + * repeated .HeadIcon unlocked_head_icon_list = 3; * @param values the unlockedHeadIconList to add * @return this */ public BoardDataSync addAllUnlockedHeadIconList(final HeadIconOuterClass.HeadIcon... values) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; unlockedHeadIconList.addAll(values); return this; } @@ -178,7 +315,9 @@ public final class BoardDataSyncOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + headIconFrameInfo.copyFrom(other.headIconFrameInfo); signature.copyFrom(other.signature); + unlockedHeadIconFrameIdList.copyFrom(other.unlockedHeadIconFrameIdList); unlockedHeadIconList.copyFrom(other.unlockedHeadIconList); } return this; @@ -190,9 +329,15 @@ public final class BoardDataSyncOuterClass { return this; } cachedSize = -1; + if (other.hasHeadIconFrameInfo()) { + getMutableHeadIconFrameInfo().mergeFrom(other.headIconFrameInfo); + } if (other.hasSignature()) { getMutableSignatureBytes().copyFrom(other.signature); } + if (other.hasUnlockedHeadIconFrameIdList()) { + getMutableUnlockedHeadIconFrameIdList().addAll(other.unlockedHeadIconFrameIdList); + } if (other.hasUnlockedHeadIconList()) { getMutableUnlockedHeadIconList().addAll(other.unlockedHeadIconList); } @@ -206,7 +351,9 @@ public final class BoardDataSyncOuterClass { } cachedSize = -1; bitField0_ = 0; + headIconFrameInfo.clear(); signature.clear(); + unlockedHeadIconFrameIdList.clear(); unlockedHeadIconList.clear(); return this; } @@ -218,7 +365,9 @@ public final class BoardDataSyncOuterClass { } cachedSize = -1; bitField0_ = 0; + headIconFrameInfo.clearQuick(); signature.clear(); + unlockedHeadIconFrameIdList.clear(); unlockedHeadIconList.clearQuick(); return this; } @@ -233,19 +382,31 @@ public final class BoardDataSyncOuterClass { } BoardDataSync other = (BoardDataSync) o; return bitField0_ == other.bitField0_ + && (!hasHeadIconFrameInfo() || headIconFrameInfo.equals(other.headIconFrameInfo)) && (!hasSignature() || signature.equals(other.signature)) + && (!hasUnlockedHeadIconFrameIdList() || unlockedHeadIconFrameIdList.equals(other.unlockedHeadIconFrameIdList)) && (!hasUnlockedHeadIconList() || unlockedHeadIconList.equals(other.unlockedHeadIconList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 106); - output.writeStringNoTag(signature); + output.writeRawByte((byte) 58); + output.writeMessageNoTag(headIconFrameInfo); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < unlockedHeadIconFrameIdList.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(unlockedHeadIconFrameIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < unlockedHeadIconList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 26); output.writeMessageNoTag(unlockedHeadIconList.get(i)); } } @@ -255,9 +416,15 @@ public final class BoardDataSyncOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(signature); + size += 1 + ProtoSink.computeMessageSizeNoTag(headIconFrameInfo); } if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * unlockedHeadIconFrameIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedHeadIconFrameIdList); + } + if ((bitField0_ & 0x00000008) != 0) { size += (1 * unlockedHeadIconList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedHeadIconList); } return size; @@ -270,19 +437,37 @@ public final class BoardDataSyncOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { - // signature - input.readString(signature); + case 58: { + // headIconFrameInfo + input.readMessage(headIconFrameInfo); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 10) { break; } } - case 114: { + case 10: { + // signature + input.readString(signature); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // unlockedHeadIconFrameIdList [packed=true] + input.readPackedUInt32(unlockedHeadIconFrameIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // unlockedHeadIconList tag = input.readRepeatedMessage(unlockedHeadIconList, tag); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; if (tag != 0) { break; } @@ -297,6 +482,12 @@ public final class BoardDataSyncOuterClass { tag = input.readTag(); break; } + case 120: { + // unlockedHeadIconFrameIdList [packed=false] + tag = input.readRepeatedUInt32(unlockedHeadIconFrameIdList, tag); + bitField0_ |= 0x00000004; + break; + } } } } @@ -305,9 +496,15 @@ public final class BoardDataSyncOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeString(FieldNames.signature, signature); + output.writeMessage(FieldNames.headIconFrameInfo, headIconFrameInfo); } if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.unlockedHeadIconFrameIdList, unlockedHeadIconFrameIdList); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.unlockedHeadIconList, unlockedHeadIconList); } output.endObject(); @@ -320,11 +517,35 @@ public final class BoardDataSyncOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 638045506: + case 240940903: { + if (input.isAtField(FieldNames.headIconFrameInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(headIconFrameInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 1073584312: { if (input.isAtField(FieldNames.signature)) { if (!input.trySkipNullValue()) { input.readString(signature); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1921266698: + case -1922067827: { + if (input.isAtField(FieldNames.unlockedHeadIconFrameIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unlockedHeadIconFrameIdList); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -336,7 +557,7 @@ public final class BoardDataSyncOuterClass { if (input.isAtField(FieldNames.unlockedHeadIconList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(unlockedHeadIconList); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -395,8 +616,12 @@ public final class BoardDataSyncOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName headIconFrameInfo = FieldName.forField("headIconFrameInfo", "head_icon_frame_info"); + static final FieldName signature = FieldName.forField("signature"); + static final FieldName unlockedHeadIconFrameIdList = FieldName.forField("unlockedHeadIconFrameIdList", "unlocked_head_icon_frame_id_list"); + static final FieldName unlockedHeadIconList = FieldName.forField("unlockedHeadIconList", "unlocked_head_icon_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java index 1c6dcb2..033c95e 100644 --- a/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuffInfoOuterClass.java @@ -22,37 +22,37 @@ public final class BuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 add_time_ms = 11; + * optional uint64 add_time_ms = 6; */ private long addTimeMs; /** - * optional float life_time = 15; + * optional float life_time = 14; */ private float lifeTime; /** - * optional uint32 base_avatar_id = 3; - */ - private int baseAvatarId; - - /** - * optional uint32 count = 5; + * optional uint32 count = 2; */ private int count; + /** + * optional uint32 buff_id = 4; + */ + private int buffId; + /** * optional uint32 level = 9; */ private int level; /** - * optional uint32 buff_id = 13; + * optional uint32 base_avatar_id = 15; */ - private int buffId; + private int baseAvatarId; /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; */ private final RepeatedMessage dynamicValues = RepeatedMessage.newEmptyInstance(DynamicValuesEntry.getFactory()); @@ -67,7 +67,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 11; + * optional uint64 add_time_ms = 6; * @return whether the addTimeMs field is set */ public boolean hasAddTimeMs() { @@ -75,7 +75,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 11; + * optional uint64 add_time_ms = 6; * @return this */ public BuffInfo clearAddTimeMs() { @@ -85,7 +85,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 11; + * optional uint64 add_time_ms = 6; * @return the addTimeMs */ public long getAddTimeMs() { @@ -93,7 +93,7 @@ public final class BuffInfoOuterClass { } /** - * optional uint64 add_time_ms = 11; + * optional uint64 add_time_ms = 6; * @param value the addTimeMs to set * @return this */ @@ -104,7 +104,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 15; + * optional float life_time = 14; * @return whether the lifeTime field is set */ public boolean hasLifeTime() { @@ -112,7 +112,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 15; + * optional float life_time = 14; * @return this */ public BuffInfo clearLifeTime() { @@ -122,7 +122,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 15; + * optional float life_time = 14; * @return the lifeTime */ public float getLifeTime() { @@ -130,7 +130,7 @@ public final class BuffInfoOuterClass { } /** - * optional float life_time = 15; + * optional float life_time = 14; * @param value the lifeTime to set * @return this */ @@ -141,62 +141,25 @@ public final class BuffInfoOuterClass { } /** - * optional uint32 base_avatar_id = 3; - * @return whether the baseAvatarId field is set + * optional uint32 count = 2; + * @return whether the count field is set */ - public boolean hasBaseAvatarId() { + public boolean hasCount() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 base_avatar_id = 3; - * @return this - */ - public BuffInfo clearBaseAvatarId() { - bitField0_ &= ~0x00000004; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 3; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 3; - * @param value the baseAvatarId to set - * @return this - */ - public BuffInfo setBaseAvatarId(final int value) { - bitField0_ |= 0x00000004; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 count = 5; - * @return whether the count field is set - */ - public boolean hasCount() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 count = 5; + * optional uint32 count = 2; * @return this */ public BuffInfo clearCount() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; count = 0; return this; } /** - * optional uint32 count = 5; + * optional uint32 count = 2; * @return the count */ public int getCount() { @@ -204,16 +167,53 @@ public final class BuffInfoOuterClass { } /** - * optional uint32 count = 5; + * optional uint32 count = 2; * @param value the count to set * @return this */ public BuffInfo setCount(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; count = value; return this; } + /** + * optional uint32 buff_id = 4; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 buff_id = 4; + * @return this + */ + public BuffInfo clearBuffId() { + bitField0_ &= ~0x00000008; + buffId = 0; + return this; + } + + /** + * optional uint32 buff_id = 4; + * @return the buffId + */ + public int getBuffId() { + return buffId; + } + + /** + * optional uint32 buff_id = 4; + * @param value the buffId to set + * @return this + */ + public BuffInfo setBuffId(final int value) { + bitField0_ |= 0x00000008; + buffId = value; + return this; + } + /** * optional uint32 level = 9; * @return whether the level field is set @@ -252,44 +252,44 @@ public final class BuffInfoOuterClass { } /** - * optional uint32 buff_id = 13; - * @return whether the buffId field is set + * optional uint32 base_avatar_id = 15; + * @return whether the baseAvatarId field is set */ - public boolean hasBuffId() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 buff_id = 13; + * optional uint32 base_avatar_id = 15; * @return this */ - public BuffInfo clearBuffId() { + public BuffInfo clearBaseAvatarId() { bitField0_ &= ~0x00000020; - buffId = 0; + baseAvatarId = 0; return this; } /** - * optional uint32 buff_id = 13; - * @return the buffId + * optional uint32 base_avatar_id = 15; + * @return the baseAvatarId */ - public int getBuffId() { - return buffId; + public int getBaseAvatarId() { + return baseAvatarId; } /** - * optional uint32 buff_id = 13; - * @param value the buffId to set + * optional uint32 base_avatar_id = 15; + * @param value the baseAvatarId to set * @return this */ - public BuffInfo setBuffId(final int value) { + public BuffInfo setBaseAvatarId(final int value) { bitField0_ |= 0x00000020; - buffId = value; + baseAvatarId = value; return this; } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @return whether the dynamicValues field is set */ public boolean hasDynamicValues() { @@ -297,7 +297,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @return this */ public BuffInfo clearDynamicValues() { @@ -307,7 +307,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -321,7 +321,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -335,7 +335,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @param value the dynamicValues to add * @return this */ @@ -346,7 +346,7 @@ public final class BuffInfoOuterClass { } /** - * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 1; + * repeated .BuffInfo.DynamicValuesEntry dynamic_values = 10; * @param values the dynamicValues to add * @return this */ @@ -363,10 +363,10 @@ public final class BuffInfoOuterClass { bitField0_ = other.bitField0_; addTimeMs = other.addTimeMs; lifeTime = other.lifeTime; - baseAvatarId = other.baseAvatarId; count = other.count; - level = other.level; buffId = other.buffId; + level = other.level; + baseAvatarId = other.baseAvatarId; dynamicValues.copyFrom(other.dynamicValues); } return this; @@ -384,17 +384,17 @@ public final class BuffInfoOuterClass { if (other.hasLifeTime()) { setLifeTime(other.lifeTime); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } if (other.hasCount()) { setCount(other.count); } + if (other.hasBuffId()) { + setBuffId(other.buffId); + } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasBuffId()) { - setBuffId(other.buffId); + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); } if (other.hasDynamicValues()) { getMutableDynamicValues().addAll(other.dynamicValues); @@ -411,10 +411,10 @@ public final class BuffInfoOuterClass { bitField0_ = 0; addTimeMs = 0L; lifeTime = 0F; - baseAvatarId = 0; count = 0; - level = 0; buffId = 0; + level = 0; + baseAvatarId = 0; dynamicValues.clear(); return this; } @@ -442,42 +442,42 @@ public final class BuffInfoOuterClass { return bitField0_ == other.bitField0_ && (!hasAddTimeMs() || addTimeMs == other.addTimeMs) && (!hasLifeTime() || ProtoUtil.isEqual(lifeTime, other.lifeTime)) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasCount() || count == other.count) - && (!hasLevel() || level == other.level) && (!hasBuffId() || buffId == other.buffId) + && (!hasLevel() || level == other.level) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasDynamicValues() || dynamicValues.equals(other.dynamicValues)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 48); output.writeUInt64NoTag(addTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 125); + output.writeRawByte((byte) 117); output.writeFloatNoTag(lifeTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(count); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(buffId); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 72); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(buffId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < dynamicValues.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 82); output.writeMessageNoTag(dynamicValues.get(i)); } } @@ -493,16 +493,16 @@ public final class BuffInfoOuterClass { size += 5; } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(count); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000040) != 0) { size += (1 * dynamicValues.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dynamicValues); @@ -517,36 +517,36 @@ public final class BuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 48: { // addTimeMs addTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 125) { + if (tag != 117) { break; } } - case 125: { + case 117: { // lifeTime lifeTime = input.readFloat(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 24) { + if (tag != 16) { break; } } - case 24: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { + case 16: { // count count = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // buffId + buffId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 72) { @@ -558,20 +558,20 @@ public final class BuffInfoOuterClass { level = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { - // buffId - buffId = input.readUInt32(); + case 120: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 10) { + if (tag != 82) { break; } } - case 10: { + case 82: { // dynamicValues tag = input.readRepeatedMessage(dynamicValues, tag); bitField0_ |= 0x00000040; @@ -603,16 +603,16 @@ public final class BuffInfoOuterClass { output.writeFloat(FieldNames.lifeTime, lifeTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.count, count); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.dynamicValues, dynamicValues); @@ -651,11 +651,10 @@ public final class BuffInfoOuterClass { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 94851343: { + if (input.isAtField(FieldNames.count)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + count = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -663,10 +662,11 @@ public final class BuffInfoOuterClass { } break; } - case 94851343: { - if (input.isAtField(FieldNames.count)) { + case -1378119474: + case 227990663: { + if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { - count = input.readUInt32(); + buffId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -685,11 +685,11 @@ public final class BuffInfoOuterClass { } break; } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -1119,13 +1119,13 @@ public final class BuffInfoOuterClass { static final FieldName lifeTime = FieldName.forField("lifeTime", "life_time"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName count = FieldName.forField("count"); + static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName level = FieldName.forField("level"); - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName dynamicValues = FieldName.forField("dynamicValues", "dynamic_values"); } diff --git a/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java index 2b50612..f31cf6b 100644 --- a/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuyGoodsCsReqOuterClass.java @@ -19,25 +19,30 @@ public final class BuyGoodsCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 goods_id = 3; + * optional uint32 goods_id = 5; */ private int goodsId; /** - * optional uint32 shop_id = 8; + * optional uint32 server_entity_id = 6; */ - private int shopId; + private int serverEntityId; /** - * optional uint32 goods_num = 13; + * optional uint32 goods_num = 8; */ private int goodsNum; /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 13; */ private int itemId; + /** + * optional uint32 shop_id = 15; + */ + private int shopId; + private BuyGoodsCsReq() { } @@ -49,7 +54,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_id = 3; + * optional uint32 goods_id = 5; * @return whether the goodsId field is set */ public boolean hasGoodsId() { @@ -57,7 +62,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_id = 3; + * optional uint32 goods_id = 5; * @return this */ public BuyGoodsCsReq clearGoodsId() { @@ -67,7 +72,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_id = 3; + * optional uint32 goods_id = 5; * @return the goodsId */ public int getGoodsId() { @@ -75,7 +80,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_id = 3; + * optional uint32 goods_id = 5; * @param value the goodsId to set * @return this */ @@ -86,44 +91,44 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 shop_id = 8; - * @return whether the shopId field is set + * optional uint32 server_entity_id = 6; + * @return whether the serverEntityId field is set */ - public boolean hasShopId() { + public boolean hasServerEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 shop_id = 8; + * optional uint32 server_entity_id = 6; * @return this */ - public BuyGoodsCsReq clearShopId() { + public BuyGoodsCsReq clearServerEntityId() { bitField0_ &= ~0x00000002; - shopId = 0; + serverEntityId = 0; return this; } /** - * optional uint32 shop_id = 8; - * @return the shopId + * optional uint32 server_entity_id = 6; + * @return the serverEntityId */ - public int getShopId() { - return shopId; + public int getServerEntityId() { + return serverEntityId; } /** - * optional uint32 shop_id = 8; - * @param value the shopId to set + * optional uint32 server_entity_id = 6; + * @param value the serverEntityId to set * @return this */ - public BuyGoodsCsReq setShopId(final int value) { + public BuyGoodsCsReq setServerEntityId(final int value) { bitField0_ |= 0x00000002; - shopId = value; + serverEntityId = value; return this; } /** - * optional uint32 goods_num = 13; + * optional uint32 goods_num = 8; * @return whether the goodsNum field is set */ public boolean hasGoodsNum() { @@ -131,7 +136,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 13; + * optional uint32 goods_num = 8; * @return this */ public BuyGoodsCsReq clearGoodsNum() { @@ -141,7 +146,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 13; + * optional uint32 goods_num = 8; * @return the goodsNum */ public int getGoodsNum() { @@ -149,7 +154,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 goods_num = 13; + * optional uint32 goods_num = 8; * @param value the goodsNum to set * @return this */ @@ -160,7 +165,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 13; * @return whether the itemId field is set */ public boolean hasItemId() { @@ -168,7 +173,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 13; * @return this */ public BuyGoodsCsReq clearItemId() { @@ -178,7 +183,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 13; * @return the itemId */ public int getItemId() { @@ -186,7 +191,7 @@ public final class BuyGoodsCsReqOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 13; * @param value the itemId to set * @return this */ @@ -196,15 +201,53 @@ public final class BuyGoodsCsReqOuterClass { return this; } + /** + * optional uint32 shop_id = 15; + * @return whether the shopId field is set + */ + public boolean hasShopId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 shop_id = 15; + * @return this + */ + public BuyGoodsCsReq clearShopId() { + bitField0_ &= ~0x00000010; + shopId = 0; + return this; + } + + /** + * optional uint32 shop_id = 15; + * @return the shopId + */ + public int getShopId() { + return shopId; + } + + /** + * optional uint32 shop_id = 15; + * @param value the shopId to set + * @return this + */ + public BuyGoodsCsReq setShopId(final int value) { + bitField0_ |= 0x00000010; + shopId = value; + return this; + } + @Override public BuyGoodsCsReq copyFrom(final BuyGoodsCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; goodsId = other.goodsId; - shopId = other.shopId; + serverEntityId = other.serverEntityId; goodsNum = other.goodsNum; itemId = other.itemId; + shopId = other.shopId; } return this; } @@ -218,8 +261,8 @@ public final class BuyGoodsCsReqOuterClass { if (other.hasGoodsId()) { setGoodsId(other.goodsId); } - if (other.hasShopId()) { - setShopId(other.shopId); + if (other.hasServerEntityId()) { + setServerEntityId(other.serverEntityId); } if (other.hasGoodsNum()) { setGoodsNum(other.goodsNum); @@ -227,6 +270,9 @@ public final class BuyGoodsCsReqOuterClass { if (other.hasItemId()) { setItemId(other.itemId); } + if (other.hasShopId()) { + setShopId(other.shopId); + } return this; } @@ -238,9 +284,10 @@ public final class BuyGoodsCsReqOuterClass { cachedSize = -1; bitField0_ = 0; goodsId = 0; - shopId = 0; + serverEntityId = 0; goodsNum = 0; itemId = 0; + shopId = 0; return this; } @@ -265,29 +312,34 @@ public final class BuyGoodsCsReqOuterClass { BuyGoodsCsReq other = (BuyGoodsCsReq) o; return bitField0_ == other.bitField0_ && (!hasGoodsId() || goodsId == other.goodsId) - && (!hasShopId() || shopId == other.shopId) + && (!hasServerEntityId() || serverEntityId == other.serverEntityId) && (!hasGoodsNum() || goodsNum == other.goodsNum) - && (!hasItemId() || itemId == other.itemId); + && (!hasItemId() || itemId == other.itemId) + && (!hasShopId() || shopId == other.shopId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(shopId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(serverEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(goodsNum); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(itemId); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(shopId); + } } @Override @@ -297,7 +349,7 @@ public final class BuyGoodsCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(serverEntityId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsNum); @@ -305,6 +357,9 @@ public final class BuyGoodsCsReqOuterClass { if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + } return size; } @@ -315,37 +370,46 @@ public final class BuyGoodsCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 40: { // goodsId goodsId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // serverEntityId + serverEntityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // shopId - shopId = input.readUInt32(); - bitField0_ |= 0x00000002; + // goodsNum + goodsNum = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // goodsNum - goodsNum = input.readUInt32(); - bitField0_ |= 0x00000004; + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 120) { break; } } case 120: { - // itemId - itemId = input.readUInt32(); - bitField0_ |= 0x00000008; + // shopId + shopId = input.readUInt32(); + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { break; @@ -372,7 +436,7 @@ public final class BuyGoodsCsReqOuterClass { output.writeUInt32(FieldNames.goodsId, goodsId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.shopId, shopId); + output.writeUInt32(FieldNames.serverEntityId, serverEntityId); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.goodsNum, goodsNum); @@ -380,6 +444,9 @@ public final class BuyGoodsCsReqOuterClass { if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.itemId, itemId); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.shopId, shopId); + } output.endObject(); } @@ -402,11 +469,11 @@ public final class BuyGoodsCsReqOuterClass { } break; } - case -903151951: - case 2067081988: { - if (input.isAtField(FieldNames.shopId)) { + case -1931796287: + case 525013243: { + if (input.isAtField(FieldNames.serverEntityId)) { if (!input.trySkipNullValue()) { - shopId = input.readUInt32(); + serverEntityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -438,6 +505,18 @@ public final class BuyGoodsCsReqOuterClass { } break; } + case -903151951: + case 2067081988: { + if (input.isAtField(FieldNames.shopId)) { + if (!input.trySkipNullValue()) { + shopId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -492,11 +571,13 @@ public final class BuyGoodsCsReqOuterClass { static class FieldNames { static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); - static final FieldName shopId = FieldName.forField("shopId", "shop_id"); + static final FieldName serverEntityId = FieldName.forField("serverEntityId", "server_entity_id"); static final FieldName goodsNum = FieldName.forField("goodsNum", "goods_num"); static final FieldName itemId = FieldName.forField("itemId", "item_id"); + + static final FieldName shopId = FieldName.forField("shopId", "shop_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java index 96486d0..037d32f 100644 --- a/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/BuyGoodsScRspOuterClass.java @@ -19,22 +19,22 @@ public final class BuyGoodsScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; - */ - private int retcode; - - /** - * optional uint32 goods_buy_times = 10; - */ - private int goodsBuyTimes; - - /** - * optional uint32 goods_id = 13; + * optional uint32 goods_id = 3; */ private int goodsId; /** - * optional uint32 shop_id = 15; + * optional uint32 goods_buy_times = 4; + */ + private int goodsBuyTimes; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional uint32 shop_id = 11; */ private int shopId; @@ -54,44 +54,44 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set + * optional uint32 goods_id = 3; + * @return whether the goodsId field is set */ - public boolean hasRetcode() { + public boolean hasGoodsId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 1; + * optional uint32 goods_id = 3; * @return this */ - public BuyGoodsScRsp clearRetcode() { + public BuyGoodsScRsp clearGoodsId() { bitField0_ &= ~0x00000001; - retcode = 0; + goodsId = 0; return this; } /** - * optional uint32 retcode = 1; - * @return the retcode + * optional uint32 goods_id = 3; + * @return the goodsId */ - public int getRetcode() { - return retcode; + public int getGoodsId() { + return goodsId; } /** - * optional uint32 retcode = 1; - * @param value the retcode to set + * optional uint32 goods_id = 3; + * @param value the goodsId to set * @return this */ - public BuyGoodsScRsp setRetcode(final int value) { + public BuyGoodsScRsp setGoodsId(final int value) { bitField0_ |= 0x00000001; - retcode = value; + goodsId = value; return this; } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 4; * @return whether the goodsBuyTimes field is set */ public boolean hasGoodsBuyTimes() { @@ -99,7 +99,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 4; * @return this */ public BuyGoodsScRsp clearGoodsBuyTimes() { @@ -109,7 +109,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 4; * @return the goodsBuyTimes */ public int getGoodsBuyTimes() { @@ -117,7 +117,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 goods_buy_times = 10; + * optional uint32 goods_buy_times = 4; * @param value the goodsBuyTimes to set * @return this */ @@ -128,44 +128,44 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 goods_id = 13; - * @return whether the goodsId field is set + * optional uint32 retcode = 7; + * @return whether the retcode field is set */ - public boolean hasGoodsId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 goods_id = 13; + * optional uint32 retcode = 7; * @return this */ - public BuyGoodsScRsp clearGoodsId() { + public BuyGoodsScRsp clearRetcode() { bitField0_ &= ~0x00000004; - goodsId = 0; + retcode = 0; return this; } /** - * optional uint32 goods_id = 13; - * @return the goodsId + * optional uint32 retcode = 7; + * @return the retcode */ - public int getGoodsId() { - return goodsId; + public int getRetcode() { + return retcode; } /** - * optional uint32 goods_id = 13; - * @param value the goodsId to set + * optional uint32 retcode = 7; + * @param value the retcode to set * @return this */ - public BuyGoodsScRsp setGoodsId(final int value) { + public BuyGoodsScRsp setRetcode(final int value) { bitField0_ |= 0x00000004; - goodsId = value; + retcode = value; return this; } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 11; * @return whether the shopId field is set */ public boolean hasShopId() { @@ -173,7 +173,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 11; * @return this */ public BuyGoodsScRsp clearShopId() { @@ -183,7 +183,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 11; * @return the shopId */ public int getShopId() { @@ -191,7 +191,7 @@ public final class BuyGoodsScRspOuterClass { } /** - * optional uint32 shop_id = 15; + * optional uint32 shop_id = 11; * @param value the shopId to set * @return this */ @@ -263,9 +263,9 @@ public final class BuyGoodsScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; - goodsBuyTimes = other.goodsBuyTimes; goodsId = other.goodsId; + goodsBuyTimes = other.goodsBuyTimes; + retcode = other.retcode; shopId = other.shopId; returnItemList.copyFrom(other.returnItemList); } @@ -278,14 +278,14 @@ public final class BuyGoodsScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); + if (other.hasGoodsId()) { + setGoodsId(other.goodsId); } if (other.hasGoodsBuyTimes()) { setGoodsBuyTimes(other.goodsBuyTimes); } - if (other.hasGoodsId()) { - setGoodsId(other.goodsId); + if (other.hasRetcode()) { + setRetcode(other.retcode); } if (other.hasShopId()) { setShopId(other.shopId); @@ -303,9 +303,9 @@ public final class BuyGoodsScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; - goodsBuyTimes = 0; goodsId = 0; + goodsBuyTimes = 0; + retcode = 0; shopId = 0; returnItemList.clear(); return this; @@ -332,9 +332,9 @@ public final class BuyGoodsScRspOuterClass { } BuyGoodsScRsp other = (BuyGoodsScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasGoodsBuyTimes() || goodsBuyTimes == other.goodsBuyTimes) && (!hasGoodsId() || goodsId == other.goodsId) + && (!hasGoodsBuyTimes() || goodsBuyTimes == other.goodsBuyTimes) + && (!hasRetcode() || retcode == other.retcode) && (!hasShopId() || shopId == other.shopId) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @@ -342,19 +342,19 @@ public final class BuyGoodsScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(goodsBuyTimes); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(goodsId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(shopId); } if ((bitField0_ & 0x00000010) != 0) { @@ -367,13 +367,13 @@ public final class BuyGoodsScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsBuyTimes); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(goodsId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); @@ -391,34 +391,34 @@ public final class BuyGoodsScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); + case 24: { + // goodsId + goodsId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 32) { break; } } - case 80: { + case 32: { // goodsBuyTimes goodsBuyTimes = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 56) { break; } } - case 104: { - // goodsId - goodsId = input.readUInt32(); + case 56: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { + case 88: { // shopId shopId = input.readUInt32(); bitField0_ |= 0x00000008; @@ -454,13 +454,13 @@ public final class BuyGoodsScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.goodsId, goodsId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.goodsBuyTimes, goodsBuyTimes); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.goodsId, goodsId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.shopId, shopId); @@ -478,10 +478,11 @@ public final class BuyGoodsScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 207037201: + case 2123207332: { + if (input.isAtField(FieldNames.goodsId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + goodsId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -501,11 +502,10 @@ public final class BuyGoodsScRspOuterClass { } break; } - case 207037201: - case 2123207332: { - if (input.isAtField(FieldNames.goodsId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - goodsId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -589,11 +589,11 @@ public final class BuyGoodsScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); static final FieldName goodsBuyTimes = FieldName.forField("goodsBuyTimes", "goods_buy_times"); - static final FieldName goodsId = FieldName.forField("goodsId", "goods_id"); + static final FieldName retcode = FieldName.forField("retcode"); static final FieldName shopId = FieldName.forField("shopId", "shop_id"); diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeBossBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeBossBuffInfoOuterClass.java index 5a9f574..5f1a915 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeBossBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeBossBuffInfoOuterClass.java @@ -20,7 +20,7 @@ public final class ChallengeBossBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; */ private final RepeatedInt buffList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class ChallengeBossBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; * @return whether the buffList field is set */ public boolean hasBuffList() { @@ -43,7 +43,7 @@ public final class ChallengeBossBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; * @return this */ public ChallengeBossBuffInfo clearBuffList() { @@ -53,7 +53,7 @@ public final class ChallengeBossBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class ChallengeBossBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class ChallengeBossBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; * @param value the buffList to add * @return this */ @@ -92,7 +92,7 @@ public final class ChallengeBossBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 10; + * repeated uint32 buff_list = 13; * @param values the buffList to add * @return this */ @@ -163,7 +163,7 @@ public final class ChallengeBossBuffInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(buffList.array()[i]); } } @@ -185,7 +185,7 @@ public final class ChallengeBossBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 106: { // buffList [packed=true] input.readPackedUInt32(buffList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class ChallengeBossBuffInfoOuterClass { tag = input.readTag(); break; } - case 80: { + case 104: { // buffList [packed=false] tag = input.readRepeatedUInt32(buffList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeBossInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeBossInfoOuterClass.java index 541b9d4..8776e54 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeBossInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeBossInfoOuterClass.java @@ -14,56 +14,35 @@ import us.hebi.quickbuf.RepeatedInt; public final class ChallengeBossInfoOuterClass { /** - *
-   *  TODO: verify nodes and lineups
-   * 
- * * Protobuf type {@code ChallengeBossInfo} */ public static final class ChallengeBossInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - *
-     *  map PKADBAODMOL = 6;
-     * 
- * - * optional bool ACGHCDLBCGD = 13; - */ - private boolean aCGHCDLBCGD; - - /** - * optional .ChallengeBossSingleNodeInfo first_node = 1; + * optional .ChallengeBossSingleNodeInfo first_node = 2; */ private final ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo firstNode = ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo.newInstance(); /** - * optional .ChallengeBossSingleNodeInfo second_node = 15; + * optional .ChallengeBossSingleNodeInfo second_node = 11; */ private final ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo secondNode = ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo.newInstance(); /** - * repeated uint32 lineup1 = 3; + * repeated uint32 first_half_lineup = 6; */ - private final RepeatedInt lineup1 = RepeatedInt.newEmptyInstance(); + private final RepeatedInt firstHalfLineup = RepeatedInt.newEmptyInstance(); /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; + * repeated uint32 second_half_lineup = 13; */ - private final RepeatedInt lineup2 = RepeatedInt.newEmptyInstance(); + private final RepeatedInt secondHalfLineup = RepeatedInt.newEmptyInstance(); private ChallengeBossInfo() { } /** - *
-     *  TODO: verify nodes and lineups
-     * 
- * * @return a new empty instance of {@code ChallengeBossInfo} */ public static ChallengeBossInfo newInstance() { @@ -71,78 +50,25 @@ public final class ChallengeBossInfoOuterClass { } /** - *
-     *  map PKADBAODMOL = 6;
-     * 
- * - * optional bool ACGHCDLBCGD = 13; - * @return whether the aCGHCDLBCGD field is set + * optional .ChallengeBossSingleNodeInfo first_node = 2; + * @return whether the firstNode field is set */ - public boolean hasACGHCDLBCGD() { + public boolean hasFirstNode() { return (bitField0_ & 0x00000001) != 0; } /** - *
-     *  map PKADBAODMOL = 6;
-     * 
- * - * optional bool ACGHCDLBCGD = 13; - * @return this - */ - public ChallengeBossInfo clearACGHCDLBCGD() { - bitField0_ &= ~0x00000001; - aCGHCDLBCGD = false; - return this; - } - - /** - *
-     *  map PKADBAODMOL = 6;
-     * 
- * - * optional bool ACGHCDLBCGD = 13; - * @return the aCGHCDLBCGD - */ - public boolean getACGHCDLBCGD() { - return aCGHCDLBCGD; - } - - /** - *
-     *  map PKADBAODMOL = 6;
-     * 
- * - * optional bool ACGHCDLBCGD = 13; - * @param value the aCGHCDLBCGD to set - * @return this - */ - public ChallengeBossInfo setACGHCDLBCGD(final boolean value) { - bitField0_ |= 0x00000001; - aCGHCDLBCGD = value; - return this; - } - - /** - * optional .ChallengeBossSingleNodeInfo first_node = 1; - * @return whether the firstNode field is set - */ - public boolean hasFirstNode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ChallengeBossSingleNodeInfo first_node = 1; + * optional .ChallengeBossSingleNodeInfo first_node = 2; * @return this */ public ChallengeBossInfo clearFirstNode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; firstNode.clear(); return this; } /** - * optional .ChallengeBossSingleNodeInfo first_node = 1; + * optional .ChallengeBossSingleNodeInfo first_node = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -156,7 +82,7 @@ public final class ChallengeBossInfoOuterClass { } /** - * optional .ChallengeBossSingleNodeInfo first_node = 1; + * optional .ChallengeBossSingleNodeInfo first_node = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,42 +91,42 @@ public final class ChallengeBossInfoOuterClass { * @return internal storage object for modifications */ public ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo getMutableFirstNode() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return firstNode; } /** - * optional .ChallengeBossSingleNodeInfo first_node = 1; + * optional .ChallengeBossSingleNodeInfo first_node = 2; * @param value the firstNode to set * @return this */ public ChallengeBossInfo setFirstNode( final ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; firstNode.copyFrom(value); return this; } /** - * optional .ChallengeBossSingleNodeInfo second_node = 15; + * optional .ChallengeBossSingleNodeInfo second_node = 11; * @return whether the secondNode field is set */ public boolean hasSecondNode() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional .ChallengeBossSingleNodeInfo second_node = 15; + * optional .ChallengeBossSingleNodeInfo second_node = 11; * @return this */ public ChallengeBossInfo clearSecondNode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; secondNode.clear(); return this; } /** - * optional .ChallengeBossSingleNodeInfo second_node = 15; + * optional .ChallengeBossSingleNodeInfo second_node = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -214,7 +140,7 @@ public final class ChallengeBossInfoOuterClass { } /** - * optional .ChallengeBossSingleNodeInfo second_node = 15; + * optional .ChallengeBossSingleNodeInfo second_node = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -224,56 +150,124 @@ public final class ChallengeBossInfoOuterClass { */ public ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo getMutableSecondNode( ) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return secondNode; } /** - * optional .ChallengeBossSingleNodeInfo second_node = 15; + * optional .ChallengeBossSingleNodeInfo second_node = 11; * @param value the secondNode to set * @return this */ public ChallengeBossInfo setSecondNode( final ChallengeBossSingleNodeInfoOuterClass.ChallengeBossSingleNodeInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; secondNode.copyFrom(value); return this; } /** - * repeated uint32 lineup1 = 3; - * @return whether the lineup1 field is set + * repeated uint32 first_half_lineup = 6; + * @return whether the firstHalfLineup field is set */ - public boolean hasLineup1() { + public boolean hasFirstHalfLineup() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 first_half_lineup = 6; + * @return this + */ + public ChallengeBossInfo clearFirstHalfLineup() { + bitField0_ &= ~0x00000004; + firstHalfLineup.clear(); + return this; + } + + /** + * repeated uint32 first_half_lineup = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFirstHalfLineup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFirstHalfLineup() { + return firstHalfLineup; + } + + /** + * repeated uint32 first_half_lineup = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableFirstHalfLineup() { + bitField0_ |= 0x00000004; + return firstHalfLineup; + } + + /** + * repeated uint32 first_half_lineup = 6; + * @param value the firstHalfLineup to add + * @return this + */ + public ChallengeBossInfo addFirstHalfLineup(final int value) { + bitField0_ |= 0x00000004; + firstHalfLineup.add(value); + return this; + } + + /** + * repeated uint32 first_half_lineup = 6; + * @param values the firstHalfLineup to add + * @return this + */ + public ChallengeBossInfo addAllFirstHalfLineup(final int... values) { + bitField0_ |= 0x00000004; + firstHalfLineup.addAll(values); + return this; + } + + /** + * repeated uint32 second_half_lineup = 13; + * @return whether the secondHalfLineup field is set + */ + public boolean hasSecondHalfLineup() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated uint32 lineup1 = 3; + * repeated uint32 second_half_lineup = 13; * @return this */ - public ChallengeBossInfo clearLineup1() { + public ChallengeBossInfo clearSecondHalfLineup() { bitField0_ &= ~0x00000008; - lineup1.clear(); + secondHalfLineup.clear(); return this; } /** - * repeated uint32 lineup1 = 3; + * repeated uint32 second_half_lineup = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableLineup1()} if you want to modify it. + * Use {@link #getMutableSecondHalfLineup()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getLineup1() { - return lineup1; + public RepeatedInt getSecondHalfLineup() { + return secondHalfLineup; } /** - * repeated uint32 lineup1 = 3; + * repeated uint32 second_half_lineup = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -281,122 +275,30 @@ public final class ChallengeBossInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableLineup1() { + public RepeatedInt getMutableSecondHalfLineup() { bitField0_ |= 0x00000008; - return lineup1; + return secondHalfLineup; } /** - * repeated uint32 lineup1 = 3; - * @param value the lineup1 to add + * repeated uint32 second_half_lineup = 13; + * @param value the secondHalfLineup to add * @return this */ - public ChallengeBossInfo addLineup1(final int value) { + public ChallengeBossInfo addSecondHalfLineup(final int value) { bitField0_ |= 0x00000008; - lineup1.add(value); + secondHalfLineup.add(value); return this; } /** - * repeated uint32 lineup1 = 3; - * @param values the lineup1 to add + * repeated uint32 second_half_lineup = 13; + * @param values the secondHalfLineup to add * @return this */ - public ChallengeBossInfo addAllLineup1(final int... values) { + public ChallengeBossInfo addAllSecondHalfLineup(final int... values) { bitField0_ |= 0x00000008; - lineup1.addAll(values); - return this; - } - - /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; - * @return whether the lineup2 field is set - */ - public boolean hasLineup2() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; - * @return this - */ - public ChallengeBossInfo clearLineup2() { - bitField0_ &= ~0x00000010; - lineup2.clear(); - return this; - } - - /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLineup2()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getLineup2() { - return lineup2; - } - - /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableLineup2() { - bitField0_ |= 0x00000010; - return lineup2; - } - - /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; - * @param value the lineup2 to add - * @return this - */ - public ChallengeBossInfo addLineup2(final int value) { - bitField0_ |= 0x00000010; - lineup2.add(value); - return this; - } - - /** - *
-     *  map NIDHAKJENJJ = 11;
-     * 
- * - * repeated uint32 lineup2 = 12; - * @param values the lineup2 to add - * @return this - */ - public ChallengeBossInfo addAllLineup2(final int... values) { - bitField0_ |= 0x00000010; - lineup2.addAll(values); + secondHalfLineup.addAll(values); return this; } @@ -405,11 +307,10 @@ public final class ChallengeBossInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - aCGHCDLBCGD = other.aCGHCDLBCGD; firstNode.copyFrom(other.firstNode); secondNode.copyFrom(other.secondNode); - lineup1.copyFrom(other.lineup1); - lineup2.copyFrom(other.lineup2); + firstHalfLineup.copyFrom(other.firstHalfLineup); + secondHalfLineup.copyFrom(other.secondHalfLineup); } return this; } @@ -420,20 +321,17 @@ public final class ChallengeBossInfoOuterClass { return this; } cachedSize = -1; - if (other.hasACGHCDLBCGD()) { - setACGHCDLBCGD(other.aCGHCDLBCGD); - } if (other.hasFirstNode()) { getMutableFirstNode().mergeFrom(other.firstNode); } if (other.hasSecondNode()) { getMutableSecondNode().mergeFrom(other.secondNode); } - if (other.hasLineup1()) { - getMutableLineup1().addAll(other.lineup1); + if (other.hasFirstHalfLineup()) { + getMutableFirstHalfLineup().addAll(other.firstHalfLineup); } - if (other.hasLineup2()) { - getMutableLineup2().addAll(other.lineup2); + if (other.hasSecondHalfLineup()) { + getMutableSecondHalfLineup().addAll(other.secondHalfLineup); } return this; } @@ -445,11 +343,10 @@ public final class ChallengeBossInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - aCGHCDLBCGD = false; firstNode.clear(); secondNode.clear(); - lineup1.clear(); - lineup2.clear(); + firstHalfLineup.clear(); + secondHalfLineup.clear(); return this; } @@ -462,8 +359,8 @@ public final class ChallengeBossInfoOuterClass { bitField0_ = 0; firstNode.clearQuick(); secondNode.clearQuick(); - lineup1.clear(); - lineup2.clear(); + firstHalfLineup.clear(); + secondHalfLineup.clear(); return this; } @@ -477,37 +374,32 @@ public final class ChallengeBossInfoOuterClass { } ChallengeBossInfo other = (ChallengeBossInfo) o; return bitField0_ == other.bitField0_ - && (!hasACGHCDLBCGD() || aCGHCDLBCGD == other.aCGHCDLBCGD) && (!hasFirstNode() || firstNode.equals(other.firstNode)) && (!hasSecondNode() || secondNode.equals(other.secondNode)) - && (!hasLineup1() || lineup1.equals(other.lineup1)) - && (!hasLineup2() || lineup2.equals(other.lineup2)); + && (!hasFirstHalfLineup() || firstHalfLineup.equals(other.firstHalfLineup)) + && (!hasSecondHalfLineup() || secondHalfLineup.equals(other.secondHalfLineup)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); - output.writeBoolNoTag(aCGHCDLBCGD); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 18); output.writeMessageNoTag(firstNode); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 122); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 90); output.writeMessageNoTag(secondNode); } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < lineup1.length(); i++) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(lineup1.array()[i]); + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < firstHalfLineup.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(firstHalfLineup.array()[i]); } } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < lineup2.length(); i++) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(lineup2.array()[i]); + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < secondHalfLineup.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(secondHalfLineup.array()[i]); } } } @@ -516,19 +408,16 @@ public final class ChallengeBossInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(firstNode); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(secondNode); } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * lineup1.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lineup1); + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * firstHalfLineup.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(firstHalfLineup); } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * lineup2.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lineup2); + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * secondHalfLineup.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(secondHalfLineup); } return size; } @@ -540,47 +429,38 @@ public final class ChallengeBossInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { - // aCGHCDLBCGD - aCGHCDLBCGD = input.readBool(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { + case 18: { // firstNode input.readMessage(firstNode); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 90) { break; } } - case 122: { + case 90: { // secondNode input.readMessage(secondNode); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // firstHalfLineup [packed=true] + input.readPackedUInt32(firstHalfLineup, tag); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 106) { break; } } - case 26: { - // lineup1 [packed=true] - input.readPackedUInt32(lineup1, tag); + case 106: { + // secondHalfLineup [packed=true] + input.readPackedUInt32(secondHalfLineup, tag); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // lineup2 [packed=true] - input.readPackedUInt32(lineup2, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); if (tag != 0) { break; } @@ -595,16 +475,16 @@ public final class ChallengeBossInfoOuterClass { tag = input.readTag(); break; } - case 24: { - // lineup1 [packed=false] - tag = input.readRepeatedUInt32(lineup1, tag); - bitField0_ |= 0x00000008; + case 48: { + // firstHalfLineup [packed=false] + tag = input.readRepeatedUInt32(firstHalfLineup, tag); + bitField0_ |= 0x00000004; break; } - case 96: { - // lineup2 [packed=false] - tag = input.readRepeatedUInt32(lineup2, tag); - bitField0_ |= 0x00000010; + case 104: { + // secondHalfLineup [packed=false] + tag = input.readRepeatedUInt32(secondHalfLineup, tag); + bitField0_ |= 0x00000008; break; } } @@ -615,19 +495,16 @@ public final class ChallengeBossInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeBool(FieldNames.aCGHCDLBCGD, aCGHCDLBCGD); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.firstNode, firstNode); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeMessage(FieldNames.secondNode, secondNode); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.lineup1, lineup1); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.firstHalfLineup, firstHalfLineup); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.lineup2, lineup2); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.secondHalfLineup, secondHalfLineup); } output.endObject(); } @@ -639,23 +516,12 @@ public final class ChallengeBossInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1681027462: { - if (input.isAtField(FieldNames.aCGHCDLBCGD)) { - if (!input.trySkipNullValue()) { - aCGHCDLBCGD = input.readBool(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 132848850: case -160972239: { if (input.isAtField(FieldNames.firstNode)) { if (!input.trySkipNullValue()) { input.readMessage(firstNode); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -667,6 +533,18 @@ public final class ChallengeBossInfoOuterClass { if (input.isAtField(FieldNames.secondNode)) { if (!input.trySkipNullValue()) { input.readMessage(secondNode); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -450421134: + case 1848535052: { + if (input.isAtField(FieldNames.firstHalfLineup)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(firstHalfLineup); bitField0_ |= 0x00000004; } } else { @@ -674,10 +552,11 @@ public final class ChallengeBossInfoOuterClass { } break; } - case 176922754: { - if (input.isAtField(FieldNames.lineup1)) { + case 1414736694: + case -1031121968: { + if (input.isAtField(FieldNames.secondHalfLineup)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(lineup1); + input.readRepeatedUInt32(secondHalfLineup); bitField0_ |= 0x00000008; } } else { @@ -685,17 +564,6 @@ public final class ChallengeBossInfoOuterClass { } break; } - case 176922755: { - if (input.isAtField(FieldNames.lineup2)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(lineup2); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -749,15 +617,13 @@ public final class ChallengeBossInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName aCGHCDLBCGD = FieldName.forField("ACGHCDLBCGD"); - static final FieldName firstNode = FieldName.forField("firstNode", "first_node"); static final FieldName secondNode = FieldName.forField("secondNode", "second_node"); - static final FieldName lineup1 = FieldName.forField("lineup1"); + static final FieldName firstHalfLineup = FieldName.forField("firstHalfLineup", "first_half_lineup"); - static final FieldName lineup2 = FieldName.forField("lineup2"); + static final FieldName secondHalfLineup = FieldName.forField("secondHalfLineup", "second_half_lineup"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeBossPhaseSettleNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeBossPhaseSettleNotifyOuterClass.java index 22f4489..b86a18a 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeBossPhaseSettleNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeBossPhaseSettleNotifyOuterClass.java @@ -19,55 +19,63 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { public static final class ChallengeBossPhaseSettleNotify extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 score_two = 2; - */ - private int scoreTwo; - /** * optional uint32 challenge_score = 3; */ private int challengeScore; /** - * optional uint32 stars = 4; + * optional uint32 DBDDGFJGGGB = 4; */ - private int stars; + private int dBDDGFJGGGB; /** - * optional uint32 COKFJJOLMDI = 12; - */ - private int cOKFJJOLMDI; - - /** - * optional uint32 challenge_id = 13; + * optional uint32 challenge_id = 6; */ private int challengeId; /** - * optional uint32 phase = 14; + * optional uint32 stars = 9; + */ + private int stars; + + /** + * optional uint32 phase = 12; */ private int phase; /** + * optional uint32 score_two = 14; + */ + private int scoreTwo; + + /** + *
+     *  is_reward
+     * 
+ * * optional bool unkbool1 = 7; */ private boolean unkbool1; /** - * optional bool is_win = 11; + * optional bool is_win = 10; */ private boolean isWin; /** - * optional bool unkbool2 = 15; + *
+     *  is_remaining_action
+     * 
+ * + * optional bool unkbool2 = 13; */ private boolean unkbool2; /** - * repeated .BattleTarget BIPEPADLEIA = 1; + * repeated .BattleTarget HJAALLNAFOO = 8; */ - private final RepeatedMessage bIPEPADLEIA = RepeatedMessage.newEmptyInstance(BattleTargetOuterClass.BattleTarget.getFactory()); + private final RepeatedMessage hJAALLNAFOO = RepeatedMessage.newEmptyInstance(BattleTargetOuterClass.BattleTarget.getFactory()); private ChallengeBossPhaseSettleNotify() { } @@ -79,49 +87,12 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { return new ChallengeBossPhaseSettleNotify(); } - /** - * optional uint32 score_two = 2; - * @return whether the scoreTwo field is set - */ - public boolean hasScoreTwo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 score_two = 2; - * @return this - */ - public ChallengeBossPhaseSettleNotify clearScoreTwo() { - bitField0_ &= ~0x00000001; - scoreTwo = 0; - return this; - } - - /** - * optional uint32 score_two = 2; - * @return the scoreTwo - */ - public int getScoreTwo() { - return scoreTwo; - } - - /** - * optional uint32 score_two = 2; - * @param value the scoreTwo to set - * @return this - */ - public ChallengeBossPhaseSettleNotify setScoreTwo(final int value) { - bitField0_ |= 0x00000001; - scoreTwo = value; - return this; - } - /** * optional uint32 challenge_score = 3; * @return whether the challengeScore field is set */ public boolean hasChallengeScore() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -129,7 +100,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { * @return this */ public ChallengeBossPhaseSettleNotify clearChallengeScore() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; challengeScore = 0; return this; } @@ -148,105 +119,68 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { * @return this */ public ChallengeBossPhaseSettleNotify setChallengeScore(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; challengeScore = value; return this; } /** - * optional uint32 stars = 4; - * @return whether the stars field is set + * optional uint32 DBDDGFJGGGB = 4; + * @return whether the dBDDGFJGGGB field is set */ - public boolean hasStars() { + public boolean hasDBDDGFJGGGB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 DBDDGFJGGGB = 4; + * @return this + */ + public ChallengeBossPhaseSettleNotify clearDBDDGFJGGGB() { + bitField0_ &= ~0x00000002; + dBDDGFJGGGB = 0; + return this; + } + + /** + * optional uint32 DBDDGFJGGGB = 4; + * @return the dBDDGFJGGGB + */ + public int getDBDDGFJGGGB() { + return dBDDGFJGGGB; + } + + /** + * optional uint32 DBDDGFJGGGB = 4; + * @param value the dBDDGFJGGGB to set + * @return this + */ + public ChallengeBossPhaseSettleNotify setDBDDGFJGGGB(final int value) { + bitField0_ |= 0x00000002; + dBDDGFJGGGB = value; + return this; + } + + /** + * optional uint32 challenge_id = 6; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 stars = 4; - * @return this - */ - public ChallengeBossPhaseSettleNotify clearStars() { - bitField0_ &= ~0x00000004; - stars = 0; - return this; - } - - /** - * optional uint32 stars = 4; - * @return the stars - */ - public int getStars() { - return stars; - } - - /** - * optional uint32 stars = 4; - * @param value the stars to set - * @return this - */ - public ChallengeBossPhaseSettleNotify setStars(final int value) { - bitField0_ |= 0x00000004; - stars = value; - return this; - } - - /** - * optional uint32 COKFJJOLMDI = 12; - * @return whether the cOKFJJOLMDI field is set - */ - public boolean hasCOKFJJOLMDI() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 COKFJJOLMDI = 12; - * @return this - */ - public ChallengeBossPhaseSettleNotify clearCOKFJJOLMDI() { - bitField0_ &= ~0x00000008; - cOKFJJOLMDI = 0; - return this; - } - - /** - * optional uint32 COKFJJOLMDI = 12; - * @return the cOKFJJOLMDI - */ - public int getCOKFJJOLMDI() { - return cOKFJJOLMDI; - } - - /** - * optional uint32 COKFJJOLMDI = 12; - * @param value the cOKFJJOLMDI to set - * @return this - */ - public ChallengeBossPhaseSettleNotify setCOKFJJOLMDI(final int value) { - bitField0_ |= 0x00000008; - cOKFJJOLMDI = value; - return this; - } - - /** - * optional uint32 challenge_id = 13; - * @return whether the challengeId field is set - */ - public boolean hasChallengeId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 challenge_id = 13; + * optional uint32 challenge_id = 6; * @return this */ public ChallengeBossPhaseSettleNotify clearChallengeId() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000004; challengeId = 0; return this; } /** - * optional uint32 challenge_id = 13; + * optional uint32 challenge_id = 6; * @return the challengeId */ public int getChallengeId() { @@ -254,36 +188,73 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional uint32 challenge_id = 13; + * optional uint32 challenge_id = 6; * @param value the challengeId to set * @return this */ public ChallengeBossPhaseSettleNotify setChallengeId(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; challengeId = value; return this; } /** - * optional uint32 phase = 14; - * @return whether the phase field is set + * optional uint32 stars = 9; + * @return whether the stars field is set */ - public boolean hasPhase() { - return (bitField0_ & 0x00000020) != 0; + public boolean hasStars() { + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 phase = 14; + * optional uint32 stars = 9; + * @return this + */ + public ChallengeBossPhaseSettleNotify clearStars() { + bitField0_ &= ~0x00000008; + stars = 0; + return this; + } + + /** + * optional uint32 stars = 9; + * @return the stars + */ + public int getStars() { + return stars; + } + + /** + * optional uint32 stars = 9; + * @param value the stars to set + * @return this + */ + public ChallengeBossPhaseSettleNotify setStars(final int value) { + bitField0_ |= 0x00000008; + stars = value; + return this; + } + + /** + * optional uint32 phase = 12; + * @return whether the phase field is set + */ + public boolean hasPhase() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 phase = 12; * @return this */ public ChallengeBossPhaseSettleNotify clearPhase() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; phase = 0; return this; } /** - * optional uint32 phase = 14; + * optional uint32 phase = 12; * @return the phase */ public int getPhase() { @@ -291,17 +262,58 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional uint32 phase = 14; + * optional uint32 phase = 12; * @param value the phase to set * @return this */ public ChallengeBossPhaseSettleNotify setPhase(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; phase = value; return this; } /** + * optional uint32 score_two = 14; + * @return whether the scoreTwo field is set + */ + public boolean hasScoreTwo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 score_two = 14; + * @return this + */ + public ChallengeBossPhaseSettleNotify clearScoreTwo() { + bitField0_ &= ~0x00000020; + scoreTwo = 0; + return this; + } + + /** + * optional uint32 score_two = 14; + * @return the scoreTwo + */ + public int getScoreTwo() { + return scoreTwo; + } + + /** + * optional uint32 score_two = 14; + * @param value the scoreTwo to set + * @return this + */ + public ChallengeBossPhaseSettleNotify setScoreTwo(final int value) { + bitField0_ |= 0x00000020; + scoreTwo = value; + return this; + } + + /** + *
+     *  is_reward
+     * 
+ * * optional bool unkbool1 = 7; * @return whether the unkbool1 field is set */ @@ -310,6 +322,10 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** + *
+     *  is_reward
+     * 
+ * * optional bool unkbool1 = 7; * @return this */ @@ -320,6 +336,10 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** + *
+     *  is_reward
+     * 
+ * * optional bool unkbool1 = 7; * @return the unkbool1 */ @@ -328,6 +348,10 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** + *
+     *  is_reward
+     * 
+ * * optional bool unkbool1 = 7; * @param value the unkbool1 to set * @return this @@ -339,7 +363,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool is_win = 11; + * optional bool is_win = 10; * @return whether the isWin field is set */ public boolean hasIsWin() { @@ -347,7 +371,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool is_win = 11; + * optional bool is_win = 10; * @return this */ public ChallengeBossPhaseSettleNotify clearIsWin() { @@ -357,7 +381,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool is_win = 11; + * optional bool is_win = 10; * @return the isWin */ public boolean getIsWin() { @@ -365,7 +389,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool is_win = 11; + * optional bool is_win = 10; * @param value the isWin to set * @return this */ @@ -376,7 +400,11 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool unkbool2 = 15; + *
+     *  is_remaining_action
+     * 
+ * + * optional bool unkbool2 = 13; * @return whether the unkbool2 field is set */ public boolean hasUnkbool2() { @@ -384,7 +412,11 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool unkbool2 = 15; + *
+     *  is_remaining_action
+     * 
+ * + * optional bool unkbool2 = 13; * @return this */ public ChallengeBossPhaseSettleNotify clearUnkbool2() { @@ -394,7 +426,11 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool unkbool2 = 15; + *
+     *  is_remaining_action
+     * 
+ * + * optional bool unkbool2 = 13; * @return the unkbool2 */ public boolean getUnkbool2() { @@ -402,7 +438,11 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * optional bool unkbool2 = 15; + *
+     *  is_remaining_action
+     * 
+ * + * optional bool unkbool2 = 13; * @param value the unkbool2 to set * @return this */ @@ -413,39 +453,39 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } /** - * repeated .BattleTarget BIPEPADLEIA = 1; - * @return whether the bIPEPADLEIA field is set + * repeated .BattleTarget HJAALLNAFOO = 8; + * @return whether the hJAALLNAFOO field is set */ - public boolean hasBIPEPADLEIA() { + public boolean hasHJAALLNAFOO() { return (bitField0_ & 0x00000200) != 0; } /** - * repeated .BattleTarget BIPEPADLEIA = 1; + * repeated .BattleTarget HJAALLNAFOO = 8; * @return this */ - public ChallengeBossPhaseSettleNotify clearBIPEPADLEIA() { + public ChallengeBossPhaseSettleNotify clearHJAALLNAFOO() { bitField0_ &= ~0x00000200; - bIPEPADLEIA.clear(); + hJAALLNAFOO.clear(); return this; } /** - * repeated .BattleTarget BIPEPADLEIA = 1; + * repeated .BattleTarget HJAALLNAFOO = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBIPEPADLEIA()} if you want to modify it. + * Use {@link #getMutableHJAALLNAFOO()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBIPEPADLEIA() { - return bIPEPADLEIA; + public RepeatedMessage getHJAALLNAFOO() { + return hJAALLNAFOO; } /** - * repeated .BattleTarget BIPEPADLEIA = 1; + * repeated .BattleTarget HJAALLNAFOO = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -453,32 +493,32 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBIPEPADLEIA() { + public RepeatedMessage getMutableHJAALLNAFOO() { bitField0_ |= 0x00000200; - return bIPEPADLEIA; + return hJAALLNAFOO; } /** - * repeated .BattleTarget BIPEPADLEIA = 1; - * @param value the bIPEPADLEIA to add + * repeated .BattleTarget HJAALLNAFOO = 8; + * @param value the hJAALLNAFOO to add * @return this */ - public ChallengeBossPhaseSettleNotify addBIPEPADLEIA( + public ChallengeBossPhaseSettleNotify addHJAALLNAFOO( final BattleTargetOuterClass.BattleTarget value) { bitField0_ |= 0x00000200; - bIPEPADLEIA.add(value); + hJAALLNAFOO.add(value); return this; } /** - * repeated .BattleTarget BIPEPADLEIA = 1; - * @param values the bIPEPADLEIA to add + * repeated .BattleTarget HJAALLNAFOO = 8; + * @param values the hJAALLNAFOO to add * @return this */ - public ChallengeBossPhaseSettleNotify addAllBIPEPADLEIA( + public ChallengeBossPhaseSettleNotify addAllHJAALLNAFOO( final BattleTargetOuterClass.BattleTarget... values) { bitField0_ |= 0x00000200; - bIPEPADLEIA.addAll(values); + hJAALLNAFOO.addAll(values); return this; } @@ -487,16 +527,16 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - scoreTwo = other.scoreTwo; challengeScore = other.challengeScore; - stars = other.stars; - cOKFJJOLMDI = other.cOKFJJOLMDI; + dBDDGFJGGGB = other.dBDDGFJGGGB; challengeId = other.challengeId; + stars = other.stars; phase = other.phase; + scoreTwo = other.scoreTwo; unkbool1 = other.unkbool1; isWin = other.isWin; unkbool2 = other.unkbool2; - bIPEPADLEIA.copyFrom(other.bIPEPADLEIA); + hJAALLNAFOO.copyFrom(other.hJAALLNAFOO); } return this; } @@ -507,24 +547,24 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasScoreTwo()) { - setScoreTwo(other.scoreTwo); - } if (other.hasChallengeScore()) { setChallengeScore(other.challengeScore); } - if (other.hasStars()) { - setStars(other.stars); - } - if (other.hasCOKFJJOLMDI()) { - setCOKFJJOLMDI(other.cOKFJJOLMDI); + if (other.hasDBDDGFJGGGB()) { + setDBDDGFJGGGB(other.dBDDGFJGGGB); } if (other.hasChallengeId()) { setChallengeId(other.challengeId); } + if (other.hasStars()) { + setStars(other.stars); + } if (other.hasPhase()) { setPhase(other.phase); } + if (other.hasScoreTwo()) { + setScoreTwo(other.scoreTwo); + } if (other.hasUnkbool1()) { setUnkbool1(other.unkbool1); } @@ -534,8 +574,8 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { if (other.hasUnkbool2()) { setUnkbool2(other.unkbool2); } - if (other.hasBIPEPADLEIA()) { - getMutableBIPEPADLEIA().addAll(other.bIPEPADLEIA); + if (other.hasHJAALLNAFOO()) { + getMutableHJAALLNAFOO().addAll(other.hJAALLNAFOO); } return this; } @@ -547,16 +587,16 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - scoreTwo = 0; challengeScore = 0; - stars = 0; - cOKFJJOLMDI = 0; + dBDDGFJGGGB = 0; challengeId = 0; + stars = 0; phase = 0; + scoreTwo = 0; unkbool1 = false; isWin = false; unkbool2 = false; - bIPEPADLEIA.clear(); + hJAALLNAFOO.clear(); return this; } @@ -567,7 +607,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - bIPEPADLEIA.clearQuick(); + hJAALLNAFOO.clearQuick(); return this; } @@ -581,60 +621,60 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } ChallengeBossPhaseSettleNotify other = (ChallengeBossPhaseSettleNotify) o; return bitField0_ == other.bitField0_ - && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasChallengeScore() || challengeScore == other.challengeScore) - && (!hasStars() || stars == other.stars) - && (!hasCOKFJJOLMDI() || cOKFJJOLMDI == other.cOKFJJOLMDI) + && (!hasDBDDGFJGGGB() || dBDDGFJGGGB == other.dBDDGFJGGGB) && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasStars() || stars == other.stars) && (!hasPhase() || phase == other.phase) + && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasUnkbool1() || unkbool1 == other.unkbool1) && (!hasIsWin() || isWin == other.isWin) && (!hasUnkbool2() || unkbool2 == other.unkbool2) - && (!hasBIPEPADLEIA() || bIPEPADLEIA.equals(other.bIPEPADLEIA)); + && (!hasHJAALLNAFOO() || hJAALLNAFOO.equals(other.hJAALLNAFOO)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(scoreTwo); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); output.writeUInt32NoTag(challengeScore); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(stars); + output.writeUInt32NoTag(dBDDGFJGGGB); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(cOKFJJOLMDI); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(stars); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(challengeId); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(phase); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(phase); + output.writeUInt32NoTag(scoreTwo); } if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 56); output.writeBoolNoTag(unkbool1); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeBoolNoTag(isWin); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeBoolNoTag(unkbool2); } if ((bitField0_ & 0x00000200) != 0) { - for (int i = 0; i < bIPEPADLEIA.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(bIPEPADLEIA.get(i)); + for (int i = 0; i < hJAALLNAFOO.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(hJAALLNAFOO.get(i)); } } } @@ -643,23 +683,23 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeScore); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dBDDGFJGGGB); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cOKFJJOLMDI); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + } + if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(phase); } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); + } if ((bitField0_ & 0x00000040) != 0) { size += 2; } @@ -670,7 +710,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { size += 2; } if ((bitField0_ & 0x00000200) != 0) { - size += (1 * bIPEPADLEIA.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(bIPEPADLEIA); + size += (1 * hJAALLNAFOO.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(hJAALLNAFOO); } return size; } @@ -682,45 +722,45 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // scoreTwo - scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } case 24: { // challengeScore challengeScore = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { break; } } case 32: { + // dBDDGFJGGGB + dBDDGFJGGGB = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { // stars stars = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // cOKFJJOLMDI - cOKFJJOLMDI = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // challengeId - challengeId = input.readUInt32(); + // phase + phase = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 112) { @@ -728,8 +768,8 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } } case 112: { - // phase - phase = input.readUInt32(); + // scoreTwo + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 56) { @@ -741,31 +781,31 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { unkbool1 = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 88) { + if (tag != 80) { break; } } - case 88: { + case 80: { // isWin isWin = input.readBool(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 120) { + if (tag != 104) { break; } } - case 120: { + case 104: { // unkbool2 unkbool2 = input.readBool(); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 10) { + if (tag != 66) { break; } } - case 10: { - // bIPEPADLEIA - tag = input.readRepeatedMessage(bIPEPADLEIA, tag); + case 66: { + // hJAALLNAFOO + tag = input.readRepeatedMessage(hJAALLNAFOO, tag); bitField0_ |= 0x00000200; if (tag != 0) { break; @@ -789,23 +829,23 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.scoreTwo, scoreTwo); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.challengeScore, challengeScore); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.dBDDGFJGGGB, dBDDGFJGGGB); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.stars, stars); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.cOKFJJOLMDI, cOKFJJOLMDI); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.challengeId, challengeId); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.stars, stars); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.phase, phase); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.scoreTwo, scoreTwo); + } if ((bitField0_ & 0x00000040) != 0) { output.writeBool(FieldNames.unkbool1, unkbool1); } @@ -816,7 +856,7 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { output.writeBool(FieldNames.unkbool2, unkbool2); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.bIPEPADLEIA, bIPEPADLEIA); + output.writeRepeatedMessage(FieldNames.hJAALLNAFOO, hJAALLNAFOO); } output.endObject(); } @@ -828,11 +868,11 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -485512614: - case 2129303327: { - if (input.isAtField(FieldNames.scoreTwo)) { + case 591599599: + case 1517684662: { + if (input.isAtField(FieldNames.challengeScore)) { if (!input.trySkipNullValue()) { - scoreTwo = input.readUInt32(); + challengeScore = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -840,11 +880,10 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } break; } - case 591599599: - case 1517684662: { - if (input.isAtField(FieldNames.challengeScore)) { + case -1456612280: { + if (input.isAtField(FieldNames.dBDDGFJGGGB)) { if (!input.trySkipNullValue()) { - challengeScore = input.readUInt32(); + dBDDGFJGGGB = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -852,34 +891,23 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } break; } - case 109757537: { - if (input.isAtField(FieldNames.stars)) { - if (!input.trySkipNullValue()) { - stars = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -9162578: { - if (input.isAtField(FieldNames.cOKFJJOLMDI)) { - if (!input.trySkipNullValue()) { - cOKFJJOLMDI = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case -689112866: case 112359031: { if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { challengeId = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109757537: { + if (input.isAtField(FieldNames.stars)) { + if (!input.trySkipNullValue()) { + stars = input.readUInt32(); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -890,6 +918,18 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { if (input.isAtField(FieldNames.phase)) { if (!input.trySkipNullValue()) { phase = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -485512614: + case 2129303327: { + if (input.isAtField(FieldNames.scoreTwo)) { + if (!input.trySkipNullValue()) { + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -931,10 +971,10 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { } break; } - case 1538947912: { - if (input.isAtField(FieldNames.bIPEPADLEIA)) { + case -1114818127: { + if (input.isAtField(FieldNames.hJAALLNAFOO)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(bIPEPADLEIA); + input.readRepeatedMessage(hJAALLNAFOO); bitField0_ |= 0x00000200; } } else { @@ -997,25 +1037,25 @@ public final class ChallengeBossPhaseSettleNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); - static final FieldName challengeScore = FieldName.forField("challengeScore", "challenge_score"); - static final FieldName stars = FieldName.forField("stars"); - - static final FieldName cOKFJJOLMDI = FieldName.forField("COKFJJOLMDI"); + static final FieldName dBDDGFJGGGB = FieldName.forField("DBDDGFJGGGB"); static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + static final FieldName stars = FieldName.forField("stars"); + static final FieldName phase = FieldName.forField("phase"); + static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); + static final FieldName unkbool1 = FieldName.forField("unkbool1"); static final FieldName isWin = FieldName.forField("isWin", "is_win"); static final FieldName unkbool2 = FieldName.forField("unkbool2"); - static final FieldName bIPEPADLEIA = FieldName.forField("BIPEPADLEIA"); + static final FieldName hJAALLNAFOO = FieldName.forField("HJAALLNAFOO"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeBossSingleNodeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeBossSingleNodeInfoOuterClass.java index 50502c4..9dedbc9 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeBossSingleNodeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeBossSingleNodeInfoOuterClass.java @@ -19,22 +19,22 @@ public final class ChallengeBossSingleNodeInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 buff_id = 3; - */ - private int buffId; - - /** - * optional uint32 max_score = 14; + * optional uint32 max_score = 3; */ private int maxScore; /** - * optional bool is_win = 12; + * optional uint32 buff_id = 8; + */ + private int buffId; + + /** + * optional bool is_win = 4; */ private boolean isWin; /** - * optional bool has_been_challenged = 13; + * optional bool has_been_challenged = 7; */ private boolean hasBeenChallenged; @@ -49,62 +49,25 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional uint32 buff_id = 3; - * @return whether the buffId field is set + * optional uint32 max_score = 3; + * @return whether the maxScore field is set */ - public boolean hasBuffId() { + public boolean hasMaxScore() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 buff_id = 3; - * @return this - */ - public ChallengeBossSingleNodeInfo clearBuffId() { - bitField0_ &= ~0x00000001; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 3; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 3; - * @param value the buffId to set - * @return this - */ - public ChallengeBossSingleNodeInfo setBuffId(final int value) { - bitField0_ |= 0x00000001; - buffId = value; - return this; - } - - /** - * optional uint32 max_score = 14; - * @return whether the maxScore field is set - */ - public boolean hasMaxScore() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 max_score = 14; + * optional uint32 max_score = 3; * @return this */ public ChallengeBossSingleNodeInfo clearMaxScore() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; maxScore = 0; return this; } /** - * optional uint32 max_score = 14; + * optional uint32 max_score = 3; * @return the maxScore */ public int getMaxScore() { @@ -112,18 +75,55 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional uint32 max_score = 14; + * optional uint32 max_score = 3; * @param value the maxScore to set * @return this */ public ChallengeBossSingleNodeInfo setMaxScore(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; maxScore = value; return this; } /** - * optional bool is_win = 12; + * optional uint32 buff_id = 8; + * @return whether the buffId field is set + */ + public boolean hasBuffId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 buff_id = 8; + * @return this + */ + public ChallengeBossSingleNodeInfo clearBuffId() { + bitField0_ &= ~0x00000002; + buffId = 0; + return this; + } + + /** + * optional uint32 buff_id = 8; + * @return the buffId + */ + public int getBuffId() { + return buffId; + } + + /** + * optional uint32 buff_id = 8; + * @param value the buffId to set + * @return this + */ + public ChallengeBossSingleNodeInfo setBuffId(final int value) { + bitField0_ |= 0x00000002; + buffId = value; + return this; + } + + /** + * optional bool is_win = 4; * @return whether the isWin field is set */ public boolean hasIsWin() { @@ -131,7 +131,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool is_win = 12; + * optional bool is_win = 4; * @return this */ public ChallengeBossSingleNodeInfo clearIsWin() { @@ -141,7 +141,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool is_win = 12; + * optional bool is_win = 4; * @return the isWin */ public boolean getIsWin() { @@ -149,7 +149,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool is_win = 12; + * optional bool is_win = 4; * @param value the isWin to set * @return this */ @@ -160,7 +160,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool has_been_challenged = 13; + * optional bool has_been_challenged = 7; * @return whether the hasBeenChallenged field is set */ public boolean hasHasBeenChallenged() { @@ -168,7 +168,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool has_been_challenged = 13; + * optional bool has_been_challenged = 7; * @return this */ public ChallengeBossSingleNodeInfo clearHasBeenChallenged() { @@ -178,7 +178,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool has_been_challenged = 13; + * optional bool has_been_challenged = 7; * @return the hasBeenChallenged */ public boolean getHasBeenChallenged() { @@ -186,7 +186,7 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } /** - * optional bool has_been_challenged = 13; + * optional bool has_been_challenged = 7; * @param value the hasBeenChallenged to set * @return this */ @@ -201,8 +201,8 @@ public final class ChallengeBossSingleNodeInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buffId = other.buffId; maxScore = other.maxScore; + buffId = other.buffId; isWin = other.isWin; hasBeenChallenged = other.hasBeenChallenged; } @@ -215,12 +215,12 @@ public final class ChallengeBossSingleNodeInfoOuterClass { return this; } cachedSize = -1; - if (other.hasBuffId()) { - setBuffId(other.buffId); - } if (other.hasMaxScore()) { setMaxScore(other.maxScore); } + if (other.hasBuffId()) { + setBuffId(other.buffId); + } if (other.hasIsWin()) { setIsWin(other.isWin); } @@ -237,8 +237,8 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - buffId = 0; maxScore = 0; + buffId = 0; isWin = false; hasBeenChallenged = false; return this; @@ -264,8 +264,8 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } ChallengeBossSingleNodeInfo other = (ChallengeBossSingleNodeInfo) o; return bitField0_ == other.bitField0_ - && (!hasBuffId() || buffId == other.buffId) && (!hasMaxScore() || maxScore == other.maxScore) + && (!hasBuffId() || buffId == other.buffId) && (!hasIsWin() || isWin == other.isWin) && (!hasHasBeenChallenged() || hasBeenChallenged == other.hasBeenChallenged); } @@ -274,18 +274,18 @@ public final class ChallengeBossSingleNodeInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(buffId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); output.writeUInt32NoTag(maxScore); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(buffId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeBoolNoTag(isWin); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 56); output.writeBoolNoTag(hasBeenChallenged); } } @@ -294,10 +294,10 @@ public final class ChallengeBossSingleNodeInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxScore); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxScore); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -316,33 +316,33 @@ public final class ChallengeBossSingleNodeInfoOuterClass { while (true) { switch (tag) { case 24: { - // buffId - buffId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { // maxScore maxScore = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { + case 64: { + // buffId + buffId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { // isWin isWin = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 56) { break; } } - case 104: { + case 56: { // hasBeenChallenged hasBeenChallenged = input.readBool(); bitField0_ |= 0x00000008; @@ -369,10 +369,10 @@ public final class ChallengeBossSingleNodeInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.maxScore, maxScore); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.maxScore, maxScore); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.isWin, isWin); @@ -390,11 +390,11 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { + case 396519310: + case -234837001: { + if (input.isAtField(FieldNames.maxScore)) { if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); + maxScore = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -402,11 +402,11 @@ public final class ChallengeBossSingleNodeInfoOuterClass { } break; } - case 396519310: - case -234837001: { - if (input.isAtField(FieldNames.maxScore)) { + case -1378119474: + case 227990663: { + if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { - maxScore = input.readUInt32(); + buffId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -492,10 +492,10 @@ public final class ChallengeBossSingleNodeInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - static final FieldName maxScore = FieldName.forField("maxScore", "max_score"); + static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName isWin = FieldName.forField("isWin", "is_win"); static final FieldName hasBeenChallenged = FieldName.forField("hasBeenChallenged", "has_been_challenged"); diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeExtInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeExtInfoOuterClass.java index 5263290..f4343a5 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeExtInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeExtInfoOuterClass.java @@ -19,7 +19,7 @@ public final class ChallengeExtInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ChallengeBossInfo boss_info = 4; + * optional .ChallengeBossInfo boss_info = 11; */ private final ChallengeBossInfoOuterClass.ChallengeBossInfo bossInfo = ChallengeBossInfoOuterClass.ChallengeBossInfo.newInstance(); @@ -33,19 +33,8 @@ public final class ChallengeExtInfoOuterClass { return new ChallengeExtInfo(); } - public boolean hasChallengeExt() { - return (((bitField0_ & 0x00000001)) != 0); - } - - public ChallengeExtInfo clearChallengeExt() { - if (hasChallengeExt()) { - clearBossInfo(); - } - return this; - } - /** - * optional .ChallengeBossInfo boss_info = 4; + * optional .ChallengeBossInfo boss_info = 11; * @return whether the bossInfo field is set */ public boolean hasBossInfo() { @@ -53,7 +42,7 @@ public final class ChallengeExtInfoOuterClass { } /** - * optional .ChallengeBossInfo boss_info = 4; + * optional .ChallengeBossInfo boss_info = 11; * @return this */ public ChallengeExtInfo clearBossInfo() { @@ -63,7 +52,7 @@ public final class ChallengeExtInfoOuterClass { } /** - * optional .ChallengeBossInfo boss_info = 4; + * optional .ChallengeBossInfo boss_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -77,7 +66,7 @@ public final class ChallengeExtInfoOuterClass { } /** - * optional .ChallengeBossInfo boss_info = 4; + * optional .ChallengeBossInfo boss_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -91,7 +80,7 @@ public final class ChallengeExtInfoOuterClass { } /** - * optional .ChallengeBossInfo boss_info = 4; + * optional .ChallengeBossInfo boss_info = 11; * @param value the bossInfo to set * @return this */ @@ -161,7 +150,7 @@ public final class ChallengeExtInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 90); output.writeMessageNoTag(bossInfo); } } @@ -182,7 +171,7 @@ public final class ChallengeExtInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 90: { // bossInfo input.readMessage(bossInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java index 7b4c8b7..4ce916f 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeInfoOuterClass.java @@ -19,37 +19,37 @@ public final class ChallengeInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_id = 4; - */ - private int challengeId; - - /** - * optional uint32 score_two = 5; - */ - private int scoreTwo; - - /** - * optional uint32 round_count = 13; + * optional uint32 round_count = 1; */ private int roundCount; /** - * optional uint32 score = 14; + * optional uint32 score = 5; */ private int score; /** - * optional .ChallengeStatus status = 1; + * optional uint32 challenge_id = 9; */ - private int status; + private int challengeId; /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional uint32 score_two = 13; + */ + private int scoreTwo; + + /** + * optional .ExtraLineupType extra_lineup_type = 4; */ private int extraLineupType; /** - * optional .ChallengeStoryInfo ext_info = 7; + * optional .ChallengeStatus status = 8; + */ + private int status; + + /** + * optional .ChallengeStoryInfo ext_info = 2; */ private final ChallengeStoryInfoOuterClass.ChallengeStoryInfo extInfo = ChallengeStoryInfoOuterClass.ChallengeStoryInfo.newInstance(); @@ -64,99 +64,25 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 challenge_id = 4; - * @return whether the challengeId field is set + * optional uint32 round_count = 1; + * @return whether the roundCount field is set */ - public boolean hasChallengeId() { + public boolean hasRoundCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 challenge_id = 4; - * @return this - */ - public ChallengeInfo clearChallengeId() { - bitField0_ &= ~0x00000001; - challengeId = 0; - return this; - } - - /** - * optional uint32 challenge_id = 4; - * @return the challengeId - */ - public int getChallengeId() { - return challengeId; - } - - /** - * optional uint32 challenge_id = 4; - * @param value the challengeId to set - * @return this - */ - public ChallengeInfo setChallengeId(final int value) { - bitField0_ |= 0x00000001; - challengeId = value; - return this; - } - - /** - * optional uint32 score_two = 5; - * @return whether the scoreTwo field is set - */ - public boolean hasScoreTwo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 score_two = 5; - * @return this - */ - public ChallengeInfo clearScoreTwo() { - bitField0_ &= ~0x00000002; - scoreTwo = 0; - return this; - } - - /** - * optional uint32 score_two = 5; - * @return the scoreTwo - */ - public int getScoreTwo() { - return scoreTwo; - } - - /** - * optional uint32 score_two = 5; - * @param value the scoreTwo to set - * @return this - */ - public ChallengeInfo setScoreTwo(final int value) { - bitField0_ |= 0x00000002; - scoreTwo = value; - return this; - } - - /** - * optional uint32 round_count = 13; - * @return whether the roundCount field is set - */ - public boolean hasRoundCount() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 round_count = 13; + * optional uint32 round_count = 1; * @return this */ public ChallengeInfo clearRoundCount() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; roundCount = 0; return this; } /** - * optional uint32 round_count = 13; + * optional uint32 round_count = 1; * @return the roundCount */ public int getRoundCount() { @@ -164,36 +90,36 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 round_count = 13; + * optional uint32 round_count = 1; * @param value the roundCount to set * @return this */ public ChallengeInfo setRoundCount(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; roundCount = value; return this; } /** - * optional uint32 score = 14; + * optional uint32 score = 5; * @return whether the score field is set */ public boolean hasScore() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 score = 14; + * optional uint32 score = 5; * @return this */ public ChallengeInfo clearScore() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; score = 0; return this; } /** - * optional uint32 score = 14; + * optional uint32 score = 5; * @return the score */ public int getScore() { @@ -201,98 +127,110 @@ public final class ChallengeInfoOuterClass { } /** - * optional uint32 score = 14; + * optional uint32 score = 5; * @param value the score to set * @return this */ public ChallengeInfo setScore(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; score = value; return this; } /** - * optional .ChallengeStatus status = 1; - * @return whether the status field is set + * optional uint32 challenge_id = 9; + * @return whether the challengeId field is set */ - public boolean hasStatus() { + public boolean hasChallengeId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 challenge_id = 9; + * @return this + */ + public ChallengeInfo clearChallengeId() { + bitField0_ &= ~0x00000004; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 9; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 9; + * @param value the challengeId to set + * @return this + */ + public ChallengeInfo setChallengeId(final int value) { + bitField0_ |= 0x00000004; + challengeId = value; + return this; + } + + /** + * optional uint32 score_two = 13; + * @return whether the scoreTwo field is set + */ + public boolean hasScoreTwo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 score_two = 13; + * @return this + */ + public ChallengeInfo clearScoreTwo() { + bitField0_ &= ~0x00000008; + scoreTwo = 0; + return this; + } + + /** + * optional uint32 score_two = 13; + * @return the scoreTwo + */ + public int getScoreTwo() { + return scoreTwo; + } + + /** + * optional uint32 score_two = 13; + * @param value the scoreTwo to set + * @return this + */ + public ChallengeInfo setScoreTwo(final int value) { + bitField0_ |= 0x00000008; + scoreTwo = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 4; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .ChallengeStatus status = 1; - * @return this - */ - public ChallengeInfo clearStatus() { - bitField0_ &= ~0x00000010; - status = 0; - return this; - } - - /** - * optional .ChallengeStatus status = 1; - * @return the status - */ - public ChallengeStatusOuterClass.ChallengeStatus getStatus() { - return ChallengeStatusOuterClass.ChallengeStatus.forNumber(status); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link ChallengeInfo#getStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getStatusValue() { - return status; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link ChallengeStatusOuterClass.ChallengeStatus}. Setting an invalid value - * can cause {@link ChallengeInfo#getStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public ChallengeInfo setStatusValue(final int value) { - bitField0_ |= 0x00000010; - status = value; - return this; - } - - /** - * optional .ChallengeStatus status = 1; - * @param value the status to set - * @return this - */ - public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { - bitField0_ |= 0x00000010; - status = value.getNumber(); - return this; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 11; - * @return whether the extraLineupType field is set - */ - public boolean hasExtraLineupType() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 4; * @return this */ public ChallengeInfo clearExtraLineupType() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; extraLineupType = 0; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 4; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -319,24 +257,86 @@ public final class ChallengeInfoOuterClass { * @return this */ public ChallengeInfo setExtraLineupTypeValue(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; extraLineupType = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 4; * @param value the extraLineupType to set * @return this */ public ChallengeInfo setExtraLineupType(final ExtraLineupTypeOuterClass.ExtraLineupType value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; extraLineupType = value.getNumber(); return this; } /** - * optional .ChallengeStoryInfo ext_info = 7; + * optional .ChallengeStatus status = 8; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChallengeStatus status = 8; + * @return this + */ + public ChallengeInfo clearStatus() { + bitField0_ &= ~0x00000020; + status = 0; + return this; + } + + /** + * optional .ChallengeStatus status = 8; + * @return the status + */ + public ChallengeStatusOuterClass.ChallengeStatus getStatus() { + return ChallengeStatusOuterClass.ChallengeStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChallengeInfo#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ChallengeStatusOuterClass.ChallengeStatus}. Setting an invalid value + * can cause {@link ChallengeInfo#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChallengeInfo setStatusValue(final int value) { + bitField0_ |= 0x00000020; + status = value; + return this; + } + + /** + * optional .ChallengeStatus status = 8; + * @param value the status to set + * @return this + */ + public ChallengeInfo setStatus(final ChallengeStatusOuterClass.ChallengeStatus value) { + bitField0_ |= 0x00000020; + status = value.getNumber(); + return this; + } + + /** + * optional .ChallengeStoryInfo ext_info = 2; * @return whether the extInfo field is set */ public boolean hasExtInfo() { @@ -344,7 +344,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo ext_info = 7; + * optional .ChallengeStoryInfo ext_info = 2; * @return this */ public ChallengeInfo clearExtInfo() { @@ -354,7 +354,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo ext_info = 7; + * optional .ChallengeStoryInfo ext_info = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -368,7 +368,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo ext_info = 7; + * optional .ChallengeStoryInfo ext_info = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -382,7 +382,7 @@ public final class ChallengeInfoOuterClass { } /** - * optional .ChallengeStoryInfo ext_info = 7; + * optional .ChallengeStoryInfo ext_info = 2; * @param value the extInfo to set * @return this */ @@ -397,12 +397,12 @@ public final class ChallengeInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - challengeId = other.challengeId; - scoreTwo = other.scoreTwo; roundCount = other.roundCount; score = other.score; - status = other.status; + challengeId = other.challengeId; + scoreTwo = other.scoreTwo; extraLineupType = other.extraLineupType; + status = other.status; extInfo.copyFrom(other.extInfo); } return this; @@ -414,24 +414,24 @@ public final class ChallengeInfoOuterClass { return this; } cachedSize = -1; - if (other.hasChallengeId()) { - setChallengeId(other.challengeId); - } - if (other.hasScoreTwo()) { - setScoreTwo(other.scoreTwo); - } if (other.hasRoundCount()) { setRoundCount(other.roundCount); } if (other.hasScore()) { setScore(other.score); } - if (other.hasStatus()) { - setStatusValue(other.status); + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } + if (other.hasScoreTwo()) { + setScoreTwo(other.scoreTwo); } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } + if (other.hasStatus()) { + setStatusValue(other.status); + } if (other.hasExtInfo()) { getMutableExtInfo().mergeFrom(other.extInfo); } @@ -445,12 +445,12 @@ public final class ChallengeInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - challengeId = 0; - scoreTwo = 0; roundCount = 0; score = 0; - status = 0; + challengeId = 0; + scoreTwo = 0; extraLineupType = 0; + status = 0; extInfo.clear(); return this; } @@ -476,43 +476,43 @@ public final class ChallengeInfoOuterClass { } ChallengeInfo other = (ChallengeInfo) o; return bitField0_ == other.bitField0_ - && (!hasChallengeId() || challengeId == other.challengeId) - && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasRoundCount() || roundCount == other.roundCount) && (!hasScore() || score == other.score) - && (!hasStatus() || status == other.status) + && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasStatus() || status == other.status) && (!hasExtInfo() || extInfo.equals(other.extInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(challengeId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(roundCount); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(scoreTwo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(roundCount); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); output.writeUInt32NoTag(score); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 8); - output.writeEnumNoTag(status); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(challengeId); } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 88); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(scoreTwo); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 32); output.writeEnumNoTag(extraLineupType); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 64); + output.writeEnumNoTag(status); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 18); output.writeMessageNoTag(extInfo); } } @@ -521,22 +521,22 @@ public final class ChallengeInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(score); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); + } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(extInfo); @@ -551,9 +551,9 @@ public final class ChallengeInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // challengeId - challengeId = input.readUInt32(); + case 8: { + // roundCount + roundCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 40) { @@ -561,57 +561,57 @@ public final class ChallengeInfoOuterClass { } } case 40: { - // scoreTwo - scoreTwo = input.readUInt32(); + // score + score = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // roundCount - roundCount = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // score - score = input.readUInt32(); + // scoreTwo + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 8) { + if (tag != 32) { break; } } - case 8: { - // status - final int value = input.readInt32(); - if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) { - status = value; - bitField0_ |= 0x00000010; - } - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 32: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { extraLineupType = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 58) { + if (tag != 64) { break; } } - case 58: { + case 64: { + // status + final int value = input.readInt32(); + if (ChallengeStatusOuterClass.ChallengeStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000020; + } + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { // extInfo input.readMessage(extInfo); bitField0_ |= 0x00000040; @@ -638,22 +638,22 @@ public final class ChallengeInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.challengeId, challengeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.scoreTwo, scoreTwo); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.roundCount, roundCount); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.score, score); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.challengeId, challengeId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.scoreTwo, scoreTwo); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + output.writeEnum(FieldNames.status, status, ChallengeStatusOuterClass.ChallengeStatus.converter()); } if ((bitField0_ & 0x00000040) != 0) { output.writeMessage(FieldNames.extInfo, extInfo); @@ -668,12 +668,35 @@ public final class ChallengeInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -171935711: + case -244677858: { + if (input.isAtField(FieldNames.roundCount)) { + if (!input.trySkipNullValue()) { + roundCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109264530: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -689112866: case 112359031: { if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { challengeId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -685,29 +708,6 @@ public final class ChallengeInfoOuterClass { if (input.isAtField(FieldNames.scoreTwo)) { if (!input.trySkipNullValue()) { scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -171935711: - case -244677858: { - if (input.isAtField(FieldNames.roundCount)) { - if (!input.trySkipNullValue()) { - roundCount = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109264530: { - if (input.isAtField(FieldNames.score)) { - if (!input.trySkipNullValue()) { - score = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -715,22 +715,6 @@ public final class ChallengeInfoOuterClass { } break; } - case -892481550: { - if (input.isAtField(FieldNames.status)) { - if (!input.trySkipNullValue()) { - final ChallengeStatusOuterClass.ChallengeStatus value = input.readEnum(ChallengeStatusOuterClass.ChallengeStatus.converter()); - if (value != null) { - status = value.getNumber(); - bitField0_ |= 0x00000010; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } case -468135527: case -1144475077: { if (input.isAtField(FieldNames.extraLineupType)) { @@ -738,6 +722,22 @@ public final class ChallengeInfoOuterClass { final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); if (value != null) { extraLineupType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final ChallengeStatusOuterClass.ChallengeStatus value = input.readEnum(ChallengeStatusOuterClass.ChallengeStatus.converter()); + if (value != null) { + status = value.getNumber(); bitField0_ |= 0x00000020; } else { input.skipUnknownEnumValue(); @@ -812,18 +812,18 @@ public final class ChallengeInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); - - static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); - static final FieldName roundCount = FieldName.forField("roundCount", "round_count"); static final FieldName score = FieldName.forField("score"); - static final FieldName status = FieldName.forField("status"); + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + + static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName status = FieldName.forField("status"); + static final FieldName extInfo = FieldName.forField("extInfo", "ext_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java index 28b113f..0ef5c4e 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeLineupNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class ChallengeLineupNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ExtraLineupType extra_lineup_type = 2; + * optional .ExtraLineupType extra_lineup_type = 15; */ private int extraLineupType; @@ -34,7 +34,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 2; + * optional .ExtraLineupType extra_lineup_type = 15; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -42,7 +42,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 2; + * optional .ExtraLineupType extra_lineup_type = 15; * @return this */ public ChallengeLineupNotify clearExtraLineupType() { @@ -52,7 +52,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 2; + * optional .ExtraLineupType extra_lineup_type = 15; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -85,7 +85,7 @@ public final class ChallengeLineupNotifyOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 2; + * optional .ExtraLineupType extra_lineup_type = 15; * @param value the extraLineupType to set * @return this */ @@ -155,7 +155,7 @@ public final class ChallengeLineupNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 120); output.writeEnumNoTag(extraLineupType); } } @@ -176,7 +176,7 @@ public final class ChallengeLineupNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 120: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java index 865fd41..306a1ae 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeOuterClass.java @@ -19,9 +19,9 @@ public final class ChallengeOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stars = 1; + * optional uint32 score_two = 1; */ - private int stars; + private int scoreTwo; /** * optional uint32 taken_reward = 6; @@ -29,17 +29,22 @@ public final class ChallengeOuterClass { private int takenReward; /** - * optional uint32 score = 7; + * optional uint32 score = 8; */ private int score; /** - * optional uint32 challenge_id = 10; + * optional uint32 challenge_id = 9; */ private int challengeId; /** - * optional .ChallengeExtInfo ext_info = 5; + * optional uint32 stars = 14; + */ + private int stars; + + /** + * optional .ChallengeExtInfo ext_info = 10; */ private final ChallengeExtInfoOuterClass.ChallengeExtInfo extInfo = ChallengeExtInfoOuterClass.ChallengeExtInfo.newInstance(); @@ -54,39 +59,39 @@ public final class ChallengeOuterClass { } /** - * optional uint32 stars = 1; - * @return whether the stars field is set + * optional uint32 score_two = 1; + * @return whether the scoreTwo field is set */ - public boolean hasStars() { + public boolean hasScoreTwo() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 stars = 1; + * optional uint32 score_two = 1; * @return this */ - public Challenge clearStars() { + public Challenge clearScoreTwo() { bitField0_ &= ~0x00000001; - stars = 0; + scoreTwo = 0; return this; } /** - * optional uint32 stars = 1; - * @return the stars + * optional uint32 score_two = 1; + * @return the scoreTwo */ - public int getStars() { - return stars; + public int getScoreTwo() { + return scoreTwo; } /** - * optional uint32 stars = 1; - * @param value the stars to set + * optional uint32 score_two = 1; + * @param value the scoreTwo to set * @return this */ - public Challenge setStars(final int value) { + public Challenge setScoreTwo(final int value) { bitField0_ |= 0x00000001; - stars = value; + scoreTwo = value; return this; } @@ -128,7 +133,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 score = 7; + * optional uint32 score = 8; * @return whether the score field is set */ public boolean hasScore() { @@ -136,7 +141,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 score = 7; + * optional uint32 score = 8; * @return this */ public Challenge clearScore() { @@ -146,7 +151,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 score = 7; + * optional uint32 score = 8; * @return the score */ public int getScore() { @@ -154,7 +159,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 score = 7; + * optional uint32 score = 8; * @param value the score to set * @return this */ @@ -165,7 +170,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 challenge_id = 10; + * optional uint32 challenge_id = 9; * @return whether the challengeId field is set */ public boolean hasChallengeId() { @@ -173,7 +178,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 challenge_id = 10; + * optional uint32 challenge_id = 9; * @return this */ public Challenge clearChallengeId() { @@ -183,7 +188,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 challenge_id = 10; + * optional uint32 challenge_id = 9; * @return the challengeId */ public int getChallengeId() { @@ -191,7 +196,7 @@ public final class ChallengeOuterClass { } /** - * optional uint32 challenge_id = 10; + * optional uint32 challenge_id = 9; * @param value the challengeId to set * @return this */ @@ -202,25 +207,62 @@ public final class ChallengeOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 5; - * @return whether the extInfo field is set + * optional uint32 stars = 14; + * @return whether the stars field is set */ - public boolean hasExtInfo() { + public boolean hasStars() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .ChallengeExtInfo ext_info = 5; + * optional uint32 stars = 14; + * @return this + */ + public Challenge clearStars() { + bitField0_ &= ~0x00000010; + stars = 0; + return this; + } + + /** + * optional uint32 stars = 14; + * @return the stars + */ + public int getStars() { + return stars; + } + + /** + * optional uint32 stars = 14; + * @param value the stars to set + * @return this + */ + public Challenge setStars(final int value) { + bitField0_ |= 0x00000010; + stars = value; + return this; + } + + /** + * optional .ChallengeExtInfo ext_info = 10; + * @return whether the extInfo field is set + */ + public boolean hasExtInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ChallengeExtInfo ext_info = 10; * @return this */ public Challenge clearExtInfo() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; extInfo.clear(); return this; } /** - * optional .ChallengeExtInfo ext_info = 5; + * optional .ChallengeExtInfo ext_info = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -234,7 +276,7 @@ public final class ChallengeOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 5; + * optional .ChallengeExtInfo ext_info = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -243,17 +285,17 @@ public final class ChallengeOuterClass { * @return internal storage object for modifications */ public ChallengeExtInfoOuterClass.ChallengeExtInfo getMutableExtInfo() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return extInfo; } /** - * optional .ChallengeExtInfo ext_info = 5; + * optional .ChallengeExtInfo ext_info = 10; * @param value the extInfo to set * @return this */ public Challenge setExtInfo(final ChallengeExtInfoOuterClass.ChallengeExtInfo value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; extInfo.copyFrom(value); return this; } @@ -263,10 +305,11 @@ public final class ChallengeOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - stars = other.stars; + scoreTwo = other.scoreTwo; takenReward = other.takenReward; score = other.score; challengeId = other.challengeId; + stars = other.stars; extInfo.copyFrom(other.extInfo); } return this; @@ -278,8 +321,8 @@ public final class ChallengeOuterClass { return this; } cachedSize = -1; - if (other.hasStars()) { - setStars(other.stars); + if (other.hasScoreTwo()) { + setScoreTwo(other.scoreTwo); } if (other.hasTakenReward()) { setTakenReward(other.takenReward); @@ -290,6 +333,9 @@ public final class ChallengeOuterClass { if (other.hasChallengeId()) { setChallengeId(other.challengeId); } + if (other.hasStars()) { + setStars(other.stars); + } if (other.hasExtInfo()) { getMutableExtInfo().mergeFrom(other.extInfo); } @@ -303,10 +349,11 @@ public final class ChallengeOuterClass { } cachedSize = -1; bitField0_ = 0; - stars = 0; + scoreTwo = 0; takenReward = 0; score = 0; challengeId = 0; + stars = 0; extInfo.clear(); return this; } @@ -332,10 +379,11 @@ public final class ChallengeOuterClass { } Challenge other = (Challenge) o; return bitField0_ == other.bitField0_ - && (!hasStars() || stars == other.stars) + && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasTakenReward() || takenReward == other.takenReward) && (!hasScore() || score == other.score) && (!hasChallengeId() || challengeId == other.challengeId) + && (!hasStars() || stars == other.stars) && (!hasExtInfo() || extInfo.equals(other.extInfo)); } @@ -343,22 +391,26 @@ public final class ChallengeOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(stars); + output.writeUInt32NoTag(scoreTwo); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 48); output.writeUInt32NoTag(takenReward); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(score); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(stars); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 82); output.writeMessageNoTag(extInfo); } } @@ -367,7 +419,7 @@ public final class ChallengeOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(takenReward); @@ -379,6 +431,9 @@ public final class ChallengeOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + } + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(extInfo); } return size; @@ -392,8 +447,8 @@ public final class ChallengeOuterClass { while (true) { switch (tag) { case 8: { - // stars - stars = input.readUInt32(); + // scoreTwo + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 48) { @@ -405,32 +460,41 @@ public final class ChallengeOuterClass { takenReward = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { + case 64: { // score score = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 72) { break; } } - case 80: { + case 72: { // challengeId challengeId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 42) { + if (tag != 112) { break; } } - case 42: { + case 112: { + // stars + stars = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { // extInfo input.readMessage(extInfo); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; tag = input.readTag(); if (tag != 0) { break; @@ -454,7 +518,7 @@ public final class ChallengeOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.stars, stars); + output.writeUInt32(FieldNames.scoreTwo, scoreTwo); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.takenReward, takenReward); @@ -466,6 +530,9 @@ public final class ChallengeOuterClass { output.writeUInt32(FieldNames.challengeId, challengeId); } if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.stars, stars); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeMessage(FieldNames.extInfo, extInfo); } output.endObject(); @@ -478,10 +545,11 @@ public final class ChallengeOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109757537: { - if (input.isAtField(FieldNames.stars)) { + case -485512614: + case 2129303327: { + if (input.isAtField(FieldNames.scoreTwo)) { if (!input.trySkipNullValue()) { - stars = input.readUInt32(); + scoreTwo = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -524,12 +592,23 @@ public final class ChallengeOuterClass { } break; } + case 109757537: { + if (input.isAtField(FieldNames.stars)) { + if (!input.trySkipNullValue()) { + stars = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case -1306498449: case -1826570228: { if (input.isAtField(FieldNames.extInfo)) { if (!input.trySkipNullValue()) { input.readMessage(extInfo); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -588,7 +667,7 @@ public final class ChallengeOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName stars = FieldName.forField("stars"); + static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); static final FieldName takenReward = FieldName.forField("takenReward", "taken_reward"); @@ -596,6 +675,8 @@ public final class ChallengeOuterClass { static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + static final FieldName stars = FieldName.forField("stars"); + static final FieldName extInfo = FieldName.forField("extInfo", "ext_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengePeakGroupDataUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengePeakGroupDataUpdateScNotifyOuterClass.java new file mode 100644 index 0000000..9485836 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengePeakGroupDataUpdateScNotifyOuterClass.java @@ -0,0 +1,288 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class ChallengePeakGroupDataUpdateScNotifyOuterClass { + /** + * Protobuf type {@code ChallengePeakGroupDataUpdateScNotify} + */ + public static final class ChallengePeakGroupDataUpdateScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .ChallengePeakGroupInfo challenge_peak_group = 2; + */ + private final ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo challengePeakGroup = ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo.newInstance(); + + private ChallengePeakGroupDataUpdateScNotify() { + } + + /** + * @return a new empty instance of {@code ChallengePeakGroupDataUpdateScNotify} + */ + public static ChallengePeakGroupDataUpdateScNotify newInstance() { + return new ChallengePeakGroupDataUpdateScNotify(); + } + + /** + * optional .ChallengePeakGroupInfo challenge_peak_group = 2; + * @return whether the challengePeakGroup field is set + */ + public boolean hasChallengePeakGroup() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .ChallengePeakGroupInfo challenge_peak_group = 2; + * @return this + */ + public ChallengePeakGroupDataUpdateScNotify clearChallengePeakGroup() { + bitField0_ &= ~0x00000001; + challengePeakGroup.clear(); + return this; + } + + /** + * optional .ChallengePeakGroupInfo challenge_peak_group = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengePeakGroup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo getChallengePeakGroup() { + return challengePeakGroup; + } + + /** + * optional .ChallengePeakGroupInfo challenge_peak_group = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo getMutableChallengePeakGroup() { + bitField0_ |= 0x00000001; + return challengePeakGroup; + } + + /** + * optional .ChallengePeakGroupInfo challenge_peak_group = 2; + * @param value the challengePeakGroup to set + * @return this + */ + public ChallengePeakGroupDataUpdateScNotify setChallengePeakGroup( + final ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo value) { + bitField0_ |= 0x00000001; + challengePeakGroup.copyFrom(value); + return this; + } + + @Override + public ChallengePeakGroupDataUpdateScNotify copyFrom( + final ChallengePeakGroupDataUpdateScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakGroup.copyFrom(other.challengePeakGroup); + } + return this; + } + + @Override + public ChallengePeakGroupDataUpdateScNotify mergeFrom( + final ChallengePeakGroupDataUpdateScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakGroup()) { + getMutableChallengePeakGroup().mergeFrom(other.challengePeakGroup); + } + return this; + } + + @Override + public ChallengePeakGroupDataUpdateScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakGroup.clear(); + return this; + } + + @Override + public ChallengePeakGroupDataUpdateScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakGroup.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChallengePeakGroupDataUpdateScNotify)) { + return false; + } + ChallengePeakGroupDataUpdateScNotify other = (ChallengePeakGroupDataUpdateScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakGroup() || challengePeakGroup.equals(other.challengePeakGroup)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(challengePeakGroup); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(challengePeakGroup); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengePeakGroupDataUpdateScNotify mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // challengePeakGroup + input.readMessage(challengePeakGroup); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.challengePeakGroup, challengePeakGroup); + } + output.endObject(); + } + + @Override + public ChallengePeakGroupDataUpdateScNotify mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1006775229: + case 243053691: { + if (input.isAtField(FieldNames.challengePeakGroup)) { + if (!input.trySkipNullValue()) { + input.readMessage(challengePeakGroup); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengePeakGroupDataUpdateScNotify clone() { + return new ChallengePeakGroupDataUpdateScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengePeakGroupDataUpdateScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengePeakGroupDataUpdateScNotify(), data).checkInitialized(); + } + + public static ChallengePeakGroupDataUpdateScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChallengePeakGroupDataUpdateScNotify(), input).checkInitialized(); + } + + public static ChallengePeakGroupDataUpdateScNotify parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChallengePeakGroupDataUpdateScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengePeakGroupDataUpdateScNotify messages + */ + public static MessageFactory getFactory() { + return ChallengePeakGroupDataUpdateScNotifyFactory.INSTANCE; + } + + private enum ChallengePeakGroupDataUpdateScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengePeakGroupDataUpdateScNotify create() { + return ChallengePeakGroupDataUpdateScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakGroup = FieldName.forField("challengePeakGroup", "challenge_peak_group"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengePeakGroupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengePeakGroupInfoOuterClass.java new file mode 100644 index 0000000..2cfefe1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengePeakGroupInfoOuterClass.java @@ -0,0 +1,801 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ChallengePeakGroupInfoOuterClass { + /** + *
+   *  IIDGPEJPBMA
+   * 
+ * + * Protobuf type {@code ChallengePeakGroupInfo} + */ + public static final class ChallengePeakGroupInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_peak_group_id = 2; + */ + private int challengePeakGroupId; + + /** + *
+     * KHBFACGBPEI BEHFPNPALEJ = 5;
+     * FCPEKKEEKFI PLJLPOHJHEE = 11;
+     * 
+ * + * optional uint32 KEEKPJHCMFN = 3; + */ + private int kEEKPJHCMFN; + + /** + * optional uint32 KKAGEMJCIOC = 14; + */ + private int kKAGEMJCIOC; + + /** + * optional bool JPKKFEJLOJN = 10; + */ + private boolean jPKKFEJLOJN; + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + */ + private final RepeatedInt gCCENBCIINL = RepeatedInt.newEmptyInstance(); + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + */ + private final RepeatedMessage challengePeakLevelList = RepeatedMessage.newEmptyInstance(ChallengePeakLevelInfoOuterClass.ChallengePeakLevelInfo.getFactory()); + + private ChallengePeakGroupInfo() { + } + + /** + *
+     *  IIDGPEJPBMA
+     * 
+ * + * @return a new empty instance of {@code ChallengePeakGroupInfo} + */ + public static ChallengePeakGroupInfo newInstance() { + return new ChallengePeakGroupInfo(); + } + + /** + * optional uint32 challenge_peak_group_id = 2; + * @return whether the challengePeakGroupId field is set + */ + public boolean hasChallengePeakGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_peak_group_id = 2; + * @return this + */ + public ChallengePeakGroupInfo clearChallengePeakGroupId() { + bitField0_ &= ~0x00000001; + challengePeakGroupId = 0; + return this; + } + + /** + * optional uint32 challenge_peak_group_id = 2; + * @return the challengePeakGroupId + */ + public int getChallengePeakGroupId() { + return challengePeakGroupId; + } + + /** + * optional uint32 challenge_peak_group_id = 2; + * @param value the challengePeakGroupId to set + * @return this + */ + public ChallengePeakGroupInfo setChallengePeakGroupId(final int value) { + bitField0_ |= 0x00000001; + challengePeakGroupId = value; + return this; + } + + /** + *
+     * KHBFACGBPEI BEHFPNPALEJ = 5;
+     * FCPEKKEEKFI PLJLPOHJHEE = 11;
+     * 
+ * + * optional uint32 KEEKPJHCMFN = 3; + * @return whether the kEEKPJHCMFN field is set + */ + public boolean hasKEEKPJHCMFN() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     * KHBFACGBPEI BEHFPNPALEJ = 5;
+     * FCPEKKEEKFI PLJLPOHJHEE = 11;
+     * 
+ * + * optional uint32 KEEKPJHCMFN = 3; + * @return this + */ + public ChallengePeakGroupInfo clearKEEKPJHCMFN() { + bitField0_ &= ~0x00000002; + kEEKPJHCMFN = 0; + return this; + } + + /** + *
+     * KHBFACGBPEI BEHFPNPALEJ = 5;
+     * FCPEKKEEKFI PLJLPOHJHEE = 11;
+     * 
+ * + * optional uint32 KEEKPJHCMFN = 3; + * @return the kEEKPJHCMFN + */ + public int getKEEKPJHCMFN() { + return kEEKPJHCMFN; + } + + /** + *
+     * KHBFACGBPEI BEHFPNPALEJ = 5;
+     * FCPEKKEEKFI PLJLPOHJHEE = 11;
+     * 
+ * + * optional uint32 KEEKPJHCMFN = 3; + * @param value the kEEKPJHCMFN to set + * @return this + */ + public ChallengePeakGroupInfo setKEEKPJHCMFN(final int value) { + bitField0_ |= 0x00000002; + kEEKPJHCMFN = value; + return this; + } + + /** + * optional uint32 KKAGEMJCIOC = 14; + * @return whether the kKAGEMJCIOC field is set + */ + public boolean hasKKAGEMJCIOC() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 KKAGEMJCIOC = 14; + * @return this + */ + public ChallengePeakGroupInfo clearKKAGEMJCIOC() { + bitField0_ &= ~0x00000004; + kKAGEMJCIOC = 0; + return this; + } + + /** + * optional uint32 KKAGEMJCIOC = 14; + * @return the kKAGEMJCIOC + */ + public int getKKAGEMJCIOC() { + return kKAGEMJCIOC; + } + + /** + * optional uint32 KKAGEMJCIOC = 14; + * @param value the kKAGEMJCIOC to set + * @return this + */ + public ChallengePeakGroupInfo setKKAGEMJCIOC(final int value) { + bitField0_ |= 0x00000004; + kKAGEMJCIOC = value; + return this; + } + + /** + * optional bool JPKKFEJLOJN = 10; + * @return whether the jPKKFEJLOJN field is set + */ + public boolean hasJPKKFEJLOJN() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool JPKKFEJLOJN = 10; + * @return this + */ + public ChallengePeakGroupInfo clearJPKKFEJLOJN() { + bitField0_ &= ~0x00000008; + jPKKFEJLOJN = false; + return this; + } + + /** + * optional bool JPKKFEJLOJN = 10; + * @return the jPKKFEJLOJN + */ + public boolean getJPKKFEJLOJN() { + return jPKKFEJLOJN; + } + + /** + * optional bool JPKKFEJLOJN = 10; + * @param value the jPKKFEJLOJN to set + * @return this + */ + public ChallengePeakGroupInfo setJPKKFEJLOJN(final boolean value) { + bitField0_ |= 0x00000008; + jPKKFEJLOJN = value; + return this; + } + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + * @return whether the gCCENBCIINL field is set + */ + public boolean hasGCCENBCIINL() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + * @return this + */ + public ChallengePeakGroupInfo clearGCCENBCIINL() { + bitField0_ &= ~0x00000010; + gCCENBCIINL.clear(); + return this; + } + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGCCENBCIINL()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getGCCENBCIINL() { + return gCCENBCIINL; + } + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableGCCENBCIINL() { + bitField0_ |= 0x00000010; + return gCCENBCIINL; + } + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + * @param value the gCCENBCIINL to add + * @return this + */ + public ChallengePeakGroupInfo addGCCENBCIINL(final int value) { + bitField0_ |= 0x00000010; + gCCENBCIINL.add(value); + return this; + } + + /** + *
+     * JIMPKKHFLA KJNMLJJMKGO = 4;
+     * 
+ * + * repeated uint32 GCCENBCIINL = 13; + * @param values the gCCENBCIINL to add + * @return this + */ + public ChallengePeakGroupInfo addAllGCCENBCIINL(final int... values) { + bitField0_ |= 0x00000010; + gCCENBCIINL.addAll(values); + return this; + } + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + * @return whether the challengePeakLevelList field is set + */ + public boolean hasChallengePeakLevelList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + * @return this + */ + public ChallengePeakGroupInfo clearChallengePeakLevelList() { + bitField0_ &= ~0x00000020; + challengePeakLevelList.clear(); + return this; + } + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengePeakLevelList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChallengePeakLevelList( + ) { + return challengePeakLevelList; + } + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableChallengePeakLevelList( + ) { + bitField0_ |= 0x00000020; + return challengePeakLevelList; + } + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + * @param value the challengePeakLevelList to add + * @return this + */ + public ChallengePeakGroupInfo addChallengePeakLevelList( + final ChallengePeakLevelInfoOuterClass.ChallengePeakLevelInfo value) { + bitField0_ |= 0x00000020; + challengePeakLevelList.add(value); + return this; + } + + /** + * repeated .ChallengePeakLevelInfo challenge_peak_level_list = 6; + * @param values the challengePeakLevelList to add + * @return this + */ + public ChallengePeakGroupInfo addAllChallengePeakLevelList( + final ChallengePeakLevelInfoOuterClass.ChallengePeakLevelInfo... values) { + bitField0_ |= 0x00000020; + challengePeakLevelList.addAll(values); + return this; + } + + @Override + public ChallengePeakGroupInfo copyFrom(final ChallengePeakGroupInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakGroupId = other.challengePeakGroupId; + kEEKPJHCMFN = other.kEEKPJHCMFN; + kKAGEMJCIOC = other.kKAGEMJCIOC; + jPKKFEJLOJN = other.jPKKFEJLOJN; + gCCENBCIINL.copyFrom(other.gCCENBCIINL); + challengePeakLevelList.copyFrom(other.challengePeakLevelList); + } + return this; + } + + @Override + public ChallengePeakGroupInfo mergeFrom(final ChallengePeakGroupInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakGroupId()) { + setChallengePeakGroupId(other.challengePeakGroupId); + } + if (other.hasKEEKPJHCMFN()) { + setKEEKPJHCMFN(other.kEEKPJHCMFN); + } + if (other.hasKKAGEMJCIOC()) { + setKKAGEMJCIOC(other.kKAGEMJCIOC); + } + if (other.hasJPKKFEJLOJN()) { + setJPKKFEJLOJN(other.jPKKFEJLOJN); + } + if (other.hasGCCENBCIINL()) { + getMutableGCCENBCIINL().addAll(other.gCCENBCIINL); + } + if (other.hasChallengePeakLevelList()) { + getMutableChallengePeakLevelList().addAll(other.challengePeakLevelList); + } + return this; + } + + @Override + public ChallengePeakGroupInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakGroupId = 0; + kEEKPJHCMFN = 0; + kKAGEMJCIOC = 0; + jPKKFEJLOJN = false; + gCCENBCIINL.clear(); + challengePeakLevelList.clear(); + return this; + } + + @Override + public ChallengePeakGroupInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + gCCENBCIINL.clear(); + challengePeakLevelList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChallengePeakGroupInfo)) { + return false; + } + ChallengePeakGroupInfo other = (ChallengePeakGroupInfo) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakGroupId() || challengePeakGroupId == other.challengePeakGroupId) + && (!hasKEEKPJHCMFN() || kEEKPJHCMFN == other.kEEKPJHCMFN) + && (!hasKKAGEMJCIOC() || kKAGEMJCIOC == other.kKAGEMJCIOC) + && (!hasJPKKFEJLOJN() || jPKKFEJLOJN == other.jPKKFEJLOJN) + && (!hasGCCENBCIINL() || gCCENBCIINL.equals(other.gCCENBCIINL)) + && (!hasChallengePeakLevelList() || challengePeakLevelList.equals(other.challengePeakLevelList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(challengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(kEEKPJHCMFN); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(kKAGEMJCIOC); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeBoolNoTag(jPKKFEJLOJN); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < gCCENBCIINL.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(gCCENBCIINL.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < challengePeakLevelList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(challengePeakLevelList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kEEKPJHCMFN); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kKAGEMJCIOC); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * gCCENBCIINL.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(gCCENBCIINL); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * challengePeakLevelList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengePeakLevelList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengePeakGroupInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // challengePeakGroupId + challengePeakGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // kEEKPJHCMFN + kEEKPJHCMFN = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // kKAGEMJCIOC + kKAGEMJCIOC = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // jPKKFEJLOJN + jPKKFEJLOJN = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // gCCENBCIINL [packed=true] + input.readPackedUInt32(gCCENBCIINL, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // challengePeakLevelList + tag = input.readRepeatedMessage(challengePeakLevelList, tag); + bitField0_ |= 0x00000020; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 104: { + // gCCENBCIINL [packed=false] + tag = input.readRepeatedUInt32(gCCENBCIINL, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengePeakGroupId, challengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.kEEKPJHCMFN, kEEKPJHCMFN); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.kKAGEMJCIOC, kKAGEMJCIOC); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.jPKKFEJLOJN, jPKKFEJLOJN); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.gCCENBCIINL, gCCENBCIINL); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.challengePeakLevelList, challengePeakLevelList); + } + output.endObject(); + } + + @Override + public ChallengePeakGroupInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1143355832: + case -502257825: { + if (input.isAtField(FieldNames.challengePeakGroupId)) { + if (!input.trySkipNullValue()) { + challengePeakGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -427472448: { + if (input.isAtField(FieldNames.kEEKPJHCMFN)) { + if (!input.trySkipNullValue()) { + kEEKPJHCMFN = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1862115350: { + if (input.isAtField(FieldNames.kKAGEMJCIOC)) { + if (!input.trySkipNullValue()) { + kKAGEMJCIOC = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 821874700: { + if (input.isAtField(FieldNames.jPKKFEJLOJN)) { + if (!input.trySkipNullValue()) { + jPKKFEJLOJN = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1697076113: { + if (input.isAtField(FieldNames.gCCENBCIINL)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(gCCENBCIINL); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -919812992: + case 1586233341: { + if (input.isAtField(FieldNames.challengePeakLevelList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(challengePeakLevelList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengePeakGroupInfo clone() { + return new ChallengePeakGroupInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengePeakGroupInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengePeakGroupInfo(), data).checkInitialized(); + } + + public static ChallengePeakGroupInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakGroupInfo(), input).checkInitialized(); + } + + public static ChallengePeakGroupInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakGroupInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengePeakGroupInfo messages + */ + public static MessageFactory getFactory() { + return ChallengePeakGroupInfoFactory.INSTANCE; + } + + private enum ChallengePeakGroupInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengePeakGroupInfo create() { + return ChallengePeakGroupInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakGroupId = FieldName.forField("challengePeakGroupId", "challenge_peak_group_id"); + + static final FieldName kEEKPJHCMFN = FieldName.forField("KEEKPJHCMFN"); + + static final FieldName kKAGEMJCIOC = FieldName.forField("KKAGEMJCIOC"); + + static final FieldName jPKKFEJLOJN = FieldName.forField("JPKKFEJLOJN"); + + static final FieldName gCCENBCIINL = FieldName.forField("GCCENBCIINL"); + + static final FieldName challengePeakLevelList = FieldName.forField("challengePeakLevelList", "challenge_peak_level_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengePeakLevelInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengePeakLevelInfoOuterClass.java new file mode 100644 index 0000000..69084a9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengePeakLevelInfoOuterClass.java @@ -0,0 +1,710 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class ChallengePeakLevelInfoOuterClass { + /** + * Protobuf type {@code ChallengePeakLevelInfo} + */ + public static final class ChallengePeakLevelInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_peak_id = 3; + */ + private int challengePeakId; + + /** + * optional uint32 GGICFFIOOGP = 11; + */ + private int gGICFFIOOGP; + + /** + *
+     * repeated EEBPHJCNBFO FMFGOJHCCNL = 1;
+     * 
+ * + * optional bool FGEGDFGKDNB = 7; + */ + private boolean fGEGDFGKDNB; + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + */ + private final RepeatedInt nKGLPNJHEON = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 challenge_avatar_id_list = 12; + */ + private final RepeatedInt challengeAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ChallengePeakLevelInfo() { + } + + /** + * @return a new empty instance of {@code ChallengePeakLevelInfo} + */ + public static ChallengePeakLevelInfo newInstance() { + return new ChallengePeakLevelInfo(); + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return whether the challengePeakId field is set + */ + public boolean hasChallengePeakId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return this + */ + public ChallengePeakLevelInfo clearChallengePeakId() { + bitField0_ &= ~0x00000001; + challengePeakId = 0; + return this; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return the challengePeakId + */ + public int getChallengePeakId() { + return challengePeakId; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @param value the challengePeakId to set + * @return this + */ + public ChallengePeakLevelInfo setChallengePeakId(final int value) { + bitField0_ |= 0x00000001; + challengePeakId = value; + return this; + } + + /** + * optional uint32 GGICFFIOOGP = 11; + * @return whether the gGICFFIOOGP field is set + */ + public boolean hasGGICFFIOOGP() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 GGICFFIOOGP = 11; + * @return this + */ + public ChallengePeakLevelInfo clearGGICFFIOOGP() { + bitField0_ &= ~0x00000002; + gGICFFIOOGP = 0; + return this; + } + + /** + * optional uint32 GGICFFIOOGP = 11; + * @return the gGICFFIOOGP + */ + public int getGGICFFIOOGP() { + return gGICFFIOOGP; + } + + /** + * optional uint32 GGICFFIOOGP = 11; + * @param value the gGICFFIOOGP to set + * @return this + */ + public ChallengePeakLevelInfo setGGICFFIOOGP(final int value) { + bitField0_ |= 0x00000002; + gGICFFIOOGP = value; + return this; + } + + /** + *
+     * repeated EEBPHJCNBFO FMFGOJHCCNL = 1;
+     * 
+ * + * optional bool FGEGDFGKDNB = 7; + * @return whether the fGEGDFGKDNB field is set + */ + public boolean hasFGEGDFGKDNB() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     * repeated EEBPHJCNBFO FMFGOJHCCNL = 1;
+     * 
+ * + * optional bool FGEGDFGKDNB = 7; + * @return this + */ + public ChallengePeakLevelInfo clearFGEGDFGKDNB() { + bitField0_ &= ~0x00000004; + fGEGDFGKDNB = false; + return this; + } + + /** + *
+     * repeated EEBPHJCNBFO FMFGOJHCCNL = 1;
+     * 
+ * + * optional bool FGEGDFGKDNB = 7; + * @return the fGEGDFGKDNB + */ + public boolean getFGEGDFGKDNB() { + return fGEGDFGKDNB; + } + + /** + *
+     * repeated EEBPHJCNBFO FMFGOJHCCNL = 1;
+     * 
+ * + * optional bool FGEGDFGKDNB = 7; + * @param value the fGEGDFGKDNB to set + * @return this + */ + public ChallengePeakLevelInfo setFGEGDFGKDNB(final boolean value) { + bitField0_ |= 0x00000004; + fGEGDFGKDNB = value; + return this; + } + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + * @return whether the nKGLPNJHEON field is set + */ + public boolean hasNKGLPNJHEON() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + * @return this + */ + public ChallengePeakLevelInfo clearNKGLPNJHEON() { + bitField0_ &= ~0x00000008; + nKGLPNJHEON.clear(); + return this; + } + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNKGLPNJHEON()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNKGLPNJHEON() { + return nKGLPNJHEON; + } + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableNKGLPNJHEON() { + bitField0_ |= 0x00000008; + return nKGLPNJHEON; + } + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + * @param value the nKGLPNJHEON to add + * @return this + */ + public ChallengePeakLevelInfo addNKGLPNJHEON(final int value) { + bitField0_ |= 0x00000008; + nKGLPNJHEON.add(value); + return this; + } + + /** + *
+     * repeated JJJNDMMGGKI FBLKPDNIJDD = 5;
+     * 
+ * + * repeated uint32 NKGLPNJHEON = 6; + * @param values the nKGLPNJHEON to add + * @return this + */ + public ChallengePeakLevelInfo addAllNKGLPNJHEON(final int... values) { + bitField0_ |= 0x00000008; + nKGLPNJHEON.addAll(values); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @return whether the challengeAvatarIdList field is set + */ + public boolean hasChallengeAvatarIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @return this + */ + public ChallengePeakLevelInfo clearChallengeAvatarIdList() { + bitField0_ &= ~0x00000010; + challengeAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getChallengeAvatarIdList() { + return challengeAvatarIdList; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableChallengeAvatarIdList() { + bitField0_ |= 0x00000010; + return challengeAvatarIdList; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @param value the challengeAvatarIdList to add + * @return this + */ + public ChallengePeakLevelInfo addChallengeAvatarIdList(final int value) { + bitField0_ |= 0x00000010; + challengeAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @param values the challengeAvatarIdList to add + * @return this + */ + public ChallengePeakLevelInfo addAllChallengeAvatarIdList(final int... values) { + bitField0_ |= 0x00000010; + challengeAvatarIdList.addAll(values); + return this; + } + + @Override + public ChallengePeakLevelInfo copyFrom(final ChallengePeakLevelInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakId = other.challengePeakId; + gGICFFIOOGP = other.gGICFFIOOGP; + fGEGDFGKDNB = other.fGEGDFGKDNB; + nKGLPNJHEON.copyFrom(other.nKGLPNJHEON); + challengeAvatarIdList.copyFrom(other.challengeAvatarIdList); + } + return this; + } + + @Override + public ChallengePeakLevelInfo mergeFrom(final ChallengePeakLevelInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakId()) { + setChallengePeakId(other.challengePeakId); + } + if (other.hasGGICFFIOOGP()) { + setGGICFFIOOGP(other.gGICFFIOOGP); + } + if (other.hasFGEGDFGKDNB()) { + setFGEGDFGKDNB(other.fGEGDFGKDNB); + } + if (other.hasNKGLPNJHEON()) { + getMutableNKGLPNJHEON().addAll(other.nKGLPNJHEON); + } + if (other.hasChallengeAvatarIdList()) { + getMutableChallengeAvatarIdList().addAll(other.challengeAvatarIdList); + } + return this; + } + + @Override + public ChallengePeakLevelInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakId = 0; + gGICFFIOOGP = 0; + fGEGDFGKDNB = false; + nKGLPNJHEON.clear(); + challengeAvatarIdList.clear(); + return this; + } + + @Override + public ChallengePeakLevelInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nKGLPNJHEON.clear(); + challengeAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChallengePeakLevelInfo)) { + return false; + } + ChallengePeakLevelInfo other = (ChallengePeakLevelInfo) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakId() || challengePeakId == other.challengePeakId) + && (!hasGGICFFIOOGP() || gGICFFIOOGP == other.gGICFFIOOGP) + && (!hasFGEGDFGKDNB() || fGEGDFGKDNB == other.fGEGDFGKDNB) + && (!hasNKGLPNJHEON() || nKGLPNJHEON.equals(other.nKGLPNJHEON)) + && (!hasChallengeAvatarIdList() || challengeAvatarIdList.equals(other.challengeAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(gGICFFIOOGP); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(fGEGDFGKDNB); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < nKGLPNJHEON.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(nKGLPNJHEON.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < challengeAvatarIdList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(challengeAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gGICFFIOOGP); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * nKGLPNJHEON.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nKGLPNJHEON); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * challengeAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(challengeAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengePeakLevelInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // challengePeakId + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // gGICFFIOOGP + gGICFFIOOGP = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // fGEGDFGKDNB + fGEGDFGKDNB = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // nKGLPNJHEON [packed=true] + input.readPackedUInt32(nKGLPNJHEON, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // challengeAvatarIdList [packed=true] + input.readPackedUInt32(challengeAvatarIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 48: { + // nKGLPNJHEON [packed=false] + tag = input.readRepeatedUInt32(nKGLPNJHEON, tag); + bitField0_ |= 0x00000008; + break; + } + case 96: { + // challengeAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(challengeAvatarIdList, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengePeakId, challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gGICFFIOOGP, gGICFFIOOGP); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.fGEGDFGKDNB, fGEGDFGKDNB); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.nKGLPNJHEON, nKGLPNJHEON); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.challengeAvatarIdList, challengeAvatarIdList); + } + output.endObject(); + } + + @Override + public ChallengePeakLevelInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1075253405: + case -117346145: { + if (input.isAtField(FieldNames.challengePeakId)) { + if (!input.trySkipNullValue()) { + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1976538776: { + if (input.isAtField(FieldNames.gGICFFIOOGP)) { + if (!input.trySkipNullValue()) { + gGICFFIOOGP = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -982303793: { + if (input.isAtField(FieldNames.fGEGDFGKDNB)) { + if (!input.trySkipNullValue()) { + fGEGDFGKDNB = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -163066362: { + if (input.isAtField(FieldNames.nKGLPNJHEON)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(nKGLPNJHEON); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 836175637: + case 1831834552: { + if (input.isAtField(FieldNames.challengeAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(challengeAvatarIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengePeakLevelInfo clone() { + return new ChallengePeakLevelInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengePeakLevelInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengePeakLevelInfo(), data).checkInitialized(); + } + + public static ChallengePeakLevelInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakLevelInfo(), input).checkInitialized(); + } + + public static ChallengePeakLevelInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakLevelInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengePeakLevelInfo messages + */ + public static MessageFactory getFactory() { + return ChallengePeakLevelInfoFactory.INSTANCE; + } + + private enum ChallengePeakLevelInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengePeakLevelInfo create() { + return ChallengePeakLevelInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakId = FieldName.forField("challengePeakId", "challenge_peak_id"); + + static final FieldName gGICFFIOOGP = FieldName.forField("GGICFFIOOGP"); + + static final FieldName fGEGDFGKDNB = FieldName.forField("FGEGDFGKDNB"); + + static final FieldName nKGLPNJHEON = FieldName.forField("NKGLPNJHEON"); + + static final FieldName challengeAvatarIdList = FieldName.forField("challengeAvatarIdList", "challenge_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengePeakMobLineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengePeakMobLineupInfoOuterClass.java new file mode 100644 index 0000000..2cf3957 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengePeakMobLineupInfoOuterClass.java @@ -0,0 +1,382 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class ChallengePeakMobLineupInfoOuterClass { + /** + * Protobuf type {@code ChallengePeakMobLineupInfo} + */ + public static final class ChallengePeakMobLineupInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_peak_id = 3; + */ + private int challengePeakId; + + /** + * repeated uint32 challenge_avatar_id_list = 12; + */ + private final RepeatedInt challengeAvatarIdList = RepeatedInt.newEmptyInstance(); + + private ChallengePeakMobLineupInfo() { + } + + /** + * @return a new empty instance of {@code ChallengePeakMobLineupInfo} + */ + public static ChallengePeakMobLineupInfo newInstance() { + return new ChallengePeakMobLineupInfo(); + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return whether the challengePeakId field is set + */ + public boolean hasChallengePeakId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return this + */ + public ChallengePeakMobLineupInfo clearChallengePeakId() { + bitField0_ &= ~0x00000001; + challengePeakId = 0; + return this; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return the challengePeakId + */ + public int getChallengePeakId() { + return challengePeakId; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @param value the challengePeakId to set + * @return this + */ + public ChallengePeakMobLineupInfo setChallengePeakId(final int value) { + bitField0_ |= 0x00000001; + challengePeakId = value; + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @return whether the challengeAvatarIdList field is set + */ + public boolean hasChallengeAvatarIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @return this + */ + public ChallengePeakMobLineupInfo clearChallengeAvatarIdList() { + bitField0_ &= ~0x00000002; + challengeAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getChallengeAvatarIdList() { + return challengeAvatarIdList; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableChallengeAvatarIdList() { + bitField0_ |= 0x00000002; + return challengeAvatarIdList; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @param value the challengeAvatarIdList to add + * @return this + */ + public ChallengePeakMobLineupInfo addChallengeAvatarIdList(final int value) { + bitField0_ |= 0x00000002; + challengeAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 12; + * @param values the challengeAvatarIdList to add + * @return this + */ + public ChallengePeakMobLineupInfo addAllChallengeAvatarIdList(final int... values) { + bitField0_ |= 0x00000002; + challengeAvatarIdList.addAll(values); + return this; + } + + @Override + public ChallengePeakMobLineupInfo copyFrom(final ChallengePeakMobLineupInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakId = other.challengePeakId; + challengeAvatarIdList.copyFrom(other.challengeAvatarIdList); + } + return this; + } + + @Override + public ChallengePeakMobLineupInfo mergeFrom(final ChallengePeakMobLineupInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakId()) { + setChallengePeakId(other.challengePeakId); + } + if (other.hasChallengeAvatarIdList()) { + getMutableChallengeAvatarIdList().addAll(other.challengeAvatarIdList); + } + return this; + } + + @Override + public ChallengePeakMobLineupInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakId = 0; + challengeAvatarIdList.clear(); + return this; + } + + @Override + public ChallengePeakMobLineupInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChallengePeakMobLineupInfo)) { + return false; + } + ChallengePeakMobLineupInfo other = (ChallengePeakMobLineupInfo) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakId() || challengePeakId == other.challengePeakId) + && (!hasChallengeAvatarIdList() || challengeAvatarIdList.equals(other.challengeAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < challengeAvatarIdList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(challengeAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * challengeAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(challengeAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengePeakMobLineupInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // challengePeakId + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // challengeAvatarIdList [packed=true] + input.readPackedUInt32(challengeAvatarIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 96: { + // challengeAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(challengeAvatarIdList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengePeakId, challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.challengeAvatarIdList, challengeAvatarIdList); + } + output.endObject(); + } + + @Override + public ChallengePeakMobLineupInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1075253405: + case -117346145: { + if (input.isAtField(FieldNames.challengePeakId)) { + if (!input.trySkipNullValue()) { + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 836175637: + case 1831834552: { + if (input.isAtField(FieldNames.challengeAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(challengeAvatarIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengePeakMobLineupInfo clone() { + return new ChallengePeakMobLineupInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengePeakMobLineupInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengePeakMobLineupInfo(), data).checkInitialized(); + } + + public static ChallengePeakMobLineupInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakMobLineupInfo(), input).checkInitialized(); + } + + public static ChallengePeakMobLineupInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakMobLineupInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengePeakMobLineupInfo messages + */ + public static MessageFactory getFactory() { + return ChallengePeakMobLineupInfoFactory.INSTANCE; + } + + private enum ChallengePeakMobLineupInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengePeakMobLineupInfo create() { + return ChallengePeakMobLineupInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakId = FieldName.forField("challengePeakId", "challenge_peak_id"); + + static final FieldName challengeAvatarIdList = FieldName.forField("challengeAvatarIdList", "challenge_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengePeakSettleScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengePeakSettleScNotifyOuterClass.java new file mode 100644 index 0000000..3c0091d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChallengePeakSettleScNotifyOuterClass.java @@ -0,0 +1,1023 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class ChallengePeakSettleScNotifyOuterClass { + /** + * Protobuf type {@code ChallengePeakSettleScNotify} + */ + public static final class ChallengePeakSettleScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_peak_id = 6; + */ + private int challengePeakId; + + /** + * optional uint32 LBGCPOKPKBB = 7; + */ + private int lBGCPOKPKBB; + + /** + * optional uint32 GGICFFIOOGP = 10; + */ + private int gGICFFIOOGP; + + /** + * optional bool LBOJBLCKAJF = 2; + */ + private boolean lBOJBLCKAJF; + + /** + * optional bool KJFCNFOGCHP = 3; + */ + private boolean kJFCNFOGCHP; + + /** + * optional bool GEKPDLJNOHA = 8; + */ + private boolean gEKPDLJNOHA; + + /** + * optional bool CMGKJJKNCNB = 11; + */ + private boolean cMGKJJKNCNB; + + /** + * optional bool is_win = 13; + */ + private boolean isWin; + + /** + * optional bool IIJODHANFDC = 15; + */ + private boolean iIJODHANFDC; + + /** + * repeated uint32 NKGLPNJHEON = 5; + */ + private final RepeatedInt nKGLPNJHEON = RepeatedInt.newEmptyInstance(); + + private ChallengePeakSettleScNotify() { + } + + /** + * @return a new empty instance of {@code ChallengePeakSettleScNotify} + */ + public static ChallengePeakSettleScNotify newInstance() { + return new ChallengePeakSettleScNotify(); + } + + /** + * optional uint32 challenge_peak_id = 6; + * @return whether the challengePeakId field is set + */ + public boolean hasChallengePeakId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_peak_id = 6; + * @return this + */ + public ChallengePeakSettleScNotify clearChallengePeakId() { + bitField0_ &= ~0x00000001; + challengePeakId = 0; + return this; + } + + /** + * optional uint32 challenge_peak_id = 6; + * @return the challengePeakId + */ + public int getChallengePeakId() { + return challengePeakId; + } + + /** + * optional uint32 challenge_peak_id = 6; + * @param value the challengePeakId to set + * @return this + */ + public ChallengePeakSettleScNotify setChallengePeakId(final int value) { + bitField0_ |= 0x00000001; + challengePeakId = value; + return this; + } + + /** + * optional uint32 LBGCPOKPKBB = 7; + * @return whether the lBGCPOKPKBB field is set + */ + public boolean hasLBGCPOKPKBB() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 LBGCPOKPKBB = 7; + * @return this + */ + public ChallengePeakSettleScNotify clearLBGCPOKPKBB() { + bitField0_ &= ~0x00000002; + lBGCPOKPKBB = 0; + return this; + } + + /** + * optional uint32 LBGCPOKPKBB = 7; + * @return the lBGCPOKPKBB + */ + public int getLBGCPOKPKBB() { + return lBGCPOKPKBB; + } + + /** + * optional uint32 LBGCPOKPKBB = 7; + * @param value the lBGCPOKPKBB to set + * @return this + */ + public ChallengePeakSettleScNotify setLBGCPOKPKBB(final int value) { + bitField0_ |= 0x00000002; + lBGCPOKPKBB = value; + return this; + } + + /** + * optional uint32 GGICFFIOOGP = 10; + * @return whether the gGICFFIOOGP field is set + */ + public boolean hasGGICFFIOOGP() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 GGICFFIOOGP = 10; + * @return this + */ + public ChallengePeakSettleScNotify clearGGICFFIOOGP() { + bitField0_ &= ~0x00000004; + gGICFFIOOGP = 0; + return this; + } + + /** + * optional uint32 GGICFFIOOGP = 10; + * @return the gGICFFIOOGP + */ + public int getGGICFFIOOGP() { + return gGICFFIOOGP; + } + + /** + * optional uint32 GGICFFIOOGP = 10; + * @param value the gGICFFIOOGP to set + * @return this + */ + public ChallengePeakSettleScNotify setGGICFFIOOGP(final int value) { + bitField0_ |= 0x00000004; + gGICFFIOOGP = value; + return this; + } + + /** + * optional bool LBOJBLCKAJF = 2; + * @return whether the lBOJBLCKAJF field is set + */ + public boolean hasLBOJBLCKAJF() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool LBOJBLCKAJF = 2; + * @return this + */ + public ChallengePeakSettleScNotify clearLBOJBLCKAJF() { + bitField0_ &= ~0x00000008; + lBOJBLCKAJF = false; + return this; + } + + /** + * optional bool LBOJBLCKAJF = 2; + * @return the lBOJBLCKAJF + */ + public boolean getLBOJBLCKAJF() { + return lBOJBLCKAJF; + } + + /** + * optional bool LBOJBLCKAJF = 2; + * @param value the lBOJBLCKAJF to set + * @return this + */ + public ChallengePeakSettleScNotify setLBOJBLCKAJF(final boolean value) { + bitField0_ |= 0x00000008; + lBOJBLCKAJF = value; + return this; + } + + /** + * optional bool KJFCNFOGCHP = 3; + * @return whether the kJFCNFOGCHP field is set + */ + public boolean hasKJFCNFOGCHP() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool KJFCNFOGCHP = 3; + * @return this + */ + public ChallengePeakSettleScNotify clearKJFCNFOGCHP() { + bitField0_ &= ~0x00000010; + kJFCNFOGCHP = false; + return this; + } + + /** + * optional bool KJFCNFOGCHP = 3; + * @return the kJFCNFOGCHP + */ + public boolean getKJFCNFOGCHP() { + return kJFCNFOGCHP; + } + + /** + * optional bool KJFCNFOGCHP = 3; + * @param value the kJFCNFOGCHP to set + * @return this + */ + public ChallengePeakSettleScNotify setKJFCNFOGCHP(final boolean value) { + bitField0_ |= 0x00000010; + kJFCNFOGCHP = value; + return this; + } + + /** + * optional bool GEKPDLJNOHA = 8; + * @return whether the gEKPDLJNOHA field is set + */ + public boolean hasGEKPDLJNOHA() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool GEKPDLJNOHA = 8; + * @return this + */ + public ChallengePeakSettleScNotify clearGEKPDLJNOHA() { + bitField0_ &= ~0x00000020; + gEKPDLJNOHA = false; + return this; + } + + /** + * optional bool GEKPDLJNOHA = 8; + * @return the gEKPDLJNOHA + */ + public boolean getGEKPDLJNOHA() { + return gEKPDLJNOHA; + } + + /** + * optional bool GEKPDLJNOHA = 8; + * @param value the gEKPDLJNOHA to set + * @return this + */ + public ChallengePeakSettleScNotify setGEKPDLJNOHA(final boolean value) { + bitField0_ |= 0x00000020; + gEKPDLJNOHA = value; + return this; + } + + /** + * optional bool CMGKJJKNCNB = 11; + * @return whether the cMGKJJKNCNB field is set + */ + public boolean hasCMGKJJKNCNB() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool CMGKJJKNCNB = 11; + * @return this + */ + public ChallengePeakSettleScNotify clearCMGKJJKNCNB() { + bitField0_ &= ~0x00000040; + cMGKJJKNCNB = false; + return this; + } + + /** + * optional bool CMGKJJKNCNB = 11; + * @return the cMGKJJKNCNB + */ + public boolean getCMGKJJKNCNB() { + return cMGKJJKNCNB; + } + + /** + * optional bool CMGKJJKNCNB = 11; + * @param value the cMGKJJKNCNB to set + * @return this + */ + public ChallengePeakSettleScNotify setCMGKJJKNCNB(final boolean value) { + bitField0_ |= 0x00000040; + cMGKJJKNCNB = value; + return this; + } + + /** + * optional bool is_win = 13; + * @return whether the isWin field is set + */ + public boolean hasIsWin() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool is_win = 13; + * @return this + */ + public ChallengePeakSettleScNotify clearIsWin() { + bitField0_ &= ~0x00000080; + isWin = false; + return this; + } + + /** + * optional bool is_win = 13; + * @return the isWin + */ + public boolean getIsWin() { + return isWin; + } + + /** + * optional bool is_win = 13; + * @param value the isWin to set + * @return this + */ + public ChallengePeakSettleScNotify setIsWin(final boolean value) { + bitField0_ |= 0x00000080; + isWin = value; + return this; + } + + /** + * optional bool IIJODHANFDC = 15; + * @return whether the iIJODHANFDC field is set + */ + public boolean hasIIJODHANFDC() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bool IIJODHANFDC = 15; + * @return this + */ + public ChallengePeakSettleScNotify clearIIJODHANFDC() { + bitField0_ &= ~0x00000100; + iIJODHANFDC = false; + return this; + } + + /** + * optional bool IIJODHANFDC = 15; + * @return the iIJODHANFDC + */ + public boolean getIIJODHANFDC() { + return iIJODHANFDC; + } + + /** + * optional bool IIJODHANFDC = 15; + * @param value the iIJODHANFDC to set + * @return this + */ + public ChallengePeakSettleScNotify setIIJODHANFDC(final boolean value) { + bitField0_ |= 0x00000100; + iIJODHANFDC = value; + return this; + } + + /** + * repeated uint32 NKGLPNJHEON = 5; + * @return whether the nKGLPNJHEON field is set + */ + public boolean hasNKGLPNJHEON() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated uint32 NKGLPNJHEON = 5; + * @return this + */ + public ChallengePeakSettleScNotify clearNKGLPNJHEON() { + bitField0_ &= ~0x00000200; + nKGLPNJHEON.clear(); + return this; + } + + /** + * repeated uint32 NKGLPNJHEON = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNKGLPNJHEON()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getNKGLPNJHEON() { + return nKGLPNJHEON; + } + + /** + * repeated uint32 NKGLPNJHEON = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableNKGLPNJHEON() { + bitField0_ |= 0x00000200; + return nKGLPNJHEON; + } + + /** + * repeated uint32 NKGLPNJHEON = 5; + * @param value the nKGLPNJHEON to add + * @return this + */ + public ChallengePeakSettleScNotify addNKGLPNJHEON(final int value) { + bitField0_ |= 0x00000200; + nKGLPNJHEON.add(value); + return this; + } + + /** + * repeated uint32 NKGLPNJHEON = 5; + * @param values the nKGLPNJHEON to add + * @return this + */ + public ChallengePeakSettleScNotify addAllNKGLPNJHEON(final int... values) { + bitField0_ |= 0x00000200; + nKGLPNJHEON.addAll(values); + return this; + } + + @Override + public ChallengePeakSettleScNotify copyFrom(final ChallengePeakSettleScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakId = other.challengePeakId; + lBGCPOKPKBB = other.lBGCPOKPKBB; + gGICFFIOOGP = other.gGICFFIOOGP; + lBOJBLCKAJF = other.lBOJBLCKAJF; + kJFCNFOGCHP = other.kJFCNFOGCHP; + gEKPDLJNOHA = other.gEKPDLJNOHA; + cMGKJJKNCNB = other.cMGKJJKNCNB; + isWin = other.isWin; + iIJODHANFDC = other.iIJODHANFDC; + nKGLPNJHEON.copyFrom(other.nKGLPNJHEON); + } + return this; + } + + @Override + public ChallengePeakSettleScNotify mergeFrom(final ChallengePeakSettleScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakId()) { + setChallengePeakId(other.challengePeakId); + } + if (other.hasLBGCPOKPKBB()) { + setLBGCPOKPKBB(other.lBGCPOKPKBB); + } + if (other.hasGGICFFIOOGP()) { + setGGICFFIOOGP(other.gGICFFIOOGP); + } + if (other.hasLBOJBLCKAJF()) { + setLBOJBLCKAJF(other.lBOJBLCKAJF); + } + if (other.hasKJFCNFOGCHP()) { + setKJFCNFOGCHP(other.kJFCNFOGCHP); + } + if (other.hasGEKPDLJNOHA()) { + setGEKPDLJNOHA(other.gEKPDLJNOHA); + } + if (other.hasCMGKJJKNCNB()) { + setCMGKJJKNCNB(other.cMGKJJKNCNB); + } + if (other.hasIsWin()) { + setIsWin(other.isWin); + } + if (other.hasIIJODHANFDC()) { + setIIJODHANFDC(other.iIJODHANFDC); + } + if (other.hasNKGLPNJHEON()) { + getMutableNKGLPNJHEON().addAll(other.nKGLPNJHEON); + } + return this; + } + + @Override + public ChallengePeakSettleScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakId = 0; + lBGCPOKPKBB = 0; + gGICFFIOOGP = 0; + lBOJBLCKAJF = false; + kJFCNFOGCHP = false; + gEKPDLJNOHA = false; + cMGKJJKNCNB = false; + isWin = false; + iIJODHANFDC = false; + nKGLPNJHEON.clear(); + return this; + } + + @Override + public ChallengePeakSettleScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nKGLPNJHEON.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChallengePeakSettleScNotify)) { + return false; + } + ChallengePeakSettleScNotify other = (ChallengePeakSettleScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakId() || challengePeakId == other.challengePeakId) + && (!hasLBGCPOKPKBB() || lBGCPOKPKBB == other.lBGCPOKPKBB) + && (!hasGGICFFIOOGP() || gGICFFIOOGP == other.gGICFFIOOGP) + && (!hasLBOJBLCKAJF() || lBOJBLCKAJF == other.lBOJBLCKAJF) + && (!hasKJFCNFOGCHP() || kJFCNFOGCHP == other.kJFCNFOGCHP) + && (!hasGEKPDLJNOHA() || gEKPDLJNOHA == other.gEKPDLJNOHA) + && (!hasCMGKJJKNCNB() || cMGKJJKNCNB == other.cMGKJJKNCNB) + && (!hasIsWin() || isWin == other.isWin) + && (!hasIIJODHANFDC() || iIJODHANFDC == other.iIJODHANFDC) + && (!hasNKGLPNJHEON() || nKGLPNJHEON.equals(other.nKGLPNJHEON)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(lBGCPOKPKBB); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(gGICFFIOOGP); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(lBOJBLCKAJF); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(kJFCNFOGCHP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(gEKPDLJNOHA); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(cMGKJJKNCNB); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 104); + output.writeBoolNoTag(isWin); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 120); + output.writeBoolNoTag(iIJODHANFDC); + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < nKGLPNJHEON.length(); i++) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(nKGLPNJHEON.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lBGCPOKPKBB); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gGICFFIOOGP); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * nKGLPNJHEON.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nKGLPNJHEON); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChallengePeakSettleScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // challengePeakId + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // lBGCPOKPKBB + lBGCPOKPKBB = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // gGICFFIOOGP + gGICFFIOOGP = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // lBOJBLCKAJF + lBOJBLCKAJF = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // kJFCNFOGCHP + kJFCNFOGCHP = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // gEKPDLJNOHA + gEKPDLJNOHA = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // cMGKJJKNCNB + cMGKJJKNCNB = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // isWin + isWin = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // iIJODHANFDC + iIJODHANFDC = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // nKGLPNJHEON [packed=true] + input.readPackedUInt32(nKGLPNJHEON, tag); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 40: { + // nKGLPNJHEON [packed=false] + tag = input.readRepeatedUInt32(nKGLPNJHEON, tag); + bitField0_ |= 0x00000200; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengePeakId, challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.lBGCPOKPKBB, lBGCPOKPKBB); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.gGICFFIOOGP, gGICFFIOOGP); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.lBOJBLCKAJF, lBOJBLCKAJF); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.kJFCNFOGCHP, kJFCNFOGCHP); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.gEKPDLJNOHA, gEKPDLJNOHA); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeBool(FieldNames.cMGKJJKNCNB, cMGKJJKNCNB); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.isWin, isWin); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.iIJODHANFDC, iIJODHANFDC); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedUInt32(FieldNames.nKGLPNJHEON, nKGLPNJHEON); + } + output.endObject(); + } + + @Override + public ChallengePeakSettleScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1075253405: + case -117346145: { + if (input.isAtField(FieldNames.challengePeakId)) { + if (!input.trySkipNullValue()) { + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1866104171: { + if (input.isAtField(FieldNames.lBGCPOKPKBB)) { + if (!input.trySkipNullValue()) { + lBGCPOKPKBB = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1976538776: { + if (input.isAtField(FieldNames.gGICFFIOOGP)) { + if (!input.trySkipNullValue()) { + gGICFFIOOGP = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 535316186: { + if (input.isAtField(FieldNames.lBOJBLCKAJF)) { + if (!input.trySkipNullValue()) { + lBOJBLCKAJF = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1863057633: { + if (input.isAtField(FieldNames.kJFCNFOGCHP)) { + if (!input.trySkipNullValue()) { + kJFCNFOGCHP = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1665983975: { + if (input.isAtField(FieldNames.gEKPDLJNOHA)) { + if (!input.trySkipNullValue()) { + gEKPDLJNOHA = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -855779034: { + if (input.isAtField(FieldNames.cMGKJJKNCNB)) { + if (!input.trySkipNullValue()) { + cMGKJJKNCNB = input.readBool(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100482642: + case -1179753657: { + if (input.isAtField(FieldNames.isWin)) { + if (!input.trySkipNullValue()) { + isWin = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1809166353: { + if (input.isAtField(FieldNames.iIJODHANFDC)) { + if (!input.trySkipNullValue()) { + iIJODHANFDC = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -163066362: { + if (input.isAtField(FieldNames.nKGLPNJHEON)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(nKGLPNJHEON); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChallengePeakSettleScNotify clone() { + return new ChallengePeakSettleScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChallengePeakSettleScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengePeakSettleScNotify(), data).checkInitialized(); + } + + public static ChallengePeakSettleScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChallengePeakSettleScNotify(), input).checkInitialized(); + } + + public static ChallengePeakSettleScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengePeakSettleScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ChallengePeakSettleScNotify messages + */ + public static MessageFactory getFactory() { + return ChallengePeakSettleScNotifyFactory.INSTANCE; + } + + private enum ChallengePeakSettleScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ChallengePeakSettleScNotify create() { + return ChallengePeakSettleScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakId = FieldName.forField("challengePeakId", "challenge_peak_id"); + + static final FieldName lBGCPOKPKBB = FieldName.forField("LBGCPOKPKBB"); + + static final FieldName gGICFFIOOGP = FieldName.forField("GGICFFIOOGP"); + + static final FieldName lBOJBLCKAJF = FieldName.forField("LBOJBLCKAJF"); + + static final FieldName kJFCNFOGCHP = FieldName.forField("KJFCNFOGCHP"); + + static final FieldName gEKPDLJNOHA = FieldName.forField("GEKPDLJNOHA"); + + static final FieldName cMGKJJKNCNB = FieldName.forField("CMGKJJKNCNB"); + + static final FieldName isWin = FieldName.forField("isWin", "is_win"); + + static final FieldName iIJODHANFDC = FieldName.forField("IIJODHANFDC"); + + static final FieldName nKGLPNJHEON = FieldName.forField("NKGLPNJHEON"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java index 648df18..02e493f 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeRewardOuterClass.java @@ -19,12 +19,12 @@ public final class ChallengeRewardOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 taken_challenge_reward = 3; + * optional uint64 taken_challenge_reward = 14; */ private long takenChallengeReward; /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; */ private int groupId; @@ -39,7 +39,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 3; + * optional uint64 taken_challenge_reward = 14; * @return whether the takenChallengeReward field is set */ public boolean hasTakenChallengeReward() { @@ -47,7 +47,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 3; + * optional uint64 taken_challenge_reward = 14; * @return this */ public ChallengeReward clearTakenChallengeReward() { @@ -57,7 +57,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 3; + * optional uint64 taken_challenge_reward = 14; * @return the takenChallengeReward */ public long getTakenChallengeReward() { @@ -65,7 +65,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint64 taken_challenge_reward = 3; + * optional uint64 taken_challenge_reward = 14; * @param value the takenChallengeReward to set * @return this */ @@ -76,7 +76,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -84,7 +84,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @return this */ public ChallengeReward clearGroupId() { @@ -94,7 +94,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @return the groupId */ public int getGroupId() { @@ -102,7 +102,7 @@ public final class ChallengeRewardOuterClass { } /** - * optional uint32 group_id = 1; + * optional uint32 group_id = 3; * @param value the groupId to set * @return this */ @@ -177,11 +177,11 @@ public final class ChallengeRewardOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 112); output.writeUInt64NoTag(takenChallengeReward); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(groupId); } } @@ -205,16 +205,16 @@ public final class ChallengeRewardOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 112: { // takenChallengeReward takenChallengeReward = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 24) { break; } } - case 8: { + case 24: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java index 4ef1dbd..48e0c56 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeSettleNotifyOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; public final class ChallengeSettleNotifyOuterClass { /** @@ -19,34 +20,44 @@ public final class ChallengeSettleNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_score = 1; - */ - private int challengeScore; - - /** - * optional uint32 challenge_id = 5; + * optional uint32 challenge_id = 1; */ private int challengeId; /** - * optional uint32 score_two = 12; - */ - private int scoreTwo; - - /** - * optional uint32 stars = 14; + * optional uint32 stars = 4; */ private int stars; /** - * optional bool is_win = 4; + * optional uint32 challenge_score = 14; + */ + private int challengeScore; + + /** + * optional uint32 score_two = 15; + */ + private int scoreTwo; + + /** + * optional bool is_win = 12; */ private boolean isWin; /** - * optional .ItemList reward = 10; + * optional .ItemList reward_list = 10; */ - private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList rewardList = ItemListOuterClass.ItemList.newInstance(); + + /** + * optional .ChallengeInfo challenge_info = 11; + */ + private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); + + /** + * repeated uint32 challenge_id_list = 9; + */ + private final RepeatedInt challengeIdList = RepeatedInt.newEmptyInstance(); private ChallengeSettleNotify() { } @@ -59,62 +70,25 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional uint32 challenge_score = 1; - * @return whether the challengeScore field is set + * optional uint32 challenge_id = 1; + * @return whether the challengeId field is set */ - public boolean hasChallengeScore() { + public boolean hasChallengeId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 challenge_score = 1; - * @return this - */ - public ChallengeSettleNotify clearChallengeScore() { - bitField0_ &= ~0x00000001; - challengeScore = 0; - return this; - } - - /** - * optional uint32 challenge_score = 1; - * @return the challengeScore - */ - public int getChallengeScore() { - return challengeScore; - } - - /** - * optional uint32 challenge_score = 1; - * @param value the challengeScore to set - * @return this - */ - public ChallengeSettleNotify setChallengeScore(final int value) { - bitField0_ |= 0x00000001; - challengeScore = value; - return this; - } - - /** - * optional uint32 challenge_id = 5; - * @return whether the challengeId field is set - */ - public boolean hasChallengeId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 challenge_id = 5; + * optional uint32 challenge_id = 1; * @return this */ public ChallengeSettleNotify clearChallengeId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; challengeId = 0; return this; } /** - * optional uint32 challenge_id = 5; + * optional uint32 challenge_id = 1; * @return the challengeId */ public int getChallengeId() { @@ -122,73 +96,36 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional uint32 challenge_id = 5; + * optional uint32 challenge_id = 1; * @param value the challengeId to set * @return this */ public ChallengeSettleNotify setChallengeId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; challengeId = value; return this; } /** - * optional uint32 score_two = 12; - * @return whether the scoreTwo field is set - */ - public boolean hasScoreTwo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 score_two = 12; - * @return this - */ - public ChallengeSettleNotify clearScoreTwo() { - bitField0_ &= ~0x00000004; - scoreTwo = 0; - return this; - } - - /** - * optional uint32 score_two = 12; - * @return the scoreTwo - */ - public int getScoreTwo() { - return scoreTwo; - } - - /** - * optional uint32 score_two = 12; - * @param value the scoreTwo to set - * @return this - */ - public ChallengeSettleNotify setScoreTwo(final int value) { - bitField0_ |= 0x00000004; - scoreTwo = value; - return this; - } - - /** - * optional uint32 stars = 14; + * optional uint32 stars = 4; * @return whether the stars field is set */ public boolean hasStars() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 stars = 14; + * optional uint32 stars = 4; * @return this */ public ChallengeSettleNotify clearStars() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; stars = 0; return this; } /** - * optional uint32 stars = 14; + * optional uint32 stars = 4; * @return the stars */ public int getStars() { @@ -196,18 +133,92 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional uint32 stars = 14; + * optional uint32 stars = 4; * @param value the stars to set * @return this */ public ChallengeSettleNotify setStars(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; stars = value; return this; } /** - * optional bool is_win = 4; + * optional uint32 challenge_score = 14; + * @return whether the challengeScore field is set + */ + public boolean hasChallengeScore() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 challenge_score = 14; + * @return this + */ + public ChallengeSettleNotify clearChallengeScore() { + bitField0_ &= ~0x00000004; + challengeScore = 0; + return this; + } + + /** + * optional uint32 challenge_score = 14; + * @return the challengeScore + */ + public int getChallengeScore() { + return challengeScore; + } + + /** + * optional uint32 challenge_score = 14; + * @param value the challengeScore to set + * @return this + */ + public ChallengeSettleNotify setChallengeScore(final int value) { + bitField0_ |= 0x00000004; + challengeScore = value; + return this; + } + + /** + * optional uint32 score_two = 15; + * @return whether the scoreTwo field is set + */ + public boolean hasScoreTwo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 score_two = 15; + * @return this + */ + public ChallengeSettleNotify clearScoreTwo() { + bitField0_ &= ~0x00000008; + scoreTwo = 0; + return this; + } + + /** + * optional uint32 score_two = 15; + * @return the scoreTwo + */ + public int getScoreTwo() { + return scoreTwo; + } + + /** + * optional uint32 score_two = 15; + * @param value the scoreTwo to set + * @return this + */ + public ChallengeSettleNotify setScoreTwo(final int value) { + bitField0_ |= 0x00000008; + scoreTwo = value; + return this; + } + + /** + * optional bool is_win = 12; * @return whether the isWin field is set */ public boolean hasIsWin() { @@ -215,7 +226,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional bool is_win = 4; + * optional bool is_win = 12; * @return this */ public ChallengeSettleNotify clearIsWin() { @@ -225,7 +236,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional bool is_win = 4; + * optional bool is_win = 12; * @return the isWin */ public boolean getIsWin() { @@ -233,7 +244,7 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional bool is_win = 4; + * optional bool is_win = 12; * @param value the isWin to set * @return this */ @@ -244,39 +255,39 @@ public final class ChallengeSettleNotifyOuterClass { } /** - * optional .ItemList reward = 10; - * @return whether the reward field is set + * optional .ItemList reward_list = 10; + * @return whether the rewardList field is set */ - public boolean hasReward() { + public boolean hasRewardList() { return (bitField0_ & 0x00000020) != 0; } /** - * optional .ItemList reward = 10; + * optional .ItemList reward_list = 10; * @return this */ - public ChallengeSettleNotify clearReward() { + public ChallengeSettleNotify clearRewardList() { bitField0_ &= ~0x00000020; - reward.clear(); + rewardList.clear(); return this; } /** - * optional .ItemList reward = 10; + * optional .ItemList reward_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableReward()} if you want to modify it. + * Use {@link #getMutableRewardList()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getReward() { - return reward; + public ItemListOuterClass.ItemList getRewardList() { + return rewardList; } /** - * optional .ItemList reward = 10; + * optional .ItemList reward_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -284,19 +295,145 @@ public final class ChallengeSettleNotifyOuterClass { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableReward() { + public ItemListOuterClass.ItemList getMutableRewardList() { bitField0_ |= 0x00000020; - return reward; + return rewardList; } /** - * optional .ItemList reward = 10; - * @param value the reward to set + * optional .ItemList reward_list = 10; + * @param value the rewardList to set * @return this */ - public ChallengeSettleNotify setReward(final ItemListOuterClass.ItemList value) { + public ChallengeSettleNotify setRewardList(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000020; - reward.copyFrom(value); + rewardList.copyFrom(value); + return this; + } + + /** + * optional .ChallengeInfo challenge_info = 11; + * @return whether the challengeInfo field is set + */ + public boolean hasChallengeInfo() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .ChallengeInfo challenge_info = 11; + * @return this + */ + public ChallengeSettleNotify clearChallengeInfo() { + bitField0_ &= ~0x00000040; + challengeInfo.clear(); + return this; + } + + /** + * optional .ChallengeInfo challenge_info = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChallengeInfoOuterClass.ChallengeInfo getChallengeInfo() { + return challengeInfo; + } + + /** + * optional .ChallengeInfo challenge_info = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { + bitField0_ |= 0x00000040; + return challengeInfo; + } + + /** + * optional .ChallengeInfo challenge_info = 11; + * @param value the challengeInfo to set + * @return this + */ + public ChallengeSettleNotify setChallengeInfo( + final ChallengeInfoOuterClass.ChallengeInfo value) { + bitField0_ |= 0x00000040; + challengeInfo.copyFrom(value); + return this; + } + + /** + * repeated uint32 challenge_id_list = 9; + * @return whether the challengeIdList field is set + */ + public boolean hasChallengeIdList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 challenge_id_list = 9; + * @return this + */ + public ChallengeSettleNotify clearChallengeIdList() { + bitField0_ &= ~0x00000080; + challengeIdList.clear(); + return this; + } + + /** + * repeated uint32 challenge_id_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getChallengeIdList() { + return challengeIdList; + } + + /** + * repeated uint32 challenge_id_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableChallengeIdList() { + bitField0_ |= 0x00000080; + return challengeIdList; + } + + /** + * repeated uint32 challenge_id_list = 9; + * @param value the challengeIdList to add + * @return this + */ + public ChallengeSettleNotify addChallengeIdList(final int value) { + bitField0_ |= 0x00000080; + challengeIdList.add(value); + return this; + } + + /** + * repeated uint32 challenge_id_list = 9; + * @param values the challengeIdList to add + * @return this + */ + public ChallengeSettleNotify addAllChallengeIdList(final int... values) { + bitField0_ |= 0x00000080; + challengeIdList.addAll(values); return this; } @@ -305,12 +442,14 @@ public final class ChallengeSettleNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - challengeScore = other.challengeScore; challengeId = other.challengeId; - scoreTwo = other.scoreTwo; stars = other.stars; + challengeScore = other.challengeScore; + scoreTwo = other.scoreTwo; isWin = other.isWin; - reward.copyFrom(other.reward); + rewardList.copyFrom(other.rewardList); + challengeInfo.copyFrom(other.challengeInfo); + challengeIdList.copyFrom(other.challengeIdList); } return this; } @@ -321,23 +460,29 @@ public final class ChallengeSettleNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasChallengeScore()) { - setChallengeScore(other.challengeScore); - } if (other.hasChallengeId()) { setChallengeId(other.challengeId); } - if (other.hasScoreTwo()) { - setScoreTwo(other.scoreTwo); - } if (other.hasStars()) { setStars(other.stars); } + if (other.hasChallengeScore()) { + setChallengeScore(other.challengeScore); + } + if (other.hasScoreTwo()) { + setScoreTwo(other.scoreTwo); + } if (other.hasIsWin()) { setIsWin(other.isWin); } - if (other.hasReward()) { - getMutableReward().mergeFrom(other.reward); + if (other.hasRewardList()) { + getMutableRewardList().mergeFrom(other.rewardList); + } + if (other.hasChallengeInfo()) { + getMutableChallengeInfo().mergeFrom(other.challengeInfo); + } + if (other.hasChallengeIdList()) { + getMutableChallengeIdList().addAll(other.challengeIdList); } return this; } @@ -349,12 +494,14 @@ public final class ChallengeSettleNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - challengeScore = 0; challengeId = 0; - scoreTwo = 0; stars = 0; + challengeScore = 0; + scoreTwo = 0; isWin = false; - reward.clear(); + rewardList.clear(); + challengeInfo.clear(); + challengeIdList.clear(); return this; } @@ -365,7 +512,9 @@ public final class ChallengeSettleNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - reward.clearQuick(); + rewardList.clearQuick(); + challengeInfo.clearQuick(); + challengeIdList.clear(); return this; } @@ -379,39 +528,51 @@ public final class ChallengeSettleNotifyOuterClass { } ChallengeSettleNotify other = (ChallengeSettleNotify) o; return bitField0_ == other.bitField0_ - && (!hasChallengeScore() || challengeScore == other.challengeScore) && (!hasChallengeId() || challengeId == other.challengeId) - && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasStars() || stars == other.stars) + && (!hasChallengeScore() || challengeScore == other.challengeScore) + && (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasIsWin() || isWin == other.isWin) - && (!hasReward() || reward.equals(other.reward)); + && (!hasRewardList() || rewardList.equals(other.rewardList)) + && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)) + && (!hasChallengeIdList() || challengeIdList.equals(other.challengeIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(challengeScore); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); output.writeUInt32NoTag(challengeId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(scoreTwo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); output.writeUInt32NoTag(stars); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(challengeScore); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(scoreTwo); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 96); output.writeBoolNoTag(isWin); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 82); - output.writeMessageNoTag(reward); + output.writeMessageNoTag(rewardList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(challengeInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < challengeIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(challengeIdList.array()[i]); + } } } @@ -419,22 +580,28 @@ public final class ChallengeSettleNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeScore); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeScore); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stars); + size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); } if ((bitField0_ & 0x00000010) != 0) { size += 2; } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + size += 1 + ProtoSink.computeMessageSizeNoTag(rewardList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * challengeIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(challengeIdList); } return size; } @@ -447,42 +614,42 @@ public final class ChallengeSettleNotifyOuterClass { while (true) { switch (tag) { case 8: { - // challengeScore - challengeScore = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { // challengeId challengeId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // scoreTwo - scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // stars - stars = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { break; } } case 32: { + // stars + stars = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // challengeScore + challengeScore = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // scoreTwo + scoreTwo = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { // isWin isWin = input.readBool(); bitField0_ |= 0x00000010; @@ -492,10 +659,28 @@ public final class ChallengeSettleNotifyOuterClass { } } case 82: { - // reward - input.readMessage(reward); + // rewardList + input.readMessage(rewardList); bitField0_ |= 0x00000020; tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // challengeInfo + input.readMessage(challengeInfo); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // challengeIdList [packed=true] + input.readPackedUInt32(challengeIdList, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); if (tag != 0) { break; } @@ -510,6 +695,12 @@ public final class ChallengeSettleNotifyOuterClass { tag = input.readTag(); break; } + case 72: { + // challengeIdList [packed=false] + tag = input.readRepeatedUInt32(challengeIdList, tag); + bitField0_ |= 0x00000080; + break; + } } } } @@ -518,22 +709,28 @@ public final class ChallengeSettleNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.challengeScore, challengeScore); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.challengeId, challengeId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.stars, stars); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.scoreTwo, scoreTwo); + output.writeUInt32(FieldNames.challengeScore, challengeScore); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.stars, stars); + output.writeUInt32(FieldNames.scoreTwo, scoreTwo); } if ((bitField0_ & 0x00000010) != 0) { output.writeBool(FieldNames.isWin, isWin); } if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.reward, reward); + output.writeMessage(FieldNames.rewardList, rewardList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeMessage(FieldNames.challengeInfo, challengeInfo); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.challengeIdList, challengeIdList); } output.endObject(); } @@ -545,11 +742,11 @@ public final class ChallengeSettleNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 591599599: - case 1517684662: { - if (input.isAtField(FieldNames.challengeScore)) { + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { - challengeScore = input.readUInt32(); + challengeId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -557,11 +754,10 @@ public final class ChallengeSettleNotifyOuterClass { } break; } - case -689112866: - case 112359031: { - if (input.isAtField(FieldNames.challengeId)) { + case 109757537: { + if (input.isAtField(FieldNames.stars)) { if (!input.trySkipNullValue()) { - challengeId = input.readUInt32(); + stars = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -569,22 +765,23 @@ public final class ChallengeSettleNotifyOuterClass { } break; } + case 591599599: + case 1517684662: { + if (input.isAtField(FieldNames.challengeScore)) { + if (!input.trySkipNullValue()) { + challengeScore = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -485512614: case 2129303327: { if (input.isAtField(FieldNames.scoreTwo)) { if (!input.trySkipNullValue()) { scoreTwo = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109757537: { - if (input.isAtField(FieldNames.stars)) { - if (!input.trySkipNullValue()) { - stars = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -604,10 +801,11 @@ public final class ChallengeSettleNotifyOuterClass { } break; } - case -934326481: { - if (input.isAtField(FieldNames.reward)) { + case 1690977389: + case 898318254: { + if (input.isAtField(FieldNames.rewardList)) { if (!input.trySkipNullValue()) { - input.readMessage(reward); + input.readMessage(rewardList); bitField0_ |= 0x00000020; } } else { @@ -615,6 +813,30 @@ public final class ChallengeSettleNotifyOuterClass { } break; } + case -812487759: + case 602859274: { + if (input.isAtField(FieldNames.challengeInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(challengeInfo); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 873299612: + case -2065341082: { + if (input.isAtField(FieldNames.challengeIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(challengeIdList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -668,17 +890,21 @@ public final class ChallengeSettleNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName challengeScore = FieldName.forField("challengeScore", "challenge_score"); - static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); - static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); - static final FieldName stars = FieldName.forField("stars"); + static final FieldName challengeScore = FieldName.forField("challengeScore", "challenge_score"); + + static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); + static final FieldName isWin = FieldName.forField("isWin", "is_win"); - static final FieldName reward = FieldName.forField("reward"); + static final FieldName rewardList = FieldName.forField("rewardList", "reward_list"); + + static final FieldName challengeInfo = FieldName.forField("challengeInfo", "challenge_info"); + + static final FieldName challengeIdList = FieldName.forField("challengeIdList", "challenge_id_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java index 50a25e8..9fa0c38 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeStoryBuffInfoOuterClass.java @@ -20,7 +20,7 @@ public final class ChallengeStoryBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; */ private final RepeatedInt buffList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; * @return whether the buffList field is set */ public boolean hasBuffList() { @@ -43,7 +43,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; * @return this */ public ChallengeStoryBuffInfo clearBuffList() { @@ -53,7 +53,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; * @param value the buffList to add * @return this */ @@ -92,7 +92,7 @@ public final class ChallengeStoryBuffInfoOuterClass { } /** - * repeated uint32 buff_list = 1; + * repeated uint32 buff_list = 15; * @param values the buffList to add * @return this */ @@ -163,7 +163,7 @@ public final class ChallengeStoryBuffInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(buffList.array()[i]); } } @@ -185,7 +185,7 @@ public final class ChallengeStoryBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { + case 122: { // buffList [packed=true] input.readPackedUInt32(buffList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class ChallengeStoryBuffInfoOuterClass { tag = input.readTag(); break; } - case 8: { + case 120: { // buffList [packed=false] tag = input.readRepeatedUInt32(buffList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java index 51ba499..fcf224b 100644 --- a/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChallengeStoryInfoOuterClass.java @@ -1,3 +1,4 @@ +// Code generated by protocol buffer compiler. Do not edit! package emu.lunarcore.proto; import java.io.IOException; @@ -11,257 +12,406 @@ import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; public final class ChallengeStoryInfoOuterClass { + /** + * Protobuf type {@code ChallengeStoryInfo} + */ public static final class ChallengeStoryInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - + + /** + * optional .ChallengeBossBuffInfo cur_boss_buffs = 2; + */ private final ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo curBossBuffs = ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo.newInstance(); - + + /** + * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + */ private final ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo curStoryBuffs = ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo.newInstance(); - + + private ChallengeStoryInfo() { + } + + /** + * @return a new empty instance of {@code ChallengeStoryInfo} + */ public static ChallengeStoryInfo newInstance() { return new ChallengeStoryInfo(); } - + + public boolean hasStoryInfo() { + return (((bitField0_ & 0x00000003)) != 0); + } + + public ChallengeStoryInfo clearStoryInfo() { + if (hasStoryInfo()) { + clearCurBossBuffs(); + clearCurStoryBuffs(); + } + return this; + } + + private void clearStoryInfoOtherCurBossBuffs() { + if ((((bitField0_ & 0x00000002)) != 0)) { + clearCurStoryBuffs(); + } + } + + private void clearStoryInfoOtherCurStoryBuffs() { + if ((((bitField0_ & 0x00000001)) != 0)) { + clearCurBossBuffs(); + } + } + + /** + * optional .ChallengeBossBuffInfo cur_boss_buffs = 2; + * @return whether the curBossBuffs field is set + */ public boolean hasCurBossBuffs() { - return ((this.bitField0_ & 0x1) != 0); + return (bitField0_ & 0x00000001) != 0; } - + + /** + * optional .ChallengeBossBuffInfo cur_boss_buffs = 2; + * @return this + */ public ChallengeStoryInfo clearCurBossBuffs() { - this.bitField0_ &= 0xFFFFFFFE; - this.curBossBuffs.clear(); + bitField0_ &= ~0x00000001; + curBossBuffs.clear(); return this; } - + + /** + * optional .ChallengeBossBuffInfo cur_boss_buffs = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableCurBossBuffs()} if you want to modify it. + * + * @return internal storage object for reading + */ public ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo getCurBossBuffs() { - return this.curBossBuffs; + return curBossBuffs; } - + + /** + * optional .ChallengeBossBuffInfo cur_boss_buffs = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ public ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo getMutableCurBossBuffs() { - this.bitField0_ |= 0x1; - return this.curBossBuffs; + clearStoryInfoOtherCurBossBuffs(); + bitField0_ |= 0x00000001; + return curBossBuffs; } - - public ChallengeStoryInfo setCurBossBuffs(ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo value) { - this.bitField0_ |= 0x1; - this.curBossBuffs.copyFrom(value); + + /** + * optional .ChallengeBossBuffInfo cur_boss_buffs = 2; + * @param value the curBossBuffs to set + * @return this + */ + public ChallengeStoryInfo setCurBossBuffs( + final ChallengeBossBuffInfoOuterClass.ChallengeBossBuffInfo value) { + clearStoryInfoOtherCurBossBuffs(); + bitField0_ |= 0x00000001; + curBossBuffs.copyFrom(value); return this; } - + + /** + * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * @return whether the curStoryBuffs field is set + */ public boolean hasCurStoryBuffs() { - return ((this.bitField0_ & 0x2) != 0); + return (bitField0_ & 0x00000002) != 0; } - + + /** + * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * @return this + */ public ChallengeStoryInfo clearCurStoryBuffs() { - this.bitField0_ &= 0xFFFFFFFD; - this.curStoryBuffs.clear(); + bitField0_ &= ~0x00000002; + curStoryBuffs.clear(); return this; } - + + /** + * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableCurStoryBuffs()} if you want to modify it. + * + * @return internal storage object for reading + */ public ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo getCurStoryBuffs() { - return this.curStoryBuffs; + return curStoryBuffs; } - + + /** + * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ public ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo getMutableCurStoryBuffs() { - this.bitField0_ |= 0x2; - return this.curStoryBuffs; + clearStoryInfoOtherCurStoryBuffs(); + bitField0_ |= 0x00000002; + return curStoryBuffs; } - - public ChallengeStoryInfo setCurStoryBuffs(ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo value) { - this.bitField0_ |= 0x2; - this.curStoryBuffs.copyFrom(value); + + /** + * optional .ChallengeStoryBuffInfo cur_story_buffs = 6; + * @param value the curStoryBuffs to set + * @return this + */ + public ChallengeStoryInfo setCurStoryBuffs( + final ChallengeStoryBuffInfoOuterClass.ChallengeStoryBuffInfo value) { + clearStoryInfoOtherCurStoryBuffs(); + bitField0_ |= 0x00000002; + curStoryBuffs.copyFrom(value); return this; } - - public ChallengeStoryInfo copyFrom(ChallengeStoryInfo other) { - this.cachedSize = other.cachedSize; - if ((this.bitField0_ | other.bitField0_) != 0) { - this.bitField0_ = other.bitField0_; - this.curBossBuffs.copyFrom(other.curBossBuffs); - this.curStoryBuffs.copyFrom(other.curStoryBuffs); - } + + @Override + public ChallengeStoryInfo copyFrom(final ChallengeStoryInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curBossBuffs.copyFrom(other.curBossBuffs); + curStoryBuffs.copyFrom(other.curStoryBuffs); + } return this; } - - public ChallengeStoryInfo mergeFrom(ChallengeStoryInfo other) { - if (other.isEmpty()) - return this; - this.cachedSize = -1; - if (other.hasCurBossBuffs()) - getMutableCurBossBuffs().mergeFrom(other.curBossBuffs); - if (other.hasCurStoryBuffs()) - getMutableCurStoryBuffs().mergeFrom(other.curStoryBuffs); + + @Override + public ChallengeStoryInfo mergeFrom(final ChallengeStoryInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurBossBuffs()) { + getMutableCurBossBuffs().mergeFrom(other.curBossBuffs); + } + if (other.hasCurStoryBuffs()) { + getMutableCurStoryBuffs().mergeFrom(other.curStoryBuffs); + } return this; } - + + @Override public ChallengeStoryInfo clear() { - if (isEmpty()) - return this; - this.cachedSize = -1; - this.bitField0_ = 0; - this.curBossBuffs.clear(); - this.curStoryBuffs.clear(); + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curBossBuffs.clear(); + curStoryBuffs.clear(); return this; } - + + @Override public ChallengeStoryInfo clearQuick() { - if (isEmpty()) - return this; - this.cachedSize = -1; - this.bitField0_ = 0; - this.curBossBuffs.clearQuick(); - this.curStoryBuffs.clearQuick(); + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curBossBuffs.clearQuick(); + curStoryBuffs.clearQuick(); return this; } - + + @Override public boolean equals(Object o) { - if (o == this) - return true; - if (!(o instanceof ChallengeStoryInfo)) - return false; - ChallengeStoryInfo other = (ChallengeStoryInfo)o; - return (this.bitField0_ == other.bitField0_ && ( - !hasCurBossBuffs() || this.curBossBuffs.equals(other.curBossBuffs)) && ( - !hasCurStoryBuffs() || this.curStoryBuffs.equals(other.curStoryBuffs))); + if (o == this) { + return true; + } + if (!(o instanceof ChallengeStoryInfo)) { + return false; + } + ChallengeStoryInfo other = (ChallengeStoryInfo) o; + return bitField0_ == other.bitField0_ + && (!hasCurBossBuffs() || curBossBuffs.equals(other.curBossBuffs)) + && (!hasCurStoryBuffs() || curStoryBuffs.equals(other.curStoryBuffs)); } - - public void writeTo(ProtoSink output) throws IOException { - if ((this.bitField0_ & 0x1) != 0) { - output.writeRawByte((byte)66); - output.writeMessageNoTag(this.curBossBuffs); - } - if ((this.bitField0_ & 0x2) != 0) { - output.writeRawByte((byte)74); - output.writeMessageNoTag(this.curStoryBuffs); - } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(curBossBuffs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(curStoryBuffs); + } } - + + @Override protected int computeSerializedSize() { int size = 0; - if ((this.bitField0_ & 0x1) != 0) - size += 1 + ProtoSink.computeMessageSizeNoTag(this.curBossBuffs); - if ((this.bitField0_ & 0x2) != 0) - size += 1 + ProtoSink.computeMessageSizeNoTag(this.curStoryBuffs); + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(curBossBuffs); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(curStoryBuffs); + } return size; } - - public ChallengeStoryInfo mergeFrom(ProtoSource input) throws IOException { + + @Override + @SuppressWarnings("fallthrough") + public ChallengeStoryInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 66: - input.readMessage(this.curBossBuffs); - this.bitField0_ |= 0x1; + case 18: { + // curBossBuffs + clearStoryInfoOtherCurBossBuffs(); + input.readMessage(curBossBuffs); + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) - continue; - case 74: - input.readMessage(this.curStoryBuffs); - this.bitField0_ |= 0x2; + if (tag != 50) { + break; + } + } + case 50: { + // curStoryBuffs + clearStoryInfoOtherCurStoryBuffs(); + input.readMessage(curStoryBuffs); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 0) - continue; - case 0: + if (tag != 0) { + break; + } + } + case 0: { return this; - } - if (!input.skipField(tag)) - return this; - tag = input.readTag(); - } + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } } - - public void writeTo(JsonSink output) throws IOException { + + @Override + public void writeTo(final JsonSink output) throws IOException { output.beginObject(); - if ((this.bitField0_ & 0x1) != 0) - output.writeMessage(FieldNames.curBossBuffs, this.curBossBuffs); - if ((this.bitField0_ & 0x2) != 0) - output.writeMessage(FieldNames.curStoryBuffs, this.curStoryBuffs); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.curBossBuffs, curBossBuffs); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.curStoryBuffs, curStoryBuffs); + } output.endObject(); } - - public ChallengeStoryInfo mergeFrom(JsonSource input) throws IOException { - if (!input.beginObject()) - return this; + + @Override + public ChallengeStoryInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } while (!input.isAtEnd()) { switch (input.readFieldHash()) { case -1632186189: - case -340377971: + case -340377971: { if (input.isAtField(FieldNames.curBossBuffs)) { if (!input.trySkipNullValue()) { - input.readMessage(this.curBossBuffs); - this.bitField0_ |= 0x1; - } - continue; - } - input.skipUnknownField(); - continue; - case -738440393: + clearStoryInfoOtherCurBossBuffs(); + input.readMessage(curBossBuffs); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -587091733: + case -738440393: { if (input.isAtField(FieldNames.curStoryBuffs)) { if (!input.trySkipNullValue()) { - input.readMessage(this.curStoryBuffs); - this.bitField0_ |= 0x2; - } - continue; - } + clearStoryInfoOtherCurStoryBuffs(); + input.readMessage(curStoryBuffs); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { input.skipUnknownField(); - continue; - } - input.skipUnknownField(); - } + break; + } + } + } input.endObject(); return this; } - + + @Override public ChallengeStoryInfo clone() { - return (new ChallengeStoryInfo()).copyFrom(this); + return new ChallengeStoryInfo().copyFrom(this); } - + + @Override public boolean isEmpty() { - return (this.bitField0_ == 0); + return ((bitField0_) == 0); } - - public static ChallengeStoryInfo parseFrom(byte[] data) throws InvalidProtocolBufferException { - return (ChallengeStoryInfo)((ChallengeStoryInfo)ProtoMessage.mergeFrom(new ChallengeStoryInfo(), data)).checkInitialized(); + + public static ChallengeStoryInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChallengeStoryInfo(), data).checkInitialized(); } - - public static ChallengeStoryInfo parseFrom(ProtoSource input) throws IOException { - return (ChallengeStoryInfo)((ChallengeStoryInfo)ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input)).checkInitialized(); + + public static ChallengeStoryInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input).checkInitialized(); } - - public static ChallengeStoryInfo parseFrom(JsonSource input) throws IOException { - return (ChallengeStoryInfo)((ChallengeStoryInfo)ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input)).checkInitialized(); + + public static ChallengeStoryInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChallengeStoryInfo(), input).checkInitialized(); } - + + /** + * @return factory for creating ChallengeStoryInfo messages + */ public static MessageFactory getFactory() { return ChallengeStoryInfoFactory.INSTANCE; } - + private enum ChallengeStoryInfoFactory implements MessageFactory { INSTANCE; - - public ChallengeStoryInfoOuterClass.ChallengeStoryInfo create() { - return ChallengeStoryInfoOuterClass.ChallengeStoryInfo.newInstance(); + + @Override + public ChallengeStoryInfo create() { + return ChallengeStoryInfo.newInstance(); } } - + + /** + * Contains name constants used for serializing JSON + */ static class FieldNames { static final FieldName curBossBuffs = FieldName.forField("curBossBuffs", "cur_boss_buffs"); - + static final FieldName curStoryBuffs = FieldName.forField("curStoryBuffs", "cur_story_buffs"); } } - - private enum ChallengeStoryInfoFactory implements MessageFactory { - INSTANCE; - - public ChallengeStoryInfoOuterClass.ChallengeStoryInfo create() { - return ChallengeStoryInfoOuterClass.ChallengeStoryInfo.newInstance(); - } - } - - static class FieldNames { - static final FieldName curBossBuffs = FieldName.forField("curBossBuffs", "cur_boss_buffs"); - - static final FieldName curStoryBuffs = FieldName.forField("curStoryBuffs", "cur_story_buffs"); - } } diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java index a6e5487..7b2733b 100644 --- a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 8; + * optional uint32 slot = 3; */ private int slot; @@ -34,7 +34,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 3; * @return whether the slot field is set */ public boolean hasSlot() { @@ -42,7 +42,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 3; * @return this */ public ChangeLineupLeaderCsReq clearSlot() { @@ -52,7 +52,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 3; * @return the slot */ public int getSlot() { @@ -60,7 +60,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 3; * @param value the slot to set * @return this */ @@ -129,7 +129,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(slot); } } @@ -150,7 +150,7 @@ public final class ChangeLineupLeaderCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 24: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java index c32aaaa..62e4ec8 100644 --- a/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangeLineupLeaderScRspOuterClass.java @@ -19,12 +19,12 @@ public final class ChangeLineupLeaderScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 8; + * optional uint32 slot = 13; */ private int slot; /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; */ private int retcode; @@ -39,7 +39,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 13; * @return whether the slot field is set */ public boolean hasSlot() { @@ -47,7 +47,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 13; * @return this */ public ChangeLineupLeaderScRsp clearSlot() { @@ -57,7 +57,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 13; * @return the slot */ public int getSlot() { @@ -65,7 +65,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 13; * @param value the slot to set * @return this */ @@ -76,7 +76,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @return this */ public ChangeLineupLeaderScRsp clearRetcode() { @@ -94,7 +94,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public final class ChangeLineupLeaderScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public final class ChangeLineupLeaderScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public final class ChangeLineupLeaderScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 104: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 112) { break; } } - case 88: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoCsReqOuterClass.java new file mode 100644 index 0000000..3af0a02 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoCsReqOuterClass.java @@ -0,0 +1,364 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class ChangePropTimelineInfoCsReqOuterClass { + /** + * Protobuf type {@code ChangePropTimelineInfoCsReq} + */ + public static final class ChangePropTimelineInfoCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 prop_entity_id = 3; + */ + private int propEntityId; + + /** + * optional .PropTimelineInfo prop_timeline_info = 11; + */ + private final PropTimelineInfoOuterClass.PropTimelineInfo propTimelineInfo = PropTimelineInfoOuterClass.PropTimelineInfo.newInstance(); + + private ChangePropTimelineInfoCsReq() { + } + + /** + * @return a new empty instance of {@code ChangePropTimelineInfoCsReq} + */ + public static ChangePropTimelineInfoCsReq newInstance() { + return new ChangePropTimelineInfoCsReq(); + } + + /** + * optional uint32 prop_entity_id = 3; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 prop_entity_id = 3; + * @return this + */ + public ChangePropTimelineInfoCsReq clearPropEntityId() { + bitField0_ &= ~0x00000001; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 3; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 3; + * @param value the propEntityId to set + * @return this + */ + public ChangePropTimelineInfoCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000001; + propEntityId = value; + return this; + } + + /** + * optional .PropTimelineInfo prop_timeline_info = 11; + * @return whether the propTimelineInfo field is set + */ + public boolean hasPropTimelineInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .PropTimelineInfo prop_timeline_info = 11; + * @return this + */ + public ChangePropTimelineInfoCsReq clearPropTimelineInfo() { + bitField0_ &= ~0x00000002; + propTimelineInfo.clear(); + return this; + } + + /** + * optional .PropTimelineInfo prop_timeline_info = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePropTimelineInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PropTimelineInfoOuterClass.PropTimelineInfo getPropTimelineInfo() { + return propTimelineInfo; + } + + /** + * optional .PropTimelineInfo prop_timeline_info = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PropTimelineInfoOuterClass.PropTimelineInfo getMutablePropTimelineInfo() { + bitField0_ |= 0x00000002; + return propTimelineInfo; + } + + /** + * optional .PropTimelineInfo prop_timeline_info = 11; + * @param value the propTimelineInfo to set + * @return this + */ + public ChangePropTimelineInfoCsReq setPropTimelineInfo( + final PropTimelineInfoOuterClass.PropTimelineInfo value) { + bitField0_ |= 0x00000002; + propTimelineInfo.copyFrom(value); + return this; + } + + @Override + public ChangePropTimelineInfoCsReq copyFrom(final ChangePropTimelineInfoCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + propEntityId = other.propEntityId; + propTimelineInfo.copyFrom(other.propTimelineInfo); + } + return this; + } + + @Override + public ChangePropTimelineInfoCsReq mergeFrom(final ChangePropTimelineInfoCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); + } + if (other.hasPropTimelineInfo()) { + getMutablePropTimelineInfo().mergeFrom(other.propTimelineInfo); + } + return this; + } + + @Override + public ChangePropTimelineInfoCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propEntityId = 0; + propTimelineInfo.clear(); + return this; + } + + @Override + public ChangePropTimelineInfoCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propTimelineInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChangePropTimelineInfoCsReq)) { + return false; + } + ChangePropTimelineInfoCsReq other = (ChangePropTimelineInfoCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasPropTimelineInfo() || propTimelineInfo.equals(other.propTimelineInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(propTimelineInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(propTimelineInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChangePropTimelineInfoCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // propTimelineInfo + input.readMessage(propTimelineInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.propEntityId, propEntityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.propTimelineInfo, propTimelineInfo); + } + output.endObject(); + } + + @Override + public ChangePropTimelineInfoCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { + if (!input.trySkipNullValue()) { + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1563729810: + case 1904612880: { + if (input.isAtField(FieldNames.propTimelineInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(propTimelineInfo); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChangePropTimelineInfoCsReq clone() { + return new ChangePropTimelineInfoCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChangePropTimelineInfoCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChangePropTimelineInfoCsReq(), data).checkInitialized(); + } + + public static ChangePropTimelineInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new ChangePropTimelineInfoCsReq(), input).checkInitialized(); + } + + public static ChangePropTimelineInfoCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChangePropTimelineInfoCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating ChangePropTimelineInfoCsReq messages + */ + public static MessageFactory getFactory() { + return ChangePropTimelineInfoCsReqFactory.INSTANCE; + } + + private enum ChangePropTimelineInfoCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public ChangePropTimelineInfoCsReq create() { + return ChangePropTimelineInfoCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName propTimelineInfo = FieldName.forField("propTimelineInfo", "prop_timeline_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoScRspOuterClass.java similarity index 55% rename from src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoScRspOuterClass.java index 0f3500d..61bcb37 100644 --- a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChangePropTimelineInfoScRspOuterClass.java @@ -11,72 +11,72 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class FinishRogueCommonDialogueScRspOuterClass { +public final class ChangePropTimelineInfoScRspOuterClass { /** - * Protobuf type {@code FinishRogueCommonDialogueScRsp} + * Protobuf type {@code ChangePropTimelineInfoScRsp} */ - public static final class FinishRogueCommonDialogueScRsp extends ProtoMessage implements Cloneable { + public static final class ChangePropTimelineInfoScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 event_unique_id = 3; + * optional uint32 prop_entity_id = 3; */ - private int eventUniqueId; + private int propEntityId; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; */ private int retcode; - private FinishRogueCommonDialogueScRsp() { + private ChangePropTimelineInfoScRsp() { } /** - * @return a new empty instance of {@code FinishRogueCommonDialogueScRsp} + * @return a new empty instance of {@code ChangePropTimelineInfoScRsp} */ - public static FinishRogueCommonDialogueScRsp newInstance() { - return new FinishRogueCommonDialogueScRsp(); + public static ChangePropTimelineInfoScRsp newInstance() { + return new ChangePropTimelineInfoScRsp(); } /** - * optional uint32 event_unique_id = 3; - * @return whether the eventUniqueId field is set + * optional uint32 prop_entity_id = 3; + * @return whether the propEntityId field is set */ - public boolean hasEventUniqueId() { + public boolean hasPropEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 event_unique_id = 3; + * optional uint32 prop_entity_id = 3; * @return this */ - public FinishRogueCommonDialogueScRsp clearEventUniqueId() { + public ChangePropTimelineInfoScRsp clearPropEntityId() { bitField0_ &= ~0x00000001; - eventUniqueId = 0; + propEntityId = 0; return this; } /** - * optional uint32 event_unique_id = 3; - * @return the eventUniqueId + * optional uint32 prop_entity_id = 3; + * @return the propEntityId */ - public int getEventUniqueId() { - return eventUniqueId; + public int getPropEntityId() { + return propEntityId; } /** - * optional uint32 event_unique_id = 3; - * @param value the eventUniqueId to set + * optional uint32 prop_entity_id = 3; + * @param value the propEntityId to set * @return this */ - public FinishRogueCommonDialogueScRsp setEventUniqueId(final int value) { + public ChangePropTimelineInfoScRsp setPropEntityId(final int value) { bitField0_ |= 0x00000001; - eventUniqueId = value; + propEntityId = value; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,17 +84,17 @@ public final class FinishRogueCommonDialogueScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return this */ - public FinishRogueCommonDialogueScRsp clearRetcode() { + public ChangePropTimelineInfoScRsp clearRetcode() { bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -102,35 +102,35 @@ public final class FinishRogueCommonDialogueScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ - public FinishRogueCommonDialogueScRsp setRetcode(final int value) { + public ChangePropTimelineInfoScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; retcode = value; return this; } @Override - public FinishRogueCommonDialogueScRsp copyFrom(final FinishRogueCommonDialogueScRsp other) { + public ChangePropTimelineInfoScRsp copyFrom(final ChangePropTimelineInfoScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - eventUniqueId = other.eventUniqueId; + propEntityId = other.propEntityId; retcode = other.retcode; } return this; } @Override - public FinishRogueCommonDialogueScRsp mergeFrom(final FinishRogueCommonDialogueScRsp other) { + public ChangePropTimelineInfoScRsp mergeFrom(final ChangePropTimelineInfoScRsp other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); + if (other.hasPropEntityId()) { + setPropEntityId(other.propEntityId); } if (other.hasRetcode()) { setRetcode(other.retcode); @@ -139,19 +139,19 @@ public final class FinishRogueCommonDialogueScRspOuterClass { } @Override - public FinishRogueCommonDialogueScRsp clear() { + public ChangePropTimelineInfoScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - eventUniqueId = 0; + propEntityId = 0; retcode = 0; return this; } @Override - public FinishRogueCommonDialogueScRsp clearQuick() { + public ChangePropTimelineInfoScRsp clearQuick() { if (isEmpty()) { return this; } @@ -165,12 +165,12 @@ public final class FinishRogueCommonDialogueScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof FinishRogueCommonDialogueScRsp)) { + if (!(o instanceof ChangePropTimelineInfoScRsp)) { return false; } - FinishRogueCommonDialogueScRsp other = (FinishRogueCommonDialogueScRsp) o; + ChangePropTimelineInfoScRsp other = (ChangePropTimelineInfoScRsp) o; return bitField0_ == other.bitField0_ - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) + && (!hasPropEntityId() || propEntityId == other.propEntityId) && (!hasRetcode() || retcode == other.retcode); } @@ -178,10 +178,10 @@ public final class FinishRogueCommonDialogueScRspOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(eventUniqueId); + output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } } @@ -190,7 +190,7 @@ public final class FinishRogueCommonDialogueScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -200,21 +200,21 @@ public final class FinishRogueCommonDialogueScRspOuterClass { @Override @SuppressWarnings("fallthrough") - public FinishRogueCommonDialogueScRsp mergeFrom(final ProtoSource input) throws IOException { + public ChangePropTimelineInfoScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 24: { - // eventUniqueId - eventUniqueId = input.readUInt32(); + // propEntityId + propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; @@ -241,7 +241,7 @@ public final class FinishRogueCommonDialogueScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + output.writeUInt32(FieldNames.propEntityId, propEntityId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -250,17 +250,17 @@ public final class FinishRogueCommonDialogueScRspOuterClass { } @Override - public FinishRogueCommonDialogueScRsp mergeFrom(final JsonSource input) throws IOException { + public ChangePropTimelineInfoScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); + propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -290,8 +290,8 @@ public final class FinishRogueCommonDialogueScRspOuterClass { } @Override - public FinishRogueCommonDialogueScRsp clone() { - return new FinishRogueCommonDialogueScRsp().copyFrom(this); + public ChangePropTimelineInfoScRsp clone() { + return new ChangePropTimelineInfoScRsp().copyFrom(this); } @Override @@ -299,34 +299,33 @@ public final class FinishRogueCommonDialogueScRspOuterClass { return ((bitField0_) == 0); } - public static FinishRogueCommonDialogueScRsp parseFrom(final byte[] data) throws + public static ChangePropTimelineInfoScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new ChangePropTimelineInfoScRsp(), data).checkInitialized(); } - public static FinishRogueCommonDialogueScRsp parseFrom(final ProtoSource input) throws + public static ChangePropTimelineInfoScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), input).checkInitialized(); + return ProtoMessage.mergeFrom(new ChangePropTimelineInfoScRsp(), input).checkInitialized(); } - public static FinishRogueCommonDialogueScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueScRsp(), input).checkInitialized(); + public static ChangePropTimelineInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChangePropTimelineInfoScRsp(), input).checkInitialized(); } /** - * @return factory for creating FinishRogueCommonDialogueScRsp messages + * @return factory for creating ChangePropTimelineInfoScRsp messages */ - public static MessageFactory getFactory() { - return FinishRogueCommonDialogueScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return ChangePropTimelineInfoScRspFactory.INSTANCE; } - private enum FinishRogueCommonDialogueScRspFactory implements MessageFactory { + private enum ChangePropTimelineInfoScRspFactory implements MessageFactory { INSTANCE; @Override - public FinishRogueCommonDialogueScRsp create() { - return FinishRogueCommonDialogueScRsp.newInstance(); + public ChangePropTimelineInfoScRsp create() { + return ChangePropTimelineInfoScRsp.newInstance(); } } @@ -334,7 +333,7 @@ public final class FinishRogueCommonDialogueScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); static final FieldName retcode = FieldName.forField("retcode"); } diff --git a/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java index a9cf44c..2c2b97d 100644 --- a/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChargerInfoOuterClass.java @@ -19,15 +19,15 @@ public final class ChargerInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 4; - */ - private int groupId; - - /** - * optional uint32 unk_int = 9; + * optional uint32 unk_int = 5; */ private int unkInt; + /** + * optional uint32 group_id = 6; + */ + private int groupId; + private ChargerInfo() { } @@ -39,62 +39,25 @@ public final class ChargerInfoOuterClass { } /** - * optional uint32 group_id = 4; - * @return whether the groupId field is set + * optional uint32 unk_int = 5; + * @return whether the unkInt field is set */ - public boolean hasGroupId() { + public boolean hasUnkInt() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 4; - * @return this - */ - public ChargerInfo clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 4; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 4; - * @param value the groupId to set - * @return this - */ - public ChargerInfo setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 unk_int = 9; - * @return whether the unkInt field is set - */ - public boolean hasUnkInt() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 unk_int = 9; + * optional uint32 unk_int = 5; * @return this */ public ChargerInfo clearUnkInt() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; unkInt = 0; return this; } /** - * optional uint32 unk_int = 9; + * optional uint32 unk_int = 5; * @return the unkInt */ public int getUnkInt() { @@ -102,23 +65,60 @@ public final class ChargerInfoOuterClass { } /** - * optional uint32 unk_int = 9; + * optional uint32 unk_int = 5; * @param value the unkInt to set * @return this */ public ChargerInfo setUnkInt(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; unkInt = value; return this; } + /** + * optional uint32 group_id = 6; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 6; + * @return this + */ + public ChargerInfo clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 6; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 6; + * @param value the groupId to set + * @return this + */ + public ChargerInfo setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + @Override public ChargerInfo copyFrom(final ChargerInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; unkInt = other.unkInt; + groupId = other.groupId; } return this; } @@ -129,12 +129,12 @@ public final class ChargerInfoOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasUnkInt()) { setUnkInt(other.unkInt); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } return this; } @@ -145,8 +145,8 @@ public final class ChargerInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; unkInt = 0; + groupId = 0; return this; } @@ -170,19 +170,19 @@ public final class ChargerInfoOuterClass { } ChargerInfo other = (ChargerInfo) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) - && (!hasUnkInt() || unkInt == other.unkInt); + && (!hasUnkInt() || unkInt == other.unkInt) + && (!hasGroupId() || groupId == other.groupId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(unkInt); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(unkInt); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(groupId); } } @@ -190,10 +190,10 @@ public final class ChargerInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } return size; } @@ -205,18 +205,18 @@ public final class ChargerInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // groupId - groupId = input.readUInt32(); + case 40: { + // unkInt + unkInt = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 48) { break; } } - case 72: { - // unkInt - unkInt = input.readUInt32(); + case 48: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class ChargerInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.unkInt, unkInt); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.unkInt, unkInt); + output.writeUInt32(FieldNames.groupId, groupId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class ChargerInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case -840508003: + case -285293790: { + if (input.isAtField(FieldNames.unkInt)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + unkInt = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class ChargerInfoOuterClass { } break; } - case -840508003: - case -285293790: { - if (input.isAtField(FieldNames.unkInt)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - unkInt = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class ChargerInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName unkInt = FieldName.forField("unkInt", "unk_int"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChatContentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatContentInfoOuterClass.java new file mode 100644 index 0000000..167ba8a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChatContentInfoOuterClass.java @@ -0,0 +1,395 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class ChatContentInfoOuterClass { + /** + * Protobuf type {@code ChatContentInfo} + */ + public static final class ChatContentInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .MsgType msg_type = 1; + */ + private int msgType; + + /** + * optional .ChatMsgInfo chat_msg = 2; + */ + private final ChatMsgInfoOuterClass.ChatMsgInfo chatMsg = ChatMsgInfoOuterClass.ChatMsgInfo.newInstance(); + + private ChatContentInfo() { + } + + /** + * @return a new empty instance of {@code ChatContentInfo} + */ + public static ChatContentInfo newInstance() { + return new ChatContentInfo(); + } + + /** + * optional .MsgType msg_type = 1; + * @return whether the msgType field is set + */ + public boolean hasMsgType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .MsgType msg_type = 1; + * @return this + */ + public ChatContentInfo clearMsgType() { + bitField0_ &= ~0x00000001; + msgType = 0; + return this; + } + + /** + * optional .MsgType msg_type = 1; + * @return the msgType + */ + public MsgTypeOuterClass.MsgType getMsgType() { + return MsgTypeOuterClass.MsgType.forNumber(msgType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link ChatContentInfo#getMsgType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getMsgTypeValue() { + return msgType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value + * can cause {@link ChatContentInfo#getMsgType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public ChatContentInfo setMsgTypeValue(final int value) { + bitField0_ |= 0x00000001; + msgType = value; + return this; + } + + /** + * optional .MsgType msg_type = 1; + * @param value the msgType to set + * @return this + */ + public ChatContentInfo setMsgType(final MsgTypeOuterClass.MsgType value) { + bitField0_ |= 0x00000001; + msgType = value.getNumber(); + return this; + } + + /** + * optional .ChatMsgInfo chat_msg = 2; + * @return whether the chatMsg field is set + */ + public boolean hasChatMsg() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChatMsgInfo chat_msg = 2; + * @return this + */ + public ChatContentInfo clearChatMsg() { + bitField0_ &= ~0x00000002; + chatMsg.clear(); + return this; + } + + /** + * optional .ChatMsgInfo chat_msg = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChatMsg()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChatMsgInfoOuterClass.ChatMsgInfo getChatMsg() { + return chatMsg; + } + + /** + * optional .ChatMsgInfo chat_msg = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChatMsgInfoOuterClass.ChatMsgInfo getMutableChatMsg() { + bitField0_ |= 0x00000002; + return chatMsg; + } + + /** + * optional .ChatMsgInfo chat_msg = 2; + * @param value the chatMsg to set + * @return this + */ + public ChatContentInfo setChatMsg(final ChatMsgInfoOuterClass.ChatMsgInfo value) { + bitField0_ |= 0x00000002; + chatMsg.copyFrom(value); + return this; + } + + @Override + public ChatContentInfo copyFrom(final ChatContentInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + msgType = other.msgType; + chatMsg.copyFrom(other.chatMsg); + } + return this; + } + + @Override + public ChatContentInfo mergeFrom(final ChatContentInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMsgType()) { + setMsgTypeValue(other.msgType); + } + if (other.hasChatMsg()) { + getMutableChatMsg().mergeFrom(other.chatMsg); + } + return this; + } + + @Override + public ChatContentInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + msgType = 0; + chatMsg.clear(); + return this; + } + + @Override + public ChatContentInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chatMsg.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChatContentInfo)) { + return false; + } + ChatContentInfo other = (ChatContentInfo) o; + return bitField0_ == other.bitField0_ + && (!hasMsgType() || msgType == other.msgType) + && (!hasChatMsg() || chatMsg.equals(other.chatMsg)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(msgType); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(chatMsg); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chatMsg); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChatContentInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // msgType + final int value = input.readInt32(); + if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { + msgType = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // chatMsg + input.readMessage(chatMsg); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.chatMsg, chatMsg); + } + output.endObject(); + } + + @Override + public ChatContentInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1343750747: + case -1283380936: { + if (input.isAtField(FieldNames.msgType)) { + if (!input.trySkipNullValue()) { + final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); + if (value != null) { + msgType = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 739097865: + case 1437728282: { + if (input.isAtField(FieldNames.chatMsg)) { + if (!input.trySkipNullValue()) { + input.readMessage(chatMsg); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChatContentInfo clone() { + return new ChatContentInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChatContentInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChatContentInfo(), data).checkInitialized(); + } + + public static ChatContentInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatContentInfo(), input).checkInitialized(); + } + + public static ChatContentInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatContentInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChatContentInfo messages + */ + public static MessageFactory getFactory() { + return ChatContentInfoFactory.INSTANCE; + } + + private enum ChatContentInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChatContentInfo create() { + return ChatContentInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName msgType = FieldName.forField("msgType", "msg_type"); + + static final FieldName chatMsg = FieldName.forField("chatMsg", "chat_msg"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousValueOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatHeaderInfoOuterClass.java similarity index 52% rename from src/generated/main/emu/lunarcore/proto/ChessRogueNousValueOuterClass.java rename to src/generated/main/emu/lunarcore/proto/ChatHeaderInfoOuterClass.java index 92779f2..62545fd 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousValueOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ChatHeaderInfoOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueNousValueOuterClass { +public final class ChatHeaderInfoOuterClass { /** - * Protobuf type {@code ChessRogueNousValue} + * Protobuf type {@code ChatHeaderInfo} */ - public static final class ChessRogueNousValue extends ProtoMessage implements Cloneable { + public static final class ChatHeaderInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 value = 6; + * optional uint32 uid = 11; */ - private int value_; + private int uid; - private ChessRogueNousValue() { + private ChatHeaderInfo() { } /** - * @return a new empty instance of {@code ChessRogueNousValue} + * @return a new empty instance of {@code ChatHeaderInfo} */ - public static ChessRogueNousValue newInstance() { - return new ChessRogueNousValue(); + public static ChatHeaderInfo newInstance() { + return new ChatHeaderInfo(); } /** - * optional uint32 value = 6; - * @return whether the value_ field is set + * optional uint32 uid = 11; + * @return whether the uid field is set */ - public boolean hasValue() { + public boolean hasUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 value = 6; + * optional uint32 uid = 11; * @return this */ - public ChessRogueNousValue clearValue() { + public ChatHeaderInfo clearUid() { bitField0_ &= ~0x00000001; - value_ = 0; + uid = 0; return this; } /** - * optional uint32 value = 6; - * @return the value_ + * optional uint32 uid = 11; + * @return the uid */ - public int getValue() { - return value_; + public int getUid() { + return uid; } /** - * optional uint32 value = 6; - * @param value the value_ to set + * optional uint32 uid = 11; + * @param value the uid to set * @return this */ - public ChessRogueNousValue setValue(final int value) { + public ChatHeaderInfo setUid(final int value) { bitField0_ |= 0x00000001; - value_ = value; + uid = value; return this; } @Override - public ChessRogueNousValue copyFrom(final ChessRogueNousValue other) { + public ChatHeaderInfo copyFrom(final ChatHeaderInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - value_ = other.value_; + uid = other.uid; } return this; } @Override - public ChessRogueNousValue mergeFrom(final ChessRogueNousValue other) { + public ChatHeaderInfo mergeFrom(final ChatHeaderInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasValue()) { - setValue(other.value_); + if (other.hasUid()) { + setUid(other.uid); } return this; } @Override - public ChessRogueNousValue clear() { + public ChatHeaderInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - value_ = 0; + uid = 0; return this; } @Override - public ChessRogueNousValue clearQuick() { + public ChatHeaderInfo clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class ChessRogueNousValueOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueNousValue)) { + if (!(o instanceof ChatHeaderInfo)) { return false; } - ChessRogueNousValue other = (ChessRogueNousValue) o; + ChatHeaderInfo other = (ChatHeaderInfo) o; return bitField0_ == other.bitField0_ - && (!hasValue() || value_ == other.value_); + && (!hasUid() || uid == other.uid); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(value_); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(uid); } } @@ -138,21 +138,21 @@ public final class ChessRogueNousValueOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueNousValue mergeFrom(final ProtoSource input) throws IOException { + public ChatHeaderInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // value_ - value_ = input.readUInt32(); + case 88: { + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,22 +177,22 @@ public final class ChessRogueNousValueOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.value_, value_); + output.writeUInt32(FieldNames.uid, uid); } output.endObject(); } @Override - public ChessRogueNousValue mergeFrom(final JsonSource input) throws IOException { + public ChatHeaderInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 111972721: { - if (input.isAtField(FieldNames.value_)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - value_ = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -211,8 +211,8 @@ public final class ChessRogueNousValueOuterClass { } @Override - public ChessRogueNousValue clone() { - return new ChessRogueNousValue().copyFrom(this); + public ChatHeaderInfo clone() { + return new ChatHeaderInfo().copyFrom(this); } @Override @@ -220,32 +220,32 @@ public final class ChessRogueNousValueOuterClass { return ((bitField0_) == 0); } - public static ChessRogueNousValue parseFrom(final byte[] data) throws + public static ChatHeaderInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousValue(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new ChatHeaderInfo(), data).checkInitialized(); } - public static ChessRogueNousValue parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousValue(), input).checkInitialized(); + public static ChatHeaderInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatHeaderInfo(), input).checkInitialized(); } - public static ChessRogueNousValue parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousValue(), input).checkInitialized(); + public static ChatHeaderInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatHeaderInfo(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueNousValue messages + * @return factory for creating ChatHeaderInfo messages */ - public static MessageFactory getFactory() { - return ChessRogueNousValueFactory.INSTANCE; + public static MessageFactory getFactory() { + return ChatHeaderInfoFactory.INSTANCE; } - private enum ChessRogueNousValueFactory implements MessageFactory { + private enum ChatHeaderInfoFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueNousValue create() { - return ChessRogueNousValue.newInstance(); + public ChatHeaderInfo create() { + return ChatHeaderInfo.newInstance(); } } @@ -253,7 +253,7 @@ public final class ChessRogueNousValueOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName value_ = FieldName.forField("value"); + static final FieldName uid = FieldName.forField("uid"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChatInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatInfoOuterClass.java new file mode 100644 index 0000000..1de5fe3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChatInfoOuterClass.java @@ -0,0 +1,477 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class ChatInfoOuterClass { + /** + * Protobuf type {@code ChatInfo} + */ + public static final class ChatInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 sent_time = 4; + */ + private long sentTime; + + /** + * optional .ChatHeaderInfo chat_header = 8; + */ + private final ChatHeaderInfoOuterClass.ChatHeaderInfo chatHeader = ChatHeaderInfoOuterClass.ChatHeaderInfo.newInstance(); + + /** + * repeated .ChatContentInfo chat_content_list = 9; + */ + private final RepeatedMessage chatContentList = RepeatedMessage.newEmptyInstance(ChatContentInfoOuterClass.ChatContentInfo.getFactory()); + + private ChatInfo() { + } + + /** + * @return a new empty instance of {@code ChatInfo} + */ + public static ChatInfo newInstance() { + return new ChatInfo(); + } + + /** + * optional uint64 sent_time = 4; + * @return whether the sentTime field is set + */ + public boolean hasSentTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 sent_time = 4; + * @return this + */ + public ChatInfo clearSentTime() { + bitField0_ &= ~0x00000001; + sentTime = 0L; + return this; + } + + /** + * optional uint64 sent_time = 4; + * @return the sentTime + */ + public long getSentTime() { + return sentTime; + } + + /** + * optional uint64 sent_time = 4; + * @param value the sentTime to set + * @return this + */ + public ChatInfo setSentTime(final long value) { + bitField0_ |= 0x00000001; + sentTime = value; + return this; + } + + /** + * optional .ChatHeaderInfo chat_header = 8; + * @return whether the chatHeader field is set + */ + public boolean hasChatHeader() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChatHeaderInfo chat_header = 8; + * @return this + */ + public ChatInfo clearChatHeader() { + bitField0_ &= ~0x00000002; + chatHeader.clear(); + return this; + } + + /** + * optional .ChatHeaderInfo chat_header = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChatHeader()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChatHeaderInfoOuterClass.ChatHeaderInfo getChatHeader() { + return chatHeader; + } + + /** + * optional .ChatHeaderInfo chat_header = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChatHeaderInfoOuterClass.ChatHeaderInfo getMutableChatHeader() { + bitField0_ |= 0x00000002; + return chatHeader; + } + + /** + * optional .ChatHeaderInfo chat_header = 8; + * @param value the chatHeader to set + * @return this + */ + public ChatInfo setChatHeader(final ChatHeaderInfoOuterClass.ChatHeaderInfo value) { + bitField0_ |= 0x00000002; + chatHeader.copyFrom(value); + return this; + } + + /** + * repeated .ChatContentInfo chat_content_list = 9; + * @return whether the chatContentList field is set + */ + public boolean hasChatContentList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ChatContentInfo chat_content_list = 9; + * @return this + */ + public ChatInfo clearChatContentList() { + bitField0_ &= ~0x00000004; + chatContentList.clear(); + return this; + } + + /** + * repeated .ChatContentInfo chat_content_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChatContentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChatContentList() { + return chatContentList; + } + + /** + * repeated .ChatContentInfo chat_content_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableChatContentList() { + bitField0_ |= 0x00000004; + return chatContentList; + } + + /** + * repeated .ChatContentInfo chat_content_list = 9; + * @param value the chatContentList to add + * @return this + */ + public ChatInfo addChatContentList(final ChatContentInfoOuterClass.ChatContentInfo value) { + bitField0_ |= 0x00000004; + chatContentList.add(value); + return this; + } + + /** + * repeated .ChatContentInfo chat_content_list = 9; + * @param values the chatContentList to add + * @return this + */ + public ChatInfo addAllChatContentList( + final ChatContentInfoOuterClass.ChatContentInfo... values) { + bitField0_ |= 0x00000004; + chatContentList.addAll(values); + return this; + } + + @Override + public ChatInfo copyFrom(final ChatInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + sentTime = other.sentTime; + chatHeader.copyFrom(other.chatHeader); + chatContentList.copyFrom(other.chatContentList); + } + return this; + } + + @Override + public ChatInfo mergeFrom(final ChatInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSentTime()) { + setSentTime(other.sentTime); + } + if (other.hasChatHeader()) { + getMutableChatHeader().mergeFrom(other.chatHeader); + } + if (other.hasChatContentList()) { + getMutableChatContentList().addAll(other.chatContentList); + } + return this; + } + + @Override + public ChatInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sentTime = 0L; + chatHeader.clear(); + chatContentList.clear(); + return this; + } + + @Override + public ChatInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chatHeader.clearQuick(); + chatContentList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChatInfo)) { + return false; + } + ChatInfo other = (ChatInfo) o; + return bitField0_ == other.bitField0_ + && (!hasSentTime() || sentTime == other.sentTime) + && (!hasChatHeader() || chatHeader.equals(other.chatHeader)) + && (!hasChatContentList() || chatContentList.equals(other.chatContentList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt64NoTag(sentTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(chatHeader); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < chatContentList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(chatContentList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(sentTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chatHeader); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * chatContentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chatContentList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChatInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // sentTime + sentTime = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // chatHeader + input.readMessage(chatHeader); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // chatContentList + tag = input.readRepeatedMessage(chatContentList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.sentTime, sentTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.chatHeader, chatHeader); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.chatContentList, chatContentList); + } + output.endObject(); + } + + @Override + public ChatInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1262226053: + case 484784916: { + if (input.isAtField(FieldNames.sentTime)) { + if (!input.trySkipNullValue()) { + sentTime = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1988984827: + case 1793218900: { + if (input.isAtField(FieldNames.chatHeader)) { + if (!input.trySkipNullValue()) { + input.readMessage(chatHeader); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1437826497: + case -305783253: { + if (input.isAtField(FieldNames.chatContentList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chatContentList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChatInfo clone() { + return new ChatInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChatInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChatInfo(), data).checkInitialized(); + } + + public static ChatInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatInfo(), input).checkInitialized(); + } + + public static ChatInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChatInfo messages + */ + public static MessageFactory getFactory() { + return ChatInfoFactory.INSTANCE; + } + + private enum ChatInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChatInfo create() { + return ChatInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName sentTime = FieldName.forField("sentTime", "sent_time"); + + static final FieldName chatHeader = FieldName.forField("chatHeader", "chat_header"); + + static final FieldName chatContentList = FieldName.forField("chatContentList", "chat_content_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChatMsgInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatMsgInfoOuterClass.java new file mode 100644 index 0000000..fdb11c4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ChatMsgInfoOuterClass.java @@ -0,0 +1,370 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.Utf8String; + +public final class ChatMsgInfoOuterClass { + /** + * Protobuf type {@code ChatMsgInfo} + */ + public static final class ChatMsgInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 emote_id = 104; + */ + private int emoteId; + + /** + * optional string chat_text = 103; + */ + private final Utf8String chatText = Utf8String.newEmptyInstance(); + + private ChatMsgInfo() { + } + + /** + * @return a new empty instance of {@code ChatMsgInfo} + */ + public static ChatMsgInfo newInstance() { + return new ChatMsgInfo(); + } + + /** + * optional uint32 emote_id = 104; + * @return whether the emoteId field is set + */ + public boolean hasEmoteId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 emote_id = 104; + * @return this + */ + public ChatMsgInfo clearEmoteId() { + bitField0_ &= ~0x00000001; + emoteId = 0; + return this; + } + + /** + * optional uint32 emote_id = 104; + * @return the emoteId + */ + public int getEmoteId() { + return emoteId; + } + + /** + * optional uint32 emote_id = 104; + * @param value the emoteId to set + * @return this + */ + public ChatMsgInfo setEmoteId(final int value) { + bitField0_ |= 0x00000001; + emoteId = value; + return this; + } + + /** + * optional string chat_text = 103; + * @return whether the chatText field is set + */ + public boolean hasChatText() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string chat_text = 103; + * @return this + */ + public ChatMsgInfo clearChatText() { + bitField0_ &= ~0x00000002; + chatText.clear(); + return this; + } + + /** + * optional string chat_text = 103; + * @return the chatText + */ + public String getChatText() { + return chatText.getString(); + } + + /** + * optional string chat_text = 103; + * @return internal {@code Utf8String} representation of chatText for reading + */ + public Utf8String getChatTextBytes() { + return this.chatText; + } + + /** + * optional string chat_text = 103; + * @return internal {@code Utf8String} representation of chatText for modifications + */ + public Utf8String getMutableChatTextBytes() { + bitField0_ |= 0x00000002; + return this.chatText; + } + + /** + * optional string chat_text = 103; + * @param value the chatText to set + * @return this + */ + public ChatMsgInfo setChatText(final CharSequence value) { + bitField0_ |= 0x00000002; + chatText.copyFrom(value); + return this; + } + + /** + * optional string chat_text = 103; + * @param value the chatText to set + * @return this + */ + public ChatMsgInfo setChatText(final Utf8String value) { + bitField0_ |= 0x00000002; + chatText.copyFrom(value); + return this; + } + + @Override + public ChatMsgInfo copyFrom(final ChatMsgInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + emoteId = other.emoteId; + chatText.copyFrom(other.chatText); + } + return this; + } + + @Override + public ChatMsgInfo mergeFrom(final ChatMsgInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEmoteId()) { + setEmoteId(other.emoteId); + } + if (other.hasChatText()) { + getMutableChatTextBytes().copyFrom(other.chatText); + } + return this; + } + + @Override + public ChatMsgInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + emoteId = 0; + chatText.clear(); + return this; + } + + @Override + public ChatMsgInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chatText.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ChatMsgInfo)) { + return false; + } + ChatMsgInfo other = (ChatMsgInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEmoteId() || emoteId == other.emoteId) + && (!hasChatText() || chatText.equals(other.chatText)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 1728); + output.writeUInt32NoTag(emoteId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 1722); + output.writeStringNoTag(chatText); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(emoteId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(chatText); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ChatMsgInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 832: { + // emoteId + emoteId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 826) { + break; + } + } + case 826: { + // chatText + input.readString(chatText); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.emoteId, emoteId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.chatText, chatText); + } + output.endObject(); + } + + @Override + public ChatMsgInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1624765261: + case 1171905858: { + if (input.isAtField(FieldNames.emoteId)) { + if (!input.trySkipNullValue()) { + emoteId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1437393061: + case 1620099508: { + if (input.isAtField(FieldNames.chatText)) { + if (!input.trySkipNullValue()) { + input.readString(chatText); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ChatMsgInfo clone() { + return new ChatMsgInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ChatMsgInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ChatMsgInfo(), data).checkInitialized(); + } + + public static ChatMsgInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatMsgInfo(), input).checkInitialized(); + } + + public static ChatMsgInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ChatMsgInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating ChatMsgInfo messages + */ + public static MessageFactory getFactory() { + return ChatMsgInfoFactory.INSTANCE; + } + + private enum ChatMsgInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public ChatMsgInfo create() { + return ChatMsgInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName emoteId = FieldName.forField("emoteId", "emote_id"); + + static final FieldName chatText = FieldName.forField("chatText", "chat_text"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java deleted file mode 100644 index dcfb439..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChatOuterClass.java +++ /dev/null @@ -1,644 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.Utf8String; - -public final class ChatOuterClass { - /** - * Protobuf type {@code Chat} - */ - public static final class Chat extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint64 sent_time = 12; - */ - private long sentTime; - - /** - * optional uint32 sender_uid = 2; - */ - private int senderUid; - - /** - * optional uint32 emote = 3; - */ - private int emote; - - /** - * optional .MsgType msg_type = 10; - */ - private int msgType; - - /** - * optional string text = 11; - */ - private final Utf8String text = Utf8String.newEmptyInstance(); - - private Chat() { - } - - /** - * @return a new empty instance of {@code Chat} - */ - public static Chat newInstance() { - return new Chat(); - } - - /** - * optional uint64 sent_time = 12; - * @return whether the sentTime field is set - */ - public boolean hasSentTime() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint64 sent_time = 12; - * @return this - */ - public Chat clearSentTime() { - bitField0_ &= ~0x00000001; - sentTime = 0L; - return this; - } - - /** - * optional uint64 sent_time = 12; - * @return the sentTime - */ - public long getSentTime() { - return sentTime; - } - - /** - * optional uint64 sent_time = 12; - * @param value the sentTime to set - * @return this - */ - public Chat setSentTime(final long value) { - bitField0_ |= 0x00000001; - sentTime = value; - return this; - } - - /** - * optional uint32 sender_uid = 2; - * @return whether the senderUid field is set - */ - public boolean hasSenderUid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 sender_uid = 2; - * @return this - */ - public Chat clearSenderUid() { - bitField0_ &= ~0x00000002; - senderUid = 0; - return this; - } - - /** - * optional uint32 sender_uid = 2; - * @return the senderUid - */ - public int getSenderUid() { - return senderUid; - } - - /** - * optional uint32 sender_uid = 2; - * @param value the senderUid to set - * @return this - */ - public Chat setSenderUid(final int value) { - bitField0_ |= 0x00000002; - senderUid = value; - return this; - } - - /** - * optional uint32 emote = 3; - * @return whether the emote field is set - */ - public boolean hasEmote() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 emote = 3; - * @return this - */ - public Chat clearEmote() { - bitField0_ &= ~0x00000004; - emote = 0; - return this; - } - - /** - * optional uint32 emote = 3; - * @return the emote - */ - public int getEmote() { - return emote; - } - - /** - * optional uint32 emote = 3; - * @param value the emote to set - * @return this - */ - public Chat setEmote(final int value) { - bitField0_ |= 0x00000004; - emote = value; - return this; - } - - /** - * optional .MsgType msg_type = 10; - * @return whether the msgType field is set - */ - public boolean hasMsgType() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .MsgType msg_type = 10; - * @return this - */ - public Chat clearMsgType() { - bitField0_ &= ~0x00000008; - msgType = 0; - return this; - } - - /** - * optional .MsgType msg_type = 10; - * @return the msgType - */ - public MsgTypeOuterClass.MsgType getMsgType() { - return MsgTypeOuterClass.MsgType.forNumber(msgType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link Chat#getMsgType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getMsgTypeValue() { - return msgType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value - * can cause {@link Chat#getMsgType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public Chat setMsgTypeValue(final int value) { - bitField0_ |= 0x00000008; - msgType = value; - return this; - } - - /** - * optional .MsgType msg_type = 10; - * @param value the msgType to set - * @return this - */ - public Chat setMsgType(final MsgTypeOuterClass.MsgType value) { - bitField0_ |= 0x00000008; - msgType = value.getNumber(); - return this; - } - - /** - * optional string text = 11; - * @return whether the text field is set - */ - public boolean hasText() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional string text = 11; - * @return this - */ - public Chat clearText() { - bitField0_ &= ~0x00000010; - text.clear(); - return this; - } - - /** - * optional string text = 11; - * @return the text - */ - public String getText() { - return text.getString(); - } - - /** - * optional string text = 11; - * @return internal {@code Utf8String} representation of text for reading - */ - public Utf8String getTextBytes() { - return this.text; - } - - /** - * optional string text = 11; - * @return internal {@code Utf8String} representation of text for modifications - */ - public Utf8String getMutableTextBytes() { - bitField0_ |= 0x00000010; - return this.text; - } - - /** - * optional string text = 11; - * @param value the text to set - * @return this - */ - public Chat setText(final CharSequence value) { - bitField0_ |= 0x00000010; - text.copyFrom(value); - return this; - } - - /** - * optional string text = 11; - * @param value the text to set - * @return this - */ - public Chat setText(final Utf8String value) { - bitField0_ |= 0x00000010; - text.copyFrom(value); - return this; - } - - @Override - public Chat copyFrom(final Chat other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - sentTime = other.sentTime; - senderUid = other.senderUid; - emote = other.emote; - msgType = other.msgType; - text.copyFrom(other.text); - } - return this; - } - - @Override - public Chat mergeFrom(final Chat other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSentTime()) { - setSentTime(other.sentTime); - } - if (other.hasSenderUid()) { - setSenderUid(other.senderUid); - } - if (other.hasEmote()) { - setEmote(other.emote); - } - if (other.hasMsgType()) { - setMsgTypeValue(other.msgType); - } - if (other.hasText()) { - getMutableTextBytes().copyFrom(other.text); - } - return this; - } - - @Override - public Chat clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - sentTime = 0L; - senderUid = 0; - emote = 0; - msgType = 0; - text.clear(); - return this; - } - - @Override - public Chat clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - text.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof Chat)) { - return false; - } - Chat other = (Chat) o; - return bitField0_ == other.bitField0_ - && (!hasSentTime() || sentTime == other.sentTime) - && (!hasSenderUid() || senderUid == other.senderUid) - && (!hasEmote() || emote == other.emote) - && (!hasMsgType() || msgType == other.msgType) - && (!hasText() || text.equals(other.text)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt64NoTag(sentTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(senderUid); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(emote); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeEnumNoTag(msgType); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 90); - output.writeStringNoTag(text); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt64SizeNoTag(sentTime); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(text); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public Chat mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 96: { - // sentTime - sentTime = input.readUInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // senderUid - senderUid = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // emote - emote = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // msgType - final int value = input.readInt32(); - if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { - msgType = value; - bitField0_ |= 0x00000008; - } - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // text - input.readString(text); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt64(FieldNames.sentTime, sentTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.senderUid, senderUid); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.emote, emote); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeString(FieldNames.text, text); - } - output.endObject(); - } - - @Override - public Chat mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1262226053: - case 484784916: { - if (input.isAtField(FieldNames.sentTime)) { - if (!input.trySkipNullValue()) { - sentTime = input.readUInt64(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 32180699: - case 997911366: { - if (input.isAtField(FieldNames.senderUid)) { - if (!input.trySkipNullValue()) { - senderUid = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 96633208: { - if (input.isAtField(FieldNames.emote)) { - if (!input.trySkipNullValue()) { - emote = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1343750747: - case -1283380936: { - if (input.isAtField(FieldNames.msgType)) { - if (!input.trySkipNullValue()) { - final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); - if (value != null) { - msgType = value.getNumber(); - bitField0_ |= 0x00000008; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 3556653: { - if (input.isAtField(FieldNames.text)) { - if (!input.trySkipNullValue()) { - input.readString(text); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public Chat clone() { - return new Chat().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static Chat parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new Chat(), data).checkInitialized(); - } - - public static Chat parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new Chat(), input).checkInitialized(); - } - - public static Chat parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new Chat(), input).checkInitialized(); - } - - /** - * @return factory for creating Chat messages - */ - public static MessageFactory getFactory() { - return ChatFactory.INSTANCE; - } - - private enum ChatFactory implements MessageFactory { - INSTANCE; - - @Override - public Chat create() { - return Chat.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName sentTime = FieldName.forField("sentTime", "sent_time"); - - static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); - - static final FieldName emote = FieldName.forField("emote"); - - static final FieldName msgType = FieldName.forField("msgType", "msg_type"); - - static final FieldName text = FieldName.forField("text"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueAvatarInfoOuterClass.java deleted file mode 100644 index 1bcf5c7..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueAvatarInfoOuterClass.java +++ /dev/null @@ -1,400 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueAvatarInfoOuterClass { - /** - * Protobuf type {@code ChessRogueAvatarInfo} - */ - public static final class ChessRogueAvatarInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueAvatarReviveCost revive_cost = 3; - */ - private final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost reviveCost = RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost.newInstance(); - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - */ - private final RepeatedMessage chessRogueAvatar = RepeatedMessage.newEmptyInstance(ChessRogueAvatarOuterClass.ChessRogueAvatar.getFactory()); - - private ChessRogueAvatarInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueAvatarInfo} - */ - public static ChessRogueAvatarInfo newInstance() { - return new ChessRogueAvatarInfo(); - } - - /** - * optional .RogueAvatarReviveCost revive_cost = 3; - * @return whether the reviveCost field is set - */ - public boolean hasReviveCost() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueAvatarReviveCost revive_cost = 3; - * @return this - */ - public ChessRogueAvatarInfo clearReviveCost() { - bitField0_ &= ~0x00000001; - reviveCost.clear(); - return this; - } - - /** - * optional .RogueAvatarReviveCost revive_cost = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableReviveCost()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getReviveCost() { - return reviveCost; - } - - /** - * optional .RogueAvatarReviveCost revive_cost = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost getMutableReviveCost() { - bitField0_ |= 0x00000001; - return reviveCost; - } - - /** - * optional .RogueAvatarReviveCost revive_cost = 3; - * @param value the reviveCost to set - * @return this - */ - public ChessRogueAvatarInfo setReviveCost( - final RogueAvatarReviveCostOuterClass.RogueAvatarReviveCost value) { - bitField0_ |= 0x00000001; - reviveCost.copyFrom(value); - return this; - } - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - * @return whether the chessRogueAvatar field is set - */ - public boolean hasChessRogueAvatar() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - * @return this - */ - public ChessRogueAvatarInfo clearChessRogueAvatar() { - bitField0_ &= ~0x00000002; - chessRogueAvatar.clear(); - return this; - } - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableChessRogueAvatar()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getChessRogueAvatar() { - return chessRogueAvatar; - } - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableChessRogueAvatar( - ) { - bitField0_ |= 0x00000002; - return chessRogueAvatar; - } - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - * @param value the chessRogueAvatar to add - * @return this - */ - public ChessRogueAvatarInfo addChessRogueAvatar( - final ChessRogueAvatarOuterClass.ChessRogueAvatar value) { - bitField0_ |= 0x00000002; - chessRogueAvatar.add(value); - return this; - } - - /** - * repeated .ChessRogueAvatar chess_rogue_avatar = 5; - * @param values the chessRogueAvatar to add - * @return this - */ - public ChessRogueAvatarInfo addAllChessRogueAvatar( - final ChessRogueAvatarOuterClass.ChessRogueAvatar... values) { - bitField0_ |= 0x00000002; - chessRogueAvatar.addAll(values); - return this; - } - - @Override - public ChessRogueAvatarInfo copyFrom(final ChessRogueAvatarInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - reviveCost.copyFrom(other.reviveCost); - chessRogueAvatar.copyFrom(other.chessRogueAvatar); - } - return this; - } - - @Override - public ChessRogueAvatarInfo mergeFrom(final ChessRogueAvatarInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasReviveCost()) { - getMutableReviveCost().mergeFrom(other.reviveCost); - } - if (other.hasChessRogueAvatar()) { - getMutableChessRogueAvatar().addAll(other.chessRogueAvatar); - } - return this; - } - - @Override - public ChessRogueAvatarInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - reviveCost.clear(); - chessRogueAvatar.clear(); - return this; - } - - @Override - public ChessRogueAvatarInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - reviveCost.clearQuick(); - chessRogueAvatar.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueAvatarInfo)) { - return false; - } - ChessRogueAvatarInfo other = (ChessRogueAvatarInfo) o; - return bitField0_ == other.bitField0_ - && (!hasReviveCost() || reviveCost.equals(other.reviveCost)) - && (!hasChessRogueAvatar() || chessRogueAvatar.equals(other.chessRogueAvatar)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(reviveCost); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < chessRogueAvatar.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(chessRogueAvatar.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(reviveCost); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * chessRogueAvatar.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chessRogueAvatar); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueAvatarInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 26: { - // reviveCost - input.readMessage(reviveCost); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // chessRogueAvatar - tag = input.readRepeatedMessage(chessRogueAvatar, tag); - bitField0_ |= 0x00000002; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.reviveCost, reviveCost); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.chessRogueAvatar, chessRogueAvatar); - } - output.endObject(); - } - - @Override - public ChessRogueAvatarInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1426560318: - case -1248199561: { - if (input.isAtField(FieldNames.reviveCost)) { - if (!input.trySkipNullValue()) { - input.readMessage(reviveCost); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2052177741: - case 1901902397: { - if (input.isAtField(FieldNames.chessRogueAvatar)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(chessRogueAvatar); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueAvatarInfo clone() { - return new ChessRogueAvatarInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueAvatarInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueAvatarInfo(), data).checkInitialized(); - } - - public static ChessRogueAvatarInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueAvatarInfo(), input).checkInitialized(); - } - - public static ChessRogueAvatarInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueAvatarInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueAvatarInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueAvatarInfoFactory.INSTANCE; - } - - private enum ChessRogueAvatarInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueAvatarInfo create() { - return ChessRogueAvatarInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName reviveCost = FieldName.forField("reviveCost", "revive_cost"); - - static final FieldName chessRogueAvatar = FieldName.forField("chessRogueAvatar", "chess_rogue_avatar"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueBuffInfoOuterClass.java deleted file mode 100644 index ea6e0e8..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffInfoOuterClass.java +++ /dev/null @@ -1,282 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueBuffInfoOuterClass { - /** - * Protobuf type {@code ChessRogueBuffInfo} - */ - public static final class ChessRogueBuffInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRogueBuffData buff_data = 12; - */ - private final ChessRogueBuffDataOuterClass.ChessRogueBuffData buffData = ChessRogueBuffDataOuterClass.ChessRogueBuffData.newInstance(); - - private ChessRogueBuffInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueBuffInfo} - */ - public static ChessRogueBuffInfo newInstance() { - return new ChessRogueBuffInfo(); - } - - /** - * optional .ChessRogueBuffData buff_data = 12; - * @return whether the buffData field is set - */ - public boolean hasBuffData() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRogueBuffData buff_data = 12; - * @return this - */ - public ChessRogueBuffInfo clearBuffData() { - bitField0_ &= ~0x00000001; - buffData.clear(); - return this; - } - - /** - * optional .ChessRogueBuffData buff_data = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueBuffDataOuterClass.ChessRogueBuffData getBuffData() { - return buffData; - } - - /** - * optional .ChessRogueBuffData buff_data = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueBuffDataOuterClass.ChessRogueBuffData getMutableBuffData() { - bitField0_ |= 0x00000001; - return buffData; - } - - /** - * optional .ChessRogueBuffData buff_data = 12; - * @param value the buffData to set - * @return this - */ - public ChessRogueBuffInfo setBuffData( - final ChessRogueBuffDataOuterClass.ChessRogueBuffData value) { - bitField0_ |= 0x00000001; - buffData.copyFrom(value); - return this; - } - - @Override - public ChessRogueBuffInfo copyFrom(final ChessRogueBuffInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffData.copyFrom(other.buffData); - } - return this; - } - - @Override - public ChessRogueBuffInfo mergeFrom(final ChessRogueBuffInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffData()) { - getMutableBuffData().mergeFrom(other.buffData); - } - return this; - } - - @Override - public ChessRogueBuffInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffData.clear(); - return this; - } - - @Override - public ChessRogueBuffInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffData.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueBuffInfo)) { - return false; - } - ChessRogueBuffInfo other = (ChessRogueBuffInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBuffData() || buffData.equals(other.buffData)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(buffData); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffData); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueBuffInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 98: { - // buffData - input.readMessage(buffData); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.buffData, buffData); - } - output.endObject(); - } - - @Override - public ChessRogueBuffInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1523035491: - case 55546902: { - if (input.isAtField(FieldNames.buffData)) { - if (!input.trySkipNullValue()) { - input.readMessage(buffData); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueBuffInfo clone() { - return new ChessRogueBuffInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueBuffInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueBuffInfo(), data).checkInitialized(); - } - - public static ChessRogueBuffInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueBuffInfo(), input).checkInitialized(); - } - - public static ChessRogueBuffInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueBuffInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueBuffInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueBuffInfoFactory.INSTANCE; - } - - private enum ChessRogueBuffInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueBuffInfo create() { - return ChessRogueBuffInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffData = FieldName.forField("buffData", "buff_data"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCellInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCellInfoOuterClass.java deleted file mode 100644 index 60de87d..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueCellInfoOuterClass.java +++ /dev/null @@ -1,393 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueCellInfoOuterClass { - /** - * Protobuf type {@code ChessRogueCellInfo} - */ - public static final class ChessRogueCellInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  61
-     * 
- * - * optional uint32 BIEJGDGAOBL = 8; - */ - private int bIEJGDGAOBL; - - /** - * repeated .ChessRogueCell query = 1; - */ - private final RepeatedMessage query = RepeatedMessage.newEmptyInstance(ChessRogueCellOuterClass.ChessRogueCell.getFactory()); - - private ChessRogueCellInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueCellInfo} - */ - public static ChessRogueCellInfo newInstance() { - return new ChessRogueCellInfo(); - } - - /** - *
-     *  61
-     * 
- * - * optional uint32 BIEJGDGAOBL = 8; - * @return whether the bIEJGDGAOBL field is set - */ - public boolean hasBIEJGDGAOBL() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  61
-     * 
- * - * optional uint32 BIEJGDGAOBL = 8; - * @return this - */ - public ChessRogueCellInfo clearBIEJGDGAOBL() { - bitField0_ &= ~0x00000001; - bIEJGDGAOBL = 0; - return this; - } - - /** - *
-     *  61
-     * 
- * - * optional uint32 BIEJGDGAOBL = 8; - * @return the bIEJGDGAOBL - */ - public int getBIEJGDGAOBL() { - return bIEJGDGAOBL; - } - - /** - *
-     *  61
-     * 
- * - * optional uint32 BIEJGDGAOBL = 8; - * @param value the bIEJGDGAOBL to set - * @return this - */ - public ChessRogueCellInfo setBIEJGDGAOBL(final int value) { - bitField0_ |= 0x00000001; - bIEJGDGAOBL = value; - return this; - } - - /** - * repeated .ChessRogueCell query = 1; - * @return whether the query field is set - */ - public boolean hasQuery() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .ChessRogueCell query = 1; - * @return this - */ - public ChessRogueCellInfo clearQuery() { - bitField0_ &= ~0x00000002; - query.clear(); - return this; - } - - /** - * repeated .ChessRogueCell query = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableQuery()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getQuery() { - return query; - } - - /** - * repeated .ChessRogueCell query = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableQuery() { - bitField0_ |= 0x00000002; - return query; - } - - /** - * repeated .ChessRogueCell query = 1; - * @param value the query to add - * @return this - */ - public ChessRogueCellInfo addQuery(final ChessRogueCellOuterClass.ChessRogueCell value) { - bitField0_ |= 0x00000002; - query.add(value); - return this; - } - - /** - * repeated .ChessRogueCell query = 1; - * @param values the query to add - * @return this - */ - public ChessRogueCellInfo addAllQuery(final ChessRogueCellOuterClass.ChessRogueCell... values) { - bitField0_ |= 0x00000002; - query.addAll(values); - return this; - } - - @Override - public ChessRogueCellInfo copyFrom(final ChessRogueCellInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - bIEJGDGAOBL = other.bIEJGDGAOBL; - query.copyFrom(other.query); - } - return this; - } - - @Override - public ChessRogueCellInfo mergeFrom(final ChessRogueCellInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBIEJGDGAOBL()) { - setBIEJGDGAOBL(other.bIEJGDGAOBL); - } - if (other.hasQuery()) { - getMutableQuery().addAll(other.query); - } - return this; - } - - @Override - public ChessRogueCellInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - bIEJGDGAOBL = 0; - query.clear(); - return this; - } - - @Override - public ChessRogueCellInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - query.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueCellInfo)) { - return false; - } - ChessRogueCellInfo other = (ChessRogueCellInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBIEJGDGAOBL() || bIEJGDGAOBL == other.bIEJGDGAOBL) - && (!hasQuery() || query.equals(other.query)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(bIEJGDGAOBL); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < query.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(query.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bIEJGDGAOBL); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * query.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(query); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueCellInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 64: { - // bIEJGDGAOBL - bIEJGDGAOBL = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // query - tag = input.readRepeatedMessage(query, tag); - bitField0_ |= 0x00000002; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.bIEJGDGAOBL, bIEJGDGAOBL); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.query, query); - } - output.endObject(); - } - - @Override - public ChessRogueCellInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 760968790: { - if (input.isAtField(FieldNames.bIEJGDGAOBL)) { - if (!input.trySkipNullValue()) { - bIEJGDGAOBL = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 107944136: { - if (input.isAtField(FieldNames.query)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(query); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueCellInfo clone() { - return new ChessRogueCellInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueCellInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueCellInfo(), data).checkInitialized(); - } - - public static ChessRogueCellInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCellInfo(), input).checkInitialized(); - } - - public static ChessRogueCellInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCellInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueCellInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueCellInfoFactory.INSTANCE; - } - - private enum ChessRogueCellInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueCellInfo create() { - return ChessRogueCellInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName bIEJGDGAOBL = FieldName.forField("BIEJGDGAOBL"); - - static final FieldName query = FieldName.forField("query"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCellOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCellOuterClass.java deleted file mode 100644 index 5182948..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueCellOuterClass.java +++ /dev/null @@ -1,1184 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class ChessRogueCellOuterClass { - /** - * Protobuf type {@code ChessRogueCell} - */ - public static final class ChessRogueCell extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 entrance_id = 1; - */ - private int entranceId; - - /** - * optional uint32 NNMNHHPJBDB = 2; - */ - private int nNMNHHPJBDB; - - /** - * optional uint32 NLBGDNLIONI = 3; - */ - private int nLBGDNLIONI; - - /** - * optional uint32 FOKKJJADPEA = 5; - */ - private int fOKKJJADPEA; - - /** - *
-     *  5, 3
-     * 
- * - * optional uint32 PNKFAINKKCE = 7; - */ - private int pNKFAINKKCE; - - /** - * optional uint32 cell_id = 9; - */ - private int cellId; - - /** - *
-     *  7, 4
-     * 
- * - * optional uint32 JLOBGDKNJLN = 10; - */ - private int jLOBGDKNJLN; - - /** - * optional uint32 new_room_id = 11; - */ - private int newRoomId; - - /** - *
-     * AKNBDONHPPM chess_rogue_info = 14;
-     * 
- * - * optional bool PMBLMGDFGAN = 6; - */ - private boolean pMBLMGDFGAN; - - /** - *
-     *  true
-     * 
- * - * optional bool is_unlocked = 8; - */ - private boolean isUnlocked; - - /** - * repeated uint32 IIJOCONHKND = 4; - */ - private final RepeatedInt iIJOCONHKND = RepeatedInt.newEmptyInstance(); - - private ChessRogueCell() { - } - - /** - * @return a new empty instance of {@code ChessRogueCell} - */ - public static ChessRogueCell newInstance() { - return new ChessRogueCell(); - } - - /** - * optional uint32 entrance_id = 1; - * @return whether the entranceId field is set - */ - public boolean hasEntranceId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 entrance_id = 1; - * @return this - */ - public ChessRogueCell clearEntranceId() { - bitField0_ &= ~0x00000001; - entranceId = 0; - return this; - } - - /** - * optional uint32 entrance_id = 1; - * @return the entranceId - */ - public int getEntranceId() { - return entranceId; - } - - /** - * optional uint32 entrance_id = 1; - * @param value the entranceId to set - * @return this - */ - public ChessRogueCell setEntranceId(final int value) { - bitField0_ |= 0x00000001; - entranceId = value; - return this; - } - - /** - * optional uint32 NNMNHHPJBDB = 2; - * @return whether the nNMNHHPJBDB field is set - */ - public boolean hasNNMNHHPJBDB() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 NNMNHHPJBDB = 2; - * @return this - */ - public ChessRogueCell clearNNMNHHPJBDB() { - bitField0_ &= ~0x00000002; - nNMNHHPJBDB = 0; - return this; - } - - /** - * optional uint32 NNMNHHPJBDB = 2; - * @return the nNMNHHPJBDB - */ - public int getNNMNHHPJBDB() { - return nNMNHHPJBDB; - } - - /** - * optional uint32 NNMNHHPJBDB = 2; - * @param value the nNMNHHPJBDB to set - * @return this - */ - public ChessRogueCell setNNMNHHPJBDB(final int value) { - bitField0_ |= 0x00000002; - nNMNHHPJBDB = value; - return this; - } - - /** - * optional uint32 NLBGDNLIONI = 3; - * @return whether the nLBGDNLIONI field is set - */ - public boolean hasNLBGDNLIONI() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 NLBGDNLIONI = 3; - * @return this - */ - public ChessRogueCell clearNLBGDNLIONI() { - bitField0_ &= ~0x00000004; - nLBGDNLIONI = 0; - return this; - } - - /** - * optional uint32 NLBGDNLIONI = 3; - * @return the nLBGDNLIONI - */ - public int getNLBGDNLIONI() { - return nLBGDNLIONI; - } - - /** - * optional uint32 NLBGDNLIONI = 3; - * @param value the nLBGDNLIONI to set - * @return this - */ - public ChessRogueCell setNLBGDNLIONI(final int value) { - bitField0_ |= 0x00000004; - nLBGDNLIONI = value; - return this; - } - - /** - * optional uint32 FOKKJJADPEA = 5; - * @return whether the fOKKJJADPEA field is set - */ - public boolean hasFOKKJJADPEA() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 FOKKJJADPEA = 5; - * @return this - */ - public ChessRogueCell clearFOKKJJADPEA() { - bitField0_ &= ~0x00000008; - fOKKJJADPEA = 0; - return this; - } - - /** - * optional uint32 FOKKJJADPEA = 5; - * @return the fOKKJJADPEA - */ - public int getFOKKJJADPEA() { - return fOKKJJADPEA; - } - - /** - * optional uint32 FOKKJJADPEA = 5; - * @param value the fOKKJJADPEA to set - * @return this - */ - public ChessRogueCell setFOKKJJADPEA(final int value) { - bitField0_ |= 0x00000008; - fOKKJJADPEA = value; - return this; - } - - /** - *
-     *  5, 3
-     * 
- * - * optional uint32 PNKFAINKKCE = 7; - * @return whether the pNKFAINKKCE field is set - */ - public boolean hasPNKFAINKKCE() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     *  5, 3
-     * 
- * - * optional uint32 PNKFAINKKCE = 7; - * @return this - */ - public ChessRogueCell clearPNKFAINKKCE() { - bitField0_ &= ~0x00000010; - pNKFAINKKCE = 0; - return this; - } - - /** - *
-     *  5, 3
-     * 
- * - * optional uint32 PNKFAINKKCE = 7; - * @return the pNKFAINKKCE - */ - public int getPNKFAINKKCE() { - return pNKFAINKKCE; - } - - /** - *
-     *  5, 3
-     * 
- * - * optional uint32 PNKFAINKKCE = 7; - * @param value the pNKFAINKKCE to set - * @return this - */ - public ChessRogueCell setPNKFAINKKCE(final int value) { - bitField0_ |= 0x00000010; - pNKFAINKKCE = value; - return this; - } - - /** - * optional uint32 cell_id = 9; - * @return whether the cellId field is set - */ - public boolean hasCellId() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 cell_id = 9; - * @return this - */ - public ChessRogueCell clearCellId() { - bitField0_ &= ~0x00000020; - cellId = 0; - return this; - } - - /** - * optional uint32 cell_id = 9; - * @return the cellId - */ - public int getCellId() { - return cellId; - } - - /** - * optional uint32 cell_id = 9; - * @param value the cellId to set - * @return this - */ - public ChessRogueCell setCellId(final int value) { - bitField0_ |= 0x00000020; - cellId = value; - return this; - } - - /** - *
-     *  7, 4
-     * 
- * - * optional uint32 JLOBGDKNJLN = 10; - * @return whether the jLOBGDKNJLN field is set - */ - public boolean hasJLOBGDKNJLN() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - *
-     *  7, 4
-     * 
- * - * optional uint32 JLOBGDKNJLN = 10; - * @return this - */ - public ChessRogueCell clearJLOBGDKNJLN() { - bitField0_ &= ~0x00000040; - jLOBGDKNJLN = 0; - return this; - } - - /** - *
-     *  7, 4
-     * 
- * - * optional uint32 JLOBGDKNJLN = 10; - * @return the jLOBGDKNJLN - */ - public int getJLOBGDKNJLN() { - return jLOBGDKNJLN; - } - - /** - *
-     *  7, 4
-     * 
- * - * optional uint32 JLOBGDKNJLN = 10; - * @param value the jLOBGDKNJLN to set - * @return this - */ - public ChessRogueCell setJLOBGDKNJLN(final int value) { - bitField0_ |= 0x00000040; - jLOBGDKNJLN = value; - return this; - } - - /** - * optional uint32 new_room_id = 11; - * @return whether the newRoomId field is set - */ - public boolean hasNewRoomId() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional uint32 new_room_id = 11; - * @return this - */ - public ChessRogueCell clearNewRoomId() { - bitField0_ &= ~0x00000080; - newRoomId = 0; - return this; - } - - /** - * optional uint32 new_room_id = 11; - * @return the newRoomId - */ - public int getNewRoomId() { - return newRoomId; - } - - /** - * optional uint32 new_room_id = 11; - * @param value the newRoomId to set - * @return this - */ - public ChessRogueCell setNewRoomId(final int value) { - bitField0_ |= 0x00000080; - newRoomId = value; - return this; - } - - /** - *
-     * AKNBDONHPPM chess_rogue_info = 14;
-     * 
- * - * optional bool PMBLMGDFGAN = 6; - * @return whether the pMBLMGDFGAN field is set - */ - public boolean hasPMBLMGDFGAN() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - *
-     * AKNBDONHPPM chess_rogue_info = 14;
-     * 
- * - * optional bool PMBLMGDFGAN = 6; - * @return this - */ - public ChessRogueCell clearPMBLMGDFGAN() { - bitField0_ &= ~0x00000100; - pMBLMGDFGAN = false; - return this; - } - - /** - *
-     * AKNBDONHPPM chess_rogue_info = 14;
-     * 
- * - * optional bool PMBLMGDFGAN = 6; - * @return the pMBLMGDFGAN - */ - public boolean getPMBLMGDFGAN() { - return pMBLMGDFGAN; - } - - /** - *
-     * AKNBDONHPPM chess_rogue_info = 14;
-     * 
- * - * optional bool PMBLMGDFGAN = 6; - * @param value the pMBLMGDFGAN to set - * @return this - */ - public ChessRogueCell setPMBLMGDFGAN(final boolean value) { - bitField0_ |= 0x00000100; - pMBLMGDFGAN = value; - return this; - } - - /** - *
-     *  true
-     * 
- * - * optional bool is_unlocked = 8; - * @return whether the isUnlocked field is set - */ - public boolean hasIsUnlocked() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - *
-     *  true
-     * 
- * - * optional bool is_unlocked = 8; - * @return this - */ - public ChessRogueCell clearIsUnlocked() { - bitField0_ &= ~0x00000200; - isUnlocked = false; - return this; - } - - /** - *
-     *  true
-     * 
- * - * optional bool is_unlocked = 8; - * @return the isUnlocked - */ - public boolean getIsUnlocked() { - return isUnlocked; - } - - /** - *
-     *  true
-     * 
- * - * optional bool is_unlocked = 8; - * @param value the isUnlocked to set - * @return this - */ - public ChessRogueCell setIsUnlocked(final boolean value) { - bitField0_ |= 0x00000200; - isUnlocked = value; - return this; - } - - /** - * repeated uint32 IIJOCONHKND = 4; - * @return whether the iIJOCONHKND field is set - */ - public boolean hasIIJOCONHKND() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * repeated uint32 IIJOCONHKND = 4; - * @return this - */ - public ChessRogueCell clearIIJOCONHKND() { - bitField0_ &= ~0x00000400; - iIJOCONHKND.clear(); - return this; - } - - /** - * repeated uint32 IIJOCONHKND = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableIIJOCONHKND()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getIIJOCONHKND() { - return iIJOCONHKND; - } - - /** - * repeated uint32 IIJOCONHKND = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableIIJOCONHKND() { - bitField0_ |= 0x00000400; - return iIJOCONHKND; - } - - /** - * repeated uint32 IIJOCONHKND = 4; - * @param value the iIJOCONHKND to add - * @return this - */ - public ChessRogueCell addIIJOCONHKND(final int value) { - bitField0_ |= 0x00000400; - iIJOCONHKND.add(value); - return this; - } - - /** - * repeated uint32 IIJOCONHKND = 4; - * @param values the iIJOCONHKND to add - * @return this - */ - public ChessRogueCell addAllIIJOCONHKND(final int... values) { - bitField0_ |= 0x00000400; - iIJOCONHKND.addAll(values); - return this; - } - - @Override - public ChessRogueCell copyFrom(final ChessRogueCell other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - entranceId = other.entranceId; - nNMNHHPJBDB = other.nNMNHHPJBDB; - nLBGDNLIONI = other.nLBGDNLIONI; - fOKKJJADPEA = other.fOKKJJADPEA; - pNKFAINKKCE = other.pNKFAINKKCE; - cellId = other.cellId; - jLOBGDKNJLN = other.jLOBGDKNJLN; - newRoomId = other.newRoomId; - pMBLMGDFGAN = other.pMBLMGDFGAN; - isUnlocked = other.isUnlocked; - iIJOCONHKND.copyFrom(other.iIJOCONHKND); - } - return this; - } - - @Override - public ChessRogueCell mergeFrom(final ChessRogueCell other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasEntranceId()) { - setEntranceId(other.entranceId); - } - if (other.hasNNMNHHPJBDB()) { - setNNMNHHPJBDB(other.nNMNHHPJBDB); - } - if (other.hasNLBGDNLIONI()) { - setNLBGDNLIONI(other.nLBGDNLIONI); - } - if (other.hasFOKKJJADPEA()) { - setFOKKJJADPEA(other.fOKKJJADPEA); - } - if (other.hasPNKFAINKKCE()) { - setPNKFAINKKCE(other.pNKFAINKKCE); - } - if (other.hasCellId()) { - setCellId(other.cellId); - } - if (other.hasJLOBGDKNJLN()) { - setJLOBGDKNJLN(other.jLOBGDKNJLN); - } - if (other.hasNewRoomId()) { - setNewRoomId(other.newRoomId); - } - if (other.hasPMBLMGDFGAN()) { - setPMBLMGDFGAN(other.pMBLMGDFGAN); - } - if (other.hasIsUnlocked()) { - setIsUnlocked(other.isUnlocked); - } - if (other.hasIIJOCONHKND()) { - getMutableIIJOCONHKND().addAll(other.iIJOCONHKND); - } - return this; - } - - @Override - public ChessRogueCell clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - entranceId = 0; - nNMNHHPJBDB = 0; - nLBGDNLIONI = 0; - fOKKJJADPEA = 0; - pNKFAINKKCE = 0; - cellId = 0; - jLOBGDKNJLN = 0; - newRoomId = 0; - pMBLMGDFGAN = false; - isUnlocked = false; - iIJOCONHKND.clear(); - return this; - } - - @Override - public ChessRogueCell clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - iIJOCONHKND.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueCell)) { - return false; - } - ChessRogueCell other = (ChessRogueCell) o; - return bitField0_ == other.bitField0_ - && (!hasEntranceId() || entranceId == other.entranceId) - && (!hasNNMNHHPJBDB() || nNMNHHPJBDB == other.nNMNHHPJBDB) - && (!hasNLBGDNLIONI() || nLBGDNLIONI == other.nLBGDNLIONI) - && (!hasFOKKJJADPEA() || fOKKJJADPEA == other.fOKKJJADPEA) - && (!hasPNKFAINKKCE() || pNKFAINKKCE == other.pNKFAINKKCE) - && (!hasCellId() || cellId == other.cellId) - && (!hasJLOBGDKNJLN() || jLOBGDKNJLN == other.jLOBGDKNJLN) - && (!hasNewRoomId() || newRoomId == other.newRoomId) - && (!hasPMBLMGDFGAN() || pMBLMGDFGAN == other.pMBLMGDFGAN) - && (!hasIsUnlocked() || isUnlocked == other.isUnlocked) - && (!hasIIJOCONHKND() || iIJOCONHKND.equals(other.iIJOCONHKND)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(entranceId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(nNMNHHPJBDB); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(nLBGDNLIONI); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(fOKKJJADPEA); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(pNKFAINKKCE); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(cellId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(jLOBGDKNJLN); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(newRoomId); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 48); - output.writeBoolNoTag(pMBLMGDFGAN); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 64); - output.writeBoolNoTag(isUnlocked); - } - if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < iIJOCONHKND.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(iIJOCONHKND.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entranceId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(nNMNHHPJBDB); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(nLBGDNLIONI); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fOKKJJADPEA); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(pNKFAINKKCE); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(jLOBGDKNJLN); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(newRoomId); - } - if ((bitField0_ & 0x00000100) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000200) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000400) != 0) { - size += (1 * iIJOCONHKND.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iIJOCONHKND); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueCell mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // entranceId - entranceId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // nNMNHHPJBDB - nNMNHHPJBDB = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // nLBGDNLIONI - nLBGDNLIONI = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // fOKKJJADPEA - fOKKJJADPEA = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // pNKFAINKKCE - pNKFAINKKCE = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // cellId - cellId = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // jLOBGDKNJLN - jLOBGDKNJLN = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // newRoomId - newRoomId = input.readUInt32(); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // pMBLMGDFGAN - pMBLMGDFGAN = input.readBool(); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // isUnlocked - isUnlocked = input.readBool(); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // iIJOCONHKND [packed=true] - input.readPackedUInt32(iIJOCONHKND, tag); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 32: { - // iIJOCONHKND [packed=false] - tag = input.readRepeatedUInt32(iIJOCONHKND, tag); - bitField0_ |= 0x00000400; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entranceId, entranceId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.nNMNHHPJBDB, nNMNHHPJBDB); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.nLBGDNLIONI, nLBGDNLIONI); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.fOKKJJADPEA, fOKKJJADPEA); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.pNKFAINKKCE, pNKFAINKKCE); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.cellId, cellId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.jLOBGDKNJLN, jLOBGDKNJLN); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.newRoomId, newRoomId); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeBool(FieldNames.pMBLMGDFGAN, pMBLMGDFGAN); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeBool(FieldNames.isUnlocked, isUnlocked); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedUInt32(FieldNames.iIJOCONHKND, iIJOCONHKND); - } - output.endObject(); - } - - @Override - public ChessRogueCell mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1655881329: - case -207264956: { - if (input.isAtField(FieldNames.entranceId)) { - if (!input.trySkipNullValue()) { - entranceId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1801949317: { - if (input.isAtField(FieldNames.nNMNHHPJBDB)) { - if (!input.trySkipNullValue()) { - nNMNHHPJBDB = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2094582400: { - if (input.isAtField(FieldNames.nLBGDNLIONI)) { - if (!input.trySkipNullValue()) { - nLBGDNLIONI = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -994096992: { - if (input.isAtField(FieldNames.fOKKJJADPEA)) { - if (!input.trySkipNullValue()) { - fOKKJJADPEA = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1125363217: { - if (input.isAtField(FieldNames.pNKFAINKKCE)) { - if (!input.trySkipNullValue()) { - pNKFAINKKCE = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1364082147: - case 663147800: { - if (input.isAtField(FieldNames.cellId)) { - if (!input.trySkipNullValue()) { - cellId = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1027507223: { - if (input.isAtField(FieldNames.jLOBGDKNJLN)) { - if (!input.trySkipNullValue()) { - jLOBGDKNJLN = input.readUInt32(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -629039850: - case 635252576: { - if (input.isAtField(FieldNames.newRoomId)) { - if (!input.trySkipNullValue()) { - newRoomId = input.readUInt32(); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2018761905: { - if (input.isAtField(FieldNames.pMBLMGDFGAN)) { - if (!input.trySkipNullValue()) { - pMBLMGDFGAN = input.readBool(); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1004219859: - case -945979816: { - if (input.isAtField(FieldNames.isUnlocked)) { - if (!input.trySkipNullValue()) { - isUnlocked = input.readBool(); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1810533462: { - if (input.isAtField(FieldNames.iIJOCONHKND)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(iIJOCONHKND); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueCell clone() { - return new ChessRogueCell().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueCell parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueCell(), data).checkInitialized(); - } - - public static ChessRogueCell parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCell(), input).checkInitialized(); - } - - public static ChessRogueCell parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCell(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueCell messages - */ - public static MessageFactory getFactory() { - return ChessRogueCellFactory.INSTANCE; - } - - private enum ChessRogueCellFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueCell create() { - return ChessRogueCell.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName entranceId = FieldName.forField("entranceId", "entrance_id"); - - static final FieldName nNMNHHPJBDB = FieldName.forField("NNMNHHPJBDB"); - - static final FieldName nLBGDNLIONI = FieldName.forField("NLBGDNLIONI"); - - static final FieldName fOKKJJADPEA = FieldName.forField("FOKKJJADPEA"); - - static final FieldName pNKFAINKKCE = FieldName.forField("PNKFAINKKCE"); - - static final FieldName cellId = FieldName.forField("cellId", "cell_id"); - - static final FieldName jLOBGDKNJLN = FieldName.forField("JLOBGDKNJLN"); - - static final FieldName newRoomId = FieldName.forField("newRoomId", "new_room_id"); - - static final FieldName pMBLMGDFGAN = FieldName.forField("PMBLMGDFGAN"); - - static final FieldName isUnlocked = FieldName.forField("isUnlocked", "is_unlocked"); - - static final FieldName iIJOCONHKND = FieldName.forField("IIJOCONHKND"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateNotifyOuterClass.java deleted file mode 100644 index 2a09aa4..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueCellUpdateNotifyOuterClass.java +++ /dev/null @@ -1,425 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueCellUpdateNotifyOuterClass { - /** - * Protobuf type {@code ChessRogueCellUpdateNotify} - */ - public static final class ChessRogueCellUpdateNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     * LCMLACLKNDI HFBFDNEMJED = 6;
-     * 
- * - * optional uint32 cell_room_id = 15; - */ - private int cellRoomId; - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - */ - private final RepeatedMessage cellInfo = RepeatedMessage.newEmptyInstance(ChessRogueCellOuterClass.ChessRogueCell.getFactory()); - - private ChessRogueCellUpdateNotify() { - } - - /** - * @return a new empty instance of {@code ChessRogueCellUpdateNotify} - */ - public static ChessRogueCellUpdateNotify newInstance() { - return new ChessRogueCellUpdateNotify(); - } - - /** - *
-     * LCMLACLKNDI HFBFDNEMJED = 6;
-     * 
- * - * optional uint32 cell_room_id = 15; - * @return whether the cellRoomId field is set - */ - public boolean hasCellRoomId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     * LCMLACLKNDI HFBFDNEMJED = 6;
-     * 
- * - * optional uint32 cell_room_id = 15; - * @return this - */ - public ChessRogueCellUpdateNotify clearCellRoomId() { - bitField0_ &= ~0x00000001; - cellRoomId = 0; - return this; - } - - /** - *
-     * LCMLACLKNDI HFBFDNEMJED = 6;
-     * 
- * - * optional uint32 cell_room_id = 15; - * @return the cellRoomId - */ - public int getCellRoomId() { - return cellRoomId; - } - - /** - *
-     * LCMLACLKNDI HFBFDNEMJED = 6;
-     * 
- * - * optional uint32 cell_room_id = 15; - * @param value the cellRoomId to set - * @return this - */ - public ChessRogueCellUpdateNotify setCellRoomId(final int value) { - bitField0_ |= 0x00000001; - cellRoomId = value; - return this; - } - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - * @return whether the cellInfo field is set - */ - public boolean hasCellInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - * @return this - */ - public ChessRogueCellUpdateNotify clearCellInfo() { - bitField0_ &= ~0x00000002; - cellInfo.clear(); - return this; - } - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCellInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getCellInfo() { - return cellInfo; - } - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableCellInfo() { - bitField0_ |= 0x00000002; - return cellInfo; - } - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - * @param value the cellInfo to add - * @return this - */ - public ChessRogueCellUpdateNotify addCellInfo( - final ChessRogueCellOuterClass.ChessRogueCell value) { - bitField0_ |= 0x00000002; - cellInfo.add(value); - return this; - } - - /** - *
-     * JGJCJHMAKKA reason = 11;
-     * 
- * - * repeated .ChessRogueCell cell_info = 3; - * @param values the cellInfo to add - * @return this - */ - public ChessRogueCellUpdateNotify addAllCellInfo( - final ChessRogueCellOuterClass.ChessRogueCell... values) { - bitField0_ |= 0x00000002; - cellInfo.addAll(values); - return this; - } - - @Override - public ChessRogueCellUpdateNotify copyFrom(final ChessRogueCellUpdateNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - cellRoomId = other.cellRoomId; - cellInfo.copyFrom(other.cellInfo); - } - return this; - } - - @Override - public ChessRogueCellUpdateNotify mergeFrom(final ChessRogueCellUpdateNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasCellRoomId()) { - setCellRoomId(other.cellRoomId); - } - if (other.hasCellInfo()) { - getMutableCellInfo().addAll(other.cellInfo); - } - return this; - } - - @Override - public ChessRogueCellUpdateNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - cellRoomId = 0; - cellInfo.clear(); - return this; - } - - @Override - public ChessRogueCellUpdateNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - cellInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueCellUpdateNotify)) { - return false; - } - ChessRogueCellUpdateNotify other = (ChessRogueCellUpdateNotify) o; - return bitField0_ == other.bitField0_ - && (!hasCellRoomId() || cellRoomId == other.cellRoomId) - && (!hasCellInfo() || cellInfo.equals(other.cellInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(cellRoomId); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < cellInfo.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(cellInfo.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cellRoomId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * cellInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(cellInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueCellUpdateNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 120: { - // cellRoomId - cellRoomId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // cellInfo - tag = input.readRepeatedMessage(cellInfo, tag); - bitField0_ |= 0x00000002; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.cellRoomId, cellRoomId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.cellInfo, cellInfo); - } - output.endObject(); - } - - @Override - public ChessRogueCellUpdateNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1379654824: - case 848768290: { - if (input.isAtField(FieldNames.cellRoomId)) { - if (!input.trySkipNullValue()) { - cellRoomId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -917905104: - case 1629888875: { - if (input.isAtField(FieldNames.cellInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(cellInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueCellUpdateNotify clone() { - return new ChessRogueCellUpdateNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueCellUpdateNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueCellUpdateNotify(), data).checkInitialized(); - } - - public static ChessRogueCellUpdateNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCellUpdateNotify(), input).checkInitialized(); - } - - public static ChessRogueCellUpdateNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCellUpdateNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueCellUpdateNotify messages - */ - public static MessageFactory getFactory() { - return ChessRogueCellUpdateNotifyFactory.INSTANCE; - } - - private enum ChessRogueCellUpdateNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueCellUpdateNotify create() { - return ChessRogueCellUpdateNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName cellRoomId = FieldName.forField("cellRoomId", "cell_room_id"); - - static final FieldName cellInfo = FieldName.forField("cellInfo", "cell_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueCurrentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueCurrentInfoOuterClass.java deleted file mode 100644 index 033a932..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueCurrentInfoOuterClass.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueCurrentInfoOuterClass { - /** - * Protobuf type {@code ChessRogueCurrentInfo} - */ - public static final class ChessRogueCurrentInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 rogue_version_id = 6; - */ - private int rogueVersionId; - - /** - * optional .ChessRogueNousValue nous_value = 1; - */ - private final ChessRogueNousValueOuterClass.ChessRogueNousValue nousValue = ChessRogueNousValueOuterClass.ChessRogueNousValue.newInstance(); - - /** - * optional .ChessRogueAvatarInfo rogue_avatar_info = 9; - */ - private final ChessRogueAvatarInfoOuterClass.ChessRogueAvatarInfo rogueAvatarInfo = ChessRogueAvatarInfoOuterClass.ChessRogueAvatarInfo.newInstance(); - - /** - * optional .ChessRogueNousStoryInfo story_info = 10; - */ - private final ChessRogueNousStoryInfoOuterClass.ChessRogueNousStoryInfo storyInfo = ChessRogueNousStoryInfoOuterClass.ChessRogueNousStoryInfo.newInstance(); - - /** - * optional .RogueCommonPendingAction pending_action = 11; - */ - private final RogueCommonPendingActionOuterClass.RogueCommonPendingAction pendingAction = RogueCommonPendingActionOuterClass.RogueCommonPendingAction.newInstance(); - - /** - * optional .ChessRogueBuffInfo buff_info = 12; - */ - private final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo buffInfo = ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo.newInstance(); - - /** - * optional .ChessRogueMiracleInfo miracle_info = 14; - */ - private final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo miracleInfo = ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo.newInstance(); - - /** - * optional .ChessRogueNousDice dice_info = 15; - */ - private final ChessRogueNousDiceOuterClass.ChessRogueNousDice diceInfo = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance(); - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - */ - private final RepeatedMessage virtualItemInfo = RepeatedMessage.newEmptyInstance(ChessRogueVirtualItemInfoOuterClass.ChessRogueVirtualItemInfo.getFactory()); - - private ChessRogueCurrentInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueCurrentInfo} - */ - public static ChessRogueCurrentInfo newInstance() { - return new ChessRogueCurrentInfo(); - } - - /** - * optional uint32 rogue_version_id = 6; - * @return whether the rogueVersionId field is set - */ - public boolean hasRogueVersionId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 rogue_version_id = 6; - * @return this - */ - public ChessRogueCurrentInfo clearRogueVersionId() { - bitField0_ &= ~0x00000001; - rogueVersionId = 0; - return this; - } - - /** - * optional uint32 rogue_version_id = 6; - * @return the rogueVersionId - */ - public int getRogueVersionId() { - return rogueVersionId; - } - - /** - * optional uint32 rogue_version_id = 6; - * @param value the rogueVersionId to set - * @return this - */ - public ChessRogueCurrentInfo setRogueVersionId(final int value) { - bitField0_ |= 0x00000001; - rogueVersionId = value; - return this; - } - - /** - * optional .ChessRogueNousValue nous_value = 1; - * @return whether the nousValue field is set - */ - public boolean hasNousValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ChessRogueNousValue nous_value = 1; - * @return this - */ - public ChessRogueCurrentInfo clearNousValue() { - bitField0_ &= ~0x00000002; - nousValue.clear(); - return this; - } - - /** - * optional .ChessRogueNousValue nous_value = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableNousValue()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousValueOuterClass.ChessRogueNousValue getNousValue() { - return nousValue; - } - - /** - * optional .ChessRogueNousValue nous_value = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousValueOuterClass.ChessRogueNousValue getMutableNousValue() { - bitField0_ |= 0x00000002; - return nousValue; - } - - /** - * optional .ChessRogueNousValue nous_value = 1; - * @param value the nousValue to set - * @return this - */ - public ChessRogueCurrentInfo setNousValue( - final ChessRogueNousValueOuterClass.ChessRogueNousValue value) { - bitField0_ |= 0x00000002; - nousValue.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueAvatarInfo rogue_avatar_info = 9; - * @return whether the rogueAvatarInfo field is set - */ - public boolean hasRogueAvatarInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ChessRogueAvatarInfo rogue_avatar_info = 9; - * @return this - */ - public ChessRogueCurrentInfo clearRogueAvatarInfo() { - bitField0_ &= ~0x00000004; - rogueAvatarInfo.clear(); - return this; - } - - /** - * optional .ChessRogueAvatarInfo rogue_avatar_info = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAvatarInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueAvatarInfoOuterClass.ChessRogueAvatarInfo getRogueAvatarInfo() { - return rogueAvatarInfo; - } - - /** - * optional .ChessRogueAvatarInfo rogue_avatar_info = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueAvatarInfoOuterClass.ChessRogueAvatarInfo getMutableRogueAvatarInfo() { - bitField0_ |= 0x00000004; - return rogueAvatarInfo; - } - - /** - * optional .ChessRogueAvatarInfo rogue_avatar_info = 9; - * @param value the rogueAvatarInfo to set - * @return this - */ - public ChessRogueCurrentInfo setRogueAvatarInfo( - final ChessRogueAvatarInfoOuterClass.ChessRogueAvatarInfo value) { - bitField0_ |= 0x00000004; - rogueAvatarInfo.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueNousStoryInfo story_info = 10; - * @return whether the storyInfo field is set - */ - public boolean hasStoryInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .ChessRogueNousStoryInfo story_info = 10; - * @return this - */ - public ChessRogueCurrentInfo clearStoryInfo() { - bitField0_ &= ~0x00000008; - storyInfo.clear(); - return this; - } - - /** - * optional .ChessRogueNousStoryInfo story_info = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableStoryInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousStoryInfoOuterClass.ChessRogueNousStoryInfo getStoryInfo() { - return storyInfo; - } - - /** - * optional .ChessRogueNousStoryInfo story_info = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousStoryInfoOuterClass.ChessRogueNousStoryInfo getMutableStoryInfo() { - bitField0_ |= 0x00000008; - return storyInfo; - } - - /** - * optional .ChessRogueNousStoryInfo story_info = 10; - * @param value the storyInfo to set - * @return this - */ - public ChessRogueCurrentInfo setStoryInfo( - final ChessRogueNousStoryInfoOuterClass.ChessRogueNousStoryInfo value) { - bitField0_ |= 0x00000008; - storyInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueCommonPendingAction pending_action = 11; - * @return whether the pendingAction field is set - */ - public boolean hasPendingAction() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueCommonPendingAction pending_action = 11; - * @return this - */ - public ChessRogueCurrentInfo clearPendingAction() { - bitField0_ &= ~0x00000010; - pendingAction.clear(); - return this; - } - - /** - * optional .RogueCommonPendingAction pending_action = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutablePendingAction()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getPendingAction() { - return pendingAction; - } - - /** - * optional .RogueCommonPendingAction pending_action = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getMutablePendingAction() { - bitField0_ |= 0x00000010; - return pendingAction; - } - - /** - * optional .RogueCommonPendingAction pending_action = 11; - * @param value the pendingAction to set - * @return this - */ - public ChessRogueCurrentInfo setPendingAction( - final RogueCommonPendingActionOuterClass.RogueCommonPendingAction value) { - bitField0_ |= 0x00000010; - pendingAction.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 12; - * @return whether the buffInfo field is set - */ - public boolean hasBuffInfo() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 12; - * @return this - */ - public ChessRogueCurrentInfo clearBuffInfo() { - bitField0_ &= ~0x00000020; - buffInfo.clear(); - return this; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getBuffInfo() { - return buffInfo; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getMutableBuffInfo() { - bitField0_ |= 0x00000020; - return buffInfo; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 12; - * @param value the buffInfo to set - * @return this - */ - public ChessRogueCurrentInfo setBuffInfo( - final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo value) { - bitField0_ |= 0x00000020; - buffInfo.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 14; - * @return whether the miracleInfo field is set - */ - public boolean hasMiracleInfo() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 14; - * @return this - */ - public ChessRogueCurrentInfo clearMiracleInfo() { - bitField0_ &= ~0x00000040; - miracleInfo.clear(); - return this; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMiracleInfo() { - return miracleInfo; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMutableMiracleInfo() { - bitField0_ |= 0x00000040; - return miracleInfo; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 14; - * @param value the miracleInfo to set - * @return this - */ - public ChessRogueCurrentInfo setMiracleInfo( - final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo value) { - bitField0_ |= 0x00000040; - miracleInfo.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueNousDice dice_info = 15; - * @return whether the diceInfo field is set - */ - public boolean hasDiceInfo() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .ChessRogueNousDice dice_info = 15; - * @return this - */ - public ChessRogueCurrentInfo clearDiceInfo() { - bitField0_ &= ~0x00000080; - diceInfo.clear(); - return this; - } - - /** - * optional .ChessRogueNousDice dice_info = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDiceInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getDiceInfo() { - return diceInfo; - } - - /** - * optional .ChessRogueNousDice dice_info = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableDiceInfo() { - bitField0_ |= 0x00000080; - return diceInfo; - } - - /** - * optional .ChessRogueNousDice dice_info = 15; - * @param value the diceInfo to set - * @return this - */ - public ChessRogueCurrentInfo setDiceInfo( - final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) { - bitField0_ |= 0x00000080; - diceInfo.copyFrom(value); - return this; - } - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - * @return whether the virtualItemInfo field is set - */ - public boolean hasVirtualItemInfo() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - * @return this - */ - public ChessRogueCurrentInfo clearVirtualItemInfo() { - bitField0_ &= ~0x00000100; - virtualItemInfo.clear(); - return this; - } - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableVirtualItemInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getVirtualItemInfo( - ) { - return virtualItemInfo; - } - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableVirtualItemInfo( - ) { - bitField0_ |= 0x00000100; - return virtualItemInfo; - } - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - * @param value the virtualItemInfo to add - * @return this - */ - public ChessRogueCurrentInfo addVirtualItemInfo( - final ChessRogueVirtualItemInfoOuterClass.ChessRogueVirtualItemInfo value) { - bitField0_ |= 0x00000100; - virtualItemInfo.add(value); - return this; - } - - /** - * repeated .ChessRogueVirtualItemInfo virtual_item_info = 4; - * @param values the virtualItemInfo to add - * @return this - */ - public ChessRogueCurrentInfo addAllVirtualItemInfo( - final ChessRogueVirtualItemInfoOuterClass.ChessRogueVirtualItemInfo... values) { - bitField0_ |= 0x00000100; - virtualItemInfo.addAll(values); - return this; - } - - @Override - public ChessRogueCurrentInfo copyFrom(final ChessRogueCurrentInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueVersionId = other.rogueVersionId; - nousValue.copyFrom(other.nousValue); - rogueAvatarInfo.copyFrom(other.rogueAvatarInfo); - storyInfo.copyFrom(other.storyInfo); - pendingAction.copyFrom(other.pendingAction); - buffInfo.copyFrom(other.buffInfo); - miracleInfo.copyFrom(other.miracleInfo); - diceInfo.copyFrom(other.diceInfo); - virtualItemInfo.copyFrom(other.virtualItemInfo); - } - return this; - } - - @Override - public ChessRogueCurrentInfo mergeFrom(final ChessRogueCurrentInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueVersionId()) { - setRogueVersionId(other.rogueVersionId); - } - if (other.hasNousValue()) { - getMutableNousValue().mergeFrom(other.nousValue); - } - if (other.hasRogueAvatarInfo()) { - getMutableRogueAvatarInfo().mergeFrom(other.rogueAvatarInfo); - } - if (other.hasStoryInfo()) { - getMutableStoryInfo().mergeFrom(other.storyInfo); - } - if (other.hasPendingAction()) { - getMutablePendingAction().mergeFrom(other.pendingAction); - } - if (other.hasBuffInfo()) { - getMutableBuffInfo().mergeFrom(other.buffInfo); - } - if (other.hasMiracleInfo()) { - getMutableMiracleInfo().mergeFrom(other.miracleInfo); - } - if (other.hasDiceInfo()) { - getMutableDiceInfo().mergeFrom(other.diceInfo); - } - if (other.hasVirtualItemInfo()) { - getMutableVirtualItemInfo().addAll(other.virtualItemInfo); - } - return this; - } - - @Override - public ChessRogueCurrentInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueVersionId = 0; - nousValue.clear(); - rogueAvatarInfo.clear(); - storyInfo.clear(); - pendingAction.clear(); - buffInfo.clear(); - miracleInfo.clear(); - diceInfo.clear(); - virtualItemInfo.clear(); - return this; - } - - @Override - public ChessRogueCurrentInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nousValue.clearQuick(); - rogueAvatarInfo.clearQuick(); - storyInfo.clearQuick(); - pendingAction.clearQuick(); - buffInfo.clearQuick(); - miracleInfo.clearQuick(); - diceInfo.clearQuick(); - virtualItemInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueCurrentInfo)) { - return false; - } - ChessRogueCurrentInfo other = (ChessRogueCurrentInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueVersionId() || rogueVersionId == other.rogueVersionId) - && (!hasNousValue() || nousValue.equals(other.nousValue)) - && (!hasRogueAvatarInfo() || rogueAvatarInfo.equals(other.rogueAvatarInfo)) - && (!hasStoryInfo() || storyInfo.equals(other.storyInfo)) - && (!hasPendingAction() || pendingAction.equals(other.pendingAction)) - && (!hasBuffInfo() || buffInfo.equals(other.buffInfo)) - && (!hasMiracleInfo() || miracleInfo.equals(other.miracleInfo)) - && (!hasDiceInfo() || diceInfo.equals(other.diceInfo)) - && (!hasVirtualItemInfo() || virtualItemInfo.equals(other.virtualItemInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(nousValue); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rogueAvatarInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(storyInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(pendingAction); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(buffInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(miracleInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(diceInfo); - } - if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < virtualItemInfo.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(virtualItemInfo.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nousValue); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAvatarInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(storyInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(pendingAction); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(miracleInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(diceInfo); - } - if ((bitField0_ & 0x00000100) != 0) { - size += (1 * virtualItemInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(virtualItemInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueCurrentInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // rogueVersionId - rogueVersionId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // nousValue - input.readMessage(nousValue); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rogueAvatarInfo - input.readMessage(rogueAvatarInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // storyInfo - input.readMessage(storyInfo); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // pendingAction - input.readMessage(pendingAction); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // buffInfo - input.readMessage(buffInfo); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // miracleInfo - input.readMessage(miracleInfo); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // diceInfo - input.readMessage(diceInfo); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // virtualItemInfo - tag = input.readRepeatedMessage(virtualItemInfo, tag); - bitField0_ |= 0x00000100; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueVersionId, rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.nousValue, nousValue); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueAvatarInfo, rogueAvatarInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.storyInfo, storyInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.pendingAction, pendingAction); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.buffInfo, buffInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.miracleInfo, miracleInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.diceInfo, diceInfo); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.virtualItemInfo, virtualItemInfo); - } - output.endObject(); - } - - @Override - public ChessRogueCurrentInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1457526951: - case 1832096103: { - if (input.isAtField(FieldNames.rogueVersionId)) { - if (!input.trySkipNullValue()) { - rogueVersionId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1234555758: - case 660197713: { - if (input.isAtField(FieldNames.nousValue)) { - if (!input.trySkipNullValue()) { - input.readMessage(nousValue); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1966631135: - case 667955439: { - if (input.isAtField(FieldNames.rogueAvatarInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAvatarInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1710116675: - case 1494185400: { - if (input.isAtField(FieldNames.storyInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(storyInfo); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -110680403: - case 1646545374: { - if (input.isAtField(FieldNames.pendingAction)) { - if (!input.trySkipNullValue()) { - input.readMessage(pendingAction); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1522874463: - case 55707930: { - if (input.isAtField(FieldNames.buffInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(buffInfo); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 760306879: - case 2114852796: { - if (input.isAtField(FieldNames.miracleInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(miracleInfo); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -184174347: - case -1394261434: { - if (input.isAtField(FieldNames.diceInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(diceInfo); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 892328588: - case -207708634: { - if (input.isAtField(FieldNames.virtualItemInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(virtualItemInfo); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueCurrentInfo clone() { - return new ChessRogueCurrentInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueCurrentInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueCurrentInfo(), data).checkInitialized(); - } - - public static ChessRogueCurrentInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCurrentInfo(), input).checkInitialized(); - } - - public static ChessRogueCurrentInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueCurrentInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueCurrentInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueCurrentInfoFactory.INSTANCE; - } - - private enum ChessRogueCurrentInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueCurrentInfo create() { - return ChessRogueCurrentInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueVersionId = FieldName.forField("rogueVersionId", "rogue_version_id"); - - static final FieldName nousValue = FieldName.forField("nousValue", "nous_value"); - - static final FieldName rogueAvatarInfo = FieldName.forField("rogueAvatarInfo", "rogue_avatar_info"); - - static final FieldName storyInfo = FieldName.forField("storyInfo", "story_info"); - - static final FieldName pendingAction = FieldName.forField("pendingAction", "pending_action"); - - static final FieldName buffInfo = FieldName.forField("buffInfo", "buff_info"); - - static final FieldName miracleInfo = FieldName.forField("miracleInfo", "miracle_info"); - - static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info"); - - static final FieldName virtualItemInfo = FieldName.forField("virtualItemInfo", "virtual_item_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueInfoOuterClass.java deleted file mode 100644 index ecc7560..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueInfoOuterClass.java +++ /dev/null @@ -1,381 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueInfoOuterClass { - /** - * Protobuf type {@code ChessRogueInfo} - */ - public static final class ChessRogueInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .SceneInfo scene = 5; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .LineupInfo lineup = 7; - */ - private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); - - private ChessRogueInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueInfo} - */ - public static ChessRogueInfo newInstance() { - return new ChessRogueInfo(); - } - - /** - * optional .SceneInfo scene = 5; - * @return whether the scene field is set - */ - public boolean hasScene() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .SceneInfo scene = 5; - * @return this - */ - public ChessRogueInfo clearScene() { - bitField0_ &= ~0x00000001; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000001; - return scene; - } - - /** - * optional .SceneInfo scene = 5; - * @param value the scene to set - * @return this - */ - public ChessRogueInfo setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000001; - scene.copyFrom(value); - return this; - } - - /** - * optional .LineupInfo lineup = 7; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .LineupInfo lineup = 7; - * @return this - */ - public ChessRogueInfo clearLineup() { - bitField0_ &= ~0x00000002; - lineup.clear(); - return this; - } - - /** - * optional .LineupInfo lineup = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLineup()} if you want to modify it. - * - * @return internal storage object for reading - */ - public LineupInfoOuterClass.LineupInfo getLineup() { - return lineup; - } - - /** - * optional .LineupInfo lineup = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000002; - return lineup; - } - - /** - * optional .LineupInfo lineup = 7; - * @param value the lineup to set - * @return this - */ - public ChessRogueInfo setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000002; - lineup.copyFrom(value); - return this; - } - - @Override - public ChessRogueInfo copyFrom(final ChessRogueInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - scene.copyFrom(other.scene); - lineup.copyFrom(other.lineup); - } - return this; - } - - @Override - public ChessRogueInfo mergeFrom(final ChessRogueInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } - if (other.hasLineup()) { - getMutableLineup().mergeFrom(other.lineup); - } - return this; - } - - @Override - public ChessRogueInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - scene.clear(); - lineup.clear(); - return this; - } - - @Override - public ChessRogueInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - scene.clearQuick(); - lineup.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueInfo)) { - return false; - } - ChessRogueInfo other = (ChessRogueInfo) o; - return bitField0_ == other.bitField0_ - && (!hasScene() || scene.equals(other.scene)) - && (!hasLineup() || lineup.equals(other.lineup)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(scene); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(lineup); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 42: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // lineup - input.readMessage(lineup); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.scene, scene); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.lineup, lineup); - } - output.endObject(); - } - - @Override - public ChessRogueInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 109254796: { - if (input.isAtField(FieldNames.scene)) { - if (!input.trySkipNullValue()) { - input.readMessage(scene); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { - if (!input.trySkipNullValue()) { - input.readMessage(lineup); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueInfo clone() { - return new ChessRogueInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueInfo(), data).checkInitialized(); - } - - public static ChessRogueInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueInfo(), input).checkInitialized(); - } - - public static ChessRogueInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueInfoFactory.INSTANCE; - } - - private enum ChessRogueInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueInfo create() { - return ChessRogueInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName scene = FieldName.forField("scene"); - - static final FieldName lineup = FieldName.forField("lineup"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueItemInfoOuterClass.java deleted file mode 100644 index 2bb143b..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueItemInfoOuterClass.java +++ /dev/null @@ -1,617 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueItemInfoOuterClass { - /** - * Protobuf type {@code ChessRogueItemInfo} - */ - public static final class ChessRogueItemInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - */ - private final RepeatedMessage items = RepeatedMessage.newEmptyInstance(ItemsEntry.getFactory()); - - private ChessRogueItemInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueItemInfo} - */ - public static ChessRogueItemInfo newInstance() { - return new ChessRogueItemInfo(); - } - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - * @return whether the items field is set - */ - public boolean hasItems() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - * @return this - */ - public ChessRogueItemInfo clearItems() { - bitField0_ &= ~0x00000001; - items.clear(); - return this; - } - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableItems()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getItems() { - return items; - } - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableItems() { - bitField0_ |= 0x00000001; - return items; - } - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - * @param value the items to add - * @return this - */ - public ChessRogueItemInfo addItems(final ItemsEntry value) { - bitField0_ |= 0x00000001; - items.add(value); - return this; - } - - /** - * repeated .ChessRogueItemInfo.ItemsEntry items = 4; - * @param values the items to add - * @return this - */ - public ChessRogueItemInfo addAllItems(final ItemsEntry... values) { - bitField0_ |= 0x00000001; - items.addAll(values); - return this; - } - - @Override - public ChessRogueItemInfo copyFrom(final ChessRogueItemInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - items.copyFrom(other.items); - } - return this; - } - - @Override - public ChessRogueItemInfo mergeFrom(final ChessRogueItemInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasItems()) { - getMutableItems().addAll(other.items); - } - return this; - } - - @Override - public ChessRogueItemInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - items.clear(); - return this; - } - - @Override - public ChessRogueItemInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - items.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueItemInfo)) { - return false; - } - ChessRogueItemInfo other = (ChessRogueItemInfo) o; - return bitField0_ == other.bitField0_ - && (!hasItems() || items.equals(other.items)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < items.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(items.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * items.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(items); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueItemInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 34: { - // items - tag = input.readRepeatedMessage(items, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.items, items); - } - output.endObject(); - } - - @Override - public ChessRogueItemInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 100526016: { - if (input.isAtField(FieldNames.items)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(items); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueItemInfo clone() { - return new ChessRogueItemInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueItemInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueItemInfo(), data).checkInitialized(); - } - - public static ChessRogueItemInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueItemInfo(), input).checkInitialized(); - } - - public static ChessRogueItemInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueItemInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueItemInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueItemInfoFactory.INSTANCE; - } - - /** - * Protobuf type {@code ItemsEntry} - */ - public static final class ItemsEntry extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 key = 1; - */ - private int key; - - /** - * optional uint32 value = 2; - */ - private int value_; - - private ItemsEntry() { - } - - /** - * @return a new empty instance of {@code ItemsEntry} - */ - public static ItemsEntry newInstance() { - return new ItemsEntry(); - } - - /** - * optional uint32 key = 1; - * @return whether the key field is set - */ - public boolean hasKey() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 key = 1; - * @return this - */ - public ItemsEntry clearKey() { - bitField0_ &= ~0x00000001; - key = 0; - return this; - } - - /** - * optional uint32 key = 1; - * @return the key - */ - public int getKey() { - return key; - } - - /** - * optional uint32 key = 1; - * @param value the key to set - * @return this - */ - public ItemsEntry setKey(final int value) { - bitField0_ |= 0x00000001; - key = value; - return this; - } - - /** - * optional uint32 value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 value = 2; - * @return this - */ - public ItemsEntry clearValue() { - bitField0_ &= ~0x00000002; - value_ = 0; - return this; - } - - /** - * optional uint32 value = 2; - * @return the value_ - */ - public int getValue() { - return value_; - } - - /** - * optional uint32 value = 2; - * @param value the value_ to set - * @return this - */ - public ItemsEntry setValue(final int value) { - bitField0_ |= 0x00000002; - value_ = value; - return this; - } - - @Override - public ItemsEntry copyFrom(final ItemsEntry other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - key = other.key; - value_ = other.value_; - } - return this; - } - - @Override - public ItemsEntry mergeFrom(final ItemsEntry other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKey()) { - setKey(other.key); - } - if (other.hasValue()) { - setValue(other.value_); - } - return this; - } - - @Override - public ItemsEntry clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - key = 0; - value_ = 0; - return this; - } - - @Override - public ItemsEntry clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ItemsEntry)) { - return false; - } - ItemsEntry other = (ItemsEntry) o; - return bitField0_ == other.bitField0_ - && (!hasKey() || key == other.key) - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ItemsEntry mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // key - key = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // value_ - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.key, key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public ItemsEntry mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106079: { - if (input.isAtField(FieldNames.key)) { - if (!input.trySkipNullValue()) { - key = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ItemsEntry clone() { - return new ItemsEntry().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ItemsEntry parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ItemsEntry(), data).checkInitialized(); - } - - public static ItemsEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ItemsEntry(), input).checkInitialized(); - } - - public static ItemsEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ItemsEntry(), input).checkInitialized(); - } - - /** - * @return factory for creating ItemsEntry messages - */ - public static MessageFactory getFactory() { - return ItemsEntryFactory.INSTANCE; - } - - private enum ItemsEntryFactory implements MessageFactory { - INSTANCE; - - @Override - public ItemsEntry create() { - return ItemsEntry.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName key = FieldName.forField("key"); - - static final FieldName value_ = FieldName.forField("value"); - } - } - - private enum ChessRogueItemInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueItemInfo create() { - return ChessRogueItemInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName items = FieldName.forField("items"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleDataOuterClass.java deleted file mode 100644 index 17d2aa2..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleDataOuterClass.java +++ /dev/null @@ -1,295 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueMiracleDataOuterClass { - /** - * Protobuf type {@code ChessRogueMiracleData} - */ - public static final class ChessRogueMiracleData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueMiracle miracle_list = 11; - */ - private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(RogueMiracleOuterClass.RogueMiracle.getFactory()); - - private ChessRogueMiracleData() { - } - - /** - * @return a new empty instance of {@code ChessRogueMiracleData} - */ - public static ChessRogueMiracleData newInstance() { - return new ChessRogueMiracleData(); - } - - /** - * repeated .RogueMiracle miracle_list = 11; - * @return whether the miracleList field is set - */ - public boolean hasMiracleList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueMiracle miracle_list = 11; - * @return this - */ - public ChessRogueMiracleData clearMiracleList() { - bitField0_ &= ~0x00000001; - miracleList.clear(); - return this; - } - - /** - * repeated .RogueMiracle miracle_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMiracleList() { - return miracleList; - } - - /** - * repeated .RogueMiracle miracle_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMiracleList() { - bitField0_ |= 0x00000001; - return miracleList; - } - - /** - * repeated .RogueMiracle miracle_list = 11; - * @param value the miracleList to add - * @return this - */ - public ChessRogueMiracleData addMiracleList(final RogueMiracleOuterClass.RogueMiracle value) { - bitField0_ |= 0x00000001; - miracleList.add(value); - return this; - } - - /** - * repeated .RogueMiracle miracle_list = 11; - * @param values the miracleList to add - * @return this - */ - public ChessRogueMiracleData addAllMiracleList( - final RogueMiracleOuterClass.RogueMiracle... values) { - bitField0_ |= 0x00000001; - miracleList.addAll(values); - return this; - } - - @Override - public ChessRogueMiracleData copyFrom(final ChessRogueMiracleData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - miracleList.copyFrom(other.miracleList); - } - return this; - } - - @Override - public ChessRogueMiracleData mergeFrom(final ChessRogueMiracleData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMiracleList()) { - getMutableMiracleList().addAll(other.miracleList); - } - return this; - } - - @Override - public ChessRogueMiracleData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleList.clear(); - return this; - } - - @Override - public ChessRogueMiracleData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueMiracleData)) { - return false; - } - ChessRogueMiracleData other = (ChessRogueMiracleData) o; - return bitField0_ == other.bitField0_ - && (!hasMiracleList() || miracleList.equals(other.miracleList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < miracleList.length(); i++) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(miracleList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueMiracleData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 90: { - // miracleList - tag = input.readRepeatedMessage(miracleList, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.miracleList, miracleList); - } - output.endObject(); - } - - @Override - public ChessRogueMiracleData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 760391855: - case 2114937772: { - if (input.isAtField(FieldNames.miracleList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(miracleList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueMiracleData clone() { - return new ChessRogueMiracleData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueMiracleData parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueMiracleData(), data).checkInitialized(); - } - - public static ChessRogueMiracleData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueMiracleData(), input).checkInitialized(); - } - - public static ChessRogueMiracleData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueMiracleData(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueMiracleData messages - */ - public static MessageFactory getFactory() { - return ChessRogueMiracleDataFactory.INSTANCE; - } - - private enum ChessRogueMiracleDataFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueMiracleData create() { - return ChessRogueMiracleData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceInfoOuterClass.java deleted file mode 100644 index 295ee56..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceInfoOuterClass.java +++ /dev/null @@ -1,541 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class ChessRogueNousDiceInfoOuterClass { - /** - * Protobuf type {@code ChessRogueNousDiceInfo} - */ - public static final class ChessRogueNousDiceInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 dice_branch_id = 5; - */ - private int diceBranchId; - - /** - * optional uint32 question_difficulty = 10; - */ - private int questionDifficulty; - - /** - * optional uint32 max_difficulty = 14; - */ - private int maxDifficulty; - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - */ - private final RepeatedMessage diceSurface = RepeatedMessage.newEmptyInstance(ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo.getFactory()); - - private ChessRogueNousDiceInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueNousDiceInfo} - */ - public static ChessRogueNousDiceInfo newInstance() { - return new ChessRogueNousDiceInfo(); - } - - /** - * optional uint32 dice_branch_id = 5; - * @return whether the diceBranchId field is set - */ - public boolean hasDiceBranchId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 dice_branch_id = 5; - * @return this - */ - public ChessRogueNousDiceInfo clearDiceBranchId() { - bitField0_ &= ~0x00000001; - diceBranchId = 0; - return this; - } - - /** - * optional uint32 dice_branch_id = 5; - * @return the diceBranchId - */ - public int getDiceBranchId() { - return diceBranchId; - } - - /** - * optional uint32 dice_branch_id = 5; - * @param value the diceBranchId to set - * @return this - */ - public ChessRogueNousDiceInfo setDiceBranchId(final int value) { - bitField0_ |= 0x00000001; - diceBranchId = value; - return this; - } - - /** - * optional uint32 question_difficulty = 10; - * @return whether the questionDifficulty field is set - */ - public boolean hasQuestionDifficulty() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 question_difficulty = 10; - * @return this - */ - public ChessRogueNousDiceInfo clearQuestionDifficulty() { - bitField0_ &= ~0x00000002; - questionDifficulty = 0; - return this; - } - - /** - * optional uint32 question_difficulty = 10; - * @return the questionDifficulty - */ - public int getQuestionDifficulty() { - return questionDifficulty; - } - - /** - * optional uint32 question_difficulty = 10; - * @param value the questionDifficulty to set - * @return this - */ - public ChessRogueNousDiceInfo setQuestionDifficulty(final int value) { - bitField0_ |= 0x00000002; - questionDifficulty = value; - return this; - } - - /** - * optional uint32 max_difficulty = 14; - * @return whether the maxDifficulty field is set - */ - public boolean hasMaxDifficulty() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 max_difficulty = 14; - * @return this - */ - public ChessRogueNousDiceInfo clearMaxDifficulty() { - bitField0_ &= ~0x00000004; - maxDifficulty = 0; - return this; - } - - /** - * optional uint32 max_difficulty = 14; - * @return the maxDifficulty - */ - public int getMaxDifficulty() { - return maxDifficulty; - } - - /** - * optional uint32 max_difficulty = 14; - * @param value the maxDifficulty to set - * @return this - */ - public ChessRogueNousDiceInfo setMaxDifficulty(final int value) { - bitField0_ |= 0x00000004; - maxDifficulty = value; - return this; - } - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - * @return whether the diceSurface field is set - */ - public boolean hasDiceSurface() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - * @return this - */ - public ChessRogueNousDiceInfo clearDiceSurface() { - bitField0_ &= ~0x00000008; - diceSurface.clear(); - return this; - } - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDiceSurface()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getDiceSurface( - ) { - return diceSurface; - } - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableDiceSurface( - ) { - bitField0_ |= 0x00000008; - return diceSurface; - } - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - * @param value the diceSurface to add - * @return this - */ - public ChessRogueNousDiceInfo addDiceSurface( - final ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo value) { - bitField0_ |= 0x00000008; - diceSurface.add(value); - return this; - } - - /** - * repeated .ChessRogueNousDiceSurfaceInfo dice_surface = 2; - * @param values the diceSurface to add - * @return this - */ - public ChessRogueNousDiceInfo addAllDiceSurface( - final ChessRogueNousDiceSurfaceInfoOuterClass.ChessRogueNousDiceSurfaceInfo... values) { - bitField0_ |= 0x00000008; - diceSurface.addAll(values); - return this; - } - - @Override - public ChessRogueNousDiceInfo copyFrom(final ChessRogueNousDiceInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - diceBranchId = other.diceBranchId; - questionDifficulty = other.questionDifficulty; - maxDifficulty = other.maxDifficulty; - diceSurface.copyFrom(other.diceSurface); - } - return this; - } - - @Override - public ChessRogueNousDiceInfo mergeFrom(final ChessRogueNousDiceInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDiceBranchId()) { - setDiceBranchId(other.diceBranchId); - } - if (other.hasQuestionDifficulty()) { - setQuestionDifficulty(other.questionDifficulty); - } - if (other.hasMaxDifficulty()) { - setMaxDifficulty(other.maxDifficulty); - } - if (other.hasDiceSurface()) { - getMutableDiceSurface().addAll(other.diceSurface); - } - return this; - } - - @Override - public ChessRogueNousDiceInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - diceBranchId = 0; - questionDifficulty = 0; - maxDifficulty = 0; - diceSurface.clear(); - return this; - } - - @Override - public ChessRogueNousDiceInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - diceSurface.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousDiceInfo)) { - return false; - } - ChessRogueNousDiceInfo other = (ChessRogueNousDiceInfo) o; - return bitField0_ == other.bitField0_ - && (!hasDiceBranchId() || diceBranchId == other.diceBranchId) - && (!hasQuestionDifficulty() || questionDifficulty == other.questionDifficulty) - && (!hasMaxDifficulty() || maxDifficulty == other.maxDifficulty) - && (!hasDiceSurface() || diceSurface.equals(other.diceSurface)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(diceBranchId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(questionDifficulty); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(maxDifficulty); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < diceSurface.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(diceSurface.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(questionDifficulty); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxDifficulty); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * diceSurface.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(diceSurface); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousDiceInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // diceBranchId - diceBranchId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // questionDifficulty - questionDifficulty = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // maxDifficulty - maxDifficulty = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // diceSurface - tag = input.readRepeatedMessage(diceSurface, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.diceBranchId, diceBranchId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.questionDifficulty, questionDifficulty); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.maxDifficulty, maxDifficulty); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.diceSurface, diceSurface); - } - output.endObject(); - } - - @Override - public ChessRogueNousDiceInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 216999716: - case 1050456640: { - if (input.isAtField(FieldNames.diceBranchId)) { - if (!input.trySkipNullValue()) { - diceBranchId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1586161729: - case -1998600780: { - if (input.isAtField(FieldNames.questionDifficulty)) { - if (!input.trySkipNullValue()) { - questionDifficulty = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 657132607: - case -733732490: { - if (input.isAtField(FieldNames.maxDifficulty)) { - if (!input.trySkipNullValue()) { - maxDifficulty = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1568317690: - case 682756117: { - if (input.isAtField(FieldNames.diceSurface)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(diceSurface); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousDiceInfo clone() { - return new ChessRogueNousDiceInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousDiceInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousDiceInfo(), data).checkInitialized(); - } - - public static ChessRogueNousDiceInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousDiceInfo(), input).checkInitialized(); - } - - public static ChessRogueNousDiceInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousDiceInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousDiceInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousDiceInfoFactory.INSTANCE; - } - - private enum ChessRogueNousDiceInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousDiceInfo create() { - return ChessRogueNousDiceInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName diceBranchId = FieldName.forField("diceBranchId", "dice_branch_id"); - - static final FieldName questionDifficulty = FieldName.forField("questionDifficulty", "question_difficulty"); - - static final FieldName maxDifficulty = FieldName.forField("maxDifficulty", "max_difficulty"); - - static final FieldName diceSurface = FieldName.forField("diceSurface", "dice_surface"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceOuterClass.java deleted file mode 100644 index d13db1e..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceOuterClass.java +++ /dev/null @@ -1,1369 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class ChessRogueNousDiceOuterClass { - /** - * Protobuf type {@code ChessRogueNousDice} - */ - public static final class ChessRogueNousDice extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 dice_branch_id = 1; - */ - private int diceBranchId; - - /** - *
-     * FEDEMDEEJML JLCEDGIHAFF = 12;
-     * 
- * - * optional uint32 reroll_times = 2; - */ - private int rerollTimes; - - /** - *
-     * NMNBNLMAJGC cur_surface_effect = 6;
-     * 
- * - * optional uint32 cur_surface_id = 3; - */ - private int curSurfaceId; - - /** - *
-     *  1
-     * 
- * - * optional uint32 cheat_times = 4; - */ - private int cheatTimes; - - /** - *
-     *  10
-     * 
- * - * optional uint32 HIJBOPMGBAP = 5; - */ - private int hIJBOPMGBAP; - - /** - *
-     *  1
-     * 
- * - * optional uint32 GFGCPJOHMEL = 9; - */ - private int gFGCPJOHMEL; - - /** - * optional uint32 cur_surface_index = 13; - */ - private int curSurfaceIndex; - - /** - *
-     *  idk
-     * 
- * - * optional uint32 dice_branch_id_remote = 14; - */ - private int diceBranchIdRemote; - - /** - *
-     * sint32 PAOHKKNCNCD = 625;
-     * 
- * - * optional bool BDENADDOCAC = 10; - */ - private boolean bDENADDOCAC; - - /** - *
-     * NMNBNLMAJGC POHKHEGDOHO = 343;  // guess its about modifier
-     * 
- * - * optional bool CHGLMLDAMJH = 1185; - */ - private boolean cHGLMLDAMJH; - - /** - * optional .ChessRogueNousDiceInfo dice_info = 208; - */ - private final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo diceInfo = ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.newInstance(); - - /** - * repeated uint32 NOGJMMEDGLL = 833; - */ - private final RepeatedInt nOGJMMEDGLL = RepeatedInt.newEmptyInstance(); - - private ChessRogueNousDice() { - } - - /** - * @return a new empty instance of {@code ChessRogueNousDice} - */ - public static ChessRogueNousDice newInstance() { - return new ChessRogueNousDice(); - } - - /** - * optional uint32 dice_branch_id = 1; - * @return whether the diceBranchId field is set - */ - public boolean hasDiceBranchId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 dice_branch_id = 1; - * @return this - */ - public ChessRogueNousDice clearDiceBranchId() { - bitField0_ &= ~0x00000001; - diceBranchId = 0; - return this; - } - - /** - * optional uint32 dice_branch_id = 1; - * @return the diceBranchId - */ - public int getDiceBranchId() { - return diceBranchId; - } - - /** - * optional uint32 dice_branch_id = 1; - * @param value the diceBranchId to set - * @return this - */ - public ChessRogueNousDice setDiceBranchId(final int value) { - bitField0_ |= 0x00000001; - diceBranchId = value; - return this; - } - - /** - *
-     * FEDEMDEEJML JLCEDGIHAFF = 12;
-     * 
- * - * optional uint32 reroll_times = 2; - * @return whether the rerollTimes field is set - */ - public boolean hasRerollTimes() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     * FEDEMDEEJML JLCEDGIHAFF = 12;
-     * 
- * - * optional uint32 reroll_times = 2; - * @return this - */ - public ChessRogueNousDice clearRerollTimes() { - bitField0_ &= ~0x00000002; - rerollTimes = 0; - return this; - } - - /** - *
-     * FEDEMDEEJML JLCEDGIHAFF = 12;
-     * 
- * - * optional uint32 reroll_times = 2; - * @return the rerollTimes - */ - public int getRerollTimes() { - return rerollTimes; - } - - /** - *
-     * FEDEMDEEJML JLCEDGIHAFF = 12;
-     * 
- * - * optional uint32 reroll_times = 2; - * @param value the rerollTimes to set - * @return this - */ - public ChessRogueNousDice setRerollTimes(final int value) { - bitField0_ |= 0x00000002; - rerollTimes = value; - return this; - } - - /** - *
-     * NMNBNLMAJGC cur_surface_effect = 6;
-     * 
- * - * optional uint32 cur_surface_id = 3; - * @return whether the curSurfaceId field is set - */ - public boolean hasCurSurfaceId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     * NMNBNLMAJGC cur_surface_effect = 6;
-     * 
- * - * optional uint32 cur_surface_id = 3; - * @return this - */ - public ChessRogueNousDice clearCurSurfaceId() { - bitField0_ &= ~0x00000004; - curSurfaceId = 0; - return this; - } - - /** - *
-     * NMNBNLMAJGC cur_surface_effect = 6;
-     * 
- * - * optional uint32 cur_surface_id = 3; - * @return the curSurfaceId - */ - public int getCurSurfaceId() { - return curSurfaceId; - } - - /** - *
-     * NMNBNLMAJGC cur_surface_effect = 6;
-     * 
- * - * optional uint32 cur_surface_id = 3; - * @param value the curSurfaceId to set - * @return this - */ - public ChessRogueNousDice setCurSurfaceId(final int value) { - bitField0_ |= 0x00000004; - curSurfaceId = value; - return this; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 cheat_times = 4; - * @return whether the cheatTimes field is set - */ - public boolean hasCheatTimes() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 cheat_times = 4; - * @return this - */ - public ChessRogueNousDice clearCheatTimes() { - bitField0_ &= ~0x00000008; - cheatTimes = 0; - return this; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 cheat_times = 4; - * @return the cheatTimes - */ - public int getCheatTimes() { - return cheatTimes; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 cheat_times = 4; - * @param value the cheatTimes to set - * @return this - */ - public ChessRogueNousDice setCheatTimes(final int value) { - bitField0_ |= 0x00000008; - cheatTimes = value; - return this; - } - - /** - *
-     *  10
-     * 
- * - * optional uint32 HIJBOPMGBAP = 5; - * @return whether the hIJBOPMGBAP field is set - */ - public boolean hasHIJBOPMGBAP() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     *  10
-     * 
- * - * optional uint32 HIJBOPMGBAP = 5; - * @return this - */ - public ChessRogueNousDice clearHIJBOPMGBAP() { - bitField0_ &= ~0x00000010; - hIJBOPMGBAP = 0; - return this; - } - - /** - *
-     *  10
-     * 
- * - * optional uint32 HIJBOPMGBAP = 5; - * @return the hIJBOPMGBAP - */ - public int getHIJBOPMGBAP() { - return hIJBOPMGBAP; - } - - /** - *
-     *  10
-     * 
- * - * optional uint32 HIJBOPMGBAP = 5; - * @param value the hIJBOPMGBAP to set - * @return this - */ - public ChessRogueNousDice setHIJBOPMGBAP(final int value) { - bitField0_ |= 0x00000010; - hIJBOPMGBAP = value; - return this; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 GFGCPJOHMEL = 9; - * @return whether the gFGCPJOHMEL field is set - */ - public boolean hasGFGCPJOHMEL() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 GFGCPJOHMEL = 9; - * @return this - */ - public ChessRogueNousDice clearGFGCPJOHMEL() { - bitField0_ &= ~0x00000020; - gFGCPJOHMEL = 0; - return this; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 GFGCPJOHMEL = 9; - * @return the gFGCPJOHMEL - */ - public int getGFGCPJOHMEL() { - return gFGCPJOHMEL; - } - - /** - *
-     *  1
-     * 
- * - * optional uint32 GFGCPJOHMEL = 9; - * @param value the gFGCPJOHMEL to set - * @return this - */ - public ChessRogueNousDice setGFGCPJOHMEL(final int value) { - bitField0_ |= 0x00000020; - gFGCPJOHMEL = value; - return this; - } - - /** - * optional uint32 cur_surface_index = 13; - * @return whether the curSurfaceIndex field is set - */ - public boolean hasCurSurfaceIndex() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional uint32 cur_surface_index = 13; - * @return this - */ - public ChessRogueNousDice clearCurSurfaceIndex() { - bitField0_ &= ~0x00000040; - curSurfaceIndex = 0; - return this; - } - - /** - * optional uint32 cur_surface_index = 13; - * @return the curSurfaceIndex - */ - public int getCurSurfaceIndex() { - return curSurfaceIndex; - } - - /** - * optional uint32 cur_surface_index = 13; - * @param value the curSurfaceIndex to set - * @return this - */ - public ChessRogueNousDice setCurSurfaceIndex(final int value) { - bitField0_ |= 0x00000040; - curSurfaceIndex = value; - return this; - } - - /** - *
-     *  idk
-     * 
- * - * optional uint32 dice_branch_id_remote = 14; - * @return whether the diceBranchIdRemote field is set - */ - public boolean hasDiceBranchIdRemote() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - *
-     *  idk
-     * 
- * - * optional uint32 dice_branch_id_remote = 14; - * @return this - */ - public ChessRogueNousDice clearDiceBranchIdRemote() { - bitField0_ &= ~0x00000080; - diceBranchIdRemote = 0; - return this; - } - - /** - *
-     *  idk
-     * 
- * - * optional uint32 dice_branch_id_remote = 14; - * @return the diceBranchIdRemote - */ - public int getDiceBranchIdRemote() { - return diceBranchIdRemote; - } - - /** - *
-     *  idk
-     * 
- * - * optional uint32 dice_branch_id_remote = 14; - * @param value the diceBranchIdRemote to set - * @return this - */ - public ChessRogueNousDice setDiceBranchIdRemote(final int value) { - bitField0_ |= 0x00000080; - diceBranchIdRemote = value; - return this; - } - - /** - *
-     * sint32 PAOHKKNCNCD = 625;
-     * 
- * - * optional bool BDENADDOCAC = 10; - * @return whether the bDENADDOCAC field is set - */ - public boolean hasBDENADDOCAC() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - *
-     * sint32 PAOHKKNCNCD = 625;
-     * 
- * - * optional bool BDENADDOCAC = 10; - * @return this - */ - public ChessRogueNousDice clearBDENADDOCAC() { - bitField0_ &= ~0x00000100; - bDENADDOCAC = false; - return this; - } - - /** - *
-     * sint32 PAOHKKNCNCD = 625;
-     * 
- * - * optional bool BDENADDOCAC = 10; - * @return the bDENADDOCAC - */ - public boolean getBDENADDOCAC() { - return bDENADDOCAC; - } - - /** - *
-     * sint32 PAOHKKNCNCD = 625;
-     * 
- * - * optional bool BDENADDOCAC = 10; - * @param value the bDENADDOCAC to set - * @return this - */ - public ChessRogueNousDice setBDENADDOCAC(final boolean value) { - bitField0_ |= 0x00000100; - bDENADDOCAC = value; - return this; - } - - /** - *
-     * NMNBNLMAJGC POHKHEGDOHO = 343;  // guess its about modifier
-     * 
- * - * optional bool CHGLMLDAMJH = 1185; - * @return whether the cHGLMLDAMJH field is set - */ - public boolean hasCHGLMLDAMJH() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - *
-     * NMNBNLMAJGC POHKHEGDOHO = 343;  // guess its about modifier
-     * 
- * - * optional bool CHGLMLDAMJH = 1185; - * @return this - */ - public ChessRogueNousDice clearCHGLMLDAMJH() { - bitField0_ &= ~0x00000200; - cHGLMLDAMJH = false; - return this; - } - - /** - *
-     * NMNBNLMAJGC POHKHEGDOHO = 343;  // guess its about modifier
-     * 
- * - * optional bool CHGLMLDAMJH = 1185; - * @return the cHGLMLDAMJH - */ - public boolean getCHGLMLDAMJH() { - return cHGLMLDAMJH; - } - - /** - *
-     * NMNBNLMAJGC POHKHEGDOHO = 343;  // guess its about modifier
-     * 
- * - * optional bool CHGLMLDAMJH = 1185; - * @param value the cHGLMLDAMJH to set - * @return this - */ - public ChessRogueNousDice setCHGLMLDAMJH(final boolean value) { - bitField0_ |= 0x00000200; - cHGLMLDAMJH = value; - return this; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 208; - * @return whether the diceInfo field is set - */ - public boolean hasDiceInfo() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 208; - * @return this - */ - public ChessRogueNousDice clearDiceInfo() { - bitField0_ &= ~0x00000400; - diceInfo.clear(); - return this; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 208; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDiceInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getDiceInfo() { - return diceInfo; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 208; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getMutableDiceInfo() { - bitField0_ |= 0x00000400; - return diceInfo; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 208; - * @param value the diceInfo to set - * @return this - */ - public ChessRogueNousDice setDiceInfo( - final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) { - bitField0_ |= 0x00000400; - diceInfo.copyFrom(value); - return this; - } - - /** - * repeated uint32 NOGJMMEDGLL = 833; - * @return whether the nOGJMMEDGLL field is set - */ - public boolean hasNOGJMMEDGLL() { - return (bitField0_ & 0x00000800) != 0; - } - - /** - * repeated uint32 NOGJMMEDGLL = 833; - * @return this - */ - public ChessRogueNousDice clearNOGJMMEDGLL() { - bitField0_ &= ~0x00000800; - nOGJMMEDGLL.clear(); - return this; - } - - /** - * repeated uint32 NOGJMMEDGLL = 833; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableNOGJMMEDGLL()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getNOGJMMEDGLL() { - return nOGJMMEDGLL; - } - - /** - * repeated uint32 NOGJMMEDGLL = 833; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableNOGJMMEDGLL() { - bitField0_ |= 0x00000800; - return nOGJMMEDGLL; - } - - /** - * repeated uint32 NOGJMMEDGLL = 833; - * @param value the nOGJMMEDGLL to add - * @return this - */ - public ChessRogueNousDice addNOGJMMEDGLL(final int value) { - bitField0_ |= 0x00000800; - nOGJMMEDGLL.add(value); - return this; - } - - /** - * repeated uint32 NOGJMMEDGLL = 833; - * @param values the nOGJMMEDGLL to add - * @return this - */ - public ChessRogueNousDice addAllNOGJMMEDGLL(final int... values) { - bitField0_ |= 0x00000800; - nOGJMMEDGLL.addAll(values); - return this; - } - - @Override - public ChessRogueNousDice copyFrom(final ChessRogueNousDice other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - diceBranchId = other.diceBranchId; - rerollTimes = other.rerollTimes; - curSurfaceId = other.curSurfaceId; - cheatTimes = other.cheatTimes; - hIJBOPMGBAP = other.hIJBOPMGBAP; - gFGCPJOHMEL = other.gFGCPJOHMEL; - curSurfaceIndex = other.curSurfaceIndex; - diceBranchIdRemote = other.diceBranchIdRemote; - bDENADDOCAC = other.bDENADDOCAC; - cHGLMLDAMJH = other.cHGLMLDAMJH; - diceInfo.copyFrom(other.diceInfo); - nOGJMMEDGLL.copyFrom(other.nOGJMMEDGLL); - } - return this; - } - - @Override - public ChessRogueNousDice mergeFrom(final ChessRogueNousDice other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDiceBranchId()) { - setDiceBranchId(other.diceBranchId); - } - if (other.hasRerollTimes()) { - setRerollTimes(other.rerollTimes); - } - if (other.hasCurSurfaceId()) { - setCurSurfaceId(other.curSurfaceId); - } - if (other.hasCheatTimes()) { - setCheatTimes(other.cheatTimes); - } - if (other.hasHIJBOPMGBAP()) { - setHIJBOPMGBAP(other.hIJBOPMGBAP); - } - if (other.hasGFGCPJOHMEL()) { - setGFGCPJOHMEL(other.gFGCPJOHMEL); - } - if (other.hasCurSurfaceIndex()) { - setCurSurfaceIndex(other.curSurfaceIndex); - } - if (other.hasDiceBranchIdRemote()) { - setDiceBranchIdRemote(other.diceBranchIdRemote); - } - if (other.hasBDENADDOCAC()) { - setBDENADDOCAC(other.bDENADDOCAC); - } - if (other.hasCHGLMLDAMJH()) { - setCHGLMLDAMJH(other.cHGLMLDAMJH); - } - if (other.hasDiceInfo()) { - getMutableDiceInfo().mergeFrom(other.diceInfo); - } - if (other.hasNOGJMMEDGLL()) { - getMutableNOGJMMEDGLL().addAll(other.nOGJMMEDGLL); - } - return this; - } - - @Override - public ChessRogueNousDice clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - diceBranchId = 0; - rerollTimes = 0; - curSurfaceId = 0; - cheatTimes = 0; - hIJBOPMGBAP = 0; - gFGCPJOHMEL = 0; - curSurfaceIndex = 0; - diceBranchIdRemote = 0; - bDENADDOCAC = false; - cHGLMLDAMJH = false; - diceInfo.clear(); - nOGJMMEDGLL.clear(); - return this; - } - - @Override - public ChessRogueNousDice clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - diceInfo.clearQuick(); - nOGJMMEDGLL.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousDice)) { - return false; - } - ChessRogueNousDice other = (ChessRogueNousDice) o; - return bitField0_ == other.bitField0_ - && (!hasDiceBranchId() || diceBranchId == other.diceBranchId) - && (!hasRerollTimes() || rerollTimes == other.rerollTimes) - && (!hasCurSurfaceId() || curSurfaceId == other.curSurfaceId) - && (!hasCheatTimes() || cheatTimes == other.cheatTimes) - && (!hasHIJBOPMGBAP() || hIJBOPMGBAP == other.hIJBOPMGBAP) - && (!hasGFGCPJOHMEL() || gFGCPJOHMEL == other.gFGCPJOHMEL) - && (!hasCurSurfaceIndex() || curSurfaceIndex == other.curSurfaceIndex) - && (!hasDiceBranchIdRemote() || diceBranchIdRemote == other.diceBranchIdRemote) - && (!hasBDENADDOCAC() || bDENADDOCAC == other.bDENADDOCAC) - && (!hasCHGLMLDAMJH() || cHGLMLDAMJH == other.cHGLMLDAMJH) - && (!hasDiceInfo() || diceInfo.equals(other.diceInfo)) - && (!hasNOGJMMEDGLL() || nOGJMMEDGLL.equals(other.nOGJMMEDGLL)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(diceBranchId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(rerollTimes); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(curSurfaceId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(cheatTimes); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(hIJBOPMGBAP); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(gFGCPJOHMEL); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(curSurfaceIndex); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(diceBranchIdRemote); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 80); - output.writeBoolNoTag(bDENADDOCAC); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRawLittleEndian16((short) 19080); - output.writeBoolNoTag(cHGLMLDAMJH); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeRawLittleEndian16((short) 3458); - output.writeMessageNoTag(diceInfo); - } - if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < nOGJMMEDGLL.length(); i++) { - output.writeRawLittleEndian16((short) 13448); - output.writeUInt32NoTag(nOGJMMEDGLL.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rerollTimes); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curSurfaceId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cheatTimes); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(hIJBOPMGBAP); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gFGCPJOHMEL); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curSurfaceIndex); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchIdRemote); - } - if ((bitField0_ & 0x00000100) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000200) != 0) { - size += 3; - } - if ((bitField0_ & 0x00000400) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(diceInfo); - } - if ((bitField0_ & 0x00000800) != 0) { - size += (2 * nOGJMMEDGLL.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(nOGJMMEDGLL); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousDice mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // diceBranchId - diceBranchId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // rerollTimes - rerollTimes = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // curSurfaceId - curSurfaceId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // cheatTimes - cheatTimes = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // hIJBOPMGBAP - hIJBOPMGBAP = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // gFGCPJOHMEL - gFGCPJOHMEL = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // curSurfaceIndex - curSurfaceIndex = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // diceBranchIdRemote - diceBranchIdRemote = input.readUInt32(); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // bDENADDOCAC - bDENADDOCAC = input.readBool(); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 9480) { - break; - } - } - case 9480: { - // cHGLMLDAMJH - cHGLMLDAMJH = input.readBool(); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 1666) { - break; - } - } - case 1666: { - // diceInfo - input.readMessage(diceInfo); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 6666) { - break; - } - } - case 6666: { - // nOGJMMEDGLL [packed=true] - input.readPackedUInt32(nOGJMMEDGLL, tag); - bitField0_ |= 0x00000800; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 6664: { - // nOGJMMEDGLL [packed=false] - tag = input.readRepeatedUInt32(nOGJMMEDGLL, tag); - bitField0_ |= 0x00000800; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.diceBranchId, diceBranchId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rerollTimes, rerollTimes); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.curSurfaceId, curSurfaceId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.cheatTimes, cheatTimes); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.hIJBOPMGBAP, hIJBOPMGBAP); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.gFGCPJOHMEL, gFGCPJOHMEL); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.curSurfaceIndex, curSurfaceIndex); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.diceBranchIdRemote, diceBranchIdRemote); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeBool(FieldNames.bDENADDOCAC, bDENADDOCAC); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeBool(FieldNames.cHGLMLDAMJH, cHGLMLDAMJH); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.diceInfo, diceInfo); - } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedUInt32(FieldNames.nOGJMMEDGLL, nOGJMMEDGLL); - } - output.endObject(); - } - - @Override - public ChessRogueNousDice mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 216999716: - case 1050456640: { - if (input.isAtField(FieldNames.diceBranchId)) { - if (!input.trySkipNullValue()) { - diceBranchId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -836069386: - case 176620407: { - if (input.isAtField(FieldNames.rerollTimes)) { - if (!input.trySkipNullValue()) { - rerollTimes = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1658805176: - case -1978690228: { - if (input.isAtField(FieldNames.curSurfaceId)) { - if (!input.trySkipNullValue()) { - curSurfaceId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2046149069: - case 1318855898: { - if (input.isAtField(FieldNames.cheatTimes)) { - if (!input.trySkipNullValue()) { - cheatTimes = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 218596029: { - if (input.isAtField(FieldNames.hIJBOPMGBAP)) { - if (!input.trySkipNullValue()) { - hIJBOPMGBAP = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1897943334: { - if (input.isAtField(FieldNames.gFGCPJOHMEL)) { - if (!input.trySkipNullValue()) { - gFGCPJOHMEL = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 429106821: - case 1265952513: { - if (input.isAtField(FieldNames.curSurfaceIndex)) { - if (!input.trySkipNullValue()) { - curSurfaceIndex = input.readUInt32(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1925587082: - case 1293761317: { - if (input.isAtField(FieldNames.diceBranchIdRemote)) { - if (!input.trySkipNullValue()) { - diceBranchIdRemote = input.readUInt32(); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case -907576788: { - if (input.isAtField(FieldNames.bDENADDOCAC)) { - if (!input.trySkipNullValue()) { - bDENADDOCAC = input.readBool(); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case 287558437: { - if (input.isAtField(FieldNames.cHGLMLDAMJH)) { - if (!input.trySkipNullValue()) { - cHGLMLDAMJH = input.readBool(); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case -184174347: - case -1394261434: { - if (input.isAtField(FieldNames.diceInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(diceInfo); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1459318404: { - if (input.isAtField(FieldNames.nOGJMMEDGLL)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(nOGJMMEDGLL); - bitField0_ |= 0x00000800; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousDice clone() { - return new ChessRogueNousDice().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousDice parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousDice(), data).checkInitialized(); - } - - public static ChessRogueNousDice parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousDice(), input).checkInitialized(); - } - - public static ChessRogueNousDice parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousDice(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousDice messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousDiceFactory.INSTANCE; - } - - private enum ChessRogueNousDiceFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousDice create() { - return ChessRogueNousDice.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName diceBranchId = FieldName.forField("diceBranchId", "dice_branch_id"); - - static final FieldName rerollTimes = FieldName.forField("rerollTimes", "reroll_times"); - - static final FieldName curSurfaceId = FieldName.forField("curSurfaceId", "cur_surface_id"); - - static final FieldName cheatTimes = FieldName.forField("cheatTimes", "cheat_times"); - - static final FieldName hIJBOPMGBAP = FieldName.forField("HIJBOPMGBAP"); - - static final FieldName gFGCPJOHMEL = FieldName.forField("GFGCPJOHMEL"); - - static final FieldName curSurfaceIndex = FieldName.forField("curSurfaceIndex", "cur_surface_index"); - - static final FieldName diceBranchIdRemote = FieldName.forField("diceBranchIdRemote", "dice_branch_id_remote"); - - static final FieldName bDENADDOCAC = FieldName.forField("BDENADDOCAC"); - - static final FieldName cHGLMLDAMJH = FieldName.forField("CHGLMLDAMJH"); - - static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info"); - - static final FieldName nOGJMMEDGLL = FieldName.forField("NOGJMMEDGLL"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceInfoOuterClass.java deleted file mode 100644 index b51e5d2..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousDiceSurfaceInfoOuterClass.java +++ /dev/null @@ -1,342 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueNousDiceSurfaceInfoOuterClass { - /** - * Protobuf type {@code ChessRogueNousDiceSurfaceInfo} - */ - public static final class ChessRogueNousDiceSurfaceInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 index = 5; - */ - private int index; - - /** - * optional uint32 dice_id = 9; - */ - private int diceId; - - private ChessRogueNousDiceSurfaceInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueNousDiceSurfaceInfo} - */ - public static ChessRogueNousDiceSurfaceInfo newInstance() { - return new ChessRogueNousDiceSurfaceInfo(); - } - - /** - * optional uint32 index = 5; - * @return whether the index field is set - */ - public boolean hasIndex() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 index = 5; - * @return this - */ - public ChessRogueNousDiceSurfaceInfo clearIndex() { - bitField0_ &= ~0x00000001; - index = 0; - return this; - } - - /** - * optional uint32 index = 5; - * @return the index - */ - public int getIndex() { - return index; - } - - /** - * optional uint32 index = 5; - * @param value the index to set - * @return this - */ - public ChessRogueNousDiceSurfaceInfo setIndex(final int value) { - bitField0_ |= 0x00000001; - index = value; - return this; - } - - /** - * optional uint32 dice_id = 9; - * @return whether the diceId field is set - */ - public boolean hasDiceId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dice_id = 9; - * @return this - */ - public ChessRogueNousDiceSurfaceInfo clearDiceId() { - bitField0_ &= ~0x00000002; - diceId = 0; - return this; - } - - /** - * optional uint32 dice_id = 9; - * @return the diceId - */ - public int getDiceId() { - return diceId; - } - - /** - * optional uint32 dice_id = 9; - * @param value the diceId to set - * @return this - */ - public ChessRogueNousDiceSurfaceInfo setDiceId(final int value) { - bitField0_ |= 0x00000002; - diceId = value; - return this; - } - - @Override - public ChessRogueNousDiceSurfaceInfo copyFrom(final ChessRogueNousDiceSurfaceInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - index = other.index; - diceId = other.diceId; - } - return this; - } - - @Override - public ChessRogueNousDiceSurfaceInfo mergeFrom(final ChessRogueNousDiceSurfaceInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasIndex()) { - setIndex(other.index); - } - if (other.hasDiceId()) { - setDiceId(other.diceId); - } - return this; - } - - @Override - public ChessRogueNousDiceSurfaceInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - index = 0; - diceId = 0; - return this; - } - - @Override - public ChessRogueNousDiceSurfaceInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousDiceSurfaceInfo)) { - return false; - } - ChessRogueNousDiceSurfaceInfo other = (ChessRogueNousDiceSurfaceInfo) o; - return bitField0_ == other.bitField0_ - && (!hasIndex() || index == other.index) - && (!hasDiceId() || diceId == other.diceId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(index); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(diceId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(diceId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousDiceSurfaceInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // diceId - diceId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.index, index); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.diceId, diceId); - } - output.endObject(); - } - - @Override - public ChessRogueNousDiceSurfaceInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 100346066: { - if (input.isAtField(FieldNames.index)) { - if (!input.trySkipNullValue()) { - index = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1332033758: - case 1656647859: { - if (input.isAtField(FieldNames.diceId)) { - if (!input.trySkipNullValue()) { - diceId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousDiceSurfaceInfo clone() { - return new ChessRogueNousDiceSurfaceInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousDiceSurfaceInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceInfo(), data).checkInitialized(); - } - - public static ChessRogueNousDiceSurfaceInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceInfo(), input).checkInitialized(); - } - - public static ChessRogueNousDiceSurfaceInfo parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousDiceSurfaceInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousDiceSurfaceInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousDiceSurfaceInfoFactory.INSTANCE; - } - - private enum ChessRogueNousDiceSurfaceInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousDiceSurfaceInfo create() { - return ChessRogueNousDiceSurfaceInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName index = FieldName.forField("index"); - - static final FieldName diceId = FieldName.forField("diceId", "dice_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceCsReqOuterClass.java deleted file mode 100644 index bbbec87..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceCsReqOuterClass.java +++ /dev/null @@ -1,283 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueNousEditDiceCsReqOuterClass { - /** - * Protobuf type {@code ChessRogueNousEditDiceCsReq} - */ - public static final class ChessRogueNousEditDiceCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRogueNousDiceInfo dice_info = 12; - */ - private final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo diceInfo = ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.newInstance(); - - private ChessRogueNousEditDiceCsReq() { - } - - /** - * @return a new empty instance of {@code ChessRogueNousEditDiceCsReq} - */ - public static ChessRogueNousEditDiceCsReq newInstance() { - return new ChessRogueNousEditDiceCsReq(); - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 12; - * @return whether the diceInfo field is set - */ - public boolean hasDiceInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 12; - * @return this - */ - public ChessRogueNousEditDiceCsReq clearDiceInfo() { - bitField0_ &= ~0x00000001; - diceInfo.clear(); - return this; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDiceInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getDiceInfo() { - return diceInfo; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getMutableDiceInfo() { - bitField0_ |= 0x00000001; - return diceInfo; - } - - /** - * optional .ChessRogueNousDiceInfo dice_info = 12; - * @param value the diceInfo to set - * @return this - */ - public ChessRogueNousEditDiceCsReq setDiceInfo( - final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) { - bitField0_ |= 0x00000001; - diceInfo.copyFrom(value); - return this; - } - - @Override - public ChessRogueNousEditDiceCsReq copyFrom(final ChessRogueNousEditDiceCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - diceInfo.copyFrom(other.diceInfo); - } - return this; - } - - @Override - public ChessRogueNousEditDiceCsReq mergeFrom(final ChessRogueNousEditDiceCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDiceInfo()) { - getMutableDiceInfo().mergeFrom(other.diceInfo); - } - return this; - } - - @Override - public ChessRogueNousEditDiceCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - diceInfo.clear(); - return this; - } - - @Override - public ChessRogueNousEditDiceCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - diceInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousEditDiceCsReq)) { - return false; - } - ChessRogueNousEditDiceCsReq other = (ChessRogueNousEditDiceCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasDiceInfo() || diceInfo.equals(other.diceInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(diceInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(diceInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousEditDiceCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 98: { - // diceInfo - input.readMessage(diceInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.diceInfo, diceInfo); - } - output.endObject(); - } - - @Override - public ChessRogueNousEditDiceCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -184174347: - case -1394261434: { - if (input.isAtField(FieldNames.diceInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(diceInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousEditDiceCsReq clone() { - return new ChessRogueNousEditDiceCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousEditDiceCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceCsReq(), data).checkInitialized(); - } - - public static ChessRogueNousEditDiceCsReq parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceCsReq(), input).checkInitialized(); - } - - public static ChessRogueNousEditDiceCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousEditDiceCsReq messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousEditDiceCsReqFactory.INSTANCE; - } - - private enum ChessRogueNousEditDiceCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousEditDiceCsReq create() { - return ChessRogueNousEditDiceCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryInfoOuterClass.java deleted file mode 100644 index 1ab85c5..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousMainStoryInfoOuterClass.java +++ /dev/null @@ -1,361 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueNousMainStoryInfoOuterClass { - /** - * Protobuf type {@code ChessRogueNousMainStoryInfo} - */ - public static final class ChessRogueNousMainStoryInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 story_id = 4; - */ - private int storyId; - - /** - *
-     *  2 finished
-     * 
- * - * optional uint32 status = 5; - */ - private int status; - - private ChessRogueNousMainStoryInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueNousMainStoryInfo} - */ - public static ChessRogueNousMainStoryInfo newInstance() { - return new ChessRogueNousMainStoryInfo(); - } - - /** - * optional uint32 story_id = 4; - * @return whether the storyId field is set - */ - public boolean hasStoryId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 story_id = 4; - * @return this - */ - public ChessRogueNousMainStoryInfo clearStoryId() { - bitField0_ &= ~0x00000001; - storyId = 0; - return this; - } - - /** - * optional uint32 story_id = 4; - * @return the storyId - */ - public int getStoryId() { - return storyId; - } - - /** - * optional uint32 story_id = 4; - * @param value the storyId to set - * @return this - */ - public ChessRogueNousMainStoryInfo setStoryId(final int value) { - bitField0_ |= 0x00000001; - storyId = value; - return this; - } - - /** - *
-     *  2 finished
-     * 
- * - * optional uint32 status = 5; - * @return whether the status field is set - */ - public boolean hasStatus() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  2 finished
-     * 
- * - * optional uint32 status = 5; - * @return this - */ - public ChessRogueNousMainStoryInfo clearStatus() { - bitField0_ &= ~0x00000002; - status = 0; - return this; - } - - /** - *
-     *  2 finished
-     * 
- * - * optional uint32 status = 5; - * @return the status - */ - public int getStatus() { - return status; - } - - /** - *
-     *  2 finished
-     * 
- * - * optional uint32 status = 5; - * @param value the status to set - * @return this - */ - public ChessRogueNousMainStoryInfo setStatus(final int value) { - bitField0_ |= 0x00000002; - status = value; - return this; - } - - @Override - public ChessRogueNousMainStoryInfo copyFrom(final ChessRogueNousMainStoryInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - storyId = other.storyId; - status = other.status; - } - return this; - } - - @Override - public ChessRogueNousMainStoryInfo mergeFrom(final ChessRogueNousMainStoryInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasStoryId()) { - setStoryId(other.storyId); - } - if (other.hasStatus()) { - setStatus(other.status); - } - return this; - } - - @Override - public ChessRogueNousMainStoryInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - storyId = 0; - status = 0; - return this; - } - - @Override - public ChessRogueNousMainStoryInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousMainStoryInfo)) { - return false; - } - ChessRogueNousMainStoryInfo other = (ChessRogueNousMainStoryInfo) o; - return bitField0_ == other.bitField0_ - && (!hasStoryId() || storyId == other.storyId) - && (!hasStatus() || status == other.status); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(storyId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(status); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(status); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousMainStoryInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // storyId - storyId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // status - status = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.storyId, storyId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.status, status); - } - output.endObject(); - } - - @Override - public ChessRogueNousMainStoryInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1884251920: - case 1717754021: { - if (input.isAtField(FieldNames.storyId)) { - if (!input.trySkipNullValue()) { - storyId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -892481550: { - if (input.isAtField(FieldNames.status)) { - if (!input.trySkipNullValue()) { - status = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousMainStoryInfo clone() { - return new ChessRogueNousMainStoryInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousMainStoryInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousMainStoryInfo(), data).checkInitialized(); - } - - public static ChessRogueNousMainStoryInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousMainStoryInfo(), input).checkInitialized(); - } - - public static ChessRogueNousMainStoryInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousMainStoryInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousMainStoryInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousMainStoryInfoFactory.INSTANCE; - } - - private enum ChessRogueNousMainStoryInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousMainStoryInfo create() { - return ChessRogueNousMainStoryInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName storyId = FieldName.forField("storyId", "story_id"); - - static final FieldName status = FieldName.forField("status"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java deleted file mode 100644 index e119c8e..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousQueryInfoOuterClass.java +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueNousQueryInfoOuterClass { - /** - *
-   * MAKPHMAOCHI talent_info = 1;
-   * OFHBFINPHAG JNAGMIALOII = 6;
-   * CLIDPGPDFGK IKGPADCBBPN = 4;
-   * ChessRogueQuery query_info = 13;
-   * repeated uint32 PHJAFGJHOCO = 7;
-   * repeated uint32 CMNHLKGFKOP = 8;
-   * 
- * - * Protobuf type {@code ChessRogueNousQueryInfo} - */ - public static final class ChessRogueNousQueryInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - private ChessRogueNousQueryInfo() { - } - - /** - *
-     * MAKPHMAOCHI talent_info = 1;
-     * OFHBFINPHAG JNAGMIALOII = 6;
-     * CLIDPGPDFGK IKGPADCBBPN = 4;
-     * ChessRogueQuery query_info = 13;
-     * repeated uint32 PHJAFGJHOCO = 7;
-     * repeated uint32 CMNHLKGFKOP = 8;
-     * 
- * - * @return a new empty instance of {@code ChessRogueNousQueryInfo} - */ - public static ChessRogueNousQueryInfo newInstance() { - return new ChessRogueNousQueryInfo(); - } - - @Override - public ChessRogueNousQueryInfo copyFrom(final ChessRogueNousQueryInfo other) { - cachedSize = other.cachedSize; - return this; - } - - @Override - public ChessRogueNousQueryInfo mergeFrom(final ChessRogueNousQueryInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - return this; - } - - @Override - public ChessRogueNousQueryInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - return this; - } - - @Override - public ChessRogueNousQueryInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousQueryInfo)) { - return false; - } - ChessRogueNousQueryInfo other = (ChessRogueNousQueryInfo) o; - return true; - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - } - - @Override - protected int computeSerializedSize() { - int size = 0; - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousQueryInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - output.endObject(); - } - - @Override - public ChessRogueNousQueryInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousQueryInfo clone() { - return new ChessRogueNousQueryInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousQueryInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousQueryInfo(), data).checkInitialized(); - } - - public static ChessRogueNousQueryInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousQueryInfo(), input).checkInitialized(); - } - - public static ChessRogueNousQueryInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousQueryInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousQueryInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousQueryInfoFactory.INSTANCE; - } - - private enum ChessRogueNousQueryInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousQueryInfo create() { - return ChessRogueNousQueryInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueNousStoryInfoOuterClass.java deleted file mode 100644 index 9ad26f3..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousStoryInfoOuterClass.java +++ /dev/null @@ -1,942 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class ChessRogueNousStoryInfoOuterClass { - /** - * Protobuf type {@code ChessRogueNousStoryInfo} - */ - public static final class ChessRogueNousStoryInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 story_id = 3; - */ - private int storyId; - - /** - * optional uint32 sub_story_id = 7; - */ - private int subStoryId; - - /** - * optional uint32 ACLGLHEFFON = 14; - */ - private int aCLGLHEFFON; - - /** - * optional bool CKEKKMGIHKJ = 8; - */ - private boolean cKEKKMGIHKJ; - - /** - * optional bool AHOJIDMLFPE = 12; - */ - private boolean aHOJIDMLFPE; - - /** - * repeated uint32 HCPCJBDBBGC = 1; - */ - private final RepeatedInt hCPCJBDBBGC = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 CMHLEEKNFKH = 4; - */ - private final RepeatedInt cMHLEEKNFKH = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 INPDLILFOCO = 9; - */ - private final RepeatedInt iNPDLILFOCO = RepeatedInt.newEmptyInstance(); - - private ChessRogueNousStoryInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueNousStoryInfo} - */ - public static ChessRogueNousStoryInfo newInstance() { - return new ChessRogueNousStoryInfo(); - } - - /** - * optional uint32 story_id = 3; - * @return whether the storyId field is set - */ - public boolean hasStoryId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 story_id = 3; - * @return this - */ - public ChessRogueNousStoryInfo clearStoryId() { - bitField0_ &= ~0x00000001; - storyId = 0; - return this; - } - - /** - * optional uint32 story_id = 3; - * @return the storyId - */ - public int getStoryId() { - return storyId; - } - - /** - * optional uint32 story_id = 3; - * @param value the storyId to set - * @return this - */ - public ChessRogueNousStoryInfo setStoryId(final int value) { - bitField0_ |= 0x00000001; - storyId = value; - return this; - } - - /** - * optional uint32 sub_story_id = 7; - * @return whether the subStoryId field is set - */ - public boolean hasSubStoryId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 sub_story_id = 7; - * @return this - */ - public ChessRogueNousStoryInfo clearSubStoryId() { - bitField0_ &= ~0x00000002; - subStoryId = 0; - return this; - } - - /** - * optional uint32 sub_story_id = 7; - * @return the subStoryId - */ - public int getSubStoryId() { - return subStoryId; - } - - /** - * optional uint32 sub_story_id = 7; - * @param value the subStoryId to set - * @return this - */ - public ChessRogueNousStoryInfo setSubStoryId(final int value) { - bitField0_ |= 0x00000002; - subStoryId = value; - return this; - } - - /** - * optional uint32 ACLGLHEFFON = 14; - * @return whether the aCLGLHEFFON field is set - */ - public boolean hasACLGLHEFFON() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 ACLGLHEFFON = 14; - * @return this - */ - public ChessRogueNousStoryInfo clearACLGLHEFFON() { - bitField0_ &= ~0x00000004; - aCLGLHEFFON = 0; - return this; - } - - /** - * optional uint32 ACLGLHEFFON = 14; - * @return the aCLGLHEFFON - */ - public int getACLGLHEFFON() { - return aCLGLHEFFON; - } - - /** - * optional uint32 ACLGLHEFFON = 14; - * @param value the aCLGLHEFFON to set - * @return this - */ - public ChessRogueNousStoryInfo setACLGLHEFFON(final int value) { - bitField0_ |= 0x00000004; - aCLGLHEFFON = value; - return this; - } - - /** - * optional bool CKEKKMGIHKJ = 8; - * @return whether the cKEKKMGIHKJ field is set - */ - public boolean hasCKEKKMGIHKJ() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional bool CKEKKMGIHKJ = 8; - * @return this - */ - public ChessRogueNousStoryInfo clearCKEKKMGIHKJ() { - bitField0_ &= ~0x00000008; - cKEKKMGIHKJ = false; - return this; - } - - /** - * optional bool CKEKKMGIHKJ = 8; - * @return the cKEKKMGIHKJ - */ - public boolean getCKEKKMGIHKJ() { - return cKEKKMGIHKJ; - } - - /** - * optional bool CKEKKMGIHKJ = 8; - * @param value the cKEKKMGIHKJ to set - * @return this - */ - public ChessRogueNousStoryInfo setCKEKKMGIHKJ(final boolean value) { - bitField0_ |= 0x00000008; - cKEKKMGIHKJ = value; - return this; - } - - /** - * optional bool AHOJIDMLFPE = 12; - * @return whether the aHOJIDMLFPE field is set - */ - public boolean hasAHOJIDMLFPE() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional bool AHOJIDMLFPE = 12; - * @return this - */ - public ChessRogueNousStoryInfo clearAHOJIDMLFPE() { - bitField0_ &= ~0x00000010; - aHOJIDMLFPE = false; - return this; - } - - /** - * optional bool AHOJIDMLFPE = 12; - * @return the aHOJIDMLFPE - */ - public boolean getAHOJIDMLFPE() { - return aHOJIDMLFPE; - } - - /** - * optional bool AHOJIDMLFPE = 12; - * @param value the aHOJIDMLFPE to set - * @return this - */ - public ChessRogueNousStoryInfo setAHOJIDMLFPE(final boolean value) { - bitField0_ |= 0x00000010; - aHOJIDMLFPE = value; - return this; - } - - /** - * repeated uint32 HCPCJBDBBGC = 1; - * @return whether the hCPCJBDBBGC field is set - */ - public boolean hasHCPCJBDBBGC() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated uint32 HCPCJBDBBGC = 1; - * @return this - */ - public ChessRogueNousStoryInfo clearHCPCJBDBBGC() { - bitField0_ &= ~0x00000020; - hCPCJBDBBGC.clear(); - return this; - } - - /** - * repeated uint32 HCPCJBDBBGC = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableHCPCJBDBBGC()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getHCPCJBDBBGC() { - return hCPCJBDBBGC; - } - - /** - * repeated uint32 HCPCJBDBBGC = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableHCPCJBDBBGC() { - bitField0_ |= 0x00000020; - return hCPCJBDBBGC; - } - - /** - * repeated uint32 HCPCJBDBBGC = 1; - * @param value the hCPCJBDBBGC to add - * @return this - */ - public ChessRogueNousStoryInfo addHCPCJBDBBGC(final int value) { - bitField0_ |= 0x00000020; - hCPCJBDBBGC.add(value); - return this; - } - - /** - * repeated uint32 HCPCJBDBBGC = 1; - * @param values the hCPCJBDBBGC to add - * @return this - */ - public ChessRogueNousStoryInfo addAllHCPCJBDBBGC(final int... values) { - bitField0_ |= 0x00000020; - hCPCJBDBBGC.addAll(values); - return this; - } - - /** - * repeated uint32 CMHLEEKNFKH = 4; - * @return whether the cMHLEEKNFKH field is set - */ - public boolean hasCMHLEEKNFKH() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated uint32 CMHLEEKNFKH = 4; - * @return this - */ - public ChessRogueNousStoryInfo clearCMHLEEKNFKH() { - bitField0_ &= ~0x00000040; - cMHLEEKNFKH.clear(); - return this; - } - - /** - * repeated uint32 CMHLEEKNFKH = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCMHLEEKNFKH()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getCMHLEEKNFKH() { - return cMHLEEKNFKH; - } - - /** - * repeated uint32 CMHLEEKNFKH = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableCMHLEEKNFKH() { - bitField0_ |= 0x00000040; - return cMHLEEKNFKH; - } - - /** - * repeated uint32 CMHLEEKNFKH = 4; - * @param value the cMHLEEKNFKH to add - * @return this - */ - public ChessRogueNousStoryInfo addCMHLEEKNFKH(final int value) { - bitField0_ |= 0x00000040; - cMHLEEKNFKH.add(value); - return this; - } - - /** - * repeated uint32 CMHLEEKNFKH = 4; - * @param values the cMHLEEKNFKH to add - * @return this - */ - public ChessRogueNousStoryInfo addAllCMHLEEKNFKH(final int... values) { - bitField0_ |= 0x00000040; - cMHLEEKNFKH.addAll(values); - return this; - } - - /** - * repeated uint32 INPDLILFOCO = 9; - * @return whether the iNPDLILFOCO field is set - */ - public boolean hasINPDLILFOCO() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated uint32 INPDLILFOCO = 9; - * @return this - */ - public ChessRogueNousStoryInfo clearINPDLILFOCO() { - bitField0_ &= ~0x00000080; - iNPDLILFOCO.clear(); - return this; - } - - /** - * repeated uint32 INPDLILFOCO = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableINPDLILFOCO()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getINPDLILFOCO() { - return iNPDLILFOCO; - } - - /** - * repeated uint32 INPDLILFOCO = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableINPDLILFOCO() { - bitField0_ |= 0x00000080; - return iNPDLILFOCO; - } - - /** - * repeated uint32 INPDLILFOCO = 9; - * @param value the iNPDLILFOCO to add - * @return this - */ - public ChessRogueNousStoryInfo addINPDLILFOCO(final int value) { - bitField0_ |= 0x00000080; - iNPDLILFOCO.add(value); - return this; - } - - /** - * repeated uint32 INPDLILFOCO = 9; - * @param values the iNPDLILFOCO to add - * @return this - */ - public ChessRogueNousStoryInfo addAllINPDLILFOCO(final int... values) { - bitField0_ |= 0x00000080; - iNPDLILFOCO.addAll(values); - return this; - } - - @Override - public ChessRogueNousStoryInfo copyFrom(final ChessRogueNousStoryInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - storyId = other.storyId; - subStoryId = other.subStoryId; - aCLGLHEFFON = other.aCLGLHEFFON; - cKEKKMGIHKJ = other.cKEKKMGIHKJ; - aHOJIDMLFPE = other.aHOJIDMLFPE; - hCPCJBDBBGC.copyFrom(other.hCPCJBDBBGC); - cMHLEEKNFKH.copyFrom(other.cMHLEEKNFKH); - iNPDLILFOCO.copyFrom(other.iNPDLILFOCO); - } - return this; - } - - @Override - public ChessRogueNousStoryInfo mergeFrom(final ChessRogueNousStoryInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasStoryId()) { - setStoryId(other.storyId); - } - if (other.hasSubStoryId()) { - setSubStoryId(other.subStoryId); - } - if (other.hasACLGLHEFFON()) { - setACLGLHEFFON(other.aCLGLHEFFON); - } - if (other.hasCKEKKMGIHKJ()) { - setCKEKKMGIHKJ(other.cKEKKMGIHKJ); - } - if (other.hasAHOJIDMLFPE()) { - setAHOJIDMLFPE(other.aHOJIDMLFPE); - } - if (other.hasHCPCJBDBBGC()) { - getMutableHCPCJBDBBGC().addAll(other.hCPCJBDBBGC); - } - if (other.hasCMHLEEKNFKH()) { - getMutableCMHLEEKNFKH().addAll(other.cMHLEEKNFKH); - } - if (other.hasINPDLILFOCO()) { - getMutableINPDLILFOCO().addAll(other.iNPDLILFOCO); - } - return this; - } - - @Override - public ChessRogueNousStoryInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - storyId = 0; - subStoryId = 0; - aCLGLHEFFON = 0; - cKEKKMGIHKJ = false; - aHOJIDMLFPE = false; - hCPCJBDBBGC.clear(); - cMHLEEKNFKH.clear(); - iNPDLILFOCO.clear(); - return this; - } - - @Override - public ChessRogueNousStoryInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - hCPCJBDBBGC.clear(); - cMHLEEKNFKH.clear(); - iNPDLILFOCO.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueNousStoryInfo)) { - return false; - } - ChessRogueNousStoryInfo other = (ChessRogueNousStoryInfo) o; - return bitField0_ == other.bitField0_ - && (!hasStoryId() || storyId == other.storyId) - && (!hasSubStoryId() || subStoryId == other.subStoryId) - && (!hasACLGLHEFFON() || aCLGLHEFFON == other.aCLGLHEFFON) - && (!hasCKEKKMGIHKJ() || cKEKKMGIHKJ == other.cKEKKMGIHKJ) - && (!hasAHOJIDMLFPE() || aHOJIDMLFPE == other.aHOJIDMLFPE) - && (!hasHCPCJBDBBGC() || hCPCJBDBBGC.equals(other.hCPCJBDBBGC)) - && (!hasCMHLEEKNFKH() || cMHLEEKNFKH.equals(other.cMHLEEKNFKH)) - && (!hasINPDLILFOCO() || iNPDLILFOCO.equals(other.iNPDLILFOCO)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(storyId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(subStoryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(aCLGLHEFFON); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeBoolNoTag(cKEKKMGIHKJ); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); - output.writeBoolNoTag(aHOJIDMLFPE); - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < hCPCJBDBBGC.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(hCPCJBDBBGC.array()[i]); - } - } - if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < cMHLEEKNFKH.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(cMHLEEKNFKH.array()[i]); - } - } - if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < iNPDLILFOCO.length(); i++) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(iNPDLILFOCO.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(storyId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(subStoryId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aCLGLHEFFON); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * hCPCJBDBBGC.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hCPCJBDBBGC); - } - if ((bitField0_ & 0x00000040) != 0) { - size += (1 * cMHLEEKNFKH.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cMHLEEKNFKH); - } - if ((bitField0_ & 0x00000080) != 0) { - size += (1 * iNPDLILFOCO.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(iNPDLILFOCO); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueNousStoryInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // storyId - storyId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // subStoryId - subStoryId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // aCLGLHEFFON - aCLGLHEFFON = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // cKEKKMGIHKJ - cKEKKMGIHKJ = input.readBool(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // aHOJIDMLFPE - aHOJIDMLFPE = input.readBool(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // hCPCJBDBBGC [packed=true] - input.readPackedUInt32(hCPCJBDBBGC, tag); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // cMHLEEKNFKH [packed=true] - input.readPackedUInt32(cMHLEEKNFKH, tag); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // iNPDLILFOCO [packed=true] - input.readPackedUInt32(iNPDLILFOCO, tag); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 8: { - // hCPCJBDBBGC [packed=false] - tag = input.readRepeatedUInt32(hCPCJBDBBGC, tag); - bitField0_ |= 0x00000020; - break; - } - case 32: { - // cMHLEEKNFKH [packed=false] - tag = input.readRepeatedUInt32(cMHLEEKNFKH, tag); - bitField0_ |= 0x00000040; - break; - } - case 72: { - // iNPDLILFOCO [packed=false] - tag = input.readRepeatedUInt32(iNPDLILFOCO, tag); - bitField0_ |= 0x00000080; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.storyId, storyId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.subStoryId, subStoryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.aCLGLHEFFON, aCLGLHEFFON); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.cKEKKMGIHKJ, cKEKKMGIHKJ); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.aHOJIDMLFPE, aHOJIDMLFPE); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.hCPCJBDBBGC, hCPCJBDBBGC); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedUInt32(FieldNames.cMHLEEKNFKH, cMHLEEKNFKH); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedUInt32(FieldNames.iNPDLILFOCO, iNPDLILFOCO); - } - output.endObject(); - } - - @Override - public ChessRogueNousStoryInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1884251920: - case 1717754021: { - if (input.isAtField(FieldNames.storyId)) { - if (!input.trySkipNullValue()) { - storyId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 929098384: - case 1899516868: { - if (input.isAtField(FieldNames.subStoryId)) { - if (!input.trySkipNullValue()) { - subStoryId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1003347797: { - if (input.isAtField(FieldNames.aCLGLHEFFON)) { - if (!input.trySkipNullValue()) { - aCLGLHEFFON = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -173257579: { - if (input.isAtField(FieldNames.cKEKKMGIHKJ)) { - if (!input.trySkipNullValue()) { - cKEKKMGIHKJ = input.readBool(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -654341121: { - if (input.isAtField(FieldNames.aHOJIDMLFPE)) { - if (!input.trySkipNullValue()) { - aHOJIDMLFPE = input.readBool(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 333875514: { - if (input.isAtField(FieldNames.hCPCJBDBBGC)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(hCPCJBDBBGC); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1206117230: { - if (input.isAtField(FieldNames.cMHLEEKNFKH)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(cMHLEEKNFKH); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 101017067: { - if (input.isAtField(FieldNames.iNPDLILFOCO)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(iNPDLILFOCO); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueNousStoryInfo clone() { - return new ChessRogueNousStoryInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueNousStoryInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousStoryInfo(), data).checkInitialized(); - } - - public static ChessRogueNousStoryInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousStoryInfo(), input).checkInitialized(); - } - - public static ChessRogueNousStoryInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousStoryInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueNousStoryInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueNousStoryInfoFactory.INSTANCE; - } - - private enum ChessRogueNousStoryInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueNousStoryInfo create() { - return ChessRogueNousStoryInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName storyId = FieldName.forField("storyId", "story_id"); - - static final FieldName subStoryId = FieldName.forField("subStoryId", "sub_story_id"); - - static final FieldName aCLGLHEFFON = FieldName.forField("ACLGLHEFFON"); - - static final FieldName cKEKKMGIHKJ = FieldName.forField("CKEKKMGIHKJ"); - - static final FieldName aHOJIDMLFPE = FieldName.forField("AHOJIDMLFPE"); - - static final FieldName hCPCJBDBBGC = FieldName.forField("HCPCJBDBBGC"); - - static final FieldName cMHLEEKNFKH = FieldName.forField("CMHLEEKNFKH"); - - static final FieldName iNPDLILFOCO = FieldName.forField("INPDLILFOCO"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceCsReqOuterClass.java deleted file mode 100644 index 36e290c..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueReRollDiceCsReqOuterClass.java +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueReRollDiceCsReqOuterClass { - /** - * Protobuf type {@code ChessRogueReRollDiceCsReq} - */ - public static final class ChessRogueReRollDiceCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 entity_id = 14; - */ - private int entityId; - - private ChessRogueReRollDiceCsReq() { - } - - /** - * @return a new empty instance of {@code ChessRogueReRollDiceCsReq} - */ - public static ChessRogueReRollDiceCsReq newInstance() { - return new ChessRogueReRollDiceCsReq(); - } - - /** - * optional uint32 entity_id = 14; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 entity_id = 14; - * @return this - */ - public ChessRogueReRollDiceCsReq clearEntityId() { - bitField0_ &= ~0x00000001; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 14; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 14; - * @param value the entityId to set - * @return this - */ - public ChessRogueReRollDiceCsReq setEntityId(final int value) { - bitField0_ |= 0x00000001; - entityId = value; - return this; - } - - @Override - public ChessRogueReRollDiceCsReq copyFrom(final ChessRogueReRollDiceCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - entityId = other.entityId; - } - return this; - } - - @Override - public ChessRogueReRollDiceCsReq mergeFrom(final ChessRogueReRollDiceCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); - } - return this; - } - - @Override - public ChessRogueReRollDiceCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - entityId = 0; - return this; - } - - @Override - public ChessRogueReRollDiceCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueReRollDiceCsReq)) { - return false; - } - ChessRogueReRollDiceCsReq other = (ChessRogueReRollDiceCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(entityId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueReRollDiceCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 112: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); - } - output.endObject(); - } - - @Override - public ChessRogueReRollDiceCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { - if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueReRollDiceCsReq clone() { - return new ChessRogueReRollDiceCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueReRollDiceCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueReRollDiceCsReq(), data).checkInitialized(); - } - - public static ChessRogueReRollDiceCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueReRollDiceCsReq(), input).checkInitialized(); - } - - public static ChessRogueReRollDiceCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueReRollDiceCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueReRollDiceCsReq messages - */ - public static MessageFactory getFactory() { - return ChessRogueReRollDiceCsReqFactory.INSTANCE; - } - - private enum ChessRogueReRollDiceCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueReRollDiceCsReq create() { - return ChessRogueReRollDiceCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueStartCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueStartCsReqOuterClass.java deleted file mode 100644 index 9d0129c..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueStartCsReqOuterClass.java +++ /dev/null @@ -1,924 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class ChessRogueStartCsReqOuterClass { - /** - * Protobuf type {@code ChessRogueStartCsReq} - */ - public static final class ChessRogueStartCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  guess this is the difficulty level
-     * 
- * - * optional uint32 KOLEFJKMFLF = 1; - */ - private int kOLEFJKMFLF; - - /** - * optional uint32 area_id = 5; - */ - private int areaId; - - /** - * optional uint32 dice_branch_id = 9; - */ - private int diceBranchId; - - /** - * repeated uint32 DDDICOEFHPM = 6; - */ - private final RepeatedInt dDDICOEFHPM = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 JDCMGPJHGLG = 8; - */ - private final RepeatedInt jDCMGPJHGLG = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 disable_aeon_id = 13; - */ - private final RepeatedInt disableAeonId = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 base_avatar_id_list = 15; - */ - private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); - - private ChessRogueStartCsReq() { - } - - /** - * @return a new empty instance of {@code ChessRogueStartCsReq} - */ - public static ChessRogueStartCsReq newInstance() { - return new ChessRogueStartCsReq(); - } - - /** - *
-     *  guess this is the difficulty level
-     * 
- * - * optional uint32 KOLEFJKMFLF = 1; - * @return whether the kOLEFJKMFLF field is set - */ - public boolean hasKOLEFJKMFLF() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  guess this is the difficulty level
-     * 
- * - * optional uint32 KOLEFJKMFLF = 1; - * @return this - */ - public ChessRogueStartCsReq clearKOLEFJKMFLF() { - bitField0_ &= ~0x00000001; - kOLEFJKMFLF = 0; - return this; - } - - /** - *
-     *  guess this is the difficulty level
-     * 
- * - * optional uint32 KOLEFJKMFLF = 1; - * @return the kOLEFJKMFLF - */ - public int getKOLEFJKMFLF() { - return kOLEFJKMFLF; - } - - /** - *
-     *  guess this is the difficulty level
-     * 
- * - * optional uint32 KOLEFJKMFLF = 1; - * @param value the kOLEFJKMFLF to set - * @return this - */ - public ChessRogueStartCsReq setKOLEFJKMFLF(final int value) { - bitField0_ |= 0x00000001; - kOLEFJKMFLF = value; - return this; - } - - /** - * optional uint32 area_id = 5; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 area_id = 5; - * @return this - */ - public ChessRogueStartCsReq clearAreaId() { - bitField0_ &= ~0x00000002; - areaId = 0; - return this; - } - - /** - * optional uint32 area_id = 5; - * @return the areaId - */ - public int getAreaId() { - return areaId; - } - - /** - * optional uint32 area_id = 5; - * @param value the areaId to set - * @return this - */ - public ChessRogueStartCsReq setAreaId(final int value) { - bitField0_ |= 0x00000002; - areaId = value; - return this; - } - - /** - * optional uint32 dice_branch_id = 9; - * @return whether the diceBranchId field is set - */ - public boolean hasDiceBranchId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 dice_branch_id = 9; - * @return this - */ - public ChessRogueStartCsReq clearDiceBranchId() { - bitField0_ &= ~0x00000004; - diceBranchId = 0; - return this; - } - - /** - * optional uint32 dice_branch_id = 9; - * @return the diceBranchId - */ - public int getDiceBranchId() { - return diceBranchId; - } - - /** - * optional uint32 dice_branch_id = 9; - * @param value the diceBranchId to set - * @return this - */ - public ChessRogueStartCsReq setDiceBranchId(final int value) { - bitField0_ |= 0x00000004; - diceBranchId = value; - return this; - } - - /** - * repeated uint32 DDDICOEFHPM = 6; - * @return whether the dDDICOEFHPM field is set - */ - public boolean hasDDDICOEFHPM() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 DDDICOEFHPM = 6; - * @return this - */ - public ChessRogueStartCsReq clearDDDICOEFHPM() { - bitField0_ &= ~0x00000008; - dDDICOEFHPM.clear(); - return this; - } - - /** - * repeated uint32 DDDICOEFHPM = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDDDICOEFHPM()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getDDDICOEFHPM() { - return dDDICOEFHPM; - } - - /** - * repeated uint32 DDDICOEFHPM = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableDDDICOEFHPM() { - bitField0_ |= 0x00000008; - return dDDICOEFHPM; - } - - /** - * repeated uint32 DDDICOEFHPM = 6; - * @param value the dDDICOEFHPM to add - * @return this - */ - public ChessRogueStartCsReq addDDDICOEFHPM(final int value) { - bitField0_ |= 0x00000008; - dDDICOEFHPM.add(value); - return this; - } - - /** - * repeated uint32 DDDICOEFHPM = 6; - * @param values the dDDICOEFHPM to add - * @return this - */ - public ChessRogueStartCsReq addAllDDDICOEFHPM(final int... values) { - bitField0_ |= 0x00000008; - dDDICOEFHPM.addAll(values); - return this; - } - - /** - * repeated uint32 JDCMGPJHGLG = 8; - * @return whether the jDCMGPJHGLG field is set - */ - public boolean hasJDCMGPJHGLG() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 JDCMGPJHGLG = 8; - * @return this - */ - public ChessRogueStartCsReq clearJDCMGPJHGLG() { - bitField0_ &= ~0x00000010; - jDCMGPJHGLG.clear(); - return this; - } - - /** - * repeated uint32 JDCMGPJHGLG = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableJDCMGPJHGLG()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getJDCMGPJHGLG() { - return jDCMGPJHGLG; - } - - /** - * repeated uint32 JDCMGPJHGLG = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableJDCMGPJHGLG() { - bitField0_ |= 0x00000010; - return jDCMGPJHGLG; - } - - /** - * repeated uint32 JDCMGPJHGLG = 8; - * @param value the jDCMGPJHGLG to add - * @return this - */ - public ChessRogueStartCsReq addJDCMGPJHGLG(final int value) { - bitField0_ |= 0x00000010; - jDCMGPJHGLG.add(value); - return this; - } - - /** - * repeated uint32 JDCMGPJHGLG = 8; - * @param values the jDCMGPJHGLG to add - * @return this - */ - public ChessRogueStartCsReq addAllJDCMGPJHGLG(final int... values) { - bitField0_ |= 0x00000010; - jDCMGPJHGLG.addAll(values); - return this; - } - - /** - * repeated uint32 disable_aeon_id = 13; - * @return whether the disableAeonId field is set - */ - public boolean hasDisableAeonId() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated uint32 disable_aeon_id = 13; - * @return this - */ - public ChessRogueStartCsReq clearDisableAeonId() { - bitField0_ &= ~0x00000020; - disableAeonId.clear(); - return this; - } - - /** - * repeated uint32 disable_aeon_id = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDisableAeonId()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getDisableAeonId() { - return disableAeonId; - } - - /** - * repeated uint32 disable_aeon_id = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableDisableAeonId() { - bitField0_ |= 0x00000020; - return disableAeonId; - } - - /** - * repeated uint32 disable_aeon_id = 13; - * @param value the disableAeonId to add - * @return this - */ - public ChessRogueStartCsReq addDisableAeonId(final int value) { - bitField0_ |= 0x00000020; - disableAeonId.add(value); - return this; - } - - /** - * repeated uint32 disable_aeon_id = 13; - * @param values the disableAeonId to add - * @return this - */ - public ChessRogueStartCsReq addAllDisableAeonId(final int... values) { - bitField0_ |= 0x00000020; - disableAeonId.addAll(values); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 15; - * @return whether the baseAvatarIdList field is set - */ - public boolean hasBaseAvatarIdList() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated uint32 base_avatar_id_list = 15; - * @return this - */ - public ChessRogueStartCsReq clearBaseAvatarIdList() { - bitField0_ &= ~0x00000040; - baseAvatarIdList.clear(); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBaseAvatarIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBaseAvatarIdList() { - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000040; - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 15; - * @param value the baseAvatarIdList to add - * @return this - */ - public ChessRogueStartCsReq addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000040; - baseAvatarIdList.add(value); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 15; - * @param values the baseAvatarIdList to add - * @return this - */ - public ChessRogueStartCsReq addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000040; - baseAvatarIdList.addAll(values); - return this; - } - - @Override - public ChessRogueStartCsReq copyFrom(final ChessRogueStartCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - kOLEFJKMFLF = other.kOLEFJKMFLF; - areaId = other.areaId; - diceBranchId = other.diceBranchId; - dDDICOEFHPM.copyFrom(other.dDDICOEFHPM); - jDCMGPJHGLG.copyFrom(other.jDCMGPJHGLG); - disableAeonId.copyFrom(other.disableAeonId); - baseAvatarIdList.copyFrom(other.baseAvatarIdList); - } - return this; - } - - @Override - public ChessRogueStartCsReq mergeFrom(final ChessRogueStartCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKOLEFJKMFLF()) { - setKOLEFJKMFLF(other.kOLEFJKMFLF); - } - if (other.hasAreaId()) { - setAreaId(other.areaId); - } - if (other.hasDiceBranchId()) { - setDiceBranchId(other.diceBranchId); - } - if (other.hasDDDICOEFHPM()) { - getMutableDDDICOEFHPM().addAll(other.dDDICOEFHPM); - } - if (other.hasJDCMGPJHGLG()) { - getMutableJDCMGPJHGLG().addAll(other.jDCMGPJHGLG); - } - if (other.hasDisableAeonId()) { - getMutableDisableAeonId().addAll(other.disableAeonId); - } - if (other.hasBaseAvatarIdList()) { - getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); - } - return this; - } - - @Override - public ChessRogueStartCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - kOLEFJKMFLF = 0; - areaId = 0; - diceBranchId = 0; - dDDICOEFHPM.clear(); - jDCMGPJHGLG.clear(); - disableAeonId.clear(); - baseAvatarIdList.clear(); - return this; - } - - @Override - public ChessRogueStartCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dDDICOEFHPM.clear(); - jDCMGPJHGLG.clear(); - disableAeonId.clear(); - baseAvatarIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueStartCsReq)) { - return false; - } - ChessRogueStartCsReq other = (ChessRogueStartCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasKOLEFJKMFLF() || kOLEFJKMFLF == other.kOLEFJKMFLF) - && (!hasAreaId() || areaId == other.areaId) - && (!hasDiceBranchId() || diceBranchId == other.diceBranchId) - && (!hasDDDICOEFHPM() || dDDICOEFHPM.equals(other.dDDICOEFHPM)) - && (!hasJDCMGPJHGLG() || jDCMGPJHGLG.equals(other.jDCMGPJHGLG)) - && (!hasDisableAeonId() || disableAeonId.equals(other.disableAeonId)) - && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(kOLEFJKMFLF); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(diceBranchId); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < dDDICOEFHPM.length(); i++) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(dDDICOEFHPM.array()[i]); - } - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < jDCMGPJHGLG.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(jDCMGPJHGLG.array()[i]); - } - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < disableAeonId.length(); i++) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(disableAeonId.array()[i]); - } - } - if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(baseAvatarIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(kOLEFJKMFLF); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(diceBranchId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * dDDICOEFHPM.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dDDICOEFHPM); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * jDCMGPJHGLG.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(jDCMGPJHGLG); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * disableAeonId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disableAeonId); - } - if ((bitField0_ & 0x00000040) != 0) { - size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueStartCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // kOLEFJKMFLF - kOLEFJKMFLF = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // areaId - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // diceBranchId - diceBranchId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // dDDICOEFHPM [packed=true] - input.readPackedUInt32(dDDICOEFHPM, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // jDCMGPJHGLG [packed=true] - input.readPackedUInt32(jDCMGPJHGLG, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // disableAeonId [packed=true] - input.readPackedUInt32(disableAeonId, tag); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // baseAvatarIdList [packed=true] - input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 48: { - // dDDICOEFHPM [packed=false] - tag = input.readRepeatedUInt32(dDDICOEFHPM, tag); - bitField0_ |= 0x00000008; - break; - } - case 64: { - // jDCMGPJHGLG [packed=false] - tag = input.readRepeatedUInt32(jDCMGPJHGLG, tag); - bitField0_ |= 0x00000010; - break; - } - case 104: { - // disableAeonId [packed=false] - tag = input.readRepeatedUInt32(disableAeonId, tag); - bitField0_ |= 0x00000020; - break; - } - case 120: { - // baseAvatarIdList [packed=false] - tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000040; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.kOLEFJKMFLF, kOLEFJKMFLF); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.areaId, areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.diceBranchId, diceBranchId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.dDDICOEFHPM, dDDICOEFHPM); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.jDCMGPJHGLG, jDCMGPJHGLG); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.disableAeonId, disableAeonId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); - } - output.endObject(); - } - - @Override - public ChessRogueStartCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -13887267: { - if (input.isAtField(FieldNames.kOLEFJKMFLF)) { - if (!input.trySkipNullValue()) { - kOLEFJKMFLF = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { - if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 216999716: - case 1050456640: { - if (input.isAtField(FieldNames.diceBranchId)) { - if (!input.trySkipNullValue()) { - diceBranchId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -727553421: { - if (input.isAtField(FieldNames.dDDICOEFHPM)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(dDDICOEFHPM); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 852754199: { - if (input.isAtField(FieldNames.jDCMGPJHGLG)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(jDCMGPJHGLG); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1370442106: - case -1529483392: { - if (input.isAtField(FieldNames.disableAeonId)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(disableAeonId); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1212654461: - case 914628490: { - if (input.isAtField(FieldNames.baseAvatarIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueStartCsReq clone() { - return new ChessRogueStartCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueStartCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueStartCsReq(), data).checkInitialized(); - } - - public static ChessRogueStartCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueStartCsReq(), input).checkInitialized(); - } - - public static ChessRogueStartCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueStartCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueStartCsReq messages - */ - public static MessageFactory getFactory() { - return ChessRogueStartCsReqFactory.INSTANCE; - } - - private enum ChessRogueStartCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueStartCsReq create() { - return ChessRogueStartCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName kOLEFJKMFLF = FieldName.forField("KOLEFJKMFLF"); - - static final FieldName areaId = FieldName.forField("areaId", "area_id"); - - static final FieldName diceBranchId = FieldName.forField("diceBranchId", "dice_branch_id"); - - static final FieldName dDDICOEFHPM = FieldName.forField("DDDICOEFHPM"); - - static final FieldName jDCMGPJHGLG = FieldName.forField("JDCMGPJHGLG"); - - static final FieldName disableAeonId = FieldName.forField("disableAeonId", "disable_aeon_id"); - - static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueStartScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueStartScRspOuterClass.java deleted file mode 100644 index da1169c..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueStartScRspOuterClass.java +++ /dev/null @@ -1,794 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueStartScRspOuterClass { - /** - * Protobuf type {@code ChessRogueStartScRsp} - */ - public static final class ChessRogueStartScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * optional .ChessRogueCurrentInfo current_info = 1; - */ - private final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo currentInfo = ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo.newInstance(); - - /** - * optional .LineupInfo lineup = 8; - */ - private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); - - /** - * optional .ChessRogueCellInfo cell_info = 13; - */ - private final ChessRogueCellInfoOuterClass.ChessRogueCellInfo cellInfo = ChessRogueCellInfoOuterClass.ChessRogueCellInfo.newInstance(); - - /** - *
-     * PEEHMMLEDMP build_query = 3;
-     * 
- * - * optional .ChessRogueInfo chess_rogue_info = 14; - */ - private final ChessRogueInfoOuterClass.ChessRogueInfo chessRogueInfo = ChessRogueInfoOuterClass.ChessRogueInfo.newInstance(); - - /** - * optional .SceneInfo scene = 15; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - private ChessRogueStartScRsp() { - } - - /** - * @return a new empty instance of {@code ChessRogueStartScRsp} - */ - public static ChessRogueStartScRsp newInstance() { - return new ChessRogueStartScRsp(); - } - - /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 2; - * @return this - */ - public ChessRogueStartScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 2; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 2; - * @param value the retcode to set - * @return this - */ - public ChessRogueStartScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 1; - * @return whether the currentInfo field is set - */ - public boolean hasCurrentInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 1; - * @return this - */ - public ChessRogueStartScRsp clearCurrentInfo() { - bitField0_ &= ~0x00000002; - currentInfo.clear(); - return this; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCurrentInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getCurrentInfo() { - return currentInfo; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo getMutableCurrentInfo() { - bitField0_ |= 0x00000002; - return currentInfo; - } - - /** - * optional .ChessRogueCurrentInfo current_info = 1; - * @param value the currentInfo to set - * @return this - */ - public ChessRogueStartScRsp setCurrentInfo( - final ChessRogueCurrentInfoOuterClass.ChessRogueCurrentInfo value) { - bitField0_ |= 0x00000002; - currentInfo.copyFrom(value); - return this; - } - - /** - * optional .LineupInfo lineup = 8; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .LineupInfo lineup = 8; - * @return this - */ - public ChessRogueStartScRsp clearLineup() { - bitField0_ &= ~0x00000004; - lineup.clear(); - return this; - } - - /** - * optional .LineupInfo lineup = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLineup()} if you want to modify it. - * - * @return internal storage object for reading - */ - public LineupInfoOuterClass.LineupInfo getLineup() { - return lineup; - } - - /** - * optional .LineupInfo lineup = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000004; - return lineup; - } - - /** - * optional .LineupInfo lineup = 8; - * @param value the lineup to set - * @return this - */ - public ChessRogueStartScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000004; - lineup.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueCellInfo cell_info = 13; - * @return whether the cellInfo field is set - */ - public boolean hasCellInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .ChessRogueCellInfo cell_info = 13; - * @return this - */ - public ChessRogueStartScRsp clearCellInfo() { - bitField0_ &= ~0x00000008; - cellInfo.clear(); - return this; - } - - /** - * optional .ChessRogueCellInfo cell_info = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCellInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueCellInfoOuterClass.ChessRogueCellInfo getCellInfo() { - return cellInfo; - } - - /** - * optional .ChessRogueCellInfo cell_info = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueCellInfoOuterClass.ChessRogueCellInfo getMutableCellInfo() { - bitField0_ |= 0x00000008; - return cellInfo; - } - - /** - * optional .ChessRogueCellInfo cell_info = 13; - * @param value the cellInfo to set - * @return this - */ - public ChessRogueStartScRsp setCellInfo( - final ChessRogueCellInfoOuterClass.ChessRogueCellInfo value) { - bitField0_ |= 0x00000008; - cellInfo.copyFrom(value); - return this; - } - - /** - *
-     * PEEHMMLEDMP build_query = 3;
-     * 
- * - * optional .ChessRogueInfo chess_rogue_info = 14; - * @return whether the chessRogueInfo field is set - */ - public boolean hasChessRogueInfo() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     * PEEHMMLEDMP build_query = 3;
-     * 
- * - * optional .ChessRogueInfo chess_rogue_info = 14; - * @return this - */ - public ChessRogueStartScRsp clearChessRogueInfo() { - bitField0_ &= ~0x00000010; - chessRogueInfo.clear(); - return this; - } - - /** - *
-     * PEEHMMLEDMP build_query = 3;
-     * 
- * - * optional .ChessRogueInfo chess_rogue_info = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableChessRogueInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueInfoOuterClass.ChessRogueInfo getChessRogueInfo() { - return chessRogueInfo; - } - - /** - *
-     * PEEHMMLEDMP build_query = 3;
-     * 
- * - * optional .ChessRogueInfo chess_rogue_info = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueInfoOuterClass.ChessRogueInfo getMutableChessRogueInfo() { - bitField0_ |= 0x00000010; - return chessRogueInfo; - } - - /** - *
-     * PEEHMMLEDMP build_query = 3;
-     * 
- * - * optional .ChessRogueInfo chess_rogue_info = 14; - * @param value the chessRogueInfo to set - * @return this - */ - public ChessRogueStartScRsp setChessRogueInfo( - final ChessRogueInfoOuterClass.ChessRogueInfo value) { - bitField0_ |= 0x00000010; - chessRogueInfo.copyFrom(value); - return this; - } - - /** - * optional .SceneInfo scene = 15; - * @return whether the scene field is set - */ - public boolean hasScene() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .SceneInfo scene = 15; - * @return this - */ - public ChessRogueStartScRsp clearScene() { - bitField0_ &= ~0x00000020; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000020; - return scene; - } - - /** - * optional .SceneInfo scene = 15; - * @param value the scene to set - * @return this - */ - public ChessRogueStartScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000020; - scene.copyFrom(value); - return this; - } - - @Override - public ChessRogueStartScRsp copyFrom(final ChessRogueStartScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - currentInfo.copyFrom(other.currentInfo); - lineup.copyFrom(other.lineup); - cellInfo.copyFrom(other.cellInfo); - chessRogueInfo.copyFrom(other.chessRogueInfo); - scene.copyFrom(other.scene); - } - return this; - } - - @Override - public ChessRogueStartScRsp mergeFrom(final ChessRogueStartScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasCurrentInfo()) { - getMutableCurrentInfo().mergeFrom(other.currentInfo); - } - if (other.hasLineup()) { - getMutableLineup().mergeFrom(other.lineup); - } - if (other.hasCellInfo()) { - getMutableCellInfo().mergeFrom(other.cellInfo); - } - if (other.hasChessRogueInfo()) { - getMutableChessRogueInfo().mergeFrom(other.chessRogueInfo); - } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } - return this; - } - - @Override - public ChessRogueStartScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - currentInfo.clear(); - lineup.clear(); - cellInfo.clear(); - chessRogueInfo.clear(); - scene.clear(); - return this; - } - - @Override - public ChessRogueStartScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - currentInfo.clearQuick(); - lineup.clearQuick(); - cellInfo.clearQuick(); - chessRogueInfo.clearQuick(); - scene.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueStartScRsp)) { - return false; - } - ChessRogueStartScRsp other = (ChessRogueStartScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasCurrentInfo() || currentInfo.equals(other.currentInfo)) - && (!hasLineup() || lineup.equals(other.lineup)) - && (!hasCellInfo() || cellInfo.equals(other.cellInfo)) - && (!hasChessRogueInfo() || chessRogueInfo.equals(other.chessRogueInfo)) - && (!hasScene() || scene.equals(other.scene)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(currentInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(lineup); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(cellInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(chessRogueInfo); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(scene); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(currentInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(cellInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(chessRogueInfo); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueStartScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // currentInfo - input.readMessage(currentInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // lineup - input.readMessage(lineup); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // cellInfo - input.readMessage(cellInfo); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // chessRogueInfo - input.readMessage(chessRogueInfo); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.currentInfo, currentInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.lineup, lineup); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.cellInfo, cellInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.chessRogueInfo, chessRogueInfo); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.scene, scene); - } - output.endObject(); - } - - @Override - public ChessRogueStartScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 600912327: - case 1468588980: { - if (input.isAtField(FieldNames.currentInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(currentInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { - if (!input.trySkipNullValue()) { - input.readMessage(lineup); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -917905104: - case 1629888875: { - if (input.isAtField(FieldNames.cellInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(cellInfo); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2057768312: - case 1888241298: { - if (input.isAtField(FieldNames.chessRogueInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(chessRogueInfo); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { - if (!input.trySkipNullValue()) { - input.readMessage(scene); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueStartScRsp clone() { - return new ChessRogueStartScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueStartScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueStartScRsp(), data).checkInitialized(); - } - - public static ChessRogueStartScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueStartScRsp(), input).checkInitialized(); - } - - public static ChessRogueStartScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueStartScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueStartScRsp messages - */ - public static MessageFactory getFactory() { - return ChessRogueStartScRspFactory.INSTANCE; - } - - private enum ChessRogueStartScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueStartScRsp create() { - return ChessRogueStartScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName currentInfo = FieldName.forField("currentInfo", "current_info"); - - static final FieldName lineup = FieldName.forField("lineup"); - - static final FieldName cellInfo = FieldName.forField("cellInfo", "cell_info"); - - static final FieldName chessRogueInfo = FieldName.forField("chessRogueInfo", "chess_rogue_info"); - - static final FieldName scene = FieldName.forField("scene"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateActionPointScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateActionPointScNotifyOuterClass.java deleted file mode 100644 index 47f5dac..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateActionPointScNotifyOuterClass.java +++ /dev/null @@ -1,266 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueUpdateActionPointScNotifyOuterClass { - /** - * Protobuf type {@code ChessRogueUpdateActionPointScNotify} - */ - public static final class ChessRogueUpdateActionPointScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 action_point = 9; - */ - private int actionPoint; - - private ChessRogueUpdateActionPointScNotify() { - } - - /** - * @return a new empty instance of {@code ChessRogueUpdateActionPointScNotify} - */ - public static ChessRogueUpdateActionPointScNotify newInstance() { - return new ChessRogueUpdateActionPointScNotify(); - } - - /** - * optional uint32 action_point = 9; - * @return whether the actionPoint field is set - */ - public boolean hasActionPoint() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 action_point = 9; - * @return this - */ - public ChessRogueUpdateActionPointScNotify clearActionPoint() { - bitField0_ &= ~0x00000001; - actionPoint = 0; - return this; - } - - /** - * optional uint32 action_point = 9; - * @return the actionPoint - */ - public int getActionPoint() { - return actionPoint; - } - - /** - * optional uint32 action_point = 9; - * @param value the actionPoint to set - * @return this - */ - public ChessRogueUpdateActionPointScNotify setActionPoint(final int value) { - bitField0_ |= 0x00000001; - actionPoint = value; - return this; - } - - @Override - public ChessRogueUpdateActionPointScNotify copyFrom( - final ChessRogueUpdateActionPointScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - actionPoint = other.actionPoint; - } - return this; - } - - @Override - public ChessRogueUpdateActionPointScNotify mergeFrom( - final ChessRogueUpdateActionPointScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasActionPoint()) { - setActionPoint(other.actionPoint); - } - return this; - } - - @Override - public ChessRogueUpdateActionPointScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - actionPoint = 0; - return this; - } - - @Override - public ChessRogueUpdateActionPointScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueUpdateActionPointScNotify)) { - return false; - } - ChessRogueUpdateActionPointScNotify other = (ChessRogueUpdateActionPointScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasActionPoint() || actionPoint == other.actionPoint); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(actionPoint); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(actionPoint); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueUpdateActionPointScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 72: { - // actionPoint - actionPoint = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.actionPoint, actionPoint); - } - output.endObject(); - } - - @Override - public ChessRogueUpdateActionPointScNotify mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1569741050: - case 1847866951: { - if (input.isAtField(FieldNames.actionPoint)) { - if (!input.trySkipNullValue()) { - actionPoint = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueUpdateActionPointScNotify clone() { - return new ChessRogueUpdateActionPointScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueUpdateActionPointScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateActionPointScNotify(), data).checkInitialized(); - } - - public static ChessRogueUpdateActionPointScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateActionPointScNotify(), input).checkInitialized(); - } - - public static ChessRogueUpdateActionPointScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateActionPointScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueUpdateActionPointScNotify messages - */ - public static MessageFactory getFactory() { - return ChessRogueUpdateActionPointScNotifyFactory.INSTANCE; - } - - private enum ChessRogueUpdateActionPointScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueUpdateActionPointScNotify create() { - return ChessRogueUpdateActionPointScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName actionPoint = FieldName.forField("actionPoint", "action_point"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAllowedSelectCellScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAllowedSelectCellScNotifyOuterClass.java deleted file mode 100644 index a67876a..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateAllowedSelectCellScNotifyOuterClass.java +++ /dev/null @@ -1,388 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class ChessRogueUpdateAllowedSelectCellScNotifyOuterClass { - /** - * Protobuf type {@code ChessRogueUpdateAllowedSelectCellScNotify} - */ - public static final class ChessRogueUpdateAllowedSelectCellScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 room_id = 12; - */ - private int roomId; - - /** - * repeated uint32 cell_id_list = 11; - */ - private final RepeatedInt cellIdList = RepeatedInt.newEmptyInstance(); - - private ChessRogueUpdateAllowedSelectCellScNotify() { - } - - /** - * @return a new empty instance of {@code ChessRogueUpdateAllowedSelectCellScNotify} - */ - public static ChessRogueUpdateAllowedSelectCellScNotify newInstance() { - return new ChessRogueUpdateAllowedSelectCellScNotify(); - } - - /** - * optional uint32 room_id = 12; - * @return whether the roomId field is set - */ - public boolean hasRoomId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 room_id = 12; - * @return this - */ - public ChessRogueUpdateAllowedSelectCellScNotify clearRoomId() { - bitField0_ &= ~0x00000001; - roomId = 0; - return this; - } - - /** - * optional uint32 room_id = 12; - * @return the roomId - */ - public int getRoomId() { - return roomId; - } - - /** - * optional uint32 room_id = 12; - * @param value the roomId to set - * @return this - */ - public ChessRogueUpdateAllowedSelectCellScNotify setRoomId(final int value) { - bitField0_ |= 0x00000001; - roomId = value; - return this; - } - - /** - * repeated uint32 cell_id_list = 11; - * @return whether the cellIdList field is set - */ - public boolean hasCellIdList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated uint32 cell_id_list = 11; - * @return this - */ - public ChessRogueUpdateAllowedSelectCellScNotify clearCellIdList() { - bitField0_ &= ~0x00000002; - cellIdList.clear(); - return this; - } - - /** - * repeated uint32 cell_id_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCellIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getCellIdList() { - return cellIdList; - } - - /** - * repeated uint32 cell_id_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableCellIdList() { - bitField0_ |= 0x00000002; - return cellIdList; - } - - /** - * repeated uint32 cell_id_list = 11; - * @param value the cellIdList to add - * @return this - */ - public ChessRogueUpdateAllowedSelectCellScNotify addCellIdList(final int value) { - bitField0_ |= 0x00000002; - cellIdList.add(value); - return this; - } - - /** - * repeated uint32 cell_id_list = 11; - * @param values the cellIdList to add - * @return this - */ - public ChessRogueUpdateAllowedSelectCellScNotify addAllCellIdList(final int... values) { - bitField0_ |= 0x00000002; - cellIdList.addAll(values); - return this; - } - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify copyFrom( - final ChessRogueUpdateAllowedSelectCellScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - roomId = other.roomId; - cellIdList.copyFrom(other.cellIdList); - } - return this; - } - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify mergeFrom( - final ChessRogueUpdateAllowedSelectCellScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRoomId()) { - setRoomId(other.roomId); - } - if (other.hasCellIdList()) { - getMutableCellIdList().addAll(other.cellIdList); - } - return this; - } - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - roomId = 0; - cellIdList.clear(); - return this; - } - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - cellIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueUpdateAllowedSelectCellScNotify)) { - return false; - } - ChessRogueUpdateAllowedSelectCellScNotify other = (ChessRogueUpdateAllowedSelectCellScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasRoomId() || roomId == other.roomId) - && (!hasCellIdList() || cellIdList.equals(other.cellIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(roomId); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < cellIdList.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(cellIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * cellIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(cellIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueUpdateAllowedSelectCellScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 96: { - // roomId - roomId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // cellIdList [packed=true] - input.readPackedUInt32(cellIdList, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 88: { - // cellIdList [packed=false] - tag = input.readRepeatedUInt32(cellIdList, tag); - bitField0_ |= 0x00000002; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.cellIdList, cellIdList); - } - output.endObject(); - } - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { - if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1648521125: - case 1121452901: { - if (input.isAtField(FieldNames.cellIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(cellIdList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify clone() { - return new ChessRogueUpdateAllowedSelectCellScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueUpdateAllowedSelectCellScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateAllowedSelectCellScNotify(), data).checkInitialized(); - } - - public static ChessRogueUpdateAllowedSelectCellScNotify parseFrom(final ProtoSource input) - throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateAllowedSelectCellScNotify(), input).checkInitialized(); - } - - public static ChessRogueUpdateAllowedSelectCellScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateAllowedSelectCellScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueUpdateAllowedSelectCellScNotify messages - */ - public static MessageFactory getFactory() { - return ChessRogueUpdateAllowedSelectCellScNotifyFactory.INSTANCE; - } - - private enum ChessRogueUpdateAllowedSelectCellScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueUpdateAllowedSelectCellScNotify create() { - return ChessRogueUpdateAllowedSelectCellScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName roomId = FieldName.forField("roomId", "room_id"); - - static final FieldName cellIdList = FieldName.forField("cellIdList", "cell_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDiceInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDiceInfoScNotifyOuterClass.java deleted file mode 100644 index 11ed134..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDiceInfoScNotifyOuterClass.java +++ /dev/null @@ -1,285 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueUpdateDiceInfoScNotifyOuterClass { - /** - * Protobuf type {@code ChessRogueUpdateDiceInfoScNotify} - */ - public static final class ChessRogueUpdateDiceInfoScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRogueNousDice nous_dice = 5; - */ - private final ChessRogueNousDiceOuterClass.ChessRogueNousDice nousDice = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance(); - - private ChessRogueUpdateDiceInfoScNotify() { - } - - /** - * @return a new empty instance of {@code ChessRogueUpdateDiceInfoScNotify} - */ - public static ChessRogueUpdateDiceInfoScNotify newInstance() { - return new ChessRogueUpdateDiceInfoScNotify(); - } - - /** - * optional .ChessRogueNousDice nous_dice = 5; - * @return whether the nousDice field is set - */ - public boolean hasNousDice() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRogueNousDice nous_dice = 5; - * @return this - */ - public ChessRogueUpdateDiceInfoScNotify clearNousDice() { - bitField0_ &= ~0x00000001; - nousDice.clear(); - return this; - } - - /** - * optional .ChessRogueNousDice nous_dice = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableNousDice()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getNousDice() { - return nousDice; - } - - /** - * optional .ChessRogueNousDice nous_dice = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableNousDice() { - bitField0_ |= 0x00000001; - return nousDice; - } - - /** - * optional .ChessRogueNousDice nous_dice = 5; - * @param value the nousDice to set - * @return this - */ - public ChessRogueUpdateDiceInfoScNotify setNousDice( - final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) { - bitField0_ |= 0x00000001; - nousDice.copyFrom(value); - return this; - } - - @Override - public ChessRogueUpdateDiceInfoScNotify copyFrom(final ChessRogueUpdateDiceInfoScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - nousDice.copyFrom(other.nousDice); - } - return this; - } - - @Override - public ChessRogueUpdateDiceInfoScNotify mergeFrom( - final ChessRogueUpdateDiceInfoScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasNousDice()) { - getMutableNousDice().mergeFrom(other.nousDice); - } - return this; - } - - @Override - public ChessRogueUpdateDiceInfoScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nousDice.clear(); - return this; - } - - @Override - public ChessRogueUpdateDiceInfoScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nousDice.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueUpdateDiceInfoScNotify)) { - return false; - } - ChessRogueUpdateDiceInfoScNotify other = (ChessRogueUpdateDiceInfoScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasNousDice() || nousDice.equals(other.nousDice)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(nousDice); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nousDice); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueUpdateDiceInfoScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 42: { - // nousDice - input.readMessage(nousDice); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.nousDice, nousDice); - } - output.endObject(); - } - - @Override - public ChessRogueUpdateDiceInfoScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1622214758: - case -1226158137: { - if (input.isAtField(FieldNames.nousDice)) { - if (!input.trySkipNullValue()) { - input.readMessage(nousDice); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueUpdateDiceInfoScNotify clone() { - return new ChessRogueUpdateDiceInfoScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueUpdateDiceInfoScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateDiceInfoScNotify(), data).checkInitialized(); - } - - public static ChessRogueUpdateDiceInfoScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateDiceInfoScNotify(), input).checkInitialized(); - } - - public static ChessRogueUpdateDiceInfoScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateDiceInfoScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueUpdateDiceInfoScNotify messages - */ - public static MessageFactory getFactory() { - return ChessRogueUpdateDiceInfoScNotifyFactory.INSTANCE; - } - - private enum ChessRogueUpdateDiceInfoScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueUpdateDiceInfoScNotify create() { - return ChessRogueUpdateDiceInfoScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName nousDice = FieldName.forField("nousDice", "nous_dice"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDicePassiveAccumulateValueScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDicePassiveAccumulateValueScNotifyOuterClass.java deleted file mode 100644 index 5eff001..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateDicePassiveAccumulateValueScNotifyOuterClass.java +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueUpdateDicePassiveAccumulateValueScNotifyOuterClass { - /** - * Protobuf type {@code ChessRogueUpdateDicePassiveAccumulateValueScNotify} - */ - public static final class ChessRogueUpdateDicePassiveAccumulateValueScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 value = 13; - */ - private int value_; - - private ChessRogueUpdateDicePassiveAccumulateValueScNotify() { - } - - /** - * @return a new empty instance of {@code ChessRogueUpdateDicePassiveAccumulateValueScNotify} - */ - public static ChessRogueUpdateDicePassiveAccumulateValueScNotify newInstance() { - return new ChessRogueUpdateDicePassiveAccumulateValueScNotify(); - } - - /** - * optional uint32 value = 13; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 value = 13; - * @return this - */ - public ChessRogueUpdateDicePassiveAccumulateValueScNotify clearValue() { - bitField0_ &= ~0x00000001; - value_ = 0; - return this; - } - - /** - * optional uint32 value = 13; - * @return the value_ - */ - public int getValue() { - return value_; - } - - /** - * optional uint32 value = 13; - * @param value the value_ to set - * @return this - */ - public ChessRogueUpdateDicePassiveAccumulateValueScNotify setValue(final int value) { - bitField0_ |= 0x00000001; - value_ = value; - return this; - } - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify copyFrom( - final ChessRogueUpdateDicePassiveAccumulateValueScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - value_ = other.value_; - } - return this; - } - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify mergeFrom( - final ChessRogueUpdateDicePassiveAccumulateValueScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasValue()) { - setValue(other.value_); - } - return this; - } - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - value_ = 0; - return this; - } - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueUpdateDicePassiveAccumulateValueScNotify)) { - return false; - } - ChessRogueUpdateDicePassiveAccumulateValueScNotify other = (ChessRogueUpdateDicePassiveAccumulateValueScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueUpdateDicePassiveAccumulateValueScNotify mergeFrom(final ProtoSource input) - throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 104: { - // value_ - value_ = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify mergeFrom(final JsonSource input) - throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - value_ = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify clone() { - return new ChessRogueUpdateDicePassiveAccumulateValueScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueUpdateDicePassiveAccumulateValueScNotify parseFrom(final byte[] data) - throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateDicePassiveAccumulateValueScNotify(), data).checkInitialized(); - } - - public static ChessRogueUpdateDicePassiveAccumulateValueScNotify parseFrom( - final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateDicePassiveAccumulateValueScNotify(), input).checkInitialized(); - } - - public static ChessRogueUpdateDicePassiveAccumulateValueScNotify parseFrom( - final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateDicePassiveAccumulateValueScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueUpdateDicePassiveAccumulateValueScNotify messages - */ - public static MessageFactory getFactory() { - return ChessRogueUpdateDicePassiveAccumulateValueScNotifyFactory.INSTANCE; - } - - private enum ChessRogueUpdateDicePassiveAccumulateValueScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueUpdateDicePassiveAccumulateValueScNotify create() { - return ChessRogueUpdateDicePassiveAccumulateValueScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName value_ = FieldName.forField("value"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateMoneyInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateMoneyInfoScNotifyOuterClass.java deleted file mode 100644 index 81f94a3..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueUpdateMoneyInfoScNotifyOuterClass.java +++ /dev/null @@ -1,286 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueUpdateMoneyInfoScNotifyOuterClass { - /** - * Protobuf type {@code ChessRogueUpdateMoneyInfoScNotify} - */ - public static final class ChessRogueUpdateMoneyInfoScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRogueMoneyInfo money_info = 12; - */ - private final ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo moneyInfo = ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo.newInstance(); - - private ChessRogueUpdateMoneyInfoScNotify() { - } - - /** - * @return a new empty instance of {@code ChessRogueUpdateMoneyInfoScNotify} - */ - public static ChessRogueUpdateMoneyInfoScNotify newInstance() { - return new ChessRogueUpdateMoneyInfoScNotify(); - } - - /** - * optional .ChessRogueMoneyInfo money_info = 12; - * @return whether the moneyInfo field is set - */ - public boolean hasMoneyInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRogueMoneyInfo money_info = 12; - * @return this - */ - public ChessRogueUpdateMoneyInfoScNotify clearMoneyInfo() { - bitField0_ &= ~0x00000001; - moneyInfo.clear(); - return this; - } - - /** - * optional .ChessRogueMoneyInfo money_info = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMoneyInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo getMoneyInfo() { - return moneyInfo; - } - - /** - * optional .ChessRogueMoneyInfo money_info = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo getMutableMoneyInfo() { - bitField0_ |= 0x00000001; - return moneyInfo; - } - - /** - * optional .ChessRogueMoneyInfo money_info = 12; - * @param value the moneyInfo to set - * @return this - */ - public ChessRogueUpdateMoneyInfoScNotify setMoneyInfo( - final ChessRogueMoneyInfoOuterClass.ChessRogueMoneyInfo value) { - bitField0_ |= 0x00000001; - moneyInfo.copyFrom(value); - return this; - } - - @Override - public ChessRogueUpdateMoneyInfoScNotify copyFrom( - final ChessRogueUpdateMoneyInfoScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - moneyInfo.copyFrom(other.moneyInfo); - } - return this; - } - - @Override - public ChessRogueUpdateMoneyInfoScNotify mergeFrom( - final ChessRogueUpdateMoneyInfoScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMoneyInfo()) { - getMutableMoneyInfo().mergeFrom(other.moneyInfo); - } - return this; - } - - @Override - public ChessRogueUpdateMoneyInfoScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - moneyInfo.clear(); - return this; - } - - @Override - public ChessRogueUpdateMoneyInfoScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - moneyInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueUpdateMoneyInfoScNotify)) { - return false; - } - ChessRogueUpdateMoneyInfoScNotify other = (ChessRogueUpdateMoneyInfoScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasMoneyInfo() || moneyInfo.equals(other.moneyInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(moneyInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(moneyInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueUpdateMoneyInfoScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 98: { - // moneyInfo - input.readMessage(moneyInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.moneyInfo, moneyInfo); - } - output.endObject(); - } - - @Override - public ChessRogueUpdateMoneyInfoScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1713858162: - case -1569819443: { - if (input.isAtField(FieldNames.moneyInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(moneyInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueUpdateMoneyInfoScNotify clone() { - return new ChessRogueUpdateMoneyInfoScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueUpdateMoneyInfoScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateMoneyInfoScNotify(), data).checkInitialized(); - } - - public static ChessRogueUpdateMoneyInfoScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateMoneyInfoScNotify(), input).checkInitialized(); - } - - public static ChessRogueUpdateMoneyInfoScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new ChessRogueUpdateMoneyInfoScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueUpdateMoneyInfoScNotify messages - */ - public static MessageFactory getFactory() { - return ChessRogueUpdateMoneyInfoScNotifyFactory.INSTANCE; - } - - private enum ChessRogueUpdateMoneyInfoScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueUpdateMoneyInfoScNotify create() { - return ChessRogueUpdateMoneyInfoScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName moneyInfo = FieldName.forField("moneyInfo", "money_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueVirtualItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ChessRogueVirtualItemInfoOuterClass.java deleted file mode 100644 index 210663a..0000000 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueVirtualItemInfoOuterClass.java +++ /dev/null @@ -1,518 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class ChessRogueVirtualItemInfoOuterClass { - /** - * Protobuf type {@code ChessRogueVirtualItemInfo} - */ - public static final class ChessRogueVirtualItemInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRogueBuffInfo buff_info = 6; - */ - private final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo buffInfo = ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo.newInstance(); - - /** - * optional .ChessRogueMiracleInfo miracle_info = 10; - */ - private final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo miracleInfo = ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo.newInstance(); - - /** - *
-     *  HMLCJCGOEHI rogue_aeon_info = 3;
-     *  MBGNHFBIIHJ GEOIJKDCIOI = 12;
-     * 
- * - * optional .ChessRogueItemInfo item_info = 11; - */ - private final ChessRogueItemInfoOuterClass.ChessRogueItemInfo itemInfo = ChessRogueItemInfoOuterClass.ChessRogueItemInfo.newInstance(); - - private ChessRogueVirtualItemInfo() { - } - - /** - * @return a new empty instance of {@code ChessRogueVirtualItemInfo} - */ - public static ChessRogueVirtualItemInfo newInstance() { - return new ChessRogueVirtualItemInfo(); - } - - /** - * optional .ChessRogueBuffInfo buff_info = 6; - * @return whether the buffInfo field is set - */ - public boolean hasBuffInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 6; - * @return this - */ - public ChessRogueVirtualItemInfo clearBuffInfo() { - bitField0_ &= ~0x00000001; - buffInfo.clear(); - return this; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getBuffInfo() { - return buffInfo; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo getMutableBuffInfo() { - bitField0_ |= 0x00000001; - return buffInfo; - } - - /** - * optional .ChessRogueBuffInfo buff_info = 6; - * @param value the buffInfo to set - * @return this - */ - public ChessRogueVirtualItemInfo setBuffInfo( - final ChessRogueBuffInfoOuterClass.ChessRogueBuffInfo value) { - bitField0_ |= 0x00000001; - buffInfo.copyFrom(value); - return this; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 10; - * @return whether the miracleInfo field is set - */ - public boolean hasMiracleInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 10; - * @return this - */ - public ChessRogueVirtualItemInfo clearMiracleInfo() { - bitField0_ &= ~0x00000002; - miracleInfo.clear(); - return this; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMiracleInfo() { - return miracleInfo; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo getMutableMiracleInfo() { - bitField0_ |= 0x00000002; - return miracleInfo; - } - - /** - * optional .ChessRogueMiracleInfo miracle_info = 10; - * @param value the miracleInfo to set - * @return this - */ - public ChessRogueVirtualItemInfo setMiracleInfo( - final ChessRogueMiracleInfoOuterClass.ChessRogueMiracleInfo value) { - bitField0_ |= 0x00000002; - miracleInfo.copyFrom(value); - return this; - } - - /** - *
-     *  HMLCJCGOEHI rogue_aeon_info = 3;
-     *  MBGNHFBIIHJ GEOIJKDCIOI = 12;
-     * 
- * - * optional .ChessRogueItemInfo item_info = 11; - * @return whether the itemInfo field is set - */ - public boolean hasItemInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  HMLCJCGOEHI rogue_aeon_info = 3;
-     *  MBGNHFBIIHJ GEOIJKDCIOI = 12;
-     * 
- * - * optional .ChessRogueItemInfo item_info = 11; - * @return this - */ - public ChessRogueVirtualItemInfo clearItemInfo() { - bitField0_ &= ~0x00000004; - itemInfo.clear(); - return this; - } - - /** - *
-     *  HMLCJCGOEHI rogue_aeon_info = 3;
-     *  MBGNHFBIIHJ GEOIJKDCIOI = 12;
-     * 
- * - * optional .ChessRogueItemInfo item_info = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableItemInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueItemInfoOuterClass.ChessRogueItemInfo getItemInfo() { - return itemInfo; - } - - /** - *
-     *  HMLCJCGOEHI rogue_aeon_info = 3;
-     *  MBGNHFBIIHJ GEOIJKDCIOI = 12;
-     * 
- * - * optional .ChessRogueItemInfo item_info = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueItemInfoOuterClass.ChessRogueItemInfo getMutableItemInfo() { - bitField0_ |= 0x00000004; - return itemInfo; - } - - /** - *
-     *  HMLCJCGOEHI rogue_aeon_info = 3;
-     *  MBGNHFBIIHJ GEOIJKDCIOI = 12;
-     * 
- * - * optional .ChessRogueItemInfo item_info = 11; - * @param value the itemInfo to set - * @return this - */ - public ChessRogueVirtualItemInfo setItemInfo( - final ChessRogueItemInfoOuterClass.ChessRogueItemInfo value) { - bitField0_ |= 0x00000004; - itemInfo.copyFrom(value); - return this; - } - - @Override - public ChessRogueVirtualItemInfo copyFrom(final ChessRogueVirtualItemInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffInfo.copyFrom(other.buffInfo); - miracleInfo.copyFrom(other.miracleInfo); - itemInfo.copyFrom(other.itemInfo); - } - return this; - } - - @Override - public ChessRogueVirtualItemInfo mergeFrom(final ChessRogueVirtualItemInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffInfo()) { - getMutableBuffInfo().mergeFrom(other.buffInfo); - } - if (other.hasMiracleInfo()) { - getMutableMiracleInfo().mergeFrom(other.miracleInfo); - } - if (other.hasItemInfo()) { - getMutableItemInfo().mergeFrom(other.itemInfo); - } - return this; - } - - @Override - public ChessRogueVirtualItemInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffInfo.clear(); - miracleInfo.clear(); - itemInfo.clear(); - return this; - } - - @Override - public ChessRogueVirtualItemInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffInfo.clearQuick(); - miracleInfo.clearQuick(); - itemInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof ChessRogueVirtualItemInfo)) { - return false; - } - ChessRogueVirtualItemInfo other = (ChessRogueVirtualItemInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBuffInfo() || buffInfo.equals(other.buffInfo)) - && (!hasMiracleInfo() || miracleInfo.equals(other.miracleInfo)) - && (!hasItemInfo() || itemInfo.equals(other.itemInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(buffInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(miracleInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(itemInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(miracleInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(itemInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public ChessRogueVirtualItemInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 50: { - // buffInfo - input.readMessage(buffInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // miracleInfo - input.readMessage(miracleInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // itemInfo - input.readMessage(itemInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.buffInfo, buffInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.miracleInfo, miracleInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.itemInfo, itemInfo); - } - output.endObject(); - } - - @Override - public ChessRogueVirtualItemInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1522874463: - case 55707930: { - if (input.isAtField(FieldNames.buffInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(buffInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 760306879: - case 2114852796: { - if (input.isAtField(FieldNames.miracleInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(miracleInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1177195105: - case -2141481382: { - if (input.isAtField(FieldNames.itemInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(itemInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public ChessRogueVirtualItemInfo clone() { - return new ChessRogueVirtualItemInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static ChessRogueVirtualItemInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueVirtualItemInfo(), data).checkInitialized(); - } - - public static ChessRogueVirtualItemInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueVirtualItemInfo(), input).checkInitialized(); - } - - public static ChessRogueVirtualItemInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueVirtualItemInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating ChessRogueVirtualItemInfo messages - */ - public static MessageFactory getFactory() { - return ChessRogueVirtualItemInfoFactory.INSTANCE; - } - - private enum ChessRogueVirtualItemInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public ChessRogueVirtualItemInfo create() { - return ChessRogueVirtualItemInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffInfo = FieldName.forField("buffInfo", "buff_info"); - - static final FieldName miracleInfo = FieldName.forField("miracleInfo", "miracle_info"); - - static final FieldName itemInfo = FieldName.forField("itemInfo", "item_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java index 5631213..fb891c8 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientMailAttachmentItemOuterClass.java @@ -19,7 +19,7 @@ public final class ClientMailAttachmentItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 mail_id = 1; + * optional uint32 mail_id = 6; */ private int mailId; @@ -39,7 +39,7 @@ public final class ClientMailAttachmentItemOuterClass { } /** - * optional uint32 mail_id = 1; + * optional uint32 mail_id = 6; * @return whether the mailId field is set */ public boolean hasMailId() { @@ -47,7 +47,7 @@ public final class ClientMailAttachmentItemOuterClass { } /** - * optional uint32 mail_id = 1; + * optional uint32 mail_id = 6; * @return this */ public ClientMailAttachmentItem clearMailId() { @@ -57,7 +57,7 @@ public final class ClientMailAttachmentItemOuterClass { } /** - * optional uint32 mail_id = 1; + * optional uint32 mail_id = 6; * @return the mailId */ public int getMailId() { @@ -65,7 +65,7 @@ public final class ClientMailAttachmentItemOuterClass { } /** - * optional uint32 mail_id = 1; + * optional uint32 mail_id = 6; * @param value the mailId to set * @return this */ @@ -177,7 +177,7 @@ public final class ClientMailAttachmentItemOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(mailId); } if ((bitField0_ & 0x00000002) != 0) { @@ -205,7 +205,7 @@ public final class ClientMailAttachmentItemOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 48: { // mailId mailId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java b/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java index 795d5eb..6e47c2a 100644 --- a/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ClientMailOuterClass.java @@ -21,52 +21,52 @@ public final class ClientMailOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 expire_time = 3; - */ - private long expireTime; - - /** - * optional int64 time = 15; + * optional int64 time = 1; */ private long time; /** - * optional uint32 template_id = 8; + * optional int64 expire_time = 7; */ - private int templateId; + private long expireTime; /** - * optional uint32 id = 12; + * optional uint32 id = 2; */ private int id; /** - * optional bool is_read = 13; + * optional uint32 template_id = 10; + */ + private int templateId; + + /** + * optional bool is_read = 3; */ private boolean isRead; /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 15; */ private final ItemListOuterClass.ItemList attachment = ItemListOuterClass.ItemList.newInstance(); /** - * optional string title = 1; - */ - private final Utf8String title = Utf8String.newEmptyInstance(); - - /** - * optional string sender = 7; - */ - private final Utf8String sender = Utf8String.newEmptyInstance(); - - /** - * optional string content = 11; + * optional string content = 4; */ private final Utf8String content = Utf8String.newEmptyInstance(); /** - * repeated string para_list = 9; + * optional string sender = 11; + */ + private final Utf8String sender = Utf8String.newEmptyInstance(); + + /** + * optional string title = 12; + */ + private final Utf8String title = Utf8String.newEmptyInstance(); + + /** + * repeated string para_list = 6; */ private final RepeatedString paraList = RepeatedString.newEmptyInstance(); @@ -81,62 +81,25 @@ public final class ClientMailOuterClass { } /** - * optional int64 expire_time = 3; - * @return whether the expireTime field is set + * optional int64 time = 1; + * @return whether the time field is set */ - public boolean hasExpireTime() { + public boolean hasTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 expire_time = 3; - * @return this - */ - public ClientMail clearExpireTime() { - bitField0_ &= ~0x00000001; - expireTime = 0L; - return this; - } - - /** - * optional int64 expire_time = 3; - * @return the expireTime - */ - public long getExpireTime() { - return expireTime; - } - - /** - * optional int64 expire_time = 3; - * @param value the expireTime to set - * @return this - */ - public ClientMail setExpireTime(final long value) { - bitField0_ |= 0x00000001; - expireTime = value; - return this; - } - - /** - * optional int64 time = 15; - * @return whether the time field is set - */ - public boolean hasTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 time = 15; + * optional int64 time = 1; * @return this */ public ClientMail clearTime() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; time = 0L; return this; } /** - * optional int64 time = 15; + * optional int64 time = 1; * @return the time */ public long getTime() { @@ -144,73 +107,73 @@ public final class ClientMailOuterClass { } /** - * optional int64 time = 15; + * optional int64 time = 1; * @param value the time to set * @return this */ public ClientMail setTime(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; time = value; return this; } /** - * optional uint32 template_id = 8; - * @return whether the templateId field is set + * optional int64 expire_time = 7; + * @return whether the expireTime field is set */ - public boolean hasTemplateId() { + public boolean hasExpireTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 expire_time = 7; + * @return this + */ + public ClientMail clearExpireTime() { + bitField0_ &= ~0x00000002; + expireTime = 0L; + return this; + } + + /** + * optional int64 expire_time = 7; + * @return the expireTime + */ + public long getExpireTime() { + return expireTime; + } + + /** + * optional int64 expire_time = 7; + * @param value the expireTime to set + * @return this + */ + public ClientMail setExpireTime(final long value) { + bitField0_ |= 0x00000002; + expireTime = value; + return this; + } + + /** + * optional uint32 id = 2; + * @return whether the id field is set + */ + public boolean hasId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 template_id = 8; - * @return this - */ - public ClientMail clearTemplateId() { - bitField0_ &= ~0x00000004; - templateId = 0; - return this; - } - - /** - * optional uint32 template_id = 8; - * @return the templateId - */ - public int getTemplateId() { - return templateId; - } - - /** - * optional uint32 template_id = 8; - * @param value the templateId to set - * @return this - */ - public ClientMail setTemplateId(final int value) { - bitField0_ |= 0x00000004; - templateId = value; - return this; - } - - /** - * optional uint32 id = 12; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 id = 12; + * optional uint32 id = 2; * @return this */ public ClientMail clearId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; id = 0; return this; } /** - * optional uint32 id = 12; + * optional uint32 id = 2; * @return the id */ public int getId() { @@ -218,18 +181,55 @@ public final class ClientMailOuterClass { } /** - * optional uint32 id = 12; + * optional uint32 id = 2; * @param value the id to set * @return this */ public ClientMail setId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; id = value; return this; } /** - * optional bool is_read = 13; + * optional uint32 template_id = 10; + * @return whether the templateId field is set + */ + public boolean hasTemplateId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 template_id = 10; + * @return this + */ + public ClientMail clearTemplateId() { + bitField0_ &= ~0x00000008; + templateId = 0; + return this; + } + + /** + * optional uint32 template_id = 10; + * @return the templateId + */ + public int getTemplateId() { + return templateId; + } + + /** + * optional uint32 template_id = 10; + * @param value the templateId to set + * @return this + */ + public ClientMail setTemplateId(final int value) { + bitField0_ |= 0x00000008; + templateId = value; + return this; + } + + /** + * optional bool is_read = 3; * @return whether the isRead field is set */ public boolean hasIsRead() { @@ -237,7 +237,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 13; + * optional bool is_read = 3; * @return this */ public ClientMail clearIsRead() { @@ -247,7 +247,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 13; + * optional bool is_read = 3; * @return the isRead */ public boolean getIsRead() { @@ -255,7 +255,7 @@ public final class ClientMailOuterClass { } /** - * optional bool is_read = 13; + * optional bool is_read = 3; * @param value the isRead to set * @return this */ @@ -266,7 +266,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 15; * @return whether the attachment field is set */ public boolean hasAttachment() { @@ -274,7 +274,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 15; * @return this */ public ClientMail clearAttachment() { @@ -284,7 +284,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -298,7 +298,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -312,7 +312,7 @@ public final class ClientMailOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 15; * @param value the attachment to set * @return this */ @@ -323,72 +323,72 @@ public final class ClientMailOuterClass { } /** - * optional string title = 1; - * @return whether the title field is set + * optional string content = 4; + * @return whether the content field is set */ - public boolean hasTitle() { + public boolean hasContent() { return (bitField0_ & 0x00000040) != 0; } /** - * optional string title = 1; + * optional string content = 4; * @return this */ - public ClientMail clearTitle() { + public ClientMail clearContent() { bitField0_ &= ~0x00000040; - title.clear(); + content.clear(); return this; } /** - * optional string title = 1; - * @return the title + * optional string content = 4; + * @return the content */ - public String getTitle() { - return title.getString(); + public String getContent() { + return content.getString(); } /** - * optional string title = 1; - * @return internal {@code Utf8String} representation of title for reading + * optional string content = 4; + * @return internal {@code Utf8String} representation of content for reading */ - public Utf8String getTitleBytes() { - return this.title; + public Utf8String getContentBytes() { + return this.content; } /** - * optional string title = 1; - * @return internal {@code Utf8String} representation of title for modifications + * optional string content = 4; + * @return internal {@code Utf8String} representation of content for modifications */ - public Utf8String getMutableTitleBytes() { + public Utf8String getMutableContentBytes() { bitField0_ |= 0x00000040; - return this.title; + return this.content; } /** - * optional string title = 1; - * @param value the title to set + * optional string content = 4; + * @param value the content to set * @return this */ - public ClientMail setTitle(final CharSequence value) { + public ClientMail setContent(final CharSequence value) { bitField0_ |= 0x00000040; - title.copyFrom(value); + content.copyFrom(value); return this; } /** - * optional string title = 1; - * @param value the title to set + * optional string content = 4; + * @param value the content to set * @return this */ - public ClientMail setTitle(final Utf8String value) { + public ClientMail setContent(final Utf8String value) { bitField0_ |= 0x00000040; - title.copyFrom(value); + content.copyFrom(value); return this; } /** - * optional string sender = 7; + * optional string sender = 11; * @return whether the sender field is set */ public boolean hasSender() { @@ -396,7 +396,7 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 7; + * optional string sender = 11; * @return this */ public ClientMail clearSender() { @@ -406,7 +406,7 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 7; + * optional string sender = 11; * @return the sender */ public String getSender() { @@ -414,7 +414,7 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 7; + * optional string sender = 11; * @return internal {@code Utf8String} representation of sender for reading */ public Utf8String getSenderBytes() { @@ -422,7 +422,7 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 7; + * optional string sender = 11; * @return internal {@code Utf8String} representation of sender for modifications */ public Utf8String getMutableSenderBytes() { @@ -431,7 +431,7 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 7; + * optional string sender = 11; * @param value the sender to set * @return this */ @@ -442,7 +442,7 @@ public final class ClientMailOuterClass { } /** - * optional string sender = 7; + * optional string sender = 11; * @param value the sender to set * @return this */ @@ -453,72 +453,72 @@ public final class ClientMailOuterClass { } /** - * optional string content = 11; - * @return whether the content field is set + * optional string title = 12; + * @return whether the title field is set */ - public boolean hasContent() { + public boolean hasTitle() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string content = 11; + * optional string title = 12; * @return this */ - public ClientMail clearContent() { + public ClientMail clearTitle() { bitField0_ &= ~0x00000100; - content.clear(); + title.clear(); return this; } /** - * optional string content = 11; - * @return the content + * optional string title = 12; + * @return the title */ - public String getContent() { - return content.getString(); + public String getTitle() { + return title.getString(); } /** - * optional string content = 11; - * @return internal {@code Utf8String} representation of content for reading + * optional string title = 12; + * @return internal {@code Utf8String} representation of title for reading */ - public Utf8String getContentBytes() { - return this.content; + public Utf8String getTitleBytes() { + return this.title; } /** - * optional string content = 11; - * @return internal {@code Utf8String} representation of content for modifications + * optional string title = 12; + * @return internal {@code Utf8String} representation of title for modifications */ - public Utf8String getMutableContentBytes() { + public Utf8String getMutableTitleBytes() { bitField0_ |= 0x00000100; - return this.content; + return this.title; } /** - * optional string content = 11; - * @param value the content to set + * optional string title = 12; + * @param value the title to set * @return this */ - public ClientMail setContent(final CharSequence value) { + public ClientMail setTitle(final CharSequence value) { bitField0_ |= 0x00000100; - content.copyFrom(value); + title.copyFrom(value); return this; } /** - * optional string content = 11; - * @param value the content to set + * optional string title = 12; + * @param value the title to set * @return this */ - public ClientMail setContent(final Utf8String value) { + public ClientMail setTitle(final Utf8String value) { bitField0_ |= 0x00000100; - content.copyFrom(value); + title.copyFrom(value); return this; } /** - * repeated string para_list = 9; + * repeated string para_list = 6; * @return whether the paraList field is set */ public boolean hasParaList() { @@ -526,7 +526,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 9; + * repeated string para_list = 6; * @return this */ public ClientMail clearParaList() { @@ -536,7 +536,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 9; + * repeated string para_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -550,7 +550,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 9; + * repeated string para_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -564,7 +564,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 9; + * repeated string para_list = 6; * @param value the paraList to add * @return this */ @@ -575,7 +575,7 @@ public final class ClientMailOuterClass { } /** - * repeated string para_list = 9; + * repeated string para_list = 6; * @param values the paraList to add * @return this */ @@ -590,15 +590,15 @@ public final class ClientMailOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - expireTime = other.expireTime; time = other.time; - templateId = other.templateId; + expireTime = other.expireTime; id = other.id; + templateId = other.templateId; isRead = other.isRead; attachment.copyFrom(other.attachment); - title.copyFrom(other.title); - sender.copyFrom(other.sender); content.copyFrom(other.content); + sender.copyFrom(other.sender); + title.copyFrom(other.title); paraList.copyFrom(other.paraList); } return this; @@ -610,32 +610,32 @@ public final class ClientMailOuterClass { return this; } cachedSize = -1; - if (other.hasExpireTime()) { - setExpireTime(other.expireTime); - } if (other.hasTime()) { setTime(other.time); } - if (other.hasTemplateId()) { - setTemplateId(other.templateId); + if (other.hasExpireTime()) { + setExpireTime(other.expireTime); } if (other.hasId()) { setId(other.id); } + if (other.hasTemplateId()) { + setTemplateId(other.templateId); + } if (other.hasIsRead()) { setIsRead(other.isRead); } if (other.hasAttachment()) { getMutableAttachment().mergeFrom(other.attachment); } - if (other.hasTitle()) { - getMutableTitleBytes().copyFrom(other.title); + if (other.hasContent()) { + getMutableContentBytes().copyFrom(other.content); } if (other.hasSender()) { getMutableSenderBytes().copyFrom(other.sender); } - if (other.hasContent()) { - getMutableContentBytes().copyFrom(other.content); + if (other.hasTitle()) { + getMutableTitleBytes().copyFrom(other.title); } if (other.hasParaList()) { getMutableParaList().addAll(other.paraList); @@ -650,15 +650,15 @@ public final class ClientMailOuterClass { } cachedSize = -1; bitField0_ = 0; - expireTime = 0L; time = 0L; - templateId = 0; + expireTime = 0L; id = 0; + templateId = 0; isRead = false; attachment.clear(); - title.clear(); - sender.clear(); content.clear(); + sender.clear(); + title.clear(); paraList.clear(); return this; } @@ -671,9 +671,9 @@ public final class ClientMailOuterClass { cachedSize = -1; bitField0_ = 0; attachment.clearQuick(); - title.clear(); - sender.clear(); content.clear(); + sender.clear(); + title.clear(); paraList.clear(); return this; } @@ -688,59 +688,59 @@ public final class ClientMailOuterClass { } ClientMail other = (ClientMail) o; return bitField0_ == other.bitField0_ - && (!hasExpireTime() || expireTime == other.expireTime) && (!hasTime() || time == other.time) - && (!hasTemplateId() || templateId == other.templateId) + && (!hasExpireTime() || expireTime == other.expireTime) && (!hasId() || id == other.id) + && (!hasTemplateId() || templateId == other.templateId) && (!hasIsRead() || isRead == other.isRead) && (!hasAttachment() || attachment.equals(other.attachment)) - && (!hasTitle() || title.equals(other.title)) - && (!hasSender() || sender.equals(other.sender)) && (!hasContent() || content.equals(other.content)) + && (!hasSender() || sender.equals(other.sender)) + && (!hasTitle() || title.equals(other.title)) && (!hasParaList() || paraList.equals(other.paraList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeInt64NoTag(expireTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 8); output.writeInt64NoTag(time); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(templateId); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeInt64NoTag(expireTime); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(templateId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 24); output.writeBoolNoTag(isRead); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 122); output.writeMessageNoTag(attachment); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 10); - output.writeStringNoTag(title); + output.writeRawByte((byte) 34); + output.writeStringNoTag(content); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 90); output.writeStringNoTag(sender); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 90); - output.writeStringNoTag(content); + output.writeRawByte((byte) 98); + output.writeStringNoTag(title); } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < paraList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 50); output.writeStringNoTag(paraList.get(i)); } } @@ -750,16 +750,16 @@ public final class ClientMailOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(expireTime); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeInt64SizeNoTag(time); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(expireTime); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(templateId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(templateId); } if ((bitField0_ & 0x00000010) != 0) { size += 2; @@ -768,13 +768,13 @@ public final class ClientMailOuterClass { size += 1 + ProtoSink.computeMessageSizeNoTag(attachment); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(title); + size += 1 + ProtoSink.computeStringSizeNoTag(content); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(sender); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(content); + size += 1 + ProtoSink.computeStringSizeNoTag(title); } if ((bitField0_ & 0x00000200) != 0) { size += (1 * paraList.length()) + ProtoSink.computeRepeatedStringSizeNoTag(paraList); @@ -789,88 +789,88 @@ public final class ClientMailOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // expireTime - expireTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { + case 8: { // time time = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // expireTime + expireTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 64) { + if (tag != 16) { break; } } - case 64: { - // templateId - templateId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 16: { // id id = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 80) { break; } } - case 104: { + case 80: { + // templateId + templateId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { // isRead isRead = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 114) { + if (tag != 122) { break; } } - case 114: { + case 122: { // attachment input.readMessage(attachment); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 10) { + if (tag != 34) { break; } } - case 10: { - // title - input.readString(title); + case 34: { + // content + input.readString(content); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // sender - input.readString(sender); - bitField0_ |= 0x00000080; - tag = input.readTag(); if (tag != 90) { break; } } case 90: { - // content - input.readString(content); - bitField0_ |= 0x00000100; + // sender + input.readString(sender); + bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 74) { + if (tag != 98) { break; } } - case 74: { + case 98: { + // title + input.readString(title); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { // paraList tag = input.readRepeatedString(paraList, tag); bitField0_ |= 0x00000200; @@ -896,16 +896,16 @@ public final class ClientMailOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.expireTime, expireTime); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeInt64(FieldNames.time, time); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.expireTime, expireTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.templateId, templateId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.templateId, templateId); } if ((bitField0_ & 0x00000010) != 0) { output.writeBool(FieldNames.isRead, isRead); @@ -914,13 +914,13 @@ public final class ClientMailOuterClass { output.writeMessage(FieldNames.attachment, attachment); } if ((bitField0_ & 0x00000040) != 0) { - output.writeString(FieldNames.title, title); + output.writeString(FieldNames.content, content); } if ((bitField0_ & 0x00000080) != 0) { output.writeString(FieldNames.sender, sender); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.content, content); + output.writeString(FieldNames.title, title); } if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedString(FieldNames.paraList, paraList); @@ -935,11 +935,10 @@ public final class ClientMailOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -834724724: - case -96179731: { - if (input.isAtField(FieldNames.expireTime)) { + case 3560141: { + if (input.isAtField(FieldNames.time)) { if (!input.trySkipNullValue()) { - expireTime = input.readInt64(); + time = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -947,10 +946,11 @@ public final class ClientMailOuterClass { } break; } - case 3560141: { - if (input.isAtField(FieldNames.time)) { + case -834724724: + case -96179731: { + if (input.isAtField(FieldNames.expireTime)) { if (!input.trySkipNullValue()) { - time = input.readInt64(); + expireTime = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -958,22 +958,22 @@ public final class ClientMailOuterClass { } break; } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case 1304010549: case 1769642752: { if (input.isAtField(FieldNames.templateId)) { if (!input.trySkipNullValue()) { templateId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 3355: { - if (input.isAtField(FieldNames.id)) { - if (!input.trySkipNullValue()) { - id = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1004,10 +1004,10 @@ public final class ClientMailOuterClass { } break; } - case 110371416: { - if (input.isAtField(FieldNames.title)) { + case 951530617: { + if (input.isAtField(FieldNames.content)) { if (!input.trySkipNullValue()) { - input.readString(title); + input.readString(content); bitField0_ |= 0x00000040; } } else { @@ -1026,10 +1026,10 @@ public final class ClientMailOuterClass { } break; } - case 951530617: { - if (input.isAtField(FieldNames.content)) { + case 110371416: { + if (input.isAtField(FieldNames.title)) { if (!input.trySkipNullValue()) { - input.readString(content); + input.readString(title); bitField0_ |= 0x00000100; } } else { @@ -1101,23 +1101,23 @@ public final class ClientMailOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName expireTime = FieldName.forField("expireTime", "expire_time"); - static final FieldName time = FieldName.forField("time"); - static final FieldName templateId = FieldName.forField("templateId", "template_id"); + static final FieldName expireTime = FieldName.forField("expireTime", "expire_time"); static final FieldName id = FieldName.forField("id"); + static final FieldName templateId = FieldName.forField("templateId", "template_id"); + static final FieldName isRead = FieldName.forField("isRead", "is_read"); static final FieldName attachment = FieldName.forField("attachment"); - static final FieldName title = FieldName.forField("title"); + static final FieldName content = FieldName.forField("content"); static final FieldName sender = FieldName.forField("sender"); - static final FieldName content = FieldName.forField("content"); + static final FieldName title = FieldName.forField("title"); static final FieldName paraList = FieldName.forField("paraList", "para_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java index a1a3139..d4d88cf 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeItemCsReqOuterClass.java @@ -19,17 +19,17 @@ public final class ComposeItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 6; */ private int composeId; /** - * optional uint32 count = 6; + * optional uint32 count = 12; */ private int count; /** - * optional .ItemCostList compose_item_list = 3; + * optional .ItemCostList compose_item_list = 13; */ private final ItemCostListOuterClass.ItemCostList composeItemList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -44,7 +44,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 6; * @return whether the composeId field is set */ public boolean hasComposeId() { @@ -52,7 +52,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 6; * @return this */ public ComposeItemCsReq clearComposeId() { @@ -62,7 +62,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 6; * @return the composeId */ public int getComposeId() { @@ -70,7 +70,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 compose_id = 5; + * optional uint32 compose_id = 6; * @param value the composeId to set * @return this */ @@ -81,7 +81,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 count = 6; + * optional uint32 count = 12; * @return whether the count field is set */ public boolean hasCount() { @@ -89,7 +89,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 count = 6; + * optional uint32 count = 12; * @return this */ public ComposeItemCsReq clearCount() { @@ -99,7 +99,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 count = 6; + * optional uint32 count = 12; * @return the count */ public int getCount() { @@ -107,7 +107,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional uint32 count = 6; + * optional uint32 count = 12; * @param value the count to set * @return this */ @@ -118,7 +118,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 3; + * optional .ItemCostList compose_item_list = 13; * @return whether the composeItemList field is set */ public boolean hasComposeItemList() { @@ -126,7 +126,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 3; + * optional .ItemCostList compose_item_list = 13; * @return this */ public ComposeItemCsReq clearComposeItemList() { @@ -136,7 +136,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 3; + * optional .ItemCostList compose_item_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 3; + * optional .ItemCostList compose_item_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class ComposeItemCsReqOuterClass { } /** - * optional .ItemCostList compose_item_list = 3; + * optional .ItemCostList compose_item_list = 13; * @param value the composeItemList to set * @return this */ @@ -246,15 +246,15 @@ public final class ComposeItemCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(composeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 106); output.writeMessageNoTag(composeItemList); } } @@ -281,25 +281,25 @@ public final class ComposeItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // composeId composeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 96) { break; } } - case 48: { + case 96: { // count count = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 106) { break; } } - case 26: { + case 106: { // composeItemList input.readMessage(composeItemList); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java index 11e8e7e..66582bf 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeItemScRspOuterClass.java @@ -19,22 +19,22 @@ public final class ComposeItemScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 compose_id = 1; - */ - private int composeId; - - /** - * optional uint32 count = 2; + * optional uint32 count = 1; */ private int count; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 4; */ private int retcode; /** - * optional .ItemList return_item_list = 8; + * optional uint32 compose_id = 13; + */ + private int composeId; + + /** + * optional .ItemList return_item_list = 5; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -49,62 +49,25 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 compose_id = 1; - * @return whether the composeId field is set + * optional uint32 count = 1; + * @return whether the count field is set */ - public boolean hasComposeId() { + public boolean hasCount() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 compose_id = 1; - * @return this - */ - public ComposeItemScRsp clearComposeId() { - bitField0_ &= ~0x00000001; - composeId = 0; - return this; - } - - /** - * optional uint32 compose_id = 1; - * @return the composeId - */ - public int getComposeId() { - return composeId; - } - - /** - * optional uint32 compose_id = 1; - * @param value the composeId to set - * @return this - */ - public ComposeItemScRsp setComposeId(final int value) { - bitField0_ |= 0x00000001; - composeId = value; - return this; - } - - /** - * optional uint32 count = 2; - * @return whether the count field is set - */ - public boolean hasCount() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 count = 2; + * optional uint32 count = 1; * @return this */ public ComposeItemScRsp clearCount() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; count = 0; return this; } /** - * optional uint32 count = 2; + * optional uint32 count = 1; * @return the count */ public int getCount() { @@ -112,36 +75,36 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 count = 2; + * optional uint32 count = 1; * @param value the count to set * @return this */ public ComposeItemScRsp setCount(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; count = value; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 4; * @return this */ public ComposeItemScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -149,18 +112,55 @@ public final class ComposeItemScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ public ComposeItemScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } /** - * optional .ItemList return_item_list = 8; + * optional uint32 compose_id = 13; + * @return whether the composeId field is set + */ + public boolean hasComposeId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 compose_id = 13; + * @return this + */ + public ComposeItemScRsp clearComposeId() { + bitField0_ &= ~0x00000004; + composeId = 0; + return this; + } + + /** + * optional uint32 compose_id = 13; + * @return the composeId + */ + public int getComposeId() { + return composeId; + } + + /** + * optional uint32 compose_id = 13; + * @param value the composeId to set + * @return this + */ + public ComposeItemScRsp setComposeId(final int value) { + bitField0_ |= 0x00000004; + composeId = value; + return this; + } + + /** + * optional .ItemList return_item_list = 5; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -168,7 +168,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 5; * @return this */ public ComposeItemScRsp clearReturnItemList() { @@ -178,7 +178,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public final class ComposeItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 5; * @param value the returnItemList to set * @return this */ @@ -221,9 +221,9 @@ public final class ComposeItemScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - composeId = other.composeId; count = other.count; retcode = other.retcode; + composeId = other.composeId; returnItemList.copyFrom(other.returnItemList); } return this; @@ -235,15 +235,15 @@ public final class ComposeItemScRspOuterClass { return this; } cachedSize = -1; - if (other.hasComposeId()) { - setComposeId(other.composeId); - } if (other.hasCount()) { setCount(other.count); } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasComposeId()) { + setComposeId(other.composeId); + } if (other.hasReturnItemList()) { getMutableReturnItemList().mergeFrom(other.returnItemList); } @@ -257,9 +257,9 @@ public final class ComposeItemScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - composeId = 0; count = 0; retcode = 0; + composeId = 0; returnItemList.clear(); return this; } @@ -285,9 +285,9 @@ public final class ComposeItemScRspOuterClass { } ComposeItemScRsp other = (ComposeItemScRsp) o; return bitField0_ == other.bitField0_ - && (!hasComposeId() || composeId == other.composeId) && (!hasCount() || count == other.count) && (!hasRetcode() || retcode == other.retcode) + && (!hasComposeId() || composeId == other.composeId) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @@ -295,18 +295,18 @@ public final class ComposeItemScRspOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(composeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); output.writeUInt32NoTag(count); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(composeId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 42); output.writeMessageNoTag(returnItemList); } } @@ -315,14 +315,14 @@ public final class ComposeItemScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(returnItemList); } @@ -337,33 +337,33 @@ public final class ComposeItemScRspOuterClass { while (true) { switch (tag) { case 8: { - // composeId - composeId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { // count count = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 32) { break; } } - case 112: { + case 32: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 66) { + if (tag != 104) { break; } } - case 66: { + case 104: { + // composeId + composeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000008; @@ -390,14 +390,14 @@ public final class ComposeItemScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.count, count); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.composeId, composeId); + } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.returnItemList, returnItemList); } @@ -411,23 +411,11 @@ public final class ComposeItemScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { - if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 94851343: { if (input.isAtField(FieldNames.count)) { if (!input.trySkipNullValue()) { count = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -438,6 +426,18 @@ public final class ComposeItemScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { + if (!input.trySkipNullValue()) { + composeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -510,12 +510,12 @@ public final class ComposeItemScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); - static final FieldName count = FieldName.forField("count"); static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName composeId = FieldName.forField("composeId", "compose_id"); + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java index b6f6c15..87e5bed 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicCsReqOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; public final class ComposeSelectedRelicCsReqOuterClass { /** @@ -19,29 +20,29 @@ public final class ComposeSelectedRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 compose_relic_id = 7; + * optional uint32 compose_relic_id = 1; */ private int composeRelicId; /** - * optional uint32 count = 8; + * optional uint32 count = 2; */ private int count; /** - * optional uint32 main_affix_id = 12; - */ - private int mainAffixId; - - /** - * optional uint32 compose_id = 14; + * optional uint32 compose_id = 3; */ private int composeId; /** - * optional .ItemCostList compose_item_list = 10; + * optional uint32 main_affix_id = 11; */ - private final ItemCostListOuterClass.ItemCostList composeItemList = ItemCostListOuterClass.ItemCostList.newInstance(); + private int mainAffixId; + + /** + * repeated uint32 compose_sub_affix_list = 12; + */ + private final RepeatedInt composeSubAffixList = RepeatedInt.newEmptyInstance(); private ComposeSelectedRelicCsReq() { } @@ -54,7 +55,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_relic_id = 7; + * optional uint32 compose_relic_id = 1; * @return whether the composeRelicId field is set */ public boolean hasComposeRelicId() { @@ -62,7 +63,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_relic_id = 7; + * optional uint32 compose_relic_id = 1; * @return this */ public ComposeSelectedRelicCsReq clearComposeRelicId() { @@ -72,7 +73,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_relic_id = 7; + * optional uint32 compose_relic_id = 1; * @return the composeRelicId */ public int getComposeRelicId() { @@ -80,7 +81,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_relic_id = 7; + * optional uint32 compose_relic_id = 1; * @param value the composeRelicId to set * @return this */ @@ -91,7 +92,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 count = 8; + * optional uint32 count = 2; * @return whether the count field is set */ public boolean hasCount() { @@ -99,7 +100,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 count = 8; + * optional uint32 count = 2; * @return this */ public ComposeSelectedRelicCsReq clearCount() { @@ -109,7 +110,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 count = 8; + * optional uint32 count = 2; * @return the count */ public int getCount() { @@ -117,7 +118,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 count = 8; + * optional uint32 count = 2; * @param value the count to set * @return this */ @@ -128,62 +129,25 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 main_affix_id = 12; - * @return whether the mainAffixId field is set + * optional uint32 compose_id = 3; + * @return whether the composeId field is set */ - public boolean hasMainAffixId() { + public boolean hasComposeId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 main_affix_id = 12; - * @return this - */ - public ComposeSelectedRelicCsReq clearMainAffixId() { - bitField0_ &= ~0x00000004; - mainAffixId = 0; - return this; - } - - /** - * optional uint32 main_affix_id = 12; - * @return the mainAffixId - */ - public int getMainAffixId() { - return mainAffixId; - } - - /** - * optional uint32 main_affix_id = 12; - * @param value the mainAffixId to set - * @return this - */ - public ComposeSelectedRelicCsReq setMainAffixId(final int value) { - bitField0_ |= 0x00000004; - mainAffixId = value; - return this; - } - - /** - * optional uint32 compose_id = 14; - * @return whether the composeId field is set - */ - public boolean hasComposeId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 compose_id = 14; + * optional uint32 compose_id = 3; * @return this */ public ComposeSelectedRelicCsReq clearComposeId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; composeId = 0; return this; } /** - * optional uint32 compose_id = 14; + * optional uint32 compose_id = 3; * @return the composeId */ public int getComposeId() { @@ -191,50 +155,87 @@ public final class ComposeSelectedRelicCsReqOuterClass { } /** - * optional uint32 compose_id = 14; + * optional uint32 compose_id = 3; * @param value the composeId to set * @return this */ public ComposeSelectedRelicCsReq setComposeId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; composeId = value; return this; } /** - * optional .ItemCostList compose_item_list = 10; - * @return whether the composeItemList field is set + * optional uint32 main_affix_id = 11; + * @return whether the mainAffixId field is set */ - public boolean hasComposeItemList() { - return (bitField0_ & 0x00000010) != 0; + public boolean hasMainAffixId() { + return (bitField0_ & 0x00000008) != 0; } /** - * optional .ItemCostList compose_item_list = 10; + * optional uint32 main_affix_id = 11; * @return this */ - public ComposeSelectedRelicCsReq clearComposeItemList() { - bitField0_ &= ~0x00000010; - composeItemList.clear(); + public ComposeSelectedRelicCsReq clearMainAffixId() { + bitField0_ &= ~0x00000008; + mainAffixId = 0; return this; } /** - * optional .ItemCostList compose_item_list = 10; + * optional uint32 main_affix_id = 11; + * @return the mainAffixId + */ + public int getMainAffixId() { + return mainAffixId; + } + + /** + * optional uint32 main_affix_id = 11; + * @param value the mainAffixId to set + * @return this + */ + public ComposeSelectedRelicCsReq setMainAffixId(final int value) { + bitField0_ |= 0x00000008; + mainAffixId = value; + return this; + } + + /** + * repeated uint32 compose_sub_affix_list = 12; + * @return whether the composeSubAffixList field is set + */ + public boolean hasComposeSubAffixList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 compose_sub_affix_list = 12; + * @return this + */ + public ComposeSelectedRelicCsReq clearComposeSubAffixList() { + bitField0_ &= ~0x00000010; + composeSubAffixList.clear(); + return this; + } + + /** + * repeated uint32 compose_sub_affix_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableComposeItemList()} if you want to modify it. + * Use {@link #getMutableComposeSubAffixList()} if you want to modify it. * * @return internal storage object for reading */ - public ItemCostListOuterClass.ItemCostList getComposeItemList() { - return composeItemList; + public RepeatedInt getComposeSubAffixList() { + return composeSubAffixList; } /** - * optional .ItemCostList compose_item_list = 10; + * repeated uint32 compose_sub_affix_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -242,20 +243,30 @@ public final class ComposeSelectedRelicCsReqOuterClass { * * @return internal storage object for modifications */ - public ItemCostListOuterClass.ItemCostList getMutableComposeItemList() { + public RepeatedInt getMutableComposeSubAffixList() { bitField0_ |= 0x00000010; - return composeItemList; + return composeSubAffixList; } /** - * optional .ItemCostList compose_item_list = 10; - * @param value the composeItemList to set + * repeated uint32 compose_sub_affix_list = 12; + * @param value the composeSubAffixList to add * @return this */ - public ComposeSelectedRelicCsReq setComposeItemList( - final ItemCostListOuterClass.ItemCostList value) { + public ComposeSelectedRelicCsReq addComposeSubAffixList(final int value) { bitField0_ |= 0x00000010; - composeItemList.copyFrom(value); + composeSubAffixList.add(value); + return this; + } + + /** + * repeated uint32 compose_sub_affix_list = 12; + * @param values the composeSubAffixList to add + * @return this + */ + public ComposeSelectedRelicCsReq addAllComposeSubAffixList(final int... values) { + bitField0_ |= 0x00000010; + composeSubAffixList.addAll(values); return this; } @@ -266,9 +277,9 @@ public final class ComposeSelectedRelicCsReqOuterClass { bitField0_ = other.bitField0_; composeRelicId = other.composeRelicId; count = other.count; - mainAffixId = other.mainAffixId; composeId = other.composeId; - composeItemList.copyFrom(other.composeItemList); + mainAffixId = other.mainAffixId; + composeSubAffixList.copyFrom(other.composeSubAffixList); } return this; } @@ -285,14 +296,14 @@ public final class ComposeSelectedRelicCsReqOuterClass { if (other.hasCount()) { setCount(other.count); } - if (other.hasMainAffixId()) { - setMainAffixId(other.mainAffixId); - } if (other.hasComposeId()) { setComposeId(other.composeId); } - if (other.hasComposeItemList()) { - getMutableComposeItemList().mergeFrom(other.composeItemList); + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); + } + if (other.hasComposeSubAffixList()) { + getMutableComposeSubAffixList().addAll(other.composeSubAffixList); } return this; } @@ -306,9 +317,9 @@ public final class ComposeSelectedRelicCsReqOuterClass { bitField0_ = 0; composeRelicId = 0; count = 0; - mainAffixId = 0; composeId = 0; - composeItemList.clear(); + mainAffixId = 0; + composeSubAffixList.clear(); return this; } @@ -319,7 +330,7 @@ public final class ComposeSelectedRelicCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - composeItemList.clearQuick(); + composeSubAffixList.clear(); return this; } @@ -335,32 +346,34 @@ public final class ComposeSelectedRelicCsReqOuterClass { return bitField0_ == other.bitField0_ && (!hasComposeRelicId() || composeRelicId == other.composeRelicId) && (!hasCount() || count == other.count) - && (!hasMainAffixId() || mainAffixId == other.mainAffixId) && (!hasComposeId() || composeId == other.composeId) - && (!hasComposeItemList() || composeItemList.equals(other.composeItemList)); + && (!hasMainAffixId() || mainAffixId == other.mainAffixId) + && (!hasComposeSubAffixList() || composeSubAffixList.equals(other.composeSubAffixList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(composeRelicId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(count); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(mainAffixId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(composeId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(mainAffixId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(composeItemList); + for (int i = 0; i < composeSubAffixList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(composeSubAffixList.array()[i]); + } } } @@ -374,13 +387,13 @@ public final class ComposeSelectedRelicCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(count); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); + } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(composeItemList); + size += (1 * composeSubAffixList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(composeSubAffixList); } return size; } @@ -392,45 +405,45 @@ public final class ComposeSelectedRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 8: { // composeRelicId composeRelicId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 16) { break; } } - case 64: { + case 16: { // count count = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 24) { break; } } - case 96: { - // mainAffixId - mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 24: { // composeId composeId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 82) { + if (tag != 88) { break; } } - case 82: { - // composeItemList - input.readMessage(composeItemList); + case 88: { + // mainAffixId + mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // composeSubAffixList [packed=true] + input.readPackedUInt32(composeSubAffixList, tag); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -447,6 +460,12 @@ public final class ComposeSelectedRelicCsReqOuterClass { tag = input.readTag(); break; } + case 96: { + // composeSubAffixList [packed=false] + tag = input.readRepeatedUInt32(composeSubAffixList, tag); + bitField0_ |= 0x00000010; + break; + } } } } @@ -461,13 +480,13 @@ public final class ComposeSelectedRelicCsReqOuterClass { output.writeUInt32(FieldNames.count, count); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mainAffixId, mainAffixId); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.composeId, composeId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.composeItemList, composeItemList); + output.writeRepeatedUInt32(FieldNames.composeSubAffixList, composeSubAffixList); } output.endObject(); } @@ -502,11 +521,11 @@ public final class ComposeSelectedRelicCsReqOuterClass { } break; } - case -1973876974: - case -1426712144: { - if (input.isAtField(FieldNames.mainAffixId)) { + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { if (!input.trySkipNullValue()) { - mainAffixId = input.readUInt32(); + composeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -514,11 +533,11 @@ public final class ComposeSelectedRelicCsReqOuterClass { } break; } - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -526,11 +545,11 @@ public final class ComposeSelectedRelicCsReqOuterClass { } break; } - case -1347157501: - case -656801827: { - if (input.isAtField(FieldNames.composeItemList)) { + case 951775968: + case 467259225: { + if (input.isAtField(FieldNames.composeSubAffixList)) { if (!input.trySkipNullValue()) { - input.readMessage(composeItemList); + input.readRepeatedUInt32(composeSubAffixList); bitField0_ |= 0x00000010; } } else { @@ -595,11 +614,11 @@ public final class ComposeSelectedRelicCsReqOuterClass { static final FieldName count = FieldName.forField("count"); - static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); - static final FieldName composeItemList = FieldName.forField("composeItemList", "compose_item_list"); + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + + static final FieldName composeSubAffixList = FieldName.forField("composeSubAffixList", "compose_sub_affix_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java index 4943389..f6ca9eb 100644 --- a/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ComposeSelectedRelicScRspOuterClass.java @@ -19,17 +19,17 @@ public final class ComposeSelectedRelicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; - */ - private int retcode; - - /** - * optional uint32 compose_id = 15; + * optional uint32 compose_id = 2; */ private int composeId; /** - * optional .ItemList return_item_list = 8; + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional .ItemList return_item_list = 10; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -44,62 +44,25 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set + * optional uint32 compose_id = 2; + * @return whether the composeId field is set */ - public boolean hasRetcode() { + public boolean hasComposeId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 10; - * @return this - */ - public ComposeSelectedRelicScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 10; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 10; - * @param value the retcode to set - * @return this - */ - public ComposeSelectedRelicScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 compose_id = 15; - * @return whether the composeId field is set - */ - public boolean hasComposeId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 compose_id = 15; + * optional uint32 compose_id = 2; * @return this */ public ComposeSelectedRelicScRsp clearComposeId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; composeId = 0; return this; } /** - * optional uint32 compose_id = 15; + * optional uint32 compose_id = 2; * @return the composeId */ public int getComposeId() { @@ -107,18 +70,55 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional uint32 compose_id = 15; + * optional uint32 compose_id = 2; * @param value the composeId to set * @return this */ public ComposeSelectedRelicScRsp setComposeId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; composeId = value; return this; } /** - * optional .ItemList return_item_list = 8; + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 8; + * @return this + */ + public ComposeSelectedRelicScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public ComposeSelectedRelicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .ItemList return_item_list = 10; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -126,7 +126,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 10; * @return this */ public ComposeSelectedRelicScRsp clearReturnItemList() { @@ -136,7 +136,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class ComposeSelectedRelicScRspOuterClass { } /** - * optional .ItemList return_item_list = 8; + * optional .ItemList return_item_list = 10; * @param value the returnItemList to set * @return this */ @@ -179,8 +179,8 @@ public final class ComposeSelectedRelicScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; composeId = other.composeId; + retcode = other.retcode; returnItemList.copyFrom(other.returnItemList); } return this; @@ -192,12 +192,12 @@ public final class ComposeSelectedRelicScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasComposeId()) { setComposeId(other.composeId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasReturnItemList()) { getMutableReturnItemList().mergeFrom(other.returnItemList); } @@ -211,8 +211,8 @@ public final class ComposeSelectedRelicScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; composeId = 0; + retcode = 0; returnItemList.clear(); return this; } @@ -238,23 +238,23 @@ public final class ComposeSelectedRelicScRspOuterClass { } ComposeSelectedRelicScRsp other = (ComposeSelectedRelicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasComposeId() || composeId == other.composeId) + && (!hasRetcode() || retcode == other.retcode) && (!hasReturnItemList() || returnItemList.equals(other.returnItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(composeId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 82); output.writeMessageNoTag(returnItemList); } } @@ -263,10 +263,10 @@ public final class ComposeSelectedRelicScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(composeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(returnItemList); @@ -281,25 +281,25 @@ public final class ComposeSelectedRelicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { + case 16: { // composeId composeId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 64) { break; } } - case 66: { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class ComposeSelectedRelicScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.composeId, composeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.composeId, composeId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.returnItemList, returnItemList); @@ -344,10 +344,11 @@ public final class ComposeSelectedRelicScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1399759283: + case -442843416: { + if (input.isAtField(FieldNames.composeId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + composeId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -355,11 +356,10 @@ public final class ComposeSelectedRelicScRspOuterClass { } break; } - case -1399759283: - case -442843416: { - if (input.isAtField(FieldNames.composeId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - composeId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public final class ComposeSelectedRelicScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName composeId = FieldName.forField("composeId", "compose_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName returnItemList = FieldName.forField("returnItemList", "return_item_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ContentPackageDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/ContentPackageDataOuterClass.java index 7a1fe8c..4961bcd 100644 --- a/src/generated/main/emu/lunarcore/proto/ContentPackageDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ContentPackageDataOuterClass.java @@ -20,7 +20,7 @@ public final class ContentPackageDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_content_id = 2; + * optional uint32 cur_content_id = 13; */ private int curContentId; @@ -40,7 +40,7 @@ public final class ContentPackageDataOuterClass { } /** - * optional uint32 cur_content_id = 2; + * optional uint32 cur_content_id = 13; * @return whether the curContentId field is set */ public boolean hasCurContentId() { @@ -48,7 +48,7 @@ public final class ContentPackageDataOuterClass { } /** - * optional uint32 cur_content_id = 2; + * optional uint32 cur_content_id = 13; * @return this */ public ContentPackageData clearCurContentId() { @@ -58,7 +58,7 @@ public final class ContentPackageDataOuterClass { } /** - * optional uint32 cur_content_id = 2; + * optional uint32 cur_content_id = 13; * @return the curContentId */ public int getCurContentId() { @@ -66,7 +66,7 @@ public final class ContentPackageDataOuterClass { } /** - * optional uint32 cur_content_id = 2; + * optional uint32 cur_content_id = 13; * @param value the curContentId to set * @return this */ @@ -214,7 +214,7 @@ public final class ContentPackageDataOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(curContentId); } if ((bitField0_ & 0x00000002) != 0) { @@ -244,7 +244,7 @@ public final class ContentPackageDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 104: { // curContentId curContentId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ContentPackageGetDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ContentPackageGetDataScRspOuterClass.java index 401267e..a45c872 100644 --- a/src/generated/main/emu/lunarcore/proto/ContentPackageGetDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ContentPackageGetDataScRspOuterClass.java @@ -19,12 +19,12 @@ public final class ContentPackageGetDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional .ContentPackageData data = 6; + * optional .ContentPackageData data = 3; */ private final ContentPackageDataOuterClass.ContentPackageData data = ContentPackageDataOuterClass.ContentPackageData.newInstance(); @@ -39,7 +39,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return this */ public ContentPackageGetDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional .ContentPackageData data = 6; + * optional .ContentPackageData data = 3; * @return whether the data field is set */ public boolean hasData() { @@ -84,7 +84,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional .ContentPackageData data = 6; + * optional .ContentPackageData data = 3; * @return this */ public ContentPackageGetDataScRsp clearData() { @@ -94,7 +94,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional .ContentPackageData data = 6; + * optional .ContentPackageData data = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional .ContentPackageData data = 6; + * optional .ContentPackageData data = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class ContentPackageGetDataScRspOuterClass { } /** - * optional .ContentPackageData data = 6; + * optional .ContentPackageData data = 3; * @param value the data to set * @return this */ @@ -199,11 +199,11 @@ public final class ContentPackageGetDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 26); output.writeMessageNoTag(data); } } @@ -227,16 +227,16 @@ public final class ContentPackageGetDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 26) { break; } } - case 50: { + case 26: { // data input.readMessage(data); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ContentPackageInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ContentPackageInfoOuterClass.java index e6843d0..6ca6490 100644 --- a/src/generated/main/emu/lunarcore/proto/ContentPackageInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ContentPackageInfoOuterClass.java @@ -19,12 +19,12 @@ public final class ContentPackageInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 content_id = 8; + * optional uint32 content_id = 1; */ private int contentId; /** - * optional .ContentPackageStatus status = 12; + * optional .ContentPackageStatus status = 15; */ private int status; @@ -39,7 +39,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional uint32 content_id = 8; + * optional uint32 content_id = 1; * @return whether the contentId field is set */ public boolean hasContentId() { @@ -47,7 +47,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional uint32 content_id = 8; + * optional uint32 content_id = 1; * @return this */ public ContentPackageInfo clearContentId() { @@ -57,7 +57,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional uint32 content_id = 8; + * optional uint32 content_id = 1; * @return the contentId */ public int getContentId() { @@ -65,7 +65,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional uint32 content_id = 8; + * optional uint32 content_id = 1; * @param value the contentId to set * @return this */ @@ -76,7 +76,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional .ContentPackageStatus status = 12; + * optional .ContentPackageStatus status = 15; * @return whether the status field is set */ public boolean hasStatus() { @@ -84,7 +84,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional .ContentPackageStatus status = 12; + * optional .ContentPackageStatus status = 15; * @return this */ public ContentPackageInfo clearStatus() { @@ -94,7 +94,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional .ContentPackageStatus status = 12; + * optional .ContentPackageStatus status = 15; * @return the status */ public ContentPackageStatusOuterClass.ContentPackageStatus getStatus() { @@ -127,7 +127,7 @@ public final class ContentPackageInfoOuterClass { } /** - * optional .ContentPackageStatus status = 12; + * optional .ContentPackageStatus status = 15; * @param value the status to set * @return this */ @@ -203,11 +203,11 @@ public final class ContentPackageInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(contentId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeEnumNoTag(status); } } @@ -231,16 +231,16 @@ public final class ContentPackageInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // contentId contentId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // status final int value = input.readInt32(); if (ContentPackageStatusOuterClass.ContentPackageStatus.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java index ab84abc..2f98556 100644 --- a/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ContentPackageStatusOuterClass.java @@ -27,7 +27,12 @@ public final class ContentPackageStatusOuterClass { /** * ContentPackageStatus_Finished = 3; */ - ContentPackageStatus_Finished("ContentPackageStatus_Finished", 3); + ContentPackageStatus_Finished("ContentPackageStatus_Finished", 3), + + /** + * ContentPackageStatus_Release = 4; + */ + ContentPackageStatus_Release("ContentPackageStatus_Release", 4); /** * ContentPackageStatus_None = 0; @@ -49,6 +54,11 @@ public final class ContentPackageStatusOuterClass { */ public static final int ContentPackageStatus_Finished_VALUE = 3; + /** + * ContentPackageStatus_Release = 4; + */ + public static final int ContentPackageStatus_Release_VALUE = 4; + private final String name; private final int number; @@ -102,13 +112,14 @@ public final class ContentPackageStatusOuterClass { enum ContentPackageStatusConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final ContentPackageStatus[] lookup = new ContentPackageStatus[4]; + private static final ContentPackageStatus[] lookup = new ContentPackageStatus[5]; static { lookup[0] = ContentPackageStatus_None; lookup[1] = ContentPackageStatus_Init; lookup[2] = ContentPackageStatus_Doing; lookup[3] = ContentPackageStatus_Finished; + lookup[4] = ContentPackageStatus_Release; } @Override @@ -121,22 +132,33 @@ public final class ContentPackageStatusOuterClass { @Override public final ContentPackageStatus forName(final CharSequence value) { - if (value.length() == 25) { - if (ProtoUtil.isEqual("ContentPackageStatus_None", value)) { - return ContentPackageStatus_None; + switch (value.length()) { + case 25: { + if (ProtoUtil.isEqual("ContentPackageStatus_None", value)) { + return ContentPackageStatus_None; + } + if (ProtoUtil.isEqual("ContentPackageStatus_Init", value)) { + return ContentPackageStatus_Init; + } + break; } - if (ProtoUtil.isEqual("ContentPackageStatus_Init", value)) { - return ContentPackageStatus_Init; + case 26: { + if (ProtoUtil.isEqual("ContentPackageStatus_Doing", value)) { + return ContentPackageStatus_Doing; + } + break; } - } - if (value.length() == 26) { - if (ProtoUtil.isEqual("ContentPackageStatus_Doing", value)) { - return ContentPackageStatus_Doing; + case 28: { + if (ProtoUtil.isEqual("ContentPackageStatus_Release", value)) { + return ContentPackageStatus_Release; + } + break; } - } - if (value.length() == 29) { - if (ProtoUtil.isEqual("ContentPackageStatus_Finished", value)) { - return ContentPackageStatus_Finished; + case 29: { + if (ProtoUtil.isEqual("ContentPackageStatus_Finished", value)) { + return ContentPackageStatus_Finished; + } + break; } } return null; diff --git a/src/generated/main/emu/lunarcore/proto/CurPetChangedScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/CurPetChangedScNotifyOuterClass.java index 6b3a317..59ef1d2 100644 --- a/src/generated/main/emu/lunarcore/proto/CurPetChangedScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/CurPetChangedScNotifyOuterClass.java @@ -13,13 +13,21 @@ import us.hebi.quickbuf.ProtoSource; public final class CurPetChangedScNotifyOuterClass { /** + *
+   *  KIHOKPMBJHH
+   * 
+ * * Protobuf type {@code CurPetChangedScNotify} */ public static final class CurPetChangedScNotify extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_pet_id = 8; + *
+     *  OEFEKNEOAAA
+     * 
+ * + * optional uint32 cur_pet_id = 9; */ private int curPetId; @@ -27,6 +35,10 @@ public final class CurPetChangedScNotifyOuterClass { } /** + *
+     *  KIHOKPMBJHH
+     * 
+ * * @return a new empty instance of {@code CurPetChangedScNotify} */ public static CurPetChangedScNotify newInstance() { @@ -34,7 +46,11 @@ public final class CurPetChangedScNotifyOuterClass { } /** - * optional uint32 cur_pet_id = 8; + *
+     *  OEFEKNEOAAA
+     * 
+ * + * optional uint32 cur_pet_id = 9; * @return whether the curPetId field is set */ public boolean hasCurPetId() { @@ -42,7 +58,11 @@ public final class CurPetChangedScNotifyOuterClass { } /** - * optional uint32 cur_pet_id = 8; + *
+     *  OEFEKNEOAAA
+     * 
+ * + * optional uint32 cur_pet_id = 9; * @return this */ public CurPetChangedScNotify clearCurPetId() { @@ -52,7 +72,11 @@ public final class CurPetChangedScNotifyOuterClass { } /** - * optional uint32 cur_pet_id = 8; + *
+     *  OEFEKNEOAAA
+     * 
+ * + * optional uint32 cur_pet_id = 9; * @return the curPetId */ public int getCurPetId() { @@ -60,7 +84,11 @@ public final class CurPetChangedScNotifyOuterClass { } /** - * optional uint32 cur_pet_id = 8; + *
+     *  OEFEKNEOAAA
+     * 
+ * + * optional uint32 cur_pet_id = 9; * @param value the curPetId to set * @return this */ @@ -129,7 +157,7 @@ public final class CurPetChangedScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(curPetId); } } @@ -150,7 +178,7 @@ public final class CurPetChangedScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 72: { // curPetId curPetId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/CurTrialActivityScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/CurTrialActivityScNotifyOuterClass.java new file mode 100644 index 0000000..125701e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/CurTrialActivityScNotifyOuterClass.java @@ -0,0 +1,422 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class CurTrialActivityScNotifyOuterClass { + /** + *
+   *  EOIMLNJCEBG
+   * 
+ * + * Protobuf type {@code CurTrialActivityScNotify} + */ + public static final class CurTrialActivityScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  CMNIOHBPIDG
+     * 
+ * + * optional uint32 trial_stage_id = 14; + */ + private int trialStageId; + + /** + *
+     *  LGPBJOGHHEP
+     * 
+ * + * optional .TrialActivityStatus status = 3; + */ + private int status; + + private CurTrialActivityScNotify() { + } + + /** + *
+     *  EOIMLNJCEBG
+     * 
+ * + * @return a new empty instance of {@code CurTrialActivityScNotify} + */ + public static CurTrialActivityScNotify newInstance() { + return new CurTrialActivityScNotify(); + } + + /** + *
+     *  CMNIOHBPIDG
+     * 
+ * + * optional uint32 trial_stage_id = 14; + * @return whether the trialStageId field is set + */ + public boolean hasTrialStageId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  CMNIOHBPIDG
+     * 
+ * + * optional uint32 trial_stage_id = 14; + * @return this + */ + public CurTrialActivityScNotify clearTrialStageId() { + bitField0_ &= ~0x00000001; + trialStageId = 0; + return this; + } + + /** + *
+     *  CMNIOHBPIDG
+     * 
+ * + * optional uint32 trial_stage_id = 14; + * @return the trialStageId + */ + public int getTrialStageId() { + return trialStageId; + } + + /** + *
+     *  CMNIOHBPIDG
+     * 
+ * + * optional uint32 trial_stage_id = 14; + * @param value the trialStageId to set + * @return this + */ + public CurTrialActivityScNotify setTrialStageId(final int value) { + bitField0_ |= 0x00000001; + trialStageId = value; + return this; + } + + /** + *
+     *  LGPBJOGHHEP
+     * 
+ * + * optional .TrialActivityStatus status = 3; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  LGPBJOGHHEP
+     * 
+ * + * optional .TrialActivityStatus status = 3; + * @return this + */ + public CurTrialActivityScNotify clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + *
+     *  LGPBJOGHHEP
+     * 
+ * + * optional .TrialActivityStatus status = 3; + * @return the status + */ + public TrialActivityStatusOuterClass.TrialActivityStatus getStatus() { + return TrialActivityStatusOuterClass.TrialActivityStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link CurTrialActivityScNotify#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link TrialActivityStatusOuterClass.TrialActivityStatus}. Setting an invalid value + * can cause {@link CurTrialActivityScNotify#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public CurTrialActivityScNotify setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + *
+     *  LGPBJOGHHEP
+     * 
+ * + * optional .TrialActivityStatus status = 3; + * @param value the status to set + * @return this + */ + public CurTrialActivityScNotify setStatus( + final TrialActivityStatusOuterClass.TrialActivityStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + @Override + public CurTrialActivityScNotify copyFrom(final CurTrialActivityScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + trialStageId = other.trialStageId; + status = other.status; + } + return this; + } + + @Override + public CurTrialActivityScNotify mergeFrom(final CurTrialActivityScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTrialStageId()) { + setTrialStageId(other.trialStageId); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + return this; + } + + @Override + public CurTrialActivityScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + trialStageId = 0; + status = 0; + return this; + } + + @Override + public CurTrialActivityScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CurTrialActivityScNotify)) { + return false; + } + CurTrialActivityScNotify other = (CurTrialActivityScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasTrialStageId() || trialStageId == other.trialStageId) + && (!hasStatus() || status == other.status); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(trialStageId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeEnumNoTag(status); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(trialStageId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CurTrialActivityScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // trialStageId + trialStageId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // status + final int value = input.readInt32(); + if (TrialActivityStatusOuterClass.TrialActivityStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.trialStageId, trialStageId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, TrialActivityStatusOuterClass.TrialActivityStatus.converter()); + } + output.endObject(); + } + + @Override + public CurTrialActivityScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -276723517: + case -2087149307: { + if (input.isAtField(FieldNames.trialStageId)) { + if (!input.trySkipNullValue()) { + trialStageId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final TrialActivityStatusOuterClass.TrialActivityStatus value = input.readEnum(TrialActivityStatusOuterClass.TrialActivityStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CurTrialActivityScNotify clone() { + return new CurTrialActivityScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CurTrialActivityScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CurTrialActivityScNotify(), data).checkInitialized(); + } + + public static CurTrialActivityScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CurTrialActivityScNotify(), input).checkInitialized(); + } + + public static CurTrialActivityScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CurTrialActivityScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating CurTrialActivityScNotify messages + */ + public static MessageFactory getFactory() { + return CurTrialActivityScNotifyFactory.INSTANCE; + } + + private enum CurTrialActivityScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public CurTrialActivityScNotify create() { + return CurTrialActivityScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName trialStageId = FieldName.forField("trialStageId", "trial_stage_id"); + + static final FieldName status = FieldName.forField("status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java index 2a2ccc5..ca12d48 100644 --- a/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DailyActiveInfoNotifyOuterClass.java @@ -15,23 +15,39 @@ import us.hebi.quickbuf.RepeatedMessage; public final class DailyActiveInfoNotifyOuterClass { /** + *
+   *  LFLGIDKBPHD
+   * 
+ * * Protobuf type {@code DailyActiveInfoNotify} */ public static final class DailyActiveInfoNotify extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 daily_active_point = 13; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; */ private int dailyActivePoint; /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; */ private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; */ private final RepeatedMessage dailyActiveLevelList = RepeatedMessage.newEmptyInstance(DailyActivityInfoOuterClass.DailyActivityInfo.getFactory()); @@ -39,6 +55,10 @@ public final class DailyActiveInfoNotifyOuterClass { } /** + *
+     *  LFLGIDKBPHD
+     * 
+ * * @return a new empty instance of {@code DailyActiveInfoNotify} */ public static DailyActiveInfoNotify newInstance() { @@ -46,7 +66,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 13; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @return whether the dailyActivePoint field is set */ public boolean hasDailyActivePoint() { @@ -54,7 +78,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 13; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @return this */ public DailyActiveInfoNotify clearDailyActivePoint() { @@ -64,7 +92,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 13; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @return the dailyActivePoint */ public int getDailyActivePoint() { @@ -72,7 +104,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * optional uint32 daily_active_point = 13; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @param value the dailyActivePoint to set * @return this */ @@ -83,7 +119,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; * @return whether the dailyActiveQuestIdList field is set */ public boolean hasDailyActiveQuestIdList() { @@ -91,7 +131,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; * @return this */ public DailyActiveInfoNotify clearDailyActiveQuestIdList() { @@ -101,7 +145,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -115,7 +163,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -129,7 +181,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; * @param value the dailyActiveQuestIdList to add * @return this */ @@ -140,7 +196,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 6; + *
+     *  CAFMJIPAFEO
+     * 
+ * + * repeated uint32 daily_active_quest_id_list = 15; * @param values the dailyActiveQuestIdList to add * @return this */ @@ -151,7 +211,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; * @return whether the dailyActiveLevelList field is set */ public boolean hasDailyActiveLevelList() { @@ -159,7 +223,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; * @return this */ public DailyActiveInfoNotify clearDailyActiveLevelList() { @@ -169,7 +237,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -184,7 +256,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -199,7 +275,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; * @param value the dailyActiveLevelList to add * @return this */ @@ -211,7 +291,11 @@ public final class DailyActiveInfoNotifyOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 10; + *
+     *  MKBAFLKCFCI
+     * 
+ * + * repeated .DailyActivityInfo daily_active_level_list = 6; * @param values the dailyActiveLevelList to add * @return this */ @@ -295,18 +379,18 @@ public final class DailyActiveInfoNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(dailyActivePoint); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < dailyActiveQuestIdList.length(); i++) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < dailyActiveLevelList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 50); output.writeMessageNoTag(dailyActiveLevelList.get(i)); } } @@ -334,25 +418,25 @@ public final class DailyActiveInfoNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 112: { // dailyActivePoint dailyActivePoint = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // dailyActiveQuestIdList [packed=true] + input.readPackedUInt32(dailyActiveQuestIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 50) { break; } } case 50: { - // dailyActiveQuestIdList [packed=true] - input.readPackedUInt32(dailyActiveQuestIdList, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { // dailyActiveLevelList tag = input.readRepeatedMessage(dailyActiveLevelList, tag); bitField0_ |= 0x00000004; @@ -370,7 +454,7 @@ public final class DailyActiveInfoNotifyOuterClass { tag = input.readTag(); break; } - case 48: { + case 120: { // dailyActiveQuestIdList [packed=false] tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java index ee3a5a6..813fa1e 100644 --- a/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DailyActivityInfoOuterClass.java @@ -19,22 +19,22 @@ public final class DailyActivityInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 level = 1; + * optional uint32 level = 5; */ private int level; /** - * optional uint32 world_level = 3; + * optional uint32 world_level = 7; */ private int worldLevel; /** - * optional uint32 daily_active_point = 13; + * optional uint32 daily_active_point = 10; */ private int dailyActivePoint; /** - * optional bool is_has_taken = 2; + * optional bool is_has_taken = 6; */ private boolean isHasTaken; @@ -49,7 +49,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 1; + * optional uint32 level = 5; * @return whether the level field is set */ public boolean hasLevel() { @@ -57,7 +57,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 1; + * optional uint32 level = 5; * @return this */ public DailyActivityInfo clearLevel() { @@ -67,7 +67,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 1; + * optional uint32 level = 5; * @return the level */ public int getLevel() { @@ -75,7 +75,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 level = 1; + * optional uint32 level = 5; * @param value the level to set * @return this */ @@ -86,7 +86,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 3; + * optional uint32 world_level = 7; * @return whether the worldLevel field is set */ public boolean hasWorldLevel() { @@ -94,7 +94,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 3; + * optional uint32 world_level = 7; * @return this */ public DailyActivityInfo clearWorldLevel() { @@ -104,7 +104,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 3; + * optional uint32 world_level = 7; * @return the worldLevel */ public int getWorldLevel() { @@ -112,7 +112,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 world_level = 3; + * optional uint32 world_level = 7; * @param value the worldLevel to set * @return this */ @@ -123,7 +123,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 13; + * optional uint32 daily_active_point = 10; * @return whether the dailyActivePoint field is set */ public boolean hasDailyActivePoint() { @@ -131,7 +131,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 13; + * optional uint32 daily_active_point = 10; * @return this */ public DailyActivityInfo clearDailyActivePoint() { @@ -141,7 +141,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 13; + * optional uint32 daily_active_point = 10; * @return the dailyActivePoint */ public int getDailyActivePoint() { @@ -149,7 +149,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional uint32 daily_active_point = 13; + * optional uint32 daily_active_point = 10; * @param value the dailyActivePoint to set * @return this */ @@ -160,7 +160,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 2; + * optional bool is_has_taken = 6; * @return whether the isHasTaken field is set */ public boolean hasIsHasTaken() { @@ -168,7 +168,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 2; + * optional bool is_has_taken = 6; * @return this */ public DailyActivityInfo clearIsHasTaken() { @@ -178,7 +178,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 2; + * optional bool is_has_taken = 6; * @return the isHasTaken */ public boolean getIsHasTaken() { @@ -186,7 +186,7 @@ public final class DailyActivityInfoOuterClass { } /** - * optional bool is_has_taken = 2; + * optional bool is_has_taken = 6; * @param value the isHasTaken to set * @return this */ @@ -273,19 +273,19 @@ public final class DailyActivityInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(dailyActivePoint); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 48); output.writeBoolNoTag(isHasTaken); } } @@ -315,34 +315,34 @@ public final class DailyActivityInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 40: { // level level = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 56) { break; } } - case 24: { + case 56: { // worldLevel worldLevel = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 80) { break; } } - case 104: { + case 80: { // dailyActivePoint dailyActivePoint = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 16) { + if (tag != 48) { break; } } - case 16: { + case 48: { // isHasTaken isHasTaken = input.readBool(); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java index abb4ef6..d310761 100644 --- a/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class DeactivateFarmElementCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 13; */ private int entityId; @@ -34,7 +34,7 @@ public final class DeactivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 13; * @return whether the entityId field is set */ public boolean hasEntityId() { @@ -42,7 +42,7 @@ public final class DeactivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 13; * @return this */ public DeactivateFarmElementCsReq clearEntityId() { @@ -52,7 +52,7 @@ public final class DeactivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 13; * @return the entityId */ public int getEntityId() { @@ -60,7 +60,7 @@ public final class DeactivateFarmElementCsReqOuterClass { } /** - * optional uint32 entity_id = 8; + * optional uint32 entity_id = 13; * @param value the entityId to set * @return this */ @@ -129,7 +129,7 @@ public final class DeactivateFarmElementCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(entityId); } } @@ -150,7 +150,7 @@ public final class DeactivateFarmElementCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 104: { // entityId entityId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java index a518134..16cb0ea 100644 --- a/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeactivateFarmElementScRspOuterClass.java @@ -19,15 +19,15 @@ public final class DeactivateFarmElementScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 4; - */ - private int entityId; - - /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; */ private int retcode; + /** + * optional uint32 entity_id = 8; + */ + private int entityId; + private DeactivateFarmElementScRsp() { } @@ -39,62 +39,25 @@ public final class DeactivateFarmElementScRspOuterClass { } /** - * optional uint32 entity_id = 4; - * @return whether the entityId field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasEntityId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 4; - * @return this - */ - public DeactivateFarmElementScRsp clearEntityId() { - bitField0_ &= ~0x00000001; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 4; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 4; - * @param value the entityId to set - * @return this - */ - public DeactivateFarmElementScRsp setEntityId(final int value) { - bitField0_ |= 0x00000001; - entityId = value; - return this; - } - - /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @return this */ public DeactivateFarmElementScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class DeactivateFarmElementScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public DeactivateFarmElementScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 entity_id = 8; + * @return whether the entityId field is set + */ + public boolean hasEntityId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 entity_id = 8; + * @return this + */ + public DeactivateFarmElementScRsp clearEntityId() { + bitField0_ &= ~0x00000002; + entityId = 0; + return this; + } + + /** + * optional uint32 entity_id = 8; + * @return the entityId + */ + public int getEntityId() { + return entityId; + } + + /** + * optional uint32 entity_id = 8; + * @param value the entityId to set + * @return this + */ + public DeactivateFarmElementScRsp setEntityId(final int value) { + bitField0_ |= 0x00000002; + entityId = value; + return this; + } + @Override public DeactivateFarmElementScRsp copyFrom(final DeactivateFarmElementScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; retcode = other.retcode; + entityId = other.entityId; } return this; } @@ -129,12 +129,12 @@ public final class DeactivateFarmElementScRspOuterClass { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasEntityId()) { + setEntityId(other.entityId); + } return this; } @@ -145,8 +145,8 @@ public final class DeactivateFarmElementScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - entityId = 0; retcode = 0; + entityId = 0; return this; } @@ -170,19 +170,19 @@ public final class DeactivateFarmElementScRspOuterClass { } DeactivateFarmElementScRsp other = (DeactivateFarmElementScRsp) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasEntityId() || entityId == other.entityId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(entityId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(entityId); } } @@ -190,10 +190,10 @@ public final class DeactivateFarmElementScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } return size; } @@ -205,18 +205,18 @@ public final class DeactivateFarmElementScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // entityId - entityId = input.readUInt32(); + case 24: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { - // retcode - retcode = input.readUInt32(); + case 64: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class DeactivateFarmElementScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.entityId, entityId); } output.endObject(); } @@ -256,11 +256,10 @@ public final class DeactivateFarmElementScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class DeactivateFarmElementScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class DeactivateFarmElementScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java index 5916a40..ffc7b05 100644 --- a/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DelMailCsReqOuterClass.java @@ -14,13 +14,21 @@ import us.hebi.quickbuf.RepeatedInt; public final class DelMailCsReqOuterClass { /** + *
+   *  DFLFPLFDDLH
+   * 
+ * * Protobuf type {@code DelMailCsReq} */ public static final class DelMailCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; */ private final RepeatedInt idList = RepeatedInt.newEmptyInstance(); @@ -28,6 +36,10 @@ public final class DelMailCsReqOuterClass { } /** + *
+     *  DFLFPLFDDLH
+     * 
+ * * @return a new empty instance of {@code DelMailCsReq} */ public static DelMailCsReq newInstance() { @@ -35,7 +47,11 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; * @return whether the idList field is set */ public boolean hasIdList() { @@ -43,7 +59,11 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; * @return this */ public DelMailCsReq clearIdList() { @@ -53,7 +73,11 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +91,11 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +109,11 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; * @param value the idList to add * @return this */ @@ -92,7 +124,11 @@ public final class DelMailCsReqOuterClass { } /** - * repeated uint32 id_list = 14; + *
+     *  AFAHOIKCCJA
+     * 
+ * + * repeated uint32 id_list = 10; * @param values the idList to add * @return this */ @@ -163,7 +199,7 @@ public final class DelMailCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < idList.length(); i++) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(idList.array()[i]); } } @@ -185,7 +221,7 @@ public final class DelMailCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 82: { // idList [packed=true] input.readPackedUInt32(idList, tag); bitField0_ |= 0x00000001; @@ -204,7 +240,7 @@ public final class DelMailCsReqOuterClass { tag = input.readTag(); break; } - case 112: { + case 80: { // idList [packed=false] tag = input.readRepeatedUInt32(idList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java index 1ef1caf..6a13250 100644 --- a/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DelMailScRspOuterClass.java @@ -20,12 +20,12 @@ public final class DelMailScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; */ private int retcode; /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; */ private final RepeatedInt idList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @return this */ public DelMailScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class DelMailScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; * @return whether the idList field is set */ public boolean hasIdList() { @@ -85,7 +85,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; * @return this */ public DelMailScRsp clearIdList() { @@ -95,7 +95,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; * @param value the idList to add * @return this */ @@ -134,7 +134,7 @@ public final class DelMailScRspOuterClass { } /** - * repeated uint32 id_list = 15; + * repeated uint32 id_list = 1; * @param values the idList to add * @return this */ @@ -210,12 +210,12 @@ public final class DelMailScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < idList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(idList.array()[i]); } } @@ -240,16 +240,16 @@ public final class DelMailScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 10) { break; } } - case 122: { + case 10: { // idList [packed=true] input.readPackedUInt32(idList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class DelMailScRspOuterClass { tag = input.readTag(); break; } - case 120: { + case 8: { // idList [packed=false] tag = input.readRepeatedUInt32(idList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java index 4cb309b..304e9c7 100644 --- a/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeleteFriendCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class DeleteFriendCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 12; + * optional uint32 uid = 11; */ private int uid; @@ -34,7 +34,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 12; + * optional uint32 uid = 11; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 12; + * optional uint32 uid = 11; * @return this */ public DeleteFriendCsReq clearUid() { @@ -52,7 +52,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 12; + * optional uint32 uid = 11; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public final class DeleteFriendCsReqOuterClass { } /** - * optional uint32 uid = 12; + * optional uint32 uid = 11; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public final class DeleteFriendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public final class DeleteFriendCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 88: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheCsReqOuterClass.java index 22102f4..1fcf67e 100644 --- a/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheCsReqOuterClass.java @@ -14,13 +14,21 @@ import us.hebi.quickbuf.RepeatedInt; public final class DeleteSocialEventServerCacheCsReqOuterClass { /** + *
+   *  HCEAKNOLPAG
+   * 
+ * * Protobuf type {@code DeleteSocialEventServerCacheCsReq} */ public static final class DeleteSocialEventServerCacheCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; */ private final RepeatedInt deleteCache = RepeatedInt.newEmptyInstance(); @@ -28,6 +36,10 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** + *
+     *  HCEAKNOLPAG
+     * 
+ * * @return a new empty instance of {@code DeleteSocialEventServerCacheCsReq} */ public static DeleteSocialEventServerCacheCsReq newInstance() { @@ -35,7 +47,11 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; * @return whether the deleteCache field is set */ public boolean hasDeleteCache() { @@ -43,7 +59,11 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; * @return this */ public DeleteSocialEventServerCacheCsReq clearDeleteCache() { @@ -53,7 +73,11 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +91,11 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +109,11 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; * @param value the deleteCache to add * @return this */ @@ -92,7 +124,11 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { } /** - * repeated uint32 delete_cache = 13; + *
+     *  EMJDKDEHAHB
+     * 
+ * + * repeated uint32 delete_cache = 2; * @param values the deleteCache to add * @return this */ @@ -165,7 +201,7 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < deleteCache.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(deleteCache.array()[i]); } } @@ -187,7 +223,7 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { + case 18: { // deleteCache [packed=true] input.readPackedUInt32(deleteCache, tag); bitField0_ |= 0x00000001; @@ -206,7 +242,7 @@ public final class DeleteSocialEventServerCacheCsReqOuterClass { tag = input.readTag(); break; } - case 104: { + case 16: { // deleteCache [packed=false] tag = input.readRepeatedUInt32(deleteCache, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheScRspOuterClass.java index 5c713c4..3b37ec6 100644 --- a/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeleteSocialEventServerCacheScRspOuterClass.java @@ -14,18 +14,30 @@ import us.hebi.quickbuf.RepeatedInt; public final class DeleteSocialEventServerCacheScRspOuterClass { /** + *
+   *  DADGJDCNIKM
+   * 
+ * * Protobuf type {@code DeleteSocialEventServerCacheScRsp} */ public static final class DeleteSocialEventServerCacheScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; */ private int retcode; /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; */ private final RepeatedInt retDeleteCache = RepeatedInt.newEmptyInstance(); @@ -33,6 +45,10 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** + *
+     *  DADGJDCNIKM
+     * 
+ * * @return a new empty instance of {@code DeleteSocialEventServerCacheScRsp} */ public static DeleteSocialEventServerCacheScRsp newInstance() { @@ -40,7 +56,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * optional uint32 retcode = 8; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +68,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * optional uint32 retcode = 8; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return this */ public DeleteSocialEventServerCacheScRsp clearRetcode() { @@ -58,7 +82,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * optional uint32 retcode = 8; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -66,7 +94,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * optional uint32 retcode = 8; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -77,7 +109,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; * @return whether the retDeleteCache field is set */ public boolean hasRetDeleteCache() { @@ -85,7 +121,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; * @return this */ public DeleteSocialEventServerCacheScRsp clearRetDeleteCache() { @@ -95,7 +135,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +153,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +171,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; * @param value the retDeleteCache to add * @return this */ @@ -134,7 +186,11 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { } /** - * repeated uint32 ret_delete_cache = 1; + *
+     *  HMPIHELEGLD
+     * 
+ * + * repeated uint32 ret_delete_cache = 15; * @param values the retDeleteCache to add * @return this */ @@ -212,12 +268,12 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < retDeleteCache.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(retDeleteCache.array()[i]); } } @@ -242,16 +298,16 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 122) { break; } } - case 10: { + case 122: { // retDeleteCache [packed=true] input.readPackedUInt32(retDeleteCache, tag); bitField0_ |= 0x00000002; @@ -270,7 +326,7 @@ public final class DeleteSocialEventServerCacheScRspOuterClass { tag = input.readTag(); break; } - case 8: { + case 120: { // retDeleteCache [packed=false] tag = input.readRepeatedUInt32(retDeleteCache, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java index 0888367..0e6e5d1 100644 --- a/src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeployRotaterCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class DeployRotaterCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RotaterData rotater_data = 15; + * optional .RotaterData rotater_data = 7; */ private final RotaterDataOuterClass.RotaterData rotaterData = RotaterDataOuterClass.RotaterData.newInstance(); @@ -34,7 +34,7 @@ public final class DeployRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 15; + * optional .RotaterData rotater_data = 7; * @return whether the rotaterData field is set */ public boolean hasRotaterData() { @@ -42,7 +42,7 @@ public final class DeployRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 15; + * optional .RotaterData rotater_data = 7; * @return this */ public DeployRotaterCsReq clearRotaterData() { @@ -52,7 +52,7 @@ public final class DeployRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 15; + * optional .RotaterData rotater_data = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class DeployRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 15; + * optional .RotaterData rotater_data = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class DeployRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 15; + * optional .RotaterData rotater_data = 7; * @param value the rotaterData to set * @return this */ @@ -150,7 +150,7 @@ public final class DeployRotaterCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 58); output.writeMessageNoTag(rotaterData); } } @@ -171,7 +171,7 @@ public final class DeployRotaterCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 122: { + case 58: { // rotaterData input.readMessage(rotaterData); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java index 9add7ab..e2e9ad7 100644 --- a/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DeployRotaterScRspOuterClass.java @@ -19,20 +19,20 @@ public final class DeployRotaterScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .RotatorEnergyInfo energy_info = 4; - */ - private final RotatorEnergyInfoOuterClass.RotatorEnergyInfo energyInfo = RotatorEnergyInfoOuterClass.RotatorEnergyInfo.newInstance(); - - /** - * optional .RotaterData rotater_data = 10; + * optional .RotaterData rotater_data = 11; */ private final RotaterDataOuterClass.RotaterData rotaterData = RotaterDataOuterClass.RotaterData.newInstance(); + /** + * optional .RotatorEnergyInfo energy_info = 13; + */ + private final RotatorEnergyInfoOuterClass.RotatorEnergyInfo energyInfo = RotatorEnergyInfoOuterClass.RotatorEnergyInfo.newInstance(); + private DeployRotaterScRsp() { } @@ -44,7 +44,7 @@ public final class DeployRotaterScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -52,7 +52,7 @@ public final class DeployRotaterScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return this */ public DeployRotaterScRsp clearRetcode() { @@ -62,7 +62,7 @@ public final class DeployRotaterScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -70,7 +70,7 @@ public final class DeployRotaterScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -81,83 +81,25 @@ public final class DeployRotaterScRspOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 4; - * @return whether the energyInfo field is set + * optional .RotaterData rotater_data = 11; + * @return whether the rotaterData field is set */ - public boolean hasEnergyInfo() { + public boolean hasRotaterData() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RotatorEnergyInfo energy_info = 4; - * @return this - */ - public DeployRotaterScRsp clearEnergyInfo() { - bitField0_ &= ~0x00000002; - energyInfo.clear(); - return this; - } - - /** - * optional .RotatorEnergyInfo energy_info = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableEnergyInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getEnergyInfo() { - return energyInfo; - } - - /** - * optional .RotatorEnergyInfo energy_info = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getMutableEnergyInfo() { - bitField0_ |= 0x00000002; - return energyInfo; - } - - /** - * optional .RotatorEnergyInfo energy_info = 4; - * @param value the energyInfo to set - * @return this - */ - public DeployRotaterScRsp setEnergyInfo( - final RotatorEnergyInfoOuterClass.RotatorEnergyInfo value) { - bitField0_ |= 0x00000002; - energyInfo.copyFrom(value); - return this; - } - - /** - * optional .RotaterData rotater_data = 10; - * @return whether the rotaterData field is set - */ - public boolean hasRotaterData() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RotaterData rotater_data = 10; + * optional .RotaterData rotater_data = 11; * @return this */ public DeployRotaterScRsp clearRotaterData() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; rotaterData.clear(); return this; } /** - * optional .RotaterData rotater_data = 10; + * optional .RotaterData rotater_data = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -171,7 +113,7 @@ public final class DeployRotaterScRspOuterClass { } /** - * optional .RotaterData rotater_data = 10; + * optional .RotaterData rotater_data = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -180,29 +122,87 @@ public final class DeployRotaterScRspOuterClass { * @return internal storage object for modifications */ public RotaterDataOuterClass.RotaterData getMutableRotaterData() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return rotaterData; } /** - * optional .RotaterData rotater_data = 10; + * optional .RotaterData rotater_data = 11; * @param value the rotaterData to set * @return this */ public DeployRotaterScRsp setRotaterData(final RotaterDataOuterClass.RotaterData value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; rotaterData.copyFrom(value); return this; } + /** + * optional .RotatorEnergyInfo energy_info = 13; + * @return whether the energyInfo field is set + */ + public boolean hasEnergyInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RotatorEnergyInfo energy_info = 13; + * @return this + */ + public DeployRotaterScRsp clearEnergyInfo() { + bitField0_ &= ~0x00000004; + energyInfo.clear(); + return this; + } + + /** + * optional .RotatorEnergyInfo energy_info = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEnergyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getEnergyInfo() { + return energyInfo; + } + + /** + * optional .RotatorEnergyInfo energy_info = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getMutableEnergyInfo() { + bitField0_ |= 0x00000004; + return energyInfo; + } + + /** + * optional .RotatorEnergyInfo energy_info = 13; + * @param value the energyInfo to set + * @return this + */ + public DeployRotaterScRsp setEnergyInfo( + final RotatorEnergyInfoOuterClass.RotatorEnergyInfo value) { + bitField0_ |= 0x00000004; + energyInfo.copyFrom(value); + return this; + } + @Override public DeployRotaterScRsp copyFrom(final DeployRotaterScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - energyInfo.copyFrom(other.energyInfo); rotaterData.copyFrom(other.rotaterData); + energyInfo.copyFrom(other.energyInfo); } return this; } @@ -216,12 +216,12 @@ public final class DeployRotaterScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasEnergyInfo()) { - getMutableEnergyInfo().mergeFrom(other.energyInfo); - } if (other.hasRotaterData()) { getMutableRotaterData().mergeFrom(other.rotaterData); } + if (other.hasEnergyInfo()) { + getMutableEnergyInfo().mergeFrom(other.energyInfo); + } return this; } @@ -233,8 +233,8 @@ public final class DeployRotaterScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - energyInfo.clear(); rotaterData.clear(); + energyInfo.clear(); return this; } @@ -245,8 +245,8 @@ public final class DeployRotaterScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - energyInfo.clearQuick(); rotaterData.clearQuick(); + energyInfo.clearQuick(); return this; } @@ -261,23 +261,23 @@ public final class DeployRotaterScRspOuterClass { DeployRotaterScRsp other = (DeployRotaterScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)) - && (!hasRotaterData() || rotaterData.equals(other.rotaterData)); + && (!hasRotaterData() || rotaterData.equals(other.rotaterData)) + && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(energyInfo); + output.writeRawByte((byte) 90); + output.writeMessageNoTag(rotaterData); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rotaterData); + output.writeRawByte((byte) 106); + output.writeMessageNoTag(energyInfo); } } @@ -288,10 +288,10 @@ public final class DeployRotaterScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(rotaterData); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rotaterData); + size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); } return size; } @@ -303,27 +303,27 @@ public final class DeployRotaterScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 90) { break; } } - case 34: { - // energyInfo - input.readMessage(energyInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { + case 90: { // rotaterData input.readMessage(rotaterData); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // energyInfo + input.readMessage(energyInfo); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -351,10 +351,10 @@ public final class DeployRotaterScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.energyInfo, energyInfo); + output.writeMessage(FieldNames.rotaterData, rotaterData); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rotaterData, rotaterData); + output.writeMessage(FieldNames.energyInfo, energyInfo); } output.endObject(); } @@ -377,11 +377,11 @@ public final class DeployRotaterScRspOuterClass { } break; } - case 1464698710: - case -1818804219: { - if (input.isAtField(FieldNames.energyInfo)) { + case 1880563393: + case -1807070094: { + if (input.isAtField(FieldNames.rotaterData)) { if (!input.trySkipNullValue()) { - input.readMessage(energyInfo); + input.readMessage(rotaterData); bitField0_ |= 0x00000002; } } else { @@ -389,11 +389,11 @@ public final class DeployRotaterScRspOuterClass { } break; } - case 1880563393: - case -1807070094: { - if (input.isAtField(FieldNames.rotaterData)) { + case 1464698710: + case -1818804219: { + if (input.isAtField(FieldNames.energyInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(rotaterData); + input.readMessage(energyInfo); bitField0_ |= 0x00000004; } } else { @@ -456,9 +456,9 @@ public final class DeployRotaterScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); - static final FieldName rotaterData = FieldName.forField("rotaterData", "rotater_data"); + + static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DestroyItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DestroyItemCsReqOuterClass.java index e5191e6..b7df140 100644 --- a/src/generated/main/emu/lunarcore/proto/DestroyItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DestroyItemCsReqOuterClass.java @@ -19,17 +19,17 @@ public final class DestroyItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 item_count = 1; + * optional uint32 item_count = 8; */ private int itemCount; /** - * optional uint32 item_id = 4; + * optional uint32 item_id = 12; */ private int itemId; /** - * optional uint32 cur_item_count = 12; + * optional uint32 cur_item_count = 14; */ private int curItemCount; @@ -44,7 +44,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_count = 1; + * optional uint32 item_count = 8; * @return whether the itemCount field is set */ public boolean hasItemCount() { @@ -52,7 +52,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_count = 1; + * optional uint32 item_count = 8; * @return this */ public DestroyItemCsReq clearItemCount() { @@ -62,7 +62,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_count = 1; + * optional uint32 item_count = 8; * @return the itemCount */ public int getItemCount() { @@ -70,7 +70,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_count = 1; + * optional uint32 item_count = 8; * @param value the itemCount to set * @return this */ @@ -81,7 +81,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_id = 4; + * optional uint32 item_id = 12; * @return whether the itemId field is set */ public boolean hasItemId() { @@ -89,7 +89,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_id = 4; + * optional uint32 item_id = 12; * @return this */ public DestroyItemCsReq clearItemId() { @@ -99,7 +99,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_id = 4; + * optional uint32 item_id = 12; * @return the itemId */ public int getItemId() { @@ -107,7 +107,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 item_id = 4; + * optional uint32 item_id = 12; * @param value the itemId to set * @return this */ @@ -118,7 +118,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 cur_item_count = 12; + * optional uint32 cur_item_count = 14; * @return whether the curItemCount field is set */ public boolean hasCurItemCount() { @@ -126,7 +126,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 cur_item_count = 12; + * optional uint32 cur_item_count = 14; * @return this */ public DestroyItemCsReq clearCurItemCount() { @@ -136,7 +136,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 cur_item_count = 12; + * optional uint32 cur_item_count = 14; * @return the curItemCount */ public int getCurItemCount() { @@ -144,7 +144,7 @@ public final class DestroyItemCsReqOuterClass { } /** - * optional uint32 cur_item_count = 12; + * optional uint32 cur_item_count = 14; * @param value the curItemCount to set * @return this */ @@ -225,15 +225,15 @@ public final class DestroyItemCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(itemCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(curItemCount); } } @@ -260,25 +260,25 @@ public final class DestroyItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 64: { // itemCount itemCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // itemId - itemId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 96) { break; } } case 96: { + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { // curItemCount curItemCount = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java index 2d82c1f..f790529 100644 --- a/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DevelopmentTypeOuterClass.java @@ -72,7 +72,12 @@ public final class DevelopmentTypeOuterClass { /** * DEVELOPMENT_ROGUE_TOURN_WEEK = 12; */ - DEVELOPMENT_ROGUE_TOURN_WEEK("DEVELOPMENT_ROGUE_TOURN_WEEK", 12); + DEVELOPMENT_ROGUE_TOURN_WEEK("DEVELOPMENT_ROGUE_TOURN_WEEK", 12), + + /** + * DEVELOPMENT_ROGUE_MAGIC = 13; + */ + DEVELOPMENT_ROGUE_MAGIC("DEVELOPMENT_ROGUE_MAGIC", 13); /** * DEVELOPMENT_NONE = 0; @@ -139,6 +144,11 @@ public final class DevelopmentTypeOuterClass { */ public static final int DEVELOPMENT_ROGUE_TOURN_WEEK_VALUE = 12; + /** + * DEVELOPMENT_ROGUE_MAGIC = 13; + */ + public static final int DEVELOPMENT_ROGUE_MAGIC_VALUE = 13; + private final String name; private final int number; @@ -192,7 +202,7 @@ public final class DevelopmentTypeOuterClass { enum DevelopmentTypeConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final DevelopmentType[] lookup = new DevelopmentType[13]; + private static final DevelopmentType[] lookup = new DevelopmentType[14]; static { lookup[0] = DEVELOPMENT_NONE; @@ -208,6 +218,7 @@ public final class DevelopmentTypeOuterClass { lookup[10] = DEVELOPMENT_BOSS_CHALLENGE; lookup[11] = DEVELOPMENT_ROGUE_TOURN; lookup[12] = DEVELOPMENT_ROGUE_TOURN_WEEK; + lookup[13] = DEVELOPMENT_ROGUE_MAGIC; } @Override @@ -234,6 +245,9 @@ public final class DevelopmentTypeOuterClass { if (ProtoUtil.isEqual("DEVELOPMENT_ROGUE_TOURN", value)) { return DEVELOPMENT_ROGUE_TOURN; } + if (ProtoUtil.isEqual("DEVELOPMENT_ROGUE_MAGIC", value)) { + return DEVELOPMENT_ROGUE_MAGIC; + } break; } case 24: { diff --git a/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java index 7343acf..d7e7bf8 100644 --- a/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java @@ -25,7 +25,7 @@ public final class DiscardRelicCsReqOuterClass { private boolean isDiscard; /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; */ private final RepeatedInt relicIdList = RepeatedInt.newEmptyInstance(); @@ -77,7 +77,7 @@ public final class DiscardRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; * @return whether the relicIdList field is set */ public boolean hasRelicIdList() { @@ -85,7 +85,7 @@ public final class DiscardRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; * @return this */ public DiscardRelicCsReq clearRelicIdList() { @@ -95,7 +95,7 @@ public final class DiscardRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class DiscardRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class DiscardRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; * @param value the relicIdList to add * @return this */ @@ -134,7 +134,7 @@ public final class DiscardRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 3; + * repeated uint32 relic_id_list = 7; * @param values the relicIdList to add * @return this */ @@ -215,7 +215,7 @@ public final class DiscardRelicCsReqOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < relicIdList.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(relicIdList.array()[i]); } } @@ -245,11 +245,11 @@ public final class DiscardRelicCsReqOuterClass { isDiscard = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 58) { break; } } - case 26: { + case 58: { // relicIdList [packed=true] input.readPackedUInt32(relicIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class DiscardRelicCsReqOuterClass { tag = input.readTag(); break; } - case 24: { + case 56: { // relicIdList [packed=false] tag = input.readRepeatedUInt32(relicIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DispatchTokenOuterClass.java b/src/generated/main/emu/lunarcore/proto/DispatchTokenOuterClass.java new file mode 100644 index 0000000..376fa4a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/DispatchTokenOuterClass.java @@ -0,0 +1,1054 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.Utf8String; + +public final class DispatchTokenOuterClass { + /** + * Protobuf type {@code DispatchToken} + */ + public static final class DispatchToken extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 time = 4; + */ + private int time; + + /** + * optional uint32 unk_uint_1 = 5; + */ + private int unkUint1; + + /** + * optional uint32 account_id = 6; + */ + private int accountId; + + /** + * optional bool unk_bool_1 = 1; + */ + private boolean unkBool1; + + /** + * optional bool unk_bool_2 = 7; + */ + private boolean unkBool2; + + /** + * optional string unk_string_1 = 2; + */ + private final Utf8String unkString1 = Utf8String.newEmptyInstance(); + + /** + * optional string unk_string_2 = 3; + */ + private final Utf8String unkString2 = Utf8String.newEmptyInstance(); + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + */ + private final Utf8String region = Utf8String.newEmptyInstance(); + + /** + * optional string country_code = 13; + */ + private final Utf8String countryCode = Utf8String.newEmptyInstance(); + + private DispatchToken() { + } + + /** + * @return a new empty instance of {@code DispatchToken} + */ + public static DispatchToken newInstance() { + return new DispatchToken(); + } + + /** + * optional uint32 time = 4; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 time = 4; + * @return this + */ + public DispatchToken clearTime() { + bitField0_ &= ~0x00000001; + time = 0; + return this; + } + + /** + * optional uint32 time = 4; + * @return the time + */ + public int getTime() { + return time; + } + + /** + * optional uint32 time = 4; + * @param value the time to set + * @return this + */ + public DispatchToken setTime(final int value) { + bitField0_ |= 0x00000001; + time = value; + return this; + } + + /** + * optional uint32 unk_uint_1 = 5; + * @return whether the unkUint1 field is set + */ + public boolean hasUnkUint1() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 unk_uint_1 = 5; + * @return this + */ + public DispatchToken clearUnkUint1() { + bitField0_ &= ~0x00000002; + unkUint1 = 0; + return this; + } + + /** + * optional uint32 unk_uint_1 = 5; + * @return the unkUint1 + */ + public int getUnkUint1() { + return unkUint1; + } + + /** + * optional uint32 unk_uint_1 = 5; + * @param value the unkUint1 to set + * @return this + */ + public DispatchToken setUnkUint1(final int value) { + bitField0_ |= 0x00000002; + unkUint1 = value; + return this; + } + + /** + * optional uint32 account_id = 6; + * @return whether the accountId field is set + */ + public boolean hasAccountId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 account_id = 6; + * @return this + */ + public DispatchToken clearAccountId() { + bitField0_ &= ~0x00000004; + accountId = 0; + return this; + } + + /** + * optional uint32 account_id = 6; + * @return the accountId + */ + public int getAccountId() { + return accountId; + } + + /** + * optional uint32 account_id = 6; + * @param value the accountId to set + * @return this + */ + public DispatchToken setAccountId(final int value) { + bitField0_ |= 0x00000004; + accountId = value; + return this; + } + + /** + * optional bool unk_bool_1 = 1; + * @return whether the unkBool1 field is set + */ + public boolean hasUnkBool1() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool unk_bool_1 = 1; + * @return this + */ + public DispatchToken clearUnkBool1() { + bitField0_ &= ~0x00000008; + unkBool1 = false; + return this; + } + + /** + * optional bool unk_bool_1 = 1; + * @return the unkBool1 + */ + public boolean getUnkBool1() { + return unkBool1; + } + + /** + * optional bool unk_bool_1 = 1; + * @param value the unkBool1 to set + * @return this + */ + public DispatchToken setUnkBool1(final boolean value) { + bitField0_ |= 0x00000008; + unkBool1 = value; + return this; + } + + /** + * optional bool unk_bool_2 = 7; + * @return whether the unkBool2 field is set + */ + public boolean hasUnkBool2() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bool unk_bool_2 = 7; + * @return this + */ + public DispatchToken clearUnkBool2() { + bitField0_ &= ~0x00000010; + unkBool2 = false; + return this; + } + + /** + * optional bool unk_bool_2 = 7; + * @return the unkBool2 + */ + public boolean getUnkBool2() { + return unkBool2; + } + + /** + * optional bool unk_bool_2 = 7; + * @param value the unkBool2 to set + * @return this + */ + public DispatchToken setUnkBool2(final boolean value) { + bitField0_ |= 0x00000010; + unkBool2 = value; + return this; + } + + /** + * optional string unk_string_1 = 2; + * @return whether the unkString1 field is set + */ + public boolean hasUnkString1() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional string unk_string_1 = 2; + * @return this + */ + public DispatchToken clearUnkString1() { + bitField0_ &= ~0x00000020; + unkString1.clear(); + return this; + } + + /** + * optional string unk_string_1 = 2; + * @return the unkString1 + */ + public String getUnkString1() { + return unkString1.getString(); + } + + /** + * optional string unk_string_1 = 2; + * @return internal {@code Utf8String} representation of unkString1 for reading + */ + public Utf8String getUnkString1Bytes() { + return this.unkString1; + } + + /** + * optional string unk_string_1 = 2; + * @return internal {@code Utf8String} representation of unkString1 for modifications + */ + public Utf8String getMutableUnkString1Bytes() { + bitField0_ |= 0x00000020; + return this.unkString1; + } + + /** + * optional string unk_string_1 = 2; + * @param value the unkString1 to set + * @return this + */ + public DispatchToken setUnkString1(final CharSequence value) { + bitField0_ |= 0x00000020; + unkString1.copyFrom(value); + return this; + } + + /** + * optional string unk_string_1 = 2; + * @param value the unkString1 to set + * @return this + */ + public DispatchToken setUnkString1(final Utf8String value) { + bitField0_ |= 0x00000020; + unkString1.copyFrom(value); + return this; + } + + /** + * optional string unk_string_2 = 3; + * @return whether the unkString2 field is set + */ + public boolean hasUnkString2() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string unk_string_2 = 3; + * @return this + */ + public DispatchToken clearUnkString2() { + bitField0_ &= ~0x00000040; + unkString2.clear(); + return this; + } + + /** + * optional string unk_string_2 = 3; + * @return the unkString2 + */ + public String getUnkString2() { + return unkString2.getString(); + } + + /** + * optional string unk_string_2 = 3; + * @return internal {@code Utf8String} representation of unkString2 for reading + */ + public Utf8String getUnkString2Bytes() { + return this.unkString2; + } + + /** + * optional string unk_string_2 = 3; + * @return internal {@code Utf8String} representation of unkString2 for modifications + */ + public Utf8String getMutableUnkString2Bytes() { + bitField0_ |= 0x00000040; + return this.unkString2; + } + + /** + * optional string unk_string_2 = 3; + * @param value the unkString2 to set + * @return this + */ + public DispatchToken setUnkString2(final CharSequence value) { + bitField0_ |= 0x00000040; + unkString2.copyFrom(value); + return this; + } + + /** + * optional string unk_string_2 = 3; + * @param value the unkString2 to set + * @return this + */ + public DispatchToken setUnkString2(final Utf8String value) { + bitField0_ |= 0x00000040; + unkString2.copyFrom(value); + return this; + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @return whether the region field is set + */ + public boolean hasRegion() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @return this + */ + public DispatchToken clearRegion() { + bitField0_ &= ~0x00000080; + region.clear(); + return this; + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @return the region + */ + public String getRegion() { + return region.getString(); + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @return internal {@code Utf8String} representation of region for reading + */ + public Utf8String getRegionBytes() { + return this.region; + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @return internal {@code Utf8String} representation of region for modifications + */ + public Utf8String getMutableRegionBytes() { + bitField0_ |= 0x00000080; + return this.region; + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @param value the region to set + * @return this + */ + public DispatchToken setRegion(final CharSequence value) { + bitField0_ |= 0x00000080; + region.copyFrom(value); + return this; + } + + /** + *
+     *  ?
+     * 
+ * + * optional string region = 8; + * @param value the region to set + * @return this + */ + public DispatchToken setRegion(final Utf8String value) { + bitField0_ |= 0x00000080; + region.copyFrom(value); + return this; + } + + /** + * optional string country_code = 13; + * @return whether the countryCode field is set + */ + public boolean hasCountryCode() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional string country_code = 13; + * @return this + */ + public DispatchToken clearCountryCode() { + bitField0_ &= ~0x00000100; + countryCode.clear(); + return this; + } + + /** + * optional string country_code = 13; + * @return the countryCode + */ + public String getCountryCode() { + return countryCode.getString(); + } + + /** + * optional string country_code = 13; + * @return internal {@code Utf8String} representation of countryCode for reading + */ + public Utf8String getCountryCodeBytes() { + return this.countryCode; + } + + /** + * optional string country_code = 13; + * @return internal {@code Utf8String} representation of countryCode for modifications + */ + public Utf8String getMutableCountryCodeBytes() { + bitField0_ |= 0x00000100; + return this.countryCode; + } + + /** + * optional string country_code = 13; + * @param value the countryCode to set + * @return this + */ + public DispatchToken setCountryCode(final CharSequence value) { + bitField0_ |= 0x00000100; + countryCode.copyFrom(value); + return this; + } + + /** + * optional string country_code = 13; + * @param value the countryCode to set + * @return this + */ + public DispatchToken setCountryCode(final Utf8String value) { + bitField0_ |= 0x00000100; + countryCode.copyFrom(value); + return this; + } + + @Override + public DispatchToken copyFrom(final DispatchToken other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + time = other.time; + unkUint1 = other.unkUint1; + accountId = other.accountId; + unkBool1 = other.unkBool1; + unkBool2 = other.unkBool2; + unkString1.copyFrom(other.unkString1); + unkString2.copyFrom(other.unkString2); + region.copyFrom(other.region); + countryCode.copyFrom(other.countryCode); + } + return this; + } + + @Override + public DispatchToken mergeFrom(final DispatchToken other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasUnkUint1()) { + setUnkUint1(other.unkUint1); + } + if (other.hasAccountId()) { + setAccountId(other.accountId); + } + if (other.hasUnkBool1()) { + setUnkBool1(other.unkBool1); + } + if (other.hasUnkBool2()) { + setUnkBool2(other.unkBool2); + } + if (other.hasUnkString1()) { + getMutableUnkString1Bytes().copyFrom(other.unkString1); + } + if (other.hasUnkString2()) { + getMutableUnkString2Bytes().copyFrom(other.unkString2); + } + if (other.hasRegion()) { + getMutableRegionBytes().copyFrom(other.region); + } + if (other.hasCountryCode()) { + getMutableCountryCodeBytes().copyFrom(other.countryCode); + } + return this; + } + + @Override + public DispatchToken clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + time = 0; + unkUint1 = 0; + accountId = 0; + unkBool1 = false; + unkBool2 = false; + unkString1.clear(); + unkString2.clear(); + region.clear(); + countryCode.clear(); + return this; + } + + @Override + public DispatchToken clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkString1.clear(); + unkString2.clear(); + region.clear(); + countryCode.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof DispatchToken)) { + return false; + } + DispatchToken other = (DispatchToken) o; + return bitField0_ == other.bitField0_ + && (!hasTime() || time == other.time) + && (!hasUnkUint1() || unkUint1 == other.unkUint1) + && (!hasAccountId() || accountId == other.accountId) + && (!hasUnkBool1() || unkBool1 == other.unkBool1) + && (!hasUnkBool2() || unkBool2 == other.unkBool2) + && (!hasUnkString1() || unkString1.equals(other.unkString1)) + && (!hasUnkString2() || unkString2.equals(other.unkString2)) + && (!hasRegion() || region.equals(other.region)) + && (!hasCountryCode() || countryCode.equals(other.countryCode)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(time); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(unkUint1); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(accountId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(unkBool1); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(unkBool2); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(unkString1); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(unkString2); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 66); + output.writeStringNoTag(region); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 106); + output.writeStringNoTag(countryCode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(time); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(unkUint1); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(accountId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000010) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(unkString1); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(unkString2); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(region); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(countryCode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public DispatchToken mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // time + time = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // unkUint1 + unkUint1 = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // accountId + accountId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // unkBool1 + unkBool1 = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // unkBool2 + unkBool2 = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // unkString1 + input.readString(unkString1); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // unkString2 + input.readString(unkString2); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // region + input.readString(region); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // countryCode + input.readString(countryCode); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.time, time); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.unkUint1, unkUint1); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.accountId, accountId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.unkBool1, unkBool1); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBool(FieldNames.unkBool2, unkBool2); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeString(FieldNames.unkString1, unkString1); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.unkString2, unkString2); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.region, region); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeString(FieldNames.countryCode, countryCode); + } + output.endObject(); + } + + @Override + public DispatchToken mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3560141: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -263408059: + case 891848825: { + if (input.isAtField(FieldNames.unkUint1)) { + if (!input.trySkipNullValue()) { + unkUint1 = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1827029976: + case -803333011: { + if (input.isAtField(FieldNames.accountId)) { + if (!input.trySkipNullValue()) { + accountId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -280775499: + case 353458185: { + if (input.isAtField(FieldNames.unkBool1)) { + if (!input.trySkipNullValue()) { + unkBool1 = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -280775498: + case 353458186: { + if (input.isAtField(FieldNames.unkBool2)) { + if (!input.trySkipNullValue()) { + unkBool2 = input.readBool(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1188732690: + case 160073776: { + if (input.isAtField(FieldNames.unkString1)) { + if (!input.trySkipNullValue()) { + input.readString(unkString1); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1188732689: + case 160073777: { + if (input.isAtField(FieldNames.unkString2)) { + if (!input.trySkipNullValue()) { + input.readString(unkString2); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -934795532: { + if (input.isAtField(FieldNames.region)) { + if (!input.trySkipNullValue()) { + input.readString(region); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1477067101: + case 1481071862: { + if (input.isAtField(FieldNames.countryCode)) { + if (!input.trySkipNullValue()) { + input.readString(countryCode); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public DispatchToken clone() { + return new DispatchToken().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static DispatchToken parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new DispatchToken(), data).checkInitialized(); + } + + public static DispatchToken parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DispatchToken(), input).checkInitialized(); + } + + public static DispatchToken parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DispatchToken(), input).checkInitialized(); + } + + /** + * @return factory for creating DispatchToken messages + */ + public static MessageFactory getFactory() { + return DispatchTokenFactory.INSTANCE; + } + + private enum DispatchTokenFactory implements MessageFactory { + INSTANCE; + + @Override + public DispatchToken create() { + return DispatchToken.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName time = FieldName.forField("time"); + + static final FieldName unkUint1 = FieldName.forField("unkUint1", "unk_uint_1"); + + static final FieldName accountId = FieldName.forField("accountId", "account_id"); + + static final FieldName unkBool1 = FieldName.forField("unkBool1", "unk_bool_1"); + + static final FieldName unkBool2 = FieldName.forField("unkBool2", "unk_bool_2"); + + static final FieldName unkString1 = FieldName.forField("unkString1", "unk_string_1"); + + static final FieldName unkString2 = FieldName.forField("unkString2", "unk_string_2"); + + static final FieldName region = FieldName.forField("region"); + + static final FieldName countryCode = FieldName.forField("countryCode", "country_code"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarDetailInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarDetailInfoOuterClass.java index 8e91d5c..d5deb79 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayAvatarDetailInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarDetailInfoOuterClass.java @@ -10,7 +10,6 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; import us.hebi.quickbuf.RepeatedMessage; public final class DisplayAvatarDetailInfoOuterClass { @@ -21,9 +20,14 @@ public final class DisplayAvatarDetailInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 1; + * optional uint32 dressed_skin_id = 1; */ - private int avatarId; + private int dressedSkinId; + + /** + * optional uint32 rank = 2; + */ + private int rank; /** * optional uint32 pos = 5; @@ -31,46 +35,32 @@ public final class DisplayAvatarDetailInfoOuterClass { private int pos; /** - * optional uint32 promotion = 6; - */ - private int promotion; - - /** - * optional uint32 level = 8; + * optional uint32 level = 7; */ private int level; /** - * optional uint32 rank = 10; - */ - private int rank; - - /** - * optional uint32 exp = 12; + * optional uint32 exp = 8; */ private int exp; /** - * optional uint32 dressed_skin_id = 14; + * optional uint32 avatar_id = 14; */ - private int dressedSkinId; + private int avatarId; /** - * optional .DisplayEquipmentInfo equipment = 15; + * optional uint32 promotion = 15; + */ + private int promotion; + + /** + * optional .DisplayEquipmentInfo equipment = 12; */ private final DisplayEquipmentInfoOuterClass.DisplayEquipmentInfo equipment = DisplayEquipmentInfoOuterClass.DisplayEquipmentInfo.newInstance(); /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - */ - private final RepeatedInt allPathUnlockedSpecialPointIdList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .AvatarSkillTree skilltree_list = 7; + * repeated .AvatarSkillTree skilltree_list = 11; */ private final RepeatedMessage skilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); @@ -79,15 +69,6 @@ public final class DisplayAvatarDetailInfoOuterClass { */ private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(DisplayRelicInfoOuterClass.DisplayRelicInfo.getFactory()); - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - */ - private final RepeatedMessage allPathSpecialSkilltreeList = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); - private DisplayAvatarDetailInfo() { } @@ -99,39 +80,76 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional uint32 avatar_id = 1; - * @return whether the avatarId field is set + * optional uint32 dressed_skin_id = 1; + * @return whether the dressedSkinId field is set */ - public boolean hasAvatarId() { + public boolean hasDressedSkinId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 1; + * optional uint32 dressed_skin_id = 1; * @return this */ - public DisplayAvatarDetailInfo clearAvatarId() { + public DisplayAvatarDetailInfo clearDressedSkinId() { bitField0_ &= ~0x00000001; - avatarId = 0; + dressedSkinId = 0; return this; } /** - * optional uint32 avatar_id = 1; - * @return the avatarId + * optional uint32 dressed_skin_id = 1; + * @return the dressedSkinId */ - public int getAvatarId() { - return avatarId; + public int getDressedSkinId() { + return dressedSkinId; } /** - * optional uint32 avatar_id = 1; - * @param value the avatarId to set + * optional uint32 dressed_skin_id = 1; + * @param value the dressedSkinId to set * @return this */ - public DisplayAvatarDetailInfo setAvatarId(final int value) { + public DisplayAvatarDetailInfo setDressedSkinId(final int value) { bitField0_ |= 0x00000001; - avatarId = value; + dressedSkinId = value; + return this; + } + + /** + * optional uint32 rank = 2; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 rank = 2; + * @return this + */ + public DisplayAvatarDetailInfo clearRank() { + bitField0_ &= ~0x00000002; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 2; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 2; + * @param value the rank to set + * @return this + */ + public DisplayAvatarDetailInfo setRank(final int value) { + bitField0_ |= 0x00000002; + rank = value; return this; } @@ -140,7 +158,7 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return whether the pos field is set */ public boolean hasPos() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -148,7 +166,7 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return this */ public DisplayAvatarDetailInfo clearPos() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; pos = 0; return this; } @@ -167,50 +185,13 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return this */ public DisplayAvatarDetailInfo setPos(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; pos = value; return this; } /** - * optional uint32 promotion = 6; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 promotion = 6; - * @return this - */ - public DisplayAvatarDetailInfo clearPromotion() { - bitField0_ &= ~0x00000004; - promotion = 0; - return this; - } - - /** - * optional uint32 promotion = 6; - * @return the promotion - */ - public int getPromotion() { - return promotion; - } - - /** - * optional uint32 promotion = 6; - * @param value the promotion to set - * @return this - */ - public DisplayAvatarDetailInfo setPromotion(final int value) { - bitField0_ |= 0x00000004; - promotion = value; - return this; - } - - /** - * optional uint32 level = 8; + * optional uint32 level = 7; * @return whether the level field is set */ public boolean hasLevel() { @@ -218,7 +199,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 7; * @return this */ public DisplayAvatarDetailInfo clearLevel() { @@ -228,7 +209,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 7; * @return the level */ public int getLevel() { @@ -236,7 +217,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional uint32 level = 8; + * optional uint32 level = 7; * @param value the level to set * @return this */ @@ -247,62 +228,25 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional uint32 rank = 10; - * @return whether the rank field is set + * optional uint32 exp = 8; + * @return whether the exp field is set */ - public boolean hasRank() { + public boolean hasExp() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 rank = 10; - * @return this - */ - public DisplayAvatarDetailInfo clearRank() { - bitField0_ &= ~0x00000010; - rank = 0; - return this; - } - - /** - * optional uint32 rank = 10; - * @return the rank - */ - public int getRank() { - return rank; - } - - /** - * optional uint32 rank = 10; - * @param value the rank to set - * @return this - */ - public DisplayAvatarDetailInfo setRank(final int value) { - bitField0_ |= 0x00000010; - rank = value; - return this; - } - - /** - * optional uint32 exp = 12; - * @return whether the exp field is set - */ - public boolean hasExp() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 exp = 12; + * optional uint32 exp = 8; * @return this */ public DisplayAvatarDetailInfo clearExp() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; exp = 0; return this; } /** - * optional uint32 exp = 12; + * optional uint32 exp = 8; * @return the exp */ public int getExp() { @@ -310,55 +254,92 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional uint32 exp = 12; + * optional uint32 exp = 8; * @param value the exp to set * @return this */ public DisplayAvatarDetailInfo setExp(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; exp = value; return this; } /** - * optional uint32 dressed_skin_id = 14; - * @return whether the dressedSkinId field is set + * optional uint32 avatar_id = 14; + * @return whether the avatarId field is set */ - public boolean hasDressedSkinId() { + public boolean hasAvatarId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 avatar_id = 14; + * @return this + */ + public DisplayAvatarDetailInfo clearAvatarId() { + bitField0_ &= ~0x00000020; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 14; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 14; + * @param value the avatarId to set + * @return this + */ + public DisplayAvatarDetailInfo setAvatarId(final int value) { + bitField0_ |= 0x00000020; + avatarId = value; + return this; + } + + /** + * optional uint32 promotion = 15; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 dressed_skin_id = 14; + * optional uint32 promotion = 15; * @return this */ - public DisplayAvatarDetailInfo clearDressedSkinId() { + public DisplayAvatarDetailInfo clearPromotion() { bitField0_ &= ~0x00000040; - dressedSkinId = 0; + promotion = 0; return this; } /** - * optional uint32 dressed_skin_id = 14; - * @return the dressedSkinId + * optional uint32 promotion = 15; + * @return the promotion */ - public int getDressedSkinId() { - return dressedSkinId; + public int getPromotion() { + return promotion; } /** - * optional uint32 dressed_skin_id = 14; - * @param value the dressedSkinId to set + * optional uint32 promotion = 15; + * @param value the promotion to set * @return this */ - public DisplayAvatarDetailInfo setDressedSkinId(final int value) { + public DisplayAvatarDetailInfo setPromotion(final int value) { bitField0_ |= 0x00000040; - dressedSkinId = value; + promotion = value; return this; } /** - * optional .DisplayEquipmentInfo equipment = 15; + * optional .DisplayEquipmentInfo equipment = 12; * @return whether the equipment field is set */ public boolean hasEquipment() { @@ -366,7 +347,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional .DisplayEquipmentInfo equipment = 15; + * optional .DisplayEquipmentInfo equipment = 12; * @return this */ public DisplayAvatarDetailInfo clearEquipment() { @@ -376,7 +357,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional .DisplayEquipmentInfo equipment = 15; + * optional .DisplayEquipmentInfo equipment = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -390,7 +371,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional .DisplayEquipmentInfo equipment = 15; + * optional .DisplayEquipmentInfo equipment = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -404,7 +385,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * optional .DisplayEquipmentInfo equipment = 15; + * optional .DisplayEquipmentInfo equipment = 12; * @param value the equipment to set * @return this */ @@ -416,117 +397,25 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - * @return whether the allPathUnlockedSpecialPointIdList field is set + * repeated .AvatarSkillTree skilltree_list = 11; + * @return whether the skilltreeList field is set */ - public boolean hasAllPathUnlockedSpecialPointIdList() { + public boolean hasSkilltreeList() { return (bitField0_ & 0x00000100) != 0; } /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - * @return this - */ - public DisplayAvatarDetailInfo clearAllPathUnlockedSpecialPointIdList() { - bitField0_ &= ~0x00000100; - allPathUnlockedSpecialPointIdList.clear(); - return this; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAllPathUnlockedSpecialPointIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getAllPathUnlockedSpecialPointIdList() { - return allPathUnlockedSpecialPointIdList; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableAllPathUnlockedSpecialPointIdList() { - bitField0_ |= 0x00000100; - return allPathUnlockedSpecialPointIdList; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - * @param value the allPathUnlockedSpecialPointIdList to add - * @return this - */ - public DisplayAvatarDetailInfo addAllPathUnlockedSpecialPointIdList(final int value) { - bitField0_ |= 0x00000100; - allPathUnlockedSpecialPointIdList.add(value); - return this; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated uint32 all_path_unlocked_special_point_id_list = 999; - * @param values the allPathUnlockedSpecialPointIdList to add - * @return this - */ - public DisplayAvatarDetailInfo addAllAllPathUnlockedSpecialPointIdList(final int... values) { - bitField0_ |= 0x00000100; - allPathUnlockedSpecialPointIdList.addAll(values); - return this; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 7; - * @return whether the skilltreeList field is set - */ - public boolean hasSkilltreeList() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * repeated .AvatarSkillTree skilltree_list = 7; + * repeated .AvatarSkillTree skilltree_list = 11; * @return this */ public DisplayAvatarDetailInfo clearSkilltreeList() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000100; skilltreeList.clear(); return this; } /** - * repeated .AvatarSkillTree skilltree_list = 7; + * repeated .AvatarSkillTree skilltree_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -540,7 +429,7 @@ public final class DisplayAvatarDetailInfoOuterClass { } /** - * repeated .AvatarSkillTree skilltree_list = 7; + * repeated .AvatarSkillTree skilltree_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -549,30 +438,30 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableSkilltreeList() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; return skilltreeList; } /** - * repeated .AvatarSkillTree skilltree_list = 7; + * repeated .AvatarSkillTree skilltree_list = 11; * @param value the skilltreeList to add * @return this */ public DisplayAvatarDetailInfo addSkilltreeList( final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; skilltreeList.add(value); return this; } /** - * repeated .AvatarSkillTree skilltree_list = 7; + * repeated .AvatarSkillTree skilltree_list = 11; * @param values the skilltreeList to add * @return this */ public DisplayAvatarDetailInfo addAllSkilltreeList( final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; skilltreeList.addAll(values); return this; } @@ -582,7 +471,7 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return whether the relicList field is set */ public boolean hasRelicList() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00000200) != 0; } /** @@ -590,7 +479,7 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return this */ public DisplayAvatarDetailInfo clearRelicList() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00000200; relicList.clear(); return this; } @@ -619,7 +508,7 @@ public final class DisplayAvatarDetailInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRelicList() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; return relicList; } @@ -630,7 +519,7 @@ public final class DisplayAvatarDetailInfoOuterClass { */ public DisplayAvatarDetailInfo addRelicList( final DisplayRelicInfoOuterClass.DisplayRelicInfo value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; relicList.add(value); return this; } @@ -642,124 +531,26 @@ public final class DisplayAvatarDetailInfoOuterClass { */ public DisplayAvatarDetailInfo addAllRelicList( final DisplayRelicInfoOuterClass.DisplayRelicInfo... values) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000200; relicList.addAll(values); return this; } - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - * @return whether the allPathSpecialSkilltreeList field is set - */ - public boolean hasAllPathSpecialSkilltreeList() { - return (bitField0_ & 0x00000800) != 0; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - * @return this - */ - public DisplayAvatarDetailInfo clearAllPathSpecialSkilltreeList() { - bitField0_ &= ~0x00000800; - allPathSpecialSkilltreeList.clear(); - return this; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAllPathSpecialSkilltreeList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getAllPathSpecialSkilltreeList( - ) { - return allPathSpecialSkilltreeList; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableAllPathSpecialSkilltreeList( - ) { - bitField0_ |= 0x00000800; - return allPathSpecialSkilltreeList; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - * @param value the allPathSpecialSkilltreeList to add - * @return this - */ - public DisplayAvatarDetailInfo addAllPathSpecialSkilltreeList( - final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000800; - allPathSpecialSkilltreeList.add(value); - return this; - } - - /** - *
-     *  doesnt exist anymore???
-     * 
- * - * repeated .AvatarSkillTree all_path_special_skilltree_list = 9999; - * @param values the allPathSpecialSkilltreeList to add - * @return this - */ - public DisplayAvatarDetailInfo addAllAllPathSpecialSkilltreeList( - final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000800; - allPathSpecialSkilltreeList.addAll(values); - return this; - } - @Override public DisplayAvatarDetailInfo copyFrom(final DisplayAvatarDetailInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; - pos = other.pos; - promotion = other.promotion; - level = other.level; - rank = other.rank; - exp = other.exp; dressedSkinId = other.dressedSkinId; + rank = other.rank; + pos = other.pos; + level = other.level; + exp = other.exp; + avatarId = other.avatarId; + promotion = other.promotion; equipment.copyFrom(other.equipment); - allPathUnlockedSpecialPointIdList.copyFrom(other.allPathUnlockedSpecialPointIdList); skilltreeList.copyFrom(other.skilltreeList); relicList.copyFrom(other.relicList); - allPathSpecialSkilltreeList.copyFrom(other.allPathSpecialSkilltreeList); } return this; } @@ -770,42 +561,36 @@ public final class DisplayAvatarDetailInfoOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } - if (other.hasPos()) { - setPos(other.pos); - } - if (other.hasPromotion()) { - setPromotion(other.promotion); - } - if (other.hasLevel()) { - setLevel(other.level); + if (other.hasDressedSkinId()) { + setDressedSkinId(other.dressedSkinId); } if (other.hasRank()) { setRank(other.rank); } + if (other.hasPos()) { + setPos(other.pos); + } + if (other.hasLevel()) { + setLevel(other.level); + } if (other.hasExp()) { setExp(other.exp); } - if (other.hasDressedSkinId()) { - setDressedSkinId(other.dressedSkinId); + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); } if (other.hasEquipment()) { getMutableEquipment().mergeFrom(other.equipment); } - if (other.hasAllPathUnlockedSpecialPointIdList()) { - getMutableAllPathUnlockedSpecialPointIdList().addAll(other.allPathUnlockedSpecialPointIdList); - } if (other.hasSkilltreeList()) { getMutableSkilltreeList().addAll(other.skilltreeList); } if (other.hasRelicList()) { getMutableRelicList().addAll(other.relicList); } - if (other.hasAllPathSpecialSkilltreeList()) { - getMutableAllPathSpecialSkilltreeList().addAll(other.allPathSpecialSkilltreeList); - } return this; } @@ -816,18 +601,16 @@ public final class DisplayAvatarDetailInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; - pos = 0; - promotion = 0; - level = 0; - rank = 0; - exp = 0; dressedSkinId = 0; + rank = 0; + pos = 0; + level = 0; + exp = 0; + avatarId = 0; + promotion = 0; equipment.clear(); - allPathUnlockedSpecialPointIdList.clear(); skilltreeList.clear(); relicList.clear(); - allPathSpecialSkilltreeList.clear(); return this; } @@ -839,10 +622,8 @@ public final class DisplayAvatarDetailInfoOuterClass { cachedSize = -1; bitField0_ = 0; equipment.clearQuick(); - allPathUnlockedSpecialPointIdList.clear(); skilltreeList.clearQuick(); relicList.clearQuick(); - allPathSpecialSkilltreeList.clearQuick(); return this; } @@ -856,120 +637,99 @@ public final class DisplayAvatarDetailInfoOuterClass { } DisplayAvatarDetailInfo other = (DisplayAvatarDetailInfo) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) - && (!hasPos() || pos == other.pos) - && (!hasPromotion() || promotion == other.promotion) - && (!hasLevel() || level == other.level) - && (!hasRank() || rank == other.rank) - && (!hasExp() || exp == other.exp) && (!hasDressedSkinId() || dressedSkinId == other.dressedSkinId) + && (!hasRank() || rank == other.rank) + && (!hasPos() || pos == other.pos) + && (!hasLevel() || level == other.level) + && (!hasExp() || exp == other.exp) + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasPromotion() || promotion == other.promotion) && (!hasEquipment() || equipment.equals(other.equipment)) - && (!hasAllPathUnlockedSpecialPointIdList() || allPathUnlockedSpecialPointIdList.equals(other.allPathUnlockedSpecialPointIdList)) && (!hasSkilltreeList() || skilltreeList.equals(other.skilltreeList)) - && (!hasRelicList() || relicList.equals(other.relicList)) - && (!hasAllPathSpecialSkilltreeList() || allPathSpecialSkilltreeList.equals(other.allPathSpecialSkilltreeList)); + && (!hasRelicList() || relicList.equals(other.relicList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(avatarId); + output.writeUInt32NoTag(dressedSkinId); } if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(rank); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(pos); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(promotion); - } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(rank); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(exp); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(dressedSkinId); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 98); output.writeMessageNoTag(equipment); } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < allPathUnlockedSpecialPointIdList.length(); i++) { - output.writeRawLittleEndian16((short) 16056); - output.writeUInt32NoTag(allPathUnlockedSpecialPointIdList.array()[i]); - } - } - if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < skilltreeList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 90); output.writeMessageNoTag(skilltreeList.get(i)); } } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < relicList.length(); i++) { output.writeRawByte((byte) 106); output.writeMessageNoTag(relicList.get(i)); } } - if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < allPathSpecialSkilltreeList.length(); i++) { - output.writeRawLittleEndian16((short) 61690); - output.writeRawByte((byte) 4); - output.writeMessageNoTag(allPathSpecialSkilltreeList.get(i)); - } - } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); - } - if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dressedSkinId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(equipment); } if ((bitField0_ & 0x00000100) != 0) { - size += (2 * allPathUnlockedSpecialPointIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(allPathUnlockedSpecialPointIdList); - } - if ((bitField0_ & 0x00000200) != 0) { size += (1 * skilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(skilltreeList); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000200) != 0) { size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } - if ((bitField0_ & 0x00000800) != 0) { - size += (3 * allPathSpecialSkilltreeList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(allPathSpecialSkilltreeList); - } return size; } @@ -981,10 +741,19 @@ public final class DisplayAvatarDetailInfoOuterClass { while (true) { switch (tag) { case 8: { - // avatarId - avatarId = input.readUInt32(); + // dressedSkinId + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 40) { break; } @@ -992,79 +761,61 @@ public final class DisplayAvatarDetailInfoOuterClass { case 40: { // pos pos = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 48) { + if (tag != 56) { break; } } - case 48: { - // promotion - promotion = input.readUInt32(); - bitField0_ |= 0x00000004; + case 56: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // rank - rank = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { // exp exp = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // dressedSkinId - dressedSkinId = input.readUInt32(); - bitField0_ |= 0x00000040; + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 122) { + if (tag != 120) { break; } } - case 122: { + case 120: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { // equipment input.readMessage(equipment); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 7994) { + if (tag != 90) { break; } } - case 7994: { - // allPathUnlockedSpecialPointIdList [packed=true] - input.readPackedUInt32(allPathUnlockedSpecialPointIdList, tag); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { + case 90: { // skilltreeList tag = input.readRepeatedMessage(skilltreeList, tag); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; if (tag != 106) { break; } @@ -1072,15 +823,7 @@ public final class DisplayAvatarDetailInfoOuterClass { case 106: { // relicList tag = input.readRepeatedMessage(relicList, tag); - bitField0_ |= 0x00000400; - if (tag != 79994) { - break; - } - } - case 79994: { - // allPathSpecialSkilltreeList - tag = input.readRepeatedMessage(allPathSpecialSkilltreeList, tag); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; if (tag != 0) { break; } @@ -1095,12 +838,6 @@ public final class DisplayAvatarDetailInfoOuterClass { tag = input.readTag(); break; } - case 7992: { - // allPathUnlockedSpecialPointIdList [packed=false] - tag = input.readRepeatedUInt32(allPathUnlockedSpecialPointIdList, tag); - bitField0_ |= 0x00000100; - break; - } } } } @@ -1109,41 +846,35 @@ public final class DisplayAvatarDetailInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.pos, pos); + output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.pos, pos); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.rank, rank); - } - if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.exp, exp); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.dressedSkinId, dressedSkinId); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.equipment, equipment); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedUInt32(FieldNames.allPathUnlockedSpecialPointIdList, allPathUnlockedSpecialPointIdList); - } - if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.skilltreeList, skilltreeList); } - if ((bitField0_ & 0x00000400) != 0) { + if ((bitField0_ & 0x00000200) != 0) { output.writeRepeatedMessage(FieldNames.relicList, relicList); } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.allPathSpecialSkilltreeList, allPathSpecialSkilltreeList); - } output.endObject(); } @@ -1154,11 +885,11 @@ public final class DisplayAvatarDetailInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case -407000018: + case 2012697844: { + if (input.isAtField(FieldNames.dressedSkinId)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + dressedSkinId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -1166,21 +897,21 @@ public final class DisplayAvatarDetailInfoOuterClass { } break; } + case 3492908: { + if (input.isAtField(FieldNames.rank)) { + if (!input.trySkipNullValue()) { + rank = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 111188: { if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { pos = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { - if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1199,10 +930,10 @@ public final class DisplayAvatarDetailInfoOuterClass { } break; } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { + case 100893: { + if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { - rank = input.readUInt32(); + exp = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1210,10 +941,11 @@ public final class DisplayAvatarDetailInfoOuterClass { } break; } - case 100893: { - if (input.isAtField(FieldNames.exp)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - exp = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -1221,11 +953,10 @@ public final class DisplayAvatarDetailInfoOuterClass { } break; } - case -407000018: - case 2012697844: { - if (input.isAtField(FieldNames.dressedSkinId)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - dressedSkinId = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -1244,24 +975,12 @@ public final class DisplayAvatarDetailInfoOuterClass { } break; } - case -1970298407: - case -46072851: { - if (input.isAtField(FieldNames.allPathUnlockedSpecialPointIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(allPathUnlockedSpecialPointIdList); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } case 1549763245: case 815647086: { if (input.isAtField(FieldNames.skilltreeList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(skilltreeList); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; } } else { input.skipUnknownField(); @@ -1273,19 +992,7 @@ public final class DisplayAvatarDetailInfoOuterClass { if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(relicList); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1838433530: - case 1435588976: { - if (input.isAtField(FieldNames.allPathSpecialSkilltreeList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(allPathSpecialSkilltreeList); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; } } else { input.skipUnknownField(); @@ -1345,29 +1052,25 @@ public final class DisplayAvatarDetailInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - - static final FieldName pos = FieldName.forField("pos"); - - static final FieldName promotion = FieldName.forField("promotion"); - - static final FieldName level = FieldName.forField("level"); + static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); static final FieldName rank = FieldName.forField("rank"); + static final FieldName pos = FieldName.forField("pos"); + + static final FieldName level = FieldName.forField("level"); + static final FieldName exp = FieldName.forField("exp"); - static final FieldName dressedSkinId = FieldName.forField("dressedSkinId", "dressed_skin_id"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName promotion = FieldName.forField("promotion"); static final FieldName equipment = FieldName.forField("equipment"); - static final FieldName allPathUnlockedSpecialPointIdList = FieldName.forField("allPathUnlockedSpecialPointIdList", "all_path_unlocked_special_point_id_list"); - static final FieldName skilltreeList = FieldName.forField("skilltreeList", "skilltree_list"); static final FieldName relicList = FieldName.forField("relicList", "relic_list"); - - static final FieldName allPathSpecialSkilltreeList = FieldName.forField("allPathSpecialSkilltreeList", "all_path_special_skilltree_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java index f2af56d..213ebe0 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarOuterClass.java @@ -19,15 +19,15 @@ public final class DisplayAvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 11; - */ - private int avatarId; - - /** - * optional uint32 pos = 13; + * optional uint32 pos = 2; */ private int pos; + /** + * optional uint32 avatar_id = 14; + */ + private int avatarId; + private DisplayAvatar() { } @@ -39,62 +39,25 @@ public final class DisplayAvatarOuterClass { } /** - * optional uint32 avatar_id = 11; - * @return whether the avatarId field is set + * optional uint32 pos = 2; + * @return whether the pos field is set */ - public boolean hasAvatarId() { + public boolean hasPos() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 11; - * @return this - */ - public DisplayAvatar clearAvatarId() { - bitField0_ &= ~0x00000001; - avatarId = 0; - return this; - } - - /** - * optional uint32 avatar_id = 11; - * @return the avatarId - */ - public int getAvatarId() { - return avatarId; - } - - /** - * optional uint32 avatar_id = 11; - * @param value the avatarId to set - * @return this - */ - public DisplayAvatar setAvatarId(final int value) { - bitField0_ |= 0x00000001; - avatarId = value; - return this; - } - - /** - * optional uint32 pos = 13; - * @return whether the pos field is set - */ - public boolean hasPos() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 pos = 13; + * optional uint32 pos = 2; * @return this */ public DisplayAvatar clearPos() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; pos = 0; return this; } /** - * optional uint32 pos = 13; + * optional uint32 pos = 2; * @return the pos */ public int getPos() { @@ -102,23 +65,60 @@ public final class DisplayAvatarOuterClass { } /** - * optional uint32 pos = 13; + * optional uint32 pos = 2; * @param value the pos to set * @return this */ public DisplayAvatar setPos(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; pos = value; return this; } + /** + * optional uint32 avatar_id = 14; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 14; + * @return this + */ + public DisplayAvatar clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 14; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 14; + * @param value the avatarId to set + * @return this + */ + public DisplayAvatar setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + @Override public DisplayAvatar copyFrom(final DisplayAvatar other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; pos = other.pos; + avatarId = other.avatarId; } return this; } @@ -129,12 +129,12 @@ public final class DisplayAvatarOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } if (other.hasPos()) { setPos(other.pos); } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } return this; } @@ -145,8 +145,8 @@ public final class DisplayAvatarOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; pos = 0; + avatarId = 0; return this; } @@ -170,19 +170,19 @@ public final class DisplayAvatarOuterClass { } DisplayAvatar other = (DisplayAvatar) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) - && (!hasPos() || pos == other.pos); + && (!hasPos() || pos == other.pos) + && (!hasAvatarId() || avatarId == other.avatarId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(pos); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(avatarId); } } @@ -190,10 +190,10 @@ public final class DisplayAvatarOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(pos); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } return size; } @@ -205,18 +205,18 @@ public final class DisplayAvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // avatarId - avatarId = input.readUInt32(); + case 16: { + // pos + pos = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { - // pos - pos = input.readUInt32(); + case 112: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class DisplayAvatarOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.pos, pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.pos, pos); + output.writeUInt32(FieldNames.avatarId, avatarId); } output.endObject(); } @@ -256,11 +256,10 @@ public final class DisplayAvatarOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 111188: { + if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + pos = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class DisplayAvatarOuterClass { } break; } - case 111188: { - if (input.isAtField(FieldNames.pos)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - pos = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class DisplayAvatarOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName pos = FieldName.forField("pos"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java index 0638e14..395663c 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayAvatarVecOuterClass.java @@ -20,12 +20,12 @@ public final class DisplayAvatarVecOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_display = 8; + * optional bool is_display = 1; */ private boolean isDisplay; /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; */ private final RepeatedMessage displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarOuterClass.DisplayAvatar.getFactory()); @@ -40,7 +40,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 8; + * optional bool is_display = 1; * @return whether the isDisplay field is set */ public boolean hasIsDisplay() { @@ -48,7 +48,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 8; + * optional bool is_display = 1; * @return this */ public DisplayAvatarVec clearIsDisplay() { @@ -58,7 +58,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 8; + * optional bool is_display = 1; * @return the isDisplay */ public boolean getIsDisplay() { @@ -66,7 +66,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * optional bool is_display = 8; + * optional bool is_display = 1; * @param value the isDisplay to set * @return this */ @@ -77,7 +77,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; * @return whether the displayAvatarList field is set */ public boolean hasDisplayAvatarList() { @@ -85,7 +85,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; * @return this */ public DisplayAvatarVec clearDisplayAvatarList() { @@ -95,7 +95,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; * @param value the displayAvatarList to add * @return this */ @@ -135,7 +135,7 @@ public final class DisplayAvatarVecOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 13; + * repeated .DisplayAvatar display_avatar_list = 7; * @param values the displayAvatarList to add * @return this */ @@ -212,12 +212,12 @@ public final class DisplayAvatarVecOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeBoolNoTag(isDisplay); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < displayAvatarList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 58); output.writeMessageNoTag(displayAvatarList.get(i)); } } @@ -242,16 +242,16 @@ public final class DisplayAvatarVecOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // isDisplay isDisplay = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 58) { break; } } - case 106: { + case 58: { // displayAvatarList tag = input.readRepeatedMessage(displayAvatarList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/DisplayEquipmentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayEquipmentInfoOuterClass.java index 6fcbb7a..41085d9 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayEquipmentInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayEquipmentInfoOuterClass.java @@ -24,22 +24,22 @@ public final class DisplayEquipmentInfoOuterClass { private int exp; /** - * optional uint32 rank = 4; + * optional uint32 rank = 8; */ private int rank; /** - * optional uint32 level = 5; + * optional uint32 level = 9; */ private int level; /** - * optional uint32 tid = 12; + * optional uint32 tid = 11; */ private int tid; /** - * optional uint32 promotion = 15; + * optional uint32 promotion = 13; */ private int promotion; @@ -91,7 +91,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 rank = 4; + * optional uint32 rank = 8; * @return whether the rank field is set */ public boolean hasRank() { @@ -99,7 +99,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 rank = 4; + * optional uint32 rank = 8; * @return this */ public DisplayEquipmentInfo clearRank() { @@ -109,7 +109,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 rank = 4; + * optional uint32 rank = 8; * @return the rank */ public int getRank() { @@ -117,7 +117,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 rank = 4; + * optional uint32 rank = 8; * @param value the rank to set * @return this */ @@ -128,7 +128,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 9; * @return whether the level field is set */ public boolean hasLevel() { @@ -136,7 +136,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 9; * @return this */ public DisplayEquipmentInfo clearLevel() { @@ -146,7 +146,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 9; * @return the level */ public int getLevel() { @@ -154,7 +154,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 9; * @param value the level to set * @return this */ @@ -165,7 +165,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 tid = 12; + * optional uint32 tid = 11; * @return whether the tid field is set */ public boolean hasTid() { @@ -173,7 +173,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 tid = 12; + * optional uint32 tid = 11; * @return this */ public DisplayEquipmentInfo clearTid() { @@ -183,7 +183,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 tid = 12; + * optional uint32 tid = 11; * @return the tid */ public int getTid() { @@ -191,7 +191,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 tid = 12; + * optional uint32 tid = 11; * @param value the tid to set * @return this */ @@ -202,7 +202,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 promotion = 15; + * optional uint32 promotion = 13; * @return whether the promotion field is set */ public boolean hasPromotion() { @@ -210,7 +210,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 promotion = 15; + * optional uint32 promotion = 13; * @return this */ public DisplayEquipmentInfo clearPromotion() { @@ -220,7 +220,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 promotion = 15; + * optional uint32 promotion = 13; * @return the promotion */ public int getPromotion() { @@ -228,7 +228,7 @@ public final class DisplayEquipmentInfoOuterClass { } /** - * optional uint32 promotion = 15; + * optional uint32 promotion = 13; * @param value the promotion to set * @return this */ @@ -325,19 +325,19 @@ public final class DisplayEquipmentInfoOuterClass { output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(promotion); } } @@ -375,38 +375,38 @@ public final class DisplayEquipmentInfoOuterClass { exp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 64) { break; } } - case 32: { + case 64: { // rank rank = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 40) { + if (tag != 72) { break; } } - case 40: { + case 72: { // level level = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 88) { break; } } - case 96: { + case 88: { // tid tid = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 120) { + if (tag != 104) { break; } } - case 120: { + case 104: { // promotion promotion = input.readUInt32(); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/DisplayRelicInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/DisplayRelicInfoOuterClass.java index 2ee55f2..c66d895 100644 --- a/src/generated/main/emu/lunarcore/proto/DisplayRelicInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DisplayRelicInfoOuterClass.java @@ -20,32 +20,32 @@ public final class DisplayRelicInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 2; - */ - private int slot; - - /** - * optional uint32 level = 6; + * optional uint32 level = 2; */ private int level; /** - * optional uint32 exp = 9; + * optional uint32 exp = 3; */ private int exp; /** - * optional uint32 main_affix_id = 11; + * optional uint32 main_affix_id = 5; */ private int mainAffixId; /** - * optional uint32 tid = 13; + * optional uint32 tid = 7; */ private int tid; /** - * repeated .RelicAffix sub_affix_list = 15; + * optional uint32 slot = 15; + */ + private int slot; + + /** + * repeated .RelicAffix sub_affix_list = 13; */ private final RepeatedMessage subAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); @@ -60,62 +60,25 @@ public final class DisplayRelicInfoOuterClass { } /** - * optional uint32 slot = 2; - * @return whether the slot field is set + * optional uint32 level = 2; + * @return whether the level field is set */ - public boolean hasSlot() { + public boolean hasLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 slot = 2; - * @return this - */ - public DisplayRelicInfo clearSlot() { - bitField0_ &= ~0x00000001; - slot = 0; - return this; - } - - /** - * optional uint32 slot = 2; - * @return the slot - */ - public int getSlot() { - return slot; - } - - /** - * optional uint32 slot = 2; - * @param value the slot to set - * @return this - */ - public DisplayRelicInfo setSlot(final int value) { - bitField0_ |= 0x00000001; - slot = value; - return this; - } - - /** - * optional uint32 level = 6; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 level = 6; + * optional uint32 level = 2; * @return this */ public DisplayRelicInfo clearLevel() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; level = 0; return this; } /** - * optional uint32 level = 6; + * optional uint32 level = 2; * @return the level */ public int getLevel() { @@ -123,36 +86,36 @@ public final class DisplayRelicInfoOuterClass { } /** - * optional uint32 level = 6; + * optional uint32 level = 2; * @param value the level to set * @return this */ public DisplayRelicInfo setLevel(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; level = value; return this; } /** - * optional uint32 exp = 9; + * optional uint32 exp = 3; * @return whether the exp field is set */ public boolean hasExp() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 exp = 9; + * optional uint32 exp = 3; * @return this */ public DisplayRelicInfo clearExp() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; exp = 0; return this; } /** - * optional uint32 exp = 9; + * optional uint32 exp = 3; * @return the exp */ public int getExp() { @@ -160,36 +123,36 @@ public final class DisplayRelicInfoOuterClass { } /** - * optional uint32 exp = 9; + * optional uint32 exp = 3; * @param value the exp to set * @return this */ public DisplayRelicInfo setExp(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; exp = value; return this; } /** - * optional uint32 main_affix_id = 11; + * optional uint32 main_affix_id = 5; * @return whether the mainAffixId field is set */ public boolean hasMainAffixId() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 main_affix_id = 11; + * optional uint32 main_affix_id = 5; * @return this */ public DisplayRelicInfo clearMainAffixId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; mainAffixId = 0; return this; } /** - * optional uint32 main_affix_id = 11; + * optional uint32 main_affix_id = 5; * @return the mainAffixId */ public int getMainAffixId() { @@ -197,36 +160,36 @@ public final class DisplayRelicInfoOuterClass { } /** - * optional uint32 main_affix_id = 11; + * optional uint32 main_affix_id = 5; * @param value the mainAffixId to set * @return this */ public DisplayRelicInfo setMainAffixId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; mainAffixId = value; return this; } /** - * optional uint32 tid = 13; + * optional uint32 tid = 7; * @return whether the tid field is set */ public boolean hasTid() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 tid = 13; + * optional uint32 tid = 7; * @return this */ public DisplayRelicInfo clearTid() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; tid = 0; return this; } /** - * optional uint32 tid = 13; + * optional uint32 tid = 7; * @return the tid */ public int getTid() { @@ -234,18 +197,55 @@ public final class DisplayRelicInfoOuterClass { } /** - * optional uint32 tid = 13; + * optional uint32 tid = 7; * @param value the tid to set * @return this */ public DisplayRelicInfo setTid(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tid = value; return this; } /** - * repeated .RelicAffix sub_affix_list = 15; + * optional uint32 slot = 15; + * @return whether the slot field is set + */ + public boolean hasSlot() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 slot = 15; + * @return this + */ + public DisplayRelicInfo clearSlot() { + bitField0_ &= ~0x00000010; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 15; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 15; + * @param value the slot to set + * @return this + */ + public DisplayRelicInfo setSlot(final int value) { + bitField0_ |= 0x00000010; + slot = value; + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 13; * @return whether the subAffixList field is set */ public boolean hasSubAffixList() { @@ -253,7 +253,7 @@ public final class DisplayRelicInfoOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 13; * @return this */ public DisplayRelicInfo clearSubAffixList() { @@ -263,7 +263,7 @@ public final class DisplayRelicInfoOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -277,7 +277,7 @@ public final class DisplayRelicInfoOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -291,7 +291,7 @@ public final class DisplayRelicInfoOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 13; * @param value the subAffixList to add * @return this */ @@ -302,7 +302,7 @@ public final class DisplayRelicInfoOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 15; + * repeated .RelicAffix sub_affix_list = 13; * @param values the subAffixList to add * @return this */ @@ -317,11 +317,11 @@ public final class DisplayRelicInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - slot = other.slot; level = other.level; exp = other.exp; mainAffixId = other.mainAffixId; tid = other.tid; + slot = other.slot; subAffixList.copyFrom(other.subAffixList); } return this; @@ -333,9 +333,6 @@ public final class DisplayRelicInfoOuterClass { return this; } cachedSize = -1; - if (other.hasSlot()) { - setSlot(other.slot); - } if (other.hasLevel()) { setLevel(other.level); } @@ -348,6 +345,9 @@ public final class DisplayRelicInfoOuterClass { if (other.hasTid()) { setTid(other.tid); } + if (other.hasSlot()) { + setSlot(other.slot); + } if (other.hasSubAffixList()) { getMutableSubAffixList().addAll(other.subAffixList); } @@ -361,11 +361,11 @@ public final class DisplayRelicInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - slot = 0; level = 0; exp = 0; mainAffixId = 0; tid = 0; + slot = 0; subAffixList.clear(); return this; } @@ -391,11 +391,11 @@ public final class DisplayRelicInfoOuterClass { } DisplayRelicInfo other = (DisplayRelicInfo) o; return bitField0_ == other.bitField0_ - && (!hasSlot() || slot == other.slot) && (!hasLevel() || level == other.level) && (!hasExp() || exp == other.exp) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) && (!hasTid() || tid == other.tid) + && (!hasSlot() || slot == other.slot) && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); } @@ -403,27 +403,27 @@ public final class DisplayRelicInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(slot); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); output.writeUInt32NoTag(level); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); output.writeUInt32NoTag(exp); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); output.writeUInt32NoTag(mainAffixId); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); output.writeUInt32NoTag(tid); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(slot); + } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < subAffixList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 106); output.writeMessageNoTag(subAffixList.get(i)); } } @@ -433,20 +433,20 @@ public final class DisplayRelicInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } if ((bitField0_ & 0x00000020) != 0) { size += (1 * subAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subAffixList); } @@ -461,51 +461,51 @@ public final class DisplayRelicInfoOuterClass { while (true) { switch (tag) { case 16: { - // slot - slot = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { // level level = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 24) { break; } } - case 72: { + case 24: { // exp exp = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 40) { break; } } - case 88: { + case 40: { // mainAffixId mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { + if (tag != 56) { break; } } - case 104: { + case 56: { // tid tid = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 122) { + if (tag != 120) { break; } } - case 122: { + case 120: { + // slot + slot = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { // subAffixList tag = input.readRepeatedMessage(subAffixList, tag); bitField0_ |= 0x00000020; @@ -531,20 +531,20 @@ public final class DisplayRelicInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.slot, slot); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.exp, exp); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.tid, tid); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } if ((bitField0_ & 0x00000020) != 0) { output.writeRepeatedMessage(FieldNames.subAffixList, subAffixList); } @@ -558,22 +558,11 @@ public final class DisplayRelicInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3533310: { - if (input.isAtField(FieldNames.slot)) { - if (!input.trySkipNullValue()) { - slot = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 102865796: { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -584,7 +573,7 @@ public final class DisplayRelicInfoOuterClass { if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { exp = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -596,7 +585,7 @@ public final class DisplayRelicInfoOuterClass { if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -607,6 +596,17 @@ public final class DisplayRelicInfoOuterClass { if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { tid = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3533310: { + if (input.isAtField(FieldNames.slot)) { + if (!input.trySkipNullValue()) { + slot = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -679,8 +679,6 @@ public final class DisplayRelicInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName slot = FieldName.forField("slot"); - static final FieldName level = FieldName.forField("level"); static final FieldName exp = FieldName.forField("exp"); @@ -689,6 +687,8 @@ public final class DisplayRelicInfoOuterClass { static final FieldName tid = FieldName.forField("tid"); + static final FieldName slot = FieldName.forField("slot"); + static final FieldName subAffixList = FieldName.forField("subAffixList", "sub_affix_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java index 374884d..b3b70fc 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DoGachaCsReqOuterClass.java @@ -19,25 +19,25 @@ public final class DoGachaCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 simulate_magic = 2; - */ - private int simulateMagic; - - /** - * optional uint32 gacha_num = 8; - */ - private int gachaNum; - - /** - * optional uint32 gacha_random = 9; + * optional uint32 gacha_random = 2; */ private int gachaRandom; /** - * optional uint32 gacha_id = 14; + * optional uint32 simulate_magic = 10; + */ + private int simulateMagic; + + /** + * optional uint32 gacha_id = 12; */ private int gachaId; + /** + * optional uint32 gacha_num = 15; + */ + private int gachaNum; + private DoGachaCsReq() { } @@ -49,99 +49,25 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 simulate_magic = 2; - * @return whether the simulateMagic field is set + * optional uint32 gacha_random = 2; + * @return whether the gachaRandom field is set */ - public boolean hasSimulateMagic() { + public boolean hasGachaRandom() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 simulate_magic = 2; - * @return this - */ - public DoGachaCsReq clearSimulateMagic() { - bitField0_ &= ~0x00000001; - simulateMagic = 0; - return this; - } - - /** - * optional uint32 simulate_magic = 2; - * @return the simulateMagic - */ - public int getSimulateMagic() { - return simulateMagic; - } - - /** - * optional uint32 simulate_magic = 2; - * @param value the simulateMagic to set - * @return this - */ - public DoGachaCsReq setSimulateMagic(final int value) { - bitField0_ |= 0x00000001; - simulateMagic = value; - return this; - } - - /** - * optional uint32 gacha_num = 8; - * @return whether the gachaNum field is set - */ - public boolean hasGachaNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 gacha_num = 8; - * @return this - */ - public DoGachaCsReq clearGachaNum() { - bitField0_ &= ~0x00000002; - gachaNum = 0; - return this; - } - - /** - * optional uint32 gacha_num = 8; - * @return the gachaNum - */ - public int getGachaNum() { - return gachaNum; - } - - /** - * optional uint32 gacha_num = 8; - * @param value the gachaNum to set - * @return this - */ - public DoGachaCsReq setGachaNum(final int value) { - bitField0_ |= 0x00000002; - gachaNum = value; - return this; - } - - /** - * optional uint32 gacha_random = 9; - * @return whether the gachaRandom field is set - */ - public boolean hasGachaRandom() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 gacha_random = 9; + * optional uint32 gacha_random = 2; * @return this */ public DoGachaCsReq clearGachaRandom() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; gachaRandom = 0; return this; } /** - * optional uint32 gacha_random = 9; + * optional uint32 gacha_random = 2; * @return the gachaRandom */ public int getGachaRandom() { @@ -149,36 +75,73 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 gacha_random = 9; + * optional uint32 gacha_random = 2; * @param value the gachaRandom to set * @return this */ public DoGachaCsReq setGachaRandom(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; gachaRandom = value; return this; } /** - * optional uint32 gacha_id = 14; - * @return whether the gachaId field is set + * optional uint32 simulate_magic = 10; + * @return whether the simulateMagic field is set */ - public boolean hasGachaId() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasSimulateMagic() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 gacha_id = 14; + * optional uint32 simulate_magic = 10; + * @return this + */ + public DoGachaCsReq clearSimulateMagic() { + bitField0_ &= ~0x00000002; + simulateMagic = 0; + return this; + } + + /** + * optional uint32 simulate_magic = 10; + * @return the simulateMagic + */ + public int getSimulateMagic() { + return simulateMagic; + } + + /** + * optional uint32 simulate_magic = 10; + * @param value the simulateMagic to set + * @return this + */ + public DoGachaCsReq setSimulateMagic(final int value) { + bitField0_ |= 0x00000002; + simulateMagic = value; + return this; + } + + /** + * optional uint32 gacha_id = 12; + * @return whether the gachaId field is set + */ + public boolean hasGachaId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 gacha_id = 12; * @return this */ public DoGachaCsReq clearGachaId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; gachaId = 0; return this; } /** - * optional uint32 gacha_id = 14; + * optional uint32 gacha_id = 12; * @return the gachaId */ public int getGachaId() { @@ -186,25 +149,62 @@ public final class DoGachaCsReqOuterClass { } /** - * optional uint32 gacha_id = 14; + * optional uint32 gacha_id = 12; * @param value the gachaId to set * @return this */ public DoGachaCsReq setGachaId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; gachaId = value; return this; } + /** + * optional uint32 gacha_num = 15; + * @return whether the gachaNum field is set + */ + public boolean hasGachaNum() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 gacha_num = 15; + * @return this + */ + public DoGachaCsReq clearGachaNum() { + bitField0_ &= ~0x00000008; + gachaNum = 0; + return this; + } + + /** + * optional uint32 gacha_num = 15; + * @return the gachaNum + */ + public int getGachaNum() { + return gachaNum; + } + + /** + * optional uint32 gacha_num = 15; + * @param value the gachaNum to set + * @return this + */ + public DoGachaCsReq setGachaNum(final int value) { + bitField0_ |= 0x00000008; + gachaNum = value; + return this; + } + @Override public DoGachaCsReq copyFrom(final DoGachaCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - simulateMagic = other.simulateMagic; - gachaNum = other.gachaNum; gachaRandom = other.gachaRandom; + simulateMagic = other.simulateMagic; gachaId = other.gachaId; + gachaNum = other.gachaNum; } return this; } @@ -215,18 +215,18 @@ public final class DoGachaCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasSimulateMagic()) { - setSimulateMagic(other.simulateMagic); - } - if (other.hasGachaNum()) { - setGachaNum(other.gachaNum); - } if (other.hasGachaRandom()) { setGachaRandom(other.gachaRandom); } + if (other.hasSimulateMagic()) { + setSimulateMagic(other.simulateMagic); + } if (other.hasGachaId()) { setGachaId(other.gachaId); } + if (other.hasGachaNum()) { + setGachaNum(other.gachaNum); + } return this; } @@ -237,10 +237,10 @@ public final class DoGachaCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - simulateMagic = 0; - gachaNum = 0; gachaRandom = 0; + simulateMagic = 0; gachaId = 0; + gachaNum = 0; return this; } @@ -264,47 +264,47 @@ public final class DoGachaCsReqOuterClass { } DoGachaCsReq other = (DoGachaCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSimulateMagic() || simulateMagic == other.simulateMagic) - && (!hasGachaNum() || gachaNum == other.gachaNum) && (!hasGachaRandom() || gachaRandom == other.gachaRandom) - && (!hasGachaId() || gachaId == other.gachaId); + && (!hasSimulateMagic() || simulateMagic == other.simulateMagic) + && (!hasGachaId() || gachaId == other.gachaId) + && (!hasGachaNum() || gachaNum == other.gachaNum); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(simulateMagic); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(gachaNum); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); output.writeUInt32NoTag(gachaRandom); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(simulateMagic); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); output.writeUInt32NoTag(gachaId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(gachaNum); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(simulateMagic); + } + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); + } return size; } @@ -316,35 +316,35 @@ public final class DoGachaCsReqOuterClass { while (true) { switch (tag) { case 16: { - // simulateMagic - simulateMagic = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // gachaNum - gachaNum = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { // gachaRandom gachaRandom = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 80) { break; } } - case 112: { + case 80: { + // simulateMagic + simulateMagic = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { // gachaId gachaId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // gachaNum + gachaNum = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,17 +369,17 @@ public final class DoGachaCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.simulateMagic, simulateMagic); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.gachaNum, gachaNum); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.gachaRandom, gachaRandom); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.simulateMagic, simulateMagic); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.gachaId, gachaId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.gachaNum, gachaNum); + } output.endObject(); } @@ -390,11 +390,11 @@ public final class DoGachaCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -370053655: - case 1939465170: { - if (input.isAtField(FieldNames.simulateMagic)) { + case -1635961627: + case -47579616: { + if (input.isAtField(FieldNames.gachaRandom)) { if (!input.trySkipNullValue()) { - simulateMagic = input.readUInt32(); + gachaRandom = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -402,11 +402,11 @@ public final class DoGachaCsReqOuterClass { } break; } - case -2052317532: - case 803166025: { - if (input.isAtField(FieldNames.gachaNum)) { + case -370053655: + case 1939465170: { + if (input.isAtField(FieldNames.simulateMagic)) { if (!input.trySkipNullValue()) { - gachaNum = input.readUInt32(); + simulateMagic = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -414,23 +414,23 @@ public final class DoGachaCsReqOuterClass { } break; } - case -1635961627: - case -47579616: { - if (input.isAtField(FieldNames.gachaRandom)) { - if (!input.trySkipNullValue()) { - gachaRandom = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -204751299: case -2052301576: { if (input.isAtField(FieldNames.gachaId)) { if (!input.trySkipNullValue()) { gachaId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2052317532: + case 803166025: { + if (input.isAtField(FieldNames.gachaNum)) { + if (!input.trySkipNullValue()) { + gachaNum = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -490,13 +490,13 @@ public final class DoGachaCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName simulateMagic = FieldName.forField("simulateMagic", "simulate_magic"); - - static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); - static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); + static final FieldName simulateMagic = FieldName.forField("simulateMagic", "simulate_magic"); + static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); + + static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java deleted file mode 100644 index 8a57e7b..0000000 --- a/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopCsReqOuterClass.java +++ /dev/null @@ -1,421 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class DoGachaInRollShopCsReqOuterClass { - /** - * Protobuf type {@code DoGachaInRollShopCsReq} - */ - public static final class DoGachaInRollShopCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 gacha_random = 5; - */ - private int gachaRandom; - - /** - * optional uint32 roll_shop_id = 11; - */ - private int rollShopId; - - /** - * optional uint32 BBJIJINJAFK = 12; - */ - private int bBJIJINJAFK; - - private DoGachaInRollShopCsReq() { - } - - /** - * @return a new empty instance of {@code DoGachaInRollShopCsReq} - */ - public static DoGachaInRollShopCsReq newInstance() { - return new DoGachaInRollShopCsReq(); - } - - /** - * optional uint32 gacha_random = 5; - * @return whether the gachaRandom field is set - */ - public boolean hasGachaRandom() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 gacha_random = 5; - * @return this - */ - public DoGachaInRollShopCsReq clearGachaRandom() { - bitField0_ &= ~0x00000001; - gachaRandom = 0; - return this; - } - - /** - * optional uint32 gacha_random = 5; - * @return the gachaRandom - */ - public int getGachaRandom() { - return gachaRandom; - } - - /** - * optional uint32 gacha_random = 5; - * @param value the gachaRandom to set - * @return this - */ - public DoGachaInRollShopCsReq setGachaRandom(final int value) { - bitField0_ |= 0x00000001; - gachaRandom = value; - return this; - } - - /** - * optional uint32 roll_shop_id = 11; - * @return whether the rollShopId field is set - */ - public boolean hasRollShopId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 roll_shop_id = 11; - * @return this - */ - public DoGachaInRollShopCsReq clearRollShopId() { - bitField0_ &= ~0x00000002; - rollShopId = 0; - return this; - } - - /** - * optional uint32 roll_shop_id = 11; - * @return the rollShopId - */ - public int getRollShopId() { - return rollShopId; - } - - /** - * optional uint32 roll_shop_id = 11; - * @param value the rollShopId to set - * @return this - */ - public DoGachaInRollShopCsReq setRollShopId(final int value) { - bitField0_ |= 0x00000002; - rollShopId = value; - return this; - } - - /** - * optional uint32 BBJIJINJAFK = 12; - * @return whether the bBJIJINJAFK field is set - */ - public boolean hasBBJIJINJAFK() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 BBJIJINJAFK = 12; - * @return this - */ - public DoGachaInRollShopCsReq clearBBJIJINJAFK() { - bitField0_ &= ~0x00000004; - bBJIJINJAFK = 0; - return this; - } - - /** - * optional uint32 BBJIJINJAFK = 12; - * @return the bBJIJINJAFK - */ - public int getBBJIJINJAFK() { - return bBJIJINJAFK; - } - - /** - * optional uint32 BBJIJINJAFK = 12; - * @param value the bBJIJINJAFK to set - * @return this - */ - public DoGachaInRollShopCsReq setBBJIJINJAFK(final int value) { - bitField0_ |= 0x00000004; - bBJIJINJAFK = value; - return this; - } - - @Override - public DoGachaInRollShopCsReq copyFrom(final DoGachaInRollShopCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - gachaRandom = other.gachaRandom; - rollShopId = other.rollShopId; - bBJIJINJAFK = other.bBJIJINJAFK; - } - return this; - } - - @Override - public DoGachaInRollShopCsReq mergeFrom(final DoGachaInRollShopCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasGachaRandom()) { - setGachaRandom(other.gachaRandom); - } - if (other.hasRollShopId()) { - setRollShopId(other.rollShopId); - } - if (other.hasBBJIJINJAFK()) { - setBBJIJINJAFK(other.bBJIJINJAFK); - } - return this; - } - - @Override - public DoGachaInRollShopCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - gachaRandom = 0; - rollShopId = 0; - bBJIJINJAFK = 0; - return this; - } - - @Override - public DoGachaInRollShopCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof DoGachaInRollShopCsReq)) { - return false; - } - DoGachaInRollShopCsReq other = (DoGachaInRollShopCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasGachaRandom() || gachaRandom == other.gachaRandom) - && (!hasRollShopId() || rollShopId == other.rollShopId) - && (!hasBBJIJINJAFK() || bBJIJINJAFK == other.bBJIJINJAFK); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(gachaRandom); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(rollShopId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(bBJIJINJAFK); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bBJIJINJAFK); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public DoGachaInRollShopCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // gachaRandom - gachaRandom = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // rollShopId - rollShopId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // bBJIJINJAFK - bBJIJINJAFK = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaRandom, gachaRandom); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rollShopId, rollShopId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.bBJIJINJAFK, bBJIJINJAFK); - } - output.endObject(); - } - - @Override - public DoGachaInRollShopCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1635961627: - case -47579616: { - if (input.isAtField(FieldNames.gachaRandom)) { - if (!input.trySkipNullValue()) { - gachaRandom = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -904898162: - case -1612413630: { - if (input.isAtField(FieldNames.rollShopId)) { - if (!input.trySkipNullValue()) { - rollShopId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1536175796: { - if (input.isAtField(FieldNames.bBJIJINJAFK)) { - if (!input.trySkipNullValue()) { - bBJIJINJAFK = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public DoGachaInRollShopCsReq clone() { - return new DoGachaInRollShopCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static DoGachaInRollShopCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new DoGachaInRollShopCsReq(), data).checkInitialized(); - } - - public static DoGachaInRollShopCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new DoGachaInRollShopCsReq(), input).checkInitialized(); - } - - public static DoGachaInRollShopCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new DoGachaInRollShopCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating DoGachaInRollShopCsReq messages - */ - public static MessageFactory getFactory() { - return DoGachaInRollShopCsReqFactory.INSTANCE; - } - - private enum DoGachaInRollShopCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public DoGachaInRollShopCsReq create() { - return DoGachaInRollShopCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); - - static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); - - static final FieldName bBJIJINJAFK = FieldName.forField("BBJIJINJAFK"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java index 35fbce6..377813d 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DoGachaScRspOuterClass.java @@ -20,32 +20,27 @@ public final class DoGachaScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; - */ - private int retcode; - - /** - * optional uint32 gacha_id = 6; + * optional uint32 gacha_id = 2; */ private int gachaId; /** - * optional uint32 ceiling_num = 7; + * optional uint32 retcode = 3; */ - private int ceilingNum; + private int retcode; /** - * optional uint32 gacha_num = 8; + * optional uint32 gacha_num = 10; */ private int gachaNum; /** - * optional uint32 current_gacha_time = 15; + * optional uint32 ceiling_num = 13; */ - private int currentGachaTime; + private int ceilingNum; /** - * repeated .GachaItem gacha_item_list = 12; + * repeated .GachaItem gacha_item_list = 11; */ private final RepeatedMessage gachaItemList = RepeatedMessage.newEmptyInstance(GachaItemOuterClass.GachaItem.getFactory()); @@ -60,62 +55,25 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 retcode = 4; - * @return whether the retcode field is set + * optional uint32 gacha_id = 2; + * @return whether the gachaId field is set */ - public boolean hasRetcode() { + public boolean hasGachaId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 4; - * @return this - */ - public DoGachaScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 4; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 4; - * @param value the retcode to set - * @return this - */ - public DoGachaScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 gacha_id = 6; - * @return whether the gachaId field is set - */ - public boolean hasGachaId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 gacha_id = 6; + * optional uint32 gacha_id = 2; * @return this */ public DoGachaScRsp clearGachaId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; gachaId = 0; return this; } /** - * optional uint32 gacha_id = 6; + * optional uint32 gacha_id = 2; * @return the gachaId */ public int getGachaId() { @@ -123,73 +81,73 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 gacha_id = 6; + * optional uint32 gacha_id = 2; * @param value the gachaId to set * @return this */ public DoGachaScRsp setGachaId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; gachaId = value; return this; } /** - * optional uint32 ceiling_num = 7; - * @return whether the ceilingNum field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasCeilingNum() { + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 3; + * @return this + */ + public DoGachaScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 3; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 3; + * @param value the retcode to set + * @return this + */ + public DoGachaScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 gacha_num = 10; + * @return whether the gachaNum field is set + */ + public boolean hasGachaNum() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 ceiling_num = 7; - * @return this - */ - public DoGachaScRsp clearCeilingNum() { - bitField0_ &= ~0x00000004; - ceilingNum = 0; - return this; - } - - /** - * optional uint32 ceiling_num = 7; - * @return the ceilingNum - */ - public int getCeilingNum() { - return ceilingNum; - } - - /** - * optional uint32 ceiling_num = 7; - * @param value the ceilingNum to set - * @return this - */ - public DoGachaScRsp setCeilingNum(final int value) { - bitField0_ |= 0x00000004; - ceilingNum = value; - return this; - } - - /** - * optional uint32 gacha_num = 8; - * @return whether the gachaNum field is set - */ - public boolean hasGachaNum() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 gacha_num = 8; + * optional uint32 gacha_num = 10; * @return this */ public DoGachaScRsp clearGachaNum() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; gachaNum = 0; return this; } /** - * optional uint32 gacha_num = 8; + * optional uint32 gacha_num = 10; * @return the gachaNum */ public int getGachaNum() { @@ -197,73 +155,73 @@ public final class DoGachaScRspOuterClass { } /** - * optional uint32 gacha_num = 8; + * optional uint32 gacha_num = 10; * @param value the gachaNum to set * @return this */ public DoGachaScRsp setGachaNum(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; gachaNum = value; return this; } /** - * optional uint32 current_gacha_time = 15; - * @return whether the currentGachaTime field is set + * optional uint32 ceiling_num = 13; + * @return whether the ceilingNum field is set */ - public boolean hasCurrentGachaTime() { + public boolean hasCeilingNum() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 ceiling_num = 13; + * @return this + */ + public DoGachaScRsp clearCeilingNum() { + bitField0_ &= ~0x00000008; + ceilingNum = 0; + return this; + } + + /** + * optional uint32 ceiling_num = 13; + * @return the ceilingNum + */ + public int getCeilingNum() { + return ceilingNum; + } + + /** + * optional uint32 ceiling_num = 13; + * @param value the ceilingNum to set + * @return this + */ + public DoGachaScRsp setCeilingNum(final int value) { + bitField0_ |= 0x00000008; + ceilingNum = value; + return this; + } + + /** + * repeated .GachaItem gacha_item_list = 11; + * @return whether the gachaItemList field is set + */ + public boolean hasGachaItemList() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 current_gacha_time = 15; - * @return this - */ - public DoGachaScRsp clearCurrentGachaTime() { - bitField0_ &= ~0x00000010; - currentGachaTime = 0; - return this; - } - - /** - * optional uint32 current_gacha_time = 15; - * @return the currentGachaTime - */ - public int getCurrentGachaTime() { - return currentGachaTime; - } - - /** - * optional uint32 current_gacha_time = 15; - * @param value the currentGachaTime to set - * @return this - */ - public DoGachaScRsp setCurrentGachaTime(final int value) { - bitField0_ |= 0x00000010; - currentGachaTime = value; - return this; - } - - /** - * repeated .GachaItem gacha_item_list = 12; - * @return whether the gachaItemList field is set - */ - public boolean hasGachaItemList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .GachaItem gacha_item_list = 12; + * repeated .GachaItem gacha_item_list = 11; * @return this */ public DoGachaScRsp clearGachaItemList() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; gachaItemList.clear(); return this; } /** - * repeated .GachaItem gacha_item_list = 12; + * repeated .GachaItem gacha_item_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -277,7 +235,7 @@ public final class DoGachaScRspOuterClass { } /** - * repeated .GachaItem gacha_item_list = 12; + * repeated .GachaItem gacha_item_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -286,28 +244,28 @@ public final class DoGachaScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableGachaItemList() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return gachaItemList; } /** - * repeated .GachaItem gacha_item_list = 12; + * repeated .GachaItem gacha_item_list = 11; * @param value the gachaItemList to add * @return this */ public DoGachaScRsp addGachaItemList(final GachaItemOuterClass.GachaItem value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; gachaItemList.add(value); return this; } /** - * repeated .GachaItem gacha_item_list = 12; + * repeated .GachaItem gacha_item_list = 11; * @param values the gachaItemList to add * @return this */ public DoGachaScRsp addAllGachaItemList(final GachaItemOuterClass.GachaItem... values) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; gachaItemList.addAll(values); return this; } @@ -317,11 +275,10 @@ public final class DoGachaScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; gachaId = other.gachaId; - ceilingNum = other.ceilingNum; + retcode = other.retcode; gachaNum = other.gachaNum; - currentGachaTime = other.currentGachaTime; + ceilingNum = other.ceilingNum; gachaItemList.copyFrom(other.gachaItemList); } return this; @@ -333,20 +290,17 @@ public final class DoGachaScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasGachaId()) { setGachaId(other.gachaId); } - if (other.hasCeilingNum()) { - setCeilingNum(other.ceilingNum); + if (other.hasRetcode()) { + setRetcode(other.retcode); } if (other.hasGachaNum()) { setGachaNum(other.gachaNum); } - if (other.hasCurrentGachaTime()) { - setCurrentGachaTime(other.currentGachaTime); + if (other.hasCeilingNum()) { + setCeilingNum(other.ceilingNum); } if (other.hasGachaItemList()) { getMutableGachaItemList().addAll(other.gachaItemList); @@ -361,11 +315,10 @@ public final class DoGachaScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; gachaId = 0; - ceilingNum = 0; + retcode = 0; gachaNum = 0; - currentGachaTime = 0; + ceilingNum = 0; gachaItemList.clear(); return this; } @@ -391,39 +344,34 @@ public final class DoGachaScRspOuterClass { } DoGachaScRsp other = (DoGachaScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasGachaId() || gachaId == other.gachaId) - && (!hasCeilingNum() || ceilingNum == other.ceilingNum) + && (!hasRetcode() || retcode == other.retcode) && (!hasGachaNum() || gachaNum == other.gachaNum) - && (!hasCurrentGachaTime() || currentGachaTime == other.currentGachaTime) + && (!hasCeilingNum() || ceilingNum == other.ceilingNum) && (!hasGachaItemList() || gachaItemList.equals(other.gachaItemList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(gachaId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(ceilingNum); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(retcode); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); output.writeUInt32NoTag(gachaNum); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(currentGachaTime); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(ceilingNum); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < gachaItemList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 90); output.writeMessageNoTag(gachaItemList.get(i)); } } @@ -433,21 +381,18 @@ public final class DoGachaScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(ceilingNum); + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaNum); } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(currentGachaTime); + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(ceilingNum); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { size += (1 * gachaItemList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gachaItemList); } return size; @@ -460,55 +405,46 @@ public final class DoGachaScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { + case 16: { // gachaId gachaId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 80) { break; } } - case 56: { - // ceilingNum - ceilingNum = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { + case 80: { // gachaNum gachaNum = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // ceilingNum + ceilingNum = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 120) { + if (tag != 90) { break; } } - case 120: { - // currentGachaTime - currentGachaTime = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { + case 90: { // gachaItemList tag = input.readRepeatedMessage(gachaItemList, tag); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -531,21 +467,18 @@ public final class DoGachaScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.gachaId, gachaId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.ceilingNum, ceilingNum); + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.gachaNum, gachaNum); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.currentGachaTime, currentGachaTime); + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.ceilingNum, ceilingNum); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.gachaItemList, gachaItemList); } output.endObject(); @@ -558,10 +491,11 @@ public final class DoGachaScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -204751299: + case -2052301576: { + if (input.isAtField(FieldNames.gachaId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + gachaId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -569,11 +503,10 @@ public final class DoGachaScRspOuterClass { } break; } - case -204751299: - case -2052301576: { - if (input.isAtField(FieldNames.gachaId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - gachaId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -581,36 +514,24 @@ public final class DoGachaScRspOuterClass { } break; } - case -1655838327: - case 209119492: { - if (input.isAtField(FieldNames.ceilingNum)) { - if (!input.trySkipNullValue()) { - ceilingNum = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -2052317532: case 803166025: { if (input.isAtField(FieldNames.gachaNum)) { if (!input.trySkipNullValue()) { gachaNum = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); } break; } - case 1941683702: - case 2062533104: { - if (input.isAtField(FieldNames.currentGachaTime)) { + case -1655838327: + case 209119492: { + if (input.isAtField(FieldNames.ceilingNum)) { if (!input.trySkipNullValue()) { - currentGachaTime = input.readUInt32(); - bitField0_ |= 0x00000010; + ceilingNum = input.readUInt32(); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -622,7 +543,7 @@ public final class DoGachaScRspOuterClass { if (input.isAtField(FieldNames.gachaItemList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(gachaItemList); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -681,15 +602,13 @@ public final class DoGachaScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); - static final FieldName ceilingNum = FieldName.forField("ceilingNum", "ceiling_num"); + static final FieldName retcode = FieldName.forField("retcode"); static final FieldName gachaNum = FieldName.forField("gachaNum", "gacha_num"); - static final FieldName currentGachaTime = FieldName.forField("currentGachaTime", "current_gacha_time"); + static final FieldName ceilingNum = FieldName.forField("ceilingNum", "ceiling_num"); static final FieldName gachaItemList = FieldName.forField("gachaItemList", "gacha_item_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java index f4ea257..07a86aa 100644 --- a/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressAvatarCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class DressAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 5; - */ - private int avatarId; - - /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 2; */ private int equipmentUniqueId; + /** + * optional uint32 avatar_id = 9; + */ + private int avatarId; + private DressAvatarCsReq() { } @@ -39,62 +39,25 @@ public final class DressAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 5; - * @return whether the avatarId field is set + * optional uint32 equipment_unique_id = 2; + * @return whether the equipmentUniqueId field is set */ - public boolean hasAvatarId() { + public boolean hasEquipmentUniqueId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 5; - * @return this - */ - public DressAvatarCsReq clearAvatarId() { - bitField0_ &= ~0x00000001; - avatarId = 0; - return this; - } - - /** - * optional uint32 avatar_id = 5; - * @return the avatarId - */ - public int getAvatarId() { - return avatarId; - } - - /** - * optional uint32 avatar_id = 5; - * @param value the avatarId to set - * @return this - */ - public DressAvatarCsReq setAvatarId(final int value) { - bitField0_ |= 0x00000001; - avatarId = value; - return this; - } - - /** - * optional uint32 equipment_unique_id = 7; - * @return whether the equipmentUniqueId field is set - */ - public boolean hasEquipmentUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 2; * @return this */ public DressAvatarCsReq clearEquipmentUniqueId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; equipmentUniqueId = 0; return this; } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 2; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -102,23 +65,60 @@ public final class DressAvatarCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 2; * @param value the equipmentUniqueId to set * @return this */ public DressAvatarCsReq setEquipmentUniqueId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; equipmentUniqueId = value; return this; } + /** + * optional uint32 avatar_id = 9; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 9; + * @return this + */ + public DressAvatarCsReq clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 9; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 9; + * @param value the avatarId to set + * @return this + */ + public DressAvatarCsReq setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + @Override public DressAvatarCsReq copyFrom(final DressAvatarCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; equipmentUniqueId = other.equipmentUniqueId; + avatarId = other.avatarId; } return this; } @@ -129,12 +129,12 @@ public final class DressAvatarCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } if (other.hasEquipmentUniqueId()) { setEquipmentUniqueId(other.equipmentUniqueId); } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } return this; } @@ -145,8 +145,8 @@ public final class DressAvatarCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; equipmentUniqueId = 0; + avatarId = 0; return this; } @@ -170,19 +170,19 @@ public final class DressAvatarCsReqOuterClass { } DressAvatarCsReq other = (DressAvatarCsReq) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) - && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId); + && (!hasEquipmentUniqueId() || equipmentUniqueId == other.equipmentUniqueId) + && (!hasAvatarId() || avatarId == other.avatarId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(equipmentUniqueId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(avatarId); } } @@ -190,10 +190,10 @@ public final class DressAvatarCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipmentUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } return size; } @@ -205,18 +205,18 @@ public final class DressAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // avatarId - avatarId = input.readUInt32(); + case 16: { + // equipmentUniqueId + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 72) { break; } } - case 56: { - // equipmentUniqueId - equipmentUniqueId = input.readUInt32(); + case 72: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class DressAvatarCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.equipmentUniqueId, equipmentUniqueId); + output.writeUInt32(FieldNames.avatarId, avatarId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class DressAvatarCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case -1867136902: + case 760467160: { + if (input.isAtField(FieldNames.equipmentUniqueId)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class DressAvatarCsReqOuterClass { } break; } - case -1867136902: - case 760467160: { - if (input.isAtField(FieldNames.equipmentUniqueId)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - equipmentUniqueId = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class DressAvatarCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName equipmentUniqueId = FieldName.forField("equipmentUniqueId", "equipment_unique_id"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressAvatarSkinCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/RogueVirtualItemDataOuterClass.java rename to src/generated/main/emu/lunarcore/proto/DressAvatarSkinCsReqOuterClass.java index c20db14..4c8fa82 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressAvatarSkinCsReqOuterClass.java @@ -11,155 +11,147 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueVirtualItemDataOuterClass { +public final class DressAvatarSkinCsReqOuterClass { /** - *
-   *  pure guess
-   * 
- * - * Protobuf type {@code RogueVirtualItemData} + * Protobuf type {@code DressAvatarSkinCsReq} */ - public static final class RogueVirtualItemData extends ProtoMessage implements Cloneable { + public static final class DressAvatarSkinCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 2; + * optional uint32 avatar_id = 2; */ - private int num; + private int avatarId; /** - * optional uint32 display_type = 6; + * optional uint32 avatar_skin_id = 8; */ - private int displayType; + private int avatarSkinId; - private RogueVirtualItemData() { + private DressAvatarSkinCsReq() { } /** - *
-     *  pure guess
-     * 
- * - * @return a new empty instance of {@code RogueVirtualItemData} + * @return a new empty instance of {@code DressAvatarSkinCsReq} */ - public static RogueVirtualItemData newInstance() { - return new RogueVirtualItemData(); + public static DressAvatarSkinCsReq newInstance() { + return new DressAvatarSkinCsReq(); } /** - * optional uint32 num = 2; - * @return whether the num field is set + * optional uint32 avatar_id = 2; + * @return whether the avatarId field is set */ - public boolean hasNum() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 num = 2; + * optional uint32 avatar_id = 2; * @return this */ - public RogueVirtualItemData clearNum() { + public DressAvatarSkinCsReq clearAvatarId() { bitField0_ &= ~0x00000001; - num = 0; + avatarId = 0; return this; } /** - * optional uint32 num = 2; - * @return the num + * optional uint32 avatar_id = 2; + * @return the avatarId */ - public int getNum() { - return num; + public int getAvatarId() { + return avatarId; } /** - * optional uint32 num = 2; - * @param value the num to set + * optional uint32 avatar_id = 2; + * @param value the avatarId to set * @return this */ - public RogueVirtualItemData setNum(final int value) { + public DressAvatarSkinCsReq setAvatarId(final int value) { bitField0_ |= 0x00000001; - num = value; + avatarId = value; return this; } /** - * optional uint32 display_type = 6; - * @return whether the displayType field is set + * optional uint32 avatar_skin_id = 8; + * @return whether the avatarSkinId field is set */ - public boolean hasDisplayType() { + public boolean hasAvatarSkinId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 display_type = 6; + * optional uint32 avatar_skin_id = 8; * @return this */ - public RogueVirtualItemData clearDisplayType() { + public DressAvatarSkinCsReq clearAvatarSkinId() { bitField0_ &= ~0x00000002; - displayType = 0; + avatarSkinId = 0; return this; } /** - * optional uint32 display_type = 6; - * @return the displayType + * optional uint32 avatar_skin_id = 8; + * @return the avatarSkinId */ - public int getDisplayType() { - return displayType; + public int getAvatarSkinId() { + return avatarSkinId; } /** - * optional uint32 display_type = 6; - * @param value the displayType to set + * optional uint32 avatar_skin_id = 8; + * @param value the avatarSkinId to set * @return this */ - public RogueVirtualItemData setDisplayType(final int value) { + public DressAvatarSkinCsReq setAvatarSkinId(final int value) { bitField0_ |= 0x00000002; - displayType = value; + avatarSkinId = value; return this; } @Override - public RogueVirtualItemData copyFrom(final RogueVirtualItemData other) { + public DressAvatarSkinCsReq copyFrom(final DressAvatarSkinCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - num = other.num; - displayType = other.displayType; + avatarId = other.avatarId; + avatarSkinId = other.avatarSkinId; } return this; } @Override - public RogueVirtualItemData mergeFrom(final RogueVirtualItemData other) { + public DressAvatarSkinCsReq mergeFrom(final DressAvatarSkinCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasNum()) { - setNum(other.num); + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); } - if (other.hasDisplayType()) { - setDisplayType(other.displayType); + if (other.hasAvatarSkinId()) { + setAvatarSkinId(other.avatarSkinId); } return this; } @Override - public RogueVirtualItemData clear() { + public DressAvatarSkinCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - num = 0; - displayType = 0; + avatarId = 0; + avatarSkinId = 0; return this; } @Override - public RogueVirtualItemData clearQuick() { + public DressAvatarSkinCsReq clearQuick() { if (isEmpty()) { return this; } @@ -173,24 +165,24 @@ public final class RogueVirtualItemDataOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueVirtualItemData)) { + if (!(o instanceof DressAvatarSkinCsReq)) { return false; } - RogueVirtualItemData other = (RogueVirtualItemData) o; + DressAvatarSkinCsReq other = (DressAvatarSkinCsReq) o; return bitField0_ == other.bitField0_ - && (!hasNum() || num == other.num) - && (!hasDisplayType() || displayType == other.displayType); + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasAvatarSkinId() || avatarSkinId == other.avatarSkinId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(num); + output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(displayType); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(avatarSkinId); } } @@ -198,33 +190,33 @@ public final class RogueVirtualItemDataOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(displayType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarSkinId); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueVirtualItemData mergeFrom(final ProtoSource input) throws IOException { + public DressAvatarSkinCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 16: { - // num - num = input.readUInt32(); + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 64) { break; } } - case 48: { - // displayType - displayType = input.readUInt32(); + case 64: { + // avatarSkinId + avatarSkinId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -249,25 +241,26 @@ public final class RogueVirtualItemDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.displayType, displayType); + output.writeUInt32(FieldNames.avatarSkinId, avatarSkinId); } output.endObject(); } @Override - public RogueVirtualItemData mergeFrom(final JsonSource input) throws IOException { + public DressAvatarSkinCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -275,11 +268,11 @@ public final class RogueVirtualItemDataOuterClass { } break; } - case 1714350876: - case 1615288471: { - if (input.isAtField(FieldNames.displayType)) { + case -920647119: + case -1975894473: { + if (input.isAtField(FieldNames.avatarSkinId)) { if (!input.trySkipNullValue()) { - displayType = input.readUInt32(); + avatarSkinId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -298,8 +291,8 @@ public final class RogueVirtualItemDataOuterClass { } @Override - public RogueVirtualItemData clone() { - return new RogueVirtualItemData().copyFrom(this); + public DressAvatarSkinCsReq clone() { + return new DressAvatarSkinCsReq().copyFrom(this); } @Override @@ -307,32 +300,32 @@ public final class RogueVirtualItemDataOuterClass { return ((bitField0_) == 0); } - public static RogueVirtualItemData parseFrom(final byte[] data) throws + public static DressAvatarSkinCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueVirtualItemData(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new DressAvatarSkinCsReq(), data).checkInitialized(); } - public static RogueVirtualItemData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueVirtualItemData(), input).checkInitialized(); + public static DressAvatarSkinCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new DressAvatarSkinCsReq(), input).checkInitialized(); } - public static RogueVirtualItemData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueVirtualItemData(), input).checkInitialized(); + public static DressAvatarSkinCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new DressAvatarSkinCsReq(), input).checkInitialized(); } /** - * @return factory for creating RogueVirtualItemData messages + * @return factory for creating DressAvatarSkinCsReq messages */ - public static MessageFactory getFactory() { - return RogueVirtualItemDataFactory.INSTANCE; + public static MessageFactory getFactory() { + return DressAvatarSkinCsReqFactory.INSTANCE; } - private enum RogueVirtualItemDataFactory implements MessageFactory { + private enum DressAvatarSkinCsReqFactory implements MessageFactory { INSTANCE; @Override - public RogueVirtualItemData create() { - return RogueVirtualItemData.newInstance(); + public DressAvatarSkinCsReq create() { + return DressAvatarSkinCsReq.newInstance(); } } @@ -340,9 +333,9 @@ public final class RogueVirtualItemDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName num = FieldName.forField("num"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName displayType = FieldName.forField("displayType", "display_type"); + static final FieldName avatarSkinId = FieldName.forField("avatarSkinId", "avatar_skin_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java index 8a27bcd..4f315ac 100644 --- a/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/DressRelicAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class DressRelicAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 15; + * optional uint32 avatar_id = 6; */ private int avatarId; /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; */ private final RepeatedMessage paramList = RepeatedMessage.newEmptyInstance(RelicParamOuterClass.RelicParam.getFactory()); @@ -40,7 +40,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 15; + * optional uint32 avatar_id = 6; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -48,7 +48,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 15; + * optional uint32 avatar_id = 6; * @return this */ public DressRelicAvatarCsReq clearAvatarId() { @@ -58,7 +58,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 15; + * optional uint32 avatar_id = 6; * @return the avatarId */ public int getAvatarId() { @@ -66,7 +66,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 15; + * optional uint32 avatar_id = 6; * @param value the avatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; * @return whether the paramList field is set */ public boolean hasParamList() { @@ -85,7 +85,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; * @return this */ public DressRelicAvatarCsReq clearParamList() { @@ -95,7 +95,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; * @param value the paramList to add * @return this */ @@ -134,7 +134,7 @@ public final class DressRelicAvatarCsReqOuterClass { } /** - * repeated .RelicParam param_list = 13; + * repeated .RelicParam param_list = 10; * @param values the paramList to add * @return this */ @@ -210,12 +210,12 @@ public final class DressRelicAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < paramList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 82); output.writeMessageNoTag(paramList.get(i)); } } @@ -240,16 +240,16 @@ public final class DressRelicAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 48: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 82) { break; } } - case 106: { + case 82: { // paramList tag = input.readRepeatedMessage(paramList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java deleted file mode 100644 index c40a883..0000000 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentCsReqOuterClass.java +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class EnableRogueTalentCsReqOuterClass { - /** - * Protobuf type {@code EnableRogueTalentCsReq} - */ - public static final class EnableRogueTalentCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 talent_id = 2; - */ - private int talentId; - - private EnableRogueTalentCsReq() { - } - - /** - * @return a new empty instance of {@code EnableRogueTalentCsReq} - */ - public static EnableRogueTalentCsReq newInstance() { - return new EnableRogueTalentCsReq(); - } - - /** - * optional uint32 talent_id = 2; - * @return whether the talentId field is set - */ - public boolean hasTalentId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 talent_id = 2; - * @return this - */ - public EnableRogueTalentCsReq clearTalentId() { - bitField0_ &= ~0x00000001; - talentId = 0; - return this; - } - - /** - * optional uint32 talent_id = 2; - * @return the talentId - */ - public int getTalentId() { - return talentId; - } - - /** - * optional uint32 talent_id = 2; - * @param value the talentId to set - * @return this - */ - public EnableRogueTalentCsReq setTalentId(final int value) { - bitField0_ |= 0x00000001; - talentId = value; - return this; - } - - @Override - public EnableRogueTalentCsReq copyFrom(final EnableRogueTalentCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - talentId = other.talentId; - } - return this; - } - - @Override - public EnableRogueTalentCsReq mergeFrom(final EnableRogueTalentCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasTalentId()) { - setTalentId(other.talentId); - } - return this; - } - - @Override - public EnableRogueTalentCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - talentId = 0; - return this; - } - - @Override - public EnableRogueTalentCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof EnableRogueTalentCsReq)) { - return false; - } - EnableRogueTalentCsReq other = (EnableRogueTalentCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasTalentId() || talentId == other.talentId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(talentId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(talentId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public EnableRogueTalentCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // talentId - talentId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.talentId, talentId); - } - output.endObject(); - } - - @Override - public EnableRogueTalentCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -615305433: - case -1894577842: { - if (input.isAtField(FieldNames.talentId)) { - if (!input.trySkipNullValue()) { - talentId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public EnableRogueTalentCsReq clone() { - return new EnableRogueTalentCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EnableRogueTalentCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), data).checkInitialized(); - } - - public static EnableRogueTalentCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized(); - } - - public static EnableRogueTalentCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating EnableRogueTalentCsReq messages - */ - public static MessageFactory getFactory() { - return EnableRogueTalentCsReqFactory.INSTANCE; - } - - private enum EnableRogueTalentCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public EnableRogueTalentCsReq create() { - return EnableRogueTalentCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName talentId = FieldName.forField("talentId", "talent_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffCsReqOuterClass.java deleted file mode 100644 index 1e8c4e2..0000000 --- a/src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffCsReqOuterClass.java +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class EnhanceRogueBuffCsReqOuterClass { - /** - * Protobuf type {@code EnhanceRogueBuffCsReq} - */ - public static final class EnhanceRogueBuffCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 buff_id = 5; - */ - private int buffId; - - private EnhanceRogueBuffCsReq() { - } - - /** - * @return a new empty instance of {@code EnhanceRogueBuffCsReq} - */ - public static EnhanceRogueBuffCsReq newInstance() { - return new EnhanceRogueBuffCsReq(); - } - - /** - * optional uint32 buff_id = 5; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 buff_id = 5; - * @return this - */ - public EnhanceRogueBuffCsReq clearBuffId() { - bitField0_ &= ~0x00000001; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 5; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 5; - * @param value the buffId to set - * @return this - */ - public EnhanceRogueBuffCsReq setBuffId(final int value) { - bitField0_ |= 0x00000001; - buffId = value; - return this; - } - - @Override - public EnhanceRogueBuffCsReq copyFrom(final EnhanceRogueBuffCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffId = other.buffId; - } - return this; - } - - @Override - public EnhanceRogueBuffCsReq mergeFrom(final EnhanceRogueBuffCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffId()) { - setBuffId(other.buffId); - } - return this; - } - - @Override - public EnhanceRogueBuffCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffId = 0; - return this; - } - - @Override - public EnhanceRogueBuffCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof EnhanceRogueBuffCsReq)) { - return false; - } - EnhanceRogueBuffCsReq other = (EnhanceRogueBuffCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasBuffId() || buffId == other.buffId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(buffId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public EnhanceRogueBuffCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // buffId - buffId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); - } - output.endObject(); - } - - @Override - public EnhanceRogueBuffCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { - if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public EnhanceRogueBuffCsReq clone() { - return new EnhanceRogueBuffCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EnhanceRogueBuffCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnhanceRogueBuffCsReq(), data).checkInitialized(); - } - - public static EnhanceRogueBuffCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnhanceRogueBuffCsReq(), input).checkInitialized(); - } - - public static EnhanceRogueBuffCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnhanceRogueBuffCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating EnhanceRogueBuffCsReq messages - */ - public static MessageFactory getFactory() { - return EnhanceRogueBuffCsReqFactory.INSTANCE; - } - - private enum EnhanceRogueBuffCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public EnhanceRogueBuffCsReq create() { - return EnhanceRogueBuffCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffScRspOuterClass.java deleted file mode 100644 index b6b5d98..0000000 --- a/src/generated/main/emu/lunarcore/proto/EnhanceRogueBuffScRspOuterClass.java +++ /dev/null @@ -1,442 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class EnhanceRogueBuffScRspOuterClass { - /** - * Protobuf type {@code EnhanceRogueBuffScRsp} - */ - public static final class EnhanceRogueBuffScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 6; - */ - private int retcode; - - /** - * optional bool is_success = 1; - */ - private boolean isSuccess; - - /** - * optional .RogueBuff rogue_buff = 15; - */ - private final RogueBuffOuterClass.RogueBuff rogueBuff = RogueBuffOuterClass.RogueBuff.newInstance(); - - private EnhanceRogueBuffScRsp() { - } - - /** - * @return a new empty instance of {@code EnhanceRogueBuffScRsp} - */ - public static EnhanceRogueBuffScRsp newInstance() { - return new EnhanceRogueBuffScRsp(); - } - - /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 6; - * @return this - */ - public EnhanceRogueBuffScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 6; - * @param value the retcode to set - * @return this - */ - public EnhanceRogueBuffScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional bool is_success = 1; - * @return whether the isSuccess field is set - */ - public boolean hasIsSuccess() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool is_success = 1; - * @return this - */ - public EnhanceRogueBuffScRsp clearIsSuccess() { - bitField0_ &= ~0x00000002; - isSuccess = false; - return this; - } - - /** - * optional bool is_success = 1; - * @return the isSuccess - */ - public boolean getIsSuccess() { - return isSuccess; - } - - /** - * optional bool is_success = 1; - * @param value the isSuccess to set - * @return this - */ - public EnhanceRogueBuffScRsp setIsSuccess(final boolean value) { - bitField0_ |= 0x00000002; - isSuccess = value; - return this; - } - - /** - * optional .RogueBuff rogue_buff = 15; - * @return whether the rogueBuff field is set - */ - public boolean hasRogueBuff() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueBuff rogue_buff = 15; - * @return this - */ - public EnhanceRogueBuffScRsp clearRogueBuff() { - bitField0_ &= ~0x00000004; - rogueBuff.clear(); - return this; - } - - /** - * optional .RogueBuff rogue_buff = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueBuff()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffOuterClass.RogueBuff getRogueBuff() { - return rogueBuff; - } - - /** - * optional .RogueBuff rogue_buff = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffOuterClass.RogueBuff getMutableRogueBuff() { - bitField0_ |= 0x00000004; - return rogueBuff; - } - - /** - * optional .RogueBuff rogue_buff = 15; - * @param value the rogueBuff to set - * @return this - */ - public EnhanceRogueBuffScRsp setRogueBuff(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000004; - rogueBuff.copyFrom(value); - return this; - } - - @Override - public EnhanceRogueBuffScRsp copyFrom(final EnhanceRogueBuffScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - isSuccess = other.isSuccess; - rogueBuff.copyFrom(other.rogueBuff); - } - return this; - } - - @Override - public EnhanceRogueBuffScRsp mergeFrom(final EnhanceRogueBuffScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasIsSuccess()) { - setIsSuccess(other.isSuccess); - } - if (other.hasRogueBuff()) { - getMutableRogueBuff().mergeFrom(other.rogueBuff); - } - return this; - } - - @Override - public EnhanceRogueBuffScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - isSuccess = false; - rogueBuff.clear(); - return this; - } - - @Override - public EnhanceRogueBuffScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueBuff.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof EnhanceRogueBuffScRsp)) { - return false; - } - EnhanceRogueBuffScRsp other = (EnhanceRogueBuffScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasIsSuccess() || isSuccess == other.isSuccess) - && (!hasRogueBuff() || rogueBuff.equals(other.rogueBuff)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(isSuccess); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(rogueBuff); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuff); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public EnhanceRogueBuffScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // isSuccess - isSuccess = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // rogueBuff - input.readMessage(rogueBuff); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.isSuccess, isSuccess); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueBuff, rogueBuff); - } - output.endObject(); - } - - @Override - public EnhanceRogueBuffScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1848018809: - case -366859794: { - if (input.isAtField(FieldNames.isSuccess)) { - if (!input.trySkipNullValue()) { - isSuccess = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 655607117: - case -1124785256: { - if (input.isAtField(FieldNames.rogueBuff)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueBuff); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public EnhanceRogueBuffScRsp clone() { - return new EnhanceRogueBuffScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EnhanceRogueBuffScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnhanceRogueBuffScRsp(), data).checkInitialized(); - } - - public static EnhanceRogueBuffScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnhanceRogueBuffScRsp(), input).checkInitialized(); - } - - public static EnhanceRogueBuffScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnhanceRogueBuffScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating EnhanceRogueBuffScRsp messages - */ - public static MessageFactory getFactory() { - return EnhanceRogueBuffScRspFactory.INSTANCE; - } - - private enum EnhanceRogueBuffScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public EnhanceRogueBuffScRsp create() { - return EnhanceRogueBuffScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName isSuccess = FieldName.forField("isSuccess", "is_success"); - - static final FieldName rogueBuff = FieldName.forField("rogueBuff", "rogue_buff"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java index 44ec70d..57e9bf0 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 15; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -34,7 +34,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 15; * @return whether the motion field is set */ public boolean hasMotion() { @@ -42,7 +42,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 15; * @return this */ public EnterMapRotationRegionCsReq clearMotion() { @@ -52,7 +52,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 15; * @param value the motion to set * @return this */ @@ -150,7 +150,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 122); output.writeMessageNoTag(motion); } } @@ -171,7 +171,7 @@ public final class EnterMapRotationRegionCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 122: { // motion input.readMessage(motion); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java index 1d4e981..154ab18 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterMapRotationRegionScRspOuterClass.java @@ -19,17 +19,17 @@ public final class EnterMapRotationRegionScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 client_pos_version = 2; + * optional uint32 client_pos_version = 6; */ private int clientPosVersion; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 13; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -44,7 +44,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 client_pos_version = 2; + * optional uint32 client_pos_version = 6; * @return whether the clientPosVersion field is set */ public boolean hasClientPosVersion() { @@ -52,7 +52,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 client_pos_version = 2; + * optional uint32 client_pos_version = 6; * @return this */ public EnterMapRotationRegionScRsp clearClientPosVersion() { @@ -62,7 +62,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 client_pos_version = 2; + * optional uint32 client_pos_version = 6; * @return the clientPosVersion */ public int getClientPosVersion() { @@ -70,7 +70,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 client_pos_version = 2; + * optional uint32 client_pos_version = 6; * @param value the clientPosVersion to set * @return this */ @@ -81,7 +81,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +89,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return this */ public EnterMapRotationRegionScRsp clearRetcode() { @@ -99,7 +99,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -107,7 +107,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -118,7 +118,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 13; * @return whether the motion field is set */ public boolean hasMotion() { @@ -126,7 +126,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 13; * @return this */ public EnterMapRotationRegionScRsp clearMotion() { @@ -136,7 +136,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class EnterMapRotationRegionScRspOuterClass { } /** - * optional .MotionInfo motion = 6; + * optional .MotionInfo motion = 13; * @param value the motion to set * @return this */ @@ -246,15 +246,15 @@ public final class EnterMapRotationRegionScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(clientPosVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 106); output.writeMessageNoTag(motion); } } @@ -281,25 +281,25 @@ public final class EnterMapRotationRegionScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 48: { // clientPosVersion clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 56) { break; } } - case 120: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 106) { break; } } - case 50: { + case 106: { // motion input.readMessage(motion); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java deleted file mode 100644 index 0d47df5..0000000 --- a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomCsReqOuterClass.java +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class EnterRogueMapRoomCsReqOuterClass { - /** - * Protobuf type {@code EnterRogueMapRoomCsReq} - */ - public static final class EnterRogueMapRoomCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 site_id = 1; - */ - private int siteId; - - /** - * optional uint32 room_id = 9; - */ - private int roomId; - - private EnterRogueMapRoomCsReq() { - } - - /** - * @return a new empty instance of {@code EnterRogueMapRoomCsReq} - */ - public static EnterRogueMapRoomCsReq newInstance() { - return new EnterRogueMapRoomCsReq(); - } - - /** - * optional uint32 site_id = 1; - * @return whether the siteId field is set - */ - public boolean hasSiteId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 site_id = 1; - * @return this - */ - public EnterRogueMapRoomCsReq clearSiteId() { - bitField0_ &= ~0x00000001; - siteId = 0; - return this; - } - - /** - * optional uint32 site_id = 1; - * @return the siteId - */ - public int getSiteId() { - return siteId; - } - - /** - * optional uint32 site_id = 1; - * @param value the siteId to set - * @return this - */ - public EnterRogueMapRoomCsReq setSiteId(final int value) { - bitField0_ |= 0x00000001; - siteId = value; - return this; - } - - /** - * optional uint32 room_id = 9; - * @return whether the roomId field is set - */ - public boolean hasRoomId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 room_id = 9; - * @return this - */ - public EnterRogueMapRoomCsReq clearRoomId() { - bitField0_ &= ~0x00000002; - roomId = 0; - return this; - } - - /** - * optional uint32 room_id = 9; - * @return the roomId - */ - public int getRoomId() { - return roomId; - } - - /** - * optional uint32 room_id = 9; - * @param value the roomId to set - * @return this - */ - public EnterRogueMapRoomCsReq setRoomId(final int value) { - bitField0_ |= 0x00000002; - roomId = value; - return this; - } - - @Override - public EnterRogueMapRoomCsReq copyFrom(final EnterRogueMapRoomCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - siteId = other.siteId; - roomId = other.roomId; - } - return this; - } - - @Override - public EnterRogueMapRoomCsReq mergeFrom(final EnterRogueMapRoomCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSiteId()) { - setSiteId(other.siteId); - } - if (other.hasRoomId()) { - setRoomId(other.roomId); - } - return this; - } - - @Override - public EnterRogueMapRoomCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - siteId = 0; - roomId = 0; - return this; - } - - @Override - public EnterRogueMapRoomCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof EnterRogueMapRoomCsReq)) { - return false; - } - EnterRogueMapRoomCsReq other = (EnterRogueMapRoomCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasSiteId() || siteId == other.siteId) - && (!hasRoomId() || roomId == other.roomId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(roomId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public EnterRogueMapRoomCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // siteId - siteId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // roomId - roomId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.siteId, siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); - } - output.endObject(); - } - - @Override - public EnterRogueMapRoomCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { - if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { - if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public EnterRogueMapRoomCsReq clone() { - return new EnterRogueMapRoomCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EnterRogueMapRoomCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnterRogueMapRoomCsReq(), data).checkInitialized(); - } - - public static EnterRogueMapRoomCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnterRogueMapRoomCsReq(), input).checkInitialized(); - } - - public static EnterRogueMapRoomCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnterRogueMapRoomCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating EnterRogueMapRoomCsReq messages - */ - public static MessageFactory getFactory() { - return EnterRogueMapRoomCsReqFactory.INSTANCE; - } - - private enum EnterRogueMapRoomCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public EnterRogueMapRoomCsReq create() { - return EnterRogueMapRoomCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName siteId = FieldName.forField("siteId", "site_id"); - - static final FieldName roomId = FieldName.forField("roomId", "room_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java deleted file mode 100644 index 27995a7..0000000 --- a/src/generated/main/emu/lunarcore/proto/EnterRogueMapRoomScRspOuterClass.java +++ /dev/null @@ -1,542 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class EnterRogueMapRoomScRspOuterClass { - /** - * Protobuf type {@code EnterRogueMapRoomScRsp} - */ - public static final class EnterRogueMapRoomScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 cur_site_id = 6; - */ - private int curSiteId; - - /** - * optional uint32 retcode = 8; - */ - private int retcode; - - /** - * optional .SceneInfo scene = 3; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .LineupInfo lineup = 14; - */ - private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); - - private EnterRogueMapRoomScRsp() { - } - - /** - * @return a new empty instance of {@code EnterRogueMapRoomScRsp} - */ - public static EnterRogueMapRoomScRsp newInstance() { - return new EnterRogueMapRoomScRsp(); - } - - /** - * optional uint32 cur_site_id = 6; - * @return whether the curSiteId field is set - */ - public boolean hasCurSiteId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 cur_site_id = 6; - * @return this - */ - public EnterRogueMapRoomScRsp clearCurSiteId() { - bitField0_ &= ~0x00000001; - curSiteId = 0; - return this; - } - - /** - * optional uint32 cur_site_id = 6; - * @return the curSiteId - */ - public int getCurSiteId() { - return curSiteId; - } - - /** - * optional uint32 cur_site_id = 6; - * @param value the curSiteId to set - * @return this - */ - public EnterRogueMapRoomScRsp setCurSiteId(final int value) { - bitField0_ |= 0x00000001; - curSiteId = value; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 8; - * @return this - */ - public EnterRogueMapRoomScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 8; - * @param value the retcode to set - * @return this - */ - public EnterRogueMapRoomScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - - /** - * optional .SceneInfo scene = 3; - * @return whether the scene field is set - */ - public boolean hasScene() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .SceneInfo scene = 3; - * @return this - */ - public EnterRogueMapRoomScRsp clearScene() { - bitField0_ &= ~0x00000004; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000004; - return scene; - } - - /** - * optional .SceneInfo scene = 3; - * @param value the scene to set - * @return this - */ - public EnterRogueMapRoomScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000004; - scene.copyFrom(value); - return this; - } - - /** - * optional .LineupInfo lineup = 14; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .LineupInfo lineup = 14; - * @return this - */ - public EnterRogueMapRoomScRsp clearLineup() { - bitField0_ &= ~0x00000008; - lineup.clear(); - return this; - } - - /** - * optional .LineupInfo lineup = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLineup()} if you want to modify it. - * - * @return internal storage object for reading - */ - public LineupInfoOuterClass.LineupInfo getLineup() { - return lineup; - } - - /** - * optional .LineupInfo lineup = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000008; - return lineup; - } - - /** - * optional .LineupInfo lineup = 14; - * @param value the lineup to set - * @return this - */ - public EnterRogueMapRoomScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000008; - lineup.copyFrom(value); - return this; - } - - @Override - public EnterRogueMapRoomScRsp copyFrom(final EnterRogueMapRoomScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - curSiteId = other.curSiteId; - retcode = other.retcode; - scene.copyFrom(other.scene); - lineup.copyFrom(other.lineup); - } - return this; - } - - @Override - public EnterRogueMapRoomScRsp mergeFrom(final EnterRogueMapRoomScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasCurSiteId()) { - setCurSiteId(other.curSiteId); - } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } - if (other.hasLineup()) { - getMutableLineup().mergeFrom(other.lineup); - } - return this; - } - - @Override - public EnterRogueMapRoomScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - curSiteId = 0; - retcode = 0; - scene.clear(); - lineup.clear(); - return this; - } - - @Override - public EnterRogueMapRoomScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - scene.clearQuick(); - lineup.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof EnterRogueMapRoomScRsp)) { - return false; - } - EnterRogueMapRoomScRsp other = (EnterRogueMapRoomScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasCurSiteId() || curSiteId == other.curSiteId) - && (!hasRetcode() || retcode == other.retcode) - && (!hasScene() || scene.equals(other.scene)) - && (!hasLineup() || lineup.equals(other.lineup)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(curSiteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(scene); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(lineup); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curSiteId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public EnterRogueMapRoomScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // curSiteId - curSiteId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // lineup - input.readMessage(lineup); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curSiteId, curSiteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.scene, scene); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.lineup, lineup); - } - output.endObject(); - } - - @Override - public EnterRogueMapRoomScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -226037470: - case 1245078036: { - if (input.isAtField(FieldNames.curSiteId)) { - if (!input.trySkipNullValue()) { - curSiteId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { - if (!input.trySkipNullValue()) { - input.readMessage(scene); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { - if (!input.trySkipNullValue()) { - input.readMessage(lineup); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public EnterRogueMapRoomScRsp clone() { - return new EnterRogueMapRoomScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static EnterRogueMapRoomScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnterRogueMapRoomScRsp(), data).checkInitialized(); - } - - public static EnterRogueMapRoomScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnterRogueMapRoomScRsp(), input).checkInitialized(); - } - - public static EnterRogueMapRoomScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnterRogueMapRoomScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating EnterRogueMapRoomScRsp messages - */ - public static MessageFactory getFactory() { - return EnterRogueMapRoomScRspFactory.INSTANCE; - } - - private enum EnterRogueMapRoomScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public EnterRogueMapRoomScRsp create() { - return EnterRogueMapRoomScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName curSiteId = FieldName.forField("curSiteId", "cur_site_id"); - - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName scene = FieldName.forField("scene"); - - static final FieldName lineup = FieldName.forField("lineup"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java index e46bade..b2fc33d 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneByServerScNotifyOuterClass.java @@ -19,20 +19,20 @@ public final class EnterSceneByServerScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .EnterSceneReason reason = 11; + * optional .EnterSceneReason reason = 12; */ private int reason; /** - * optional .SceneInfo scene = 7; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 3; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); + /** + * optional .SceneInfo scene = 9; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + private EnterSceneByServerScNotify() { } @@ -44,7 +44,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 11; + * optional .EnterSceneReason reason = 12; * @return whether the reason field is set */ public boolean hasReason() { @@ -52,7 +52,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 11; + * optional .EnterSceneReason reason = 12; * @return this */ public EnterSceneByServerScNotify clearReason() { @@ -62,7 +62,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 11; + * optional .EnterSceneReason reason = 12; * @return the reason */ public EnterSceneReasonOuterClass.EnterSceneReason getReason() { @@ -95,7 +95,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .EnterSceneReason reason = 11; + * optional .EnterSceneReason reason = 12; * @param value the reason to set * @return this */ @@ -107,82 +107,25 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .SceneInfo scene = 7; - * @return whether the scene field is set + * optional .LineupInfo lineup = 3; + * @return whether the lineup field is set */ - public boolean hasScene() { + public boolean hasLineup() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .SceneInfo scene = 7; - * @return this - */ - public EnterSceneByServerScNotify clearScene() { - bitField0_ &= ~0x00000002; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000002; - return scene; - } - - /** - * optional .SceneInfo scene = 7; - * @param value the scene to set - * @return this - */ - public EnterSceneByServerScNotify setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000002; - scene.copyFrom(value); - return this; - } - - /** - * optional .LineupInfo lineup = 14; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 3; * @return this */ public EnterSceneByServerScNotify clearLineup() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; lineup.clear(); return this; } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -196,7 +139,7 @@ public final class EnterSceneByServerScNotifyOuterClass { } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -205,29 +148,86 @@ public final class EnterSceneByServerScNotifyOuterClass { * @return internal storage object for modifications */ public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return lineup; } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 3; * @param value the lineup to set * @return this */ public EnterSceneByServerScNotify setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; lineup.copyFrom(value); return this; } + /** + * optional .SceneInfo scene = 9; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .SceneInfo scene = 9; + * @return this + */ + public EnterSceneByServerScNotify clearScene() { + bitField0_ &= ~0x00000004; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableScene()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneInfoOuterClass.SceneInfo getScene() { + return scene; + } + + /** + * optional .SceneInfo scene = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneInfoOuterClass.SceneInfo getMutableScene() { + bitField0_ |= 0x00000004; + return scene; + } + + /** + * optional .SceneInfo scene = 9; + * @param value the scene to set + * @return this + */ + public EnterSceneByServerScNotify setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000004; + scene.copyFrom(value); + return this; + } + @Override public EnterSceneByServerScNotify copyFrom(final EnterSceneByServerScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; reason = other.reason; - scene.copyFrom(other.scene); lineup.copyFrom(other.lineup); + scene.copyFrom(other.scene); } return this; } @@ -241,12 +241,12 @@ public final class EnterSceneByServerScNotifyOuterClass { if (other.hasReason()) { setReasonValue(other.reason); } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } if (other.hasLineup()) { getMutableLineup().mergeFrom(other.lineup); } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } return this; } @@ -258,8 +258,8 @@ public final class EnterSceneByServerScNotifyOuterClass { cachedSize = -1; bitField0_ = 0; reason = 0; - scene.clear(); lineup.clear(); + scene.clear(); return this; } @@ -270,8 +270,8 @@ public final class EnterSceneByServerScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - scene.clearQuick(); lineup.clearQuick(); + scene.clearQuick(); return this; } @@ -286,23 +286,23 @@ public final class EnterSceneByServerScNotifyOuterClass { EnterSceneByServerScNotify other = (EnterSceneByServerScNotify) o; return bitField0_ == other.bitField0_ && (!hasReason() || reason == other.reason) - && (!hasScene() || scene.equals(other.scene)) - && (!hasLineup() || lineup.equals(other.lineup)); + && (!hasLineup() || lineup.equals(other.lineup)) + && (!hasScene() || scene.equals(other.scene)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeEnumNoTag(reason); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(scene); + output.writeRawByte((byte) 26); + output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(lineup); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(scene); } } @@ -313,10 +313,10 @@ public final class EnterSceneByServerScNotifyOuterClass { size += 1 + ProtoSink.computeEnumSizeNoTag(reason); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); } return size; } @@ -328,7 +328,7 @@ public final class EnterSceneByServerScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 96: { // reason final int value = input.readInt32(); if (EnterSceneReasonOuterClass.EnterSceneReason.forNumber(value) != null) { @@ -336,22 +336,22 @@ public final class EnterSceneByServerScNotifyOuterClass { bitField0_ |= 0x00000001; } tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { + case 26: { // lineup input.readMessage(lineup); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // scene + input.readMessage(scene); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -379,10 +379,10 @@ public final class EnterSceneByServerScNotifyOuterClass { output.writeEnum(FieldNames.reason, reason, EnterSceneReasonOuterClass.EnterSceneReason.converter()); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.scene, scene); + output.writeMessage(FieldNames.lineup, lineup); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.lineup, lineup); + output.writeMessage(FieldNames.scene, scene); } output.endObject(); } @@ -410,10 +410,10 @@ public final class EnterSceneByServerScNotifyOuterClass { } break; } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { + case -1102671473: { + if (input.isAtField(FieldNames.lineup)) { if (!input.trySkipNullValue()) { - input.readMessage(scene); + input.readMessage(lineup); bitField0_ |= 0x00000002; } } else { @@ -421,10 +421,10 @@ public final class EnterSceneByServerScNotifyOuterClass { } break; } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { + case 109254796: { + if (input.isAtField(FieldNames.scene)) { if (!input.trySkipNullValue()) { - input.readMessage(lineup); + input.readMessage(scene); bitField0_ |= 0x00000004; } } else { @@ -487,9 +487,9 @@ public final class EnterSceneByServerScNotifyOuterClass { static class FieldNames { static final FieldName reason = FieldName.forField("reason"); - static final FieldName scene = FieldName.forField("scene"); - static final FieldName lineup = FieldName.forField("lineup"); + + static final FieldName scene = FieldName.forField("scene"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java index 0cc7704..e8f9c8d 100644 --- a/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnterSceneCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class EnterSceneCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entry_id = 3; + * optional uint32 entry_id = 4; */ private int entryId; /** - * optional uint32 teleport_id = 9; + * optional uint32 teleport_id = 6; */ private int teleportId; @@ -39,7 +39,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 entry_id = 3; + * optional uint32 entry_id = 4; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -47,7 +47,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 entry_id = 3; + * optional uint32 entry_id = 4; * @return this */ public EnterSceneCsReq clearEntryId() { @@ -57,7 +57,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 entry_id = 3; + * optional uint32 entry_id = 4; * @return the entryId */ public int getEntryId() { @@ -65,7 +65,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 entry_id = 3; + * optional uint32 entry_id = 4; * @param value the entryId to set * @return this */ @@ -76,7 +76,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 teleport_id = 9; + * optional uint32 teleport_id = 6; * @return whether the teleportId field is set */ public boolean hasTeleportId() { @@ -84,7 +84,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 teleport_id = 9; + * optional uint32 teleport_id = 6; * @return this */ public EnterSceneCsReq clearTeleportId() { @@ -94,7 +94,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 teleport_id = 9; + * optional uint32 teleport_id = 6; * @return the teleportId */ public int getTeleportId() { @@ -102,7 +102,7 @@ public final class EnterSceneCsReqOuterClass { } /** - * optional uint32 teleport_id = 9; + * optional uint32 teleport_id = 6; * @param value the teleportId to set * @return this */ @@ -177,11 +177,11 @@ public final class EnterSceneCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(teleportId); } } @@ -205,16 +205,16 @@ public final class EnterSceneCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 32: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 48) { break; } } - case 72: { + case 48: { // teleportId teleportId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java index cd704db..d6b7566 100644 --- a/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EnteredSceneInfoOuterClass.java @@ -19,15 +19,15 @@ public final class EnteredSceneInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 floor_id = 6; - */ - private int floorId; - - /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 7; */ private int planeId; + /** + * optional uint32 floor_id = 8; + */ + private int floorId; + private EnteredSceneInfo() { } @@ -39,62 +39,25 @@ public final class EnteredSceneInfoOuterClass { } /** - * optional uint32 floor_id = 6; - * @return whether the floorId field is set + * optional uint32 plane_id = 7; + * @return whether the planeId field is set */ - public boolean hasFloorId() { + public boolean hasPlaneId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 floor_id = 6; - * @return this - */ - public EnteredSceneInfo clearFloorId() { - bitField0_ &= ~0x00000001; - floorId = 0; - return this; - } - - /** - * optional uint32 floor_id = 6; - * @return the floorId - */ - public int getFloorId() { - return floorId; - } - - /** - * optional uint32 floor_id = 6; - * @param value the floorId to set - * @return this - */ - public EnteredSceneInfo setFloorId(final int value) { - bitField0_ |= 0x00000001; - floorId = value; - return this; - } - - /** - * optional uint32 plane_id = 12; - * @return whether the planeId field is set - */ - public boolean hasPlaneId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 7; * @return this */ public EnteredSceneInfo clearPlaneId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; planeId = 0; return this; } /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 7; * @return the planeId */ public int getPlaneId() { @@ -102,23 +65,60 @@ public final class EnteredSceneInfoOuterClass { } /** - * optional uint32 plane_id = 12; + * optional uint32 plane_id = 7; * @param value the planeId to set * @return this */ public EnteredSceneInfo setPlaneId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; planeId = value; return this; } + /** + * optional uint32 floor_id = 8; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 floor_id = 8; + * @return this + */ + public EnteredSceneInfo clearFloorId() { + bitField0_ &= ~0x00000002; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 8; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 8; + * @param value the floorId to set + * @return this + */ + public EnteredSceneInfo setFloorId(final int value) { + bitField0_ |= 0x00000002; + floorId = value; + return this; + } + @Override public EnteredSceneInfo copyFrom(final EnteredSceneInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - floorId = other.floorId; planeId = other.planeId; + floorId = other.floorId; } return this; } @@ -129,12 +129,12 @@ public final class EnteredSceneInfoOuterClass { return this; } cachedSize = -1; - if (other.hasFloorId()) { - setFloorId(other.floorId); - } if (other.hasPlaneId()) { setPlaneId(other.planeId); } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } return this; } @@ -145,8 +145,8 @@ public final class EnteredSceneInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - floorId = 0; planeId = 0; + floorId = 0; return this; } @@ -170,19 +170,19 @@ public final class EnteredSceneInfoOuterClass { } EnteredSceneInfo other = (EnteredSceneInfo) o; return bitField0_ == other.bitField0_ - && (!hasFloorId() || floorId == other.floorId) - && (!hasPlaneId() || planeId == other.planeId); + && (!hasPlaneId() || planeId == other.planeId) + && (!hasFloorId() || floorId == other.floorId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(floorId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(planeId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(floorId); } } @@ -190,10 +190,10 @@ public final class EnteredSceneInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); } return size; } @@ -205,18 +205,18 @@ public final class EnteredSceneInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // floorId - floorId = input.readUInt32(); + case 56: { + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { - // planeId - planeId = input.readUInt32(); + case 64: { + // floorId + floorId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class EnteredSceneInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.floorId, floorId); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.floorId, floorId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class EnteredSceneInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -766027193: - case 2022982190: { - if (input.isAtField(FieldNames.floorId)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - floorId = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class EnteredSceneInfoOuterClass { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); + floorId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class EnteredSceneInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName floorId = FieldName.forField("floorId", "floor_id"); - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java index 0ad9681..bbb1a5c 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityBuffChangeInfoOuterClass.java @@ -19,17 +19,17 @@ public final class EntityBuffChangeInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 remove_buff_id = 9; - */ - private int removeBuffId; - - /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 3; */ private int entityId; /** - * optional .BuffInfo add_buff_info = 8; + * optional uint32 remove_buff_id = 14; + */ + private int removeBuffId; + + /** + * optional .BuffInfo add_buff_info = 11; */ private final BuffInfoOuterClass.BuffInfo addBuffInfo = BuffInfoOuterClass.BuffInfo.newInstance(); @@ -44,62 +44,25 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional uint32 remove_buff_id = 9; - * @return whether the removeBuffId field is set + * optional uint32 entity_id = 3; + * @return whether the entityId field is set */ - public boolean hasRemoveBuffId() { + public boolean hasEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 remove_buff_id = 9; - * @return this - */ - public EntityBuffChangeInfo clearRemoveBuffId() { - bitField0_ &= ~0x00000001; - removeBuffId = 0; - return this; - } - - /** - * optional uint32 remove_buff_id = 9; - * @return the removeBuffId - */ - public int getRemoveBuffId() { - return removeBuffId; - } - - /** - * optional uint32 remove_buff_id = 9; - * @param value the removeBuffId to set - * @return this - */ - public EntityBuffChangeInfo setRemoveBuffId(final int value) { - bitField0_ |= 0x00000001; - removeBuffId = value; - return this; - } - - /** - * optional uint32 entity_id = 13; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 3; * @return this */ public EntityBuffChangeInfo clearEntityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; entityId = 0; return this; } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 3; * @return the entityId */ public int getEntityId() { @@ -107,18 +70,55 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional uint32 entity_id = 13; + * optional uint32 entity_id = 3; * @param value the entityId to set * @return this */ public EntityBuffChangeInfo setEntityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; entityId = value; return this; } /** - * optional .BuffInfo add_buff_info = 8; + * optional uint32 remove_buff_id = 14; + * @return whether the removeBuffId field is set + */ + public boolean hasRemoveBuffId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 remove_buff_id = 14; + * @return this + */ + public EntityBuffChangeInfo clearRemoveBuffId() { + bitField0_ &= ~0x00000002; + removeBuffId = 0; + return this; + } + + /** + * optional uint32 remove_buff_id = 14; + * @return the removeBuffId + */ + public int getRemoveBuffId() { + return removeBuffId; + } + + /** + * optional uint32 remove_buff_id = 14; + * @param value the removeBuffId to set + * @return this + */ + public EntityBuffChangeInfo setRemoveBuffId(final int value) { + bitField0_ |= 0x00000002; + removeBuffId = value; + return this; + } + + /** + * optional .BuffInfo add_buff_info = 11; * @return whether the addBuffInfo field is set */ public boolean hasAddBuffInfo() { @@ -126,7 +126,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 8; + * optional .BuffInfo add_buff_info = 11; * @return this */ public EntityBuffChangeInfo clearAddBuffInfo() { @@ -136,7 +136,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 8; + * optional .BuffInfo add_buff_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 8; + * optional .BuffInfo add_buff_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class EntityBuffChangeInfoOuterClass { } /** - * optional .BuffInfo add_buff_info = 8; + * optional .BuffInfo add_buff_info = 11; * @param value the addBuffInfo to set * @return this */ @@ -179,8 +179,8 @@ public final class EntityBuffChangeInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - removeBuffId = other.removeBuffId; entityId = other.entityId; + removeBuffId = other.removeBuffId; addBuffInfo.copyFrom(other.addBuffInfo); } return this; @@ -192,12 +192,12 @@ public final class EntityBuffChangeInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRemoveBuffId()) { - setRemoveBuffId(other.removeBuffId); - } if (other.hasEntityId()) { setEntityId(other.entityId); } + if (other.hasRemoveBuffId()) { + setRemoveBuffId(other.removeBuffId); + } if (other.hasAddBuffInfo()) { getMutableAddBuffInfo().mergeFrom(other.addBuffInfo); } @@ -211,8 +211,8 @@ public final class EntityBuffChangeInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - removeBuffId = 0; entityId = 0; + removeBuffId = 0; addBuffInfo.clear(); return this; } @@ -238,23 +238,23 @@ public final class EntityBuffChangeInfoOuterClass { } EntityBuffChangeInfo other = (EntityBuffChangeInfo) o; return bitField0_ == other.bitField0_ - && (!hasRemoveBuffId() || removeBuffId == other.removeBuffId) && (!hasEntityId() || entityId == other.entityId) + && (!hasRemoveBuffId() || removeBuffId == other.removeBuffId) && (!hasAddBuffInfo() || addBuffInfo.equals(other.addBuffInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(removeBuffId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(entityId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(removeBuffId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 90); output.writeMessageNoTag(addBuffInfo); } } @@ -263,10 +263,10 @@ public final class EntityBuffChangeInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(removeBuffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(removeBuffId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(addBuffInfo); @@ -281,25 +281,25 @@ public final class EntityBuffChangeInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // removeBuffId - removeBuffId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 24: { // entityId entityId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 112) { break; } } - case 66: { + case 112: { + // removeBuffId + removeBuffId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { // addBuffInfo input.readMessage(addBuffInfo); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class EntityBuffChangeInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.removeBuffId, removeBuffId); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.removeBuffId, removeBuffId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.addBuffInfo, addBuffInfo); @@ -344,11 +344,11 @@ public final class EntityBuffChangeInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1339555214: - case 927119308: { - if (input.isAtField(FieldNames.removeBuffId)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - removeBuffId = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,11 +356,11 @@ public final class EntityBuffChangeInfoOuterClass { } break; } - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case -1339555214: + case 927119308: { + if (input.isAtField(FieldNames.removeBuffId)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + removeBuffId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -433,10 +433,10 @@ public final class EntityBuffChangeInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName removeBuffId = FieldName.forField("removeBuffId", "remove_buff_id"); - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName removeBuffId = FieldName.forField("removeBuffId", "remove_buff_id"); + static final FieldName addBuffInfo = FieldName.forField("addBuffInfo", "add_buff_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java index 56b7210..a5966aa 100644 --- a/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EntityMotionOuterClass.java @@ -19,17 +19,17 @@ public final class EntityMotionOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 map_layer = 11; + * optional uint32 map_layer = 10; */ private int mapLayer; /** - * optional uint32 entity_id = 15; + * optional uint32 entity_id = 12; */ private int entityId; /** - * optional .MotionInfo motion = 1; + * optional .MotionInfo motion = 4; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -44,7 +44,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 map_layer = 11; + * optional uint32 map_layer = 10; * @return whether the mapLayer field is set */ public boolean hasMapLayer() { @@ -52,7 +52,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 map_layer = 11; + * optional uint32 map_layer = 10; * @return this */ public EntityMotion clearMapLayer() { @@ -62,7 +62,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 map_layer = 11; + * optional uint32 map_layer = 10; * @return the mapLayer */ public int getMapLayer() { @@ -70,7 +70,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 map_layer = 11; + * optional uint32 map_layer = 10; * @param value the mapLayer to set * @return this */ @@ -81,7 +81,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 entity_id = 15; + * optional uint32 entity_id = 12; * @return whether the entityId field is set */ public boolean hasEntityId() { @@ -89,7 +89,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 entity_id = 15; + * optional uint32 entity_id = 12; * @return this */ public EntityMotion clearEntityId() { @@ -99,7 +99,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 entity_id = 15; + * optional uint32 entity_id = 12; * @return the entityId */ public int getEntityId() { @@ -107,7 +107,7 @@ public final class EntityMotionOuterClass { } /** - * optional uint32 entity_id = 15; + * optional uint32 entity_id = 12; * @param value the entityId to set * @return this */ @@ -118,7 +118,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 1; + * optional .MotionInfo motion = 4; * @return whether the motion field is set */ public boolean hasMotion() { @@ -126,7 +126,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 1; + * optional .MotionInfo motion = 4; * @return this */ public EntityMotion clearMotion() { @@ -136,7 +136,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 1; + * optional .MotionInfo motion = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 1; + * optional .MotionInfo motion = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class EntityMotionOuterClass { } /** - * optional .MotionInfo motion = 1; + * optional .MotionInfo motion = 4; * @param value the motion to set * @return this */ @@ -246,15 +246,15 @@ public final class EntityMotionOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 34); output.writeMessageNoTag(motion); } } @@ -281,25 +281,25 @@ public final class EntityMotionOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 80: { // mapLayer mapLayer = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 96) { break; } } - case 120: { + case 96: { // entityId entityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 10) { + if (tag != 34) { break; } } - case 10: { + case 34: { // motion input.readMessage(motion); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java index 497678f..76767df 100644 --- a/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EquipRelicOuterClass.java @@ -19,12 +19,12 @@ public final class EquipRelicOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 9; + * optional uint32 slot = 8; */ private int slot; /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 11; */ private int relicUniqueId; @@ -39,7 +39,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 9; + * optional uint32 slot = 8; * @return whether the slot field is set */ public boolean hasSlot() { @@ -47,7 +47,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 9; + * optional uint32 slot = 8; * @return this */ public EquipRelic clearSlot() { @@ -57,7 +57,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 9; + * optional uint32 slot = 8; * @return the slot */ public int getSlot() { @@ -65,7 +65,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 slot = 9; + * optional uint32 slot = 8; * @param value the slot to set * @return this */ @@ -76,7 +76,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 11; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -84,7 +84,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 11; * @return this */ public EquipRelic clearRelicUniqueId() { @@ -94,7 +94,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 11; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -102,7 +102,7 @@ public final class EquipRelicOuterClass { } /** - * optional uint32 relic_unique_id = 13; + * optional uint32 relic_unique_id = 11; * @param value the relicUniqueId to set * @return this */ @@ -177,11 +177,11 @@ public final class EquipRelicOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(relicUniqueId); } } @@ -205,16 +205,16 @@ public final class EquipRelicOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 64: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 88) { break; } } - case 104: { + case 88: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java index c8a166f..34467d9 100644 --- a/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/EquipmentOuterClass.java @@ -19,42 +19,42 @@ public final class EquipmentOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equip_avatar_id = 5; - */ - private int equipAvatarId; - - /** - * optional uint32 level = 6; - */ - private int level; - - /** - * optional uint32 rank = 7; - */ - private int rank; - - /** - * optional uint32 unique_id = 8; - */ - private int uniqueId; - - /** - * optional uint32 exp = 10; - */ - private int exp; - - /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 3; */ private int promotion; /** - * optional uint32 tid = 13; + * optional uint32 equip_avatar_id = 4; + */ + private int equipAvatarId; + + /** + * optional uint32 exp = 5; + */ + private int exp; + + /** + * optional uint32 level = 7; + */ + private int level; + + /** + * optional uint32 rank = 10; + */ + private int rank; + + /** + * optional uint32 unique_id = 11; + */ + private int uniqueId; + + /** + * optional uint32 tid = 12; */ private int tid; /** - * optional bool is_protected = 14; + * optional bool is_protected = 8; */ private boolean isProtected; @@ -69,210 +69,25 @@ public final class EquipmentOuterClass { } /** - * optional uint32 equip_avatar_id = 5; - * @return whether the equipAvatarId field is set + * optional uint32 promotion = 3; + * @return whether the promotion field is set */ - public boolean hasEquipAvatarId() { + public boolean hasPromotion() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 equip_avatar_id = 5; - * @return this - */ - public Equipment clearEquipAvatarId() { - bitField0_ &= ~0x00000001; - equipAvatarId = 0; - return this; - } - - /** - * optional uint32 equip_avatar_id = 5; - * @return the equipAvatarId - */ - public int getEquipAvatarId() { - return equipAvatarId; - } - - /** - * optional uint32 equip_avatar_id = 5; - * @param value the equipAvatarId to set - * @return this - */ - public Equipment setEquipAvatarId(final int value) { - bitField0_ |= 0x00000001; - equipAvatarId = value; - return this; - } - - /** - * optional uint32 level = 6; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 level = 6; - * @return this - */ - public Equipment clearLevel() { - bitField0_ &= ~0x00000002; - level = 0; - return this; - } - - /** - * optional uint32 level = 6; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 6; - * @param value the level to set - * @return this - */ - public Equipment setLevel(final int value) { - bitField0_ |= 0x00000002; - level = value; - return this; - } - - /** - * optional uint32 rank = 7; - * @return whether the rank field is set - */ - public boolean hasRank() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 rank = 7; - * @return this - */ - public Equipment clearRank() { - bitField0_ &= ~0x00000004; - rank = 0; - return this; - } - - /** - * optional uint32 rank = 7; - * @return the rank - */ - public int getRank() { - return rank; - } - - /** - * optional uint32 rank = 7; - * @param value the rank to set - * @return this - */ - public Equipment setRank(final int value) { - bitField0_ |= 0x00000004; - rank = value; - return this; - } - - /** - * optional uint32 unique_id = 8; - * @return whether the uniqueId field is set - */ - public boolean hasUniqueId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 unique_id = 8; - * @return this - */ - public Equipment clearUniqueId() { - bitField0_ &= ~0x00000008; - uniqueId = 0; - return this; - } - - /** - * optional uint32 unique_id = 8; - * @return the uniqueId - */ - public int getUniqueId() { - return uniqueId; - } - - /** - * optional uint32 unique_id = 8; - * @param value the uniqueId to set - * @return this - */ - public Equipment setUniqueId(final int value) { - bitField0_ |= 0x00000008; - uniqueId = value; - return this; - } - - /** - * optional uint32 exp = 10; - * @return whether the exp field is set - */ - public boolean hasExp() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 exp = 10; - * @return this - */ - public Equipment clearExp() { - bitField0_ &= ~0x00000010; - exp = 0; - return this; - } - - /** - * optional uint32 exp = 10; - * @return the exp - */ - public int getExp() { - return exp; - } - - /** - * optional uint32 exp = 10; - * @param value the exp to set - * @return this - */ - public Equipment setExp(final int value) { - bitField0_ |= 0x00000010; - exp = value; - return this; - } - - /** - * optional uint32 promotion = 12; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 3; * @return this */ public Equipment clearPromotion() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000001; promotion = 0; return this; } /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 3; * @return the promotion */ public int getPromotion() { @@ -280,18 +95,203 @@ public final class EquipmentOuterClass { } /** - * optional uint32 promotion = 12; + * optional uint32 promotion = 3; * @param value the promotion to set * @return this */ public Equipment setPromotion(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000001; promotion = value; return this; } /** - * optional uint32 tid = 13; + * optional uint32 equip_avatar_id = 4; + * @return whether the equipAvatarId field is set + */ + public boolean hasEquipAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 equip_avatar_id = 4; + * @return this + */ + public Equipment clearEquipAvatarId() { + bitField0_ &= ~0x00000002; + equipAvatarId = 0; + return this; + } + + /** + * optional uint32 equip_avatar_id = 4; + * @return the equipAvatarId + */ + public int getEquipAvatarId() { + return equipAvatarId; + } + + /** + * optional uint32 equip_avatar_id = 4; + * @param value the equipAvatarId to set + * @return this + */ + public Equipment setEquipAvatarId(final int value) { + bitField0_ |= 0x00000002; + equipAvatarId = value; + return this; + } + + /** + * optional uint32 exp = 5; + * @return whether the exp field is set + */ + public boolean hasExp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 exp = 5; + * @return this + */ + public Equipment clearExp() { + bitField0_ &= ~0x00000004; + exp = 0; + return this; + } + + /** + * optional uint32 exp = 5; + * @return the exp + */ + public int getExp() { + return exp; + } + + /** + * optional uint32 exp = 5; + * @param value the exp to set + * @return this + */ + public Equipment setExp(final int value) { + bitField0_ |= 0x00000004; + exp = value; + return this; + } + + /** + * optional uint32 level = 7; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 level = 7; + * @return this + */ + public Equipment clearLevel() { + bitField0_ &= ~0x00000008; + level = 0; + return this; + } + + /** + * optional uint32 level = 7; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 7; + * @param value the level to set + * @return this + */ + public Equipment setLevel(final int value) { + bitField0_ |= 0x00000008; + level = value; + return this; + } + + /** + * optional uint32 rank = 10; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 rank = 10; + * @return this + */ + public Equipment clearRank() { + bitField0_ &= ~0x00000010; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 10; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 10; + * @param value the rank to set + * @return this + */ + public Equipment setRank(final int value) { + bitField0_ |= 0x00000010; + rank = value; + return this; + } + + /** + * optional uint32 unique_id = 11; + * @return whether the uniqueId field is set + */ + public boolean hasUniqueId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 unique_id = 11; + * @return this + */ + public Equipment clearUniqueId() { + bitField0_ &= ~0x00000020; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 11; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 11; + * @param value the uniqueId to set + * @return this + */ + public Equipment setUniqueId(final int value) { + bitField0_ |= 0x00000020; + uniqueId = value; + return this; + } + + /** + * optional uint32 tid = 12; * @return whether the tid field is set */ public boolean hasTid() { @@ -299,7 +299,7 @@ public final class EquipmentOuterClass { } /** - * optional uint32 tid = 13; + * optional uint32 tid = 12; * @return this */ public Equipment clearTid() { @@ -309,7 +309,7 @@ public final class EquipmentOuterClass { } /** - * optional uint32 tid = 13; + * optional uint32 tid = 12; * @return the tid */ public int getTid() { @@ -317,7 +317,7 @@ public final class EquipmentOuterClass { } /** - * optional uint32 tid = 13; + * optional uint32 tid = 12; * @param value the tid to set * @return this */ @@ -328,7 +328,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 8; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -336,7 +336,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 8; * @return this */ public Equipment clearIsProtected() { @@ -346,7 +346,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 8; * @return the isProtected */ public boolean getIsProtected() { @@ -354,7 +354,7 @@ public final class EquipmentOuterClass { } /** - * optional bool is_protected = 14; + * optional bool is_protected = 8; * @param value the isProtected to set * @return this */ @@ -369,12 +369,12 @@ public final class EquipmentOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + promotion = other.promotion; equipAvatarId = other.equipAvatarId; + exp = other.exp; level = other.level; rank = other.rank; uniqueId = other.uniqueId; - exp = other.exp; - promotion = other.promotion; tid = other.tid; isProtected = other.isProtected; } @@ -387,9 +387,15 @@ public final class EquipmentOuterClass { return this; } cachedSize = -1; + if (other.hasPromotion()) { + setPromotion(other.promotion); + } if (other.hasEquipAvatarId()) { setEquipAvatarId(other.equipAvatarId); } + if (other.hasExp()) { + setExp(other.exp); + } if (other.hasLevel()) { setLevel(other.level); } @@ -399,12 +405,6 @@ public final class EquipmentOuterClass { if (other.hasUniqueId()) { setUniqueId(other.uniqueId); } - if (other.hasExp()) { - setExp(other.exp); - } - if (other.hasPromotion()) { - setPromotion(other.promotion); - } if (other.hasTid()) { setTid(other.tid); } @@ -421,12 +421,12 @@ public final class EquipmentOuterClass { } cachedSize = -1; bitField0_ = 0; + promotion = 0; equipAvatarId = 0; + exp = 0; level = 0; rank = 0; uniqueId = 0; - exp = 0; - promotion = 0; tid = 0; isProtected = false; return this; @@ -452,12 +452,12 @@ public final class EquipmentOuterClass { } Equipment other = (Equipment) o; return bitField0_ == other.bitField0_ + && (!hasPromotion() || promotion == other.promotion) && (!hasEquipAvatarId() || equipAvatarId == other.equipAvatarId) + && (!hasExp() || exp == other.exp) && (!hasLevel() || level == other.level) && (!hasRank() || rank == other.rank) && (!hasUniqueId() || uniqueId == other.uniqueId) - && (!hasExp() || exp == other.exp) - && (!hasPromotion() || promotion == other.promotion) && (!hasTid() || tid == other.tid) && (!hasIsProtected() || isProtected == other.isProtected); } @@ -465,35 +465,35 @@ public final class EquipmentOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(equipAvatarId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(equipAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rank); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(uniqueId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 80); - output.writeUInt32NoTag(exp); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(uniqueId); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeBoolNoTag(isProtected); } } @@ -502,22 +502,22 @@ public final class EquipmentOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); @@ -535,36 +535,36 @@ public final class EquipmentOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // equipAvatarId - equipAvatarId = input.readUInt32(); + case 24: { + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 32) { break; } } - case 48: { - // level - level = input.readUInt32(); + case 32: { + // equipAvatarId + equipAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // exp + exp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 56) { break; } } case 56: { - // rank - rank = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // uniqueId - uniqueId = input.readUInt32(); + // level + level = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 80) { @@ -572,33 +572,33 @@ public final class EquipmentOuterClass { } } case 80: { - // exp - exp = input.readUInt32(); + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // promotion - promotion = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { // tid tid = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 112) { + if (tag != 64) { break; } } - case 112: { + case 64: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000080; @@ -625,22 +625,22 @@ public final class EquipmentOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.equipAvatarId, equipAvatarId); + output.writeUInt32(FieldNames.promotion, promotion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.equipAvatarId, equipAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rank, rank); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.exp, exp); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.rank, rank); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.uniqueId, uniqueId); } if ((bitField0_ & 0x00000040) != 0) { output.writeUInt32(FieldNames.tid, tid); @@ -658,12 +658,34 @@ public final class EquipmentOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 169047204: case 33057906: { if (input.isAtField(FieldNames.equipAvatarId)) { if (!input.trySkipNullValue()) { equipAvatarId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 100893: { + if (input.isAtField(FieldNames.exp)) { + if (!input.trySkipNullValue()) { + exp = input.readUInt32(); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -674,7 +696,7 @@ public final class EquipmentOuterClass { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -685,7 +707,7 @@ public final class EquipmentOuterClass { if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { rank = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -697,28 +719,6 @@ public final class EquipmentOuterClass { if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { uniqueId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 100893: { - if (input.isAtField(FieldNames.exp)) { - if (!input.trySkipNullValue()) { - exp = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { - if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -801,18 +801,18 @@ public final class EquipmentOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName promotion = FieldName.forField("promotion"); + static final FieldName equipAvatarId = FieldName.forField("equipAvatarId", "equip_avatar_id"); + static final FieldName exp = FieldName.forField("exp"); + static final FieldName level = FieldName.forField("level"); static final FieldName rank = FieldName.forField("rank"); static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); - static final FieldName exp = FieldName.forField("exp"); - - static final FieldName promotion = FieldName.forField("promotion"); - static final FieldName tid = FieldName.forField("tid"); static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java index eeea9ad..7583029 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class ExchangeGachaCeilingCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_type = 3; - */ - private int gachaType; - - /** - * optional uint32 avatar_id = 13; + * optional uint32 avatar_id = 2; */ private int avatarId; + /** + * optional uint32 gacha_type = 14; + */ + private int gachaType; + private ExchangeGachaCeilingCsReq() { } @@ -39,62 +39,25 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 3; - * @return whether the gachaType field is set + * optional uint32 avatar_id = 2; + * @return whether the avatarId field is set */ - public boolean hasGachaType() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 gacha_type = 3; - * @return this - */ - public ExchangeGachaCeilingCsReq clearGachaType() { - bitField0_ &= ~0x00000001; - gachaType = 0; - return this; - } - - /** - * optional uint32 gacha_type = 3; - * @return the gachaType - */ - public int getGachaType() { - return gachaType; - } - - /** - * optional uint32 gacha_type = 3; - * @param value the gachaType to set - * @return this - */ - public ExchangeGachaCeilingCsReq setGachaType(final int value) { - bitField0_ |= 0x00000001; - gachaType = value; - return this; - } - - /** - * optional uint32 avatar_id = 13; - * @return whether the avatarId field is set - */ - public boolean hasAvatarId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 avatar_id = 13; + * optional uint32 avatar_id = 2; * @return this */ public ExchangeGachaCeilingCsReq clearAvatarId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; avatarId = 0; return this; } /** - * optional uint32 avatar_id = 13; + * optional uint32 avatar_id = 2; * @return the avatarId */ public int getAvatarId() { @@ -102,23 +65,60 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } /** - * optional uint32 avatar_id = 13; + * optional uint32 avatar_id = 2; * @param value the avatarId to set * @return this */ public ExchangeGachaCeilingCsReq setAvatarId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; avatarId = value; return this; } + /** + * optional uint32 gacha_type = 14; + * @return whether the gachaType field is set + */ + public boolean hasGachaType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 gacha_type = 14; + * @return this + */ + public ExchangeGachaCeilingCsReq clearGachaType() { + bitField0_ &= ~0x00000002; + gachaType = 0; + return this; + } + + /** + * optional uint32 gacha_type = 14; + * @return the gachaType + */ + public int getGachaType() { + return gachaType; + } + + /** + * optional uint32 gacha_type = 14; + * @param value the gachaType to set + * @return this + */ + public ExchangeGachaCeilingCsReq setGachaType(final int value) { + bitField0_ |= 0x00000002; + gachaType = value; + return this; + } + @Override public ExchangeGachaCeilingCsReq copyFrom(final ExchangeGachaCeilingCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gachaType = other.gachaType; avatarId = other.avatarId; + gachaType = other.gachaType; } return this; } @@ -129,12 +129,12 @@ public final class ExchangeGachaCeilingCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasGachaType()) { - setGachaType(other.gachaType); - } if (other.hasAvatarId()) { setAvatarId(other.avatarId); } + if (other.hasGachaType()) { + setGachaType(other.gachaType); + } return this; } @@ -145,8 +145,8 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaType = 0; avatarId = 0; + gachaType = 0; return this; } @@ -170,19 +170,19 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } ExchangeGachaCeilingCsReq other = (ExchangeGachaCeilingCsReq) o; return bitField0_ == other.bitField0_ - && (!hasGachaType() || gachaType == other.gachaType) - && (!hasAvatarId() || avatarId == other.avatarId); + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasGachaType() || gachaType == other.gachaType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(gachaType); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(gachaType); } } @@ -190,10 +190,10 @@ public final class ExchangeGachaCeilingCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); } return size; } @@ -205,18 +205,18 @@ public final class ExchangeGachaCeilingCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // gachaType - gachaType = input.readUInt32(); + case 16: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { - // avatarId - avatarId = input.readUInt32(); + case 112: { + // gachaType + gachaType = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class ExchangeGachaCeilingCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaType, gachaType); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.gachaType, gachaType); } output.endObject(); } @@ -256,11 +256,11 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 802848732: - case -871474217: { - if (input.isAtField(FieldNames.gachaType)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - gachaType = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class ExchangeGachaCeilingCsReqOuterClass { } break; } - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 802848732: + case -871474217: { + if (input.isAtField(FieldNames.gachaType)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + gachaType = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class ExchangeGachaCeilingCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java index cd00ae3..46c0e4f 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeGachaCeilingScRspOuterClass.java @@ -19,27 +19,27 @@ public final class ExchangeGachaCeilingScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 1; - */ - private int avatarId; - - /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 8; */ private int gachaType; /** - * optional .ItemList transfer_item_list = 10; + * optional uint32 avatar_id = 9; + */ + private int avatarId; + + /** + * optional .ItemList transfer_item_list = 3; */ private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); /** - * optional .GachaCeiling gacha_ceiling = 15; + * optional .GachaCeiling gacha_ceiling = 6; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); @@ -54,62 +54,25 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 avatar_id = 1; - * @return whether the avatarId field is set + * optional uint32 retcode = 2; + * @return whether the retcode field is set */ - public boolean hasAvatarId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 1; - * @return this - */ - public ExchangeGachaCeilingScRsp clearAvatarId() { - bitField0_ &= ~0x00000001; - avatarId = 0; - return this; - } - - /** - * optional uint32 avatar_id = 1; - * @return the avatarId - */ - public int getAvatarId() { - return avatarId; - } - - /** - * optional uint32 avatar_id = 1; - * @param value the avatarId to set - * @return this - */ - public ExchangeGachaCeilingScRsp setAvatarId(final int value) { - bitField0_ |= 0x00000001; - avatarId = value; - return this; - } - - /** - * optional uint32 retcode = 4; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 2; * @return this */ public ExchangeGachaCeilingScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -117,36 +80,36 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ public ExchangeGachaCeilingScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 8; * @return whether the gachaType field is set */ public boolean hasGachaType() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 8; * @return this */ public ExchangeGachaCeilingScRsp clearGachaType() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; gachaType = 0; return this; } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 8; * @return the gachaType */ public int getGachaType() { @@ -154,18 +117,55 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 14; + * optional uint32 gacha_type = 8; * @param value the gachaType to set * @return this */ public ExchangeGachaCeilingScRsp setGachaType(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; gachaType = value; return this; } /** - * optional .ItemList transfer_item_list = 10; + * optional uint32 avatar_id = 9; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 avatar_id = 9; + * @return this + */ + public ExchangeGachaCeilingScRsp clearAvatarId() { + bitField0_ &= ~0x00000004; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 9; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 9; + * @param value the avatarId to set + * @return this + */ + public ExchangeGachaCeilingScRsp setAvatarId(final int value) { + bitField0_ |= 0x00000004; + avatarId = value; + return this; + } + + /** + * optional .ItemList transfer_item_list = 3; * @return whether the transferItemList field is set */ public boolean hasTransferItemList() { @@ -173,7 +173,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .ItemList transfer_item_list = 10; + * optional .ItemList transfer_item_list = 3; * @return this */ public ExchangeGachaCeilingScRsp clearTransferItemList() { @@ -183,7 +183,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .ItemList transfer_item_list = 10; + * optional .ItemList transfer_item_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -197,7 +197,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .ItemList transfer_item_list = 10; + * optional .ItemList transfer_item_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -211,7 +211,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .ItemList transfer_item_list = 10; + * optional .ItemList transfer_item_list = 3; * @param value the transferItemList to set * @return this */ @@ -222,7 +222,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 15; + * optional .GachaCeiling gacha_ceiling = 6; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { @@ -230,7 +230,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 15; + * optional .GachaCeiling gacha_ceiling = 6; * @return this */ public ExchangeGachaCeilingScRsp clearGachaCeiling() { @@ -240,7 +240,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 15; + * optional .GachaCeiling gacha_ceiling = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -254,7 +254,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 15; + * optional .GachaCeiling gacha_ceiling = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -268,7 +268,7 @@ public final class ExchangeGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 15; + * optional .GachaCeiling gacha_ceiling = 6; * @param value the gachaCeiling to set * @return this */ @@ -284,9 +284,9 @@ public final class ExchangeGachaCeilingScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; retcode = other.retcode; gachaType = other.gachaType; + avatarId = other.avatarId; transferItemList.copyFrom(other.transferItemList); gachaCeiling.copyFrom(other.gachaCeiling); } @@ -299,15 +299,15 @@ public final class ExchangeGachaCeilingScRspOuterClass { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } if (other.hasGachaType()) { setGachaType(other.gachaType); } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } if (other.hasTransferItemList()) { getMutableTransferItemList().mergeFrom(other.transferItemList); } @@ -324,9 +324,9 @@ public final class ExchangeGachaCeilingScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - avatarId = 0; retcode = 0; gachaType = 0; + avatarId = 0; transferItemList.clear(); gachaCeiling.clear(); return this; @@ -354,9 +354,9 @@ public final class ExchangeGachaCeilingScRspOuterClass { } ExchangeGachaCeilingScRsp other = (ExchangeGachaCeilingScRsp) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) && (!hasRetcode() || retcode == other.retcode) && (!hasGachaType() || gachaType == other.gachaType) + && (!hasAvatarId() || avatarId == other.avatarId) && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)) && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)); } @@ -364,23 +364,23 @@ public final class ExchangeGachaCeilingScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); output.writeUInt32NoTag(gachaType); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(avatarId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 26); output.writeMessageNoTag(transferItemList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 50); output.writeMessageNoTag(gachaCeiling); } } @@ -389,14 +389,14 @@ public final class ExchangeGachaCeilingScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaType); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); } @@ -413,43 +413,43 @@ public final class ExchangeGachaCeilingScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // avatarId - avatarId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { + case 16: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 64) { break; } } - case 112: { + case 64: { // gachaType gachaType = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 82) { + if (tag != 72) { break; } } - case 82: { + case 72: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // transferItemList input.readMessage(transferItemList); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 122) { + if (tag != 50) { break; } } - case 122: { + case 50: { // gachaCeiling input.readMessage(gachaCeiling); bitField0_ |= 0x00000010; @@ -476,14 +476,14 @@ public final class ExchangeGachaCeilingScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.gachaType, gachaType); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.transferItemList, transferItemList); } @@ -500,23 +500,11 @@ public final class ExchangeGachaCeilingScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { - if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 1097936398: { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -528,6 +516,18 @@ public final class ExchangeGachaCeilingScRspOuterClass { if (input.isAtField(FieldNames.gachaType)) { if (!input.trySkipNullValue()) { gachaType = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -612,12 +612,12 @@ public final class ExchangeGachaCeilingScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName retcode = FieldName.forField("retcode"); static final FieldName gachaType = FieldName.forField("gachaType", "gacha_type"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java index d6205a3..01a43e9 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ExchangeHcoinCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 14; + * optional uint32 num = 4; */ private int num; @@ -34,7 +34,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 4; * @return whether the num field is set */ public boolean hasNum() { @@ -42,7 +42,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 4; * @return this */ public ExchangeHcoinCsReq clearNum() { @@ -52,7 +52,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 4; * @return the num */ public int getNum() { @@ -60,7 +60,7 @@ public final class ExchangeHcoinCsReqOuterClass { } /** - * optional uint32 num = 14; + * optional uint32 num = 4; * @param value the num to set * @return this */ @@ -129,7 +129,7 @@ public final class ExchangeHcoinCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(num); } } @@ -150,7 +150,7 @@ public final class ExchangeHcoinCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 32: { // num num = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java index 8dea3d9..4f9b240 100644 --- a/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExchangeHcoinScRspOuterClass.java @@ -19,15 +19,15 @@ public final class ExchangeHcoinScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * optional uint32 num = 4; + * optional uint32 num = 10; */ private int num; + /** + * optional uint32 retcode = 11; + */ + private int retcode; + private ExchangeHcoinScRsp() { } @@ -39,62 +39,25 @@ public final class ExchangeHcoinScRspOuterClass { } /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set + * optional uint32 num = 10; + * @return whether the num field is set */ - public boolean hasRetcode() { + public boolean hasNum() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 3; - * @return this - */ - public ExchangeHcoinScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public ExchangeHcoinScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 num = 4; - * @return whether the num field is set - */ - public boolean hasNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 num = 4; + * optional uint32 num = 10; * @return this */ public ExchangeHcoinScRsp clearNum() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; num = 0; return this; } /** - * optional uint32 num = 4; + * optional uint32 num = 10; * @return the num */ public int getNum() { @@ -102,23 +65,60 @@ public final class ExchangeHcoinScRspOuterClass { } /** - * optional uint32 num = 4; + * optional uint32 num = 10; * @param value the num to set * @return this */ public ExchangeHcoinScRsp setNum(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; num = value; return this; } + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public ExchangeHcoinScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public ExchangeHcoinScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public ExchangeHcoinScRsp copyFrom(final ExchangeHcoinScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; num = other.num; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class ExchangeHcoinScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasNum()) { setNum(other.num); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class ExchangeHcoinScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; num = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class ExchangeHcoinScRspOuterClass { } ExchangeHcoinScRsp other = (ExchangeHcoinScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasNum() || num == other.num); + && (!hasNum() || num == other.num) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(num); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class ExchangeHcoinScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,18 +205,18 @@ public final class ExchangeHcoinScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // retcode - retcode = input.readUInt32(); + case 80: { + // num + num = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 88) { break; } } - case 32: { - // num - num = input.readUInt32(); + case 88: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class ExchangeHcoinScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.num, num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.num, num); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,10 @@ public final class ExchangeHcoinScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 109446: { + if (input.isAtField(FieldNames.num)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + num = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class ExchangeHcoinScRspOuterClass { } break; } - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class ExchangeHcoinScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName num = FieldName.forField("num"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java index 0dbc423..dc995ca 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ExpUpEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 8; + * optional uint32 equipment_unique_id = 9; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 10; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 8; + * optional uint32 equipment_unique_id = 9; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 8; + * optional uint32 equipment_unique_id = 9; * @return this */ public ExpUpEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 8; + * optional uint32 equipment_unique_id = 9; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 8; + * optional uint32 equipment_unique_id = 9; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 10; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 10; * @return this */ public ExpUpEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class ExpUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 12; + * optional .ItemCostList item_cost_list = 10; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class ExpUpEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 82); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class ExpUpEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 72: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 82) { break; } } - case 98: { + case 82: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java index 6bcef88..2596a51 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpEquipmentScRspOuterClass.java @@ -20,12 +20,16 @@ public final class ExpUpEquipmentScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; */ private int retcode; /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; */ private final RepeatedMessage returnItemList = RepeatedMessage.newEmptyInstance(PileItemOuterClass.PileItem.getFactory()); @@ -40,7 +44,11 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +56,11 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return this */ public ExpUpEquipmentScRsp clearRetcode() { @@ -58,7 +70,11 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -66,7 +82,11 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -77,7 +97,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -85,7 +105,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; * @return this */ public ExpUpEquipmentScRsp clearReturnItemList() { @@ -95,7 +115,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +129,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +143,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; * @param value the returnItemList to add * @return this */ @@ -134,7 +154,7 @@ public final class ExpUpEquipmentScRspOuterClass { } /** - * repeated .PileItem return_item_list = 5; + * repeated .PileItem return_item_list = 2; * @param values the returnItemList to add * @return this */ @@ -210,12 +230,12 @@ public final class ExpUpEquipmentScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < returnItemList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 18); output.writeMessageNoTag(returnItemList.get(i)); } } @@ -240,16 +260,16 @@ public final class ExpUpEquipmentScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 18) { break; } } - case 42: { + case 18: { // returnItemList tag = input.readRepeatedMessage(returnItemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java index 0f16934..9617f42 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class ExpUpRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 11; + * optional uint32 relic_unique_id = 1; */ private int relicUniqueId; /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 2; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 11; + * optional uint32 relic_unique_id = 1; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -47,7 +47,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 11; + * optional uint32 relic_unique_id = 1; * @return this */ public ExpUpRelicCsReq clearRelicUniqueId() { @@ -57,7 +57,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 11; + * optional uint32 relic_unique_id = 1; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -65,7 +65,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional uint32 relic_unique_id = 11; + * optional uint32 relic_unique_id = 1; * @param value the relicUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 2; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 2; * @return this */ public ExpUpRelicCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class ExpUpRelicCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 7; + * optional .ItemCostList item_cost_list = 2; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class ExpUpRelicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 18); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class ExpUpRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 8: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 18) { break; } } - case 58: { + case 18: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java index 90345e4..8dacf3e 100644 --- a/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExpUpRelicScRspOuterClass.java @@ -20,7 +20,7 @@ public final class ExpUpRelicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 12; */ private int retcode; @@ -40,7 +40,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 12; * @return this */ public ExpUpRelicScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class ExpUpRelicScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -210,7 +210,7 @@ public final class ExpUpRelicScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -240,7 +240,7 @@ public final class ExpUpRelicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java index 68baee8..958926a 100644 --- a/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ExtraLineupTypeOuterClass.java @@ -72,7 +72,37 @@ public final class ExtraLineupTypeOuterClass { /** * LINEUP_HELIOBUS = 13; */ - LINEUP_HELIOBUS("LINEUP_HELIOBUS", 13); + LINEUP_HELIOBUS("LINEUP_HELIOBUS", 13), + + /** + * LINEUP_TOURN_ROGUE = 14; + */ + LINEUP_TOURN_ROGUE("LINEUP_TOURN_ROGUE", 14), + + /** + * LINEUP_RELIC_ROGUE = 15; + */ + LINEUP_RELIC_ROGUE("LINEUP_RELIC_ROGUE", 15), + + /** + * LINEUP_ARCADE_ROGUE = 16; + */ + LINEUP_ARCADE_ROGUE("LINEUP_ARCADE_ROGUE", 16), + + /** + * LINEUP_MAGIC_ROGUE = 17; + */ + LINEUP_MAGIC_ROGUE("LINEUP_MAGIC_ROGUE", 17), + + /** + * LINEUP_FATE = 18; + */ + LINEUP_FATE("LINEUP_FATE", 18), + + /** + * LINEUP_GRID_FIGHT = 19; + */ + LINEUP_GRID_FIGHT("LINEUP_GRID_FIGHT", 19); /** * LINEUP_NONE = 0; @@ -139,6 +169,36 @@ public final class ExtraLineupTypeOuterClass { */ public static final int LINEUP_HELIOBUS_VALUE = 13; + /** + * LINEUP_TOURN_ROGUE = 14; + */ + public static final int LINEUP_TOURN_ROGUE_VALUE = 14; + + /** + * LINEUP_RELIC_ROGUE = 15; + */ + public static final int LINEUP_RELIC_ROGUE_VALUE = 15; + + /** + * LINEUP_ARCADE_ROGUE = 16; + */ + public static final int LINEUP_ARCADE_ROGUE_VALUE = 16; + + /** + * LINEUP_MAGIC_ROGUE = 17; + */ + public static final int LINEUP_MAGIC_ROGUE_VALUE = 17; + + /** + * LINEUP_FATE = 18; + */ + public static final int LINEUP_FATE_VALUE = 18; + + /** + * LINEUP_GRID_FIGHT = 19; + */ + public static final int LINEUP_GRID_FIGHT_VALUE = 19; + private final String name; private final int number; @@ -192,7 +252,7 @@ public final class ExtraLineupTypeOuterClass { enum ExtraLineupTypeConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final ExtraLineupType[] lookup = new ExtraLineupType[14]; + private static final ExtraLineupType[] lookup = new ExtraLineupType[20]; static { lookup[0] = LINEUP_NONE; @@ -208,6 +268,12 @@ public final class ExtraLineupTypeOuterClass { lookup[11] = LINEUP_TREASURE_DUNGEON; lookup[12] = LINEUP_CHESS_ROGUE; lookup[13] = LINEUP_HELIOBUS; + lookup[14] = LINEUP_TOURN_ROGUE; + lookup[15] = LINEUP_RELIC_ROGUE; + lookup[16] = LINEUP_ARCADE_ROGUE; + lookup[17] = LINEUP_MAGIC_ROGUE; + lookup[18] = LINEUP_FATE; + lookup[19] = LINEUP_GRID_FIGHT; } @Override @@ -225,6 +291,9 @@ public final class ExtraLineupTypeOuterClass { if (ProtoUtil.isEqual("LINEUP_NONE", value)) { return LINEUP_NONE; } + if (ProtoUtil.isEqual("LINEUP_FATE", value)) { + return LINEUP_FATE; + } break; } case 12: { @@ -248,6 +317,12 @@ public final class ExtraLineupTypeOuterClass { } break; } + case 17: { + if (ProtoUtil.isEqual("LINEUP_GRID_FIGHT", value)) { + return LINEUP_GRID_FIGHT; + } + break; + } case 18: { if (ProtoUtil.isEqual("LINEUP_CHALLENGE_2", value)) { return LINEUP_CHALLENGE_2; @@ -267,6 +342,21 @@ public final class ExtraLineupTypeOuterClass { if (ProtoUtil.isEqual("LINEUP_CHESS_ROGUE", value)) { return LINEUP_CHESS_ROGUE; } + if (ProtoUtil.isEqual("LINEUP_TOURN_ROGUE", value)) { + return LINEUP_TOURN_ROGUE; + } + if (ProtoUtil.isEqual("LINEUP_RELIC_ROGUE", value)) { + return LINEUP_RELIC_ROGUE; + } + if (ProtoUtil.isEqual("LINEUP_MAGIC_ROGUE", value)) { + return LINEUP_MAGIC_ROGUE; + } + break; + } + case 19: { + if (ProtoUtil.isEqual("LINEUP_ARCADE_ROGUE", value)) { + return LINEUP_ARCADE_ROGUE; + } break; } case 22: { diff --git a/src/generated/main/emu/lunarcore/proto/FarmStageGachaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FarmStageGachaInfoOuterClass.java index 9f5d6db..79ed49c 100644 --- a/src/generated/main/emu/lunarcore/proto/FarmStageGachaInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FarmStageGachaInfoOuterClass.java @@ -19,17 +19,17 @@ public final class FarmStageGachaInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 8; */ private long beginTime; /** - * optional int64 end_time = 6; + * optional int64 end_time = 11; */ private long endTime; /** - * optional uint32 gacha_id = 7; + * optional uint32 gacha_id = 4; */ private int gachaId; @@ -44,7 +44,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 8; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -52,7 +52,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 8; * @return this */ public FarmStageGachaInfo clearBeginTime() { @@ -62,7 +62,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 8; * @return the beginTime */ public long getBeginTime() { @@ -70,7 +70,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 begin_time = 5; + * optional int64 begin_time = 8; * @param value the beginTime to set * @return this */ @@ -81,7 +81,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 end_time = 6; + * optional int64 end_time = 11; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -89,7 +89,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 end_time = 6; + * optional int64 end_time = 11; * @return this */ public FarmStageGachaInfo clearEndTime() { @@ -99,7 +99,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 end_time = 6; + * optional int64 end_time = 11; * @return the endTime */ public long getEndTime() { @@ -107,7 +107,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional int64 end_time = 6; + * optional int64 end_time = 11; * @param value the endTime to set * @return this */ @@ -118,7 +118,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional uint32 gacha_id = 7; + * optional uint32 gacha_id = 4; * @return whether the gachaId field is set */ public boolean hasGachaId() { @@ -126,7 +126,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional uint32 gacha_id = 7; + * optional uint32 gacha_id = 4; * @return this */ public FarmStageGachaInfo clearGachaId() { @@ -136,7 +136,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional uint32 gacha_id = 7; + * optional uint32 gacha_id = 4; * @return the gachaId */ public int getGachaId() { @@ -144,7 +144,7 @@ public final class FarmStageGachaInfoOuterClass { } /** - * optional uint32 gacha_id = 7; + * optional uint32 gacha_id = 4; * @param value the gachaId to set * @return this */ @@ -225,15 +225,15 @@ public final class FarmStageGachaInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 64); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(gachaId); } } @@ -260,25 +260,25 @@ public final class FarmStageGachaInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 64: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 88) { break; } } - case 48: { + case 88: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 32) { break; } } - case 56: { + case 32: { // gachaId gachaId = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/FeatureSwitchInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FeatureSwitchInfoOuterClass.java new file mode 100644 index 0000000..b58315e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FeatureSwitchInfoOuterClass.java @@ -0,0 +1,490 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class FeatureSwitchInfoOuterClass { + /** + * Protobuf type {@code FeatureSwitchInfo} + */ + public static final class FeatureSwitchInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .FeatureSwitchType type = 1; + */ + private int type; + + /** + * optional bool is_all_closed = 3; + */ + private boolean isAllClosed; + + /** + * repeated .FeatureSwitchParam switch_list = 2; + */ + private final RepeatedMessage switchList = RepeatedMessage.newEmptyInstance(FeatureSwitchParamOuterClass.FeatureSwitchParam.getFactory()); + + private FeatureSwitchInfo() { + } + + /** + * @return a new empty instance of {@code FeatureSwitchInfo} + */ + public static FeatureSwitchInfo newInstance() { + return new FeatureSwitchInfo(); + } + + /** + * optional .FeatureSwitchType type = 1; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .FeatureSwitchType type = 1; + * @return this + */ + public FeatureSwitchInfo clearType() { + bitField0_ &= ~0x00000001; + type = 0; + return this; + } + + /** + * optional .FeatureSwitchType type = 1; + * @return the type + */ + public FeatureSwitchTypeOuterClass.FeatureSwitchType getType() { + return FeatureSwitchTypeOuterClass.FeatureSwitchType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link FeatureSwitchInfo#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link FeatureSwitchTypeOuterClass.FeatureSwitchType}. Setting an invalid value + * can cause {@link FeatureSwitchInfo#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public FeatureSwitchInfo setTypeValue(final int value) { + bitField0_ |= 0x00000001; + type = value; + return this; + } + + /** + * optional .FeatureSwitchType type = 1; + * @param value the type to set + * @return this + */ + public FeatureSwitchInfo setType(final FeatureSwitchTypeOuterClass.FeatureSwitchType value) { + bitField0_ |= 0x00000001; + type = value.getNumber(); + return this; + } + + /** + * optional bool is_all_closed = 3; + * @return whether the isAllClosed field is set + */ + public boolean hasIsAllClosed() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool is_all_closed = 3; + * @return this + */ + public FeatureSwitchInfo clearIsAllClosed() { + bitField0_ &= ~0x00000002; + isAllClosed = false; + return this; + } + + /** + * optional bool is_all_closed = 3; + * @return the isAllClosed + */ + public boolean getIsAllClosed() { + return isAllClosed; + } + + /** + * optional bool is_all_closed = 3; + * @param value the isAllClosed to set + * @return this + */ + public FeatureSwitchInfo setIsAllClosed(final boolean value) { + bitField0_ |= 0x00000002; + isAllClosed = value; + return this; + } + + /** + * repeated .FeatureSwitchParam switch_list = 2; + * @return whether the switchList field is set + */ + public boolean hasSwitchList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .FeatureSwitchParam switch_list = 2; + * @return this + */ + public FeatureSwitchInfo clearSwitchList() { + bitField0_ &= ~0x00000004; + switchList.clear(); + return this; + } + + /** + * repeated .FeatureSwitchParam switch_list = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSwitchList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSwitchList() { + return switchList; + } + + /** + * repeated .FeatureSwitchParam switch_list = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableSwitchList() { + bitField0_ |= 0x00000004; + return switchList; + } + + /** + * repeated .FeatureSwitchParam switch_list = 2; + * @param value the switchList to add + * @return this + */ + public FeatureSwitchInfo addSwitchList( + final FeatureSwitchParamOuterClass.FeatureSwitchParam value) { + bitField0_ |= 0x00000004; + switchList.add(value); + return this; + } + + /** + * repeated .FeatureSwitchParam switch_list = 2; + * @param values the switchList to add + * @return this + */ + public FeatureSwitchInfo addAllSwitchList( + final FeatureSwitchParamOuterClass.FeatureSwitchParam... values) { + bitField0_ |= 0x00000004; + switchList.addAll(values); + return this; + } + + @Override + public FeatureSwitchInfo copyFrom(final FeatureSwitchInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + type = other.type; + isAllClosed = other.isAllClosed; + switchList.copyFrom(other.switchList); + } + return this; + } + + @Override + public FeatureSwitchInfo mergeFrom(final FeatureSwitchInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasType()) { + setTypeValue(other.type); + } + if (other.hasIsAllClosed()) { + setIsAllClosed(other.isAllClosed); + } + if (other.hasSwitchList()) { + getMutableSwitchList().addAll(other.switchList); + } + return this; + } + + @Override + public FeatureSwitchInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + type = 0; + isAllClosed = false; + switchList.clear(); + return this; + } + + @Override + public FeatureSwitchInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + switchList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FeatureSwitchInfo)) { + return false; + } + FeatureSwitchInfo other = (FeatureSwitchInfo) o; + return bitField0_ == other.bitField0_ + && (!hasType() || type == other.type) + && (!hasIsAllClosed() || isAllClosed == other.isAllClosed) + && (!hasSwitchList() || switchList.equals(other.switchList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(type); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(isAllClosed); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < switchList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(switchList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(type); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * switchList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(switchList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FeatureSwitchInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // type + final int value = input.readInt32(); + if (FeatureSwitchTypeOuterClass.FeatureSwitchType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // isAllClosed + isAllClosed = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // switchList + tag = input.readRepeatedMessage(switchList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.type, type, FeatureSwitchTypeOuterClass.FeatureSwitchType.converter()); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.isAllClosed, isAllClosed); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.switchList, switchList); + } + output.endObject(); + } + + @Override + public FeatureSwitchInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3575610: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final FeatureSwitchTypeOuterClass.FeatureSwitchType value = input.readEnum(FeatureSwitchTypeOuterClass.FeatureSwitchType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 281414755: + case -912209921: { + if (input.isAtField(FieldNames.isAllClosed)) { + if (!input.trySkipNullValue()) { + isAllClosed = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -347528718: + case 2129138377: { + if (input.isAtField(FieldNames.switchList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(switchList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FeatureSwitchInfo clone() { + return new FeatureSwitchInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FeatureSwitchInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FeatureSwitchInfo(), data).checkInitialized(); + } + + public static FeatureSwitchInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FeatureSwitchInfo(), input).checkInitialized(); + } + + public static FeatureSwitchInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FeatureSwitchInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FeatureSwitchInfo messages + */ + public static MessageFactory getFactory() { + return FeatureSwitchInfoFactory.INSTANCE; + } + + private enum FeatureSwitchInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FeatureSwitchInfo create() { + return FeatureSwitchInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName type = FieldName.forField("type"); + + static final FieldName isAllClosed = FieldName.forField("isAllClosed", "is_all_closed"); + + static final FieldName switchList = FieldName.forField("switchList", "switch_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/FeatureSwitchParamOuterClass.java similarity index 52% rename from src/generated/main/emu/lunarcore/proto/ChessRogueBuffDataOuterClass.java rename to src/generated/main/emu/lunarcore/proto/FeatureSwitchParamOuterClass.java index ed07f03..d8f3ea5 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueBuffDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FeatureSwitchParamOuterClass.java @@ -10,64 +10,64 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.RepeatedInt; -public final class ChessRogueBuffDataOuterClass { +public final class FeatureSwitchParamOuterClass { /** - * Protobuf type {@code ChessRogueBuffData} + * Protobuf type {@code FeatureSwitchParam} */ - public static final class ChessRogueBuffData extends ProtoMessage implements Cloneable { + public static final class FeatureSwitchParam extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated .RogueBuffData buff_list = 12; + * repeated uint32 switch_id = 1; */ - private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueBuffDataOuterClass.RogueBuffData.getFactory()); + private final RepeatedInt switchId = RepeatedInt.newEmptyInstance(); - private ChessRogueBuffData() { + private FeatureSwitchParam() { } /** - * @return a new empty instance of {@code ChessRogueBuffData} + * @return a new empty instance of {@code FeatureSwitchParam} */ - public static ChessRogueBuffData newInstance() { - return new ChessRogueBuffData(); + public static FeatureSwitchParam newInstance() { + return new FeatureSwitchParam(); } /** - * repeated .RogueBuffData buff_list = 12; - * @return whether the buffList field is set + * repeated uint32 switch_id = 1; + * @return whether the switchId field is set */ - public boolean hasBuffList() { + public boolean hasSwitchId() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated .RogueBuffData buff_list = 12; + * repeated uint32 switch_id = 1; * @return this */ - public ChessRogueBuffData clearBuffList() { + public FeatureSwitchParam clearSwitchId() { bitField0_ &= ~0x00000001; - buffList.clear(); + switchId.clear(); return this; } /** - * repeated .RogueBuffData buff_list = 12; + * repeated uint32 switch_id = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBuffList()} if you want to modify it. + * Use {@link #getMutableSwitchId()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBuffList() { - return buffList; + public RepeatedInt getSwitchId() { + return switchId; } /** - * repeated .RogueBuffData buff_list = 12; + * repeated uint32 switch_id = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75,75 +75,74 @@ public final class ChessRogueBuffDataOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBuffList() { + public RepeatedInt getMutableSwitchId() { bitField0_ |= 0x00000001; - return buffList; + return switchId; } /** - * repeated .RogueBuffData buff_list = 12; - * @param value the buffList to add + * repeated uint32 switch_id = 1; + * @param value the switchId to add * @return this */ - public ChessRogueBuffData addBuffList(final RogueBuffDataOuterClass.RogueBuffData value) { + public FeatureSwitchParam addSwitchId(final int value) { bitField0_ |= 0x00000001; - buffList.add(value); + switchId.add(value); return this; } /** - * repeated .RogueBuffData buff_list = 12; - * @param values the buffList to add + * repeated uint32 switch_id = 1; + * @param values the switchId to add * @return this */ - public ChessRogueBuffData addAllBuffList( - final RogueBuffDataOuterClass.RogueBuffData... values) { + public FeatureSwitchParam addAllSwitchId(final int... values) { bitField0_ |= 0x00000001; - buffList.addAll(values); + switchId.addAll(values); return this; } @Override - public ChessRogueBuffData copyFrom(final ChessRogueBuffData other) { + public FeatureSwitchParam copyFrom(final FeatureSwitchParam other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buffList.copyFrom(other.buffList); + switchId.copyFrom(other.switchId); } return this; } @Override - public ChessRogueBuffData mergeFrom(final ChessRogueBuffData other) { + public FeatureSwitchParam mergeFrom(final FeatureSwitchParam other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBuffList()) { - getMutableBuffList().addAll(other.buffList); + if (other.hasSwitchId()) { + getMutableSwitchId().addAll(other.switchId); } return this; } @Override - public ChessRogueBuffData clear() { + public FeatureSwitchParam clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buffList.clear(); + switchId.clear(); return this; } @Override - public ChessRogueBuffData clearQuick() { + public FeatureSwitchParam clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buffList.clearQuick(); + switchId.clear(); return this; } @@ -152,20 +151,20 @@ public final class ChessRogueBuffDataOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueBuffData)) { + if (!(o instanceof FeatureSwitchParam)) { return false; } - ChessRogueBuffData other = (ChessRogueBuffData) o; + FeatureSwitchParam other = (FeatureSwitchParam) o; return bitField0_ == other.bitField0_ - && (!hasBuffList() || buffList.equals(other.buffList)); + && (!hasSwitchId() || switchId.equals(other.switchId)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(buffList.get(i)); + for (int i = 0; i < switchId.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(switchId.array()[i]); } } } @@ -174,22 +173,23 @@ public final class ChessRogueBuffDataOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + size += (1 * switchId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(switchId); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueBuffData mergeFrom(final ProtoSource input) throws IOException { + public FeatureSwitchParam mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 98: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); + case 10: { + // switchId [packed=true] + input.readPackedUInt32(switchId, tag); bitField0_ |= 0x00000001; + tag = input.readTag(); if (tag != 0) { break; } @@ -204,6 +204,12 @@ public final class ChessRogueBuffDataOuterClass { tag = input.readTag(); break; } + case 8: { + // switchId [packed=false] + tag = input.readRepeatedUInt32(switchId, tag); + bitField0_ |= 0x00000001; + break; + } } } } @@ -212,23 +218,23 @@ public final class ChessRogueBuffDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); + output.writeRepeatedUInt32(FieldNames.switchId, switchId); } output.endObject(); } @Override - public ChessRogueBuffData mergeFrom(final JsonSource input) throws IOException { + public FeatureSwitchParam mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { + case -85277841: + case 1651375622: { + if (input.isAtField(FieldNames.switchId)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); + input.readRepeatedUInt32(switchId); bitField0_ |= 0x00000001; } } else { @@ -247,8 +253,8 @@ public final class ChessRogueBuffDataOuterClass { } @Override - public ChessRogueBuffData clone() { - return new ChessRogueBuffData().copyFrom(this); + public FeatureSwitchParam clone() { + return new FeatureSwitchParam().copyFrom(this); } @Override @@ -256,32 +262,32 @@ public final class ChessRogueBuffDataOuterClass { return ((bitField0_) == 0); } - public static ChessRogueBuffData parseFrom(final byte[] data) throws + public static FeatureSwitchParam parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueBuffData(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FeatureSwitchParam(), data).checkInitialized(); } - public static ChessRogueBuffData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueBuffData(), input).checkInitialized(); + public static FeatureSwitchParam parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FeatureSwitchParam(), input).checkInitialized(); } - public static ChessRogueBuffData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueBuffData(), input).checkInitialized(); + public static FeatureSwitchParam parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FeatureSwitchParam(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueBuffData messages + * @return factory for creating FeatureSwitchParam messages */ - public static MessageFactory getFactory() { - return ChessRogueBuffDataFactory.INSTANCE; + public static MessageFactory getFactory() { + return FeatureSwitchParamFactory.INSTANCE; } - private enum ChessRogueBuffDataFactory implements MessageFactory { + private enum FeatureSwitchParamFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueBuffData create() { - return ChessRogueBuffData.newInstance(); + public FeatureSwitchParam create() { + return FeatureSwitchParam.newInstance(); } } @@ -289,7 +295,7 @@ public final class ChessRogueBuffDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buffList = FieldName.forField("buffList", "buff_list"); + static final FieldName switchId = FieldName.forField("switchId", "switch_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/FeatureSwitchTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/FeatureSwitchTypeOuterClass.java new file mode 100644 index 0000000..afcecd0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FeatureSwitchTypeOuterClass.java @@ -0,0 +1,1351 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class FeatureSwitchTypeOuterClass { + /** + * Protobuf enum {@code FeatureSwitchType} + */ + public enum FeatureSwitchType implements ProtoEnum { + /** + * FEATURE_SWITCH_NONE = 0; + */ + FEATURE_SWITCH_NONE("FEATURE_SWITCH_NONE", 0), + + /** + * FEATURE_SWITCH_SHOP = 1; + */ + FEATURE_SWITCH_SHOP("FEATURE_SWITCH_SHOP", 1), + + /** + * FEATURE_SWITCH_LINEUP_NAME = 2; + */ + FEATURE_SWITCH_LINEUP_NAME("FEATURE_SWITCH_LINEUP_NAME", 2), + + /** + * FEATURE_SWITCH_RECHARGE_SHOP = 3; + */ + FEATURE_SWITCH_RECHARGE_SHOP("FEATURE_SWITCH_RECHARGE_SHOP", 3), + + /** + * FEATURE_SWITCH_NICKNAME = 4; + */ + FEATURE_SWITCH_NICKNAME("FEATURE_SWITCH_NICKNAME", 4), + + /** + * FEATURE_SWITCH_SIGNATURE = 5; + */ + FEATURE_SWITCH_SIGNATURE("FEATURE_SWITCH_SIGNATURE", 5), + + /** + * FEATURE_SWITCH_BATTLEPASS = 6; + */ + FEATURE_SWITCH_BATTLEPASS("FEATURE_SWITCH_BATTLEPASS", 6), + + /** + * FEATURE_SWITCH_PUNK_LORD = 7; + */ + FEATURE_SWITCH_PUNK_LORD("FEATURE_SWITCH_PUNK_LORD", 7), + + /** + * FEATURE_SWITCH_MONTHCARD_DAILY = 8; + */ + FEATURE_SWITCH_MONTHCARD_DAILY("FEATURE_SWITCH_MONTHCARD_DAILY", 8), + + /** + * FEATURE_SWITCH_PICTURE_SHARE = 9; + */ + FEATURE_SWITCH_PICTURE_SHARE("FEATURE_SWITCH_PICTURE_SHARE", 9), + + /** + * FEATURE_SWITCH_ROGUE = 10; + */ + FEATURE_SWITCH_ROGUE("FEATURE_SWITCH_ROGUE", 10), + + /** + * FEATURE_SWITCH_CHALLENGE = 11; + */ + FEATURE_SWITCH_CHALLENGE("FEATURE_SWITCH_CHALLENGE", 11), + + /** + * FEATURE_SWITCH_COCOON = 12; + */ + FEATURE_SWITCH_COCOON("FEATURE_SWITCH_COCOON", 12), + + /** + * FEATURE_SWITCH_RAID = 13; + */ + FEATURE_SWITCH_RAID("FEATURE_SWITCH_RAID", 13), + + /** + * FEATURE_SWITCH_MAZE_PLANE_EVENT = 14; + */ + FEATURE_SWITCH_MAZE_PLANE_EVENT("FEATURE_SWITCH_MAZE_PLANE_EVENT", 14), + + /** + * FEATURE_SWITCH_ACTIVITY_PANEL = 15; + */ + FEATURE_SWITCH_ACTIVITY_PANEL("FEATURE_SWITCH_ACTIVITY_PANEL", 15), + + /** + * FEATURE_SWITCH_MAILBOX = 16; + */ + FEATURE_SWITCH_MAILBOX("FEATURE_SWITCH_MAILBOX", 16), + + /** + * FEATURE_SWITCH_QUEST = 17; + */ + FEATURE_SWITCH_QUEST("FEATURE_SWITCH_QUEST", 17), + + /** + * FEATURE_SWITCH_GACHA = 18; + */ + FEATURE_SWITCH_GACHA("FEATURE_SWITCH_GACHA", 18), + + /** + * FEATURE_SWITCH_CHAT = 19; + */ + FEATURE_SWITCH_CHAT("FEATURE_SWITCH_CHAT", 19), + + /** + * FEATURE_SWITCH_MODIFY_FRIEND_ALIAS = 20; + */ + FEATURE_SWITCH_MODIFY_FRIEND_ALIAS("FEATURE_SWITCH_MODIFY_FRIEND_ALIAS", 20), + + /** + * FEATURE_SWITCH_USE_ITEM = 21; + */ + FEATURE_SWITCH_USE_ITEM("FEATURE_SWITCH_USE_ITEM", 21), + + /** + * FEATURE_SWITCH_ACTIVITY_SCHEDULE = 22; + */ + FEATURE_SWITCH_ACTIVITY_SCHEDULE("FEATURE_SWITCH_ACTIVITY_SCHEDULE", 22), + + /** + * FEATURE_SWITCH_FARM_ELEMENT = 23; + */ + FEATURE_SWITCH_FARM_ELEMENT("FEATURE_SWITCH_FARM_ELEMENT", 23), + + /** + * FEATURE_SWITCH_ACHIEVEMENT_LEVEL = 24; + */ + FEATURE_SWITCH_ACHIEVEMENT_LEVEL("FEATURE_SWITCH_ACHIEVEMENT_LEVEL", 24), + + /** + * FEATURE_SWITCH_DAILY_ACTIVE_LEVEL = 25; + */ + FEATURE_SWITCH_DAILY_ACTIVE_LEVEL("FEATURE_SWITCH_DAILY_ACTIVE_LEVEL", 25), + + /** + * FEATURE_SWITCH_PLAYER_RETURN = 26; + */ + FEATURE_SWITCH_PLAYER_RETURN("FEATURE_SWITCH_PLAYER_RETURN", 26), + + /** + * FEATURE_SWITCH_FIRST_SET_NICKNAME = 27; + */ + FEATURE_SWITCH_FIRST_SET_NICKNAME("FEATURE_SWITCH_FIRST_SET_NICKNAME", 27), + + /** + * FEATURE_SWITCH_MAIN_MISSION_REWARD = 28; + */ + FEATURE_SWITCH_MAIN_MISSION_REWARD("FEATURE_SWITCH_MAIN_MISSION_REWARD", 28), + + /** + * FEATURE_SWITCH_SUB_MISSION_REWARD = 29; + */ + FEATURE_SWITCH_SUB_MISSION_REWARD("FEATURE_SWITCH_SUB_MISSION_REWARD", 29), + + /** + * FEATURE_SWITCH_PAM_MISSION = 30; + */ + FEATURE_SWITCH_PAM_MISSION("FEATURE_SWITCH_PAM_MISSION", 30), + + /** + * FEATURE_SWITCH_DESTROY_ITEM = 32; + */ + FEATURE_SWITCH_DESTROY_ITEM("FEATURE_SWITCH_DESTROY_ITEM", 32), + + /** + * FEATURE_SWITCH_CONSUME_ITEM_TURN = 33; + */ + FEATURE_SWITCH_CONSUME_ITEM_TURN("FEATURE_SWITCH_CONSUME_ITEM_TURN", 33), + + /** + * FEATURE_SWITCH_ROGUE_MODIFIER = 34; + */ + FEATURE_SWITCH_ROGUE_MODIFIER("FEATURE_SWITCH_ROGUE_MODIFIER", 34), + + /** + * FEATURE_SWITCH_CHESS_ROGUE = 35; + */ + FEATURE_SWITCH_CHESS_ROGUE("FEATURE_SWITCH_CHESS_ROGUE", 35), + + /** + * FEATURE_SWITCH_CHESS_ROGUE_BOARD = 36; + */ + FEATURE_SWITCH_CHESS_ROGUE_BOARD("FEATURE_SWITCH_CHESS_ROGUE_BOARD", 36), + + /** + * FEATURE_SWITCH_ROLL_SHOP = 37; + */ + FEATURE_SWITCH_ROLL_SHOP("FEATURE_SWITCH_ROLL_SHOP", 37), + + /** + * FEATURE_SWITCH_H5_RETURN = 38; + */ + FEATURE_SWITCH_H5_RETURN("FEATURE_SWITCH_H5_RETURN", 38), + + /** + * FEATURE_SWITCH_OFFERING = 39; + */ + FEATURE_SWITCH_OFFERING("FEATURE_SWITCH_OFFERING", 39), + + /** + * FEATURE_SWITCH_SERVER_RED_POINT = 40; + */ + FEATURE_SWITCH_SERVER_RED_POINT("FEATURE_SWITCH_SERVER_RED_POINT", 40), + + /** + * FEATURE_SWITCH_MONOPOLY_OPTION_RATIO = 41; + */ + FEATURE_SWITCH_MONOPOLY_OPTION_RATIO("FEATURE_SWITCH_MONOPOLY_OPTION_RATIO", 41), + + /** + * FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET = 42; + */ + FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET("FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET", 42), + + /** + * FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD = 43; + */ + FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD("FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD", 43), + + /** + * FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP = 44; + */ + FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP("FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP", 44), + + /** + * FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK = 45; + */ + FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK("FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK", 45), + + /** + * FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT = 46; + */ + FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT("FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT", 46), + + /** + * FEATURE_SWITCH_PVP = 47; + */ + FEATURE_SWITCH_PVP("FEATURE_SWITCH_PVP", 47), + + /** + * FEATURE_SWITCH_ROGUE_MODE = 48; + */ + FEATURE_SWITCH_ROGUE_MODE("FEATURE_SWITCH_ROGUE_MODE", 48), + + /** + * FEATURE_SWITCH_ROGUE_TOURN_UGC = 49; + */ + FEATURE_SWITCH_ROGUE_TOURN_UGC("FEATURE_SWITCH_ROGUE_TOURN_UGC", 49), + + /** + * FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME = 50; + */ + FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME("FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME", 50), + + /** + * FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP = 51; + */ + FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP("FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP", 51), + + /** + * FEATURE_SWITCH_RED_DOT = 52; + */ + FEATURE_SWITCH_RED_DOT("FEATURE_SWITCH_RED_DOT", 52), + + /** + * FEATURE_SWITCH_GAME_STATE_SERVICE = 53; + */ + FEATURE_SWITCH_GAME_STATE_SERVICE("FEATURE_SWITCH_GAME_STATE_SERVICE", 53), + + /** + * FEATURE_SWITCH_BENEFIT_INDEX = 54; + */ + FEATURE_SWITCH_BENEFIT_INDEX("FEATURE_SWITCH_BENEFIT_INDEX", 54), + + /** + * FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF = 55; + */ + FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF("FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF", 55), + + /** + * FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET = 56; + */ + FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET("FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET", 56), + + /** + * FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN = 58; + */ + FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN("FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN", 58), + + /** + * FEATURE_SWITCH_GACHA_DECIDE_ITEM = 59; + */ + FEATURE_SWITCH_GACHA_DECIDE_ITEM("FEATURE_SWITCH_GACHA_DECIDE_ITEM", 59), + + /** + * FEATURE_SWITCH_ITEM_SYNC = 60; + */ + FEATURE_SWITCH_ITEM_SYNC("FEATURE_SWITCH_ITEM_SYNC", 60), + + /** + * FEATURE_SWITCH_RECHARGE_BENEFIT = 61; + */ + FEATURE_SWITCH_RECHARGE_BENEFIT("FEATURE_SWITCH_RECHARGE_BENEFIT", 61), + + /** + * FEATURE_SWITCH_RECHARGE_GIFT = 62; + */ + FEATURE_SWITCH_RECHARGE_GIFT("FEATURE_SWITCH_RECHARGE_GIFT", 62), + + /** + * FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE = 63; + */ + FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE("FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE", 63), + + /** + * FEATURE_SWITCH_GACHA_AVATAR_TOAST = 64; + */ + FEATURE_SWITCH_GACHA_AVATAR_TOAST("FEATURE_SWITCH_GACHA_AVATAR_TOAST", 64), + + /** + * FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME = 65; + */ + FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME("FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME", 65), + + /** + * FEATURE_SWITCH_RELIC_SMART_DISCARD = 66; + */ + FEATURE_SWITCH_RELIC_SMART_DISCARD("FEATURE_SWITCH_RELIC_SMART_DISCARD", 66), + + /** + * FEATURE_SWITCH_PLANETFES_SOCIAL = 67; + */ + FEATURE_SWITCH_PLANETFES_SOCIAL("FEATURE_SWITCH_PLANETFES_SOCIAL", 67), + + /** + * FEATURE_SWITCH_RELIC_REFORGE = 68; + */ + FEATURE_SWITCH_RELIC_REFORGE("FEATURE_SWITCH_RELIC_REFORGE", 68), + + /** + * FEATURE_SWITCH_RELIC_COMPOSE = 69; + */ + FEATURE_SWITCH_RELIC_COMPOSE("FEATURE_SWITCH_RELIC_COMPOSE", 69), + + /** + * FEATURE_SWITCH_RELIC_DECOMPOSE = 70; + */ + FEATURE_SWITCH_RELIC_DECOMPOSE("FEATURE_SWITCH_RELIC_DECOMPOSE", 70), + + /** + * FEATURE_SWITCH_ROGUE_TOURN_COCOON = 71; + */ + FEATURE_SWITCH_ROGUE_TOURN_COCOON("FEATURE_SWITCH_ROGUE_TOURN_COCOON", 71), + + /** + * FEATURE_SWITCH_ITEM_COMPOSE = 72; + */ + FEATURE_SWITCH_ITEM_COMPOSE("FEATURE_SWITCH_ITEM_COMPOSE", 72), + + /** + * FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE = 73; + */ + FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE("FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE", 73), + + /** + * FEATURE_SWITCH_SKIP_PERFORMANCE = 74; + */ + FEATURE_SWITCH_SKIP_PERFORMANCE("FEATURE_SWITCH_SKIP_PERFORMANCE", 74), + + /** + * FEATURE_SWITCH_FATE = 75; + */ + FEATURE_SWITCH_FATE("FEATURE_SWITCH_FATE", 75), + + /** + * FEATURE_SWITCH_FATE_AVATAR_HANDBOOK = 76; + */ + FEATURE_SWITCH_FATE_AVATAR_HANDBOOK("FEATURE_SWITCH_FATE_AVATAR_HANDBOOK", 76), + + /** + * FEATURE_SWITCH_ELF_RESTAURANT = 77; + */ + FEATURE_SWITCH_ELF_RESTAURANT("FEATURE_SWITCH_ELF_RESTAURANT", 77), + + /** + * FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL = 78; + */ + FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL("FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL", 78), + + /** + * FEATURE_SWITCH_HIPPLEN = 79; + */ + FEATURE_SWITCH_HIPPLEN("FEATURE_SWITCH_HIPPLEN", 79), + + /** + * FEATURE_SWITCH_HIPPLEN_EFFECT = 80; + */ + FEATURE_SWITCH_HIPPLEN_EFFECT("FEATURE_SWITCH_HIPPLEN_EFFECT", 80), + + /** + * FEATURE_SWITCH_REPLAY_PERFORMANCE = 81; + */ + FEATURE_SWITCH_REPLAY_PERFORMANCE("FEATURE_SWITCH_REPLAY_PERFORMANCE", 81), + + /** + * FEATURE_SWITCH_GRID_FIGHT_REF = 82; + */ + FEATURE_SWITCH_GRID_FIGHT_REF("FEATURE_SWITCH_GRID_FIGHT_REF", 82), + + /** + * FEATURE_SWITCH_RELIC_BOX = 83; + */ + FEATURE_SWITCH_RELIC_BOX("FEATURE_SWITCH_RELIC_BOX", 83), + + /** + * FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY = 84; + */ + FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY("FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY", 84), + + /** + * FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT = 85; + */ + FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT("FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT", 85), + + /** + * FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF = 86; + */ + FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF("FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF", 86); + + /** + * FEATURE_SWITCH_NONE = 0; + */ + public static final int FEATURE_SWITCH_NONE_VALUE = 0; + + /** + * FEATURE_SWITCH_SHOP = 1; + */ + public static final int FEATURE_SWITCH_SHOP_VALUE = 1; + + /** + * FEATURE_SWITCH_LINEUP_NAME = 2; + */ + public static final int FEATURE_SWITCH_LINEUP_NAME_VALUE = 2; + + /** + * FEATURE_SWITCH_RECHARGE_SHOP = 3; + */ + public static final int FEATURE_SWITCH_RECHARGE_SHOP_VALUE = 3; + + /** + * FEATURE_SWITCH_NICKNAME = 4; + */ + public static final int FEATURE_SWITCH_NICKNAME_VALUE = 4; + + /** + * FEATURE_SWITCH_SIGNATURE = 5; + */ + public static final int FEATURE_SWITCH_SIGNATURE_VALUE = 5; + + /** + * FEATURE_SWITCH_BATTLEPASS = 6; + */ + public static final int FEATURE_SWITCH_BATTLEPASS_VALUE = 6; + + /** + * FEATURE_SWITCH_PUNK_LORD = 7; + */ + public static final int FEATURE_SWITCH_PUNK_LORD_VALUE = 7; + + /** + * FEATURE_SWITCH_MONTHCARD_DAILY = 8; + */ + public static final int FEATURE_SWITCH_MONTHCARD_DAILY_VALUE = 8; + + /** + * FEATURE_SWITCH_PICTURE_SHARE = 9; + */ + public static final int FEATURE_SWITCH_PICTURE_SHARE_VALUE = 9; + + /** + * FEATURE_SWITCH_ROGUE = 10; + */ + public static final int FEATURE_SWITCH_ROGUE_VALUE = 10; + + /** + * FEATURE_SWITCH_CHALLENGE = 11; + */ + public static final int FEATURE_SWITCH_CHALLENGE_VALUE = 11; + + /** + * FEATURE_SWITCH_COCOON = 12; + */ + public static final int FEATURE_SWITCH_COCOON_VALUE = 12; + + /** + * FEATURE_SWITCH_RAID = 13; + */ + public static final int FEATURE_SWITCH_RAID_VALUE = 13; + + /** + * FEATURE_SWITCH_MAZE_PLANE_EVENT = 14; + */ + public static final int FEATURE_SWITCH_MAZE_PLANE_EVENT_VALUE = 14; + + /** + * FEATURE_SWITCH_ACTIVITY_PANEL = 15; + */ + public static final int FEATURE_SWITCH_ACTIVITY_PANEL_VALUE = 15; + + /** + * FEATURE_SWITCH_MAILBOX = 16; + */ + public static final int FEATURE_SWITCH_MAILBOX_VALUE = 16; + + /** + * FEATURE_SWITCH_QUEST = 17; + */ + public static final int FEATURE_SWITCH_QUEST_VALUE = 17; + + /** + * FEATURE_SWITCH_GACHA = 18; + */ + public static final int FEATURE_SWITCH_GACHA_VALUE = 18; + + /** + * FEATURE_SWITCH_CHAT = 19; + */ + public static final int FEATURE_SWITCH_CHAT_VALUE = 19; + + /** + * FEATURE_SWITCH_MODIFY_FRIEND_ALIAS = 20; + */ + public static final int FEATURE_SWITCH_MODIFY_FRIEND_ALIAS_VALUE = 20; + + /** + * FEATURE_SWITCH_USE_ITEM = 21; + */ + public static final int FEATURE_SWITCH_USE_ITEM_VALUE = 21; + + /** + * FEATURE_SWITCH_ACTIVITY_SCHEDULE = 22; + */ + public static final int FEATURE_SWITCH_ACTIVITY_SCHEDULE_VALUE = 22; + + /** + * FEATURE_SWITCH_FARM_ELEMENT = 23; + */ + public static final int FEATURE_SWITCH_FARM_ELEMENT_VALUE = 23; + + /** + * FEATURE_SWITCH_ACHIEVEMENT_LEVEL = 24; + */ + public static final int FEATURE_SWITCH_ACHIEVEMENT_LEVEL_VALUE = 24; + + /** + * FEATURE_SWITCH_DAILY_ACTIVE_LEVEL = 25; + */ + public static final int FEATURE_SWITCH_DAILY_ACTIVE_LEVEL_VALUE = 25; + + /** + * FEATURE_SWITCH_PLAYER_RETURN = 26; + */ + public static final int FEATURE_SWITCH_PLAYER_RETURN_VALUE = 26; + + /** + * FEATURE_SWITCH_FIRST_SET_NICKNAME = 27; + */ + public static final int FEATURE_SWITCH_FIRST_SET_NICKNAME_VALUE = 27; + + /** + * FEATURE_SWITCH_MAIN_MISSION_REWARD = 28; + */ + public static final int FEATURE_SWITCH_MAIN_MISSION_REWARD_VALUE = 28; + + /** + * FEATURE_SWITCH_SUB_MISSION_REWARD = 29; + */ + public static final int FEATURE_SWITCH_SUB_MISSION_REWARD_VALUE = 29; + + /** + * FEATURE_SWITCH_PAM_MISSION = 30; + */ + public static final int FEATURE_SWITCH_PAM_MISSION_VALUE = 30; + + /** + * FEATURE_SWITCH_DESTROY_ITEM = 32; + */ + public static final int FEATURE_SWITCH_DESTROY_ITEM_VALUE = 32; + + /** + * FEATURE_SWITCH_CONSUME_ITEM_TURN = 33; + */ + public static final int FEATURE_SWITCH_CONSUME_ITEM_TURN_VALUE = 33; + + /** + * FEATURE_SWITCH_ROGUE_MODIFIER = 34; + */ + public static final int FEATURE_SWITCH_ROGUE_MODIFIER_VALUE = 34; + + /** + * FEATURE_SWITCH_CHESS_ROGUE = 35; + */ + public static final int FEATURE_SWITCH_CHESS_ROGUE_VALUE = 35; + + /** + * FEATURE_SWITCH_CHESS_ROGUE_BOARD = 36; + */ + public static final int FEATURE_SWITCH_CHESS_ROGUE_BOARD_VALUE = 36; + + /** + * FEATURE_SWITCH_ROLL_SHOP = 37; + */ + public static final int FEATURE_SWITCH_ROLL_SHOP_VALUE = 37; + + /** + * FEATURE_SWITCH_H5_RETURN = 38; + */ + public static final int FEATURE_SWITCH_H5_RETURN_VALUE = 38; + + /** + * FEATURE_SWITCH_OFFERING = 39; + */ + public static final int FEATURE_SWITCH_OFFERING_VALUE = 39; + + /** + * FEATURE_SWITCH_SERVER_RED_POINT = 40; + */ + public static final int FEATURE_SWITCH_SERVER_RED_POINT_VALUE = 40; + + /** + * FEATURE_SWITCH_MONOPOLY_OPTION_RATIO = 41; + */ + public static final int FEATURE_SWITCH_MONOPOLY_OPTION_RATIO_VALUE = 41; + + /** + * FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET = 42; + */ + public static final int FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET_VALUE = 42; + + /** + * FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD = 43; + */ + public static final int FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD_VALUE = 43; + + /** + * FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP = 44; + */ + public static final int FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP_VALUE = 44; + + /** + * FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK = 45; + */ + public static final int FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK_VALUE = 45; + + /** + * FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT = 46; + */ + public static final int FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT_VALUE = 46; + + /** + * FEATURE_SWITCH_PVP = 47; + */ + public static final int FEATURE_SWITCH_PVP_VALUE = 47; + + /** + * FEATURE_SWITCH_ROGUE_MODE = 48; + */ + public static final int FEATURE_SWITCH_ROGUE_MODE_VALUE = 48; + + /** + * FEATURE_SWITCH_ROGUE_TOURN_UGC = 49; + */ + public static final int FEATURE_SWITCH_ROGUE_TOURN_UGC_VALUE = 49; + + /** + * FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME = 50; + */ + public static final int FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME_VALUE = 50; + + /** + * FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP = 51; + */ + public static final int FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP_VALUE = 51; + + /** + * FEATURE_SWITCH_RED_DOT = 52; + */ + public static final int FEATURE_SWITCH_RED_DOT_VALUE = 52; + + /** + * FEATURE_SWITCH_GAME_STATE_SERVICE = 53; + */ + public static final int FEATURE_SWITCH_GAME_STATE_SERVICE_VALUE = 53; + + /** + * FEATURE_SWITCH_BENEFIT_INDEX = 54; + */ + public static final int FEATURE_SWITCH_BENEFIT_INDEX_VALUE = 54; + + /** + * FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF = 55; + */ + public static final int FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_VALUE = 55; + + /** + * FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET = 56; + */ + public static final int FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET_VALUE = 56; + + /** + * FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN = 58; + */ + public static final int FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN_VALUE = 58; + + /** + * FEATURE_SWITCH_GACHA_DECIDE_ITEM = 59; + */ + public static final int FEATURE_SWITCH_GACHA_DECIDE_ITEM_VALUE = 59; + + /** + * FEATURE_SWITCH_ITEM_SYNC = 60; + */ + public static final int FEATURE_SWITCH_ITEM_SYNC_VALUE = 60; + + /** + * FEATURE_SWITCH_RECHARGE_BENEFIT = 61; + */ + public static final int FEATURE_SWITCH_RECHARGE_BENEFIT_VALUE = 61; + + /** + * FEATURE_SWITCH_RECHARGE_GIFT = 62; + */ + public static final int FEATURE_SWITCH_RECHARGE_GIFT_VALUE = 62; + + /** + * FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE = 63; + */ + public static final int FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_VALUE = 63; + + /** + * FEATURE_SWITCH_GACHA_AVATAR_TOAST = 64; + */ + public static final int FEATURE_SWITCH_GACHA_AVATAR_TOAST_VALUE = 64; + + /** + * FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME = 65; + */ + public static final int FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME_VALUE = 65; + + /** + * FEATURE_SWITCH_RELIC_SMART_DISCARD = 66; + */ + public static final int FEATURE_SWITCH_RELIC_SMART_DISCARD_VALUE = 66; + + /** + * FEATURE_SWITCH_PLANETFES_SOCIAL = 67; + */ + public static final int FEATURE_SWITCH_PLANETFES_SOCIAL_VALUE = 67; + + /** + * FEATURE_SWITCH_RELIC_REFORGE = 68; + */ + public static final int FEATURE_SWITCH_RELIC_REFORGE_VALUE = 68; + + /** + * FEATURE_SWITCH_RELIC_COMPOSE = 69; + */ + public static final int FEATURE_SWITCH_RELIC_COMPOSE_VALUE = 69; + + /** + * FEATURE_SWITCH_RELIC_DECOMPOSE = 70; + */ + public static final int FEATURE_SWITCH_RELIC_DECOMPOSE_VALUE = 70; + + /** + * FEATURE_SWITCH_ROGUE_TOURN_COCOON = 71; + */ + public static final int FEATURE_SWITCH_ROGUE_TOURN_COCOON_VALUE = 71; + + /** + * FEATURE_SWITCH_ITEM_COMPOSE = 72; + */ + public static final int FEATURE_SWITCH_ITEM_COMPOSE_VALUE = 72; + + /** + * FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE = 73; + */ + public static final int FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE_VALUE = 73; + + /** + * FEATURE_SWITCH_SKIP_PERFORMANCE = 74; + */ + public static final int FEATURE_SWITCH_SKIP_PERFORMANCE_VALUE = 74; + + /** + * FEATURE_SWITCH_FATE = 75; + */ + public static final int FEATURE_SWITCH_FATE_VALUE = 75; + + /** + * FEATURE_SWITCH_FATE_AVATAR_HANDBOOK = 76; + */ + public static final int FEATURE_SWITCH_FATE_AVATAR_HANDBOOK_VALUE = 76; + + /** + * FEATURE_SWITCH_ELF_RESTAURANT = 77; + */ + public static final int FEATURE_SWITCH_ELF_RESTAURANT_VALUE = 77; + + /** + * FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL = 78; + */ + public static final int FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL_VALUE = 78; + + /** + * FEATURE_SWITCH_HIPPLEN = 79; + */ + public static final int FEATURE_SWITCH_HIPPLEN_VALUE = 79; + + /** + * FEATURE_SWITCH_HIPPLEN_EFFECT = 80; + */ + public static final int FEATURE_SWITCH_HIPPLEN_EFFECT_VALUE = 80; + + /** + * FEATURE_SWITCH_REPLAY_PERFORMANCE = 81; + */ + public static final int FEATURE_SWITCH_REPLAY_PERFORMANCE_VALUE = 81; + + /** + * FEATURE_SWITCH_GRID_FIGHT_REF = 82; + */ + public static final int FEATURE_SWITCH_GRID_FIGHT_REF_VALUE = 82; + + /** + * FEATURE_SWITCH_RELIC_BOX = 83; + */ + public static final int FEATURE_SWITCH_RELIC_BOX_VALUE = 83; + + /** + * FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY = 84; + */ + public static final int FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY_VALUE = 84; + + /** + * FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT = 85; + */ + public static final int FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT_VALUE = 85; + + /** + * FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF = 86; + */ + public static final int FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF_VALUE = 86; + + private final String name; + + private final int number; + + private FeatureSwitchType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return FeatureSwitchTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static FeatureSwitchType forNumber(int value) { + return FeatureSwitchTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static FeatureSwitchType forNumberOr(int number, FeatureSwitchType other) { + FeatureSwitchType value = forNumber(number); + return value == null ? other : value; + } + + enum FeatureSwitchTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + @Override + public final FeatureSwitchType forNumber(final int value) { + switch(value) { + case 0: return FEATURE_SWITCH_NONE; + case 1: return FEATURE_SWITCH_SHOP; + case 2: return FEATURE_SWITCH_LINEUP_NAME; + case 3: return FEATURE_SWITCH_RECHARGE_SHOP; + case 4: return FEATURE_SWITCH_NICKNAME; + case 5: return FEATURE_SWITCH_SIGNATURE; + case 6: return FEATURE_SWITCH_BATTLEPASS; + case 7: return FEATURE_SWITCH_PUNK_LORD; + case 8: return FEATURE_SWITCH_MONTHCARD_DAILY; + case 9: return FEATURE_SWITCH_PICTURE_SHARE; + case 10: return FEATURE_SWITCH_ROGUE; + case 11: return FEATURE_SWITCH_CHALLENGE; + case 12: return FEATURE_SWITCH_COCOON; + case 13: return FEATURE_SWITCH_RAID; + case 14: return FEATURE_SWITCH_MAZE_PLANE_EVENT; + case 15: return FEATURE_SWITCH_ACTIVITY_PANEL; + case 16: return FEATURE_SWITCH_MAILBOX; + case 17: return FEATURE_SWITCH_QUEST; + case 18: return FEATURE_SWITCH_GACHA; + case 19: return FEATURE_SWITCH_CHAT; + case 20: return FEATURE_SWITCH_MODIFY_FRIEND_ALIAS; + case 21: return FEATURE_SWITCH_USE_ITEM; + case 22: return FEATURE_SWITCH_ACTIVITY_SCHEDULE; + case 23: return FEATURE_SWITCH_FARM_ELEMENT; + case 24: return FEATURE_SWITCH_ACHIEVEMENT_LEVEL; + case 25: return FEATURE_SWITCH_DAILY_ACTIVE_LEVEL; + case 26: return FEATURE_SWITCH_PLAYER_RETURN; + case 27: return FEATURE_SWITCH_FIRST_SET_NICKNAME; + case 28: return FEATURE_SWITCH_MAIN_MISSION_REWARD; + case 29: return FEATURE_SWITCH_SUB_MISSION_REWARD; + case 30: return FEATURE_SWITCH_PAM_MISSION; + case 32: return FEATURE_SWITCH_DESTROY_ITEM; + case 33: return FEATURE_SWITCH_CONSUME_ITEM_TURN; + case 34: return FEATURE_SWITCH_ROGUE_MODIFIER; + case 35: return FEATURE_SWITCH_CHESS_ROGUE; + case 36: return FEATURE_SWITCH_CHESS_ROGUE_BOARD; + case 37: return FEATURE_SWITCH_ROLL_SHOP; + case 38: return FEATURE_SWITCH_H5_RETURN; + case 39: return FEATURE_SWITCH_OFFERING; + case 40: return FEATURE_SWITCH_SERVER_RED_POINT; + case 41: return FEATURE_SWITCH_MONOPOLY_OPTION_RATIO; + case 42: return FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET; + case 43: return FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD; + case 44: return FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP; + case 45: return FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK; + case 46: return FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT; + case 47: return FEATURE_SWITCH_PVP; + case 48: return FEATURE_SWITCH_ROGUE_MODE; + case 49: return FEATURE_SWITCH_ROGUE_TOURN_UGC; + case 50: return FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME; + case 51: return FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP; + case 52: return FEATURE_SWITCH_RED_DOT; + case 53: return FEATURE_SWITCH_GAME_STATE_SERVICE; + case 54: return FEATURE_SWITCH_BENEFIT_INDEX; + case 55: return FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF; + case 56: return FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET; + case 58: return FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN; + case 59: return FEATURE_SWITCH_GACHA_DECIDE_ITEM; + case 60: return FEATURE_SWITCH_ITEM_SYNC; + case 61: return FEATURE_SWITCH_RECHARGE_BENEFIT; + case 62: return FEATURE_SWITCH_RECHARGE_GIFT; + case 63: return FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE; + case 64: return FEATURE_SWITCH_GACHA_AVATAR_TOAST; + case 65: return FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME; + case 66: return FEATURE_SWITCH_RELIC_SMART_DISCARD; + case 67: return FEATURE_SWITCH_PLANETFES_SOCIAL; + case 68: return FEATURE_SWITCH_RELIC_REFORGE; + case 69: return FEATURE_SWITCH_RELIC_COMPOSE; + case 70: return FEATURE_SWITCH_RELIC_DECOMPOSE; + case 71: return FEATURE_SWITCH_ROGUE_TOURN_COCOON; + case 72: return FEATURE_SWITCH_ITEM_COMPOSE; + case 73: return FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE; + case 74: return FEATURE_SWITCH_SKIP_PERFORMANCE; + case 75: return FEATURE_SWITCH_FATE; + case 76: return FEATURE_SWITCH_FATE_AVATAR_HANDBOOK; + case 77: return FEATURE_SWITCH_ELF_RESTAURANT; + case 78: return FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL; + case 79: return FEATURE_SWITCH_HIPPLEN; + case 80: return FEATURE_SWITCH_HIPPLEN_EFFECT; + case 81: return FEATURE_SWITCH_REPLAY_PERFORMANCE; + case 82: return FEATURE_SWITCH_GRID_FIGHT_REF; + case 83: return FEATURE_SWITCH_RELIC_BOX; + case 84: return FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY; + case 85: return FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT; + case 86: return FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF; + default: return null; + } + } + + @Override + public final FeatureSwitchType forName(final CharSequence value) { + switch (value.length()) { + case 18: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_PVP", value)) { + return FEATURE_SWITCH_PVP; + } + break; + } + case 19: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_NONE", value)) { + return FEATURE_SWITCH_NONE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_SHOP", value)) { + return FEATURE_SWITCH_SHOP; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RAID", value)) { + return FEATURE_SWITCH_RAID; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_CHAT", value)) { + return FEATURE_SWITCH_CHAT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_FATE", value)) { + return FEATURE_SWITCH_FATE; + } + break; + } + case 20: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE", value)) { + return FEATURE_SWITCH_ROGUE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_QUEST", value)) { + return FEATURE_SWITCH_QUEST; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GACHA", value)) { + return FEATURE_SWITCH_GACHA; + } + break; + } + case 21: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_COCOON", value)) { + return FEATURE_SWITCH_COCOON; + } + break; + } + case 22: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MAILBOX", value)) { + return FEATURE_SWITCH_MAILBOX; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RED_DOT", value)) { + return FEATURE_SWITCH_RED_DOT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_HIPPLEN", value)) { + return FEATURE_SWITCH_HIPPLEN; + } + break; + } + case 23: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_NICKNAME", value)) { + return FEATURE_SWITCH_NICKNAME; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_USE_ITEM", value)) { + return FEATURE_SWITCH_USE_ITEM; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_OFFERING", value)) { + return FEATURE_SWITCH_OFFERING; + } + break; + } + case 24: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_SIGNATURE", value)) { + return FEATURE_SWITCH_SIGNATURE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_PUNK_LORD", value)) { + return FEATURE_SWITCH_PUNK_LORD; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_CHALLENGE", value)) { + return FEATURE_SWITCH_CHALLENGE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROLL_SHOP", value)) { + return FEATURE_SWITCH_ROLL_SHOP; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_H5_RETURN", value)) { + return FEATURE_SWITCH_H5_RETURN; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ITEM_SYNC", value)) { + return FEATURE_SWITCH_ITEM_SYNC; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RELIC_BOX", value)) { + return FEATURE_SWITCH_RELIC_BOX; + } + break; + } + case 25: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_BATTLEPASS", value)) { + return FEATURE_SWITCH_BATTLEPASS; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_MODE", value)) { + return FEATURE_SWITCH_ROGUE_MODE; + } + break; + } + case 26: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_LINEUP_NAME", value)) { + return FEATURE_SWITCH_LINEUP_NAME; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_PAM_MISSION", value)) { + return FEATURE_SWITCH_PAM_MISSION; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_CHESS_ROGUE", value)) { + return FEATURE_SWITCH_CHESS_ROGUE; + } + break; + } + case 27: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_FARM_ELEMENT", value)) { + return FEATURE_SWITCH_FARM_ELEMENT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_DESTROY_ITEM", value)) { + return FEATURE_SWITCH_DESTROY_ITEM; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ITEM_COMPOSE", value)) { + return FEATURE_SWITCH_ITEM_COMPOSE; + } + break; + } + case 28: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_RECHARGE_SHOP", value)) { + return FEATURE_SWITCH_RECHARGE_SHOP; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_PICTURE_SHARE", value)) { + return FEATURE_SWITCH_PICTURE_SHARE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_PLAYER_RETURN", value)) { + return FEATURE_SWITCH_PLAYER_RETURN; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_BENEFIT_INDEX", value)) { + return FEATURE_SWITCH_BENEFIT_INDEX; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RECHARGE_GIFT", value)) { + return FEATURE_SWITCH_RECHARGE_GIFT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RELIC_REFORGE", value)) { + return FEATURE_SWITCH_RELIC_REFORGE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RELIC_COMPOSE", value)) { + return FEATURE_SWITCH_RELIC_COMPOSE; + } + break; + } + case 29: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_ACTIVITY_PANEL", value)) { + return FEATURE_SWITCH_ACTIVITY_PANEL; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_MODIFIER", value)) { + return FEATURE_SWITCH_ROGUE_MODIFIER; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ELF_RESTAURANT", value)) { + return FEATURE_SWITCH_ELF_RESTAURANT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_HIPPLEN_EFFECT", value)) { + return FEATURE_SWITCH_HIPPLEN_EFFECT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GRID_FIGHT_REF", value)) { + return FEATURE_SWITCH_GRID_FIGHT_REF; + } + break; + } + case 30: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MONTHCARD_DAILY", value)) { + return FEATURE_SWITCH_MONTHCARD_DAILY; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_TOURN_UGC", value)) { + return FEATURE_SWITCH_ROGUE_TOURN_UGC; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RELIC_DECOMPOSE", value)) { + return FEATURE_SWITCH_RELIC_DECOMPOSE; + } + break; + } + case 31: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MAZE_PLANE_EVENT", value)) { + return FEATURE_SWITCH_MAZE_PLANE_EVENT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_SERVER_RED_POINT", value)) { + return FEATURE_SWITCH_SERVER_RED_POINT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RECHARGE_BENEFIT", value)) { + return FEATURE_SWITCH_RECHARGE_BENEFIT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_PLANETFES_SOCIAL", value)) { + return FEATURE_SWITCH_PLANETFES_SOCIAL; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_SKIP_PERFORMANCE", value)) { + return FEATURE_SWITCH_SKIP_PERFORMANCE; + } + break; + } + case 32: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_ACTIVITY_SCHEDULE", value)) { + return FEATURE_SWITCH_ACTIVITY_SCHEDULE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ACHIEVEMENT_LEVEL", value)) { + return FEATURE_SWITCH_ACHIEVEMENT_LEVEL; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_CONSUME_ITEM_TURN", value)) { + return FEATURE_SWITCH_CONSUME_ITEM_TURN; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_CHESS_ROGUE_BOARD", value)) { + return FEATURE_SWITCH_CHESS_ROGUE_BOARD; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GACHA_DECIDE_ITEM", value)) { + return FEATURE_SWITCH_GACHA_DECIDE_ITEM; + } + break; + } + case 33: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_DAILY_ACTIVE_LEVEL", value)) { + return FEATURE_SWITCH_DAILY_ACTIVE_LEVEL; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_FIRST_SET_NICKNAME", value)) { + return FEATURE_SWITCH_FIRST_SET_NICKNAME; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_SUB_MISSION_REWARD", value)) { + return FEATURE_SWITCH_SUB_MISSION_REWARD; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GAME_STATE_SERVICE", value)) { + return FEATURE_SWITCH_GAME_STATE_SERVICE; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GACHA_AVATAR_TOAST", value)) { + return FEATURE_SWITCH_GACHA_AVATAR_TOAST; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_TOURN_COCOON", value)) { + return FEATURE_SWITCH_ROGUE_TOURN_COCOON; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_REPLAY_PERFORMANCE", value)) { + return FEATURE_SWITCH_REPLAY_PERFORMANCE; + } + break; + } + case 34: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MODIFY_FRIEND_ALIAS", value)) { + return FEATURE_SWITCH_MODIFY_FRIEND_ALIAS; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_MAIN_MISSION_REWARD", value)) { + return FEATURE_SWITCH_MAIN_MISSION_REWARD; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_RELIC_SMART_DISCARD", value)) { + return FEATURE_SWITCH_RELIC_SMART_DISCARD; + } + break; + } + case 35: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_FATE_AVATAR_HANDBOOK", value)) { + return FEATURE_SWITCH_FATE_AVATAR_HANDBOOK; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL", value)) { + return FEATURE_SWITCH_BATTLE_TIMEOUT_LEGAL; + } + break; + } + case 36: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MONOPOLY_OPTION_RATIO", value)) { + return FEATURE_SWITCH_MONOPOLY_OPTION_RATIO; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK", value)) { + return FEATURE_SWITCH_PSN_MEMBER_SHIP_CHECK; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF", value)) { + return FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF; + } + break; + } + case 37: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME", value)) { + return FEATURE_SWITCH_RELIC_FILTER_PLAN_NAME; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT", value)) { + return FEATURE_SWITCH_GRID_FIGHT_BAN_AUGMENT; + } + break; + } + case 38: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP", value)) { + return FEATURE_SWITCH_MAZE_ITEM_USE_BUFF_DROP; + } + break; + } + case 39: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT", value)) { + return FEATURE_SWITCH_PLAYER_BOARD_DEVELOPMENT; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN", value)) { + return FEATURE_SWITCH_IMPORT_RELIC_FILTER_PLAN; + } + break; + } + case 41: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET", value)) { + return FEATURE_SWITCH_MONOPOLY_GET_RAFFLE_TICKET; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP", value)) { + return FEATURE_SWITCH_CHALLENGE_RECOMMEND_LINEUP; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY", value)) { + return FEATURE_SWITCH_GRID_FIGHT_START_GAME_PLAY; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF", value)) { + return FEATURE_SWITCH_GRID_FIGHT_BAN_PORTAL_BUFF; + } + break; + } + case 42: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD", value)) { + return FEATURE_SWITCH_MONOPOLY_TAKE_RAFFLE_REWARD; + } + if (ProtoUtil.isEqual("FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE", value)) { + return FEATURE_SWITCH_GROW_MATERIAL_AUTO_COMPLETE; + } + break; + } + case 43: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET", value)) { + return FEATURE_SWITCH_PRE_AVATAR_SET_GROWTH_TARGET; + } + break; + } + case 47: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE", value)) { + return FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE; + } + break; + } + case 54: { + if (ProtoUtil.isEqual("FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME", value)) { + return FEATURE_SWITCH_ROGUE_TOURN_BUILD_REF_SHARE_CODE_RENAME; + } + break; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FinishQuestCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishQuestCsReqOuterClass.java new file mode 100644 index 0000000..73cb6cc --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FinishQuestCsReqOuterClass.java @@ -0,0 +1,422 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class FinishQuestCsReqOuterClass { + /** + * Protobuf type {@code FinishQuestCsReq} + */ + public static final class FinishQuestCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 prop_id = 9; + */ + private int propId; + + /** + * optional uint32 group_id = 14; + */ + private int groupId; + + /** + * optional uint32 quest_id = 15; + */ + private int questId; + + private FinishQuestCsReq() { + } + + /** + * @return a new empty instance of {@code FinishQuestCsReq} + */ + public static FinishQuestCsReq newInstance() { + return new FinishQuestCsReq(); + } + + /** + * optional uint32 prop_id = 9; + * @return whether the propId field is set + */ + public boolean hasPropId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 prop_id = 9; + * @return this + */ + public FinishQuestCsReq clearPropId() { + bitField0_ &= ~0x00000001; + propId = 0; + return this; + } + + /** + * optional uint32 prop_id = 9; + * @return the propId + */ + public int getPropId() { + return propId; + } + + /** + * optional uint32 prop_id = 9; + * @param value the propId to set + * @return this + */ + public FinishQuestCsReq setPropId(final int value) { + bitField0_ |= 0x00000001; + propId = value; + return this; + } + + /** + * optional uint32 group_id = 14; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 14; + * @return this + */ + public FinishQuestCsReq clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 14; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 14; + * @param value the groupId to set + * @return this + */ + public FinishQuestCsReq setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional uint32 quest_id = 15; + * @return whether the questId field is set + */ + public boolean hasQuestId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 quest_id = 15; + * @return this + */ + public FinishQuestCsReq clearQuestId() { + bitField0_ &= ~0x00000004; + questId = 0; + return this; + } + + /** + * optional uint32 quest_id = 15; + * @return the questId + */ + public int getQuestId() { + return questId; + } + + /** + * optional uint32 quest_id = 15; + * @param value the questId to set + * @return this + */ + public FinishQuestCsReq setQuestId(final int value) { + bitField0_ |= 0x00000004; + questId = value; + return this; + } + + @Override + public FinishQuestCsReq copyFrom(final FinishQuestCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + propId = other.propId; + groupId = other.groupId; + questId = other.questId; + } + return this; + } + + @Override + public FinishQuestCsReq mergeFrom(final FinishQuestCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasPropId()) { + setPropId(other.propId); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasQuestId()) { + setQuestId(other.questId); + } + return this; + } + + @Override + public FinishQuestCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propId = 0; + groupId = 0; + questId = 0; + return this; + } + + @Override + public FinishQuestCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FinishQuestCsReq)) { + return false; + } + FinishQuestCsReq other = (FinishQuestCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasPropId() || propId == other.propId) + && (!hasGroupId() || groupId == other.groupId) + && (!hasQuestId() || questId == other.questId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(propId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(questId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(questId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FinishQuestCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // propId + propId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // questId + questId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.propId, propId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.questId, questId); + } + output.endObject(); + } + + @Override + public FinishQuestCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -979804194: + case -309137545: { + if (input.isAtField(FieldNames.propId)) { + if (!input.trySkipNullValue()) { + propId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 655126941: + case -1165879912: { + if (input.isAtField(FieldNames.questId)) { + if (!input.trySkipNullValue()) { + questId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FinishQuestCsReq clone() { + return new FinishQuestCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FinishQuestCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FinishQuestCsReq(), data).checkInitialized(); + } + + public static FinishQuestCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishQuestCsReq(), input).checkInitialized(); + } + + public static FinishQuestCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishQuestCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating FinishQuestCsReq messages + */ + public static MessageFactory getFactory() { + return FinishQuestCsReqFactory.INSTANCE; + } + + private enum FinishQuestCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public FinishQuestCsReq create() { + return FinishQuestCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName propId = FieldName.forField("propId", "prop_id"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName questId = FieldName.forField("questId", "quest_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishQuestScRspOuterClass.java similarity index 64% rename from src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/FinishQuestScRspOuterClass.java index 7fd8fbc..629688e 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FinishQuestScRspOuterClass.java @@ -11,30 +11,30 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueNpcDisappearScRspOuterClass { +public final class FinishQuestScRspOuterClass { /** - * Protobuf type {@code RogueNpcDisappearScRsp} + * Protobuf type {@code FinishQuestScRsp} */ - public static final class RogueNpcDisappearScRsp extends ProtoMessage implements Cloneable { + public static final class FinishQuestScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; */ private int retcode; - private RogueNpcDisappearScRsp() { + private FinishQuestScRsp() { } /** - * @return a new empty instance of {@code RogueNpcDisappearScRsp} + * @return a new empty instance of {@code FinishQuestScRsp} */ - public static RogueNpcDisappearScRsp newInstance() { - return new RogueNpcDisappearScRsp(); + public static FinishQuestScRsp newInstance() { + return new FinishQuestScRsp(); } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -42,17 +42,17 @@ public final class RogueNpcDisappearScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return this */ - public RogueNpcDisappearScRsp clearRetcode() { + public FinishQuestScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -60,18 +60,18 @@ public final class RogueNpcDisappearScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ - public RogueNpcDisappearScRsp setRetcode(final int value) { + public FinishQuestScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } @Override - public RogueNpcDisappearScRsp copyFrom(final RogueNpcDisappearScRsp other) { + public FinishQuestScRsp copyFrom(final FinishQuestScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -81,7 +81,7 @@ public final class RogueNpcDisappearScRspOuterClass { } @Override - public RogueNpcDisappearScRsp mergeFrom(final RogueNpcDisappearScRsp other) { + public FinishQuestScRsp mergeFrom(final FinishQuestScRsp other) { if (other.isEmpty()) { return this; } @@ -93,7 +93,7 @@ public final class RogueNpcDisappearScRspOuterClass { } @Override - public RogueNpcDisappearScRsp clear() { + public FinishQuestScRsp clear() { if (isEmpty()) { return this; } @@ -104,7 +104,7 @@ public final class RogueNpcDisappearScRspOuterClass { } @Override - public RogueNpcDisappearScRsp clearQuick() { + public FinishQuestScRsp clearQuick() { if (isEmpty()) { return this; } @@ -118,10 +118,10 @@ public final class RogueNpcDisappearScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueNpcDisappearScRsp)) { + if (!(o instanceof FinishQuestScRsp)) { return false; } - RogueNpcDisappearScRsp other = (RogueNpcDisappearScRsp) o; + FinishQuestScRsp other = (FinishQuestScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode); } @@ -129,7 +129,7 @@ public final class RogueNpcDisappearScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } } @@ -145,12 +145,12 @@ public final class RogueNpcDisappearScRspOuterClass { @Override @SuppressWarnings("fallthrough") - public RogueNpcDisappearScRsp mergeFrom(final ProtoSource input) throws IOException { + public FinishQuestScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; @@ -183,7 +183,7 @@ public final class RogueNpcDisappearScRspOuterClass { } @Override - public RogueNpcDisappearScRsp mergeFrom(final JsonSource input) throws IOException { + public FinishQuestScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -211,8 +211,8 @@ public final class RogueNpcDisappearScRspOuterClass { } @Override - public RogueNpcDisappearScRsp clone() { - return new RogueNpcDisappearScRsp().copyFrom(this); + public FinishQuestScRsp clone() { + return new FinishQuestScRsp().copyFrom(this); } @Override @@ -220,32 +220,32 @@ public final class RogueNpcDisappearScRspOuterClass { return ((bitField0_) == 0); } - public static RogueNpcDisappearScRsp parseFrom(final byte[] data) throws + public static FinishQuestScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FinishQuestScRsp(), data).checkInitialized(); } - public static RogueNpcDisappearScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), input).checkInitialized(); + public static FinishQuestScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishQuestScRsp(), input).checkInitialized(); } - public static RogueNpcDisappearScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueNpcDisappearScRsp(), input).checkInitialized(); + public static FinishQuestScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishQuestScRsp(), input).checkInitialized(); } /** - * @return factory for creating RogueNpcDisappearScRsp messages + * @return factory for creating FinishQuestScRsp messages */ - public static MessageFactory getFactory() { - return RogueNpcDisappearScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return FinishQuestScRspFactory.INSTANCE; } - private enum RogueNpcDisappearScRspFactory implements MessageFactory { + private enum FinishQuestScRspFactory implements MessageFactory { INSTANCE; @Override - public RogueNpcDisappearScRsp create() { - return RogueNpcDisappearScRsp.newInstance(); + public FinishQuestScRsp create() { + return FinishQuestScRsp.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueDialogueGroupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishRogueDialogueGroupCsReqOuterClass.java deleted file mode 100644 index 39aa7fa..0000000 --- a/src/generated/main/emu/lunarcore/proto/FinishRogueDialogueGroupCsReqOuterClass.java +++ /dev/null @@ -1,343 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class FinishRogueDialogueGroupCsReqOuterClass { - /** - * Protobuf type {@code FinishRogueDialogueGroupCsReq} - */ - public static final class FinishRogueDialogueGroupCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 dialogue_group_id = 10; - */ - private int dialogueGroupId; - - /** - * optional uint32 entity_id = 12; - */ - private int entityId; - - private FinishRogueDialogueGroupCsReq() { - } - - /** - * @return a new empty instance of {@code FinishRogueDialogueGroupCsReq} - */ - public static FinishRogueDialogueGroupCsReq newInstance() { - return new FinishRogueDialogueGroupCsReq(); - } - - /** - * optional uint32 dialogue_group_id = 10; - * @return whether the dialogueGroupId field is set - */ - public boolean hasDialogueGroupId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @return this - */ - public FinishRogueDialogueGroupCsReq clearDialogueGroupId() { - bitField0_ &= ~0x00000001; - dialogueGroupId = 0; - return this; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @return the dialogueGroupId - */ - public int getDialogueGroupId() { - return dialogueGroupId; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @param value the dialogueGroupId to set - * @return this - */ - public FinishRogueDialogueGroupCsReq setDialogueGroupId(final int value) { - bitField0_ |= 0x00000001; - dialogueGroupId = value; - return this; - } - - /** - * optional uint32 entity_id = 12; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entity_id = 12; - * @return this - */ - public FinishRogueDialogueGroupCsReq clearEntityId() { - bitField0_ &= ~0x00000002; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 12; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 12; - * @param value the entityId to set - * @return this - */ - public FinishRogueDialogueGroupCsReq setEntityId(final int value) { - bitField0_ |= 0x00000002; - entityId = value; - return this; - } - - @Override - public FinishRogueDialogueGroupCsReq copyFrom(final FinishRogueDialogueGroupCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - dialogueGroupId = other.dialogueGroupId; - entityId = other.entityId; - } - return this; - } - - @Override - public FinishRogueDialogueGroupCsReq mergeFrom(final FinishRogueDialogueGroupCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDialogueGroupId()) { - setDialogueGroupId(other.dialogueGroupId); - } - if (other.hasEntityId()) { - setEntityId(other.entityId); - } - return this; - } - - @Override - public FinishRogueDialogueGroupCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueGroupId = 0; - entityId = 0; - return this; - } - - @Override - public FinishRogueDialogueGroupCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof FinishRogueDialogueGroupCsReq)) { - return false; - } - FinishRogueDialogueGroupCsReq other = (FinishRogueDialogueGroupCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId) - && (!hasEntityId() || entityId == other.entityId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(dialogueGroupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(entityId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public FinishRogueDialogueGroupCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 80: { - // dialogueGroupId - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); - } - output.endObject(); - } - - @Override - public FinishRogueDialogueGroupCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1758320386: - case 1899979106: { - if (input.isAtField(FieldNames.dialogueGroupId)) { - if (!input.trySkipNullValue()) { - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { - if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public FinishRogueDialogueGroupCsReq clone() { - return new FinishRogueDialogueGroupCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static FinishRogueDialogueGroupCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new FinishRogueDialogueGroupCsReq(), data).checkInitialized(); - } - - public static FinishRogueDialogueGroupCsReq parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new FinishRogueDialogueGroupCsReq(), input).checkInitialized(); - } - - public static FinishRogueDialogueGroupCsReq parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new FinishRogueDialogueGroupCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating FinishRogueDialogueGroupCsReq messages - */ - public static MessageFactory getFactory() { - return FinishRogueDialogueGroupCsReqFactory.INSTANCE; - } - - private enum FinishRogueDialogueGroupCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public FinishRogueDialogueGroupCsReq create() { - return FinishRogueDialogueGroupCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); - - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishTutorialGuideCsReqOuterClass.java similarity index 53% rename from src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.java rename to src/generated/main/emu/lunarcore/proto/FinishTutorialGuideCsReqOuterClass.java index 94ce593..53a7cb2 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectResultOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FinishTutorialGuideCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueMiracleSelectResultOuterClass { +public final class FinishTutorialGuideCsReqOuterClass { /** - * Protobuf type {@code RogueMiracleSelectResult} + * Protobuf type {@code FinishTutorialGuideCsReq} */ - public static final class RogueMiracleSelectResult extends ProtoMessage implements Cloneable { + public static final class FinishTutorialGuideCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 miracle_id = 9; + * optional uint32 group_id = 6; */ - private int miracleId; + private int groupId; - private RogueMiracleSelectResult() { + private FinishTutorialGuideCsReq() { } /** - * @return a new empty instance of {@code RogueMiracleSelectResult} + * @return a new empty instance of {@code FinishTutorialGuideCsReq} */ - public static RogueMiracleSelectResult newInstance() { - return new RogueMiracleSelectResult(); + public static FinishTutorialGuideCsReq newInstance() { + return new FinishTutorialGuideCsReq(); } /** - * optional uint32 miracle_id = 9; - * @return whether the miracleId field is set + * optional uint32 group_id = 6; + * @return whether the groupId field is set */ - public boolean hasMiracleId() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 miracle_id = 9; + * optional uint32 group_id = 6; * @return this */ - public RogueMiracleSelectResult clearMiracleId() { + public FinishTutorialGuideCsReq clearGroupId() { bitField0_ &= ~0x00000001; - miracleId = 0; + groupId = 0; return this; } /** - * optional uint32 miracle_id = 9; - * @return the miracleId + * optional uint32 group_id = 6; + * @return the groupId */ - public int getMiracleId() { - return miracleId; + public int getGroupId() { + return groupId; } /** - * optional uint32 miracle_id = 9; - * @param value the miracleId to set + * optional uint32 group_id = 6; + * @param value the groupId to set * @return this */ - public RogueMiracleSelectResult setMiracleId(final int value) { + public FinishTutorialGuideCsReq setGroupId(final int value) { bitField0_ |= 0x00000001; - miracleId = value; + groupId = value; return this; } @Override - public RogueMiracleSelectResult copyFrom(final RogueMiracleSelectResult other) { + public FinishTutorialGuideCsReq copyFrom(final FinishTutorialGuideCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - miracleId = other.miracleId; + groupId = other.groupId; } return this; } @Override - public RogueMiracleSelectResult mergeFrom(final RogueMiracleSelectResult other) { + public FinishTutorialGuideCsReq mergeFrom(final FinishTutorialGuideCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasMiracleId()) { - setMiracleId(other.miracleId); + if (other.hasGroupId()) { + setGroupId(other.groupId); } return this; } @Override - public RogueMiracleSelectResult clear() { + public FinishTutorialGuideCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - miracleId = 0; + groupId = 0; return this; } @Override - public RogueMiracleSelectResult clearQuick() { + public FinishTutorialGuideCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class RogueMiracleSelectResultOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueMiracleSelectResult)) { + if (!(o instanceof FinishTutorialGuideCsReq)) { return false; } - RogueMiracleSelectResult other = (RogueMiracleSelectResult) o; + FinishTutorialGuideCsReq other = (FinishTutorialGuideCsReq) o; return bitField0_ == other.bitField0_ - && (!hasMiracleId() || miracleId == other.miracleId); + && (!hasGroupId() || groupId == other.groupId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(miracleId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(groupId); } } @@ -138,21 +138,21 @@ public final class RogueMiracleSelectResultOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueMiracleSelectResult mergeFrom(final ProtoSource input) throws IOException { + public FinishTutorialGuideCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // miracleId - miracleId = input.readUInt32(); + case 48: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class RogueMiracleSelectResultOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.miracleId, miracleId); + output.writeUInt32(FieldNames.groupId, groupId); } output.endObject(); } @Override - public RogueMiracleSelectResult mergeFrom(final JsonSource input) throws IOException { + public FinishTutorialGuideCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -164571796: - case -806736983: { - if (input.isAtField(FieldNames.miracleId)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - miracleId = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class RogueMiracleSelectResultOuterClass { } @Override - public RogueMiracleSelectResult clone() { - return new RogueMiracleSelectResult().copyFrom(this); + public FinishTutorialGuideCsReq clone() { + return new FinishTutorialGuideCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class RogueMiracleSelectResultOuterClass { return ((bitField0_) == 0); } - public static RogueMiracleSelectResult parseFrom(final byte[] data) throws + public static FinishTutorialGuideCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleSelectResult(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FinishTutorialGuideCsReq(), data).checkInitialized(); } - public static RogueMiracleSelectResult parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleSelectResult(), input).checkInitialized(); + public static FinishTutorialGuideCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishTutorialGuideCsReq(), input).checkInitialized(); } - public static RogueMiracleSelectResult parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleSelectResult(), input).checkInitialized(); + public static FinishTutorialGuideCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishTutorialGuideCsReq(), input).checkInitialized(); } /** - * @return factory for creating RogueMiracleSelectResult messages + * @return factory for creating FinishTutorialGuideCsReq messages */ - public static MessageFactory getFactory() { - return RogueMiracleSelectResultFactory.INSTANCE; + public static MessageFactory getFactory() { + return FinishTutorialGuideCsReqFactory.INSTANCE; } - private enum RogueMiracleSelectResultFactory implements MessageFactory { + private enum FinishTutorialGuideCsReqFactory implements MessageFactory { INSTANCE; @Override - public RogueMiracleSelectResult create() { - return RogueMiracleSelectResult.newInstance(); + public FinishTutorialGuideCsReq create() { + return FinishTutorialGuideCsReq.newInstance(); } } @@ -254,7 +254,7 @@ public final class RogueMiracleSelectResultOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueRollDiceScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/FinishTutorialGuideScRspOuterClass.java similarity index 52% rename from src/generated/main/emu/lunarcore/proto/ChessRogueRollDiceScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/FinishTutorialGuideScRspOuterClass.java index ab02ad8..cc2a9b5 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueRollDiceScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FinishTutorialGuideScRspOuterClass.java @@ -11,11 +11,11 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueRollDiceScRspOuterClass { +public final class FinishTutorialGuideScRspOuterClass { /** - * Protobuf type {@code ChessRogueRollDiceScRsp} + * Protobuf type {@code FinishTutorialGuideScRsp} */ - public static final class ChessRogueRollDiceScRsp extends ProtoMessage implements Cloneable { + public static final class FinishTutorialGuideScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -24,23 +24,23 @@ public final class ChessRogueRollDiceScRspOuterClass { private int retcode; /** - * optional uint32 OHNDNDDKAEG = 11; + * optional .ItemList reward = 1; */ - private int oHNDNDDKAEG; + private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ChessRogueNousDice nous_dice = 6; + * optional .TutorialGuide tutorial_guide = 7; */ - private final ChessRogueNousDiceOuterClass.ChessRogueNousDice nousDice = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance(); + private final TutorialGuideOuterClass.TutorialGuide tutorialGuide = TutorialGuideOuterClass.TutorialGuide.newInstance(); - private ChessRogueRollDiceScRsp() { + private FinishTutorialGuideScRsp() { } /** - * @return a new empty instance of {@code ChessRogueRollDiceScRsp} + * @return a new empty instance of {@code FinishTutorialGuideScRsp} */ - public static ChessRogueRollDiceScRsp newInstance() { - return new ChessRogueRollDiceScRsp(); + public static FinishTutorialGuideScRsp newInstance() { + return new FinishTutorialGuideScRsp(); } /** @@ -55,7 +55,7 @@ public final class ChessRogueRollDiceScRspOuterClass { * optional uint32 retcode = 10; * @return this */ - public ChessRogueRollDiceScRsp clearRetcode() { + public FinishTutorialGuideScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; @@ -74,83 +74,46 @@ public final class ChessRogueRollDiceScRspOuterClass { * @param value the retcode to set * @return this */ - public ChessRogueRollDiceScRsp setRetcode(final int value) { + public FinishTutorialGuideScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 OHNDNDDKAEG = 11; - * @return whether the oHNDNDDKAEG field is set + * optional .ItemList reward = 1; + * @return whether the reward field is set */ - public boolean hasOHNDNDDKAEG() { + public boolean hasReward() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 OHNDNDDKAEG = 11; + * optional .ItemList reward = 1; * @return this */ - public ChessRogueRollDiceScRsp clearOHNDNDDKAEG() { + public FinishTutorialGuideScRsp clearReward() { bitField0_ &= ~0x00000002; - oHNDNDDKAEG = 0; + reward.clear(); return this; } /** - * optional uint32 OHNDNDDKAEG = 11; - * @return the oHNDNDDKAEG - */ - public int getOHNDNDDKAEG() { - return oHNDNDDKAEG; - } - - /** - * optional uint32 OHNDNDDKAEG = 11; - * @param value the oHNDNDDKAEG to set - * @return this - */ - public ChessRogueRollDiceScRsp setOHNDNDDKAEG(final int value) { - bitField0_ |= 0x00000002; - oHNDNDDKAEG = value; - return this; - } - - /** - * optional .ChessRogueNousDice nous_dice = 6; - * @return whether the nousDice field is set - */ - public boolean hasNousDice() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ChessRogueNousDice nous_dice = 6; - * @return this - */ - public ChessRogueRollDiceScRsp clearNousDice() { - bitField0_ &= ~0x00000004; - nousDice.clear(); - return this; - } - - /** - * optional .ChessRogueNousDice nous_dice = 6; + * optional .ItemList reward = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableNousDice()} if you want to modify it. + * Use {@link #getMutableReward()} if you want to modify it. * * @return internal storage object for reading */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getNousDice() { - return nousDice; + public ItemListOuterClass.ItemList getReward() { + return reward; } /** - * optional .ChessRogueNousDice nous_dice = 6; + * optional .ItemList reward = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -158,37 +121,94 @@ public final class ChessRogueRollDiceScRspOuterClass { * * @return internal storage object for modifications */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableNousDice() { - bitField0_ |= 0x00000004; - return nousDice; + public ItemListOuterClass.ItemList getMutableReward() { + bitField0_ |= 0x00000002; + return reward; } /** - * optional .ChessRogueNousDice nous_dice = 6; - * @param value the nousDice to set + * optional .ItemList reward = 1; + * @param value the reward to set * @return this */ - public ChessRogueRollDiceScRsp setNousDice( - final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) { + public FinishTutorialGuideScRsp setReward(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000002; + reward.copyFrom(value); + return this; + } + + /** + * optional .TutorialGuide tutorial_guide = 7; + * @return whether the tutorialGuide field is set + */ + public boolean hasTutorialGuide() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .TutorialGuide tutorial_guide = 7; + * @return this + */ + public FinishTutorialGuideScRsp clearTutorialGuide() { + bitField0_ &= ~0x00000004; + tutorialGuide.clear(); + return this; + } + + /** + * optional .TutorialGuide tutorial_guide = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableTutorialGuide()} if you want to modify it. + * + * @return internal storage object for reading + */ + public TutorialGuideOuterClass.TutorialGuide getTutorialGuide() { + return tutorialGuide; + } + + /** + * optional .TutorialGuide tutorial_guide = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public TutorialGuideOuterClass.TutorialGuide getMutableTutorialGuide() { bitField0_ |= 0x00000004; - nousDice.copyFrom(value); + return tutorialGuide; + } + + /** + * optional .TutorialGuide tutorial_guide = 7; + * @param value the tutorialGuide to set + * @return this + */ + public FinishTutorialGuideScRsp setTutorialGuide( + final TutorialGuideOuterClass.TutorialGuide value) { + bitField0_ |= 0x00000004; + tutorialGuide.copyFrom(value); return this; } @Override - public ChessRogueRollDiceScRsp copyFrom(final ChessRogueRollDiceScRsp other) { + public FinishTutorialGuideScRsp copyFrom(final FinishTutorialGuideScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - oHNDNDDKAEG = other.oHNDNDDKAEG; - nousDice.copyFrom(other.nousDice); + reward.copyFrom(other.reward); + tutorialGuide.copyFrom(other.tutorialGuide); } return this; } @Override - public ChessRogueRollDiceScRsp mergeFrom(final ChessRogueRollDiceScRsp other) { + public FinishTutorialGuideScRsp mergeFrom(final FinishTutorialGuideScRsp other) { if (other.isEmpty()) { return this; } @@ -196,36 +216,37 @@ public final class ChessRogueRollDiceScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasOHNDNDDKAEG()) { - setOHNDNDDKAEG(other.oHNDNDDKAEG); + if (other.hasReward()) { + getMutableReward().mergeFrom(other.reward); } - if (other.hasNousDice()) { - getMutableNousDice().mergeFrom(other.nousDice); + if (other.hasTutorialGuide()) { + getMutableTutorialGuide().mergeFrom(other.tutorialGuide); } return this; } @Override - public ChessRogueRollDiceScRsp clear() { + public FinishTutorialGuideScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - oHNDNDDKAEG = 0; - nousDice.clear(); + reward.clear(); + tutorialGuide.clear(); return this; } @Override - public ChessRogueRollDiceScRsp clearQuick() { + public FinishTutorialGuideScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - nousDice.clearQuick(); + reward.clearQuick(); + tutorialGuide.clearQuick(); return this; } @@ -234,14 +255,14 @@ public final class ChessRogueRollDiceScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueRollDiceScRsp)) { + if (!(o instanceof FinishTutorialGuideScRsp)) { return false; } - ChessRogueRollDiceScRsp other = (ChessRogueRollDiceScRsp) o; + FinishTutorialGuideScRsp other = (FinishTutorialGuideScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasOHNDNDDKAEG() || oHNDNDDKAEG == other.oHNDNDDKAEG) - && (!hasNousDice() || nousDice.equals(other.nousDice)); + && (!hasReward() || reward.equals(other.reward)) + && (!hasTutorialGuide() || tutorialGuide.equals(other.tutorialGuide)); } @Override @@ -251,12 +272,12 @@ public final class ChessRogueRollDiceScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(oHNDNDDKAEG); + output.writeRawByte((byte) 10); + output.writeMessageNoTag(reward); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(nousDice); + output.writeRawByte((byte) 58); + output.writeMessageNoTag(tutorialGuide); } } @@ -267,17 +288,17 @@ public final class ChessRogueRollDiceScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(oHNDNDDKAEG); + size += 1 + ProtoSink.computeMessageSizeNoTag(reward); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nousDice); + size += 1 + ProtoSink.computeMessageSizeNoTag(tutorialGuide); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueRollDiceScRsp mergeFrom(final ProtoSource input) throws IOException { + public FinishTutorialGuideScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -287,22 +308,22 @@ public final class ChessRogueRollDiceScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 10) { break; } } - case 88: { - // oHNDNDDKAEG - oHNDNDDKAEG = input.readUInt32(); + case 10: { + // reward + input.readMessage(reward); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 58) { break; } } - case 50: { - // nousDice - input.readMessage(nousDice); + case 58: { + // tutorialGuide + input.readMessage(tutorialGuide); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -330,16 +351,16 @@ public final class ChessRogueRollDiceScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.oHNDNDDKAEG, oHNDNDDKAEG); + output.writeMessage(FieldNames.reward, reward); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.nousDice, nousDice); + output.writeMessage(FieldNames.tutorialGuide, tutorialGuide); } output.endObject(); } @Override - public ChessRogueRollDiceScRsp mergeFrom(final JsonSource input) throws IOException { + public FinishTutorialGuideScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -356,10 +377,10 @@ public final class ChessRogueRollDiceScRspOuterClass { } break; } - case 32875159: { - if (input.isAtField(FieldNames.oHNDNDDKAEG)) { + case -934326481: { + if (input.isAtField(FieldNames.reward)) { if (!input.trySkipNullValue()) { - oHNDNDDKAEG = input.readUInt32(); + input.readMessage(reward); bitField0_ |= 0x00000002; } } else { @@ -367,11 +388,11 @@ public final class ChessRogueRollDiceScRspOuterClass { } break; } - case 1622214758: - case -1226158137: { - if (input.isAtField(FieldNames.nousDice)) { + case 1686407742: + case 1413565147: { + if (input.isAtField(FieldNames.tutorialGuide)) { if (!input.trySkipNullValue()) { - input.readMessage(nousDice); + input.readMessage(tutorialGuide); bitField0_ |= 0x00000004; } } else { @@ -390,8 +411,8 @@ public final class ChessRogueRollDiceScRspOuterClass { } @Override - public ChessRogueRollDiceScRsp clone() { - return new ChessRogueRollDiceScRsp().copyFrom(this); + public FinishTutorialGuideScRsp clone() { + return new FinishTutorialGuideScRsp().copyFrom(this); } @Override @@ -399,32 +420,32 @@ public final class ChessRogueRollDiceScRspOuterClass { return ((bitField0_) == 0); } - public static ChessRogueRollDiceScRsp parseFrom(final byte[] data) throws + public static FinishTutorialGuideScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueRollDiceScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FinishTutorialGuideScRsp(), data).checkInitialized(); } - public static ChessRogueRollDiceScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueRollDiceScRsp(), input).checkInitialized(); + public static FinishTutorialGuideScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishTutorialGuideScRsp(), input).checkInitialized(); } - public static ChessRogueRollDiceScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueRollDiceScRsp(), input).checkInitialized(); + public static FinishTutorialGuideScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FinishTutorialGuideScRsp(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueRollDiceScRsp messages + * @return factory for creating FinishTutorialGuideScRsp messages */ - public static MessageFactory getFactory() { - return ChessRogueRollDiceScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return FinishTutorialGuideScRspFactory.INSTANCE; } - private enum ChessRogueRollDiceScRspFactory implements MessageFactory { + private enum FinishTutorialGuideScRspFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueRollDiceScRsp create() { - return ChessRogueRollDiceScRsp.newInstance(); + public FinishTutorialGuideScRsp create() { + return FinishTutorialGuideScRsp.newInstance(); } } @@ -434,9 +455,9 @@ public final class ChessRogueRollDiceScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName oHNDNDDKAEG = FieldName.forField("OHNDNDDKAEG"); + static final FieldName reward = FieldName.forField("reward"); - static final FieldName nousDice = FieldName.forField("nousDice", "nous_dice"); + static final FieldName tutorialGuide = FieldName.forField("tutorialGuide", "tutorial_guide"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java index 3458932..7d57bcf 100644 --- a/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FirstNpcTalkInfoOuterClass.java @@ -19,15 +19,10 @@ public final class FirstNpcTalkInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_id = 10; + * optional uint32 npc_id = 12; */ private int npcId; - /** - * optional bool unk_bool = 1; - */ - private boolean unkBool; - private FirstNpcTalkInfo() { } @@ -39,7 +34,7 @@ public final class FirstNpcTalkInfoOuterClass { } /** - * optional uint32 npc_id = 10; + * optional uint32 npc_id = 12; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -47,7 +42,7 @@ public final class FirstNpcTalkInfoOuterClass { } /** - * optional uint32 npc_id = 10; + * optional uint32 npc_id = 12; * @return this */ public FirstNpcTalkInfo clearNpcId() { @@ -57,7 +52,7 @@ public final class FirstNpcTalkInfoOuterClass { } /** - * optional uint32 npc_id = 10; + * optional uint32 npc_id = 12; * @return the npcId */ public int getNpcId() { @@ -65,7 +60,7 @@ public final class FirstNpcTalkInfoOuterClass { } /** - * optional uint32 npc_id = 10; + * optional uint32 npc_id = 12; * @param value the npcId to set * @return this */ @@ -75,50 +70,12 @@ public final class FirstNpcTalkInfoOuterClass { return this; } - /** - * optional bool unk_bool = 1; - * @return whether the unkBool field is set - */ - public boolean hasUnkBool() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool unk_bool = 1; - * @return this - */ - public FirstNpcTalkInfo clearUnkBool() { - bitField0_ &= ~0x00000002; - unkBool = false; - return this; - } - - /** - * optional bool unk_bool = 1; - * @return the unkBool - */ - public boolean getUnkBool() { - return unkBool; - } - - /** - * optional bool unk_bool = 1; - * @param value the unkBool to set - * @return this - */ - public FirstNpcTalkInfo setUnkBool(final boolean value) { - bitField0_ |= 0x00000002; - unkBool = value; - return this; - } - @Override public FirstNpcTalkInfo copyFrom(final FirstNpcTalkInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; npcId = other.npcId; - unkBool = other.unkBool; } return this; } @@ -132,9 +89,6 @@ public final class FirstNpcTalkInfoOuterClass { if (other.hasNpcId()) { setNpcId(other.npcId); } - if (other.hasUnkBool()) { - setUnkBool(other.unkBool); - } return this; } @@ -146,7 +100,6 @@ public final class FirstNpcTalkInfoOuterClass { cachedSize = -1; bitField0_ = 0; npcId = 0; - unkBool = false; return this; } @@ -170,20 +123,15 @@ public final class FirstNpcTalkInfoOuterClass { } FirstNpcTalkInfo other = (FirstNpcTalkInfo) o; return bitField0_ == other.bitField0_ - && (!hasNpcId() || npcId == other.npcId) - && (!hasUnkBool() || unkBool == other.unkBool); + && (!hasNpcId() || npcId == other.npcId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(npcId); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(unkBool); - } } @Override @@ -192,9 +140,6 @@ public final class FirstNpcTalkInfoOuterClass { if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); } - if ((bitField0_ & 0x00000002) != 0) { - size += 2; - } return size; } @@ -205,20 +150,11 @@ public final class FirstNpcTalkInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 96: { // npcId npcId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // unkBool - unkBool = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -243,9 +179,6 @@ public final class FirstNpcTalkInfoOuterClass { if ((bitField0_ & 0x00000001) != 0) { output.writeUInt32(FieldNames.npcId, npcId); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.unkBool, unkBool); - } output.endObject(); } @@ -268,18 +201,6 @@ public final class FirstNpcTalkInfoOuterClass { } break; } - case -286151940: - case -254380521: { - if (input.isAtField(FieldNames.unkBool)) { - if (!input.trySkipNullValue()) { - unkBool = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -334,8 +255,6 @@ public final class FirstNpcTalkInfoOuterClass { */ static class FieldNames { static final FieldName npcId = FieldName.forField("npcId", "npc_id"); - - static final FieldName unkBool = FieldName.forField("unkBool", "unk_bool"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java index 1dd52d4..6c73178 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendApplyInfoOuterClass.java @@ -19,9 +19,9 @@ public final class FriendApplyInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .SimpleInfo simple_info = 7; + * optional .PlayerSimpleInfo simple_info = 14; */ - private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); + private final PlayerSimpleInfoOuterClass.PlayerSimpleInfo simpleInfo = PlayerSimpleInfoOuterClass.PlayerSimpleInfo.newInstance(); private FriendApplyInfo() { } @@ -34,7 +34,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .PlayerSimpleInfo simple_info = 14; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +42,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .PlayerSimpleInfo simple_info = 14; * @return this */ public FriendApplyInfo clearSimpleInfo() { @@ -52,7 +52,7 @@ public final class FriendApplyInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 7; + * optional .PlayerSimpleInfo simple_info = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -61,12 +61,12 @@ public final class FriendApplyInfoOuterClass { * * @return internal storage object for reading */ - public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getSimpleInfo() { return simpleInfo; } /** - * optional .SimpleInfo simple_info = 7; + * optional .PlayerSimpleInfo simple_info = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -74,17 +74,17 @@ public final class FriendApplyInfoOuterClass { * * @return internal storage object for modifications */ - public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getMutableSimpleInfo() { bitField0_ |= 0x00000001; return simpleInfo; } /** - * optional .SimpleInfo simple_info = 7; + * optional .PlayerSimpleInfo simple_info = 14; * @param value the simpleInfo to set * @return this */ - public FriendApplyInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + public FriendApplyInfo setSimpleInfo(final PlayerSimpleInfoOuterClass.PlayerSimpleInfo value) { bitField0_ |= 0x00000001; simpleInfo.copyFrom(value); return this; @@ -150,7 +150,7 @@ public final class FriendApplyInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 114); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +171,7 @@ public final class FriendApplyInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 58: { + case 114: { // simpleInfo input.readMessage(simpleInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/FriendBattleRecordType1OuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendBattleRecordType1OuterClass.java new file mode 100644 index 0000000..142ec7e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FriendBattleRecordType1OuterClass.java @@ -0,0 +1,477 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class FriendBattleRecordType1OuterClass { + /** + * Protobuf type {@code FriendBattleRecordType1} + */ + public static final class FriendBattleRecordType1 extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 star_cnt = 6; + */ + private int starCnt; + + /** + * optional uint32 group_id = 11; + */ + private int groupId; + + /** + *
+     *  BattleRecord2 record2 = 1644;
+     * 
+ * + * optional .BattleRecord1 record1 = 2026; + */ + private final BattleRecord1OuterClass.BattleRecord1 record1 = BattleRecord1OuterClass.BattleRecord1.newInstance(); + + private FriendBattleRecordType1() { + } + + /** + * @return a new empty instance of {@code FriendBattleRecordType1} + */ + public static FriendBattleRecordType1 newInstance() { + return new FriendBattleRecordType1(); + } + + public boolean hasBattleRecord() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public FriendBattleRecordType1 clearBattleRecord() { + if (hasBattleRecord()) { + clearRecord1(); + } + return this; + } + + /** + * optional uint32 star_cnt = 6; + * @return whether the starCnt field is set + */ + public boolean hasStarCnt() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 star_cnt = 6; + * @return this + */ + public FriendBattleRecordType1 clearStarCnt() { + bitField0_ &= ~0x00000002; + starCnt = 0; + return this; + } + + /** + * optional uint32 star_cnt = 6; + * @return the starCnt + */ + public int getStarCnt() { + return starCnt; + } + + /** + * optional uint32 star_cnt = 6; + * @param value the starCnt to set + * @return this + */ + public FriendBattleRecordType1 setStarCnt(final int value) { + bitField0_ |= 0x00000002; + starCnt = value; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 11; + * @return this + */ + public FriendBattleRecordType1 clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 11; + * @param value the groupId to set + * @return this + */ + public FriendBattleRecordType1 setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + /** + *
+     *  BattleRecord2 record2 = 1644;
+     * 
+ * + * optional .BattleRecord1 record1 = 2026; + * @return whether the record1 field is set + */ + public boolean hasRecord1() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  BattleRecord2 record2 = 1644;
+     * 
+ * + * optional .BattleRecord1 record1 = 2026; + * @return this + */ + public FriendBattleRecordType1 clearRecord1() { + bitField0_ &= ~0x00000001; + record1.clear(); + return this; + } + + /** + *
+     *  BattleRecord2 record2 = 1644;
+     * 
+ * + * optional .BattleRecord1 record1 = 2026; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRecord1()} if you want to modify it. + * + * @return internal storage object for reading + */ + public BattleRecord1OuterClass.BattleRecord1 getRecord1() { + return record1; + } + + /** + *
+     *  BattleRecord2 record2 = 1644;
+     * 
+ * + * optional .BattleRecord1 record1 = 2026; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public BattleRecord1OuterClass.BattleRecord1 getMutableRecord1() { + bitField0_ |= 0x00000001; + return record1; + } + + /** + *
+     *  BattleRecord2 record2 = 1644;
+     * 
+ * + * optional .BattleRecord1 record1 = 2026; + * @param value the record1 to set + * @return this + */ + public FriendBattleRecordType1 setRecord1(final BattleRecord1OuterClass.BattleRecord1 value) { + bitField0_ |= 0x00000001; + record1.copyFrom(value); + return this; + } + + @Override + public FriendBattleRecordType1 copyFrom(final FriendBattleRecordType1 other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + starCnt = other.starCnt; + groupId = other.groupId; + record1.copyFrom(other.record1); + } + return this; + } + + @Override + public FriendBattleRecordType1 mergeFrom(final FriendBattleRecordType1 other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStarCnt()) { + setStarCnt(other.starCnt); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasRecord1()) { + getMutableRecord1().mergeFrom(other.record1); + } + return this; + } + + @Override + public FriendBattleRecordType1 clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + starCnt = 0; + groupId = 0; + record1.clear(); + return this; + } + + @Override + public FriendBattleRecordType1 clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record1.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FriendBattleRecordType1)) { + return false; + } + FriendBattleRecordType1 other = (FriendBattleRecordType1) o; + return bitField0_ == other.bitField0_ + && (!hasStarCnt() || starCnt == other.starCnt) + && (!hasGroupId() || groupId == other.groupId) + && (!hasRecord1() || record1.equals(other.record1)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(starCnt); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 32466); + output.writeMessageNoTag(record1); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(starCnt); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(record1); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FriendBattleRecordType1 mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // starCnt + starCnt = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16210) { + break; + } + } + case 16210: { + // record1 + input.readMessage(record1); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.starCnt, starCnt); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.record1, record1); + } + output.endObject(); + } + + @Override + public FriendBattleRecordType1 mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1897231945: + case 1316175356: { + if (input.isAtField(FieldNames.starCnt)) { + if (!input.trySkipNullValue()) { + starCnt = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1082596864: { + if (input.isAtField(FieldNames.record1)) { + if (!input.trySkipNullValue()) { + input.readMessage(record1); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FriendBattleRecordType1 clone() { + return new FriendBattleRecordType1().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FriendBattleRecordType1 parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FriendBattleRecordType1(), data).checkInitialized(); + } + + public static FriendBattleRecordType1 parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendBattleRecordType1(), input).checkInitialized(); + } + + public static FriendBattleRecordType1 parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendBattleRecordType1(), input).checkInitialized(); + } + + /** + * @return factory for creating FriendBattleRecordType1 messages + */ + public static MessageFactory getFactory() { + return FriendBattleRecordType1Factory.INSTANCE; + } + + private enum FriendBattleRecordType1Factory implements MessageFactory { + INSTANCE; + + @Override + public FriendBattleRecordType1 create() { + return FriendBattleRecordType1.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName starCnt = FieldName.forField("starCnt", "star_cnt"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName record1 = FieldName.forField("record1"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueFinishScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendBattleRecordType2OuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/SyncRogueFinishScNotifyOuterClass.java rename to src/generated/main/emu/lunarcore/proto/FriendBattleRecordType2OuterClass.java index 8701007..6e3897e 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueFinishScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendBattleRecordType2OuterClass.java @@ -11,62 +11,73 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class SyncRogueFinishScNotifyOuterClass { +public final class FriendBattleRecordType2OuterClass { /** - * Protobuf type {@code SyncRogueFinishScNotify} + * Protobuf type {@code FriendBattleRecordType2} */ - public static final class SyncRogueFinishScNotify extends ProtoMessage implements Cloneable { + public static final class FriendBattleRecordType2 extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional .RogueFinishInfo finish_info = 2; + * optional .BattleRecordType2 record_type2 = 1722; */ - private final RogueFinishInfoOuterClass.RogueFinishInfo finishInfo = RogueFinishInfoOuterClass.RogueFinishInfo.newInstance(); + private final BattleRecordType2OuterClass.BattleRecordType2 recordType2 = BattleRecordType2OuterClass.BattleRecordType2.newInstance(); - private SyncRogueFinishScNotify() { + private FriendBattleRecordType2() { } /** - * @return a new empty instance of {@code SyncRogueFinishScNotify} + * @return a new empty instance of {@code FriendBattleRecordType2} */ - public static SyncRogueFinishScNotify newInstance() { - return new SyncRogueFinishScNotify(); + public static FriendBattleRecordType2 newInstance() { + return new FriendBattleRecordType2(); } - /** - * optional .RogueFinishInfo finish_info = 2; - * @return whether the finishInfo field is set - */ - public boolean hasFinishInfo() { - return (bitField0_ & 0x00000001) != 0; + public boolean hasRecord() { + return (((bitField0_ & 0x00000001)) != 0); } - /** - * optional .RogueFinishInfo finish_info = 2; - * @return this - */ - public SyncRogueFinishScNotify clearFinishInfo() { - bitField0_ &= ~0x00000001; - finishInfo.clear(); + public FriendBattleRecordType2 clearRecord() { + if (hasRecord()) { + clearRecordType2(); + } return this; } /** - * optional .RogueFinishInfo finish_info = 2; + * optional .BattleRecordType2 record_type2 = 1722; + * @return whether the recordType2 field is set + */ + public boolean hasRecordType2() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .BattleRecordType2 record_type2 = 1722; + * @return this + */ + public FriendBattleRecordType2 clearRecordType2() { + bitField0_ &= ~0x00000001; + recordType2.clear(); + return this; + } + + /** + * optional .BattleRecordType2 record_type2 = 1722; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableFinishInfo()} if you want to modify it. + * Use {@link #getMutableRecordType2()} if you want to modify it. * * @return internal storage object for reading */ - public RogueFinishInfoOuterClass.RogueFinishInfo getFinishInfo() { - return finishInfo; + public BattleRecordType2OuterClass.BattleRecordType2 getRecordType2() { + return recordType2; } /** - * optional .RogueFinishInfo finish_info = 2; + * optional .BattleRecordType2 record_type2 = 1722; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -74,64 +85,64 @@ public final class SyncRogueFinishScNotifyOuterClass { * * @return internal storage object for modifications */ - public RogueFinishInfoOuterClass.RogueFinishInfo getMutableFinishInfo() { + public BattleRecordType2OuterClass.BattleRecordType2 getMutableRecordType2() { bitField0_ |= 0x00000001; - return finishInfo; + return recordType2; } /** - * optional .RogueFinishInfo finish_info = 2; - * @param value the finishInfo to set + * optional .BattleRecordType2 record_type2 = 1722; + * @param value the recordType2 to set * @return this */ - public SyncRogueFinishScNotify setFinishInfo( - final RogueFinishInfoOuterClass.RogueFinishInfo value) { + public FriendBattleRecordType2 setRecordType2( + final BattleRecordType2OuterClass.BattleRecordType2 value) { bitField0_ |= 0x00000001; - finishInfo.copyFrom(value); + recordType2.copyFrom(value); return this; } @Override - public SyncRogueFinishScNotify copyFrom(final SyncRogueFinishScNotify other) { + public FriendBattleRecordType2 copyFrom(final FriendBattleRecordType2 other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - finishInfo.copyFrom(other.finishInfo); + recordType2.copyFrom(other.recordType2); } return this; } @Override - public SyncRogueFinishScNotify mergeFrom(final SyncRogueFinishScNotify other) { + public FriendBattleRecordType2 mergeFrom(final FriendBattleRecordType2 other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasFinishInfo()) { - getMutableFinishInfo().mergeFrom(other.finishInfo); + if (other.hasRecordType2()) { + getMutableRecordType2().mergeFrom(other.recordType2); } return this; } @Override - public SyncRogueFinishScNotify clear() { + public FriendBattleRecordType2 clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - finishInfo.clear(); + recordType2.clear(); return this; } @Override - public SyncRogueFinishScNotify clearQuick() { + public FriendBattleRecordType2 clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - finishInfo.clearQuick(); + recordType2.clearQuick(); return this; } @@ -140,19 +151,19 @@ public final class SyncRogueFinishScNotifyOuterClass { if (o == this) { return true; } - if (!(o instanceof SyncRogueFinishScNotify)) { + if (!(o instanceof FriendBattleRecordType2)) { return false; } - SyncRogueFinishScNotify other = (SyncRogueFinishScNotify) o; + FriendBattleRecordType2 other = (FriendBattleRecordType2) o; return bitField0_ == other.bitField0_ - && (!hasFinishInfo() || finishInfo.equals(other.finishInfo)); + && (!hasRecordType2() || recordType2.equals(other.recordType2)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(finishInfo); + output.writeRawLittleEndian16((short) 27602); + output.writeMessageNoTag(recordType2); } } @@ -160,21 +171,21 @@ public final class SyncRogueFinishScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(finishInfo); + size += 2 + ProtoSink.computeMessageSizeNoTag(recordType2); } return size; } @Override @SuppressWarnings("fallthrough") - public SyncRogueFinishScNotify mergeFrom(final ProtoSource input) throws IOException { + public FriendBattleRecordType2 mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 18: { - // finishInfo - input.readMessage(finishInfo); + case 13778: { + // recordType2 + input.readMessage(recordType2); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -199,23 +210,23 @@ public final class SyncRogueFinishScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.finishInfo, finishInfo); + output.writeMessage(FieldNames.recordType2, recordType2); } output.endObject(); } @Override - public SyncRogueFinishScNotify mergeFrom(final JsonSource input) throws IOException { + public FriendBattleRecordType2 mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1151198177: - case 1347581146: { - if (input.isAtField(FieldNames.finishInfo)) { + case 1307444839: + case -2108299574: { + if (input.isAtField(FieldNames.recordType2)) { if (!input.trySkipNullValue()) { - input.readMessage(finishInfo); + input.readMessage(recordType2); bitField0_ |= 0x00000001; } } else { @@ -234,8 +245,8 @@ public final class SyncRogueFinishScNotifyOuterClass { } @Override - public SyncRogueFinishScNotify clone() { - return new SyncRogueFinishScNotify().copyFrom(this); + public FriendBattleRecordType2 clone() { + return new FriendBattleRecordType2().copyFrom(this); } @Override @@ -243,32 +254,32 @@ public final class SyncRogueFinishScNotifyOuterClass { return ((bitField0_) == 0); } - public static SyncRogueFinishScNotify parseFrom(final byte[] data) throws + public static FriendBattleRecordType2 parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueFinishScNotify(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FriendBattleRecordType2(), data).checkInitialized(); } - public static SyncRogueFinishScNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueFinishScNotify(), input).checkInitialized(); + public static FriendBattleRecordType2 parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendBattleRecordType2(), input).checkInitialized(); } - public static SyncRogueFinishScNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueFinishScNotify(), input).checkInitialized(); + public static FriendBattleRecordType2 parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendBattleRecordType2(), input).checkInitialized(); } /** - * @return factory for creating SyncRogueFinishScNotify messages + * @return factory for creating FriendBattleRecordType2 messages */ - public static MessageFactory getFactory() { - return SyncRogueFinishScNotifyFactory.INSTANCE; + public static MessageFactory getFactory() { + return FriendBattleRecordType2Factory.INSTANCE; } - private enum SyncRogueFinishScNotifyFactory implements MessageFactory { + private enum FriendBattleRecordType2Factory implements MessageFactory { INSTANCE; @Override - public SyncRogueFinishScNotify create() { - return SyncRogueFinishScNotify.newInstance(); + public FriendBattleRecordType2 create() { + return FriendBattleRecordType2.newInstance(); } } @@ -276,7 +287,7 @@ public final class SyncRogueFinishScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName finishInfo = FieldName.forField("finishInfo", "finish_info"); + static final FieldName recordType2 = FieldName.forField("recordType2", "record_type2"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/FriendChallengeInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendChallengeInfoOuterClass.java new file mode 100644 index 0000000..d02aa0b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FriendChallengeInfoOuterClass.java @@ -0,0 +1,562 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class FriendChallengeInfoOuterClass { + /** + * Protobuf type {@code FriendChallengeInfo} + */ + public static final class FriendChallengeInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 battle_record_stars = 8; + */ + private int battleRecordStars; + + /** + * optional uint32 score = 11; + */ + private int score; + + /** + * optional .PlayerSimpleInfo friend_simple_info = 7; + */ + private final PlayerSimpleInfoOuterClass.PlayerSimpleInfo friendSimpleInfo = PlayerSimpleInfoOuterClass.PlayerSimpleInfo.newInstance(); + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + */ + private final RepeatedMessage battleRecordAvatars = RepeatedMessage.newEmptyInstance(BattleRecordAvatarsOuterClass.BattleRecordAvatars.getFactory()); + + private FriendChallengeInfo() { + } + + /** + * @return a new empty instance of {@code FriendChallengeInfo} + */ + public static FriendChallengeInfo newInstance() { + return new FriendChallengeInfo(); + } + + /** + * optional uint32 battle_record_stars = 8; + * @return whether the battleRecordStars field is set + */ + public boolean hasBattleRecordStars() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 battle_record_stars = 8; + * @return this + */ + public FriendChallengeInfo clearBattleRecordStars() { + bitField0_ &= ~0x00000001; + battleRecordStars = 0; + return this; + } + + /** + * optional uint32 battle_record_stars = 8; + * @return the battleRecordStars + */ + public int getBattleRecordStars() { + return battleRecordStars; + } + + /** + * optional uint32 battle_record_stars = 8; + * @param value the battleRecordStars to set + * @return this + */ + public FriendChallengeInfo setBattleRecordStars(final int value) { + bitField0_ |= 0x00000001; + battleRecordStars = value; + return this; + } + + /** + * optional uint32 score = 11; + * @return whether the score field is set + */ + public boolean hasScore() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 score = 11; + * @return this + */ + public FriendChallengeInfo clearScore() { + bitField0_ &= ~0x00000002; + score = 0; + return this; + } + + /** + * optional uint32 score = 11; + * @return the score + */ + public int getScore() { + return score; + } + + /** + * optional uint32 score = 11; + * @param value the score to set + * @return this + */ + public FriendChallengeInfo setScore(final int value) { + bitField0_ |= 0x00000002; + score = value; + return this; + } + + /** + * optional .PlayerSimpleInfo friend_simple_info = 7; + * @return whether the friendSimpleInfo field is set + */ + public boolean hasFriendSimpleInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .PlayerSimpleInfo friend_simple_info = 7; + * @return this + */ + public FriendChallengeInfo clearFriendSimpleInfo() { + bitField0_ &= ~0x00000004; + friendSimpleInfo.clear(); + return this; + } + + /** + * optional .PlayerSimpleInfo friend_simple_info = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFriendSimpleInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getFriendSimpleInfo() { + return friendSimpleInfo; + } + + /** + * optional .PlayerSimpleInfo friend_simple_info = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getMutableFriendSimpleInfo() { + bitField0_ |= 0x00000004; + return friendSimpleInfo; + } + + /** + * optional .PlayerSimpleInfo friend_simple_info = 7; + * @param value the friendSimpleInfo to set + * @return this + */ + public FriendChallengeInfo setFriendSimpleInfo( + final PlayerSimpleInfoOuterClass.PlayerSimpleInfo value) { + bitField0_ |= 0x00000004; + friendSimpleInfo.copyFrom(value); + return this; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + * @return whether the battleRecordAvatars field is set + */ + public boolean hasBattleRecordAvatars() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + * @return this + */ + public FriendChallengeInfo clearBattleRecordAvatars() { + bitField0_ &= ~0x00000008; + battleRecordAvatars.clear(); + return this; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBattleRecordAvatars()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleRecordAvatars( + ) { + return battleRecordAvatars; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableBattleRecordAvatars( + ) { + bitField0_ |= 0x00000008; + return battleRecordAvatars; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + * @param value the battleRecordAvatars to add + * @return this + */ + public FriendChallengeInfo addBattleRecordAvatars( + final BattleRecordAvatarsOuterClass.BattleRecordAvatars value) { + bitField0_ |= 0x00000008; + battleRecordAvatars.add(value); + return this; + } + + /** + * repeated .BattleRecordAvatars battle_record_avatars = 2; + * @param values the battleRecordAvatars to add + * @return this + */ + public FriendChallengeInfo addAllBattleRecordAvatars( + final BattleRecordAvatarsOuterClass.BattleRecordAvatars... values) { + bitField0_ |= 0x00000008; + battleRecordAvatars.addAll(values); + return this; + } + + @Override + public FriendChallengeInfo copyFrom(final FriendChallengeInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + battleRecordStars = other.battleRecordStars; + score = other.score; + friendSimpleInfo.copyFrom(other.friendSimpleInfo); + battleRecordAvatars.copyFrom(other.battleRecordAvatars); + } + return this; + } + + @Override + public FriendChallengeInfo mergeFrom(final FriendChallengeInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBattleRecordStars()) { + setBattleRecordStars(other.battleRecordStars); + } + if (other.hasScore()) { + setScore(other.score); + } + if (other.hasFriendSimpleInfo()) { + getMutableFriendSimpleInfo().mergeFrom(other.friendSimpleInfo); + } + if (other.hasBattleRecordAvatars()) { + getMutableBattleRecordAvatars().addAll(other.battleRecordAvatars); + } + return this; + } + + @Override + public FriendChallengeInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + battleRecordStars = 0; + score = 0; + friendSimpleInfo.clear(); + battleRecordAvatars.clear(); + return this; + } + + @Override + public FriendChallengeInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + friendSimpleInfo.clearQuick(); + battleRecordAvatars.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FriendChallengeInfo)) { + return false; + } + FriendChallengeInfo other = (FriendChallengeInfo) o; + return bitField0_ == other.bitField0_ + && (!hasBattleRecordStars() || battleRecordStars == other.battleRecordStars) + && (!hasScore() || score == other.score) + && (!hasFriendSimpleInfo() || friendSimpleInfo.equals(other.friendSimpleInfo)) + && (!hasBattleRecordAvatars() || battleRecordAvatars.equals(other.battleRecordAvatars)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(battleRecordStars); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(friendSimpleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < battleRecordAvatars.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(battleRecordAvatars.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleRecordStars); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(score); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(friendSimpleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * battleRecordAvatars.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleRecordAvatars); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FriendChallengeInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // battleRecordStars + battleRecordStars = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // score + score = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // friendSimpleInfo + input.readMessage(friendSimpleInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // battleRecordAvatars + tag = input.readRepeatedMessage(battleRecordAvatars, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.battleRecordStars, battleRecordStars); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.score, score); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.friendSimpleInfo, friendSimpleInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.battleRecordAvatars, battleRecordAvatars); + } + output.endObject(); + } + + @Override + public FriendChallengeInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1025792328: + case 59201306: { + if (input.isAtField(FieldNames.battleRecordStars)) { + if (!input.trySkipNullValue()) { + battleRecordStars = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109264530: { + if (input.isAtField(FieldNames.score)) { + if (!input.trySkipNullValue()) { + score = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 983603902: + case -184903942: { + if (input.isAtField(FieldNames.friendSimpleInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(friendSimpleInfo); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -976809263: + case -1974979917: { + if (input.isAtField(FieldNames.battleRecordAvatars)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(battleRecordAvatars); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FriendChallengeInfo clone() { + return new FriendChallengeInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FriendChallengeInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FriendChallengeInfo(), data).checkInitialized(); + } + + public static FriendChallengeInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendChallengeInfo(), input).checkInitialized(); + } + + public static FriendChallengeInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendChallengeInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FriendChallengeInfo messages + */ + public static MessageFactory getFactory() { + return FriendChallengeInfoFactory.INSTANCE; + } + + private enum FriendChallengeInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FriendChallengeInfo create() { + return FriendChallengeInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName battleRecordStars = FieldName.forField("battleRecordStars", "battle_record_stars"); + + static final FieldName score = FieldName.forField("score"); + + static final FieldName friendSimpleInfo = FieldName.forField("friendSimpleInfo", "friend_simple_info"); + + static final FieldName battleRecordAvatars = FieldName.forField("battleRecordAvatars", "battle_record_avatars"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FriendDevelopmentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendDevelopmentInfoOuterClass.java new file mode 100644 index 0000000..9eb21a3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/FriendDevelopmentInfoOuterClass.java @@ -0,0 +1,750 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class FriendDevelopmentInfoOuterClass { + /** + * Protobuf type {@code FriendDevelopmentInfo} + */ + public static final class FriendDevelopmentInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 time = 4; + */ + private long time; + + /** + * optional uint32 MEOJDPFCEOI = 149; + */ + private int mEOJDPFCEOI; + + /** + * optional uint32 avatar_id = 710; + */ + private int avatarId; + + /** + * optional uint32 EMIDNFOLJDJ = 1496; + */ + private int eMIDNFOLJDJ; + + /** + * optional .DevelopmentType development_type = 12; + */ + private int developmentType; + + /** + *
+     *  MLLFMKOKJFK CEOFECGIHPD = 1319;
+     *  NIOIGPPBPEH LFHOJLFBGDI = 1267; // NEW WTF?
+     * 
+ * + * optional .ChallengeDevelopmentInfo challenge_development_info = 120; + */ + private final ChallengeDevelopmentInfoOuterClass.ChallengeDevelopmentInfo challengeDevelopmentInfo = ChallengeDevelopmentInfoOuterClass.ChallengeDevelopmentInfo.newInstance(); + + private FriendDevelopmentInfo() { + } + + /** + * @return a new empty instance of {@code FriendDevelopmentInfo} + */ + public static FriendDevelopmentInfo newInstance() { + return new FriendDevelopmentInfo(); + } + + /** + * optional int64 time = 4; + * @return whether the time field is set + */ + public boolean hasTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 time = 4; + * @return this + */ + public FriendDevelopmentInfo clearTime() { + bitField0_ &= ~0x00000001; + time = 0L; + return this; + } + + /** + * optional int64 time = 4; + * @return the time + */ + public long getTime() { + return time; + } + + /** + * optional int64 time = 4; + * @param value the time to set + * @return this + */ + public FriendDevelopmentInfo setTime(final long value) { + bitField0_ |= 0x00000001; + time = value; + return this; + } + + /** + * optional uint32 MEOJDPFCEOI = 149; + * @return whether the mEOJDPFCEOI field is set + */ + public boolean hasMEOJDPFCEOI() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 MEOJDPFCEOI = 149; + * @return this + */ + public FriendDevelopmentInfo clearMEOJDPFCEOI() { + bitField0_ &= ~0x00000002; + mEOJDPFCEOI = 0; + return this; + } + + /** + * optional uint32 MEOJDPFCEOI = 149; + * @return the mEOJDPFCEOI + */ + public int getMEOJDPFCEOI() { + return mEOJDPFCEOI; + } + + /** + * optional uint32 MEOJDPFCEOI = 149; + * @param value the mEOJDPFCEOI to set + * @return this + */ + public FriendDevelopmentInfo setMEOJDPFCEOI(final int value) { + bitField0_ |= 0x00000002; + mEOJDPFCEOI = value; + return this; + } + + /** + * optional uint32 avatar_id = 710; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 avatar_id = 710; + * @return this + */ + public FriendDevelopmentInfo clearAvatarId() { + bitField0_ &= ~0x00000004; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 710; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 710; + * @param value the avatarId to set + * @return this + */ + public FriendDevelopmentInfo setAvatarId(final int value) { + bitField0_ |= 0x00000004; + avatarId = value; + return this; + } + + /** + * optional uint32 EMIDNFOLJDJ = 1496; + * @return whether the eMIDNFOLJDJ field is set + */ + public boolean hasEMIDNFOLJDJ() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 EMIDNFOLJDJ = 1496; + * @return this + */ + public FriendDevelopmentInfo clearEMIDNFOLJDJ() { + bitField0_ &= ~0x00000008; + eMIDNFOLJDJ = 0; + return this; + } + + /** + * optional uint32 EMIDNFOLJDJ = 1496; + * @return the eMIDNFOLJDJ + */ + public int getEMIDNFOLJDJ() { + return eMIDNFOLJDJ; + } + + /** + * optional uint32 EMIDNFOLJDJ = 1496; + * @param value the eMIDNFOLJDJ to set + * @return this + */ + public FriendDevelopmentInfo setEMIDNFOLJDJ(final int value) { + bitField0_ |= 0x00000008; + eMIDNFOLJDJ = value; + return this; + } + + /** + * optional .DevelopmentType development_type = 12; + * @return whether the developmentType field is set + */ + public boolean hasDevelopmentType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .DevelopmentType development_type = 12; + * @return this + */ + public FriendDevelopmentInfo clearDevelopmentType() { + bitField0_ &= ~0x00000010; + developmentType = 0; + return this; + } + + /** + * optional .DevelopmentType development_type = 12; + * @return the developmentType + */ + public DevelopmentTypeOuterClass.DevelopmentType getDevelopmentType() { + return DevelopmentTypeOuterClass.DevelopmentType.forNumber(developmentType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link FriendDevelopmentInfo#getDevelopmentType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getDevelopmentTypeValue() { + return developmentType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link DevelopmentTypeOuterClass.DevelopmentType}. Setting an invalid value + * can cause {@link FriendDevelopmentInfo#getDevelopmentType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public FriendDevelopmentInfo setDevelopmentTypeValue(final int value) { + bitField0_ |= 0x00000010; + developmentType = value; + return this; + } + + /** + * optional .DevelopmentType development_type = 12; + * @param value the developmentType to set + * @return this + */ + public FriendDevelopmentInfo setDevelopmentType( + final DevelopmentTypeOuterClass.DevelopmentType value) { + bitField0_ |= 0x00000010; + developmentType = value.getNumber(); + return this; + } + + /** + *
+     *  MLLFMKOKJFK CEOFECGIHPD = 1319;
+     *  NIOIGPPBPEH LFHOJLFBGDI = 1267; // NEW WTF?
+     * 
+ * + * optional .ChallengeDevelopmentInfo challenge_development_info = 120; + * @return whether the challengeDevelopmentInfo field is set + */ + public boolean hasChallengeDevelopmentInfo() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + *
+     *  MLLFMKOKJFK CEOFECGIHPD = 1319;
+     *  NIOIGPPBPEH LFHOJLFBGDI = 1267; // NEW WTF?
+     * 
+ * + * optional .ChallengeDevelopmentInfo challenge_development_info = 120; + * @return this + */ + public FriendDevelopmentInfo clearChallengeDevelopmentInfo() { + bitField0_ &= ~0x00000020; + challengeDevelopmentInfo.clear(); + return this; + } + + /** + *
+     *  MLLFMKOKJFK CEOFECGIHPD = 1319;
+     *  NIOIGPPBPEH LFHOJLFBGDI = 1267; // NEW WTF?
+     * 
+ * + * optional .ChallengeDevelopmentInfo challenge_development_info = 120; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeDevelopmentInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChallengeDevelopmentInfoOuterClass.ChallengeDevelopmentInfo getChallengeDevelopmentInfo( + ) { + return challengeDevelopmentInfo; + } + + /** + *
+     *  MLLFMKOKJFK CEOFECGIHPD = 1319;
+     *  NIOIGPPBPEH LFHOJLFBGDI = 1267; // NEW WTF?
+     * 
+ * + * optional .ChallengeDevelopmentInfo challenge_development_info = 120; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChallengeDevelopmentInfoOuterClass.ChallengeDevelopmentInfo getMutableChallengeDevelopmentInfo( + ) { + bitField0_ |= 0x00000020; + return challengeDevelopmentInfo; + } + + /** + *
+     *  MLLFMKOKJFK CEOFECGIHPD = 1319;
+     *  NIOIGPPBPEH LFHOJLFBGDI = 1267; // NEW WTF?
+     * 
+ * + * optional .ChallengeDevelopmentInfo challenge_development_info = 120; + * @param value the challengeDevelopmentInfo to set + * @return this + */ + public FriendDevelopmentInfo setChallengeDevelopmentInfo( + final ChallengeDevelopmentInfoOuterClass.ChallengeDevelopmentInfo value) { + bitField0_ |= 0x00000020; + challengeDevelopmentInfo.copyFrom(value); + return this; + } + + @Override + public FriendDevelopmentInfo copyFrom(final FriendDevelopmentInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + time = other.time; + mEOJDPFCEOI = other.mEOJDPFCEOI; + avatarId = other.avatarId; + eMIDNFOLJDJ = other.eMIDNFOLJDJ; + developmentType = other.developmentType; + challengeDevelopmentInfo.copyFrom(other.challengeDevelopmentInfo); + } + return this; + } + + @Override + public FriendDevelopmentInfo mergeFrom(final FriendDevelopmentInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTime()) { + setTime(other.time); + } + if (other.hasMEOJDPFCEOI()) { + setMEOJDPFCEOI(other.mEOJDPFCEOI); + } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasEMIDNFOLJDJ()) { + setEMIDNFOLJDJ(other.eMIDNFOLJDJ); + } + if (other.hasDevelopmentType()) { + setDevelopmentTypeValue(other.developmentType); + } + if (other.hasChallengeDevelopmentInfo()) { + getMutableChallengeDevelopmentInfo().mergeFrom(other.challengeDevelopmentInfo); + } + return this; + } + + @Override + public FriendDevelopmentInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + time = 0L; + mEOJDPFCEOI = 0; + avatarId = 0; + eMIDNFOLJDJ = 0; + developmentType = 0; + challengeDevelopmentInfo.clear(); + return this; + } + + @Override + public FriendDevelopmentInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeDevelopmentInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FriendDevelopmentInfo)) { + return false; + } + FriendDevelopmentInfo other = (FriendDevelopmentInfo) o; + return bitField0_ == other.bitField0_ + && (!hasTime() || time == other.time) + && (!hasMEOJDPFCEOI() || mEOJDPFCEOI == other.mEOJDPFCEOI) + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasEMIDNFOLJDJ() || eMIDNFOLJDJ == other.eMIDNFOLJDJ) + && (!hasDevelopmentType() || developmentType == other.developmentType) + && (!hasChallengeDevelopmentInfo() || challengeDevelopmentInfo.equals(other.challengeDevelopmentInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeInt64NoTag(time); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 2472); + output.writeUInt32NoTag(mEOJDPFCEOI); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 11440); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 24000); + output.writeUInt32NoTag(eMIDNFOLJDJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(developmentType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 1986); + output.writeMessageNoTag(challengeDevelopmentInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(time); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(mEOJDPFCEOI); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeUInt32SizeNoTag(eMIDNFOLJDJ); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(developmentType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(challengeDevelopmentInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FriendDevelopmentInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // time + time = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 1192) { + break; + } + } + case 1192: { + // mEOJDPFCEOI + mEOJDPFCEOI = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 5680) { + break; + } + } + case 5680: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 11968) { + break; + } + } + case 11968: { + // eMIDNFOLJDJ + eMIDNFOLJDJ = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // developmentType + final int value = input.readInt32(); + if (DevelopmentTypeOuterClass.DevelopmentType.forNumber(value) != null) { + developmentType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 962) { + break; + } + } + case 962: { + // challengeDevelopmentInfo + input.readMessage(challengeDevelopmentInfo); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.time, time); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.mEOJDPFCEOI, mEOJDPFCEOI); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.eMIDNFOLJDJ, eMIDNFOLJDJ); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.developmentType, developmentType, DevelopmentTypeOuterClass.DevelopmentType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.challengeDevelopmentInfo, challengeDevelopmentInfo); + } + output.endObject(); + } + + @Override + public FriendDevelopmentInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3560141: { + if (input.isAtField(FieldNames.time)) { + if (!input.trySkipNullValue()) { + time = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 40884515: { + if (input.isAtField(FieldNames.mEOJDPFCEOI)) { + if (!input.trySkipNullValue()) { + mEOJDPFCEOI = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 354745208: { + if (input.isAtField(FieldNames.eMIDNFOLJDJ)) { + if (!input.trySkipNullValue()) { + eMIDNFOLJDJ = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1511355627: + case 402634686: { + if (input.isAtField(FieldNames.developmentType)) { + if (!input.trySkipNullValue()) { + final DevelopmentTypeOuterClass.DevelopmentType value = input.readEnum(DevelopmentTypeOuterClass.DevelopmentType.converter()); + if (value != null) { + developmentType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 310307238: + case -929340018: { + if (input.isAtField(FieldNames.challengeDevelopmentInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(challengeDevelopmentInfo); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FriendDevelopmentInfo clone() { + return new FriendDevelopmentInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FriendDevelopmentInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FriendDevelopmentInfo(), data).checkInitialized(); + } + + public static FriendDevelopmentInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendDevelopmentInfo(), input).checkInitialized(); + } + + public static FriendDevelopmentInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FriendDevelopmentInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating FriendDevelopmentInfo messages + */ + public static MessageFactory getFactory() { + return FriendDevelopmentInfoFactory.INSTANCE; + } + + private enum FriendDevelopmentInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public FriendDevelopmentInfo create() { + return FriendDevelopmentInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName time = FieldName.forField("time"); + + static final FieldName mEOJDPFCEOI = FieldName.forField("MEOJDPFCEOI"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName eMIDNFOLJDJ = FieldName.forField("EMIDNFOLJDJ"); + + static final FieldName developmentType = FieldName.forField("developmentType", "development_type"); + + static final FieldName challengeDevelopmentInfo = FieldName.forField("challengeDevelopmentInfo", "challenge_development_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java index 8dd2c4b..2881125 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendListInfoOuterClass.java @@ -20,22 +20,22 @@ public final class FriendListInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .PlayingState playing_state = 3; + * optional .PlayingState playing_state = 11; */ private int playingState; /** - * optional bool is_marked = 4; + * optional bool is_marked = 9; */ private boolean isMarked; /** - * optional .SimpleInfo simple_info = 2; + * optional .PlayerSimpleInfo simple_info = 1; */ - private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); + private final PlayerSimpleInfoOuterClass.PlayerSimpleInfo simpleInfo = PlayerSimpleInfoOuterClass.PlayerSimpleInfo.newInstance(); /** - * optional string remark_name = 13; + * optional string remark_name = 7; */ private final Utf8String remarkName = Utf8String.newEmptyInstance(); @@ -50,7 +50,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .PlayingState playing_state = 3; + * optional .PlayingState playing_state = 11; * @return whether the playingState field is set */ public boolean hasPlayingState() { @@ -58,7 +58,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .PlayingState playing_state = 3; + * optional .PlayingState playing_state = 11; * @return this */ public FriendListInfo clearPlayingState() { @@ -68,7 +68,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .PlayingState playing_state = 3; + * optional .PlayingState playing_state = 11; * @return the playingState */ public PlayingStateOuterClass.PlayingState getPlayingState() { @@ -101,7 +101,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .PlayingState playing_state = 3; + * optional .PlayingState playing_state = 11; * @param value the playingState to set * @return this */ @@ -112,7 +112,7 @@ public final class FriendListInfoOuterClass { } /** - * optional bool is_marked = 4; + * optional bool is_marked = 9; * @return whether the isMarked field is set */ public boolean hasIsMarked() { @@ -120,7 +120,7 @@ public final class FriendListInfoOuterClass { } /** - * optional bool is_marked = 4; + * optional bool is_marked = 9; * @return this */ public FriendListInfo clearIsMarked() { @@ -130,7 +130,7 @@ public final class FriendListInfoOuterClass { } /** - * optional bool is_marked = 4; + * optional bool is_marked = 9; * @return the isMarked */ public boolean getIsMarked() { @@ -138,7 +138,7 @@ public final class FriendListInfoOuterClass { } /** - * optional bool is_marked = 4; + * optional bool is_marked = 9; * @param value the isMarked to set * @return this */ @@ -149,7 +149,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 2; + * optional .PlayerSimpleInfo simple_info = 1; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -157,7 +157,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 2; + * optional .PlayerSimpleInfo simple_info = 1; * @return this */ public FriendListInfo clearSimpleInfo() { @@ -167,7 +167,7 @@ public final class FriendListInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 2; + * optional .PlayerSimpleInfo simple_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -176,12 +176,12 @@ public final class FriendListInfoOuterClass { * * @return internal storage object for reading */ - public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getSimpleInfo() { return simpleInfo; } /** - * optional .SimpleInfo simple_info = 2; + * optional .PlayerSimpleInfo simple_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -189,24 +189,24 @@ public final class FriendListInfoOuterClass { * * @return internal storage object for modifications */ - public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getMutableSimpleInfo() { bitField0_ |= 0x00000004; return simpleInfo; } /** - * optional .SimpleInfo simple_info = 2; + * optional .PlayerSimpleInfo simple_info = 1; * @param value the simpleInfo to set * @return this */ - public FriendListInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + public FriendListInfo setSimpleInfo(final PlayerSimpleInfoOuterClass.PlayerSimpleInfo value) { bitField0_ |= 0x00000004; simpleInfo.copyFrom(value); return this; } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @return whether the remarkName field is set */ public boolean hasRemarkName() { @@ -214,7 +214,7 @@ public final class FriendListInfoOuterClass { } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @return this */ public FriendListInfo clearRemarkName() { @@ -224,7 +224,7 @@ public final class FriendListInfoOuterClass { } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @return the remarkName */ public String getRemarkName() { @@ -232,7 +232,7 @@ public final class FriendListInfoOuterClass { } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @return internal {@code Utf8String} representation of remarkName for reading */ public Utf8String getRemarkNameBytes() { @@ -240,7 +240,7 @@ public final class FriendListInfoOuterClass { } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @return internal {@code Utf8String} representation of remarkName for modifications */ public Utf8String getMutableRemarkNameBytes() { @@ -249,7 +249,7 @@ public final class FriendListInfoOuterClass { } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @param value the remarkName to set * @return this */ @@ -260,7 +260,7 @@ public final class FriendListInfoOuterClass { } /** - * optional string remark_name = 13; + * optional string remark_name = 7; * @param value the remarkName to set * @return this */ @@ -349,19 +349,19 @@ public final class FriendListInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 88); output.writeEnumNoTag(playingState); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 72); output.writeBoolNoTag(isMarked); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 10); output.writeMessageNoTag(simpleInfo); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 58); output.writeStringNoTag(remarkName); } } @@ -391,7 +391,7 @@ public final class FriendListInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 88: { // playingState final int value = input.readInt32(); if (PlayingStateOuterClass.PlayingState.forNumber(value) != null) { @@ -399,29 +399,29 @@ public final class FriendListInfoOuterClass { bitField0_ |= 0x00000001; } tag = input.readTag(); - if (tag != 32) { + if (tag != 72) { break; } } - case 32: { + case 72: { // isMarked isMarked = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 18) { + if (tag != 10) { break; } } - case 18: { + case 10: { // simpleInfo input.readMessage(simpleInfo); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 106) { + if (tag != 58) { break; } } - case 106: { + case 58: { // remarkName input.readString(remarkName); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java index c6633fd..7066611 100644 --- a/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/FriendRecommendInfoOuterClass.java @@ -13,20 +13,32 @@ import us.hebi.quickbuf.ProtoSource; public final class FriendRecommendInfoOuterClass { /** + *
+   *  ENNAEMFJNEP
+   * 
+ * * Protobuf type {@code FriendRecommendInfo} */ public static final class FriendRecommendInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional .SimpleInfo simple_info = 14; + *
+     *  FPKKLDGIJIG
+     * 
+ * + * optional .PlayerSimpleInfo simple_info = 7; */ - private final SimpleInfoOuterClass.SimpleInfo simpleInfo = SimpleInfoOuterClass.SimpleInfo.newInstance(); + private final PlayerSimpleInfoOuterClass.PlayerSimpleInfo simpleInfo = PlayerSimpleInfoOuterClass.PlayerSimpleInfo.newInstance(); private FriendRecommendInfo() { } /** + *
+     *  ENNAEMFJNEP
+     * 
+ * * @return a new empty instance of {@code FriendRecommendInfo} */ public static FriendRecommendInfo newInstance() { @@ -34,7 +46,11 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 14; + *
+     *  FPKKLDGIJIG
+     * 
+ * + * optional .PlayerSimpleInfo simple_info = 7; * @return whether the simpleInfo field is set */ public boolean hasSimpleInfo() { @@ -42,7 +58,11 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 14; + *
+     *  FPKKLDGIJIG
+     * 
+ * + * optional .PlayerSimpleInfo simple_info = 7; * @return this */ public FriendRecommendInfo clearSimpleInfo() { @@ -52,7 +72,11 @@ public final class FriendRecommendInfoOuterClass { } /** - * optional .SimpleInfo simple_info = 14; + *
+     *  FPKKLDGIJIG
+     * 
+ * + * optional .PlayerSimpleInfo simple_info = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -61,12 +85,16 @@ public final class FriendRecommendInfoOuterClass { * * @return internal storage object for reading */ - public SimpleInfoOuterClass.SimpleInfo getSimpleInfo() { + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getSimpleInfo() { return simpleInfo; } /** - * optional .SimpleInfo simple_info = 14; + *
+     *  FPKKLDGIJIG
+     * 
+ * + * optional .PlayerSimpleInfo simple_info = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -74,17 +102,22 @@ public final class FriendRecommendInfoOuterClass { * * @return internal storage object for modifications */ - public SimpleInfoOuterClass.SimpleInfo getMutableSimpleInfo() { + public PlayerSimpleInfoOuterClass.PlayerSimpleInfo getMutableSimpleInfo() { bitField0_ |= 0x00000001; return simpleInfo; } /** - * optional .SimpleInfo simple_info = 14; + *
+     *  FPKKLDGIJIG
+     * 
+ * + * optional .PlayerSimpleInfo simple_info = 7; * @param value the simpleInfo to set * @return this */ - public FriendRecommendInfo setSimpleInfo(final SimpleInfoOuterClass.SimpleInfo value) { + public FriendRecommendInfo setSimpleInfo( + final PlayerSimpleInfoOuterClass.PlayerSimpleInfo value) { bitField0_ |= 0x00000001; simpleInfo.copyFrom(value); return this; @@ -150,7 +183,7 @@ public final class FriendRecommendInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 58); output.writeMessageNoTag(simpleInfo); } } @@ -171,7 +204,7 @@ public final class FriendRecommendInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 58: { // simpleInfo input.readMessage(simpleInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java index b067c55..6961d53 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaCeilingOuterClass.java @@ -20,7 +20,7 @@ public final class GachaCeilingOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 ceiling_num = 7; + * optional uint32 ceiling_num = 11; */ private int ceilingNum; @@ -30,7 +30,7 @@ public final class GachaCeilingOuterClass { private boolean isClaimed; /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(GachaCeilingAvatarOuterClass.GachaCeilingAvatar.getFactory()); @@ -45,7 +45,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 7; + * optional uint32 ceiling_num = 11; * @return whether the ceilingNum field is set */ public boolean hasCeilingNum() { @@ -53,7 +53,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 7; + * optional uint32 ceiling_num = 11; * @return this */ public GachaCeiling clearCeilingNum() { @@ -63,7 +63,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 7; + * optional uint32 ceiling_num = 11; * @return the ceilingNum */ public int getCeilingNum() { @@ -71,7 +71,7 @@ public final class GachaCeilingOuterClass { } /** - * optional uint32 ceiling_num = 7; + * optional uint32 ceiling_num = 11; * @param value the ceilingNum to set * @return this */ @@ -119,7 +119,7 @@ public final class GachaCeilingOuterClass { } /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; * @return whether the avatarList field is set */ public boolean hasAvatarList() { @@ -127,7 +127,7 @@ public final class GachaCeilingOuterClass { } /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; * @return this */ public GachaCeiling clearAvatarList() { @@ -137,7 +137,7 @@ public final class GachaCeilingOuterClass { } /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public final class GachaCeilingOuterClass { } /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public final class GachaCeilingOuterClass { } /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; * @param value the avatarList to add * @return this */ @@ -176,7 +176,7 @@ public final class GachaCeilingOuterClass { } /** - * repeated .GachaCeilingAvatar avatar_list = 3; + * repeated .GachaCeilingAvatar avatar_list = 8; * @param values the avatarList to add * @return this */ @@ -259,7 +259,7 @@ public final class GachaCeilingOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(ceilingNum); } if ((bitField0_ & 0x00000002) != 0) { @@ -268,7 +268,7 @@ public final class GachaCeilingOuterClass { } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 66); output.writeMessageNoTag(avatarList.get(i)); } } @@ -296,7 +296,7 @@ public final class GachaCeilingOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 88: { // ceilingNum ceilingNum = input.readUInt32(); bitField0_ |= 0x00000001; @@ -310,11 +310,11 @@ public final class GachaCeilingOuterClass { isClaimed = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 66) { break; } } - case 26: { + case 66: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java index fe4816b..5c76dfa 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaInfoOuterClass.java @@ -21,49 +21,49 @@ public final class GachaInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 end_time = 5; + * optional int64 end_time = 2; */ private long endTime; /** - * optional int64 begin_time = 6; + * optional int64 begin_time = 3; */ private long beginTime; /** - * optional uint32 gacha_id = 11; + * optional uint32 gacha_id = 7; */ private int gachaId; - /** - * optional uint32 current_gacha_time = 13; - */ - private int currentGachaTime; - /** * optional .GachaCeiling gacha_ceiling = 15; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); /** - * optional string detail_url = 9; + * optional string detail_url = 10; */ private final Utf8String detailUrl = Utf8String.newEmptyInstance(); /** - * optional string history_url = 10; + * optional string history_url = 12; */ private final Utf8String historyUrl = Utf8String.newEmptyInstance(); /** - * repeated uint32 up_info = 2; + * repeated uint32 featured = 6; + */ + private final RepeatedInt featured = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 up_info = 9; */ private final RepeatedInt upInfo = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 featured = 4; + * repeated uint32 PIAIMLOHFGF = 11; */ - private final RepeatedInt featured = RepeatedInt.newEmptyInstance(); + private final RepeatedInt pIAIMLOHFGF = RepeatedInt.newEmptyInstance(); private GachaInfo() { } @@ -76,7 +76,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 5; + * optional int64 end_time = 2; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -84,7 +84,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 5; + * optional int64 end_time = 2; * @return this */ public GachaInfo clearEndTime() { @@ -94,7 +94,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 5; + * optional int64 end_time = 2; * @return the endTime */ public long getEndTime() { @@ -102,7 +102,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 end_time = 5; + * optional int64 end_time = 2; * @param value the endTime to set * @return this */ @@ -113,7 +113,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 6; + * optional int64 begin_time = 3; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -121,7 +121,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 6; + * optional int64 begin_time = 3; * @return this */ public GachaInfo clearBeginTime() { @@ -131,7 +131,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 6; + * optional int64 begin_time = 3; * @return the beginTime */ public long getBeginTime() { @@ -139,7 +139,7 @@ public final class GachaInfoOuterClass { } /** - * optional int64 begin_time = 6; + * optional int64 begin_time = 3; * @param value the beginTime to set * @return this */ @@ -150,7 +150,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 11; + * optional uint32 gacha_id = 7; * @return whether the gachaId field is set */ public boolean hasGachaId() { @@ -158,7 +158,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 11; + * optional uint32 gacha_id = 7; * @return this */ public GachaInfo clearGachaId() { @@ -168,7 +168,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 11; + * optional uint32 gacha_id = 7; * @return the gachaId */ public int getGachaId() { @@ -176,7 +176,7 @@ public final class GachaInfoOuterClass { } /** - * optional uint32 gacha_id = 11; + * optional uint32 gacha_id = 7; * @param value the gachaId to set * @return this */ @@ -186,49 +186,12 @@ public final class GachaInfoOuterClass { return this; } - /** - * optional uint32 current_gacha_time = 13; - * @return whether the currentGachaTime field is set - */ - public boolean hasCurrentGachaTime() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 current_gacha_time = 13; - * @return this - */ - public GachaInfo clearCurrentGachaTime() { - bitField0_ &= ~0x00000008; - currentGachaTime = 0; - return this; - } - - /** - * optional uint32 current_gacha_time = 13; - * @return the currentGachaTime - */ - public int getCurrentGachaTime() { - return currentGachaTime; - } - - /** - * optional uint32 current_gacha_time = 13; - * @param value the currentGachaTime to set - * @return this - */ - public GachaInfo setCurrentGachaTime(final int value) { - bitField0_ |= 0x00000008; - currentGachaTime = value; - return this; - } - /** * optional .GachaCeiling gacha_ceiling = 15; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** @@ -236,7 +199,7 @@ public final class GachaInfoOuterClass { * @return this */ public GachaInfo clearGachaCeiling() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; gachaCeiling.clear(); return this; } @@ -265,7 +228,7 @@ public final class GachaInfoOuterClass { * @return internal storage object for modifications */ public GachaCeilingOuterClass.GachaCeiling getMutableGachaCeiling() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; return gachaCeiling; } @@ -275,31 +238,31 @@ public final class GachaInfoOuterClass { * @return this */ public GachaInfo setGachaCeiling(final GachaCeilingOuterClass.GachaCeiling value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; gachaCeiling.copyFrom(value); return this; } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @return whether the detailUrl field is set */ public boolean hasDetailUrl() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000010) != 0; } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @return this */ public GachaInfo clearDetailUrl() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; detailUrl.clear(); return this; } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @return the detailUrl */ public String getDetailUrl() { @@ -307,7 +270,7 @@ public final class GachaInfoOuterClass { } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @return internal {@code Utf8String} representation of detailUrl for reading */ public Utf8String getDetailUrlBytes() { @@ -315,56 +278,56 @@ public final class GachaInfoOuterClass { } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @return internal {@code Utf8String} representation of detailUrl for modifications */ public Utf8String getMutableDetailUrlBytes() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; return this.detailUrl; } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @param value the detailUrl to set * @return this */ public GachaInfo setDetailUrl(final CharSequence value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; detailUrl.copyFrom(value); return this; } /** - * optional string detail_url = 9; + * optional string detail_url = 10; * @param value the detailUrl to set * @return this */ public GachaInfo setDetailUrl(final Utf8String value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; detailUrl.copyFrom(value); return this; } /** - * optional string history_url = 10; + * optional string history_url = 12; * @return whether the historyUrl field is set */ public boolean hasHistoryUrl() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000020) != 0; } /** - * optional string history_url = 10; + * optional string history_url = 12; * @return this */ public GachaInfo clearHistoryUrl() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; historyUrl.clear(); return this; } /** - * optional string history_url = 10; + * optional string history_url = 12; * @return the historyUrl */ public String getHistoryUrl() { @@ -372,7 +335,7 @@ public final class GachaInfoOuterClass { } /** - * optional string history_url = 10; + * optional string history_url = 12; * @return internal {@code Utf8String} representation of historyUrl for reading */ public Utf8String getHistoryUrlBytes() { @@ -380,124 +343,56 @@ public final class GachaInfoOuterClass { } /** - * optional string history_url = 10; + * optional string history_url = 12; * @return internal {@code Utf8String} representation of historyUrl for modifications */ public Utf8String getMutableHistoryUrlBytes() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; return this.historyUrl; } /** - * optional string history_url = 10; + * optional string history_url = 12; * @param value the historyUrl to set * @return this */ public GachaInfo setHistoryUrl(final CharSequence value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; historyUrl.copyFrom(value); return this; } /** - * optional string history_url = 10; + * optional string history_url = 12; * @param value the historyUrl to set * @return this */ public GachaInfo setHistoryUrl(final Utf8String value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; historyUrl.copyFrom(value); return this; } /** - * repeated uint32 up_info = 2; - * @return whether the upInfo field is set - */ - public boolean hasUpInfo() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated uint32 up_info = 2; - * @return this - */ - public GachaInfo clearUpInfo() { - bitField0_ &= ~0x00000080; - upInfo.clear(); - return this; - } - - /** - * repeated uint32 up_info = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUpInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getUpInfo() { - return upInfo; - } - - /** - * repeated uint32 up_info = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableUpInfo() { - bitField0_ |= 0x00000080; - return upInfo; - } - - /** - * repeated uint32 up_info = 2; - * @param value the upInfo to add - * @return this - */ - public GachaInfo addUpInfo(final int value) { - bitField0_ |= 0x00000080; - upInfo.add(value); - return this; - } - - /** - * repeated uint32 up_info = 2; - * @param values the upInfo to add - * @return this - */ - public GachaInfo addAllUpInfo(final int... values) { - bitField0_ |= 0x00000080; - upInfo.addAll(values); - return this; - } - - /** - * repeated uint32 featured = 4; + * repeated uint32 featured = 6; * @return whether the featured field is set */ public boolean hasFeatured() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000040) != 0; } /** - * repeated uint32 featured = 4; + * repeated uint32 featured = 6; * @return this */ public GachaInfo clearFeatured() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000040; featured.clear(); return this; } /** - * repeated uint32 featured = 4; + * repeated uint32 featured = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -511,7 +406,7 @@ public final class GachaInfoOuterClass { } /** - * repeated uint32 featured = 4; + * repeated uint32 featured = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -520,32 +415,168 @@ public final class GachaInfoOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableFeatured() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; return featured; } /** - * repeated uint32 featured = 4; + * repeated uint32 featured = 6; * @param value the featured to add * @return this */ public GachaInfo addFeatured(final int value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; featured.add(value); return this; } /** - * repeated uint32 featured = 4; + * repeated uint32 featured = 6; * @param values the featured to add * @return this */ public GachaInfo addAllFeatured(final int... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; featured.addAll(values); return this; } + /** + * repeated uint32 up_info = 9; + * @return whether the upInfo field is set + */ + public boolean hasUpInfo() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 up_info = 9; + * @return this + */ + public GachaInfo clearUpInfo() { + bitField0_ &= ~0x00000080; + upInfo.clear(); + return this; + } + + /** + * repeated uint32 up_info = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUpInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUpInfo() { + return upInfo; + } + + /** + * repeated uint32 up_info = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUpInfo() { + bitField0_ |= 0x00000080; + return upInfo; + } + + /** + * repeated uint32 up_info = 9; + * @param value the upInfo to add + * @return this + */ + public GachaInfo addUpInfo(final int value) { + bitField0_ |= 0x00000080; + upInfo.add(value); + return this; + } + + /** + * repeated uint32 up_info = 9; + * @param values the upInfo to add + * @return this + */ + public GachaInfo addAllUpInfo(final int... values) { + bitField0_ |= 0x00000080; + upInfo.addAll(values); + return this; + } + + /** + * repeated uint32 PIAIMLOHFGF = 11; + * @return whether the pIAIMLOHFGF field is set + */ + public boolean hasPIAIMLOHFGF() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated uint32 PIAIMLOHFGF = 11; + * @return this + */ + public GachaInfo clearPIAIMLOHFGF() { + bitField0_ &= ~0x00000100; + pIAIMLOHFGF.clear(); + return this; + } + + /** + * repeated uint32 PIAIMLOHFGF = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePIAIMLOHFGF()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPIAIMLOHFGF() { + return pIAIMLOHFGF; + } + + /** + * repeated uint32 PIAIMLOHFGF = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutablePIAIMLOHFGF() { + bitField0_ |= 0x00000100; + return pIAIMLOHFGF; + } + + /** + * repeated uint32 PIAIMLOHFGF = 11; + * @param value the pIAIMLOHFGF to add + * @return this + */ + public GachaInfo addPIAIMLOHFGF(final int value) { + bitField0_ |= 0x00000100; + pIAIMLOHFGF.add(value); + return this; + } + + /** + * repeated uint32 PIAIMLOHFGF = 11; + * @param values the pIAIMLOHFGF to add + * @return this + */ + public GachaInfo addAllPIAIMLOHFGF(final int... values) { + bitField0_ |= 0x00000100; + pIAIMLOHFGF.addAll(values); + return this; + } + @Override public GachaInfo copyFrom(final GachaInfo other) { cachedSize = other.cachedSize; @@ -554,12 +585,12 @@ public final class GachaInfoOuterClass { endTime = other.endTime; beginTime = other.beginTime; gachaId = other.gachaId; - currentGachaTime = other.currentGachaTime; gachaCeiling.copyFrom(other.gachaCeiling); detailUrl.copyFrom(other.detailUrl); historyUrl.copyFrom(other.historyUrl); - upInfo.copyFrom(other.upInfo); featured.copyFrom(other.featured); + upInfo.copyFrom(other.upInfo); + pIAIMLOHFGF.copyFrom(other.pIAIMLOHFGF); } return this; } @@ -579,9 +610,6 @@ public final class GachaInfoOuterClass { if (other.hasGachaId()) { setGachaId(other.gachaId); } - if (other.hasCurrentGachaTime()) { - setCurrentGachaTime(other.currentGachaTime); - } if (other.hasGachaCeiling()) { getMutableGachaCeiling().mergeFrom(other.gachaCeiling); } @@ -591,11 +619,14 @@ public final class GachaInfoOuterClass { if (other.hasHistoryUrl()) { getMutableHistoryUrlBytes().copyFrom(other.historyUrl); } + if (other.hasFeatured()) { + getMutableFeatured().addAll(other.featured); + } if (other.hasUpInfo()) { getMutableUpInfo().addAll(other.upInfo); } - if (other.hasFeatured()) { - getMutableFeatured().addAll(other.featured); + if (other.hasPIAIMLOHFGF()) { + getMutablePIAIMLOHFGF().addAll(other.pIAIMLOHFGF); } return this; } @@ -610,12 +641,12 @@ public final class GachaInfoOuterClass { endTime = 0L; beginTime = 0L; gachaId = 0; - currentGachaTime = 0; gachaCeiling.clear(); detailUrl.clear(); historyUrl.clear(); - upInfo.clear(); featured.clear(); + upInfo.clear(); + pIAIMLOHFGF.clear(); return this; } @@ -629,8 +660,9 @@ public final class GachaInfoOuterClass { gachaCeiling.clearQuick(); detailUrl.clear(); historyUrl.clear(); - upInfo.clear(); featured.clear(); + upInfo.clear(); + pIAIMLOHFGF.clear(); return this; } @@ -647,54 +679,56 @@ public final class GachaInfoOuterClass { && (!hasEndTime() || endTime == other.endTime) && (!hasBeginTime() || beginTime == other.beginTime) && (!hasGachaId() || gachaId == other.gachaId) - && (!hasCurrentGachaTime() || currentGachaTime == other.currentGachaTime) && (!hasGachaCeiling() || gachaCeiling.equals(other.gachaCeiling)) && (!hasDetailUrl() || detailUrl.equals(other.detailUrl)) && (!hasHistoryUrl() || historyUrl.equals(other.historyUrl)) + && (!hasFeatured() || featured.equals(other.featured)) && (!hasUpInfo() || upInfo.equals(other.upInfo)) - && (!hasFeatured() || featured.equals(other.featured)); + && (!hasPIAIMLOHFGF() || pIAIMLOHFGF.equals(other.pIAIMLOHFGF)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 24); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(gachaId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(currentGachaTime); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 122); output.writeMessageNoTag(gachaCeiling); } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 74); + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 82); output.writeStringNoTag(detailUrl); } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 82); + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 98); output.writeStringNoTag(historyUrl); } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < featured.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(featured.array()[i]); + } + } if ((bitField0_ & 0x00000080) != 0) { for (int i = 0; i < upInfo.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(upInfo.array()[i]); } } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < featured.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(featured.array()[i]); + for (int i = 0; i < pIAIMLOHFGF.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(pIAIMLOHFGF.array()[i]); } } } @@ -712,22 +746,22 @@ public final class GachaInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(currentGachaTime); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(gachaCeiling); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(detailUrl); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(historyUrl); } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * featured.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(featured); + } if ((bitField0_ & 0x00000080) != 0) { size += (1 * upInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(upInfo); } if ((bitField0_ & 0x00000100) != 0) { - size += (1 * featured.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(featured); + size += (1 * pIAIMLOHFGF.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pIAIMLOHFGF); } return size; } @@ -739,38 +773,29 @@ public final class GachaInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 16: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 24) { break; } } - case 48: { + case 24: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 56) { break; } } - case 88: { + case 56: { // gachaId gachaId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // currentGachaTime - currentGachaTime = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); if (tag != 122) { break; } @@ -778,42 +803,51 @@ public final class GachaInfoOuterClass { case 122: { // gachaCeiling input.readMessage(gachaCeiling); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // detailUrl - input.readString(detailUrl); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 82) { break; } } case 82: { - // historyUrl - input.readString(historyUrl); - bitField0_ |= 0x00000040; + // detailUrl + input.readString(detailUrl); + bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 18) { + if (tag != 98) { break; } } - case 18: { + case 98: { + // historyUrl + input.readString(historyUrl); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // featured [packed=true] + input.readPackedUInt32(featured, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { // upInfo [packed=true] input.readPackedUInt32(upInfo, tag); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 34) { + if (tag != 90) { break; } } - case 34: { - // featured [packed=true] - input.readPackedUInt32(featured, tag); + case 90: { + // pIAIMLOHFGF [packed=true] + input.readPackedUInt32(pIAIMLOHFGF, tag); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { @@ -830,15 +864,21 @@ public final class GachaInfoOuterClass { tag = input.readTag(); break; } - case 16: { + case 48: { + // featured [packed=false] + tag = input.readRepeatedUInt32(featured, tag); + bitField0_ |= 0x00000040; + break; + } + case 72: { // upInfo [packed=false] tag = input.readRepeatedUInt32(upInfo, tag); bitField0_ |= 0x00000080; break; } - case 32: { - // featured [packed=false] - tag = input.readRepeatedUInt32(featured, tag); + case 88: { + // pIAIMLOHFGF [packed=false] + tag = input.readRepeatedUInt32(pIAIMLOHFGF, tag); bitField0_ |= 0x00000100; break; } @@ -859,22 +899,22 @@ public final class GachaInfoOuterClass { output.writeUInt32(FieldNames.gachaId, gachaId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.currentGachaTime, currentGachaTime); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.gachaCeiling, gachaCeiling); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000010) != 0) { output.writeString(FieldNames.detailUrl, detailUrl); } - if ((bitField0_ & 0x00000040) != 0) { + if ((bitField0_ & 0x00000020) != 0) { output.writeString(FieldNames.historyUrl, historyUrl); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.featured, featured); + } if ((bitField0_ & 0x00000080) != 0) { output.writeRepeatedUInt32(FieldNames.upInfo, upInfo); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedUInt32(FieldNames.featured, featured); + output.writeRepeatedUInt32(FieldNames.pIAIMLOHFGF, pIAIMLOHFGF); } output.endObject(); } @@ -922,24 +962,12 @@ public final class GachaInfoOuterClass { } break; } - case 1941683702: - case 2062533104: { - if (input.isAtField(FieldNames.currentGachaTime)) { - if (!input.trySkipNullValue()) { - currentGachaTime = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 507275483: case -1792489728: { if (input.isAtField(FieldNames.gachaCeiling)) { if (!input.trySkipNullValue()) { input.readMessage(gachaCeiling); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -951,7 +979,7 @@ public final class GachaInfoOuterClass { if (input.isAtField(FieldNames.detailUrl)) { if (!input.trySkipNullValue()) { input.readString(detailUrl); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -963,6 +991,17 @@ public final class GachaInfoOuterClass { if (input.isAtField(FieldNames.historyUrl)) { if (!input.trySkipNullValue()) { input.readString(historyUrl); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -290659282: { + if (input.isAtField(FieldNames.featured)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(featured); bitField0_ |= 0x00000040; } } else { @@ -982,10 +1021,10 @@ public final class GachaInfoOuterClass { } break; } - case -290659282: { - if (input.isAtField(FieldNames.featured)) { + case -462797332: { + if (input.isAtField(FieldNames.pIAIMLOHFGF)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(featured); + input.readRepeatedUInt32(pIAIMLOHFGF); bitField0_ |= 0x00000100; } } else { @@ -1051,17 +1090,17 @@ public final class GachaInfoOuterClass { static final FieldName gachaId = FieldName.forField("gachaId", "gacha_id"); - static final FieldName currentGachaTime = FieldName.forField("currentGachaTime", "current_gacha_time"); - static final FieldName gachaCeiling = FieldName.forField("gachaCeiling", "gacha_ceiling"); static final FieldName detailUrl = FieldName.forField("detailUrl", "detail_url"); static final FieldName historyUrl = FieldName.forField("historyUrl", "history_url"); + static final FieldName featured = FieldName.forField("featured"); + static final FieldName upInfo = FieldName.forField("upInfo", "up_info"); - static final FieldName featured = FieldName.forField("featured"); + static final FieldName pIAIMLOHFGF = FieldName.forField("PIAIMLOHFGF"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java index fc02bbe..882a527 100644 --- a/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GachaItemOuterClass.java @@ -19,24 +19,24 @@ public final class GachaItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_new = 13; + * optional bool is_new = 6; */ private boolean isNew; /** - * optional .Item gacha_item = 1; + * optional .ItemList token_item = 7; */ - private final ItemOuterClass.Item gachaItem = ItemOuterClass.Item.newInstance(); + private final ItemListOuterClass.ItemList tokenItem = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList transfer_item_list = 4; + * optional .ItemList transfer_item_list = 12; */ private final ItemListOuterClass.ItemList transferItemList = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList token_item = 9; + * optional .Item gacha_item = 13; */ - private final ItemListOuterClass.ItemList tokenItem = ItemListOuterClass.ItemList.newInstance(); + private final ItemOuterClass.Item gachaItem = ItemOuterClass.Item.newInstance(); private GachaItem() { } @@ -49,7 +49,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 13; + * optional bool is_new = 6; * @return whether the isNew field is set */ public boolean hasIsNew() { @@ -57,7 +57,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 13; + * optional bool is_new = 6; * @return this */ public GachaItem clearIsNew() { @@ -67,7 +67,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 13; + * optional bool is_new = 6; * @return the isNew */ public boolean getIsNew() { @@ -75,7 +75,7 @@ public final class GachaItemOuterClass { } /** - * optional bool is_new = 13; + * optional bool is_new = 6; * @param value the isNew to set * @return this */ @@ -86,139 +86,25 @@ public final class GachaItemOuterClass { } /** - * optional .Item gacha_item = 1; - * @return whether the gachaItem field is set + * optional .ItemList token_item = 7; + * @return whether the tokenItem field is set */ - public boolean hasGachaItem() { + public boolean hasTokenItem() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .Item gacha_item = 1; - * @return this - */ - public GachaItem clearGachaItem() { - bitField0_ &= ~0x00000002; - gachaItem.clear(); - return this; - } - - /** - * optional .Item gacha_item = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableGachaItem()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemOuterClass.Item getGachaItem() { - return gachaItem; - } - - /** - * optional .Item gacha_item = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemOuterClass.Item getMutableGachaItem() { - bitField0_ |= 0x00000002; - return gachaItem; - } - - /** - * optional .Item gacha_item = 1; - * @param value the gachaItem to set - * @return this - */ - public GachaItem setGachaItem(final ItemOuterClass.Item value) { - bitField0_ |= 0x00000002; - gachaItem.copyFrom(value); - return this; - } - - /** - * optional .ItemList transfer_item_list = 4; - * @return whether the transferItemList field is set - */ - public boolean hasTransferItemList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ItemList transfer_item_list = 4; - * @return this - */ - public GachaItem clearTransferItemList() { - bitField0_ &= ~0x00000004; - transferItemList.clear(); - return this; - } - - /** - * optional .ItemList transfer_item_list = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableTransferItemList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemListOuterClass.ItemList getTransferItemList() { - return transferItemList; - } - - /** - * optional .ItemList transfer_item_list = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemListOuterClass.ItemList getMutableTransferItemList() { - bitField0_ |= 0x00000004; - return transferItemList; - } - - /** - * optional .ItemList transfer_item_list = 4; - * @param value the transferItemList to set - * @return this - */ - public GachaItem setTransferItemList(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000004; - transferItemList.copyFrom(value); - return this; - } - - /** - * optional .ItemList token_item = 9; - * @return whether the tokenItem field is set - */ - public boolean hasTokenItem() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 7; * @return this */ public GachaItem clearTokenItem() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; tokenItem.clear(); return this; } /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -232,7 +118,7 @@ public final class GachaItemOuterClass { } /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -241,30 +127,144 @@ public final class GachaItemOuterClass { * @return internal storage object for modifications */ public ItemListOuterClass.ItemList getMutableTokenItem() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; return tokenItem; } /** - * optional .ItemList token_item = 9; + * optional .ItemList token_item = 7; * @param value the tokenItem to set * @return this */ public GachaItem setTokenItem(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; tokenItem.copyFrom(value); return this; } + /** + * optional .ItemList transfer_item_list = 12; + * @return whether the transferItemList field is set + */ + public boolean hasTransferItemList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ItemList transfer_item_list = 12; + * @return this + */ + public GachaItem clearTransferItemList() { + bitField0_ &= ~0x00000004; + transferItemList.clear(); + return this; + } + + /** + * optional .ItemList transfer_item_list = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableTransferItemList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getTransferItemList() { + return transferItemList; + } + + /** + * optional .ItemList transfer_item_list = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemListOuterClass.ItemList getMutableTransferItemList() { + bitField0_ |= 0x00000004; + return transferItemList; + } + + /** + * optional .ItemList transfer_item_list = 12; + * @param value the transferItemList to set + * @return this + */ + public GachaItem setTransferItemList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000004; + transferItemList.copyFrom(value); + return this; + } + + /** + * optional .Item gacha_item = 13; + * @return whether the gachaItem field is set + */ + public boolean hasGachaItem() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .Item gacha_item = 13; + * @return this + */ + public GachaItem clearGachaItem() { + bitField0_ &= ~0x00000008; + gachaItem.clear(); + return this; + } + + /** + * optional .Item gacha_item = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGachaItem()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemOuterClass.Item getGachaItem() { + return gachaItem; + } + + /** + * optional .Item gacha_item = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemOuterClass.Item getMutableGachaItem() { + bitField0_ |= 0x00000008; + return gachaItem; + } + + /** + * optional .Item gacha_item = 13; + * @param value the gachaItem to set + * @return this + */ + public GachaItem setGachaItem(final ItemOuterClass.Item value) { + bitField0_ |= 0x00000008; + gachaItem.copyFrom(value); + return this; + } + @Override public GachaItem copyFrom(final GachaItem other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; isNew = other.isNew; - gachaItem.copyFrom(other.gachaItem); - transferItemList.copyFrom(other.transferItemList); tokenItem.copyFrom(other.tokenItem); + transferItemList.copyFrom(other.transferItemList); + gachaItem.copyFrom(other.gachaItem); } return this; } @@ -278,14 +278,14 @@ public final class GachaItemOuterClass { if (other.hasIsNew()) { setIsNew(other.isNew); } - if (other.hasGachaItem()) { - getMutableGachaItem().mergeFrom(other.gachaItem); + if (other.hasTokenItem()) { + getMutableTokenItem().mergeFrom(other.tokenItem); } if (other.hasTransferItemList()) { getMutableTransferItemList().mergeFrom(other.transferItemList); } - if (other.hasTokenItem()) { - getMutableTokenItem().mergeFrom(other.tokenItem); + if (other.hasGachaItem()) { + getMutableGachaItem().mergeFrom(other.gachaItem); } return this; } @@ -298,9 +298,9 @@ public final class GachaItemOuterClass { cachedSize = -1; bitField0_ = 0; isNew = false; - gachaItem.clear(); - transferItemList.clear(); tokenItem.clear(); + transferItemList.clear(); + gachaItem.clear(); return this; } @@ -311,9 +311,9 @@ public final class GachaItemOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaItem.clearQuick(); - transferItemList.clearQuick(); tokenItem.clearQuick(); + transferItemList.clearQuick(); + gachaItem.clearQuick(); return this; } @@ -328,28 +328,28 @@ public final class GachaItemOuterClass { GachaItem other = (GachaItem) o; return bitField0_ == other.bitField0_ && (!hasIsNew() || isNew == other.isNew) - && (!hasGachaItem() || gachaItem.equals(other.gachaItem)) + && (!hasTokenItem() || tokenItem.equals(other.tokenItem)) && (!hasTransferItemList() || transferItemList.equals(other.transferItemList)) - && (!hasTokenItem() || tokenItem.equals(other.tokenItem)); + && (!hasGachaItem() || gachaItem.equals(other.gachaItem)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 48); output.writeBoolNoTag(isNew); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(gachaItem); + output.writeRawByte((byte) 58); + output.writeMessageNoTag(tokenItem); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 98); output.writeMessageNoTag(transferItemList); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(tokenItem); + output.writeRawByte((byte) 106); + output.writeMessageNoTag(gachaItem); } } @@ -360,13 +360,13 @@ public final class GachaItemOuterClass { size += 2; } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(gachaItem); + size += 1 + ProtoSink.computeMessageSizeNoTag(tokenItem); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(transferItemList); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(tokenItem); + size += 1 + ProtoSink.computeMessageSizeNoTag(gachaItem); } return size; } @@ -378,36 +378,36 @@ public final class GachaItemOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 48: { // isNew isNew = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 58) { break; } } - case 10: { - // gachaItem - input.readMessage(gachaItem); + case 58: { + // tokenItem + input.readMessage(tokenItem); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 98) { break; } } - case 34: { + case 98: { // transferItemList input.readMessage(transferItemList); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 74) { + if (tag != 106) { break; } } - case 74: { - // tokenItem - input.readMessage(tokenItem); + case 106: { + // gachaItem + input.readMessage(gachaItem); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -435,13 +435,13 @@ public final class GachaItemOuterClass { output.writeBool(FieldNames.isNew, isNew); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.gachaItem, gachaItem); + output.writeMessage(FieldNames.tokenItem, tokenItem); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.transferItemList, transferItemList); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.tokenItem, tokenItem); + output.writeMessage(FieldNames.gachaItem, gachaItem); } output.endObject(); } @@ -465,11 +465,11 @@ public final class GachaItemOuterClass { } break; } - case 802515893: - case -871807056: { - if (input.isAtField(FieldNames.gachaItem)) { + case 141165740: + case 101174681: { + if (input.isAtField(FieldNames.tokenItem)) { if (!input.trySkipNullValue()) { - input.readMessage(gachaItem); + input.readMessage(tokenItem); bitField0_ |= 0x00000002; } } else { @@ -489,11 +489,11 @@ public final class GachaItemOuterClass { } break; } - case 141165740: - case 101174681: { - if (input.isAtField(FieldNames.tokenItem)) { + case 802515893: + case -871807056: { + if (input.isAtField(FieldNames.gachaItem)) { if (!input.trySkipNullValue()) { - input.readMessage(tokenItem); + input.readMessage(gachaItem); bitField0_ |= 0x00000008; } } else { @@ -555,11 +555,11 @@ public final class GachaItemOuterClass { static class FieldNames { static final FieldName isNew = FieldName.forField("isNew", "is_new"); - static final FieldName gachaItem = FieldName.forField("gachaItem", "gacha_item"); + static final FieldName tokenItem = FieldName.forField("tokenItem", "token_item"); static final FieldName transferItemList = FieldName.forField("transferItemList", "transfer_item_list"); - static final FieldName tokenItem = FieldName.forField("tokenItem", "token_item"); + static final FieldName gachaItem = FieldName.forField("gachaItem", "gacha_item"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java index a77a536..712472f 100644 --- a/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GateserverOuterClass.java @@ -20,101 +20,109 @@ public final class GateserverOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 port = 2; + * optional uint32 port = 7; */ private int port; /** - * optional bool enable_version_update = 1; + * optional bool unk1 = 10; */ - private boolean enableVersionUpdate; + private boolean unk1; /** - * optional bool enable_design_data_bundle_version_update = 7; + * optional bool unk2 = 15; */ - private boolean enableDesignDataBundleVersionUpdate; + private boolean unk2; /** - * optional bool event_tracking_open = 414; + * optional bool unk3 = 67; */ - private boolean eventTrackingOpen; + private boolean unk3; /** - * optional bool enable_android_middle_package = 593; + * optional bool unk4 = 79; */ - private boolean enableAndroidMiddlePackage; + private boolean unk4; /** - *
-     *  for beta, useless on release 
- * - * optional bool enable_watermark = 1457; + * optional bool unk5 = 184; */ - private boolean enableWatermark; + private boolean unk5; /** - * optional bool close_redeem_code = 1486; + * optional bool unk6 = 200; */ - private boolean closeRedeemCode; + private boolean unk6; /** - * optional bool network_diagnostic = 1566; + * optional bool unk7 = 235; */ - private boolean networkDiagnostic; + private boolean unk7; /** - * optional string asset_bundle_url = 3; + * optional bool unk8 = 454; */ - private final Utf8String assetBundleUrl = Utf8String.newEmptyInstance(); + private boolean unk8; /** - * optional string ip = 4; + * optional bool unk9 = 529; + */ + private boolean unk9; + + /** + * optional string ip = 3; */ private final Utf8String ip = Utf8String.newEmptyInstance(); /** - * optional string region_name = 5; - */ - private final Utf8String regionName = Utf8String.newEmptyInstance(); - - /** - * optional string lua_url = 10; + * optional string lua_url = 6; */ private final Utf8String luaUrl = Utf8String.newEmptyInstance(); /** - * optional string ex_resource_url = 14; + * optional string region_name = 9; + */ + private final Utf8String regionName = Utf8String.newEmptyInstance(); + + /** + * optional string ex_resource_url = 11; */ private final Utf8String exResourceUrl = Utf8String.newEmptyInstance(); /** - * optional string mdk_res_version = 661; + * optional string asset_bundle_url = 12; */ - private final Utf8String mdkResVersion = Utf8String.newEmptyInstance(); + private final Utf8String assetBundleUrl = Utf8String.newEmptyInstance(); /** - * optional string ifix_url = 1113; + * optional string login_white_msg = 43; */ - private final Utf8String ifixUrl = Utf8String.newEmptyInstance(); + private final Utf8String loginWhiteMsg = Utf8String.newEmptyInstance(); /** - * optional string msg = 1192; + * optional string client_secret_key = 721; */ - private final Utf8String msg = Utf8String.newEmptyInstance(); + private final Utf8String clientSecretKey = Utf8String.newEmptyInstance(); /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; + * optional string ifix_version = 1178; */ private final Utf8String ifixVersion = Utf8String.newEmptyInstance(); /** - * optional string client_secret_key = 1808; + * optional string mdk_res_version = 1238; */ - private final Utf8String clientSecretKey = Utf8String.newEmptyInstance(); + private final Utf8String mdkResVersion = Utf8String.newEmptyInstance(); + + /** + * optional string asset_bundle_url_2 = 1417; + */ + private final Utf8String assetBundleUrl2 = Utf8String.newEmptyInstance(); + + /** + * optional string ifix_url = 1488; + */ + private final Utf8String ifixUrl = Utf8String.newEmptyInstance(); private Gateserver() { } @@ -127,7 +135,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 2; + * optional uint32 port = 7; * @return whether the port field is set */ public boolean hasPort() { @@ -135,7 +143,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 2; + * optional uint32 port = 7; * @return this */ public Gateserver clearPort() { @@ -145,7 +153,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 2; + * optional uint32 port = 7; * @return the port */ public int getPort() { @@ -153,7 +161,7 @@ public final class GateserverOuterClass { } /** - * optional uint32 port = 2; + * optional uint32 port = 7; * @param value the port to set * @return this */ @@ -164,361 +172,358 @@ public final class GateserverOuterClass { } /** - * optional bool enable_version_update = 1; - * @return whether the enableVersionUpdate field is set + * optional bool unk1 = 10; + * @return whether the unk1 field is set */ - public boolean hasEnableVersionUpdate() { + public boolean hasUnk1() { return (bitField0_ & 0x00000002) != 0; } /** - * optional bool enable_version_update = 1; + * optional bool unk1 = 10; * @return this */ - public Gateserver clearEnableVersionUpdate() { + public Gateserver clearUnk1() { bitField0_ &= ~0x00000002; - enableVersionUpdate = false; + unk1 = false; return this; } /** - * optional bool enable_version_update = 1; - * @return the enableVersionUpdate + * optional bool unk1 = 10; + * @return the unk1 */ - public boolean getEnableVersionUpdate() { - return enableVersionUpdate; + public boolean getUnk1() { + return unk1; } /** - * optional bool enable_version_update = 1; - * @param value the enableVersionUpdate to set + * optional bool unk1 = 10; + * @param value the unk1 to set * @return this */ - public Gateserver setEnableVersionUpdate(final boolean value) { + public Gateserver setUnk1(final boolean value) { bitField0_ |= 0x00000002; - enableVersionUpdate = value; + unk1 = value; return this; } /** - * optional bool enable_design_data_bundle_version_update = 7; - * @return whether the enableDesignDataBundleVersionUpdate field is set + * optional bool unk2 = 15; + * @return whether the unk2 field is set */ - public boolean hasEnableDesignDataBundleVersionUpdate() { + public boolean hasUnk2() { return (bitField0_ & 0x00000004) != 0; } /** - * optional bool enable_design_data_bundle_version_update = 7; + * optional bool unk2 = 15; * @return this */ - public Gateserver clearEnableDesignDataBundleVersionUpdate() { + public Gateserver clearUnk2() { bitField0_ &= ~0x00000004; - enableDesignDataBundleVersionUpdate = false; + unk2 = false; return this; } /** - * optional bool enable_design_data_bundle_version_update = 7; - * @return the enableDesignDataBundleVersionUpdate + * optional bool unk2 = 15; + * @return the unk2 */ - public boolean getEnableDesignDataBundleVersionUpdate() { - return enableDesignDataBundleVersionUpdate; + public boolean getUnk2() { + return unk2; } /** - * optional bool enable_design_data_bundle_version_update = 7; - * @param value the enableDesignDataBundleVersionUpdate to set + * optional bool unk2 = 15; + * @param value the unk2 to set * @return this */ - public Gateserver setEnableDesignDataBundleVersionUpdate(final boolean value) { + public Gateserver setUnk2(final boolean value) { bitField0_ |= 0x00000004; - enableDesignDataBundleVersionUpdate = value; + unk2 = value; return this; } /** - * optional bool event_tracking_open = 414; - * @return whether the eventTrackingOpen field is set + * optional bool unk3 = 67; + * @return whether the unk3 field is set */ - public boolean hasEventTrackingOpen() { + public boolean hasUnk3() { return (bitField0_ & 0x00000008) != 0; } /** - * optional bool event_tracking_open = 414; + * optional bool unk3 = 67; * @return this */ - public Gateserver clearEventTrackingOpen() { + public Gateserver clearUnk3() { bitField0_ &= ~0x00000008; - eventTrackingOpen = false; + unk3 = false; return this; } /** - * optional bool event_tracking_open = 414; - * @return the eventTrackingOpen + * optional bool unk3 = 67; + * @return the unk3 */ - public boolean getEventTrackingOpen() { - return eventTrackingOpen; + public boolean getUnk3() { + return unk3; } /** - * optional bool event_tracking_open = 414; - * @param value the eventTrackingOpen to set + * optional bool unk3 = 67; + * @param value the unk3 to set * @return this */ - public Gateserver setEventTrackingOpen(final boolean value) { + public Gateserver setUnk3(final boolean value) { bitField0_ |= 0x00000008; - eventTrackingOpen = value; + unk3 = value; return this; } /** - * optional bool enable_android_middle_package = 593; - * @return whether the enableAndroidMiddlePackage field is set + * optional bool unk4 = 79; + * @return whether the unk4 field is set */ - public boolean hasEnableAndroidMiddlePackage() { + public boolean hasUnk4() { return (bitField0_ & 0x00000010) != 0; } /** - * optional bool enable_android_middle_package = 593; + * optional bool unk4 = 79; * @return this */ - public Gateserver clearEnableAndroidMiddlePackage() { + public Gateserver clearUnk4() { bitField0_ &= ~0x00000010; - enableAndroidMiddlePackage = false; + unk4 = false; return this; } /** - * optional bool enable_android_middle_package = 593; - * @return the enableAndroidMiddlePackage + * optional bool unk4 = 79; + * @return the unk4 */ - public boolean getEnableAndroidMiddlePackage() { - return enableAndroidMiddlePackage; + public boolean getUnk4() { + return unk4; } /** - * optional bool enable_android_middle_package = 593; - * @param value the enableAndroidMiddlePackage to set + * optional bool unk4 = 79; + * @param value the unk4 to set * @return this */ - public Gateserver setEnableAndroidMiddlePackage(final boolean value) { + public Gateserver setUnk4(final boolean value) { bitField0_ |= 0x00000010; - enableAndroidMiddlePackage = value; + unk4 = value; return this; } /** - *
-     *  for beta, useless on release 
- * - * optional bool enable_watermark = 1457; - * @return whether the enableWatermark field is set + * optional bool unk5 = 184; + * @return whether the unk5 field is set */ - public boolean hasEnableWatermark() { + public boolean hasUnk5() { return (bitField0_ & 0x00000020) != 0; } /** - *
-     *  for beta, useless on release 
- * - * optional bool enable_watermark = 1457; + * optional bool unk5 = 184; * @return this */ - public Gateserver clearEnableWatermark() { + public Gateserver clearUnk5() { bitField0_ &= ~0x00000020; - enableWatermark = false; + unk5 = false; return this; } /** - *
-     *  for beta, useless on release 
- * - * optional bool enable_watermark = 1457; - * @return the enableWatermark + * optional bool unk5 = 184; + * @return the unk5 */ - public boolean getEnableWatermark() { - return enableWatermark; + public boolean getUnk5() { + return unk5; } /** - *
-     *  for beta, useless on release 
- * - * optional bool enable_watermark = 1457; - * @param value the enableWatermark to set + * optional bool unk5 = 184; + * @param value the unk5 to set * @return this */ - public Gateserver setEnableWatermark(final boolean value) { + public Gateserver setUnk5(final boolean value) { bitField0_ |= 0x00000020; - enableWatermark = value; + unk5 = value; return this; } /** - * optional bool close_redeem_code = 1486; - * @return whether the closeRedeemCode field is set + * optional bool unk6 = 200; + * @return whether the unk6 field is set */ - public boolean hasCloseRedeemCode() { + public boolean hasUnk6() { return (bitField0_ & 0x00000040) != 0; } /** - * optional bool close_redeem_code = 1486; + * optional bool unk6 = 200; * @return this */ - public Gateserver clearCloseRedeemCode() { + public Gateserver clearUnk6() { bitField0_ &= ~0x00000040; - closeRedeemCode = false; + unk6 = false; return this; } /** - * optional bool close_redeem_code = 1486; - * @return the closeRedeemCode + * optional bool unk6 = 200; + * @return the unk6 */ - public boolean getCloseRedeemCode() { - return closeRedeemCode; + public boolean getUnk6() { + return unk6; } /** - * optional bool close_redeem_code = 1486; - * @param value the closeRedeemCode to set + * optional bool unk6 = 200; + * @param value the unk6 to set * @return this */ - public Gateserver setCloseRedeemCode(final boolean value) { + public Gateserver setUnk6(final boolean value) { bitField0_ |= 0x00000040; - closeRedeemCode = value; + unk6 = value; return this; } /** - * optional bool network_diagnostic = 1566; - * @return whether the networkDiagnostic field is set + * optional bool unk7 = 235; + * @return whether the unk7 field is set */ - public boolean hasNetworkDiagnostic() { + public boolean hasUnk7() { return (bitField0_ & 0x00000080) != 0; } /** - * optional bool network_diagnostic = 1566; + * optional bool unk7 = 235; * @return this */ - public Gateserver clearNetworkDiagnostic() { + public Gateserver clearUnk7() { bitField0_ &= ~0x00000080; - networkDiagnostic = false; + unk7 = false; return this; } /** - * optional bool network_diagnostic = 1566; - * @return the networkDiagnostic + * optional bool unk7 = 235; + * @return the unk7 */ - public boolean getNetworkDiagnostic() { - return networkDiagnostic; + public boolean getUnk7() { + return unk7; } /** - * optional bool network_diagnostic = 1566; - * @param value the networkDiagnostic to set + * optional bool unk7 = 235; + * @param value the unk7 to set * @return this */ - public Gateserver setNetworkDiagnostic(final boolean value) { + public Gateserver setUnk7(final boolean value) { bitField0_ |= 0x00000080; - networkDiagnostic = value; + unk7 = value; return this; } /** - * optional string asset_bundle_url = 3; - * @return whether the assetBundleUrl field is set + * optional bool unk8 = 454; + * @return whether the unk8 field is set */ - public boolean hasAssetBundleUrl() { + public boolean hasUnk8() { return (bitField0_ & 0x00000100) != 0; } /** - * optional string asset_bundle_url = 3; + * optional bool unk8 = 454; * @return this */ - public Gateserver clearAssetBundleUrl() { + public Gateserver clearUnk8() { bitField0_ &= ~0x00000100; - assetBundleUrl.clear(); + unk8 = false; return this; } /** - * optional string asset_bundle_url = 3; - * @return the assetBundleUrl + * optional bool unk8 = 454; + * @return the unk8 */ - public String getAssetBundleUrl() { - return assetBundleUrl.getString(); + public boolean getUnk8() { + return unk8; } /** - * optional string asset_bundle_url = 3; - * @return internal {@code Utf8String} representation of assetBundleUrl for reading - */ - public Utf8String getAssetBundleUrlBytes() { - return this.assetBundleUrl; - } - - /** - * optional string asset_bundle_url = 3; - * @return internal {@code Utf8String} representation of assetBundleUrl for modifications - */ - public Utf8String getMutableAssetBundleUrlBytes() { - bitField0_ |= 0x00000100; - return this.assetBundleUrl; - } - - /** - * optional string asset_bundle_url = 3; - * @param value the assetBundleUrl to set + * optional bool unk8 = 454; + * @param value the unk8 to set * @return this */ - public Gateserver setAssetBundleUrl(final CharSequence value) { + public Gateserver setUnk8(final boolean value) { bitField0_ |= 0x00000100; - assetBundleUrl.copyFrom(value); + unk8 = value; return this; } /** - * optional string asset_bundle_url = 3; - * @param value the assetBundleUrl to set - * @return this + * optional bool unk9 = 529; + * @return whether the unk9 field is set */ - public Gateserver setAssetBundleUrl(final Utf8String value) { - bitField0_ |= 0x00000100; - assetBundleUrl.copyFrom(value); - return this; - } - - /** - * optional string ip = 4; - * @return whether the ip field is set - */ - public boolean hasIp() { + public boolean hasUnk9() { return (bitField0_ & 0x00000200) != 0; } /** - * optional string ip = 4; + * optional bool unk9 = 529; + * @return this + */ + public Gateserver clearUnk9() { + bitField0_ &= ~0x00000200; + unk9 = false; + return this; + } + + /** + * optional bool unk9 = 529; + * @return the unk9 + */ + public boolean getUnk9() { + return unk9; + } + + /** + * optional bool unk9 = 529; + * @param value the unk9 to set + * @return this + */ + public Gateserver setUnk9(final boolean value) { + bitField0_ |= 0x00000200; + unk9 = value; + return this; + } + + /** + * optional string ip = 3; + * @return whether the ip field is set + */ + public boolean hasIp() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional string ip = 3; * @return this */ public Gateserver clearIp() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; ip.clear(); return this; } /** - * optional string ip = 4; + * optional string ip = 3; * @return the ip */ public String getIp() { @@ -526,7 +531,7 @@ public final class GateserverOuterClass { } /** - * optional string ip = 4; + * optional string ip = 3; * @return internal {@code Utf8String} representation of ip for reading */ public Utf8String getIpBytes() { @@ -534,103 +539,38 @@ public final class GateserverOuterClass { } /** - * optional string ip = 4; + * optional string ip = 3; * @return internal {@code Utf8String} representation of ip for modifications */ public Utf8String getMutableIpBytes() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return this.ip; } /** - * optional string ip = 4; + * optional string ip = 3; * @param value the ip to set * @return this */ public Gateserver setIp(final CharSequence value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; ip.copyFrom(value); return this; } /** - * optional string ip = 4; + * optional string ip = 3; * @param value the ip to set * @return this */ public Gateserver setIp(final Utf8String value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; ip.copyFrom(value); return this; } /** - * optional string region_name = 5; - * @return whether the regionName field is set - */ - public boolean hasRegionName() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * optional string region_name = 5; - * @return this - */ - public Gateserver clearRegionName() { - bitField0_ &= ~0x00000400; - regionName.clear(); - return this; - } - - /** - * optional string region_name = 5; - * @return the regionName - */ - public String getRegionName() { - return regionName.getString(); - } - - /** - * optional string region_name = 5; - * @return internal {@code Utf8String} representation of regionName for reading - */ - public Utf8String getRegionNameBytes() { - return this.regionName; - } - - /** - * optional string region_name = 5; - * @return internal {@code Utf8String} representation of regionName for modifications - */ - public Utf8String getMutableRegionNameBytes() { - bitField0_ |= 0x00000400; - return this.regionName; - } - - /** - * optional string region_name = 5; - * @param value the regionName to set - * @return this - */ - public Gateserver setRegionName(final CharSequence value) { - bitField0_ |= 0x00000400; - regionName.copyFrom(value); - return this; - } - - /** - * optional string region_name = 5; - * @param value the regionName to set - * @return this - */ - public Gateserver setRegionName(final Utf8String value) { - bitField0_ |= 0x00000400; - regionName.copyFrom(value); - return this; - } - - /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @return whether the luaUrl field is set */ public boolean hasLuaUrl() { @@ -638,7 +578,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @return this */ public Gateserver clearLuaUrl() { @@ -648,7 +588,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @return the luaUrl */ public String getLuaUrl() { @@ -656,7 +596,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @return internal {@code Utf8String} representation of luaUrl for reading */ public Utf8String getLuaUrlBytes() { @@ -664,7 +604,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @return internal {@code Utf8String} representation of luaUrl for modifications */ public Utf8String getMutableLuaUrlBytes() { @@ -673,7 +613,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @param value the luaUrl to set * @return this */ @@ -684,7 +624,7 @@ public final class GateserverOuterClass { } /** - * optional string lua_url = 10; + * optional string lua_url = 6; * @param value the luaUrl to set * @return this */ @@ -695,25 +635,90 @@ public final class GateserverOuterClass { } /** - * optional string ex_resource_url = 14; - * @return whether the exResourceUrl field is set + * optional string region_name = 9; + * @return whether the regionName field is set */ - public boolean hasExResourceUrl() { + public boolean hasRegionName() { return (bitField0_ & 0x00001000) != 0; } /** - * optional string ex_resource_url = 14; + * optional string region_name = 9; + * @return this + */ + public Gateserver clearRegionName() { + bitField0_ &= ~0x00001000; + regionName.clear(); + return this; + } + + /** + * optional string region_name = 9; + * @return the regionName + */ + public String getRegionName() { + return regionName.getString(); + } + + /** + * optional string region_name = 9; + * @return internal {@code Utf8String} representation of regionName for reading + */ + public Utf8String getRegionNameBytes() { + return this.regionName; + } + + /** + * optional string region_name = 9; + * @return internal {@code Utf8String} representation of regionName for modifications + */ + public Utf8String getMutableRegionNameBytes() { + bitField0_ |= 0x00001000; + return this.regionName; + } + + /** + * optional string region_name = 9; + * @param value the regionName to set + * @return this + */ + public Gateserver setRegionName(final CharSequence value) { + bitField0_ |= 0x00001000; + regionName.copyFrom(value); + return this; + } + + /** + * optional string region_name = 9; + * @param value the regionName to set + * @return this + */ + public Gateserver setRegionName(final Utf8String value) { + bitField0_ |= 0x00001000; + regionName.copyFrom(value); + return this; + } + + /** + * optional string ex_resource_url = 11; + * @return whether the exResourceUrl field is set + */ + public boolean hasExResourceUrl() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional string ex_resource_url = 11; * @return this */ public Gateserver clearExResourceUrl() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00002000; exResourceUrl.clear(); return this; } /** - * optional string ex_resource_url = 14; + * optional string ex_resource_url = 11; * @return the exResourceUrl */ public String getExResourceUrl() { @@ -721,7 +726,7 @@ public final class GateserverOuterClass { } /** - * optional string ex_resource_url = 14; + * optional string ex_resource_url = 11; * @return internal {@code Utf8String} representation of exResourceUrl for reading */ public Utf8String getExResourceUrlBytes() { @@ -729,344 +734,186 @@ public final class GateserverOuterClass { } /** - * optional string ex_resource_url = 14; + * optional string ex_resource_url = 11; * @return internal {@code Utf8String} representation of exResourceUrl for modifications */ public Utf8String getMutableExResourceUrlBytes() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; return this.exResourceUrl; } /** - * optional string ex_resource_url = 14; + * optional string ex_resource_url = 11; * @param value the exResourceUrl to set * @return this */ public Gateserver setExResourceUrl(final CharSequence value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; exResourceUrl.copyFrom(value); return this; } /** - * optional string ex_resource_url = 14; + * optional string ex_resource_url = 11; * @param value the exResourceUrl to set * @return this */ public Gateserver setExResourceUrl(final Utf8String value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; exResourceUrl.copyFrom(value); return this; } /** - * optional string mdk_res_version = 661; - * @return whether the mdkResVersion field is set + * optional string asset_bundle_url = 12; + * @return whether the assetBundleUrl field is set */ - public boolean hasMdkResVersion() { - return (bitField0_ & 0x00002000) != 0; - } - - /** - * optional string mdk_res_version = 661; - * @return this - */ - public Gateserver clearMdkResVersion() { - bitField0_ &= ~0x00002000; - mdkResVersion.clear(); - return this; - } - - /** - * optional string mdk_res_version = 661; - * @return the mdkResVersion - */ - public String getMdkResVersion() { - return mdkResVersion.getString(); - } - - /** - * optional string mdk_res_version = 661; - * @return internal {@code Utf8String} representation of mdkResVersion for reading - */ - public Utf8String getMdkResVersionBytes() { - return this.mdkResVersion; - } - - /** - * optional string mdk_res_version = 661; - * @return internal {@code Utf8String} representation of mdkResVersion for modifications - */ - public Utf8String getMutableMdkResVersionBytes() { - bitField0_ |= 0x00002000; - return this.mdkResVersion; - } - - /** - * optional string mdk_res_version = 661; - * @param value the mdkResVersion to set - * @return this - */ - public Gateserver setMdkResVersion(final CharSequence value) { - bitField0_ |= 0x00002000; - mdkResVersion.copyFrom(value); - return this; - } - - /** - * optional string mdk_res_version = 661; - * @param value the mdkResVersion to set - * @return this - */ - public Gateserver setMdkResVersion(final Utf8String value) { - bitField0_ |= 0x00002000; - mdkResVersion.copyFrom(value); - return this; - } - - /** - * optional string ifix_url = 1113; - * @return whether the ifixUrl field is set - */ - public boolean hasIfixUrl() { + public boolean hasAssetBundleUrl() { return (bitField0_ & 0x00004000) != 0; } /** - * optional string ifix_url = 1113; + * optional string asset_bundle_url = 12; * @return this */ - public Gateserver clearIfixUrl() { + public Gateserver clearAssetBundleUrl() { bitField0_ &= ~0x00004000; - ifixUrl.clear(); + assetBundleUrl.clear(); return this; } /** - * optional string ifix_url = 1113; - * @return the ifixUrl + * optional string asset_bundle_url = 12; + * @return the assetBundleUrl */ - public String getIfixUrl() { - return ifixUrl.getString(); + public String getAssetBundleUrl() { + return assetBundleUrl.getString(); } /** - * optional string ifix_url = 1113; - * @return internal {@code Utf8String} representation of ifixUrl for reading + * optional string asset_bundle_url = 12; + * @return internal {@code Utf8String} representation of assetBundleUrl for reading */ - public Utf8String getIfixUrlBytes() { - return this.ifixUrl; + public Utf8String getAssetBundleUrlBytes() { + return this.assetBundleUrl; } /** - * optional string ifix_url = 1113; - * @return internal {@code Utf8String} representation of ifixUrl for modifications + * optional string asset_bundle_url = 12; + * @return internal {@code Utf8String} representation of assetBundleUrl for modifications */ - public Utf8String getMutableIfixUrlBytes() { + public Utf8String getMutableAssetBundleUrlBytes() { bitField0_ |= 0x00004000; - return this.ifixUrl; + return this.assetBundleUrl; } /** - * optional string ifix_url = 1113; - * @param value the ifixUrl to set + * optional string asset_bundle_url = 12; + * @param value the assetBundleUrl to set * @return this */ - public Gateserver setIfixUrl(final CharSequence value) { + public Gateserver setAssetBundleUrl(final CharSequence value) { bitField0_ |= 0x00004000; - ifixUrl.copyFrom(value); + assetBundleUrl.copyFrom(value); return this; } /** - * optional string ifix_url = 1113; - * @param value the ifixUrl to set + * optional string asset_bundle_url = 12; + * @param value the assetBundleUrl to set * @return this */ - public Gateserver setIfixUrl(final Utf8String value) { + public Gateserver setAssetBundleUrl(final Utf8String value) { bitField0_ |= 0x00004000; - ifixUrl.copyFrom(value); + assetBundleUrl.copyFrom(value); return this; } /** - * optional string msg = 1192; - * @return whether the msg field is set + * optional string login_white_msg = 43; + * @return whether the loginWhiteMsg field is set */ - public boolean hasMsg() { + public boolean hasLoginWhiteMsg() { return (bitField0_ & 0x00008000) != 0; } /** - * optional string msg = 1192; + * optional string login_white_msg = 43; * @return this */ - public Gateserver clearMsg() { + public Gateserver clearLoginWhiteMsg() { bitField0_ &= ~0x00008000; - msg.clear(); + loginWhiteMsg.clear(); return this; } /** - * optional string msg = 1192; - * @return the msg + * optional string login_white_msg = 43; + * @return the loginWhiteMsg */ - public String getMsg() { - return msg.getString(); + public String getLoginWhiteMsg() { + return loginWhiteMsg.getString(); } /** - * optional string msg = 1192; - * @return internal {@code Utf8String} representation of msg for reading + * optional string login_white_msg = 43; + * @return internal {@code Utf8String} representation of loginWhiteMsg for reading */ - public Utf8String getMsgBytes() { - return this.msg; + public Utf8String getLoginWhiteMsgBytes() { + return this.loginWhiteMsg; } /** - * optional string msg = 1192; - * @return internal {@code Utf8String} representation of msg for modifications + * optional string login_white_msg = 43; + * @return internal {@code Utf8String} representation of loginWhiteMsg for modifications */ - public Utf8String getMutableMsgBytes() { + public Utf8String getMutableLoginWhiteMsgBytes() { bitField0_ |= 0x00008000; - return this.msg; + return this.loginWhiteMsg; } /** - * optional string msg = 1192; - * @param value the msg to set + * optional string login_white_msg = 43; + * @param value the loginWhiteMsg to set * @return this */ - public Gateserver setMsg(final CharSequence value) { + public Gateserver setLoginWhiteMsg(final CharSequence value) { bitField0_ |= 0x00008000; - msg.copyFrom(value); + loginWhiteMsg.copyFrom(value); return this; } /** - * optional string msg = 1192; - * @param value the msg to set + * optional string login_white_msg = 43; + * @param value the loginWhiteMsg to set * @return this */ - public Gateserver setMsg(final Utf8String value) { + public Gateserver setLoginWhiteMsg(final Utf8String value) { bitField0_ |= 0x00008000; - msg.copyFrom(value); + loginWhiteMsg.copyFrom(value); return this; } /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @return whether the ifixVersion field is set + * optional string client_secret_key = 721; + * @return whether the clientSecretKey field is set */ - public boolean hasIfixVersion() { + public boolean hasClientSecretKey() { return (bitField0_ & 0x00010000) != 0; } /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @return this - */ - public Gateserver clearIfixVersion() { - bitField0_ &= ~0x00010000; - ifixVersion.clear(); - return this; - } - - /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @return the ifixVersion - */ - public String getIfixVersion() { - return ifixVersion.getString(); - } - - /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @return internal {@code Utf8String} representation of ifixVersion for reading - */ - public Utf8String getIfixVersionBytes() { - return this.ifixVersion; - } - - /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @return internal {@code Utf8String} representation of ifixVersion for modifications - */ - public Utf8String getMutableIfixVersionBytes() { - bitField0_ |= 0x00010000; - return this.ifixVersion; - } - - /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @param value the ifixVersion to set - * @return this - */ - public Gateserver setIfixVersion(final CharSequence value) { - bitField0_ |= 0x00010000; - ifixVersion.copyFrom(value); - return this; - } - - /** - *
-     *  guessed
-     * 
- * - * optional string ifix_version = 1430; - * @param value the ifixVersion to set - * @return this - */ - public Gateserver setIfixVersion(final Utf8String value) { - bitField0_ |= 0x00010000; - ifixVersion.copyFrom(value); - return this; - } - - /** - * optional string client_secret_key = 1808; - * @return whether the clientSecretKey field is set - */ - public boolean hasClientSecretKey() { - return (bitField0_ & 0x00020000) != 0; - } - - /** - * optional string client_secret_key = 1808; + * optional string client_secret_key = 721; * @return this */ public Gateserver clearClientSecretKey() { - bitField0_ &= ~0x00020000; + bitField0_ &= ~0x00010000; clientSecretKey.clear(); return this; } /** - * optional string client_secret_key = 1808; + * optional string client_secret_key = 721; * @return the clientSecretKey */ public String getClientSecretKey() { @@ -1074,7 +921,7 @@ public final class GateserverOuterClass { } /** - * optional string client_secret_key = 1808; + * optional string client_secret_key = 721; * @return internal {@code Utf8String} representation of clientSecretKey for reading */ public Utf8String getClientSecretKeyBytes() { @@ -1082,59 +929,322 @@ public final class GateserverOuterClass { } /** - * optional string client_secret_key = 1808; + * optional string client_secret_key = 721; * @return internal {@code Utf8String} representation of clientSecretKey for modifications */ public Utf8String getMutableClientSecretKeyBytes() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00010000; return this.clientSecretKey; } /** - * optional string client_secret_key = 1808; + * optional string client_secret_key = 721; * @param value the clientSecretKey to set * @return this */ public Gateserver setClientSecretKey(final CharSequence value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00010000; clientSecretKey.copyFrom(value); return this; } /** - * optional string client_secret_key = 1808; + * optional string client_secret_key = 721; * @param value the clientSecretKey to set * @return this */ public Gateserver setClientSecretKey(final Utf8String value) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00010000; clientSecretKey.copyFrom(value); return this; } + /** + * optional string ifix_version = 1178; + * @return whether the ifixVersion field is set + */ + public boolean hasIfixVersion() { + return (bitField0_ & 0x00020000) != 0; + } + + /** + * optional string ifix_version = 1178; + * @return this + */ + public Gateserver clearIfixVersion() { + bitField0_ &= ~0x00020000; + ifixVersion.clear(); + return this; + } + + /** + * optional string ifix_version = 1178; + * @return the ifixVersion + */ + public String getIfixVersion() { + return ifixVersion.getString(); + } + + /** + * optional string ifix_version = 1178; + * @return internal {@code Utf8String} representation of ifixVersion for reading + */ + public Utf8String getIfixVersionBytes() { + return this.ifixVersion; + } + + /** + * optional string ifix_version = 1178; + * @return internal {@code Utf8String} representation of ifixVersion for modifications + */ + public Utf8String getMutableIfixVersionBytes() { + bitField0_ |= 0x00020000; + return this.ifixVersion; + } + + /** + * optional string ifix_version = 1178; + * @param value the ifixVersion to set + * @return this + */ + public Gateserver setIfixVersion(final CharSequence value) { + bitField0_ |= 0x00020000; + ifixVersion.copyFrom(value); + return this; + } + + /** + * optional string ifix_version = 1178; + * @param value the ifixVersion to set + * @return this + */ + public Gateserver setIfixVersion(final Utf8String value) { + bitField0_ |= 0x00020000; + ifixVersion.copyFrom(value); + return this; + } + + /** + * optional string mdk_res_version = 1238; + * @return whether the mdkResVersion field is set + */ + public boolean hasMdkResVersion() { + return (bitField0_ & 0x00040000) != 0; + } + + /** + * optional string mdk_res_version = 1238; + * @return this + */ + public Gateserver clearMdkResVersion() { + bitField0_ &= ~0x00040000; + mdkResVersion.clear(); + return this; + } + + /** + * optional string mdk_res_version = 1238; + * @return the mdkResVersion + */ + public String getMdkResVersion() { + return mdkResVersion.getString(); + } + + /** + * optional string mdk_res_version = 1238; + * @return internal {@code Utf8String} representation of mdkResVersion for reading + */ + public Utf8String getMdkResVersionBytes() { + return this.mdkResVersion; + } + + /** + * optional string mdk_res_version = 1238; + * @return internal {@code Utf8String} representation of mdkResVersion for modifications + */ + public Utf8String getMutableMdkResVersionBytes() { + bitField0_ |= 0x00040000; + return this.mdkResVersion; + } + + /** + * optional string mdk_res_version = 1238; + * @param value the mdkResVersion to set + * @return this + */ + public Gateserver setMdkResVersion(final CharSequence value) { + bitField0_ |= 0x00040000; + mdkResVersion.copyFrom(value); + return this; + } + + /** + * optional string mdk_res_version = 1238; + * @param value the mdkResVersion to set + * @return this + */ + public Gateserver setMdkResVersion(final Utf8String value) { + bitField0_ |= 0x00040000; + mdkResVersion.copyFrom(value); + return this; + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @return whether the assetBundleUrl2 field is set + */ + public boolean hasAssetBundleUrl2() { + return (bitField0_ & 0x00080000) != 0; + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @return this + */ + public Gateserver clearAssetBundleUrl2() { + bitField0_ &= ~0x00080000; + assetBundleUrl2.clear(); + return this; + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @return the assetBundleUrl2 + */ + public String getAssetBundleUrl2() { + return assetBundleUrl2.getString(); + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @return internal {@code Utf8String} representation of assetBundleUrl2 for reading + */ + public Utf8String getAssetBundleUrl2Bytes() { + return this.assetBundleUrl2; + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @return internal {@code Utf8String} representation of assetBundleUrl2 for modifications + */ + public Utf8String getMutableAssetBundleUrl2Bytes() { + bitField0_ |= 0x00080000; + return this.assetBundleUrl2; + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @param value the assetBundleUrl2 to set + * @return this + */ + public Gateserver setAssetBundleUrl2(final CharSequence value) { + bitField0_ |= 0x00080000; + assetBundleUrl2.copyFrom(value); + return this; + } + + /** + * optional string asset_bundle_url_2 = 1417; + * @param value the assetBundleUrl2 to set + * @return this + */ + public Gateserver setAssetBundleUrl2(final Utf8String value) { + bitField0_ |= 0x00080000; + assetBundleUrl2.copyFrom(value); + return this; + } + + /** + * optional string ifix_url = 1488; + * @return whether the ifixUrl field is set + */ + public boolean hasIfixUrl() { + return (bitField0_ & 0x00100000) != 0; + } + + /** + * optional string ifix_url = 1488; + * @return this + */ + public Gateserver clearIfixUrl() { + bitField0_ &= ~0x00100000; + ifixUrl.clear(); + return this; + } + + /** + * optional string ifix_url = 1488; + * @return the ifixUrl + */ + public String getIfixUrl() { + return ifixUrl.getString(); + } + + /** + * optional string ifix_url = 1488; + * @return internal {@code Utf8String} representation of ifixUrl for reading + */ + public Utf8String getIfixUrlBytes() { + return this.ifixUrl; + } + + /** + * optional string ifix_url = 1488; + * @return internal {@code Utf8String} representation of ifixUrl for modifications + */ + public Utf8String getMutableIfixUrlBytes() { + bitField0_ |= 0x00100000; + return this.ifixUrl; + } + + /** + * optional string ifix_url = 1488; + * @param value the ifixUrl to set + * @return this + */ + public Gateserver setIfixUrl(final CharSequence value) { + bitField0_ |= 0x00100000; + ifixUrl.copyFrom(value); + return this; + } + + /** + * optional string ifix_url = 1488; + * @param value the ifixUrl to set + * @return this + */ + public Gateserver setIfixUrl(final Utf8String value) { + bitField0_ |= 0x00100000; + ifixUrl.copyFrom(value); + return this; + } + @Override public Gateserver copyFrom(final Gateserver other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; port = other.port; - enableVersionUpdate = other.enableVersionUpdate; - enableDesignDataBundleVersionUpdate = other.enableDesignDataBundleVersionUpdate; - eventTrackingOpen = other.eventTrackingOpen; - enableAndroidMiddlePackage = other.enableAndroidMiddlePackage; - enableWatermark = other.enableWatermark; - closeRedeemCode = other.closeRedeemCode; - networkDiagnostic = other.networkDiagnostic; - assetBundleUrl.copyFrom(other.assetBundleUrl); + unk1 = other.unk1; + unk2 = other.unk2; + unk3 = other.unk3; + unk4 = other.unk4; + unk5 = other.unk5; + unk6 = other.unk6; + unk7 = other.unk7; + unk8 = other.unk8; + unk9 = other.unk9; ip.copyFrom(other.ip); - regionName.copyFrom(other.regionName); luaUrl.copyFrom(other.luaUrl); + regionName.copyFrom(other.regionName); exResourceUrl.copyFrom(other.exResourceUrl); - mdkResVersion.copyFrom(other.mdkResVersion); - ifixUrl.copyFrom(other.ifixUrl); - msg.copyFrom(other.msg); - ifixVersion.copyFrom(other.ifixVersion); + assetBundleUrl.copyFrom(other.assetBundleUrl); + loginWhiteMsg.copyFrom(other.loginWhiteMsg); clientSecretKey.copyFrom(other.clientSecretKey); + ifixVersion.copyFrom(other.ifixVersion); + mdkResVersion.copyFrom(other.mdkResVersion); + assetBundleUrl2.copyFrom(other.assetBundleUrl2); + ifixUrl.copyFrom(other.ifixUrl); } return this; } @@ -1148,56 +1258,65 @@ public final class GateserverOuterClass { if (other.hasPort()) { setPort(other.port); } - if (other.hasEnableVersionUpdate()) { - setEnableVersionUpdate(other.enableVersionUpdate); + if (other.hasUnk1()) { + setUnk1(other.unk1); } - if (other.hasEnableDesignDataBundleVersionUpdate()) { - setEnableDesignDataBundleVersionUpdate(other.enableDesignDataBundleVersionUpdate); + if (other.hasUnk2()) { + setUnk2(other.unk2); } - if (other.hasEventTrackingOpen()) { - setEventTrackingOpen(other.eventTrackingOpen); + if (other.hasUnk3()) { + setUnk3(other.unk3); } - if (other.hasEnableAndroidMiddlePackage()) { - setEnableAndroidMiddlePackage(other.enableAndroidMiddlePackage); + if (other.hasUnk4()) { + setUnk4(other.unk4); } - if (other.hasEnableWatermark()) { - setEnableWatermark(other.enableWatermark); + if (other.hasUnk5()) { + setUnk5(other.unk5); } - if (other.hasCloseRedeemCode()) { - setCloseRedeemCode(other.closeRedeemCode); + if (other.hasUnk6()) { + setUnk6(other.unk6); } - if (other.hasNetworkDiagnostic()) { - setNetworkDiagnostic(other.networkDiagnostic); + if (other.hasUnk7()) { + setUnk7(other.unk7); } - if (other.hasAssetBundleUrl()) { - getMutableAssetBundleUrlBytes().copyFrom(other.assetBundleUrl); + if (other.hasUnk8()) { + setUnk8(other.unk8); + } + if (other.hasUnk9()) { + setUnk9(other.unk9); } if (other.hasIp()) { getMutableIpBytes().copyFrom(other.ip); } - if (other.hasRegionName()) { - getMutableRegionNameBytes().copyFrom(other.regionName); - } if (other.hasLuaUrl()) { getMutableLuaUrlBytes().copyFrom(other.luaUrl); } + if (other.hasRegionName()) { + getMutableRegionNameBytes().copyFrom(other.regionName); + } if (other.hasExResourceUrl()) { getMutableExResourceUrlBytes().copyFrom(other.exResourceUrl); } - if (other.hasMdkResVersion()) { - getMutableMdkResVersionBytes().copyFrom(other.mdkResVersion); + if (other.hasAssetBundleUrl()) { + getMutableAssetBundleUrlBytes().copyFrom(other.assetBundleUrl); } - if (other.hasIfixUrl()) { - getMutableIfixUrlBytes().copyFrom(other.ifixUrl); + if (other.hasLoginWhiteMsg()) { + getMutableLoginWhiteMsgBytes().copyFrom(other.loginWhiteMsg); } - if (other.hasMsg()) { - getMutableMsgBytes().copyFrom(other.msg); + if (other.hasClientSecretKey()) { + getMutableClientSecretKeyBytes().copyFrom(other.clientSecretKey); } if (other.hasIfixVersion()) { getMutableIfixVersionBytes().copyFrom(other.ifixVersion); } - if (other.hasClientSecretKey()) { - getMutableClientSecretKeyBytes().copyFrom(other.clientSecretKey); + if (other.hasMdkResVersion()) { + getMutableMdkResVersionBytes().copyFrom(other.mdkResVersion); + } + if (other.hasAssetBundleUrl2()) { + getMutableAssetBundleUrl2Bytes().copyFrom(other.assetBundleUrl2); + } + if (other.hasIfixUrl()) { + getMutableIfixUrlBytes().copyFrom(other.ifixUrl); } return this; } @@ -1210,23 +1329,26 @@ public final class GateserverOuterClass { cachedSize = -1; bitField0_ = 0; port = 0; - enableVersionUpdate = false; - enableDesignDataBundleVersionUpdate = false; - eventTrackingOpen = false; - enableAndroidMiddlePackage = false; - enableWatermark = false; - closeRedeemCode = false; - networkDiagnostic = false; - assetBundleUrl.clear(); + unk1 = false; + unk2 = false; + unk3 = false; + unk4 = false; + unk5 = false; + unk6 = false; + unk7 = false; + unk8 = false; + unk9 = false; ip.clear(); - regionName.clear(); luaUrl.clear(); + regionName.clear(); exResourceUrl.clear(); - mdkResVersion.clear(); - ifixUrl.clear(); - msg.clear(); - ifixVersion.clear(); + assetBundleUrl.clear(); + loginWhiteMsg.clear(); clientSecretKey.clear(); + ifixVersion.clear(); + mdkResVersion.clear(); + assetBundleUrl2.clear(); + ifixUrl.clear(); return this; } @@ -1237,16 +1359,17 @@ public final class GateserverOuterClass { } cachedSize = -1; bitField0_ = 0; - assetBundleUrl.clear(); ip.clear(); - regionName.clear(); luaUrl.clear(); + regionName.clear(); exResourceUrl.clear(); - mdkResVersion.clear(); - ifixUrl.clear(); - msg.clear(); - ifixVersion.clear(); + assetBundleUrl.clear(); + loginWhiteMsg.clear(); clientSecretKey.clear(); + ifixVersion.clear(); + mdkResVersion.clear(); + assetBundleUrl2.clear(); + ifixUrl.clear(); return this; } @@ -1261,98 +1384,113 @@ public final class GateserverOuterClass { Gateserver other = (Gateserver) o; return bitField0_ == other.bitField0_ && (!hasPort() || port == other.port) - && (!hasEnableVersionUpdate() || enableVersionUpdate == other.enableVersionUpdate) - && (!hasEnableDesignDataBundleVersionUpdate() || enableDesignDataBundleVersionUpdate == other.enableDesignDataBundleVersionUpdate) - && (!hasEventTrackingOpen() || eventTrackingOpen == other.eventTrackingOpen) - && (!hasEnableAndroidMiddlePackage() || enableAndroidMiddlePackage == other.enableAndroidMiddlePackage) - && (!hasEnableWatermark() || enableWatermark == other.enableWatermark) - && (!hasCloseRedeemCode() || closeRedeemCode == other.closeRedeemCode) - && (!hasNetworkDiagnostic() || networkDiagnostic == other.networkDiagnostic) - && (!hasAssetBundleUrl() || assetBundleUrl.equals(other.assetBundleUrl)) + && (!hasUnk1() || unk1 == other.unk1) + && (!hasUnk2() || unk2 == other.unk2) + && (!hasUnk3() || unk3 == other.unk3) + && (!hasUnk4() || unk4 == other.unk4) + && (!hasUnk5() || unk5 == other.unk5) + && (!hasUnk6() || unk6 == other.unk6) + && (!hasUnk7() || unk7 == other.unk7) + && (!hasUnk8() || unk8 == other.unk8) + && (!hasUnk9() || unk9 == other.unk9) && (!hasIp() || ip.equals(other.ip)) - && (!hasRegionName() || regionName.equals(other.regionName)) && (!hasLuaUrl() || luaUrl.equals(other.luaUrl)) + && (!hasRegionName() || regionName.equals(other.regionName)) && (!hasExResourceUrl() || exResourceUrl.equals(other.exResourceUrl)) - && (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion)) - && (!hasIfixUrl() || ifixUrl.equals(other.ifixUrl)) - && (!hasMsg() || msg.equals(other.msg)) + && (!hasAssetBundleUrl() || assetBundleUrl.equals(other.assetBundleUrl)) + && (!hasLoginWhiteMsg() || loginWhiteMsg.equals(other.loginWhiteMsg)) + && (!hasClientSecretKey() || clientSecretKey.equals(other.clientSecretKey)) && (!hasIfixVersion() || ifixVersion.equals(other.ifixVersion)) - && (!hasClientSecretKey() || clientSecretKey.equals(other.clientSecretKey)); + && (!hasMdkResVersion() || mdkResVersion.equals(other.mdkResVersion)) + && (!hasAssetBundleUrl2() || assetBundleUrl2.equals(other.assetBundleUrl2)) + && (!hasIfixUrl() || ifixUrl.equals(other.ifixUrl)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(port); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(enableVersionUpdate); + output.writeRawByte((byte) 80); + output.writeBoolNoTag(unk1); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(enableDesignDataBundleVersionUpdate); + output.writeRawByte((byte) 120); + output.writeBoolNoTag(unk2); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 6640); - output.writeBoolNoTag(eventTrackingOpen); + output.writeRawLittleEndian16((short) 1176); + output.writeBoolNoTag(unk3); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 9608); - output.writeBoolNoTag(enableAndroidMiddlePackage); + output.writeRawLittleEndian16((short) 1272); + output.writeBoolNoTag(unk4); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawLittleEndian16((short) 23432); - output.writeBoolNoTag(enableWatermark); + output.writeRawLittleEndian16((short) 3008); + output.writeBoolNoTag(unk5); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawLittleEndian16((short) 23792); - output.writeBoolNoTag(closeRedeemCode); + output.writeRawLittleEndian16((short) 3264); + output.writeBoolNoTag(unk6); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawLittleEndian16((short) 25072); - output.writeBoolNoTag(networkDiagnostic); + output.writeRawLittleEndian16((short) 3800); + output.writeBoolNoTag(unk7); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 26); - output.writeStringNoTag(assetBundleUrl); + output.writeRawLittleEndian16((short) 7344); + output.writeBoolNoTag(unk8); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 34); - output.writeStringNoTag(ip); + output.writeRawLittleEndian16((short) 8584); + output.writeBoolNoTag(unk9); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawByte((byte) 42); - output.writeStringNoTag(regionName); + output.writeRawByte((byte) 26); + output.writeStringNoTag(ip); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 50); output.writeStringNoTag(luaUrl); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRawByte((byte) 114); - output.writeStringNoTag(exResourceUrl); + output.writeRawByte((byte) 74); + output.writeStringNoTag(regionName); } if ((bitField0_ & 0x00002000) != 0) { - output.writeRawLittleEndian16((short) 10666); - output.writeStringNoTag(mdkResVersion); + output.writeRawByte((byte) 90); + output.writeStringNoTag(exResourceUrl); } if ((bitField0_ & 0x00004000) != 0) { - output.writeRawLittleEndian16((short) 17866); - output.writeStringNoTag(ifixUrl); + output.writeRawByte((byte) 98); + output.writeStringNoTag(assetBundleUrl); } if ((bitField0_ & 0x00008000) != 0) { - output.writeRawLittleEndian16((short) 19138); - output.writeStringNoTag(msg); + output.writeRawLittleEndian16((short) 730); + output.writeStringNoTag(loginWhiteMsg); } if ((bitField0_ & 0x00010000) != 0) { - output.writeRawLittleEndian16((short) 22962); - output.writeStringNoTag(ifixVersion); + output.writeRawLittleEndian16((short) 11658); + output.writeStringNoTag(clientSecretKey); } if ((bitField0_ & 0x00020000) != 0) { - output.writeRawLittleEndian16((short) 29058); - output.writeStringNoTag(clientSecretKey); + output.writeRawLittleEndian16((short) 18898); + output.writeStringNoTag(ifixVersion); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeRawLittleEndian16((short) 19890); + output.writeStringNoTag(mdkResVersion); + } + if ((bitField0_ & 0x00080000) != 0) { + output.writeRawLittleEndian16((short) 22730); + output.writeStringNoTag(assetBundleUrl2); + } + if ((bitField0_ & 0x00100000) != 0) { + output.writeRawLittleEndian16((short) 23938); + output.writeStringNoTag(ifixUrl); } } @@ -1384,34 +1522,43 @@ public final class GateserverOuterClass { size += 3; } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); + size += 3; } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(ip); + size += 3; } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(regionName); + size += 1 + ProtoSink.computeStringSizeNoTag(ip); } if ((bitField0_ & 0x00000800) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(luaUrl); } if ((bitField0_ & 0x00001000) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(regionName); } if ((bitField0_ & 0x00002000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(mdkResVersion); + size += 1 + ProtoSink.computeStringSizeNoTag(exResourceUrl); } if ((bitField0_ & 0x00004000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(ifixUrl); + size += 1 + ProtoSink.computeStringSizeNoTag(assetBundleUrl); } if ((bitField0_ & 0x00008000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(msg); + size += 2 + ProtoSink.computeStringSizeNoTag(loginWhiteMsg); } if ((bitField0_ & 0x00010000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion); + size += 2 + ProtoSink.computeStringSizeNoTag(clientSecretKey); } if ((bitField0_ & 0x00020000) != 0) { - size += 2 + ProtoSink.computeStringSizeNoTag(clientSecretKey); + size += 2 + ProtoSink.computeStringSizeNoTag(ifixVersion); + } + if ((bitField0_ & 0x00040000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(mdkResVersion); + } + if ((bitField0_ & 0x00080000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(assetBundleUrl2); + } + if ((bitField0_ & 0x00100000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(ifixUrl); } return size; } @@ -1423,164 +1570,191 @@ public final class GateserverOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 56: { // port port = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 80) { break; } } - case 8: { - // enableVersionUpdate - enableVersionUpdate = input.readBool(); + case 80: { + // unk1 + unk1 = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 120) { break; } } - case 56: { - // enableDesignDataBundleVersionUpdate - enableDesignDataBundleVersionUpdate = input.readBool(); + case 120: { + // unk2 + unk2 = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 3312) { + if (tag != 536) { break; } } - case 3312: { - // eventTrackingOpen - eventTrackingOpen = input.readBool(); + case 536: { + // unk3 + unk3 = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 4744) { + if (tag != 632) { break; } } - case 4744: { - // enableAndroidMiddlePackage - enableAndroidMiddlePackage = input.readBool(); + case 632: { + // unk4 + unk4 = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 11656) { + if (tag != 1472) { break; } } - case 11656: { - // enableWatermark - enableWatermark = input.readBool(); + case 1472: { + // unk5 + unk5 = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 11888) { + if (tag != 1600) { break; } } - case 11888: { - // closeRedeemCode - closeRedeemCode = input.readBool(); + case 1600: { + // unk6 + unk6 = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 12528) { + if (tag != 1880) { break; } } - case 12528: { - // networkDiagnostic - networkDiagnostic = input.readBool(); + case 1880: { + // unk7 + unk7 = input.readBool(); bitField0_ |= 0x00000080; tag = input.readTag(); + if (tag != 3632) { + break; + } + } + case 3632: { + // unk8 + unk8 = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 4232) { + break; + } + } + case 4232: { + // unk9 + unk9 = input.readBool(); + bitField0_ |= 0x00000200; + tag = input.readTag(); if (tag != 26) { break; } } case 26: { - // assetBundleUrl - input.readString(assetBundleUrl); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { // ip input.readString(ip); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // regionName - input.readString(regionName); bitField0_ |= 0x00000400; tag = input.readTag(); - if (tag != 82) { + if (tag != 50) { break; } } - case 82: { + case 50: { // luaUrl input.readString(luaUrl); bitField0_ |= 0x00000800; tag = input.readTag(); - if (tag != 114) { + if (tag != 74) { break; } } - case 114: { - // exResourceUrl - input.readString(exResourceUrl); + case 74: { + // regionName + input.readString(regionName); bitField0_ |= 0x00001000; tag = input.readTag(); - if (tag != 5290) { + if (tag != 90) { break; } } - case 5290: { - // mdkResVersion - input.readString(mdkResVersion); + case 90: { + // exResourceUrl + input.readString(exResourceUrl); bitField0_ |= 0x00002000; tag = input.readTag(); - if (tag != 8906) { + if (tag != 98) { break; } } - case 8906: { - // ifixUrl - input.readString(ifixUrl); + case 98: { + // assetBundleUrl + input.readString(assetBundleUrl); bitField0_ |= 0x00004000; tag = input.readTag(); - if (tag != 9538) { + if (tag != 346) { break; } } - case 9538: { - // msg - input.readString(msg); + case 346: { + // loginWhiteMsg + input.readString(loginWhiteMsg); bitField0_ |= 0x00008000; tag = input.readTag(); - if (tag != 11442) { + if (tag != 5770) { break; } } - case 11442: { - // ifixVersion - input.readString(ifixVersion); - bitField0_ |= 0x00010000; - tag = input.readTag(); - if (tag != 14466) { - break; - } - } - case 14466: { + case 5770: { // clientSecretKey input.readString(clientSecretKey); + bitField0_ |= 0x00010000; + tag = input.readTag(); + if (tag != 9426) { + break; + } + } + case 9426: { + // ifixVersion + input.readString(ifixVersion); bitField0_ |= 0x00020000; tag = input.readTag(); + if (tag != 9906) { + break; + } + } + case 9906: { + // mdkResVersion + input.readString(mdkResVersion); + bitField0_ |= 0x00040000; + tag = input.readTag(); + if (tag != 11338) { + break; + } + } + case 11338: { + // assetBundleUrl2 + input.readString(assetBundleUrl2); + bitField0_ |= 0x00080000; + tag = input.readTag(); + if (tag != 11906) { + break; + } + } + case 11906: { + // ifixUrl + input.readString(ifixUrl); + bitField0_ |= 0x00100000; + tag = input.readTag(); if (tag != 0) { break; } @@ -1606,55 +1780,64 @@ public final class GateserverOuterClass { output.writeUInt32(FieldNames.port, port); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.enableVersionUpdate, enableVersionUpdate); + output.writeBool(FieldNames.unk1, unk1); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.enableDesignDataBundleVersionUpdate, enableDesignDataBundleVersionUpdate); + output.writeBool(FieldNames.unk2, unk2); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.eventTrackingOpen, eventTrackingOpen); + output.writeBool(FieldNames.unk3, unk3); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.enableAndroidMiddlePackage, enableAndroidMiddlePackage); + output.writeBool(FieldNames.unk4, unk4); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.enableWatermark, enableWatermark); + output.writeBool(FieldNames.unk5, unk5); } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.closeRedeemCode, closeRedeemCode); + output.writeBool(FieldNames.unk6, unk6); } if ((bitField0_ & 0x00000080) != 0) { - output.writeBool(FieldNames.networkDiagnostic, networkDiagnostic); + output.writeBool(FieldNames.unk7, unk7); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); + output.writeBool(FieldNames.unk8, unk8); } if ((bitField0_ & 0x00000200) != 0) { - output.writeString(FieldNames.ip, ip); + output.writeBool(FieldNames.unk9, unk9); } if ((bitField0_ & 0x00000400) != 0) { - output.writeString(FieldNames.regionName, regionName); + output.writeString(FieldNames.ip, ip); } if ((bitField0_ & 0x00000800) != 0) { output.writeString(FieldNames.luaUrl, luaUrl); } if ((bitField0_ & 0x00001000) != 0) { - output.writeString(FieldNames.exResourceUrl, exResourceUrl); + output.writeString(FieldNames.regionName, regionName); } if ((bitField0_ & 0x00002000) != 0) { - output.writeString(FieldNames.mdkResVersion, mdkResVersion); + output.writeString(FieldNames.exResourceUrl, exResourceUrl); } if ((bitField0_ & 0x00004000) != 0) { - output.writeString(FieldNames.ifixUrl, ifixUrl); + output.writeString(FieldNames.assetBundleUrl, assetBundleUrl); } if ((bitField0_ & 0x00008000) != 0) { - output.writeString(FieldNames.msg, msg); + output.writeString(FieldNames.loginWhiteMsg, loginWhiteMsg); } if ((bitField0_ & 0x00010000) != 0) { - output.writeString(FieldNames.ifixVersion, ifixVersion); + output.writeString(FieldNames.clientSecretKey, clientSecretKey); } if ((bitField0_ & 0x00020000) != 0) { - output.writeString(FieldNames.clientSecretKey, clientSecretKey); + output.writeString(FieldNames.ifixVersion, ifixVersion); + } + if ((bitField0_ & 0x00040000) != 0) { + output.writeString(FieldNames.mdkResVersion, mdkResVersion); + } + if ((bitField0_ & 0x00080000) != 0) { + output.writeString(FieldNames.assetBundleUrl2, assetBundleUrl2); + } + if ((bitField0_ & 0x00100000) != 0) { + output.writeString(FieldNames.ifixUrl, ifixUrl); } output.endObject(); } @@ -1677,11 +1860,10 @@ public final class GateserverOuterClass { } break; } - case -349989122: - case 531540044: { - if (input.isAtField(FieldNames.enableVersionUpdate)) { + case 3594623: { + if (input.isAtField(FieldNames.unk1)) { if (!input.trySkipNullValue()) { - enableVersionUpdate = input.readBool(); + unk1 = input.readBool(); bitField0_ |= 0x00000002; } } else { @@ -1689,11 +1871,10 @@ public final class GateserverOuterClass { } break; } - case -467618828: - case -1343541251: { - if (input.isAtField(FieldNames.enableDesignDataBundleVersionUpdate)) { + case 3594624: { + if (input.isAtField(FieldNames.unk2)) { if (!input.trySkipNullValue()) { - enableDesignDataBundleVersionUpdate = input.readBool(); + unk2 = input.readBool(); bitField0_ |= 0x00000004; } } else { @@ -1701,11 +1882,10 @@ public final class GateserverOuterClass { } break; } - case -100911781: - case 1870727661: { - if (input.isAtField(FieldNames.eventTrackingOpen)) { + case 3594625: { + if (input.isAtField(FieldNames.unk3)) { if (!input.trySkipNullValue()) { - eventTrackingOpen = input.readBool(); + unk3 = input.readBool(); bitField0_ |= 0x00000008; } } else { @@ -1713,11 +1893,10 @@ public final class GateserverOuterClass { } break; } - case 583307493: - case 986526120: { - if (input.isAtField(FieldNames.enableAndroidMiddlePackage)) { + case 3594626: { + if (input.isAtField(FieldNames.unk4)) { if (!input.trySkipNullValue()) { - enableAndroidMiddlePackage = input.readBool(); + unk4 = input.readBool(); bitField0_ |= 0x00000010; } } else { @@ -1725,11 +1904,10 @@ public final class GateserverOuterClass { } break; } - case 1857218081: - case 364560552: { - if (input.isAtField(FieldNames.enableWatermark)) { + case 3594627: { + if (input.isAtField(FieldNames.unk5)) { if (!input.trySkipNullValue()) { - enableWatermark = input.readBool(); + unk5 = input.readBool(); bitField0_ |= 0x00000020; } } else { @@ -1737,11 +1915,10 @@ public final class GateserverOuterClass { } break; } - case -1962061375: - case -264284439: { - if (input.isAtField(FieldNames.closeRedeemCode)) { + case 3594628: { + if (input.isAtField(FieldNames.unk6)) { if (!input.trySkipNullValue()) { - closeRedeemCode = input.readBool(); + unk6 = input.readBool(); bitField0_ |= 0x00000040; } } else { @@ -1749,11 +1926,10 @@ public final class GateserverOuterClass { } break; } - case -1960857483: - case -2044113320: { - if (input.isAtField(FieldNames.networkDiagnostic)) { + case 3594629: { + if (input.isAtField(FieldNames.unk7)) { if (!input.trySkipNullValue()) { - networkDiagnostic = input.readBool(); + unk7 = input.readBool(); bitField0_ |= 0x00000080; } } else { @@ -1761,11 +1937,10 @@ public final class GateserverOuterClass { } break; } - case -1116358531: - case 1973569761: { - if (input.isAtField(FieldNames.assetBundleUrl)) { + case 3594630: { + if (input.isAtField(FieldNames.unk8)) { if (!input.trySkipNullValue()) { - input.readString(assetBundleUrl); + unk8 = input.readBool(); bitField0_ |= 0x00000100; } } else { @@ -1773,22 +1948,21 @@ public final class GateserverOuterClass { } break; } + case 3594631: { + if (input.isAtField(FieldNames.unk9)) { + if (!input.trySkipNullValue()) { + unk9 = input.readBool(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } case 3367: { if (input.isAtField(FieldNames.ip)) { if (!input.trySkipNullValue()) { input.readString(ip); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1990689889: - case -1565768458: { - if (input.isAtField(FieldNames.regionName)) { - if (!input.trySkipNullValue()) { - input.readString(regionName); bitField0_ |= 0x00000400; } } else { @@ -1808,11 +1982,11 @@ public final class GateserverOuterClass { } break; } - case 1643520974: - case -1086137910: { - if (input.isAtField(FieldNames.exResourceUrl)) { + case -1990689889: + case -1565768458: { + if (input.isAtField(FieldNames.regionName)) { if (!input.trySkipNullValue()) { - input.readString(exResourceUrl); + input.readString(regionName); bitField0_ |= 0x00001000; } } else { @@ -1820,11 +1994,11 @@ public final class GateserverOuterClass { } break; } - case -1415579412: - case -204279250: { - if (input.isAtField(FieldNames.mdkResVersion)) { + case 1643520974: + case -1086137910: { + if (input.isAtField(FieldNames.exResourceUrl)) { if (!input.trySkipNullValue()) { - input.readString(mdkResVersion); + input.readString(exResourceUrl); bitField0_ |= 0x00002000; } } else { @@ -1832,11 +2006,11 @@ public final class GateserverOuterClass { } break; } - case 1719409347: - case 1762383292: { - if (input.isAtField(FieldNames.ifixUrl)) { + case -1116358531: + case 1973569761: { + if (input.isAtField(FieldNames.assetBundleUrl)) { if (!input.trySkipNullValue()) { - input.readString(ifixUrl); + input.readString(assetBundleUrl); bitField0_ |= 0x00004000; } } else { @@ -1844,10 +2018,11 @@ public final class GateserverOuterClass { } break; } - case 108417: { - if (input.isAtField(FieldNames.msg)) { + case 1235575073: + case 893116693: { + if (input.isAtField(FieldNames.loginWhiteMsg)) { if (!input.trySkipNullValue()) { - input.readString(msg); + input.readString(loginWhiteMsg); bitField0_ |= 0x00008000; } } else { @@ -1855,23 +2030,23 @@ public final class GateserverOuterClass { } break; } - case 1625073708: - case -827048283: { - if (input.isAtField(FieldNames.ifixVersion)) { - if (!input.trySkipNullValue()) { - input.readString(ifixVersion); - bitField0_ |= 0x00010000; - } - } else { - input.skipUnknownField(); - } - break; - } case -584558076: case 904194372: { if (input.isAtField(FieldNames.clientSecretKey)) { if (!input.trySkipNullValue()) { input.readString(clientSecretKey); + bitField0_ |= 0x00010000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1625073708: + case -827048283: { + if (input.isAtField(FieldNames.ifixVersion)) { + if (!input.trySkipNullValue()) { + input.readString(ifixVersion); bitField0_ |= 0x00020000; } } else { @@ -1879,6 +2054,42 @@ public final class GateserverOuterClass { } break; } + case -1415579412: + case -204279250: { + if (input.isAtField(FieldNames.mdkResVersion)) { + if (!input.trySkipNullValue()) { + input.readString(mdkResVersion); + bitField0_ |= 0x00040000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -247376043: + case -1775001516: { + if (input.isAtField(FieldNames.assetBundleUrl2)) { + if (!input.trySkipNullValue()) { + input.readString(assetBundleUrl2); + bitField0_ |= 0x00080000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1719409347: + case 1762383292: { + if (input.isAtField(FieldNames.ifixUrl)) { + if (!input.trySkipNullValue()) { + input.readString(ifixUrl); + bitField0_ |= 0x00100000; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -1933,39 +2144,45 @@ public final class GateserverOuterClass { static class FieldNames { static final FieldName port = FieldName.forField("port"); - static final FieldName enableVersionUpdate = FieldName.forField("enableVersionUpdate", "enable_version_update"); + static final FieldName unk1 = FieldName.forField("unk1"); - static final FieldName enableDesignDataBundleVersionUpdate = FieldName.forField("enableDesignDataBundleVersionUpdate", "enable_design_data_bundle_version_update"); + static final FieldName unk2 = FieldName.forField("unk2"); - static final FieldName eventTrackingOpen = FieldName.forField("eventTrackingOpen", "event_tracking_open"); + static final FieldName unk3 = FieldName.forField("unk3"); - static final FieldName enableAndroidMiddlePackage = FieldName.forField("enableAndroidMiddlePackage", "enable_android_middle_package"); + static final FieldName unk4 = FieldName.forField("unk4"); - static final FieldName enableWatermark = FieldName.forField("enableWatermark", "enable_watermark"); + static final FieldName unk5 = FieldName.forField("unk5"); - static final FieldName closeRedeemCode = FieldName.forField("closeRedeemCode", "close_redeem_code"); + static final FieldName unk6 = FieldName.forField("unk6"); - static final FieldName networkDiagnostic = FieldName.forField("networkDiagnostic", "network_diagnostic"); + static final FieldName unk7 = FieldName.forField("unk7"); - static final FieldName assetBundleUrl = FieldName.forField("assetBundleUrl", "asset_bundle_url"); + static final FieldName unk8 = FieldName.forField("unk8"); + + static final FieldName unk9 = FieldName.forField("unk9"); static final FieldName ip = FieldName.forField("ip"); - static final FieldName regionName = FieldName.forField("regionName", "region_name"); - static final FieldName luaUrl = FieldName.forField("luaUrl", "lua_url"); + static final FieldName regionName = FieldName.forField("regionName", "region_name"); + static final FieldName exResourceUrl = FieldName.forField("exResourceUrl", "ex_resource_url"); - static final FieldName mdkResVersion = FieldName.forField("mdkResVersion", "mdk_res_version"); + static final FieldName assetBundleUrl = FieldName.forField("assetBundleUrl", "asset_bundle_url"); - static final FieldName ifixUrl = FieldName.forField("ifixUrl", "ifix_url"); + static final FieldName loginWhiteMsg = FieldName.forField("loginWhiteMsg", "login_white_msg"); - static final FieldName msg = FieldName.forField("msg"); + static final FieldName clientSecretKey = FieldName.forField("clientSecretKey", "client_secret_key"); static final FieldName ifixVersion = FieldName.forField("ifixVersion", "ifix_version"); - static final FieldName clientSecretKey = FieldName.forField("clientSecretKey", "client_secret_key"); + static final FieldName mdkResVersion = FieldName.forField("mdkResVersion", "mdk_res_version"); + + static final FieldName assetBundleUrl2 = FieldName.forField("assetBundleUrl2", "asset_bundle_url_2"); + + static final FieldName ifixUrl = FieldName.forField("ifixUrl", "ifix_url"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java index e7f545b..b7a130c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetActivityScheduleConfigScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetActivityScheduleConfigScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 9; */ private int retcode; /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; */ private final RepeatedMessage activityScheduleList = RepeatedMessage.newEmptyInstance(ActivityScheduleInfoOuterClass.ActivityScheduleInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 9; * @return this */ public GetActivityScheduleConfigScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; * @return whether the activityScheduleList field is set */ public boolean hasActivityScheduleList() { @@ -85,7 +85,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; * @return this */ public GetActivityScheduleConfigScRsp clearActivityScheduleList() { @@ -95,7 +95,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -110,7 +110,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -125,7 +125,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; * @param value the activityScheduleList to add * @return this */ @@ -137,7 +137,7 @@ public final class GetActivityScheduleConfigScRspOuterClass { } /** - * repeated .ActivityScheduleInfo activity_schedule_list = 6; + * repeated .ActivityScheduleInfo activity_schedule_list = 7; * @param values the activityScheduleList to add * @return this */ @@ -214,12 +214,12 @@ public final class GetActivityScheduleConfigScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < activityScheduleList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 58); output.writeMessageNoTag(activityScheduleList.get(i)); } } @@ -244,16 +244,16 @@ public final class GetActivityScheduleConfigScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 58) { break; } } - case 50: { + case 58: { // activityScheduleList tag = input.readRepeatedMessage(activityScheduleList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java index 1856ae1..c2da9e9 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAllLineupDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetAllLineupDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_index = 1; - */ - private int curIndex; - - /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 6; */ private int retcode; /** - * repeated .LineupInfo lineup_list = 6; + * optional uint32 cur_index = 11; + */ + private int curIndex; + + /** + * repeated .LineupInfo lineup_list = 10; */ private final RepeatedMessage lineupList = RepeatedMessage.newEmptyInstance(LineupInfoOuterClass.LineupInfo.getFactory()); @@ -45,62 +45,25 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * optional uint32 cur_index = 1; - * @return whether the curIndex field is set + * optional uint32 retcode = 6; + * @return whether the retcode field is set */ - public boolean hasCurIndex() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cur_index = 1; - * @return this - */ - public GetAllLineupDataScRsp clearCurIndex() { - bitField0_ &= ~0x00000001; - curIndex = 0; - return this; - } - - /** - * optional uint32 cur_index = 1; - * @return the curIndex - */ - public int getCurIndex() { - return curIndex; - } - - /** - * optional uint32 cur_index = 1; - * @param value the curIndex to set - * @return this - */ - public GetAllLineupDataScRsp setCurIndex(final int value) { - bitField0_ |= 0x00000001; - curIndex = value; - return this; - } - - /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 6; * @return this */ public GetAllLineupDataScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -108,18 +71,55 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ public GetAllLineupDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * repeated .LineupInfo lineup_list = 6; + * optional uint32 cur_index = 11; + * @return whether the curIndex field is set + */ + public boolean hasCurIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_index = 11; + * @return this + */ + public GetAllLineupDataScRsp clearCurIndex() { + bitField0_ &= ~0x00000002; + curIndex = 0; + return this; + } + + /** + * optional uint32 cur_index = 11; + * @return the curIndex + */ + public int getCurIndex() { + return curIndex; + } + + /** + * optional uint32 cur_index = 11; + * @param value the curIndex to set + * @return this + */ + public GetAllLineupDataScRsp setCurIndex(final int value) { + bitField0_ |= 0x00000002; + curIndex = value; + return this; + } + + /** + * repeated .LineupInfo lineup_list = 10; * @return whether the lineupList field is set */ public boolean hasLineupList() { @@ -127,7 +127,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 6; + * repeated .LineupInfo lineup_list = 10; * @return this */ public GetAllLineupDataScRsp clearLineupList() { @@ -137,7 +137,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 6; + * repeated .LineupInfo lineup_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 6; + * repeated .LineupInfo lineup_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 6; + * repeated .LineupInfo lineup_list = 10; * @param value the lineupList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetAllLineupDataScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 6; + * repeated .LineupInfo lineup_list = 10; * @param values the lineupList to add * @return this */ @@ -191,8 +191,8 @@ public final class GetAllLineupDataScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curIndex = other.curIndex; retcode = other.retcode; + curIndex = other.curIndex; lineupList.copyFrom(other.lineupList); } return this; @@ -204,12 +204,12 @@ public final class GetAllLineupDataScRspOuterClass { return this; } cachedSize = -1; - if (other.hasCurIndex()) { - setCurIndex(other.curIndex); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurIndex()) { + setCurIndex(other.curIndex); + } if (other.hasLineupList()) { getMutableLineupList().addAll(other.lineupList); } @@ -223,8 +223,8 @@ public final class GetAllLineupDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - curIndex = 0; retcode = 0; + curIndex = 0; lineupList.clear(); return this; } @@ -250,24 +250,24 @@ public final class GetAllLineupDataScRspOuterClass { } GetAllLineupDataScRsp other = (GetAllLineupDataScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCurIndex() || curIndex == other.curIndex) && (!hasRetcode() || retcode == other.retcode) + && (!hasCurIndex() || curIndex == other.curIndex) && (!hasLineupList() || lineupList.equals(other.lineupList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(curIndex); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(curIndex); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < lineupList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 82); output.writeMessageNoTag(lineupList.get(i)); } } @@ -277,10 +277,10 @@ public final class GetAllLineupDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curIndex); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curIndex); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * lineupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lineupList); @@ -295,25 +295,25 @@ public final class GetAllLineupDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // curIndex - curIndex = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { + case 48: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 88) { break; } } - case 50: { + case 88: { + // curIndex + curIndex = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { // lineupList tag = input.readRepeatedMessage(lineupList, tag); bitField0_ |= 0x00000004; @@ -339,10 +339,10 @@ public final class GetAllLineupDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curIndex, curIndex); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curIndex, curIndex); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.lineupList, lineupList); @@ -357,11 +357,10 @@ public final class GetAllLineupDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 537796210: - case 117333523: { - if (input.isAtField(FieldNames.curIndex)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - curIndex = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -369,10 +368,11 @@ public final class GetAllLineupDataScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 537796210: + case 117333523: { + if (input.isAtField(FieldNames.curIndex)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + curIndex = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -445,10 +445,10 @@ public final class GetAllLineupDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curIndex = FieldName.forField("curIndex", "cur_index"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curIndex = FieldName.forField("curIndex", "cur_index"); + static final FieldName lineupList = FieldName.forField("lineupList", "lineup_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java index 775ddb9..f83d5c3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetArchiveDataScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetArchiveDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional .ArchiveData archive_data = 3; + * optional .ArchiveData archive_data = 12; */ private final ArchiveDataOuterClass.ArchiveData archiveData = ArchiveDataOuterClass.ArchiveData.newInstance(); @@ -39,7 +39,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @return this */ public GetArchiveDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 3; + * optional .ArchiveData archive_data = 12; * @return whether the archiveData field is set */ public boolean hasArchiveData() { @@ -84,7 +84,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 3; + * optional .ArchiveData archive_data = 12; * @return this */ public GetArchiveDataScRsp clearArchiveData() { @@ -94,7 +94,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 3; + * optional .ArchiveData archive_data = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 3; + * optional .ArchiveData archive_data = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class GetArchiveDataScRspOuterClass { } /** - * optional .ArchiveData archive_data = 3; + * optional .ArchiveData archive_data = 12; * @param value the archiveData to set * @return this */ @@ -198,11 +198,11 @@ public final class GetArchiveDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 98); output.writeMessageNoTag(archiveData); } } @@ -226,16 +226,16 @@ public final class GetArchiveDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 98) { break; } } - case 26: { + case 98: { // archiveData input.readMessage(archiveData); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAssistHistoryScRspOuterClass.java similarity index 56% rename from src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetAssistHistoryScRspOuterClass.java index f265e2e..6438073 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAssistHistoryScRspOuterClass.java @@ -10,31 +10,31 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueBuffSelectOuterClass { +public final class GetAssistHistoryScRspOuterClass { /** - * Protobuf type {@code RogueBuffSelect} + * Protobuf type {@code GetAssistHistoryScRsp} */ - public static final class RogueBuffSelect extends ProtoMessage implements Cloneable { + public static final class GetAssistHistoryScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - private RogueBuffSelect() { + private GetAssistHistoryScRsp() { } /** - * @return a new empty instance of {@code RogueBuffSelect} + * @return a new empty instance of {@code GetAssistHistoryScRsp} */ - public static RogueBuffSelect newInstance() { - return new RogueBuffSelect(); + public static GetAssistHistoryScRsp newInstance() { + return new GetAssistHistoryScRsp(); } @Override - public RogueBuffSelect copyFrom(final RogueBuffSelect other) { + public GetAssistHistoryScRsp copyFrom(final GetAssistHistoryScRsp other) { cachedSize = other.cachedSize; return this; } @Override - public RogueBuffSelect mergeFrom(final RogueBuffSelect other) { + public GetAssistHistoryScRsp mergeFrom(final GetAssistHistoryScRsp other) { if (other.isEmpty()) { return this; } @@ -43,7 +43,7 @@ public final class RogueBuffSelectOuterClass { } @Override - public RogueBuffSelect clear() { + public GetAssistHistoryScRsp clear() { if (isEmpty()) { return this; } @@ -52,7 +52,7 @@ public final class RogueBuffSelectOuterClass { } @Override - public RogueBuffSelect clearQuick() { + public GetAssistHistoryScRsp clearQuick() { if (isEmpty()) { return this; } @@ -65,10 +65,10 @@ public final class RogueBuffSelectOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueBuffSelect)) { + if (!(o instanceof GetAssistHistoryScRsp)) { return false; } - RogueBuffSelect other = (RogueBuffSelect) o; + GetAssistHistoryScRsp other = (GetAssistHistoryScRsp) o; return true; } @@ -84,7 +84,7 @@ public final class RogueBuffSelectOuterClass { @Override @SuppressWarnings("fallthrough") - public RogueBuffSelect mergeFrom(final ProtoSource input) throws IOException { + public GetAssistHistoryScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -110,7 +110,7 @@ public final class RogueBuffSelectOuterClass { } @Override - public RogueBuffSelect mergeFrom(final JsonSource input) throws IOException { + public GetAssistHistoryScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -127,8 +127,8 @@ public final class RogueBuffSelectOuterClass { } @Override - public RogueBuffSelect clone() { - return new RogueBuffSelect().copyFrom(this); + public GetAssistHistoryScRsp clone() { + return new GetAssistHistoryScRsp().copyFrom(this); } @Override @@ -136,32 +136,32 @@ public final class RogueBuffSelectOuterClass { return ((bitField0_) == 0); } - public static RogueBuffSelect parseFrom(final byte[] data) throws + public static GetAssistHistoryScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffSelect(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetAssistHistoryScRsp(), data).checkInitialized(); } - public static RogueBuffSelect parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffSelect(), input).checkInitialized(); + public static GetAssistHistoryScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAssistHistoryScRsp(), input).checkInitialized(); } - public static RogueBuffSelect parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffSelect(), input).checkInitialized(); + public static GetAssistHistoryScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetAssistHistoryScRsp(), input).checkInitialized(); } /** - * @return factory for creating RogueBuffSelect messages + * @return factory for creating GetAssistHistoryScRsp messages */ - public static MessageFactory getFactory() { - return RogueBuffSelectFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetAssistHistoryScRspFactory.INSTANCE; } - private enum RogueBuffSelectFactory implements MessageFactory { + private enum GetAssistHistoryScRspFactory implements MessageFactory { INSTANCE; @Override - public RogueBuffSelect create() { - return RogueBuffSelect.newInstance(); + public GetAssistHistoryScRsp create() { + return GetAssistHistoryScRsp.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java index 2c666cf..c1225a9 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataCsReqOuterClass.java @@ -25,7 +25,7 @@ public final class GetAvatarDataCsReqOuterClass { private boolean isGetAll; /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; */ private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); @@ -77,7 +77,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; * @return whether the baseAvatarIdList field is set */ public boolean hasBaseAvatarIdList() { @@ -85,7 +85,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; * @return this */ public GetAvatarDataCsReq clearBaseAvatarIdList() { @@ -95,7 +95,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; * @param value the baseAvatarIdList to add * @return this */ @@ -134,7 +134,7 @@ public final class GetAvatarDataCsReqOuterClass { } /** - * repeated uint32 base_avatar_id_list = 1; + * repeated uint32 base_avatar_id_list = 2; * @param values the baseAvatarIdList to add * @return this */ @@ -215,7 +215,7 @@ public final class GetAvatarDataCsReqOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(baseAvatarIdList.array()[i]); } } @@ -245,11 +245,11 @@ public final class GetAvatarDataCsReqOuterClass { isGetAll = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 18) { break; } } - case 10: { + case 18: { // baseAvatarIdList [packed=true] input.readPackedUInt32(baseAvatarIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class GetAvatarDataCsReqOuterClass { tag = input.readTag(); break; } - case 8: { + case 16: { // baseAvatarIdList [packed=false] tag = input.readRepeatedUInt32(baseAvatarIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java index a83582b..108c6ad 100644 --- a/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetAvatarDataScRspOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; import us.hebi.quickbuf.RepeatedMessage; public final class GetAvatarDataScRspOuterClass { @@ -20,17 +21,37 @@ public final class GetAvatarDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional bool is_get_all = 4; + * optional bool is_get_all = 7; */ private boolean isGetAll; /** - * repeated .Avatar avatar_list = 13; + * optional .PlayerOutfitInfo player_outfit_data = 1; + */ + private final PlayerOutfitInfoOuterClass.PlayerOutfitInfo playerOutfitData = PlayerOutfitInfoOuterClass.PlayerOutfitInfo.newInstance(); + + /** + * repeated uint32 owned_skin_list = 6; + */ + private final RepeatedInt ownedSkinList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 basic_type_id_list = 11; + */ + private final RepeatedInt basicTypeIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + */ + private final RepeatedMessage avatarPathInfoList = RepeatedMessage.newEmptyInstance(AvatarPathInfoOuterClass.AvatarPathInfo.getFactory()); + + /** + * repeated .Avatar avatar_list = 14; */ private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(AvatarOuterClass.Avatar.getFactory()); @@ -45,7 +66,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +74,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return this */ public GetAvatarDataScRsp clearRetcode() { @@ -63,7 +84,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -71,7 +92,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -82,7 +103,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 4; + * optional bool is_get_all = 7; * @return whether the isGetAll field is set */ public boolean hasIsGetAll() { @@ -90,7 +111,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 4; + * optional bool is_get_all = 7; * @return this */ public GetAvatarDataScRsp clearIsGetAll() { @@ -100,7 +121,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 4; + * optional bool is_get_all = 7; * @return the isGetAll */ public boolean getIsGetAll() { @@ -108,7 +129,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * optional bool is_get_all = 4; + * optional bool is_get_all = 7; * @param value the isGetAll to set * @return this */ @@ -119,25 +140,289 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 13; - * @return whether the avatarList field is set + * optional .PlayerOutfitInfo player_outfit_data = 1; + * @return whether the playerOutfitData field is set */ - public boolean hasAvatarList() { + public boolean hasPlayerOutfitData() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .Avatar avatar_list = 13; + * optional .PlayerOutfitInfo player_outfit_data = 1; + * @return this + */ + public GetAvatarDataScRsp clearPlayerOutfitData() { + bitField0_ &= ~0x00000004; + playerOutfitData.clear(); + return this; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePlayerOutfitData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getPlayerOutfitData() { + return playerOutfitData; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getMutablePlayerOutfitData() { + bitField0_ |= 0x00000004; + return playerOutfitData; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1; + * @param value the playerOutfitData to set + * @return this + */ + public GetAvatarDataScRsp setPlayerOutfitData( + final PlayerOutfitInfoOuterClass.PlayerOutfitInfo value) { + bitField0_ |= 0x00000004; + playerOutfitData.copyFrom(value); + return this; + } + + /** + * repeated uint32 owned_skin_list = 6; + * @return whether the ownedSkinList field is set + */ + public boolean hasOwnedSkinList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 owned_skin_list = 6; + * @return this + */ + public GetAvatarDataScRsp clearOwnedSkinList() { + bitField0_ &= ~0x00000008; + ownedSkinList.clear(); + return this; + } + + /** + * repeated uint32 owned_skin_list = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOwnedSkinList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOwnedSkinList() { + return ownedSkinList; + } + + /** + * repeated uint32 owned_skin_list = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableOwnedSkinList() { + bitField0_ |= 0x00000008; + return ownedSkinList; + } + + /** + * repeated uint32 owned_skin_list = 6; + * @param value the ownedSkinList to add + * @return this + */ + public GetAvatarDataScRsp addOwnedSkinList(final int value) { + bitField0_ |= 0x00000008; + ownedSkinList.add(value); + return this; + } + + /** + * repeated uint32 owned_skin_list = 6; + * @param values the ownedSkinList to add + * @return this + */ + public GetAvatarDataScRsp addAllOwnedSkinList(final int... values) { + bitField0_ |= 0x00000008; + ownedSkinList.addAll(values); + return this; + } + + /** + * repeated uint32 basic_type_id_list = 11; + * @return whether the basicTypeIdList field is set + */ + public boolean hasBasicTypeIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 basic_type_id_list = 11; + * @return this + */ + public GetAvatarDataScRsp clearBasicTypeIdList() { + bitField0_ &= ~0x00000010; + basicTypeIdList.clear(); + return this; + } + + /** + * repeated uint32 basic_type_id_list = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBasicTypeIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBasicTypeIdList() { + return basicTypeIdList; + } + + /** + * repeated uint32 basic_type_id_list = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableBasicTypeIdList() { + bitField0_ |= 0x00000010; + return basicTypeIdList; + } + + /** + * repeated uint32 basic_type_id_list = 11; + * @param value the basicTypeIdList to add + * @return this + */ + public GetAvatarDataScRsp addBasicTypeIdList(final int value) { + bitField0_ |= 0x00000010; + basicTypeIdList.add(value); + return this; + } + + /** + * repeated uint32 basic_type_id_list = 11; + * @param values the basicTypeIdList to add + * @return this + */ + public GetAvatarDataScRsp addAllBasicTypeIdList(final int... values) { + bitField0_ |= 0x00000010; + basicTypeIdList.addAll(values); + return this; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + * @return whether the avatarPathInfoList field is set + */ + public boolean hasAvatarPathInfoList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + * @return this + */ + public GetAvatarDataScRsp clearAvatarPathInfoList() { + bitField0_ &= ~0x00000020; + avatarPathInfoList.clear(); + return this; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAvatarPathInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAvatarPathInfoList() { + return avatarPathInfoList; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAvatarPathInfoList() { + bitField0_ |= 0x00000020; + return avatarPathInfoList; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + * @param value the avatarPathInfoList to add + * @return this + */ + public GetAvatarDataScRsp addAvatarPathInfoList( + final AvatarPathInfoOuterClass.AvatarPathInfo value) { + bitField0_ |= 0x00000020; + avatarPathInfoList.add(value); + return this; + } + + /** + * repeated .AvatarPathInfo avatar_path_info_list = 12; + * @param values the avatarPathInfoList to add + * @return this + */ + public GetAvatarDataScRsp addAllAvatarPathInfoList( + final AvatarPathInfoOuterClass.AvatarPathInfo... values) { + bitField0_ |= 0x00000020; + avatarPathInfoList.addAll(values); + return this; + } + + /** + * repeated .Avatar avatar_list = 14; + * @return whether the avatarList field is set + */ + public boolean hasAvatarList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .Avatar avatar_list = 14; * @return this */ public GetAvatarDataScRsp clearAvatarList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000040; avatarList.clear(); return this; } /** - * repeated .Avatar avatar_list = 13; + * repeated .Avatar avatar_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +436,7 @@ public final class GetAvatarDataScRspOuterClass { } /** - * repeated .Avatar avatar_list = 13; + * repeated .Avatar avatar_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -160,28 +445,28 @@ public final class GetAvatarDataScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableAvatarList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; return avatarList; } /** - * repeated .Avatar avatar_list = 13; + * repeated .Avatar avatar_list = 14; * @param value the avatarList to add * @return this */ public GetAvatarDataScRsp addAvatarList(final AvatarOuterClass.Avatar value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; avatarList.add(value); return this; } /** - * repeated .Avatar avatar_list = 13; + * repeated .Avatar avatar_list = 14; * @param values the avatarList to add * @return this */ public GetAvatarDataScRsp addAllAvatarList(final AvatarOuterClass.Avatar... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; avatarList.addAll(values); return this; } @@ -193,6 +478,10 @@ public final class GetAvatarDataScRspOuterClass { bitField0_ = other.bitField0_; retcode = other.retcode; isGetAll = other.isGetAll; + playerOutfitData.copyFrom(other.playerOutfitData); + ownedSkinList.copyFrom(other.ownedSkinList); + basicTypeIdList.copyFrom(other.basicTypeIdList); + avatarPathInfoList.copyFrom(other.avatarPathInfoList); avatarList.copyFrom(other.avatarList); } return this; @@ -210,6 +499,18 @@ public final class GetAvatarDataScRspOuterClass { if (other.hasIsGetAll()) { setIsGetAll(other.isGetAll); } + if (other.hasPlayerOutfitData()) { + getMutablePlayerOutfitData().mergeFrom(other.playerOutfitData); + } + if (other.hasOwnedSkinList()) { + getMutableOwnedSkinList().addAll(other.ownedSkinList); + } + if (other.hasBasicTypeIdList()) { + getMutableBasicTypeIdList().addAll(other.basicTypeIdList); + } + if (other.hasAvatarPathInfoList()) { + getMutableAvatarPathInfoList().addAll(other.avatarPathInfoList); + } if (other.hasAvatarList()) { getMutableAvatarList().addAll(other.avatarList); } @@ -225,6 +526,10 @@ public final class GetAvatarDataScRspOuterClass { bitField0_ = 0; retcode = 0; isGetAll = false; + playerOutfitData.clear(); + ownedSkinList.clear(); + basicTypeIdList.clear(); + avatarPathInfoList.clear(); avatarList.clear(); return this; } @@ -236,6 +541,10 @@ public final class GetAvatarDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + playerOutfitData.clearQuick(); + ownedSkinList.clear(); + basicTypeIdList.clear(); + avatarPathInfoList.clearQuick(); avatarList.clearQuick(); return this; } @@ -252,22 +561,48 @@ public final class GetAvatarDataScRspOuterClass { return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) && (!hasIsGetAll() || isGetAll == other.isGetAll) + && (!hasPlayerOutfitData() || playerOutfitData.equals(other.playerOutfitData)) + && (!hasOwnedSkinList() || ownedSkinList.equals(other.ownedSkinList)) + && (!hasBasicTypeIdList() || basicTypeIdList.equals(other.basicTypeIdList)) + && (!hasAvatarPathInfoList() || avatarPathInfoList.equals(other.avatarPathInfoList)) && (!hasAvatarList() || avatarList.equals(other.avatarList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 56); output.writeBoolNoTag(isGetAll); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(playerOutfitData); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < ownedSkinList.length(); i++) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(ownedSkinList.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < basicTypeIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(basicTypeIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < avatarPathInfoList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(avatarPathInfoList.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 114); output.writeMessageNoTag(avatarList.get(i)); } } @@ -283,6 +618,18 @@ public final class GetAvatarDataScRspOuterClass { size += 2; } if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(playerOutfitData); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * ownedSkinList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedSkinList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * basicTypeIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(basicTypeIdList); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * avatarPathInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarPathInfoList); + } + if ((bitField0_ & 0x00000040) != 0) { size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); } return size; @@ -295,28 +642,63 @@ public final class GetAvatarDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 56) { break; } } - case 32: { + case 56: { // isGetAll isGetAll = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 10) { break; } } - case 106: { + case 10: { + // playerOutfitData + input.readMessage(playerOutfitData); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // ownedSkinList [packed=true] + input.readPackedUInt32(ownedSkinList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // basicTypeIdList [packed=true] + input.readPackedUInt32(basicTypeIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // avatarPathInfoList + tag = input.readRepeatedMessage(avatarPathInfoList, tag); + bitField0_ |= 0x00000020; + if (tag != 114) { + break; + } + } + case 114: { // avatarList tag = input.readRepeatedMessage(avatarList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; if (tag != 0) { break; } @@ -331,6 +713,18 @@ public final class GetAvatarDataScRspOuterClass { tag = input.readTag(); break; } + case 48: { + // ownedSkinList [packed=false] + tag = input.readRepeatedUInt32(ownedSkinList, tag); + bitField0_ |= 0x00000008; + break; + } + case 88: { + // basicTypeIdList [packed=false] + tag = input.readRepeatedUInt32(basicTypeIdList, tag); + bitField0_ |= 0x00000010; + break; + } } } } @@ -345,6 +739,18 @@ public final class GetAvatarDataScRspOuterClass { output.writeBool(FieldNames.isGetAll, isGetAll); } if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.playerOutfitData, playerOutfitData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.ownedSkinList, ownedSkinList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.basicTypeIdList, basicTypeIdList); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedMessage(FieldNames.avatarPathInfoList, avatarPathInfoList); + } + if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.avatarList, avatarList); } output.endObject(); @@ -380,12 +786,60 @@ public final class GetAvatarDataScRspOuterClass { } break; } + case 1168879118: + case 1803235336: { + if (input.isAtField(FieldNames.playerOutfitData)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerOutfitData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -939989632: + case -1012790010: { + if (input.isAtField(FieldNames.ownedSkinList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ownedSkinList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -332160255: + case 99090862: { + if (input.isAtField(FieldNames.basicTypeIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(basicTypeIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1918381482: + case 11642267: { + if (input.isAtField(FieldNames.avatarPathInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(avatarPathInfoList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } case -403402345: case 397055940: { if (input.isAtField(FieldNames.avatarList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(avatarList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -449,6 +903,14 @@ public final class GetAvatarDataScRspOuterClass { static final FieldName isGetAll = FieldName.forField("isGetAll", "is_get_all"); + static final FieldName playerOutfitData = FieldName.forField("playerOutfitData", "player_outfit_data"); + + static final FieldName ownedSkinList = FieldName.forField("ownedSkinList", "owned_skin_list"); + + static final FieldName basicTypeIdList = FieldName.forField("basicTypeIdList", "basic_type_id_list"); + + static final FieldName avatarPathInfoList = FieldName.forField("avatarPathInfoList", "avatar_path_info_list"); + static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java index 82c448b..324f679 100644 --- a/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetBagScRspOuterClass.java @@ -21,30 +21,30 @@ public final class GetBagScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; */ private int retcode; /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; */ private final RepeatedInt petList = RepeatedInt.newEmptyInstance(); /** - * repeated .Material material_list = 1; - */ - private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); - - /** - * repeated .Equipment equipment_list = 6; + * repeated .Equipment equipment_list = 1; */ private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; */ private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); + /** + * repeated .Material material_list = 15; + */ + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + private GetBagScRsp() { } @@ -56,7 +56,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -64,7 +64,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return this */ public GetBagScRsp clearRetcode() { @@ -74,7 +74,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -82,7 +82,7 @@ public final class GetBagScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -93,7 +93,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; * @return whether the petList field is set */ public boolean hasPetList() { @@ -101,7 +101,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; * @return this */ public GetBagScRsp clearPetList() { @@ -111,7 +111,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -125,7 +125,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -139,7 +139,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; * @param value the petList to add * @return this */ @@ -150,7 +150,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated uint32 pet_list = 2; + * repeated uint32 pet_list = 14; * @param values the petList to add * @return this */ @@ -161,93 +161,25 @@ public final class GetBagScRspOuterClass { } /** - * repeated .Material material_list = 1; - * @return whether the materialList field is set + * repeated .Equipment equipment_list = 1; + * @return whether the equipmentList field is set */ - public boolean hasMaterialList() { + public boolean hasEquipmentList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .Material material_list = 1; - * @return this - */ - public GetBagScRsp clearMaterialList() { - bitField0_ &= ~0x00000004; - materialList.clear(); - return this; - } - - /** - * repeated .Material material_list = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMaterialList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMaterialList() { - return materialList; - } - - /** - * repeated .Material material_list = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMaterialList() { - bitField0_ |= 0x00000004; - return materialList; - } - - /** - * repeated .Material material_list = 1; - * @param value the materialList to add - * @return this - */ - public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { - bitField0_ |= 0x00000004; - materialList.add(value); - return this; - } - - /** - * repeated .Material material_list = 1; - * @param values the materialList to add - * @return this - */ - public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { - bitField0_ |= 0x00000004; - materialList.addAll(values); - return this; - } - - /** - * repeated .Equipment equipment_list = 6; - * @return whether the equipmentList field is set - */ - public boolean hasEquipmentList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .Equipment equipment_list = 6; + * repeated .Equipment equipment_list = 1; * @return this */ public GetBagScRsp clearEquipmentList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; equipmentList.clear(); return this; } /** - * repeated .Equipment equipment_list = 6; + * repeated .Equipment equipment_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -261,7 +193,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated .Equipment equipment_list = 6; + * repeated .Equipment equipment_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -270,52 +202,52 @@ public final class GetBagScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipmentList() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return equipmentList; } /** - * repeated .Equipment equipment_list = 6; + * repeated .Equipment equipment_list = 1; * @param value the equipmentList to add * @return this */ public GetBagScRsp addEquipmentList(final EquipmentOuterClass.Equipment value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; equipmentList.add(value); return this; } /** - * repeated .Equipment equipment_list = 6; + * repeated .Equipment equipment_list = 1; * @param values the equipmentList to add * @return this */ public GetBagScRsp addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; equipmentList.addAll(values); return this; } /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; * @return whether the relicList field is set */ public boolean hasRelicList() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; * @return this */ public GetBagScRsp clearRelicList() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; relicList.clear(); return this; } /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -329,7 +261,7 @@ public final class GetBagScRspOuterClass { } /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -338,32 +270,100 @@ public final class GetBagScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableRelicList() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; return relicList; } /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; * @param value the relicList to add * @return this */ public GetBagScRsp addRelicList(final RelicOuterClass.Relic value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; relicList.add(value); return this; } /** - * repeated .Relic relic_list = 10; + * repeated .Relic relic_list = 12; * @param values the relicList to add * @return this */ public GetBagScRsp addAllRelicList(final RelicOuterClass.Relic... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; relicList.addAll(values); return this; } + /** + * repeated .Material material_list = 15; + * @return whether the materialList field is set + */ + public boolean hasMaterialList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .Material material_list = 15; + * @return this + */ + public GetBagScRsp clearMaterialList() { + bitField0_ &= ~0x00000010; + materialList.clear(); + return this; + } + + /** + * repeated .Material material_list = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMaterialList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMaterialList() { + return materialList; + } + + /** + * repeated .Material material_list = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMaterialList() { + bitField0_ |= 0x00000010; + return materialList; + } + + /** + * repeated .Material material_list = 15; + * @param value the materialList to add + * @return this + */ + public GetBagScRsp addMaterialList(final MaterialOuterClass.Material value) { + bitField0_ |= 0x00000010; + materialList.add(value); + return this; + } + + /** + * repeated .Material material_list = 15; + * @param values the materialList to add + * @return this + */ + public GetBagScRsp addAllMaterialList(final MaterialOuterClass.Material... values) { + bitField0_ |= 0x00000010; + materialList.addAll(values); + return this; + } + @Override public GetBagScRsp copyFrom(final GetBagScRsp other) { cachedSize = other.cachedSize; @@ -371,9 +371,9 @@ public final class GetBagScRspOuterClass { bitField0_ = other.bitField0_; retcode = other.retcode; petList.copyFrom(other.petList); - materialList.copyFrom(other.materialList); equipmentList.copyFrom(other.equipmentList); relicList.copyFrom(other.relicList); + materialList.copyFrom(other.materialList); } return this; } @@ -390,15 +390,15 @@ public final class GetBagScRspOuterClass { if (other.hasPetList()) { getMutablePetList().addAll(other.petList); } - if (other.hasMaterialList()) { - getMutableMaterialList().addAll(other.materialList); - } if (other.hasEquipmentList()) { getMutableEquipmentList().addAll(other.equipmentList); } if (other.hasRelicList()) { getMutableRelicList().addAll(other.relicList); } + if (other.hasMaterialList()) { + getMutableMaterialList().addAll(other.materialList); + } return this; } @@ -411,9 +411,9 @@ public final class GetBagScRspOuterClass { bitField0_ = 0; retcode = 0; petList.clear(); - materialList.clear(); equipmentList.clear(); relicList.clear(); + materialList.clear(); return this; } @@ -425,9 +425,9 @@ public final class GetBagScRspOuterClass { cachedSize = -1; bitField0_ = 0; petList.clear(); - materialList.clearQuick(); equipmentList.clearQuick(); relicList.clearQuick(); + materialList.clearQuick(); return this; } @@ -443,41 +443,41 @@ public final class GetBagScRspOuterClass { return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) && (!hasPetList() || petList.equals(other.petList)) - && (!hasMaterialList() || materialList.equals(other.materialList)) && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) - && (!hasRelicList() || relicList.equals(other.relicList)); + && (!hasRelicList() || relicList.equals(other.relicList)) + && (!hasMaterialList() || materialList.equals(other.materialList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < petList.length(); i++) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(petList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < materialList.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(materialList.get(i)); - } - } - if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < equipmentList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(equipmentList.get(i)); } } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 98); output.writeMessageNoTag(relicList.get(i)); } } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(materialList.get(i)); + } + } } @Override @@ -490,14 +490,14 @@ public final class GetBagScRspOuterClass { size += (1 * petList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(petList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); - } - if ((bitField0_ & 0x00000008) != 0) { size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + } return size; } @@ -508,16 +508,16 @@ public final class GetBagScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 114) { break; } } - case 18: { + case 114: { // petList [packed=true] input.readPackedUInt32(petList, tag); bitField0_ |= 0x00000002; @@ -527,24 +527,24 @@ public final class GetBagScRspOuterClass { } } case 10: { - // materialList - tag = input.readRepeatedMessage(materialList, tag); - bitField0_ |= 0x00000004; - if (tag != 50) { - break; - } - } - case 50: { // equipmentList tag = input.readRepeatedMessage(equipmentList, tag); - bitField0_ |= 0x00000008; - if (tag != 82) { + bitField0_ |= 0x00000004; + if (tag != 98) { break; } } - case 82: { + case 98: { // relicList tag = input.readRepeatedMessage(relicList, tag); + bitField0_ |= 0x00000008; + if (tag != 122) { + break; + } + } + case 122: { + // materialList + tag = input.readRepeatedMessage(materialList, tag); bitField0_ |= 0x00000010; if (tag != 0) { break; @@ -560,7 +560,7 @@ public final class GetBagScRspOuterClass { tag = input.readTag(); break; } - case 16: { + case 112: { // petList [packed=false] tag = input.readRepeatedUInt32(petList, tag); bitField0_ |= 0x00000002; @@ -580,14 +580,14 @@ public final class GetBagScRspOuterClass { output.writeRepeatedUInt32(FieldNames.petList, petList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.materialList, materialList); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.relicList, relicList); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.materialList, materialList); + } output.endObject(); } @@ -621,24 +621,12 @@ public final class GetBagScRspOuterClass { } break; } - case -2115854747: - case -1149360970: { - if (input.isAtField(FieldNames.materialList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(materialList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 2007143244: case 2109525167: { if (input.isAtField(FieldNames.equipmentList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipmentList); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -650,6 +638,18 @@ public final class GetBagScRspOuterClass { if (input.isAtField(FieldNames.relicList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(relicList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(materialList); bitField0_ |= 0x00000010; } } else { @@ -713,11 +713,11 @@ public final class GetBagScRspOuterClass { static final FieldName petList = FieldName.forField("petList", "pet_list"); - static final FieldName materialList = FieldName.forField("materialList", "material_list"); - static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); static final FieldName relicList = FieldName.forField("relicList", "relic_list"); + + static final FieldName materialList = FieldName.forField("materialList", "material_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java index 1f1fcd5..cfd4577 100644 --- a/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetBasicInfoScRspOuterClass.java @@ -24,47 +24,51 @@ public final class GetBasicInfoScRspOuterClass { private long nextRecoverTime; /** - * optional int64 last_set_nickname_time = 13; + * optional int64 last_set_nickname_time = 14; */ private long lastSetNicknameTime; - /** - * optional uint32 gameplay_birthday = 2; - */ - private int gameplayBirthday; - /** * optional uint32 gender = 4; */ private int gender; /** - * optional uint32 week_cocoon_finished_count = 5; - */ - private int weekCocoonFinishedCount; - - /** - * optional uint32 cur_day = 10; + * optional uint32 cur_day = 7; */ private int curDay; /** - * optional uint32 retcode = 11; + * optional uint32 gameplay_birthday = 10; */ - private int retcode; + private int gameplayBirthday; /** - * optional uint32 exchange_times = 14; + * optional uint32 week_cocoon_finished_count = 11; + */ + private int weekCocoonFinishedCount; + + /** + * optional uint32 exchange_times = 12; */ private int exchangeTimes; /** - * optional bool is_gender_set = 7; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + * optional bool is_gender_set = 2; */ private boolean isGenderSet; /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 5; */ private final PlayerSettingInfoOuterClass.PlayerSettingInfo playerSettingInfo = PlayerSettingInfoOuterClass.PlayerSettingInfo.newInstance(); @@ -116,7 +120,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional int64 last_set_nickname_time = 13; + * optional int64 last_set_nickname_time = 14; * @return whether the lastSetNicknameTime field is set */ public boolean hasLastSetNicknameTime() { @@ -124,7 +128,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional int64 last_set_nickname_time = 13; + * optional int64 last_set_nickname_time = 14; * @return this */ public GetBasicInfoScRsp clearLastSetNicknameTime() { @@ -134,7 +138,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional int64 last_set_nickname_time = 13; + * optional int64 last_set_nickname_time = 14; * @return the lastSetNicknameTime */ public long getLastSetNicknameTime() { @@ -142,7 +146,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional int64 last_set_nickname_time = 13; + * optional int64 last_set_nickname_time = 14; * @param value the lastSetNicknameTime to set * @return this */ @@ -152,49 +156,12 @@ public final class GetBasicInfoScRspOuterClass { return this; } - /** - * optional uint32 gameplay_birthday = 2; - * @return whether the gameplayBirthday field is set - */ - public boolean hasGameplayBirthday() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 gameplay_birthday = 2; - * @return this - */ - public GetBasicInfoScRsp clearGameplayBirthday() { - bitField0_ &= ~0x00000004; - gameplayBirthday = 0; - return this; - } - - /** - * optional uint32 gameplay_birthday = 2; - * @return the gameplayBirthday - */ - public int getGameplayBirthday() { - return gameplayBirthday; - } - - /** - * optional uint32 gameplay_birthday = 2; - * @param value the gameplayBirthday to set - * @return this - */ - public GetBasicInfoScRsp setGameplayBirthday(final int value) { - bitField0_ |= 0x00000004; - gameplayBirthday = value; - return this; - } - /** * optional uint32 gender = 4; * @return whether the gender field is set */ public boolean hasGender() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -202,7 +169,7 @@ public final class GetBasicInfoScRspOuterClass { * @return this */ public GetBasicInfoScRsp clearGender() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; gender = 0; return this; } @@ -221,68 +188,31 @@ public final class GetBasicInfoScRspOuterClass { * @return this */ public GetBasicInfoScRsp setGender(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; gender = value; return this; } /** - * optional uint32 week_cocoon_finished_count = 5; - * @return whether the weekCocoonFinishedCount field is set - */ - public boolean hasWeekCocoonFinishedCount() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 week_cocoon_finished_count = 5; - * @return this - */ - public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { - bitField0_ &= ~0x00000010; - weekCocoonFinishedCount = 0; - return this; - } - - /** - * optional uint32 week_cocoon_finished_count = 5; - * @return the weekCocoonFinishedCount - */ - public int getWeekCocoonFinishedCount() { - return weekCocoonFinishedCount; - } - - /** - * optional uint32 week_cocoon_finished_count = 5; - * @param value the weekCocoonFinishedCount to set - * @return this - */ - public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { - bitField0_ |= 0x00000010; - weekCocoonFinishedCount = value; - return this; - } - - /** - * optional uint32 cur_day = 10; + * optional uint32 cur_day = 7; * @return whether the curDay field is set */ public boolean hasCurDay() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 cur_day = 10; + * optional uint32 cur_day = 7; * @return this */ public GetBasicInfoScRsp clearCurDay() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000008; curDay = 0; return this; } /** - * optional uint32 cur_day = 10; + * optional uint32 cur_day = 7; * @return the curDay */ public int getCurDay() { @@ -290,73 +220,110 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 cur_day = 10; + * optional uint32 cur_day = 7; * @param value the curDay to set * @return this */ public GetBasicInfoScRsp setCurDay(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; curDay = value; return this; } /** - * optional uint32 retcode = 11; - * @return whether the retcode field is set + * optional uint32 gameplay_birthday = 10; + * @return whether the gameplayBirthday field is set */ - public boolean hasRetcode() { + public boolean hasGameplayBirthday() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 gameplay_birthday = 10; + * @return this + */ + public GetBasicInfoScRsp clearGameplayBirthday() { + bitField0_ &= ~0x00000010; + gameplayBirthday = 0; + return this; + } + + /** + * optional uint32 gameplay_birthday = 10; + * @return the gameplayBirthday + */ + public int getGameplayBirthday() { + return gameplayBirthday; + } + + /** + * optional uint32 gameplay_birthday = 10; + * @param value the gameplayBirthday to set + * @return this + */ + public GetBasicInfoScRsp setGameplayBirthday(final int value) { + bitField0_ |= 0x00000010; + gameplayBirthday = value; + return this; + } + + /** + * optional uint32 week_cocoon_finished_count = 11; + * @return whether the weekCocoonFinishedCount field is set + */ + public boolean hasWeekCocoonFinishedCount() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 week_cocoon_finished_count = 11; + * @return this + */ + public GetBasicInfoScRsp clearWeekCocoonFinishedCount() { + bitField0_ &= ~0x00000020; + weekCocoonFinishedCount = 0; + return this; + } + + /** + * optional uint32 week_cocoon_finished_count = 11; + * @return the weekCocoonFinishedCount + */ + public int getWeekCocoonFinishedCount() { + return weekCocoonFinishedCount; + } + + /** + * optional uint32 week_cocoon_finished_count = 11; + * @param value the weekCocoonFinishedCount to set + * @return this + */ + public GetBasicInfoScRsp setWeekCocoonFinishedCount(final int value) { + bitField0_ |= 0x00000020; + weekCocoonFinishedCount = value; + return this; + } + + /** + * optional uint32 exchange_times = 12; + * @return whether the exchangeTimes field is set + */ + public boolean hasExchangeTimes() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 retcode = 11; - * @return this - */ - public GetBasicInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000040; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 11; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 11; - * @param value the retcode to set - * @return this - */ - public GetBasicInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000040; - retcode = value; - return this; - } - - /** - * optional uint32 exchange_times = 14; - * @return whether the exchangeTimes field is set - */ - public boolean hasExchangeTimes() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional uint32 exchange_times = 14; + * optional uint32 exchange_times = 12; * @return this */ public GetBasicInfoScRsp clearExchangeTimes() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000040; exchangeTimes = 0; return this; } /** - * optional uint32 exchange_times = 14; + * optional uint32 exchange_times = 12; * @return the exchangeTimes */ public int getExchangeTimes() { @@ -364,18 +331,71 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional uint32 exchange_times = 14; + * optional uint32 exchange_times = 12; * @param value the exchangeTimes to set * @return this */ public GetBasicInfoScRsp setExchangeTimes(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; exchangeTimes = value; return this; } /** - * optional bool is_gender_set = 7; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return this + */ + public GetBasicInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000080; + retcode = 0; + return this; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public GetBasicInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000080; + retcode = value; + return this; + } + + /** + * optional bool is_gender_set = 2; * @return whether the isGenderSet field is set */ public boolean hasIsGenderSet() { @@ -383,7 +403,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional bool is_gender_set = 7; + * optional bool is_gender_set = 2; * @return this */ public GetBasicInfoScRsp clearIsGenderSet() { @@ -393,7 +413,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional bool is_gender_set = 7; + * optional bool is_gender_set = 2; * @return the isGenderSet */ public boolean getIsGenderSet() { @@ -401,7 +421,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional bool is_gender_set = 7; + * optional bool is_gender_set = 2; * @param value the isGenderSet to set * @return this */ @@ -412,7 +432,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 5; * @return whether the playerSettingInfo field is set */ public boolean hasPlayerSettingInfo() { @@ -420,7 +440,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 5; * @return this */ public GetBasicInfoScRsp clearPlayerSettingInfo() { @@ -430,7 +450,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -444,7 +464,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -458,7 +478,7 @@ public final class GetBasicInfoScRspOuterClass { } /** - * optional .PlayerSettingInfo player_setting_info = 1; + * optional .PlayerSettingInfo player_setting_info = 5; * @param value the playerSettingInfo to set * @return this */ @@ -476,12 +496,12 @@ public final class GetBasicInfoScRspOuterClass { bitField0_ = other.bitField0_; nextRecoverTime = other.nextRecoverTime; lastSetNicknameTime = other.lastSetNicknameTime; - gameplayBirthday = other.gameplayBirthday; gender = other.gender; - weekCocoonFinishedCount = other.weekCocoonFinishedCount; curDay = other.curDay; - retcode = other.retcode; + gameplayBirthday = other.gameplayBirthday; + weekCocoonFinishedCount = other.weekCocoonFinishedCount; exchangeTimes = other.exchangeTimes; + retcode = other.retcode; isGenderSet = other.isGenderSet; playerSettingInfo.copyFrom(other.playerSettingInfo); } @@ -500,24 +520,24 @@ public final class GetBasicInfoScRspOuterClass { if (other.hasLastSetNicknameTime()) { setLastSetNicknameTime(other.lastSetNicknameTime); } - if (other.hasGameplayBirthday()) { - setGameplayBirthday(other.gameplayBirthday); - } if (other.hasGender()) { setGender(other.gender); } - if (other.hasWeekCocoonFinishedCount()) { - setWeekCocoonFinishedCount(other.weekCocoonFinishedCount); - } if (other.hasCurDay()) { setCurDay(other.curDay); } - if (other.hasRetcode()) { - setRetcode(other.retcode); + if (other.hasGameplayBirthday()) { + setGameplayBirthday(other.gameplayBirthday); + } + if (other.hasWeekCocoonFinishedCount()) { + setWeekCocoonFinishedCount(other.weekCocoonFinishedCount); } if (other.hasExchangeTimes()) { setExchangeTimes(other.exchangeTimes); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasIsGenderSet()) { setIsGenderSet(other.isGenderSet); } @@ -536,12 +556,12 @@ public final class GetBasicInfoScRspOuterClass { bitField0_ = 0; nextRecoverTime = 0L; lastSetNicknameTime = 0L; - gameplayBirthday = 0; gender = 0; - weekCocoonFinishedCount = 0; curDay = 0; - retcode = 0; + gameplayBirthday = 0; + weekCocoonFinishedCount = 0; exchangeTimes = 0; + retcode = 0; isGenderSet = false; playerSettingInfo.clear(); return this; @@ -570,12 +590,12 @@ public final class GetBasicInfoScRspOuterClass { return bitField0_ == other.bitField0_ && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) && (!hasLastSetNicknameTime() || lastSetNicknameTime == other.lastSetNicknameTime) - && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) && (!hasGender() || gender == other.gender) - && (!hasWeekCocoonFinishedCount() || weekCocoonFinishedCount == other.weekCocoonFinishedCount) && (!hasCurDay() || curDay == other.curDay) - && (!hasRetcode() || retcode == other.retcode) + && (!hasGameplayBirthday() || gameplayBirthday == other.gameplayBirthday) + && (!hasWeekCocoonFinishedCount() || weekCocoonFinishedCount == other.weekCocoonFinishedCount) && (!hasExchangeTimes() || exchangeTimes == other.exchangeTimes) + && (!hasRetcode() || retcode == other.retcode) && (!hasIsGenderSet() || isGenderSet == other.isGenderSet) && (!hasPlayerSettingInfo() || playerSettingInfo.equals(other.playerSettingInfo)); } @@ -587,39 +607,39 @@ public final class GetBasicInfoScRspOuterClass { output.writeInt64NoTag(nextRecoverTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeInt64NoTag(lastSetNicknameTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(gameplayBirthday); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(gender); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(weekCocoonFinishedCount); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 80); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); output.writeUInt32NoTag(curDay); } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(retcode); + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(gameplayBirthday); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(weekCocoonFinishedCount); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 96); output.writeUInt32NoTag(exchangeTimes); } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isGenderSet); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 42); output.writeMessageNoTag(playerSettingInfo); } } @@ -634,22 +654,22 @@ public final class GetBasicInfoScRspOuterClass { size += 1 + ProtoSink.computeInt64SizeNoTag(lastSetNicknameTime); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gender); } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); - } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curDay); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameplayBirthday); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(weekCocoonFinishedCount); + } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(exchangeTimes); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exchangeTimes); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000100) != 0) { size += 2; @@ -672,24 +692,15 @@ public final class GetBasicInfoScRspOuterClass { nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 112) { break; } } - case 104: { + case 112: { // lastSetNicknameTime lastSetNicknameTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // gameplayBirthday - gameplayBirthday = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 32) { break; } @@ -697,58 +708,67 @@ public final class GetBasicInfoScRspOuterClass { case 32: { // gender gender = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // weekCocoonFinishedCount - weekCocoonFinishedCount = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // curDay - curDay = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // exchangeTimes - exchangeTimes = input.readUInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 56) { break; } } case 56: { + // curDay + curDay = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // gameplayBirthday + gameplayBirthday = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // weekCocoonFinishedCount + weekCocoonFinishedCount = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // exchangeTimes + exchangeTimes = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { // isGenderSet isGenderSet = input.readBool(); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 10) { + if (tag != 42) { break; } } - case 10: { + case 42: { // playerSettingInfo input.readMessage(playerSettingInfo); bitField0_ |= 0x00000200; @@ -781,22 +801,22 @@ public final class GetBasicInfoScRspOuterClass { output.writeInt64(FieldNames.lastSetNicknameTime, lastSetNicknameTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.gender, gender); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); - } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.curDay, curDay); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.gameplayBirthday, gameplayBirthday); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.weekCocoonFinishedCount, weekCocoonFinishedCount); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.exchangeTimes, exchangeTimes); } if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.exchangeTimes, exchangeTimes); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000100) != 0) { output.writeBool(FieldNames.isGenderSet, isGenderSet); @@ -838,35 +858,11 @@ public final class GetBasicInfoScRspOuterClass { } break; } - case 686542531: - case 172986486: { - if (input.isAtField(FieldNames.gameplayBirthday)) { - if (!input.trySkipNullValue()) { - gameplayBirthday = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -1249512767: { if (input.isAtField(FieldNames.gender)) { if (!input.trySkipNullValue()) { gender = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1387396786: - case 668486783: { - if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { - if (!input.trySkipNullValue()) { - weekCocoonFinishedCount = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -878,18 +874,31 @@ public final class GetBasicInfoScRspOuterClass { if (input.isAtField(FieldNames.curDay)) { if (!input.trySkipNullValue()) { curDay = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 686542531: + case 172986486: { + if (input.isAtField(FieldNames.gameplayBirthday)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000040; + gameplayBirthday = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1387396786: + case 668486783: { + if (input.isAtField(FieldNames.weekCocoonFinishedCount)) { + if (!input.trySkipNullValue()) { + weekCocoonFinishedCount = input.readUInt32(); + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -901,6 +910,17 @@ public final class GetBasicInfoScRspOuterClass { if (input.isAtField(FieldNames.exchangeTimes)) { if (!input.trySkipNullValue()) { exchangeTimes = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); bitField0_ |= 0x00000080; } } else { @@ -989,18 +1009,18 @@ public final class GetBasicInfoScRspOuterClass { static final FieldName lastSetNicknameTime = FieldName.forField("lastSetNicknameTime", "last_set_nickname_time"); - static final FieldName gameplayBirthday = FieldName.forField("gameplayBirthday", "gameplay_birthday"); - static final FieldName gender = FieldName.forField("gender"); - static final FieldName weekCocoonFinishedCount = FieldName.forField("weekCocoonFinishedCount", "week_cocoon_finished_count"); - static final FieldName curDay = FieldName.forField("curDay", "cur_day"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName gameplayBirthday = FieldName.forField("gameplayBirthday", "gameplay_birthday"); + + static final FieldName weekCocoonFinishedCount = FieldName.forField("weekCocoonFinishedCount", "week_cocoon_finished_count"); static final FieldName exchangeTimes = FieldName.forField("exchangeTimes", "exchange_times"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName isGenderSet = FieldName.forField("isGenderSet", "is_gender_set"); static final FieldName playerSettingInfo = FieldName.forField("playerSettingInfo", "player_setting_info"); diff --git a/src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendCsReqOuterClass.java new file mode 100644 index 0000000..d39c04d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendCsReqOuterClass.java @@ -0,0 +1,295 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetBigDataAllRecommendCsReqOuterClass { + /** + * Protobuf type {@code GetBigDataAllRecommendCsReq} + */ + public static final class GetBigDataAllRecommendCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .BigDataRecommendType recommend_type = 1; + */ + private int recommendType; + + private GetBigDataAllRecommendCsReq() { + } + + /** + * @return a new empty instance of {@code GetBigDataAllRecommendCsReq} + */ + public static GetBigDataAllRecommendCsReq newInstance() { + return new GetBigDataAllRecommendCsReq(); + } + + /** + * optional .BigDataRecommendType recommend_type = 1; + * @return whether the recommendType field is set + */ + public boolean hasRecommendType() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .BigDataRecommendType recommend_type = 1; + * @return this + */ + public GetBigDataAllRecommendCsReq clearRecommendType() { + bitField0_ &= ~0x00000001; + recommendType = 0; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 1; + * @return the recommendType + */ + public BigDataRecommendTypeOuterClass.BigDataRecommendType getRecommendType() { + return BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(recommendType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetBigDataAllRecommendCsReq#getRecommendType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRecommendTypeValue() { + return recommendType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BigDataRecommendTypeOuterClass.BigDataRecommendType}. Setting an invalid value + * can cause {@link GetBigDataAllRecommendCsReq#getRecommendType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetBigDataAllRecommendCsReq setRecommendTypeValue(final int value) { + bitField0_ |= 0x00000001; + recommendType = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 1; + * @param value the recommendType to set + * @return this + */ + public GetBigDataAllRecommendCsReq setRecommendType( + final BigDataRecommendTypeOuterClass.BigDataRecommendType value) { + bitField0_ |= 0x00000001; + recommendType = value.getNumber(); + return this; + } + + @Override + public GetBigDataAllRecommendCsReq copyFrom(final GetBigDataAllRecommendCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + recommendType = other.recommendType; + } + return this; + } + + @Override + public GetBigDataAllRecommendCsReq mergeFrom(final GetBigDataAllRecommendCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRecommendType()) { + setRecommendTypeValue(other.recommendType); + } + return this; + } + + @Override + public GetBigDataAllRecommendCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + recommendType = 0; + return this; + } + + @Override + public GetBigDataAllRecommendCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetBigDataAllRecommendCsReq)) { + return false; + } + GetBigDataAllRecommendCsReq other = (GetBigDataAllRecommendCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRecommendType() || recommendType == other.recommendType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(recommendType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(recommendType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetBigDataAllRecommendCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // recommendType + final int value = input.readInt32(); + if (BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(value) != null) { + recommendType = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.recommendType, recommendType, BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + } + output.endObject(); + } + + @Override + public GetBigDataAllRecommendCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1141942762: + case -1030468387: { + if (input.isAtField(FieldNames.recommendType)) { + if (!input.trySkipNullValue()) { + final BigDataRecommendTypeOuterClass.BigDataRecommendType value = input.readEnum(BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + if (value != null) { + recommendType = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetBigDataAllRecommendCsReq clone() { + return new GetBigDataAllRecommendCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetBigDataAllRecommendCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetBigDataAllRecommendCsReq(), data).checkInitialized(); + } + + public static GetBigDataAllRecommendCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetBigDataAllRecommendCsReq(), input).checkInitialized(); + } + + public static GetBigDataAllRecommendCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBigDataAllRecommendCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetBigDataAllRecommendCsReq messages + */ + public static MessageFactory getFactory() { + return GetBigDataAllRecommendCsReqFactory.INSTANCE; + } + + private enum GetBigDataAllRecommendCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetBigDataAllRecommendCsReq create() { + return GetBigDataAllRecommendCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName recommendType = FieldName.forField("recommendType", "recommend_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendScRspOuterClass.java new file mode 100644 index 0000000..288a1c7 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetBigDataAllRecommendScRspOuterClass.java @@ -0,0 +1,581 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetBigDataAllRecommendScRspOuterClass { + /** + * Protobuf type {@code GetBigDataAllRecommendScRsp} + */ + public static final class GetBigDataAllRecommendScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional .BigDataRecommendType recommend_type = 2; + */ + private int recommendType; + + /** + * optional .AvatarReccomendData avatar_reccomend_data = 4; + */ + private final AvatarReccomendDataOuterClass.AvatarReccomendData avatarReccomendData = AvatarReccomendDataOuterClass.AvatarReccomendData.newInstance(); + + /** + * optional .RelicReccomendData relic_reccomend_data = 15; + */ + private final RelicReccomendDataOuterClass.RelicReccomendData relicReccomendData = RelicReccomendDataOuterClass.RelicReccomendData.newInstance(); + + private GetBigDataAllRecommendScRsp() { + } + + /** + * @return a new empty instance of {@code GetBigDataAllRecommendScRsp} + */ + public static GetBigDataAllRecommendScRsp newInstance() { + return new GetBigDataAllRecommendScRsp(); + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public GetBigDataAllRecommendScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public GetBigDataAllRecommendScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @return whether the recommendType field is set + */ + public boolean hasRecommendType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @return this + */ + public GetBigDataAllRecommendScRsp clearRecommendType() { + bitField0_ &= ~0x00000002; + recommendType = 0; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @return the recommendType + */ + public BigDataRecommendTypeOuterClass.BigDataRecommendType getRecommendType() { + return BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(recommendType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetBigDataAllRecommendScRsp#getRecommendType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRecommendTypeValue() { + return recommendType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BigDataRecommendTypeOuterClass.BigDataRecommendType}. Setting an invalid value + * can cause {@link GetBigDataAllRecommendScRsp#getRecommendType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetBigDataAllRecommendScRsp setRecommendTypeValue(final int value) { + bitField0_ |= 0x00000002; + recommendType = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @param value the recommendType to set + * @return this + */ + public GetBigDataAllRecommendScRsp setRecommendType( + final BigDataRecommendTypeOuterClass.BigDataRecommendType value) { + bitField0_ |= 0x00000002; + recommendType = value.getNumber(); + return this; + } + + /** + * optional .AvatarReccomendData avatar_reccomend_data = 4; + * @return whether the avatarReccomendData field is set + */ + public boolean hasAvatarReccomendData() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .AvatarReccomendData avatar_reccomend_data = 4; + * @return this + */ + public GetBigDataAllRecommendScRsp clearAvatarReccomendData() { + bitField0_ &= ~0x00000004; + avatarReccomendData.clear(); + return this; + } + + /** + * optional .AvatarReccomendData avatar_reccomend_data = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAvatarReccomendData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public AvatarReccomendDataOuterClass.AvatarReccomendData getAvatarReccomendData() { + return avatarReccomendData; + } + + /** + * optional .AvatarReccomendData avatar_reccomend_data = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public AvatarReccomendDataOuterClass.AvatarReccomendData getMutableAvatarReccomendData() { + bitField0_ |= 0x00000004; + return avatarReccomendData; + } + + /** + * optional .AvatarReccomendData avatar_reccomend_data = 4; + * @param value the avatarReccomendData to set + * @return this + */ + public GetBigDataAllRecommendScRsp setAvatarReccomendData( + final AvatarReccomendDataOuterClass.AvatarReccomendData value) { + bitField0_ |= 0x00000004; + avatarReccomendData.copyFrom(value); + return this; + } + + /** + * optional .RelicReccomendData relic_reccomend_data = 15; + * @return whether the relicReccomendData field is set + */ + public boolean hasRelicReccomendData() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .RelicReccomendData relic_reccomend_data = 15; + * @return this + */ + public GetBigDataAllRecommendScRsp clearRelicReccomendData() { + bitField0_ &= ~0x00000008; + relicReccomendData.clear(); + return this; + } + + /** + * optional .RelicReccomendData relic_reccomend_data = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRelicReccomendData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RelicReccomendDataOuterClass.RelicReccomendData getRelicReccomendData() { + return relicReccomendData; + } + + /** + * optional .RelicReccomendData relic_reccomend_data = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RelicReccomendDataOuterClass.RelicReccomendData getMutableRelicReccomendData() { + bitField0_ |= 0x00000008; + return relicReccomendData; + } + + /** + * optional .RelicReccomendData relic_reccomend_data = 15; + * @param value the relicReccomendData to set + * @return this + */ + public GetBigDataAllRecommendScRsp setRelicReccomendData( + final RelicReccomendDataOuterClass.RelicReccomendData value) { + bitField0_ |= 0x00000008; + relicReccomendData.copyFrom(value); + return this; + } + + @Override + public GetBigDataAllRecommendScRsp copyFrom(final GetBigDataAllRecommendScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + recommendType = other.recommendType; + avatarReccomendData.copyFrom(other.avatarReccomendData); + relicReccomendData.copyFrom(other.relicReccomendData); + } + return this; + } + + @Override + public GetBigDataAllRecommendScRsp mergeFrom(final GetBigDataAllRecommendScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRecommendType()) { + setRecommendTypeValue(other.recommendType); + } + if (other.hasAvatarReccomendData()) { + getMutableAvatarReccomendData().mergeFrom(other.avatarReccomendData); + } + if (other.hasRelicReccomendData()) { + getMutableRelicReccomendData().mergeFrom(other.relicReccomendData); + } + return this; + } + + @Override + public GetBigDataAllRecommendScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + recommendType = 0; + avatarReccomendData.clear(); + relicReccomendData.clear(); + return this; + } + + @Override + public GetBigDataAllRecommendScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarReccomendData.clearQuick(); + relicReccomendData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetBigDataAllRecommendScRsp)) { + return false; + } + GetBigDataAllRecommendScRsp other = (GetBigDataAllRecommendScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasRecommendType() || recommendType == other.recommendType) + && (!hasAvatarReccomendData() || avatarReccomendData.equals(other.avatarReccomendData)) + && (!hasRelicReccomendData() || relicReccomendData.equals(other.relicReccomendData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(recommendType); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(avatarReccomendData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(relicReccomendData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(recommendType); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(avatarReccomendData); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(relicReccomendData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetBigDataAllRecommendScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // recommendType + final int value = input.readInt32(); + if (BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(value) != null) { + recommendType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // avatarReccomendData + input.readMessage(avatarReccomendData); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // relicReccomendData + input.readMessage(relicReccomendData); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.recommendType, recommendType, BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.avatarReccomendData, avatarReccomendData); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.relicReccomendData, relicReccomendData); + } + output.endObject(); + } + + @Override + public GetBigDataAllRecommendScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1141942762: + case -1030468387: { + if (input.isAtField(FieldNames.recommendType)) { + if (!input.trySkipNullValue()) { + final BigDataRecommendTypeOuterClass.BigDataRecommendType value = input.readEnum(BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + if (value != null) { + recommendType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1865912773: + case -1772298715: { + if (input.isAtField(FieldNames.avatarReccomendData)) { + if (!input.trySkipNullValue()) { + input.readMessage(avatarReccomendData); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1508304481: + case -1849826101: { + if (input.isAtField(FieldNames.relicReccomendData)) { + if (!input.trySkipNullValue()) { + input.readMessage(relicReccomendData); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetBigDataAllRecommendScRsp clone() { + return new GetBigDataAllRecommendScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetBigDataAllRecommendScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetBigDataAllRecommendScRsp(), data).checkInitialized(); + } + + public static GetBigDataAllRecommendScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetBigDataAllRecommendScRsp(), input).checkInitialized(); + } + + public static GetBigDataAllRecommendScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBigDataAllRecommendScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetBigDataAllRecommendScRsp messages + */ + public static MessageFactory getFactory() { + return GetBigDataAllRecommendScRspFactory.INSTANCE; + } + + private enum GetBigDataAllRecommendScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetBigDataAllRecommendScRsp create() { + return GetBigDataAllRecommendScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName recommendType = FieldName.forField("recommendType", "recommend_type"); + + static final FieldName avatarReccomendData = FieldName.forField("avatarReccomendData", "avatar_reccomend_data"); + + static final FieldName relicReccomendData = FieldName.forField("relicReccomendData", "relic_reccomend_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetBigDataRecommendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBigDataRecommendCsReqOuterClass.java new file mode 100644 index 0000000..50f20e3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetBigDataRecommendCsReqOuterClass.java @@ -0,0 +1,375 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetBigDataRecommendCsReqOuterClass { + /** + * Protobuf type {@code GetBigDataRecommendCsReq} + */ + public static final class GetBigDataRecommendCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 trailblazer_path_id = 9; + */ + private int trailblazerPathId; + + /** + * optional .BigDataRecommendType recommend_type = 2; + */ + private int recommendType; + + private GetBigDataRecommendCsReq() { + } + + /** + * @return a new empty instance of {@code GetBigDataRecommendCsReq} + */ + public static GetBigDataRecommendCsReq newInstance() { + return new GetBigDataRecommendCsReq(); + } + + /** + * optional uint32 trailblazer_path_id = 9; + * @return whether the trailblazerPathId field is set + */ + public boolean hasTrailblazerPathId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 trailblazer_path_id = 9; + * @return this + */ + public GetBigDataRecommendCsReq clearTrailblazerPathId() { + bitField0_ &= ~0x00000001; + trailblazerPathId = 0; + return this; + } + + /** + * optional uint32 trailblazer_path_id = 9; + * @return the trailblazerPathId + */ + public int getTrailblazerPathId() { + return trailblazerPathId; + } + + /** + * optional uint32 trailblazer_path_id = 9; + * @param value the trailblazerPathId to set + * @return this + */ + public GetBigDataRecommendCsReq setTrailblazerPathId(final int value) { + bitField0_ |= 0x00000001; + trailblazerPathId = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @return whether the recommendType field is set + */ + public boolean hasRecommendType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @return this + */ + public GetBigDataRecommendCsReq clearRecommendType() { + bitField0_ &= ~0x00000002; + recommendType = 0; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @return the recommendType + */ + public BigDataRecommendTypeOuterClass.BigDataRecommendType getRecommendType() { + return BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(recommendType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetBigDataRecommendCsReq#getRecommendType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRecommendTypeValue() { + return recommendType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BigDataRecommendTypeOuterClass.BigDataRecommendType}. Setting an invalid value + * can cause {@link GetBigDataRecommendCsReq#getRecommendType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetBigDataRecommendCsReq setRecommendTypeValue(final int value) { + bitField0_ |= 0x00000002; + recommendType = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 2; + * @param value the recommendType to set + * @return this + */ + public GetBigDataRecommendCsReq setRecommendType( + final BigDataRecommendTypeOuterClass.BigDataRecommendType value) { + bitField0_ |= 0x00000002; + recommendType = value.getNumber(); + return this; + } + + @Override + public GetBigDataRecommendCsReq copyFrom(final GetBigDataRecommendCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + trailblazerPathId = other.trailblazerPathId; + recommendType = other.recommendType; + } + return this; + } + + @Override + public GetBigDataRecommendCsReq mergeFrom(final GetBigDataRecommendCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTrailblazerPathId()) { + setTrailblazerPathId(other.trailblazerPathId); + } + if (other.hasRecommendType()) { + setRecommendTypeValue(other.recommendType); + } + return this; + } + + @Override + public GetBigDataRecommendCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + trailblazerPathId = 0; + recommendType = 0; + return this; + } + + @Override + public GetBigDataRecommendCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetBigDataRecommendCsReq)) { + return false; + } + GetBigDataRecommendCsReq other = (GetBigDataRecommendCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasTrailblazerPathId() || trailblazerPathId == other.trailblazerPathId) + && (!hasRecommendType() || recommendType == other.recommendType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(trailblazerPathId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(recommendType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(trailblazerPathId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(recommendType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetBigDataRecommendCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // trailblazerPathId + trailblazerPathId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // recommendType + final int value = input.readInt32(); + if (BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(value) != null) { + recommendType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.trailblazerPathId, trailblazerPathId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.recommendType, recommendType, BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + } + output.endObject(); + } + + @Override + public GetBigDataRecommendCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1655344950: + case 1916652460: { + if (input.isAtField(FieldNames.trailblazerPathId)) { + if (!input.trySkipNullValue()) { + trailblazerPathId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1141942762: + case -1030468387: { + if (input.isAtField(FieldNames.recommendType)) { + if (!input.trySkipNullValue()) { + final BigDataRecommendTypeOuterClass.BigDataRecommendType value = input.readEnum(BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + if (value != null) { + recommendType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetBigDataRecommendCsReq clone() { + return new GetBigDataRecommendCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetBigDataRecommendCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetBigDataRecommendCsReq(), data).checkInitialized(); + } + + public static GetBigDataRecommendCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBigDataRecommendCsReq(), input).checkInitialized(); + } + + public static GetBigDataRecommendCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBigDataRecommendCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetBigDataRecommendCsReq messages + */ + public static MessageFactory getFactory() { + return GetBigDataRecommendCsReqFactory.INSTANCE; + } + + private enum GetBigDataRecommendCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetBigDataRecommendCsReq create() { + return GetBigDataRecommendCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName trailblazerPathId = FieldName.forField("trailblazerPathId", "trailblazer_path_id"); + + static final FieldName recommendType = FieldName.forField("recommendType", "recommend_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetBigDataRecommendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetBigDataRecommendScRspOuterClass.java new file mode 100644 index 0000000..a5f5704 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetBigDataRecommendScRspOuterClass.java @@ -0,0 +1,536 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetBigDataRecommendScRspOuterClass { + /** + * Protobuf type {@code GetBigDataRecommendScRsp} + */ + public static final class GetBigDataRecommendScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 trailblazer_path_id = 4; + */ + private int trailblazerPathId; + + /** + * optional uint32 retcode = 7; + */ + private int retcode; + + /** + * optional .BigDataRecommendType recommend_type = 15; + */ + private int recommendType; + + /** + * optional bool do_enable = 6; + */ + private boolean doEnable; + + private GetBigDataRecommendScRsp() { + } + + /** + * @return a new empty instance of {@code GetBigDataRecommendScRsp} + */ + public static GetBigDataRecommendScRsp newInstance() { + return new GetBigDataRecommendScRsp(); + } + + /** + * optional uint32 trailblazer_path_id = 4; + * @return whether the trailblazerPathId field is set + */ + public boolean hasTrailblazerPathId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 trailblazer_path_id = 4; + * @return this + */ + public GetBigDataRecommendScRsp clearTrailblazerPathId() { + bitField0_ &= ~0x00000001; + trailblazerPathId = 0; + return this; + } + + /** + * optional uint32 trailblazer_path_id = 4; + * @return the trailblazerPathId + */ + public int getTrailblazerPathId() { + return trailblazerPathId; + } + + /** + * optional uint32 trailblazer_path_id = 4; + * @param value the trailblazerPathId to set + * @return this + */ + public GetBigDataRecommendScRsp setTrailblazerPathId(final int value) { + bitField0_ |= 0x00000001; + trailblazerPathId = value; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 7; + * @return this + */ + public GetBigDataRecommendScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 7; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 7; + * @param value the retcode to set + * @return this + */ + public GetBigDataRecommendScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 15; + * @return whether the recommendType field is set + */ + public boolean hasRecommendType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .BigDataRecommendType recommend_type = 15; + * @return this + */ + public GetBigDataRecommendScRsp clearRecommendType() { + bitField0_ &= ~0x00000004; + recommendType = 0; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 15; + * @return the recommendType + */ + public BigDataRecommendTypeOuterClass.BigDataRecommendType getRecommendType() { + return BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(recommendType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetBigDataRecommendScRsp#getRecommendType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getRecommendTypeValue() { + return recommendType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link BigDataRecommendTypeOuterClass.BigDataRecommendType}. Setting an invalid value + * can cause {@link GetBigDataRecommendScRsp#getRecommendType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetBigDataRecommendScRsp setRecommendTypeValue(final int value) { + bitField0_ |= 0x00000004; + recommendType = value; + return this; + } + + /** + * optional .BigDataRecommendType recommend_type = 15; + * @param value the recommendType to set + * @return this + */ + public GetBigDataRecommendScRsp setRecommendType( + final BigDataRecommendTypeOuterClass.BigDataRecommendType value) { + bitField0_ |= 0x00000004; + recommendType = value.getNumber(); + return this; + } + + /** + * optional bool do_enable = 6; + * @return whether the doEnable field is set + */ + public boolean hasDoEnable() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool do_enable = 6; + * @return this + */ + public GetBigDataRecommendScRsp clearDoEnable() { + bitField0_ &= ~0x00000008; + doEnable = false; + return this; + } + + /** + * optional bool do_enable = 6; + * @return the doEnable + */ + public boolean getDoEnable() { + return doEnable; + } + + /** + * optional bool do_enable = 6; + * @param value the doEnable to set + * @return this + */ + public GetBigDataRecommendScRsp setDoEnable(final boolean value) { + bitField0_ |= 0x00000008; + doEnable = value; + return this; + } + + @Override + public GetBigDataRecommendScRsp copyFrom(final GetBigDataRecommendScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + trailblazerPathId = other.trailblazerPathId; + retcode = other.retcode; + recommendType = other.recommendType; + doEnable = other.doEnable; + } + return this; + } + + @Override + public GetBigDataRecommendScRsp mergeFrom(final GetBigDataRecommendScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTrailblazerPathId()) { + setTrailblazerPathId(other.trailblazerPathId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRecommendType()) { + setRecommendTypeValue(other.recommendType); + } + if (other.hasDoEnable()) { + setDoEnable(other.doEnable); + } + return this; + } + + @Override + public GetBigDataRecommendScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + trailblazerPathId = 0; + retcode = 0; + recommendType = 0; + doEnable = false; + return this; + } + + @Override + public GetBigDataRecommendScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetBigDataRecommendScRsp)) { + return false; + } + GetBigDataRecommendScRsp other = (GetBigDataRecommendScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasTrailblazerPathId() || trailblazerPathId == other.trailblazerPathId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasRecommendType() || recommendType == other.recommendType) + && (!hasDoEnable() || doEnable == other.doEnable); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(trailblazerPathId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeEnumNoTag(recommendType); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(doEnable); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(trailblazerPathId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(recommendType); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetBigDataRecommendScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // trailblazerPathId + trailblazerPathId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // recommendType + final int value = input.readInt32(); + if (BigDataRecommendTypeOuterClass.BigDataRecommendType.forNumber(value) != null) { + recommendType = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // doEnable + doEnable = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.trailblazerPathId, trailblazerPathId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.recommendType, recommendType, BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.doEnable, doEnable); + } + output.endObject(); + } + + @Override + public GetBigDataRecommendScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1655344950: + case 1916652460: { + if (input.isAtField(FieldNames.trailblazerPathId)) { + if (!input.trySkipNullValue()) { + trailblazerPathId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1141942762: + case -1030468387: { + if (input.isAtField(FieldNames.recommendType)) { + if (!input.trySkipNullValue()) { + final BigDataRecommendTypeOuterClass.BigDataRecommendType value = input.readEnum(BigDataRecommendTypeOuterClass.BigDataRecommendType.converter()); + if (value != null) { + recommendType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -3978770: + case 1231221687: { + if (input.isAtField(FieldNames.doEnable)) { + if (!input.trySkipNullValue()) { + doEnable = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetBigDataRecommendScRsp clone() { + return new GetBigDataRecommendScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetBigDataRecommendScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetBigDataRecommendScRsp(), data).checkInitialized(); + } + + public static GetBigDataRecommendScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBigDataRecommendScRsp(), input).checkInitialized(); + } + + public static GetBigDataRecommendScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetBigDataRecommendScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetBigDataRecommendScRsp messages + */ + public static MessageFactory getFactory() { + return GetBigDataRecommendScRspFactory.INSTANCE; + } + + private enum GetBigDataRecommendScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetBigDataRecommendScRsp create() { + return GetBigDataRecommendScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName trailblazerPathId = FieldName.forField("trailblazerPathId", "trailblazer_path_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName recommendType = FieldName.forField("recommendType", "recommend_type"); + + static final FieldName doEnable = FieldName.forField("doEnable", "do_enable"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsCsReqOuterClass.java index 30adee5..2b166c2 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeGroupOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsCsReqOuterClass.java @@ -11,90 +11,48 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class MazeGroupOuterClass { +public final class GetChallengeGroupStatisticsCsReqOuterClass { /** - * Protobuf type {@code MazeGroup} + * Protobuf type {@code GetChallengeGroupStatisticsCsReq} */ - public static final class MazeGroup extends ProtoMessage implements Cloneable { + public static final class GetChallengeGroupStatisticsCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional int64 modify_time = 9; - */ - private long modifyTime; - - /** - * optional uint32 group_id = 13; + * optional uint32 group_id = 12; */ private int groupId; - private MazeGroup() { + private GetChallengeGroupStatisticsCsReq() { } /** - * @return a new empty instance of {@code MazeGroup} + * @return a new empty instance of {@code GetChallengeGroupStatisticsCsReq} */ - public static MazeGroup newInstance() { - return new MazeGroup(); + public static GetChallengeGroupStatisticsCsReq newInstance() { + return new GetChallengeGroupStatisticsCsReq(); } /** - * optional int64 modify_time = 9; - * @return whether the modifyTime field is set + * optional uint32 group_id = 12; + * @return whether the groupId field is set */ - public boolean hasModifyTime() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 modify_time = 9; + * optional uint32 group_id = 12; * @return this */ - public MazeGroup clearModifyTime() { + public GetChallengeGroupStatisticsCsReq clearGroupId() { bitField0_ &= ~0x00000001; - modifyTime = 0L; - return this; - } - - /** - * optional int64 modify_time = 9; - * @return the modifyTime - */ - public long getModifyTime() { - return modifyTime; - } - - /** - * optional int64 modify_time = 9; - * @param value the modifyTime to set - * @return this - */ - public MazeGroup setModifyTime(final long value) { - bitField0_ |= 0x00000001; - modifyTime = value; - return this; - } - - /** - * optional uint32 group_id = 13; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 group_id = 13; - * @return this - */ - public MazeGroup clearGroupId() { - bitField0_ &= ~0x00000002; groupId = 0; return this; } /** - * optional uint32 group_id = 13; + * optional uint32 group_id = 12; * @return the groupId */ public int getGroupId() { @@ -102,36 +60,33 @@ public final class MazeGroupOuterClass { } /** - * optional uint32 group_id = 13; + * optional uint32 group_id = 12; * @param value the groupId to set * @return this */ - public MazeGroup setGroupId(final int value) { - bitField0_ |= 0x00000002; + public GetChallengeGroupStatisticsCsReq setGroupId(final int value) { + bitField0_ |= 0x00000001; groupId = value; return this; } @Override - public MazeGroup copyFrom(final MazeGroup other) { + public GetChallengeGroupStatisticsCsReq copyFrom(final GetChallengeGroupStatisticsCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - modifyTime = other.modifyTime; groupId = other.groupId; } return this; } @Override - public MazeGroup mergeFrom(final MazeGroup other) { + public GetChallengeGroupStatisticsCsReq mergeFrom( + final GetChallengeGroupStatisticsCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasModifyTime()) { - setModifyTime(other.modifyTime); - } if (other.hasGroupId()) { setGroupId(other.groupId); } @@ -139,19 +94,18 @@ public final class MazeGroupOuterClass { } @Override - public MazeGroup clear() { + public GetChallengeGroupStatisticsCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - modifyTime = 0L; groupId = 0; return this; } @Override - public MazeGroup clearQuick() { + public GetChallengeGroupStatisticsCsReq clearQuick() { if (isEmpty()) { return this; } @@ -165,23 +119,18 @@ public final class MazeGroupOuterClass { if (o == this) { return true; } - if (!(o instanceof MazeGroup)) { + if (!(o instanceof GetChallengeGroupStatisticsCsReq)) { return false; } - MazeGroup other = (MazeGroup) o; + GetChallengeGroupStatisticsCsReq other = (GetChallengeGroupStatisticsCsReq) o; return bitField0_ == other.bitField0_ - && (!hasModifyTime() || modifyTime == other.modifyTime) && (!hasGroupId() || groupId == other.groupId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeInt64NoTag(modifyTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(groupId); } } @@ -190,9 +139,6 @@ public final class MazeGroupOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(modifyTime); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } return size; @@ -200,24 +146,15 @@ public final class MazeGroupOuterClass { @Override @SuppressWarnings("fallthrough") - public MazeGroup mergeFrom(final ProtoSource input) throws IOException { + public GetChallengeGroupStatisticsCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // modifyTime - modifyTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 96: { // groupId groupId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { break; @@ -241,39 +178,24 @@ public final class MazeGroupOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.modifyTime, modifyTime); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.groupId, groupId); } output.endObject(); } @Override - public MazeGroup mergeFrom(final JsonSource input) throws IOException { + public GetChallengeGroupStatisticsCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1211388583: - case -1091176654: { - if (input.isAtField(FieldNames.modifyTime)) { - if (!input.trySkipNullValue()) { - modifyTime = input.readInt64(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 293428218: case 506361563: { if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { groupId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -291,8 +213,8 @@ public final class MazeGroupOuterClass { } @Override - public MazeGroup clone() { - return new MazeGroup().copyFrom(this); + public GetChallengeGroupStatisticsCsReq clone() { + return new GetChallengeGroupStatisticsCsReq().copyFrom(this); } @Override @@ -300,31 +222,34 @@ public final class MazeGroupOuterClass { return ((bitField0_) == 0); } - public static MazeGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MazeGroup(), data).checkInitialized(); + public static GetChallengeGroupStatisticsCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChallengeGroupStatisticsCsReq(), data).checkInitialized(); } - public static MazeGroup parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); + public static GetChallengeGroupStatisticsCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChallengeGroupStatisticsCsReq(), input).checkInitialized(); } - public static MazeGroup parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized(); + public static GetChallengeGroupStatisticsCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChallengeGroupStatisticsCsReq(), input).checkInitialized(); } /** - * @return factory for creating MazeGroup messages + * @return factory for creating GetChallengeGroupStatisticsCsReq messages */ - public static MessageFactory getFactory() { - return MazeGroupFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetChallengeGroupStatisticsCsReqFactory.INSTANCE; } - private enum MazeGroupFactory implements MessageFactory { + private enum GetChallengeGroupStatisticsCsReqFactory implements MessageFactory { INSTANCE; @Override - public MazeGroup create() { - return MazeGroup.newInstance(); + public GetChallengeGroupStatisticsCsReq create() { + return GetChallengeGroupStatisticsCsReq.newInstance(); } } @@ -332,8 +257,6 @@ public final class MazeGroupOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName modifyTime = FieldName.forField("modifyTime", "modify_time"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsScRspOuterClass.java new file mode 100644 index 0000000..340dd0b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChallengeGroupStatisticsScRspOuterClass.java @@ -0,0 +1,486 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetChallengeGroupStatisticsScRspOuterClass { + /** + * Protobuf type {@code GetChallengeGroupStatisticsScRsp} + */ + public static final class GetChallengeGroupStatisticsScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional uint32 group_id = 14; + */ + private int groupId; + + /** + *
+     *  BattleRecord2 record2 = 10;
+     *  BattleRecord3 record3 = 7; // type 3, either the new rogue or the new challenge
+     * 
+ * + * optional .BattleRecord1 record1 = 13; + */ + private final BattleRecord1OuterClass.BattleRecord1 record1 = BattleRecord1OuterClass.BattleRecord1.newInstance(); + + private GetChallengeGroupStatisticsScRsp() { + } + + /** + * @return a new empty instance of {@code GetChallengeGroupStatisticsScRsp} + */ + public static GetChallengeGroupStatisticsScRsp newInstance() { + return new GetChallengeGroupStatisticsScRsp(); + } + + public boolean hasStatistics() { + return (((bitField0_ & 0x00000001)) != 0); + } + + public GetChallengeGroupStatisticsScRsp clearStatistics() { + if (hasStatistics()) { + clearRecord1(); + } + return this; + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public GetChallengeGroupStatisticsScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public GetChallengeGroupStatisticsScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 group_id = 14; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 14; + * @return this + */ + public GetChallengeGroupStatisticsScRsp clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 14; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 14; + * @param value the groupId to set + * @return this + */ + public GetChallengeGroupStatisticsScRsp setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + /** + *
+     *  BattleRecord2 record2 = 10;
+     *  BattleRecord3 record3 = 7; // type 3, either the new rogue or the new challenge
+     * 
+ * + * optional .BattleRecord1 record1 = 13; + * @return whether the record1 field is set + */ + public boolean hasRecord1() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  BattleRecord2 record2 = 10;
+     *  BattleRecord3 record3 = 7; // type 3, either the new rogue or the new challenge
+     * 
+ * + * optional .BattleRecord1 record1 = 13; + * @return this + */ + public GetChallengeGroupStatisticsScRsp clearRecord1() { + bitField0_ &= ~0x00000001; + record1.clear(); + return this; + } + + /** + *
+     *  BattleRecord2 record2 = 10;
+     *  BattleRecord3 record3 = 7; // type 3, either the new rogue or the new challenge
+     * 
+ * + * optional .BattleRecord1 record1 = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRecord1()} if you want to modify it. + * + * @return internal storage object for reading + */ + public BattleRecord1OuterClass.BattleRecord1 getRecord1() { + return record1; + } + + /** + *
+     *  BattleRecord2 record2 = 10;
+     *  BattleRecord3 record3 = 7; // type 3, either the new rogue or the new challenge
+     * 
+ * + * optional .BattleRecord1 record1 = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public BattleRecord1OuterClass.BattleRecord1 getMutableRecord1() { + bitField0_ |= 0x00000001; + return record1; + } + + /** + *
+     *  BattleRecord2 record2 = 10;
+     *  BattleRecord3 record3 = 7; // type 3, either the new rogue or the new challenge
+     * 
+ * + * optional .BattleRecord1 record1 = 13; + * @param value the record1 to set + * @return this + */ + public GetChallengeGroupStatisticsScRsp setRecord1( + final BattleRecord1OuterClass.BattleRecord1 value) { + bitField0_ |= 0x00000001; + record1.copyFrom(value); + return this; + } + + @Override + public GetChallengeGroupStatisticsScRsp copyFrom(final GetChallengeGroupStatisticsScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + groupId = other.groupId; + record1.copyFrom(other.record1); + } + return this; + } + + @Override + public GetChallengeGroupStatisticsScRsp mergeFrom( + final GetChallengeGroupStatisticsScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasRecord1()) { + getMutableRecord1().mergeFrom(other.record1); + } + return this; + } + + @Override + public GetChallengeGroupStatisticsScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + groupId = 0; + record1.clear(); + return this; + } + + @Override + public GetChallengeGroupStatisticsScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + record1.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChallengeGroupStatisticsScRsp)) { + return false; + } + GetChallengeGroupStatisticsScRsp other = (GetChallengeGroupStatisticsScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasGroupId() || groupId == other.groupId) + && (!hasRecord1() || record1.equals(other.record1)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(record1); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(record1); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChallengeGroupStatisticsScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // record1 + input.readMessage(record1); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.record1, record1); + } + output.endObject(); + } + + @Override + public GetChallengeGroupStatisticsScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1082596864: { + if (input.isAtField(FieldNames.record1)) { + if (!input.trySkipNullValue()) { + input.readMessage(record1); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChallengeGroupStatisticsScRsp clone() { + return new GetChallengeGroupStatisticsScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChallengeGroupStatisticsScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChallengeGroupStatisticsScRsp(), data).checkInitialized(); + } + + public static GetChallengeGroupStatisticsScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChallengeGroupStatisticsScRsp(), input).checkInitialized(); + } + + public static GetChallengeGroupStatisticsScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetChallengeGroupStatisticsScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChallengeGroupStatisticsScRsp messages + */ + public static MessageFactory getFactory() { + return GetChallengeGroupStatisticsScRspFactory.INSTANCE; + } + + private enum GetChallengeGroupStatisticsScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChallengeGroupStatisticsScRsp create() { + return GetChallengeGroupStatisticsScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName record1 = FieldName.forField("record1"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChallengePeakDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChallengePeakDataScRspOuterClass.java new file mode 100644 index 0000000..78ca5ef --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetChallengePeakDataScRspOuterClass.java @@ -0,0 +1,459 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class GetChallengePeakDataScRspOuterClass { + /** + * Protobuf type {@code GetChallengePeakDataScRsp} + */ + public static final class GetChallengePeakDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 cur_challenge_peak_group_id = 4; + */ + private int curChallengePeakGroupId; + + /** + * optional uint32 retcode = 12; + */ + private int retcode; + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + */ + private final RepeatedMessage challengePeakList = RepeatedMessage.newEmptyInstance(ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo.getFactory()); + + private GetChallengePeakDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetChallengePeakDataScRsp} + */ + public static GetChallengePeakDataScRsp newInstance() { + return new GetChallengePeakDataScRsp(); + } + + /** + * optional uint32 cur_challenge_peak_group_id = 4; + * @return whether the curChallengePeakGroupId field is set + */ + public boolean hasCurChallengePeakGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 cur_challenge_peak_group_id = 4; + * @return this + */ + public GetChallengePeakDataScRsp clearCurChallengePeakGroupId() { + bitField0_ &= ~0x00000001; + curChallengePeakGroupId = 0; + return this; + } + + /** + * optional uint32 cur_challenge_peak_group_id = 4; + * @return the curChallengePeakGroupId + */ + public int getCurChallengePeakGroupId() { + return curChallengePeakGroupId; + } + + /** + * optional uint32 cur_challenge_peak_group_id = 4; + * @param value the curChallengePeakGroupId to set + * @return this + */ + public GetChallengePeakDataScRsp setCurChallengePeakGroupId(final int value) { + bitField0_ |= 0x00000001; + curChallengePeakGroupId = value; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public GetChallengePeakDataScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public GetChallengePeakDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + * @return whether the challengePeakList field is set + */ + public boolean hasChallengePeakList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + * @return this + */ + public GetChallengePeakDataScRsp clearChallengePeakList() { + bitField0_ &= ~0x00000004; + challengePeakList.clear(); + return this; + } + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengePeakList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChallengePeakList( + ) { + return challengePeakList; + } + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableChallengePeakList( + ) { + bitField0_ |= 0x00000004; + return challengePeakList; + } + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + * @param value the challengePeakList to add + * @return this + */ + public GetChallengePeakDataScRsp addChallengePeakList( + final ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo value) { + bitField0_ |= 0x00000004; + challengePeakList.add(value); + return this; + } + + /** + * repeated .ChallengePeakGroupInfo challenge_peak_list = 11; + * @param values the challengePeakList to add + * @return this + */ + public GetChallengePeakDataScRsp addAllChallengePeakList( + final ChallengePeakGroupInfoOuterClass.ChallengePeakGroupInfo... values) { + bitField0_ |= 0x00000004; + challengePeakList.addAll(values); + return this; + } + + @Override + public GetChallengePeakDataScRsp copyFrom(final GetChallengePeakDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + curChallengePeakGroupId = other.curChallengePeakGroupId; + retcode = other.retcode; + challengePeakList.copyFrom(other.challengePeakList); + } + return this; + } + + @Override + public GetChallengePeakDataScRsp mergeFrom(final GetChallengePeakDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasCurChallengePeakGroupId()) { + setCurChallengePeakGroupId(other.curChallengePeakGroupId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasChallengePeakList()) { + getMutableChallengePeakList().addAll(other.challengePeakList); + } + return this; + } + + @Override + public GetChallengePeakDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + curChallengePeakGroupId = 0; + retcode = 0; + challengePeakList.clear(); + return this; + } + + @Override + public GetChallengePeakDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetChallengePeakDataScRsp)) { + return false; + } + GetChallengePeakDataScRsp other = (GetChallengePeakDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasCurChallengePeakGroupId() || curChallengePeakGroupId == other.curChallengePeakGroupId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasChallengePeakList() || challengePeakList.equals(other.challengePeakList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(curChallengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < challengePeakList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(challengePeakList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curChallengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * challengePeakList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(challengePeakList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetChallengePeakDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // curChallengePeakGroupId + curChallengePeakGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // challengePeakList + tag = input.readRepeatedMessage(challengePeakList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.curChallengePeakGroupId, curChallengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.challengePeakList, challengePeakList); + } + output.endObject(); + } + + @Override + public GetChallengePeakDataScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 408244248: + case 1188228704: { + if (input.isAtField(FieldNames.curChallengePeakGroupId)) { + if (!input.trySkipNullValue()) { + curChallengePeakGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1768498272: + case -1100397790: { + if (input.isAtField(FieldNames.challengePeakList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(challengePeakList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetChallengePeakDataScRsp clone() { + return new GetChallengePeakDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetChallengePeakDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetChallengePeakDataScRsp(), data).checkInitialized(); + } + + public static GetChallengePeakDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetChallengePeakDataScRsp(), input).checkInitialized(); + } + + public static GetChallengePeakDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetChallengePeakDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetChallengePeakDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetChallengePeakDataScRspFactory.INSTANCE; + } + + private enum GetChallengePeakDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetChallengePeakDataScRsp create() { + return GetChallengePeakDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName curChallengePeakGroupId = FieldName.forField("curChallengePeakGroupId", "cur_challenge_peak_group_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName challengePeakList = FieldName.forField("challengePeakList", "challenge_peak_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java index 5449609..a33319d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetChallengeScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetChallengeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; */ private int retcode; /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; */ private final RepeatedMessage challengeList = RepeatedMessage.newEmptyInstance(ChallengeOuterClass.Challenge.getFactory()); /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; */ private final RepeatedMessage challengeRewardList = RepeatedMessage.newEmptyInstance(ChallengeRewardOuterClass.ChallengeReward.getFactory()); @@ -45,7 +45,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @return this */ public GetChallengeScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class GetChallengeScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; * @return whether the challengeList field is set */ public boolean hasChallengeList() { @@ -90,7 +90,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; * @return this */ public GetChallengeScRsp clearChallengeList() { @@ -100,7 +100,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -114,7 +114,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -128,7 +128,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; * @param value the challengeList to add * @return this */ @@ -139,7 +139,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .Challenge challenge_list = 1; + * repeated .Challenge challenge_list = 4; * @param values the challengeList to add * @return this */ @@ -150,7 +150,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; * @return whether the challengeRewardList field is set */ public boolean hasChallengeRewardList() { @@ -158,7 +158,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; * @return this */ public GetChallengeScRsp clearChallengeRewardList() { @@ -168,7 +168,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -182,7 +182,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -197,7 +197,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; * @param value the challengeRewardList to add * @return this */ @@ -209,7 +209,7 @@ public final class GetChallengeScRspOuterClass { } /** - * repeated .ChallengeReward challenge_reward_list = 14; + * repeated .ChallengeReward challenge_reward_list = 8; * @param values the challengeRewardList to add * @return this */ @@ -293,18 +293,18 @@ public final class GetChallengeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < challengeList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 34); output.writeMessageNoTag(challengeList.get(i)); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < challengeRewardList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 66); output.writeMessageNoTag(challengeRewardList.get(i)); } } @@ -332,24 +332,24 @@ public final class GetChallengeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 34) { break; } } - case 10: { + case 34: { // challengeList tag = input.readRepeatedMessage(challengeList, tag); bitField0_ |= 0x00000002; - if (tag != 114) { + if (tag != 66) { break; } } - case 114: { + case 66: { // challengeRewardList tag = input.readRepeatedMessage(challengeRewardList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoScRspOuterClass.java deleted file mode 100644 index 2344128..0000000 --- a/src/generated/main/emu/lunarcore/proto/GetChessRogueNousStoryInfoScRspOuterClass.java +++ /dev/null @@ -1,498 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class GetChessRogueNousStoryInfoScRspOuterClass { - /** - * Protobuf type {@code GetChessRogueNousStoryInfoScRsp} - */ - public static final class GetChessRogueNousStoryInfoScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 12; - */ - private int retcode; - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - */ - private final RepeatedMessage subStoryInfo = RepeatedMessage.newEmptyInstance(ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo.getFactory()); - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - */ - private final RepeatedMessage mainStoryInfo = RepeatedMessage.newEmptyInstance(ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo.getFactory()); - - private GetChessRogueNousStoryInfoScRsp() { - } - - /** - * @return a new empty instance of {@code GetChessRogueNousStoryInfoScRsp} - */ - public static GetChessRogueNousStoryInfoScRsp newInstance() { - return new GetChessRogueNousStoryInfoScRsp(); - } - - /** - * optional uint32 retcode = 12; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 12; - * @return this - */ - public GetChessRogueNousStoryInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 12; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 12; - * @param value the retcode to set - * @return this - */ - public GetChessRogueNousStoryInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - * @return whether the subStoryInfo field is set - */ - public boolean hasSubStoryInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - * @return this - */ - public GetChessRogueNousStoryInfoScRsp clearSubStoryInfo() { - bitField0_ &= ~0x00000002; - subStoryInfo.clear(); - return this; - } - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableSubStoryInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getSubStoryInfo( - ) { - return subStoryInfo; - } - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableSubStoryInfo( - ) { - bitField0_ |= 0x00000002; - return subStoryInfo; - } - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - * @param value the subStoryInfo to add - * @return this - */ - public GetChessRogueNousStoryInfoScRsp addSubStoryInfo( - final ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo value) { - bitField0_ |= 0x00000002; - subStoryInfo.add(value); - return this; - } - - /** - * repeated .ChessRogueNousSubStoryInfo sub_story_info = 6; - * @param values the subStoryInfo to add - * @return this - */ - public GetChessRogueNousStoryInfoScRsp addAllSubStoryInfo( - final ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo... values) { - bitField0_ |= 0x00000002; - subStoryInfo.addAll(values); - return this; - } - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - * @return whether the mainStoryInfo field is set - */ - public boolean hasMainStoryInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - * @return this - */ - public GetChessRogueNousStoryInfoScRsp clearMainStoryInfo() { - bitField0_ &= ~0x00000004; - mainStoryInfo.clear(); - return this; - } - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMainStoryInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMainStoryInfo( - ) { - return mainStoryInfo; - } - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMainStoryInfo( - ) { - bitField0_ |= 0x00000004; - return mainStoryInfo; - } - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - * @param value the mainStoryInfo to add - * @return this - */ - public GetChessRogueNousStoryInfoScRsp addMainStoryInfo( - final ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo value) { - bitField0_ |= 0x00000004; - mainStoryInfo.add(value); - return this; - } - - /** - * repeated .ChessRogueNousMainStoryInfo main_story_info = 10; - * @param values the mainStoryInfo to add - * @return this - */ - public GetChessRogueNousStoryInfoScRsp addAllMainStoryInfo( - final ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo... values) { - bitField0_ |= 0x00000004; - mainStoryInfo.addAll(values); - return this; - } - - @Override - public GetChessRogueNousStoryInfoScRsp copyFrom(final GetChessRogueNousStoryInfoScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - subStoryInfo.copyFrom(other.subStoryInfo); - mainStoryInfo.copyFrom(other.mainStoryInfo); - } - return this; - } - - @Override - public GetChessRogueNousStoryInfoScRsp mergeFrom(final GetChessRogueNousStoryInfoScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasSubStoryInfo()) { - getMutableSubStoryInfo().addAll(other.subStoryInfo); - } - if (other.hasMainStoryInfo()) { - getMutableMainStoryInfo().addAll(other.mainStoryInfo); - } - return this; - } - - @Override - public GetChessRogueNousStoryInfoScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - subStoryInfo.clear(); - mainStoryInfo.clear(); - return this; - } - - @Override - public GetChessRogueNousStoryInfoScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - subStoryInfo.clearQuick(); - mainStoryInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof GetChessRogueNousStoryInfoScRsp)) { - return false; - } - GetChessRogueNousStoryInfoScRsp other = (GetChessRogueNousStoryInfoScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasSubStoryInfo() || subStoryInfo.equals(other.subStoryInfo)) - && (!hasMainStoryInfo() || mainStoryInfo.equals(other.mainStoryInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < subStoryInfo.length(); i++) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(subStoryInfo.get(i)); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < mainStoryInfo.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(mainStoryInfo.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * subStoryInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subStoryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * mainStoryInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainStoryInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public GetChessRogueNousStoryInfoScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 96: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // subStoryInfo - tag = input.readRepeatedMessage(subStoryInfo, tag); - bitField0_ |= 0x00000002; - if (tag != 82) { - break; - } - } - case 82: { - // mainStoryInfo - tag = input.readRepeatedMessage(mainStoryInfo, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.subStoryInfo, subStoryInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.mainStoryInfo, mainStoryInfo); - } - output.endObject(); - } - - @Override - public GetChessRogueNousStoryInfoScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -489637661: - case 74622231: { - if (input.isAtField(FieldNames.subStoryInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(subStoryInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1591069066: - case -1820973058: { - if (input.isAtField(FieldNames.mainStoryInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mainStoryInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public GetChessRogueNousStoryInfoScRsp clone() { - return new GetChessRogueNousStoryInfoScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static GetChessRogueNousStoryInfoScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoScRsp(), data).checkInitialized(); - } - - public static GetChessRogueNousStoryInfoScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoScRsp(), input).checkInitialized(); - } - - public static GetChessRogueNousStoryInfoScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetChessRogueNousStoryInfoScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating GetChessRogueNousStoryInfoScRsp messages - */ - public static MessageFactory getFactory() { - return GetChessRogueNousStoryInfoScRspFactory.INSTANCE; - } - - private enum GetChessRogueNousStoryInfoScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public GetChessRogueNousStoryInfoScRsp create() { - return GetChessRogueNousStoryInfoScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName subStoryInfo = FieldName.forField("subStoryInfo", "sub_story_info"); - - static final FieldName mainStoryInfo = FieldName.forField("mainStoryInfo", "main_story_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCrossInfoScRspOuterClass.java similarity index 55% rename from src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetCrossInfoScRspOuterClass.java index adddd29..b92597c 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookBuffOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCrossInfoScRspOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueHandbookBuffOuterClass { +public final class GetCrossInfoScRspOuterClass { /** - * Protobuf type {@code RogueHandbookBuff} + * Protobuf type {@code GetCrossInfoScRsp} */ - public static final class RogueHandbookBuff extends ProtoMessage implements Cloneable { + public static final class GetCrossInfoScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 buff_id = 4; + * optional uint32 retcode = 8; */ - private int buffId; + private int retcode; - private RogueHandbookBuff() { + private GetCrossInfoScRsp() { } /** - * @return a new empty instance of {@code RogueHandbookBuff} + * @return a new empty instance of {@code GetCrossInfoScRsp} */ - public static RogueHandbookBuff newInstance() { - return new RogueHandbookBuff(); + public static GetCrossInfoScRsp newInstance() { + return new GetCrossInfoScRsp(); } /** - * optional uint32 buff_id = 4; - * @return whether the buffId field is set + * optional uint32 retcode = 8; + * @return whether the retcode field is set */ - public boolean hasBuffId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 buff_id = 4; + * optional uint32 retcode = 8; * @return this */ - public RogueHandbookBuff clearBuffId() { + public GetCrossInfoScRsp clearRetcode() { bitField0_ &= ~0x00000001; - buffId = 0; + retcode = 0; return this; } /** - * optional uint32 buff_id = 4; - * @return the buffId + * optional uint32 retcode = 8; + * @return the retcode */ - public int getBuffId() { - return buffId; + public int getRetcode() { + return retcode; } /** - * optional uint32 buff_id = 4; - * @param value the buffId to set + * optional uint32 retcode = 8; + * @param value the retcode to set * @return this */ - public RogueHandbookBuff setBuffId(final int value) { + public GetCrossInfoScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; - buffId = value; + retcode = value; return this; } @Override - public RogueHandbookBuff copyFrom(final RogueHandbookBuff other) { + public GetCrossInfoScRsp copyFrom(final GetCrossInfoScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buffId = other.buffId; + retcode = other.retcode; } return this; } @Override - public RogueHandbookBuff mergeFrom(final RogueHandbookBuff other) { + public GetCrossInfoScRsp mergeFrom(final GetCrossInfoScRsp other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBuffId()) { - setBuffId(other.buffId); + if (other.hasRetcode()) { + setRetcode(other.retcode); } return this; } @Override - public RogueHandbookBuff clear() { + public GetCrossInfoScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buffId = 0; + retcode = 0; return this; } @Override - public RogueHandbookBuff clearQuick() { + public GetCrossInfoScRsp clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class RogueHandbookBuffOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueHandbookBuff)) { + if (!(o instanceof GetCrossInfoScRsp)) { return false; } - RogueHandbookBuff other = (RogueHandbookBuff) o; + GetCrossInfoScRsp other = (GetCrossInfoScRsp) o; return bitField0_ == other.bitField0_ - && (!hasBuffId() || buffId == other.buffId); + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(buffId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); } } @@ -138,21 +138,21 @@ public final class RogueHandbookBuffOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueHandbookBuff mergeFrom(final ProtoSource input) throws IOException { + public GetCrossInfoScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // buffId - buffId = input.readUInt32(); + case 64: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,22 @@ public final class RogueHandbookBuffOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @Override - public RogueHandbookBuff mergeFrom(final JsonSource input) throws IOException { + public GetCrossInfoScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +211,8 @@ public final class RogueHandbookBuffOuterClass { } @Override - public RogueHandbookBuff clone() { - return new RogueHandbookBuff().copyFrom(this); + public GetCrossInfoScRsp clone() { + return new GetCrossInfoScRsp().copyFrom(this); } @Override @@ -221,32 +220,32 @@ public final class RogueHandbookBuffOuterClass { return ((bitField0_) == 0); } - public static RogueHandbookBuff parseFrom(final byte[] data) throws + public static GetCrossInfoScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueHandbookBuff(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetCrossInfoScRsp(), data).checkInitialized(); } - public static RogueHandbookBuff parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookBuff(), input).checkInitialized(); + public static GetCrossInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCrossInfoScRsp(), input).checkInitialized(); } - public static RogueHandbookBuff parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookBuff(), input).checkInitialized(); + public static GetCrossInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetCrossInfoScRsp(), input).checkInitialized(); } /** - * @return factory for creating RogueHandbookBuff messages + * @return factory for creating GetCrossInfoScRsp messages */ - public static MessageFactory getFactory() { - return RogueHandbookBuffFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetCrossInfoScRspFactory.INSTANCE; } - private enum RogueHandbookBuffFactory implements MessageFactory { + private enum GetCrossInfoScRspFactory implements MessageFactory { INSTANCE; @Override - public RogueHandbookBuff create() { - return RogueHandbookBuff.newInstance(); + public GetCrossInfoScRsp create() { + return GetCrossInfoScRsp.newInstance(); } } @@ -254,7 +253,7 @@ public final class RogueHandbookBuffOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java index 84142c6..6f050a5 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurChallengeScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetCurChallengeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; */ private int retcode; /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 1; */ private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @return this */ public GetCurChallengeScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 1; * @return whether the challengeInfo field is set */ public boolean hasChallengeInfo() { @@ -84,7 +84,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 1; * @return this */ public GetCurChallengeScRsp clearChallengeInfo() { @@ -94,7 +94,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class GetCurChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 3; + * optional .ChallengeInfo challenge_info = 1; * @param value the challengeInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class GetCurChallengeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 10); output.writeMessageNoTag(challengeInfo); } } @@ -227,16 +227,16 @@ public final class GetCurChallengeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 10) { break; } } - case 26: { + case 10: { // challengeInfo input.readMessage(challengeInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java index e98dc5c..91c7545 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurLineupDataScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetCurLineupDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; */ private int retcode; /** - * optional .LineupInfo lineup = 15; + * optional .LineupInfo lineup = 1; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @return this */ public GetCurLineupDataScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 15; + * optional .LineupInfo lineup = 1; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -84,7 +84,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 15; + * optional .LineupInfo lineup = 1; * @return this */ public GetCurLineupDataScRsp clearLineup() { @@ -94,7 +94,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 15; + * optional .LineupInfo lineup = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 15; + * optional .LineupInfo lineup = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class GetCurLineupDataScRspOuterClass { } /** - * optional .LineupInfo lineup = 15; + * optional .LineupInfo lineup = 1; * @param value the lineup to set * @return this */ @@ -198,11 +198,11 @@ public final class GetCurLineupDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 10); output.writeMessageNoTag(lineup); } } @@ -226,16 +226,16 @@ public final class GetCurLineupDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 10) { break; } } - case 122: { + case 10: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java index cb34103..fa958e1 100644 --- a/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetCurSceneInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetCurSceneInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 3; */ private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return this */ public GetCurSceneInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 3; * @return whether the scene field is set */ public boolean hasScene() { @@ -84,7 +84,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 3; * @return this */ public GetCurSceneInfoScRsp clearScene() { @@ -94,7 +94,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class GetCurSceneInfoScRspOuterClass { } /** - * optional .SceneInfo scene = 11; + * optional .SceneInfo scene = 3; * @param value the scene to set * @return this */ @@ -198,11 +198,11 @@ public final class GetCurSceneInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 26); output.writeMessageNoTag(scene); } } @@ -226,16 +226,16 @@ public final class GetCurSceneInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 26) { break; } } - case 90: { + case 26: { // scene input.readMessage(scene); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java index c45c71c..5206947 100644 --- a/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetDailyActiveInfoScRspOuterClass.java @@ -21,22 +21,26 @@ public final class GetDailyActiveInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional uint32 daily_active_point = 9; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; */ private int dailyActivePoint; /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; */ private final RepeatedInt dailyActiveQuestIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; */ private final RepeatedMessage dailyActiveLevelList = RepeatedMessage.newEmptyInstance(DailyActivityInfoOuterClass.DailyActivityInfo.getFactory()); @@ -51,7 +55,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -59,7 +63,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 2; * @return this */ public GetDailyActiveInfoScRsp clearRetcode() { @@ -69,7 +73,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -77,7 +81,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -88,7 +92,11 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @return whether the dailyActivePoint field is set */ public boolean hasDailyActivePoint() { @@ -96,7 +104,11 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @return this */ public GetDailyActiveInfoScRsp clearDailyActivePoint() { @@ -106,7 +118,11 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @return the dailyActivePoint */ public int getDailyActivePoint() { @@ -114,7 +130,11 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * optional uint32 daily_active_point = 9; + *
+     *  DLCIALOCJDC
+     * 
+ * + * optional uint32 daily_active_point = 14; * @param value the dailyActivePoint to set * @return this */ @@ -125,7 +145,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; * @return whether the dailyActiveQuestIdList field is set */ public boolean hasDailyActiveQuestIdList() { @@ -133,7 +153,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; * @return this */ public GetDailyActiveInfoScRsp clearDailyActiveQuestIdList() { @@ -143,7 +163,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -157,7 +177,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -171,7 +191,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; * @param value the dailyActiveQuestIdList to add * @return this */ @@ -182,7 +202,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated uint32 daily_active_quest_id_list = 1; + * repeated uint32 daily_active_quest_id_list = 10; * @param values the dailyActiveQuestIdList to add * @return this */ @@ -193,7 +213,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; * @return whether the dailyActiveLevelList field is set */ public boolean hasDailyActiveLevelList() { @@ -201,7 +221,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; * @return this */ public GetDailyActiveInfoScRsp clearDailyActiveLevelList() { @@ -211,7 +231,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -226,7 +246,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -241,7 +261,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; * @param value the dailyActiveLevelList to add * @return this */ @@ -253,7 +273,7 @@ public final class GetDailyActiveInfoScRspOuterClass { } /** - * repeated .DailyActivityInfo daily_active_level_list = 8; + * repeated .DailyActivityInfo daily_active_level_list = 9; * @param values the dailyActiveLevelList to add * @return this */ @@ -343,22 +363,22 @@ public final class GetDailyActiveInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(dailyActivePoint); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < dailyActiveQuestIdList.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(dailyActiveQuestIdList.array()[i]); } } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < dailyActiveLevelList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 74); output.writeMessageNoTag(dailyActiveLevelList.get(i)); } } @@ -389,34 +409,34 @@ public final class GetDailyActiveInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 112) { break; } } - case 72: { + case 112: { // dailyActivePoint dailyActivePoint = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 10) { + if (tag != 82) { break; } } - case 10: { + case 82: { // dailyActiveQuestIdList [packed=true] input.readPackedUInt32(dailyActiveQuestIdList, tag); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 66) { + if (tag != 74) { break; } } - case 66: { + case 74: { // dailyActiveLevelList tag = input.readRepeatedMessage(dailyActiveLevelList, tag); bitField0_ |= 0x00000008; @@ -434,7 +454,7 @@ public final class GetDailyActiveInfoScRspOuterClass { tag = input.readTag(); break; } - case 8: { + case 80: { // dailyActiveQuestIdList [packed=false] tag = input.readRepeatedUInt32(dailyActiveQuestIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java index 14c6f4c..499b73a 100644 --- a/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetEnteredSceneScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetEnteredSceneScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 7; */ private int retcode; /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; */ private final RepeatedMessage enteredSceneInfo = RepeatedMessage.newEmptyInstance(EnteredSceneInfoOuterClass.EnteredSceneInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 7; * @return this */ public GetEnteredSceneScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; * @return whether the enteredSceneInfo field is set */ public boolean hasEnteredSceneInfo() { @@ -85,7 +85,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; * @return this */ public GetEnteredSceneScRsp clearEnteredSceneInfo() { @@ -95,7 +95,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -124,7 +124,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; * @param value the enteredSceneInfo to add * @return this */ @@ -136,7 +136,7 @@ public final class GetEnteredSceneScRspOuterClass { } /** - * repeated .EnteredSceneInfo entered_scene_info = 9; + * repeated .EnteredSceneInfo entered_scene_info = 5; * @param values the enteredSceneInfo to add * @return this */ @@ -213,12 +213,12 @@ public final class GetEnteredSceneScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < enteredSceneInfo.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 42); output.writeMessageNoTag(enteredSceneInfo.get(i)); } } @@ -243,16 +243,16 @@ public final class GetEnteredSceneScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 42) { break; } } - case 74: { + case 42: { // enteredSceneInfo tag = input.readRepeatedMessage(enteredSceneInfo, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetExpeditionDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetExpeditionDataScRspOuterClass.java new file mode 100644 index 0000000..f9b7576 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetExpeditionDataScRspOuterClass.java @@ -0,0 +1,759 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class GetExpeditionDataScRspOuterClass { + /** + * Protobuf type {@code GetExpeditionDataScRsp} + */ + public static final class GetExpeditionDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 team_count = 7; + */ + private int teamCount; + + /** + * optional uint32 retcode = 9; + */ + private int retcode; + + /** + * repeated uint32 rint2 = 11; + */ + private final RepeatedInt rint2 = RepeatedInt.newEmptyInstance(); + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + */ + private final RepeatedInt unlockedExpeditionIdList = RepeatedInt.newEmptyInstance(); + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + */ + private final RepeatedInt unlockedActivityExpeditionIdList = RepeatedInt.newEmptyInstance(); + + private GetExpeditionDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetExpeditionDataScRsp} + */ + public static GetExpeditionDataScRsp newInstance() { + return new GetExpeditionDataScRsp(); + } + + /** + * optional uint32 team_count = 7; + * @return whether the teamCount field is set + */ + public boolean hasTeamCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 team_count = 7; + * @return this + */ + public GetExpeditionDataScRsp clearTeamCount() { + bitField0_ &= ~0x00000001; + teamCount = 0; + return this; + } + + /** + * optional uint32 team_count = 7; + * @return the teamCount + */ + public int getTeamCount() { + return teamCount; + } + + /** + * optional uint32 team_count = 7; + * @param value the teamCount to set + * @return this + */ + public GetExpeditionDataScRsp setTeamCount(final int value) { + bitField0_ |= 0x00000001; + teamCount = value; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 9; + * @return this + */ + public GetExpeditionDataScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 9; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 9; + * @param value the retcode to set + * @return this + */ + public GetExpeditionDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * repeated uint32 rint2 = 11; + * @return whether the rint2 field is set + */ + public boolean hasRint2() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 rint2 = 11; + * @return this + */ + public GetExpeditionDataScRsp clearRint2() { + bitField0_ &= ~0x00000004; + rint2.clear(); + return this; + } + + /** + * repeated uint32 rint2 = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRint2()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getRint2() { + return rint2; + } + + /** + * repeated uint32 rint2 = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableRint2() { + bitField0_ |= 0x00000004; + return rint2; + } + + /** + * repeated uint32 rint2 = 11; + * @param value the rint2 to add + * @return this + */ + public GetExpeditionDataScRsp addRint2(final int value) { + bitField0_ |= 0x00000004; + rint2.add(value); + return this; + } + + /** + * repeated uint32 rint2 = 11; + * @param values the rint2 to add + * @return this + */ + public GetExpeditionDataScRsp addAllRint2(final int... values) { + bitField0_ |= 0x00000004; + rint2.addAll(values); + return this; + } + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + * @return whether the unlockedExpeditionIdList field is set + */ + public boolean hasUnlockedExpeditionIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + * @return this + */ + public GetExpeditionDataScRsp clearUnlockedExpeditionIdList() { + bitField0_ &= ~0x00000008; + unlockedExpeditionIdList.clear(); + return this; + } + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnlockedExpeditionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnlockedExpeditionIdList() { + return unlockedExpeditionIdList; + } + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnlockedExpeditionIdList() { + bitField0_ |= 0x00000008; + return unlockedExpeditionIdList; + } + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + * @param value the unlockedExpeditionIdList to add + * @return this + */ + public GetExpeditionDataScRsp addUnlockedExpeditionIdList(final int value) { + bitField0_ |= 0x00000008; + unlockedExpeditionIdList.add(value); + return this; + } + + /** + *
+     *  could be 15, TODO: check
+     * 
+ * + * repeated uint32 unlocked_expedition_id_list = 13; + * @param values the unlockedExpeditionIdList to add + * @return this + */ + public GetExpeditionDataScRsp addAllUnlockedExpeditionIdList(final int... values) { + bitField0_ |= 0x00000008; + unlockedExpeditionIdList.addAll(values); + return this; + } + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + * @return whether the unlockedActivityExpeditionIdList field is set + */ + public boolean hasUnlockedActivityExpeditionIdList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + * @return this + */ + public GetExpeditionDataScRsp clearUnlockedActivityExpeditionIdList() { + bitField0_ &= ~0x00000010; + unlockedActivityExpeditionIdList.clear(); + return this; + } + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnlockedActivityExpeditionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnlockedActivityExpeditionIdList() { + return unlockedActivityExpeditionIdList; + } + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnlockedActivityExpeditionIdList() { + bitField0_ |= 0x00000010; + return unlockedActivityExpeditionIdList; + } + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + * @param value the unlockedActivityExpeditionIdList to add + * @return this + */ + public GetExpeditionDataScRsp addUnlockedActivityExpeditionIdList(final int value) { + bitField0_ |= 0x00000010; + unlockedActivityExpeditionIdList.add(value); + return this; + } + + /** + *
+     *  could be 13, TODO: check
+     * 
+ * + * repeated uint32 unlocked_activity_expedition_id_list = 15; + * @param values the unlockedActivityExpeditionIdList to add + * @return this + */ + public GetExpeditionDataScRsp addAllUnlockedActivityExpeditionIdList(final int... values) { + bitField0_ |= 0x00000010; + unlockedActivityExpeditionIdList.addAll(values); + return this; + } + + @Override + public GetExpeditionDataScRsp copyFrom(final GetExpeditionDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + teamCount = other.teamCount; + retcode = other.retcode; + rint2.copyFrom(other.rint2); + unlockedExpeditionIdList.copyFrom(other.unlockedExpeditionIdList); + unlockedActivityExpeditionIdList.copyFrom(other.unlockedActivityExpeditionIdList); + } + return this; + } + + @Override + public GetExpeditionDataScRsp mergeFrom(final GetExpeditionDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTeamCount()) { + setTeamCount(other.teamCount); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasRint2()) { + getMutableRint2().addAll(other.rint2); + } + if (other.hasUnlockedExpeditionIdList()) { + getMutableUnlockedExpeditionIdList().addAll(other.unlockedExpeditionIdList); + } + if (other.hasUnlockedActivityExpeditionIdList()) { + getMutableUnlockedActivityExpeditionIdList().addAll(other.unlockedActivityExpeditionIdList); + } + return this; + } + + @Override + public GetExpeditionDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + teamCount = 0; + retcode = 0; + rint2.clear(); + unlockedExpeditionIdList.clear(); + unlockedActivityExpeditionIdList.clear(); + return this; + } + + @Override + public GetExpeditionDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rint2.clear(); + unlockedExpeditionIdList.clear(); + unlockedActivityExpeditionIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetExpeditionDataScRsp)) { + return false; + } + GetExpeditionDataScRsp other = (GetExpeditionDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasTeamCount() || teamCount == other.teamCount) + && (!hasRetcode() || retcode == other.retcode) + && (!hasRint2() || rint2.equals(other.rint2)) + && (!hasUnlockedExpeditionIdList() || unlockedExpeditionIdList.equals(other.unlockedExpeditionIdList)) + && (!hasUnlockedActivityExpeditionIdList() || unlockedActivityExpeditionIdList.equals(other.unlockedActivityExpeditionIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(teamCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < rint2.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(rint2.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < unlockedExpeditionIdList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(unlockedExpeditionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < unlockedActivityExpeditionIdList.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(unlockedActivityExpeditionIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(teamCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * rint2.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rint2); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * unlockedExpeditionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedExpeditionIdList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * unlockedActivityExpeditionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedActivityExpeditionIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetExpeditionDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // teamCount + teamCount = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // rint2 [packed=true] + input.readPackedUInt32(rint2, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // unlockedExpeditionIdList [packed=true] + input.readPackedUInt32(unlockedExpeditionIdList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // unlockedActivityExpeditionIdList [packed=true] + input.readPackedUInt32(unlockedActivityExpeditionIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 88: { + // rint2 [packed=false] + tag = input.readRepeatedUInt32(rint2, tag); + bitField0_ |= 0x00000004; + break; + } + case 104: { + // unlockedExpeditionIdList [packed=false] + tag = input.readRepeatedUInt32(unlockedExpeditionIdList, tag); + bitField0_ |= 0x00000008; + break; + } + case 120: { + // unlockedActivityExpeditionIdList [packed=false] + tag = input.readRepeatedUInt32(unlockedActivityExpeditionIdList, tag); + bitField0_ |= 0x00000010; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.teamCount, teamCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.rint2, rint2); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.unlockedExpeditionIdList, unlockedExpeditionIdList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.unlockedActivityExpeditionIdList, unlockedActivityExpeditionIdList); + } + output.endObject(); + } + + @Override + public GetExpeditionDataScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -201715534: + case -1167852371: { + if (input.isAtField(FieldNames.teamCount)) { + if (!input.trySkipNullValue()) { + teamCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 108518805: { + if (input.isAtField(FieldNames.rint2)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(rint2); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1867571779: + case 1692835552: { + if (input.isAtField(FieldNames.unlockedExpeditionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unlockedExpeditionIdList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1327389716: + case 442971096: { + if (input.isAtField(FieldNames.unlockedActivityExpeditionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unlockedActivityExpeditionIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetExpeditionDataScRsp clone() { + return new GetExpeditionDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetExpeditionDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetExpeditionDataScRsp(), data).checkInitialized(); + } + + public static GetExpeditionDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetExpeditionDataScRsp(), input).checkInitialized(); + } + + public static GetExpeditionDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetExpeditionDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetExpeditionDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetExpeditionDataScRspFactory.INSTANCE; + } + + private enum GetExpeditionDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetExpeditionDataScRsp create() { + return GetExpeditionDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName teamCount = FieldName.forField("teamCount", "team_count"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName rint2 = FieldName.forField("rint2"); + + static final FieldName unlockedExpeditionIdList = FieldName.forField("unlockedExpeditionIdList", "unlocked_expedition_id_list"); + + static final FieldName unlockedActivityExpeditionIdList = FieldName.forField("unlockedActivityExpeditionIdList", "unlocked_activity_expedition_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFarmStageGachaInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFarmStageGachaInfoScRspOuterClass.java index cac1515..24c2b9c 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFarmStageGachaInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFarmStageGachaInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFarmStageGachaInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; */ private int retcode; /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; */ private final RepeatedMessage farmStageGachaInfoList = RepeatedMessage.newEmptyInstance(FarmStageGachaInfoOuterClass.FarmStageGachaInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @return this */ public GetFarmStageGachaInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; * @return whether the farmStageGachaInfoList field is set */ public boolean hasFarmStageGachaInfoList() { @@ -85,7 +85,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; * @return this */ public GetFarmStageGachaInfoScRsp clearFarmStageGachaInfoList() { @@ -95,7 +95,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -110,7 +110,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -125,7 +125,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; * @param value the farmStageGachaInfoList to add * @return this */ @@ -137,7 +137,7 @@ public final class GetFarmStageGachaInfoScRspOuterClass { } /** - * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 8; + * repeated .FarmStageGachaInfo farm_stage_gacha_info_list = 3; * @param values the farmStageGachaInfoList to add * @return this */ @@ -214,12 +214,12 @@ public final class GetFarmStageGachaInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < farmStageGachaInfoList.length(); i++) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 26); output.writeMessageNoTag(farmStageGachaInfoList.get(i)); } } @@ -244,16 +244,16 @@ public final class GetFarmStageGachaInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 26) { break; } } - case 66: { + case 26: { // farmStageGachaInfoList tag = input.readRepeatedMessage(farmStageGachaInfoList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java index e368eab..e39de22 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; */ private final RepeatedInt npcTalkList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; * @return whether the npcTalkList field is set */ public boolean hasNpcTalkList() { @@ -43,7 +43,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; * @return this */ public GetFirstTalkByPerformanceNpcCsReq clearNpcTalkList() { @@ -53,7 +53,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; * @param value the npcTalkList to add * @return this */ @@ -92,7 +92,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { } /** - * repeated uint32 npc_talk_list = 4; + * repeated uint32 npc_talk_list = 10; * @param values the npcTalkList to add * @return this */ @@ -165,7 +165,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < npcTalkList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(npcTalkList.array()[i]); } } @@ -187,7 +187,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 82: { // npcTalkList [packed=true] input.readPackedUInt32(npcTalkList, tag); bitField0_ |= 0x00000001; @@ -206,7 +206,7 @@ public final class GetFirstTalkByPerformanceNpcCsReqOuterClass { tag = input.readTag(); break; } - case 32: { + case 80: { // npcTalkList [packed=false] tag = input.readRepeatedUInt32(npcTalkList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java index 8c0c26c..ee6cd85 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkByPerformanceNpcScRspOuterClass.java @@ -25,7 +25,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { private int retcode; /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; */ private final RepeatedMessage npcTalkInfoList = RepeatedMessage.newEmptyInstance(NpcTalkInfoOuterClass.NpcTalkInfo.getFactory()); @@ -77,7 +77,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; * @return whether the npcTalkInfoList field is set */ public boolean hasNpcTalkInfoList() { @@ -85,7 +85,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; * @return this */ public GetFirstTalkByPerformanceNpcScRsp clearNpcTalkInfoList() { @@ -95,7 +95,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; * @param value the npcTalkInfoList to add * @return this */ @@ -135,7 +135,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } /** - * repeated .NpcTalkInfo npc_talk_info_list = 9; + * repeated .NpcTalkInfo npc_talk_info_list = 10; * @param values the npcTalkInfoList to add * @return this */ @@ -219,7 +219,7 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < npcTalkInfoList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 82); output.writeMessageNoTag(npcTalkInfoList.get(i)); } } @@ -249,11 +249,11 @@ public final class GetFirstTalkByPerformanceNpcScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 82) { break; } } - case 74: { + case 82: { // npcTalkInfoList tag = input.readRepeatedMessage(npcTalkInfoList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java index c9c731d..5cb51ce 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; */ private final RepeatedInt npcIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { } /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; * @return whether the npcIdList field is set */ public boolean hasNpcIdList() { @@ -43,7 +43,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { } /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; * @return this */ public GetFirstTalkNpcCsReq clearNpcIdList() { @@ -53,7 +53,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { } /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { } /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { } /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; * @param value the npcIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { } /** - * repeated uint32 npc_id_list = 14; + * repeated uint32 npc_id_list = 4; * @param values the npcIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < npcIdList.length(); i++) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(npcIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 34: { // npcIdList [packed=true] input.readPackedUInt32(npcIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class GetFirstTalkNpcCsReqOuterClass { tag = input.readTag(); break; } - case 112: { + case 32: { // npcIdList [packed=false] tag = input.readRepeatedUInt32(npcIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java index 1bdc176..2f603c9 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFirstTalkNpcScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFirstTalkNpcScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; */ private int retcode; /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; */ private final RepeatedMessage npcTalkInfoList = RepeatedMessage.newEmptyInstance(FirstNpcTalkInfoOuterClass.FirstNpcTalkInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @return this */ public GetFirstTalkNpcScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; * @return whether the npcTalkInfoList field is set */ public boolean hasNpcTalkInfoList() { @@ -85,7 +85,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; * @return this */ public GetFirstTalkNpcScRsp clearNpcTalkInfoList() { @@ -95,7 +95,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -124,7 +124,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; * @param value the npcTalkInfoList to add * @return this */ @@ -136,7 +136,7 @@ public final class GetFirstTalkNpcScRspOuterClass { } /** - * repeated .FirstNpcTalkInfo npc_talk_info_list = 3; + * repeated .FirstNpcTalkInfo npc_talk_info_list = 4; * @param values the npcTalkInfoList to add * @return this */ @@ -213,12 +213,12 @@ public final class GetFirstTalkNpcScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < npcTalkInfoList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 34); output.writeMessageNoTag(npcTalkInfoList.get(i)); } } @@ -243,16 +243,16 @@ public final class GetFirstTalkNpcScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 34) { break; } } - case 26: { + case 34: { // npcTalkInfoList tag = input.readRepeatedMessage(npcTalkInfoList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java index bba13c3..d130019 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendApplyListInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFriendApplyListInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; */ private int retcode; /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; */ private final RepeatedMessage friendApplyList = RepeatedMessage.newEmptyInstance(FriendApplyInfoOuterClass.FriendApplyInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return this */ public GetFriendApplyListInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; * @return whether the friendApplyList field is set */ public boolean hasFriendApplyList() { @@ -85,7 +85,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; * @return this */ public GetFriendApplyListInfoScRsp clearFriendApplyList() { @@ -95,7 +95,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; * @param value the friendApplyList to add * @return this */ @@ -135,7 +135,7 @@ public final class GetFriendApplyListInfoScRspOuterClass { } /** - * repeated .FriendApplyInfo friend_apply_list = 10; + * repeated .FriendApplyInfo friend_apply_list = 11; * @param values the friendApplyList to add * @return this */ @@ -212,12 +212,12 @@ public final class GetFriendApplyListInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendApplyList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 90); output.writeMessageNoTag(friendApplyList.get(i)); } } @@ -242,16 +242,16 @@ public final class GetFriendApplyListInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 90) { break; } } - case 82: { + case 90: { // friendApplyList tag = input.readRepeatedMessage(friendApplyList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailCsReqOuterClass.java new file mode 100644 index 0000000..dca6805 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailCsReqOuterClass.java @@ -0,0 +1,479 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetFriendBattleRecordDetailCsReqOuterClass { + /** + * Protobuf type {@code GetFriendBattleRecordDetailCsReq} + */ + public static final class GetFriendBattleRecordDetailCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 uid = 2; + */ + private int uid; + + /** + * optional uint32 group_id = 9992; + */ + private int groupId; + + /** + *
+     *  those are unused
+     * 
+ * + * optional .DisplayRecordType type = 9991; + */ + private int type; + + private GetFriendBattleRecordDetailCsReq() { + } + + /** + * @return a new empty instance of {@code GetFriendBattleRecordDetailCsReq} + */ + public static GetFriendBattleRecordDetailCsReq newInstance() { + return new GetFriendBattleRecordDetailCsReq(); + } + + /** + * optional uint32 uid = 2; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 uid = 2; + * @return this + */ + public GetFriendBattleRecordDetailCsReq clearUid() { + bitField0_ &= ~0x00000001; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 2; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 2; + * @param value the uid to set + * @return this + */ + public GetFriendBattleRecordDetailCsReq setUid(final int value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + /** + * optional uint32 group_id = 9992; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 9992; + * @return this + */ + public GetFriendBattleRecordDetailCsReq clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 9992; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 9992; + * @param value the groupId to set + * @return this + */ + public GetFriendBattleRecordDetailCsReq setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + *
+     *  those are unused
+     * 
+ * + * optional .DisplayRecordType type = 9991; + * @return whether the type field is set + */ + public boolean hasType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  those are unused
+     * 
+ * + * optional .DisplayRecordType type = 9991; + * @return this + */ + public GetFriendBattleRecordDetailCsReq clearType() { + bitField0_ &= ~0x00000004; + type = 0; + return this; + } + + /** + *
+     *  those are unused
+     * 
+ * + * optional .DisplayRecordType type = 9991; + * @return the type + */ + public DisplayRecordTypeOuterClass.DisplayRecordType getType() { + return DisplayRecordTypeOuterClass.DisplayRecordType.forNumber(type); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link GetFriendBattleRecordDetailCsReq#getType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getTypeValue() { + return type; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link DisplayRecordTypeOuterClass.DisplayRecordType}. Setting an invalid value + * can cause {@link GetFriendBattleRecordDetailCsReq#getType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public GetFriendBattleRecordDetailCsReq setTypeValue(final int value) { + bitField0_ |= 0x00000004; + type = value; + return this; + } + + /** + *
+     *  those are unused
+     * 
+ * + * optional .DisplayRecordType type = 9991; + * @param value the type to set + * @return this + */ + public GetFriendBattleRecordDetailCsReq setType( + final DisplayRecordTypeOuterClass.DisplayRecordType value) { + bitField0_ |= 0x00000004; + type = value.getNumber(); + return this; + } + + @Override + public GetFriendBattleRecordDetailCsReq copyFrom(final GetFriendBattleRecordDetailCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + groupId = other.groupId; + type = other.type; + } + return this; + } + + @Override + public GetFriendBattleRecordDetailCsReq mergeFrom( + final GetFriendBattleRecordDetailCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasType()) { + setTypeValue(other.type); + } + return this; + } + + @Override + public GetFriendBattleRecordDetailCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0; + groupId = 0; + type = 0; + return this; + } + + @Override + public GetFriendBattleRecordDetailCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFriendBattleRecordDetailCsReq)) { + return false; + } + GetFriendBattleRecordDetailCsReq other = (GetFriendBattleRecordDetailCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) + && (!hasGroupId() || groupId == other.groupId) + && (!hasType() || type == other.type); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 61632); + output.writeRawByte((byte) 4); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawLittleEndian16((short) 61624); + output.writeRawByte((byte) 4); + output.writeEnumNoTag(type); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 3 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 3 + ProtoSink.computeEnumSizeNoTag(type); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFriendBattleRecordDetailCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 79936) { + break; + } + } + case 79936: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 79928) { + break; + } + } + case 79928: { + // type + final int value = input.readInt32(); + if (DisplayRecordTypeOuterClass.DisplayRecordType.forNumber(value) != null) { + type = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.type, type, DisplayRecordTypeOuterClass.DisplayRecordType.converter()); + } + output.endObject(); + } + + @Override + public GetFriendBattleRecordDetailCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3575610: { + if (input.isAtField(FieldNames.type)) { + if (!input.trySkipNullValue()) { + final DisplayRecordTypeOuterClass.DisplayRecordType value = input.readEnum(DisplayRecordTypeOuterClass.DisplayRecordType.converter()); + if (value != null) { + type = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFriendBattleRecordDetailCsReq clone() { + return new GetFriendBattleRecordDetailCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFriendBattleRecordDetailCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFriendBattleRecordDetailCsReq(), data).checkInitialized(); + } + + public static GetFriendBattleRecordDetailCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendBattleRecordDetailCsReq(), input).checkInitialized(); + } + + public static GetFriendBattleRecordDetailCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendBattleRecordDetailCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFriendBattleRecordDetailCsReq messages + */ + public static MessageFactory getFactory() { + return GetFriendBattleRecordDetailCsReqFactory.INSTANCE; + } + + private enum GetFriendBattleRecordDetailCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFriendBattleRecordDetailCsReq create() { + return GetFriendBattleRecordDetailCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName type = FieldName.forField("type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailScRspOuterClass.java new file mode 100644 index 0000000..2e5f6e9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFriendBattleRecordDetailScRspOuterClass.java @@ -0,0 +1,582 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetFriendBattleRecordDetailScRspOuterClass { + /** + * Protobuf type {@code GetFriendBattleRecordDetailScRsp} + */ + public static final class GetFriendBattleRecordDetailScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 uid = 14; + */ + private int uid; + + /** + * optional .FriendBattleRecordType1 with_group = 9991; + */ + private final FriendBattleRecordType1OuterClass.FriendBattleRecordType1 withGroup = FriendBattleRecordType1OuterClass.FriendBattleRecordType1.newInstance(); + + /** + * optional .FriendBattleRecordType2 no_group = 9992; + */ + private final FriendBattleRecordType2OuterClass.FriendBattleRecordType2 noGroup = FriendBattleRecordType2OuterClass.FriendBattleRecordType2.newInstance(); + + private GetFriendBattleRecordDetailScRsp() { + } + + /** + * @return a new empty instance of {@code GetFriendBattleRecordDetailScRsp} + */ + public static GetFriendBattleRecordDetailScRsp newInstance() { + return new GetFriendBattleRecordDetailScRsp(); + } + + public boolean hasFriendBattleRecord() { + return (((bitField0_ & 0x00000003)) != 0); + } + + public GetFriendBattleRecordDetailScRsp clearFriendBattleRecord() { + if (hasFriendBattleRecord()) { + clearWithGroup(); + clearNoGroup(); + } + return this; + } + + private void clearFriendBattleRecordOtherWithGroup() { + if ((((bitField0_ & 0x00000002)) != 0)) { + clearNoGroup(); + } + } + + private void clearFriendBattleRecordOtherNoGroup() { + if ((((bitField0_ & 0x00000001)) != 0)) { + clearWithGroup(); + } + } + + /** + * optional uint32 retcode = 5; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 5; + * @return this + */ + public GetFriendBattleRecordDetailScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public GetFriendBattleRecordDetailScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + /** + * optional uint32 uid = 14; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 uid = 14; + * @return this + */ + public GetFriendBattleRecordDetailScRsp clearUid() { + bitField0_ &= ~0x00000008; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 14; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 14; + * @param value the uid to set + * @return this + */ + public GetFriendBattleRecordDetailScRsp setUid(final int value) { + bitField0_ |= 0x00000008; + uid = value; + return this; + } + + /** + * optional .FriendBattleRecordType1 with_group = 9991; + * @return whether the withGroup field is set + */ + public boolean hasWithGroup() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .FriendBattleRecordType1 with_group = 9991; + * @return this + */ + public GetFriendBattleRecordDetailScRsp clearWithGroup() { + bitField0_ &= ~0x00000001; + withGroup.clear(); + return this; + } + + /** + * optional .FriendBattleRecordType1 with_group = 9991; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableWithGroup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FriendBattleRecordType1OuterClass.FriendBattleRecordType1 getWithGroup() { + return withGroup; + } + + /** + * optional .FriendBattleRecordType1 with_group = 9991; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public FriendBattleRecordType1OuterClass.FriendBattleRecordType1 getMutableWithGroup() { + clearFriendBattleRecordOtherWithGroup(); + bitField0_ |= 0x00000001; + return withGroup; + } + + /** + * optional .FriendBattleRecordType1 with_group = 9991; + * @param value the withGroup to set + * @return this + */ + public GetFriendBattleRecordDetailScRsp setWithGroup( + final FriendBattleRecordType1OuterClass.FriendBattleRecordType1 value) { + clearFriendBattleRecordOtherWithGroup(); + bitField0_ |= 0x00000001; + withGroup.copyFrom(value); + return this; + } + + /** + * optional .FriendBattleRecordType2 no_group = 9992; + * @return whether the noGroup field is set + */ + public boolean hasNoGroup() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .FriendBattleRecordType2 no_group = 9992; + * @return this + */ + public GetFriendBattleRecordDetailScRsp clearNoGroup() { + bitField0_ &= ~0x00000002; + noGroup.clear(); + return this; + } + + /** + * optional .FriendBattleRecordType2 no_group = 9992; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableNoGroup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public FriendBattleRecordType2OuterClass.FriendBattleRecordType2 getNoGroup() { + return noGroup; + } + + /** + * optional .FriendBattleRecordType2 no_group = 9992; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public FriendBattleRecordType2OuterClass.FriendBattleRecordType2 getMutableNoGroup() { + clearFriendBattleRecordOtherNoGroup(); + bitField0_ |= 0x00000002; + return noGroup; + } + + /** + * optional .FriendBattleRecordType2 no_group = 9992; + * @param value the noGroup to set + * @return this + */ + public GetFriendBattleRecordDetailScRsp setNoGroup( + final FriendBattleRecordType2OuterClass.FriendBattleRecordType2 value) { + clearFriendBattleRecordOtherNoGroup(); + bitField0_ |= 0x00000002; + noGroup.copyFrom(value); + return this; + } + + @Override + public GetFriendBattleRecordDetailScRsp copyFrom(final GetFriendBattleRecordDetailScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + uid = other.uid; + withGroup.copyFrom(other.withGroup); + noGroup.copyFrom(other.noGroup); + } + return this; + } + + @Override + public GetFriendBattleRecordDetailScRsp mergeFrom( + final GetFriendBattleRecordDetailScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasWithGroup()) { + getMutableWithGroup().mergeFrom(other.withGroup); + } + if (other.hasNoGroup()) { + getMutableNoGroup().mergeFrom(other.noGroup); + } + return this; + } + + @Override + public GetFriendBattleRecordDetailScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + uid = 0; + withGroup.clear(); + noGroup.clear(); + return this; + } + + @Override + public GetFriendBattleRecordDetailScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + withGroup.clearQuick(); + noGroup.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFriendBattleRecordDetailScRsp)) { + return false; + } + GetFriendBattleRecordDetailScRsp other = (GetFriendBattleRecordDetailScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasUid() || uid == other.uid) + && (!hasWithGroup() || withGroup.equals(other.withGroup)) + && (!hasNoGroup() || noGroup.equals(other.noGroup)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawLittleEndian16((short) 61626); + output.writeRawByte((byte) 4); + output.writeMessageNoTag(withGroup); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawLittleEndian16((short) 61634); + output.writeRawByte((byte) 4); + output.writeMessageNoTag(noGroup); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000001) != 0) { + size += 3 + ProtoSink.computeMessageSizeNoTag(withGroup); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 3 + ProtoSink.computeMessageSizeNoTag(noGroup); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFriendBattleRecordDetailScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 79930) { + break; + } + } + case 79930: { + // withGroup + clearFriendBattleRecordOtherWithGroup(); + input.readMessage(withGroup); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 79938) { + break; + } + } + case 79938: { + // noGroup + clearFriendBattleRecordOtherNoGroup(); + input.readMessage(noGroup); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.withGroup, withGroup); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.noGroup, noGroup); + } + output.endObject(); + } + + @Override + public GetFriendBattleRecordDetailScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 890495321: + case -1782391354: { + if (input.isAtField(FieldNames.withGroup)) { + if (!input.trySkipNullValue()) { + clearFriendBattleRecordOtherWithGroup(); + input.readMessage(withGroup); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2088069438: + case 982667905: { + if (input.isAtField(FieldNames.noGroup)) { + if (!input.trySkipNullValue()) { + clearFriendBattleRecordOtherNoGroup(); + input.readMessage(noGroup); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFriendBattleRecordDetailScRsp clone() { + return new GetFriendBattleRecordDetailScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFriendBattleRecordDetailScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFriendBattleRecordDetailScRsp(), data).checkInitialized(); + } + + public static GetFriendBattleRecordDetailScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendBattleRecordDetailScRsp(), input).checkInitialized(); + } + + public static GetFriendBattleRecordDetailScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendBattleRecordDetailScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFriendBattleRecordDetailScRsp messages + */ + public static MessageFactory getFactory() { + return GetFriendBattleRecordDetailScRspFactory.INSTANCE; + } + + private enum GetFriendBattleRecordDetailScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFriendBattleRecordDetailScRsp create() { + return GetFriendBattleRecordDetailScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName withGroup = FieldName.forField("withGroup", "with_group"); + + static final FieldName noGroup = FieldName.forField("noGroup", "no_group"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupCsReqOuterClass.java new file mode 100644 index 0000000..359a964 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupCsReqOuterClass.java @@ -0,0 +1,262 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetFriendChallengeLineupCsReqOuterClass { + /** + * Protobuf type {@code GetFriendChallengeLineupCsReq} + */ + public static final class GetFriendChallengeLineupCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_id = 9; + */ + private int challengeId; + + private GetFriendChallengeLineupCsReq() { + } + + /** + * @return a new empty instance of {@code GetFriendChallengeLineupCsReq} + */ + public static GetFriendChallengeLineupCsReq newInstance() { + return new GetFriendChallengeLineupCsReq(); + } + + /** + * optional uint32 challenge_id = 9; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_id = 9; + * @return this + */ + public GetFriendChallengeLineupCsReq clearChallengeId() { + bitField0_ &= ~0x00000001; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 9; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 9; + * @param value the challengeId to set + * @return this + */ + public GetFriendChallengeLineupCsReq setChallengeId(final int value) { + bitField0_ |= 0x00000001; + challengeId = value; + return this; + } + + @Override + public GetFriendChallengeLineupCsReq copyFrom(final GetFriendChallengeLineupCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengeId = other.challengeId; + } + return this; + } + + @Override + public GetFriendChallengeLineupCsReq mergeFrom(final GetFriendChallengeLineupCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } + return this; + } + + @Override + public GetFriendChallengeLineupCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeId = 0; + return this; + } + + @Override + public GetFriendChallengeLineupCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFriendChallengeLineupCsReq)) { + return false; + } + GetFriendChallengeLineupCsReq other = (GetFriendChallengeLineupCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasChallengeId() || challengeId == other.challengeId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(challengeId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFriendChallengeLineupCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengeId, challengeId); + } + output.endObject(); + } + + @Override + public GetFriendChallengeLineupCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { + if (!input.trySkipNullValue()) { + challengeId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFriendChallengeLineupCsReq clone() { + return new GetFriendChallengeLineupCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFriendChallengeLineupCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFriendChallengeLineupCsReq(), data).checkInitialized(); + } + + public static GetFriendChallengeLineupCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendChallengeLineupCsReq(), input).checkInitialized(); + } + + public static GetFriendChallengeLineupCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendChallengeLineupCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFriendChallengeLineupCsReq messages + */ + public static MessageFactory getFactory() { + return GetFriendChallengeLineupCsReqFactory.INSTANCE; + } + + private enum GetFriendChallengeLineupCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFriendChallengeLineupCsReq create() { + return GetFriendChallengeLineupCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupScRspOuterClass.java new file mode 100644 index 0000000..32de459 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFriendChallengeLineupScRspOuterClass.java @@ -0,0 +1,500 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class GetFriendChallengeLineupScRspOuterClass { + /** + * Protobuf type {@code GetFriendChallengeLineupScRsp} + */ + public static final class GetFriendChallengeLineupScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + */ + private int retcode; + + /** + *
+     *  always set to true
+     * 
+ * + * optional bool b11 = 10; + */ + private boolean b11; + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + */ + private final RepeatedMessage friendChallengeInfos = RepeatedMessage.newEmptyInstance(FriendChallengeInfoOuterClass.FriendChallengeInfo.getFactory()); + + private GetFriendChallengeLineupScRsp() { + } + + /** + * @return a new empty instance of {@code GetFriendChallengeLineupScRsp} + */ + public static GetFriendChallengeLineupScRsp newInstance() { + return new GetFriendChallengeLineupScRsp(); + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return this + */ + public GetFriendChallengeLineupScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public GetFriendChallengeLineupScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + *
+     *  always set to true
+     * 
+ * + * optional bool b11 = 10; + * @return whether the b11 field is set + */ + public boolean hasB11() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  always set to true
+     * 
+ * + * optional bool b11 = 10; + * @return this + */ + public GetFriendChallengeLineupScRsp clearB11() { + bitField0_ &= ~0x00000002; + b11 = false; + return this; + } + + /** + *
+     *  always set to true
+     * 
+ * + * optional bool b11 = 10; + * @return the b11 + */ + public boolean getB11() { + return b11; + } + + /** + *
+     *  always set to true
+     * 
+ * + * optional bool b11 = 10; + * @param value the b11 to set + * @return this + */ + public GetFriendChallengeLineupScRsp setB11(final boolean value) { + bitField0_ |= 0x00000002; + b11 = value; + return this; + } + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + * @return whether the friendChallengeInfos field is set + */ + public boolean hasFriendChallengeInfos() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + * @return this + */ + public GetFriendChallengeLineupScRsp clearFriendChallengeInfos() { + bitField0_ &= ~0x00000004; + friendChallengeInfos.clear(); + return this; + } + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFriendChallengeInfos()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFriendChallengeInfos( + ) { + return friendChallengeInfos; + } + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableFriendChallengeInfos( + ) { + bitField0_ |= 0x00000004; + return friendChallengeInfos; + } + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + * @param value the friendChallengeInfos to add + * @return this + */ + public GetFriendChallengeLineupScRsp addFriendChallengeInfos( + final FriendChallengeInfoOuterClass.FriendChallengeInfo value) { + bitField0_ |= 0x00000004; + friendChallengeInfos.add(value); + return this; + } + + /** + * repeated .FriendChallengeInfo friend_challenge_infos = 8; + * @param values the friendChallengeInfos to add + * @return this + */ + public GetFriendChallengeLineupScRsp addAllFriendChallengeInfos( + final FriendChallengeInfoOuterClass.FriendChallengeInfo... values) { + bitField0_ |= 0x00000004; + friendChallengeInfos.addAll(values); + return this; + } + + @Override + public GetFriendChallengeLineupScRsp copyFrom(final GetFriendChallengeLineupScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + b11 = other.b11; + friendChallengeInfos.copyFrom(other.friendChallengeInfos); + } + return this; + } + + @Override + public GetFriendChallengeLineupScRsp mergeFrom(final GetFriendChallengeLineupScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasB11()) { + setB11(other.b11); + } + if (other.hasFriendChallengeInfos()) { + getMutableFriendChallengeInfos().addAll(other.friendChallengeInfos); + } + return this; + } + + @Override + public GetFriendChallengeLineupScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + b11 = false; + friendChallengeInfos.clear(); + return this; + } + + @Override + public GetFriendChallengeLineupScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + friendChallengeInfos.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFriendChallengeLineupScRsp)) { + return false; + } + GetFriendChallengeLineupScRsp other = (GetFriendChallengeLineupScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasB11() || b11 == other.b11) + && (!hasFriendChallengeInfos() || friendChallengeInfos.equals(other.friendChallengeInfos)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeBoolNoTag(b11); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < friendChallengeInfos.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(friendChallengeInfos.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * friendChallengeInfos.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(friendChallengeInfos); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFriendChallengeLineupScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // b11 + b11 = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // friendChallengeInfos + tag = input.readRepeatedMessage(friendChallengeInfos, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.b11, b11); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.friendChallengeInfos, friendChallengeInfos); + } + output.endObject(); + } + + @Override + public GetFriendChallengeLineupScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 95746: { + if (input.isAtField(FieldNames.b11)) { + if (!input.trySkipNullValue()) { + b11 = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1083831584: + case 1662541576: { + if (input.isAtField(FieldNames.friendChallengeInfos)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(friendChallengeInfos); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFriendChallengeLineupScRsp clone() { + return new GetFriendChallengeLineupScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFriendChallengeLineupScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFriendChallengeLineupScRsp(), data).checkInitialized(); + } + + public static GetFriendChallengeLineupScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendChallengeLineupScRsp(), input).checkInitialized(); + } + + public static GetFriendChallengeLineupScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendChallengeLineupScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFriendChallengeLineupScRsp messages + */ + public static MessageFactory getFactory() { + return GetFriendChallengeLineupScRspFactory.INSTANCE; + } + + private enum GetFriendChallengeLineupScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFriendChallengeLineupScRsp create() { + return GetFriendChallengeLineupScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName b11 = FieldName.forField("b11"); + + static final FieldName friendChallengeInfos = FieldName.forField("friendChallengeInfos", "friend_challenge_infos"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoCsReqOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/RogueBonusSelectResultOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoCsReqOuterClass.java index affc529..67bd82a 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectResultOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueBonusSelectResultOuterClass { +public final class GetFriendDevelopmentInfoCsReqOuterClass { /** - * Protobuf type {@code RogueBonusSelectResult} + * Protobuf type {@code GetFriendDevelopmentInfoCsReq} */ - public static final class RogueBonusSelectResult extends ProtoMessage implements Cloneable { + public static final class GetFriendDevelopmentInfoCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 bonus_id = 14; + * optional uint32 uid = 9; */ - private int bonusId; + private int uid; - private RogueBonusSelectResult() { + private GetFriendDevelopmentInfoCsReq() { } /** - * @return a new empty instance of {@code RogueBonusSelectResult} + * @return a new empty instance of {@code GetFriendDevelopmentInfoCsReq} */ - public static RogueBonusSelectResult newInstance() { - return new RogueBonusSelectResult(); + public static GetFriendDevelopmentInfoCsReq newInstance() { + return new GetFriendDevelopmentInfoCsReq(); } /** - * optional uint32 bonus_id = 14; - * @return whether the bonusId field is set + * optional uint32 uid = 9; + * @return whether the uid field is set */ - public boolean hasBonusId() { + public boolean hasUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 bonus_id = 14; + * optional uint32 uid = 9; * @return this */ - public RogueBonusSelectResult clearBonusId() { + public GetFriendDevelopmentInfoCsReq clearUid() { bitField0_ &= ~0x00000001; - bonusId = 0; + uid = 0; return this; } /** - * optional uint32 bonus_id = 14; - * @return the bonusId + * optional uint32 uid = 9; + * @return the uid */ - public int getBonusId() { - return bonusId; + public int getUid() { + return uid; } /** - * optional uint32 bonus_id = 14; - * @param value the bonusId to set + * optional uint32 uid = 9; + * @param value the uid to set * @return this */ - public RogueBonusSelectResult setBonusId(final int value) { + public GetFriendDevelopmentInfoCsReq setUid(final int value) { bitField0_ |= 0x00000001; - bonusId = value; + uid = value; return this; } @Override - public RogueBonusSelectResult copyFrom(final RogueBonusSelectResult other) { + public GetFriendDevelopmentInfoCsReq copyFrom(final GetFriendDevelopmentInfoCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - bonusId = other.bonusId; + uid = other.uid; } return this; } @Override - public RogueBonusSelectResult mergeFrom(final RogueBonusSelectResult other) { + public GetFriendDevelopmentInfoCsReq mergeFrom(final GetFriendDevelopmentInfoCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBonusId()) { - setBonusId(other.bonusId); + if (other.hasUid()) { + setUid(other.uid); } return this; } @Override - public RogueBonusSelectResult clear() { + public GetFriendDevelopmentInfoCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - bonusId = 0; + uid = 0; return this; } @Override - public RogueBonusSelectResult clearQuick() { + public GetFriendDevelopmentInfoCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class RogueBonusSelectResultOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueBonusSelectResult)) { + if (!(o instanceof GetFriendDevelopmentInfoCsReq)) { return false; } - RogueBonusSelectResult other = (RogueBonusSelectResult) o; + GetFriendDevelopmentInfoCsReq other = (GetFriendDevelopmentInfoCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBonusId() || bonusId == other.bonusId); + && (!hasUid() || uid == other.uid); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(bonusId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(uid); } } @@ -138,21 +138,21 @@ public final class RogueBonusSelectResultOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bonusId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueBonusSelectResult mergeFrom(final ProtoSource input) throws IOException { + public GetFriendDevelopmentInfoCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 112: { - // bonusId - bonusId = input.readUInt32(); + case 72: { + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,22 @@ public final class RogueBonusSelectResultOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.bonusId, bonusId); + output.writeUInt32(FieldNames.uid, uid); } output.endObject(); } @Override - public RogueBonusSelectResult mergeFrom(final JsonSource input) throws IOException { + public GetFriendDevelopmentInfoCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 64069018: - case 1986160955: { - if (input.isAtField(FieldNames.bonusId)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - bonusId = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +211,8 @@ public final class RogueBonusSelectResultOuterClass { } @Override - public RogueBonusSelectResult clone() { - return new RogueBonusSelectResult().copyFrom(this); + public GetFriendDevelopmentInfoCsReq clone() { + return new GetFriendDevelopmentInfoCsReq().copyFrom(this); } @Override @@ -221,32 +220,34 @@ public final class RogueBonusSelectResultOuterClass { return ((bitField0_) == 0); } - public static RogueBonusSelectResult parseFrom(final byte[] data) throws + public static GetFriendDevelopmentInfoCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBonusSelectResult(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetFriendDevelopmentInfoCsReq(), data).checkInitialized(); } - public static RogueBonusSelectResult parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBonusSelectResult(), input).checkInitialized(); + public static GetFriendDevelopmentInfoCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendDevelopmentInfoCsReq(), input).checkInitialized(); } - public static RogueBonusSelectResult parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBonusSelectResult(), input).checkInitialized(); + public static GetFriendDevelopmentInfoCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendDevelopmentInfoCsReq(), input).checkInitialized(); } /** - * @return factory for creating RogueBonusSelectResult messages + * @return factory for creating GetFriendDevelopmentInfoCsReq messages */ - public static MessageFactory getFactory() { - return RogueBonusSelectResultFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetFriendDevelopmentInfoCsReqFactory.INSTANCE; } - private enum RogueBonusSelectResultFactory implements MessageFactory { + private enum GetFriendDevelopmentInfoCsReqFactory implements MessageFactory { INSTANCE; @Override - public RogueBonusSelectResult create() { - return RogueBonusSelectResult.newInstance(); + public GetFriendDevelopmentInfoCsReq create() { + return GetFriendDevelopmentInfoCsReq.newInstance(); } } @@ -254,7 +255,7 @@ public final class RogueBonusSelectResultOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName bonusId = FieldName.forField("bonusId", "bonus_id"); + static final FieldName uid = FieldName.forField("uid"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoScRspOuterClass.java new file mode 100644 index 0000000..fffd27e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetFriendDevelopmentInfoScRspOuterClass.java @@ -0,0 +1,460 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class GetFriendDevelopmentInfoScRspOuterClass { + /** + * Protobuf type {@code GetFriendDevelopmentInfoScRsp} + */ + public static final class GetFriendDevelopmentInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 uid = 1; + */ + private int uid; + + /** + * optional uint32 retcode = 11; + */ + private int retcode; + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + */ + private final RepeatedMessage developmentInfoList = RepeatedMessage.newEmptyInstance(FriendDevelopmentInfoOuterClass.FriendDevelopmentInfo.getFactory()); + + private GetFriendDevelopmentInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetFriendDevelopmentInfoScRsp} + */ + public static GetFriendDevelopmentInfoScRsp newInstance() { + return new GetFriendDevelopmentInfoScRsp(); + } + + /** + * optional uint32 uid = 1; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 uid = 1; + * @return this + */ + public GetFriendDevelopmentInfoScRsp clearUid() { + bitField0_ &= ~0x00000001; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 1; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 1; + * @param value the uid to set + * @return this + */ + public GetFriendDevelopmentInfoScRsp setUid(final int value) { + bitField0_ |= 0x00000001; + uid = value; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public GetFriendDevelopmentInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public GetFriendDevelopmentInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + * @return whether the developmentInfoList field is set + */ + public boolean hasDevelopmentInfoList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + * @return this + */ + public GetFriendDevelopmentInfoScRsp clearDevelopmentInfoList() { + bitField0_ &= ~0x00000004; + developmentInfoList.clear(); + return this; + } + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDevelopmentInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDevelopmentInfoList( + ) { + return developmentInfoList; + } + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableDevelopmentInfoList( + ) { + bitField0_ |= 0x00000004; + return developmentInfoList; + } + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + * @param value the developmentInfoList to add + * @return this + */ + public GetFriendDevelopmentInfoScRsp addDevelopmentInfoList( + final FriendDevelopmentInfoOuterClass.FriendDevelopmentInfo value) { + bitField0_ |= 0x00000004; + developmentInfoList.add(value); + return this; + } + + /** + * repeated .FriendDevelopmentInfo development_info_list = 10; + * @param values the developmentInfoList to add + * @return this + */ + public GetFriendDevelopmentInfoScRsp addAllDevelopmentInfoList( + final FriendDevelopmentInfoOuterClass.FriendDevelopmentInfo... values) { + bitField0_ |= 0x00000004; + developmentInfoList.addAll(values); + return this; + } + + @Override + public GetFriendDevelopmentInfoScRsp copyFrom(final GetFriendDevelopmentInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + uid = other.uid; + retcode = other.retcode; + developmentInfoList.copyFrom(other.developmentInfoList); + } + return this; + } + + @Override + public GetFriendDevelopmentInfoScRsp mergeFrom(final GetFriendDevelopmentInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasDevelopmentInfoList()) { + getMutableDevelopmentInfoList().addAll(other.developmentInfoList); + } + return this; + } + + @Override + public GetFriendDevelopmentInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + uid = 0; + retcode = 0; + developmentInfoList.clear(); + return this; + } + + @Override + public GetFriendDevelopmentInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + developmentInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetFriendDevelopmentInfoScRsp)) { + return false; + } + GetFriendDevelopmentInfoScRsp other = (GetFriendDevelopmentInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasUid() || uid == other.uid) + && (!hasRetcode() || retcode == other.retcode) + && (!hasDevelopmentInfoList() || developmentInfoList.equals(other.developmentInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < developmentInfoList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(developmentInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * developmentInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(developmentInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetFriendDevelopmentInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // developmentInfoList + tag = input.readRepeatedMessage(developmentInfoList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.uid, uid); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.developmentInfoList, developmentInfoList); + } + output.endObject(); + } + + @Override + public GetFriendDevelopmentInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { + if (!input.trySkipNullValue()) { + uid = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2078546119: + case -900379765: { + if (input.isAtField(FieldNames.developmentInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(developmentInfoList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetFriendDevelopmentInfoScRsp clone() { + return new GetFriendDevelopmentInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetFriendDevelopmentInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetFriendDevelopmentInfoScRsp(), data).checkInitialized(); + } + + public static GetFriendDevelopmentInfoScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendDevelopmentInfoScRsp(), input).checkInitialized(); + } + + public static GetFriendDevelopmentInfoScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetFriendDevelopmentInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetFriendDevelopmentInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetFriendDevelopmentInfoScRspFactory.INSTANCE; + } + + private enum GetFriendDevelopmentInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetFriendDevelopmentInfoScRsp create() { + return GetFriendDevelopmentInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName developmentInfoList = FieldName.forField("developmentInfoList", "development_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java index 4af9979..05d321e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendListInfoScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetFriendListInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; */ private int retcode; /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; */ private final RepeatedMessage friendList = RepeatedMessage.newEmptyInstance(FriendListInfoOuterClass.FriendListInfo.getFactory()); @@ -40,7 +40,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return this */ public GetFriendListInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; * @return whether the friendList field is set */ public boolean hasFriendList() { @@ -85,7 +85,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; * @return this */ public GetFriendListInfoScRsp clearFriendList() { @@ -95,7 +95,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; * @param value the friendList to add * @return this */ @@ -135,7 +135,7 @@ public final class GetFriendListInfoScRspOuterClass { } /** - * repeated .FriendListInfo friend_list = 3; + * repeated .FriendListInfo friend_list = 15; * @param values the friendList to add * @return this */ @@ -212,12 +212,12 @@ public final class GetFriendListInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 122); output.writeMessageNoTag(friendList.get(i)); } } @@ -242,16 +242,16 @@ public final class GetFriendListInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 122) { break; } } - case 26: { + case 122: { // friendList tag = input.readRepeatedMessage(friendList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java index 7146753..2fc94d1 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendLoginInfoScRspOuterClass.java @@ -20,15 +20,15 @@ public final class GetFriendLoginInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; */ private int retcode; /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; */ private final RepeatedInt friendUidList = RepeatedInt.newEmptyInstance(); @@ -44,7 +44,11 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -52,7 +56,11 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return this */ public GetFriendLoginInfoScRsp clearRetcode() { @@ -62,7 +70,11 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -70,7 +82,11 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -81,10 +97,6 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; * @return whether the friendUidList field is set */ @@ -93,10 +105,6 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; * @return this */ @@ -107,10 +115,6 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; * * This method returns the internal storage object without modifying any has state. @@ -125,10 +129,6 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; * * This method returns the internal storage object and sets the corresponding @@ -143,10 +143,6 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; * @param value the friendUidList to add * @return this @@ -158,10 +154,6 @@ public final class GetFriendLoginInfoScRspOuterClass { } /** - *
-     *  could be 9, TODO: check
-     * 
- * * repeated uint32 friend_uid_list = 7; * @param values the friendUidList to add * @return this @@ -238,7 +230,7 @@ public final class GetFriendLoginInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { @@ -268,7 +260,7 @@ public final class GetFriendLoginInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java index b07a409..5e964d6 100644 --- a/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetFriendRecommendListInfoScRspOuterClass.java @@ -14,18 +14,26 @@ import us.hebi.quickbuf.RepeatedMessage; public final class GetFriendRecommendListInfoScRspOuterClass { /** + *
+   *  DAOGCIDBJFL
+   * 
+ * * Protobuf type {@code GetFriendRecommendListInfoScRsp} */ public static final class GetFriendRecommendListInfoScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; */ private final RepeatedMessage friendRecommendList = RepeatedMessage.newEmptyInstance(FriendRecommendInfoOuterClass.FriendRecommendInfo.getFactory()); @@ -33,6 +41,10 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** + *
+     *  DAOGCIDBJFL
+     * 
+ * * @return a new empty instance of {@code GetFriendRecommendListInfoScRsp} */ public static GetFriendRecommendListInfoScRsp newInstance() { @@ -40,7 +52,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +60,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return this */ public GetFriendRecommendListInfoScRsp clearRetcode() { @@ -58,7 +70,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -66,7 +78,7 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -77,7 +89,11 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; * @return whether the friendRecommendList field is set */ public boolean hasFriendRecommendList() { @@ -85,7 +101,11 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; * @return this */ public GetFriendRecommendListInfoScRsp clearFriendRecommendList() { @@ -95,7 +115,11 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -110,7 +134,11 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -125,7 +153,11 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; * @param value the friendRecommendList to add * @return this */ @@ -137,7 +169,11 @@ public final class GetFriendRecommendListInfoScRspOuterClass { } /** - * repeated .FriendRecommendInfo friend_recommend_list = 12; + *
+     *  JEFNDFLFMEA
+     * 
+ * + * repeated .FriendRecommendInfo friend_recommend_list = 11; * @param values the friendRecommendList to add * @return this */ @@ -214,12 +250,12 @@ public final class GetFriendRecommendListInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < friendRecommendList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 90); output.writeMessageNoTag(friendRecommendList.get(i)); } } @@ -244,16 +280,16 @@ public final class GetFriendRecommendListInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 90) { break; } } - case 98: { + case 90: { // friendRecommendList tag = input.readRepeatedMessage(friendRecommendList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java index d076f21..f01f52e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetGachaCeilingCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_type = 7; + * optional uint32 gacha_type = 9; */ private int gachaType; @@ -34,7 +34,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 7; + * optional uint32 gacha_type = 9; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -42,7 +42,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 7; + * optional uint32 gacha_type = 9; * @return this */ public GetGachaCeilingCsReq clearGachaType() { @@ -52,7 +52,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 7; + * optional uint32 gacha_type = 9; * @return the gachaType */ public int getGachaType() { @@ -60,7 +60,7 @@ public final class GetGachaCeilingCsReqOuterClass { } /** - * optional uint32 gacha_type = 7; + * optional uint32 gacha_type = 9; * @param value the gachaType to set * @return this */ @@ -129,7 +129,7 @@ public final class GetGachaCeilingCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(gachaType); } } @@ -150,7 +150,7 @@ public final class GetGachaCeilingCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 72: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java index bf35951..dd765f6 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaCeilingScRspOuterClass.java @@ -19,17 +19,17 @@ public final class GetGachaCeilingScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_type = 3; + * optional uint32 gacha_type = 2; */ private int gachaType; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; */ private int retcode; /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 5; */ private final GachaCeilingOuterClass.GachaCeiling gachaCeiling = GachaCeilingOuterClass.GachaCeiling.newInstance(); @@ -44,7 +44,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 3; + * optional uint32 gacha_type = 2; * @return whether the gachaType field is set */ public boolean hasGachaType() { @@ -52,7 +52,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 3; + * optional uint32 gacha_type = 2; * @return this */ public GetGachaCeilingScRsp clearGachaType() { @@ -62,7 +62,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 3; + * optional uint32 gacha_type = 2; * @return the gachaType */ public int getGachaType() { @@ -70,7 +70,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 gacha_type = 3; + * optional uint32 gacha_type = 2; * @param value the gachaType to set * @return this */ @@ -81,7 +81,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +89,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return this */ public GetGachaCeilingScRsp clearRetcode() { @@ -99,7 +99,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -107,7 +107,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -118,7 +118,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 5; * @return whether the gachaCeiling field is set */ public boolean hasGachaCeiling() { @@ -126,7 +126,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 5; * @return this */ public GetGachaCeilingScRsp clearGachaCeiling() { @@ -136,7 +136,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class GetGachaCeilingScRspOuterClass { } /** - * optional .GachaCeiling gacha_ceiling = 4; + * optional .GachaCeiling gacha_ceiling = 5; * @param value the gachaCeiling to set * @return this */ @@ -246,15 +246,15 @@ public final class GetGachaCeilingScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(gachaType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 42); output.writeMessageNoTag(gachaCeiling); } } @@ -281,25 +281,25 @@ public final class GetGachaCeilingScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 16: { // gachaType gachaType = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 32) { break; } } - case 56: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 34) { + if (tag != 42) { break; } } - case 34: { + case 42: { // gachaCeiling input.readMessage(gachaCeiling); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java index 946a4da..8bae4ae 100644 --- a/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetGachaInfoScRspOuterClass.java @@ -20,15 +20,15 @@ public final class GetGachaInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 gacha_random = 2; - */ - private int gachaRandom; - - /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; */ private int retcode; + /** + * optional uint32 gacha_random = 6; + */ + private int gachaRandom; + /** * repeated .GachaInfo gacha_info_list = 3; */ @@ -45,62 +45,25 @@ public final class GetGachaInfoScRspOuterClass { } /** - * optional uint32 gacha_random = 2; - * @return whether the gachaRandom field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasGachaRandom() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 gacha_random = 2; - * @return this - */ - public GetGachaInfoScRsp clearGachaRandom() { - bitField0_ &= ~0x00000001; - gachaRandom = 0; - return this; - } - - /** - * optional uint32 gacha_random = 2; - * @return the gachaRandom - */ - public int getGachaRandom() { - return gachaRandom; - } - - /** - * optional uint32 gacha_random = 2; - * @param value the gachaRandom to set - * @return this - */ - public GetGachaInfoScRsp setGachaRandom(final int value) { - bitField0_ |= 0x00000001; - gachaRandom = value; - return this; - } - - /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @return this */ public GetGachaInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -108,16 +71,53 @@ public final class GetGachaInfoScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ public GetGachaInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 gacha_random = 6; + * @return whether the gachaRandom field is set + */ + public boolean hasGachaRandom() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 gacha_random = 6; + * @return this + */ + public GetGachaInfoScRsp clearGachaRandom() { + bitField0_ &= ~0x00000002; + gachaRandom = 0; + return this; + } + + /** + * optional uint32 gacha_random = 6; + * @return the gachaRandom + */ + public int getGachaRandom() { + return gachaRandom; + } + + /** + * optional uint32 gacha_random = 6; + * @param value the gachaRandom to set + * @return this + */ + public GetGachaInfoScRsp setGachaRandom(final int value) { + bitField0_ |= 0x00000002; + gachaRandom = value; + return this; + } + /** * repeated .GachaInfo gacha_info_list = 3; * @return whether the gachaInfoList field is set @@ -191,8 +191,8 @@ public final class GetGachaInfoScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gachaRandom = other.gachaRandom; retcode = other.retcode; + gachaRandom = other.gachaRandom; gachaInfoList.copyFrom(other.gachaInfoList); } return this; @@ -204,12 +204,12 @@ public final class GetGachaInfoScRspOuterClass { return this; } cachedSize = -1; - if (other.hasGachaRandom()) { - setGachaRandom(other.gachaRandom); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasGachaRandom()) { + setGachaRandom(other.gachaRandom); + } if (other.hasGachaInfoList()) { getMutableGachaInfoList().addAll(other.gachaInfoList); } @@ -223,8 +223,8 @@ public final class GetGachaInfoScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - gachaRandom = 0; retcode = 0; + gachaRandom = 0; gachaInfoList.clear(); return this; } @@ -250,20 +250,20 @@ public final class GetGachaInfoScRspOuterClass { } GetGachaInfoScRsp other = (GetGachaInfoScRsp) o; return bitField0_ == other.bitField0_ - && (!hasGachaRandom() || gachaRandom == other.gachaRandom) && (!hasRetcode() || retcode == other.retcode) + && (!hasGachaRandom() || gachaRandom == other.gachaRandom) && (!hasGachaInfoList() || gachaInfoList.equals(other.gachaInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(gachaRandom); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(gachaRandom); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < gachaInfoList.length(); i++) { @@ -277,10 +277,10 @@ public final class GetGachaInfoScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gachaRandom); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * gachaInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(gachaInfoList); @@ -295,18 +295,18 @@ public final class GetGachaInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // gachaRandom - gachaRandom = input.readUInt32(); + case 8: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 48) { break; } } - case 56: { - // retcode - retcode = input.readUInt32(); + case 48: { + // gachaRandom + gachaRandom = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 26) { @@ -339,10 +339,10 @@ public final class GetGachaInfoScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gachaRandom, gachaRandom); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.gachaRandom, gachaRandom); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.gachaInfoList, gachaInfoList); @@ -357,11 +357,10 @@ public final class GetGachaInfoScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1635961627: - case -47579616: { - if (input.isAtField(FieldNames.gachaRandom)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - gachaRandom = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -369,10 +368,11 @@ public final class GetGachaInfoScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1635961627: + case -47579616: { + if (input.isAtField(FieldNames.gachaRandom)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + gachaRandom = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -445,10 +445,10 @@ public final class GetGachaInfoScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName gachaRandom = FieldName.forField("gachaRandom", "gacha_random"); + static final FieldName gachaInfoList = FieldName.forField("gachaInfoList", "gacha_info_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java deleted file mode 100644 index 31af325..0000000 --- a/src/generated/main/emu/lunarcore/proto/GetHeroBasicTypeInfoScRspOuterClass.java +++ /dev/null @@ -1,727 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class GetHeroBasicTypeInfoScRspOuterClass { - /** - * Protobuf type {@code GetHeroBasicTypeInfoScRsp} - */ - public static final class GetHeroBasicTypeInfoScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * optional .HeroBasicType cur_basic_type = 3; - */ - private int curBasicType; - - /** - * optional .Gender gender = 11; - */ - private int gender; - - /** - * repeated uint32 unlocked_basic_types = 8; - */ - private final RepeatedInt unlockedBasicTypes = RepeatedInt.newEmptyInstance(); - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - */ - private final RepeatedMessage basicTypeInfoList = RepeatedMessage.newEmptyInstance(HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo.getFactory()); - - private GetHeroBasicTypeInfoScRsp() { - } - - /** - * @return a new empty instance of {@code GetHeroBasicTypeInfoScRsp} - */ - public static GetHeroBasicTypeInfoScRsp newInstance() { - return new GetHeroBasicTypeInfoScRsp(); - } - - /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 2; - * @return this - */ - public GetHeroBasicTypeInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 2; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 2; - * @param value the retcode to set - * @return this - */ - public GetHeroBasicTypeInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .HeroBasicType cur_basic_type = 3; - * @return whether the curBasicType field is set - */ - public boolean hasCurBasicType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .HeroBasicType cur_basic_type = 3; - * @return this - */ - public GetHeroBasicTypeInfoScRsp clearCurBasicType() { - bitField0_ &= ~0x00000002; - curBasicType = 0; - return this; - } - - /** - * optional .HeroBasicType cur_basic_type = 3; - * @return the curBasicType - */ - public HeroBasicTypeOuterClass.HeroBasicType getCurBasicType() { - return HeroBasicTypeOuterClass.HeroBasicType.forNumber(curBasicType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getCurBasicTypeValue() { - return curBasicType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link HeroBasicTypeOuterClass.HeroBasicType}. Setting an invalid value - * can cause {@link GetHeroBasicTypeInfoScRsp#getCurBasicType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public GetHeroBasicTypeInfoScRsp setCurBasicTypeValue(final int value) { - bitField0_ |= 0x00000002; - curBasicType = value; - return this; - } - - /** - * optional .HeroBasicType cur_basic_type = 3; - * @param value the curBasicType to set - * @return this - */ - public GetHeroBasicTypeInfoScRsp setCurBasicType( - final HeroBasicTypeOuterClass.HeroBasicType value) { - bitField0_ |= 0x00000002; - curBasicType = value.getNumber(); - return this; - } - - /** - * optional .Gender gender = 11; - * @return whether the gender field is set - */ - public boolean hasGender() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .Gender gender = 11; - * @return this - */ - public GetHeroBasicTypeInfoScRsp clearGender() { - bitField0_ &= ~0x00000004; - gender = 0; - return this; - } - - /** - * optional .Gender gender = 11; - * @return the gender - */ - public GenderOuterClass.Gender getGender() { - return GenderOuterClass.Gender.forNumber(gender); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link GetHeroBasicTypeInfoScRsp#getGender()}.getNumber(). - * - * @return numeric wire representation - */ - public int getGenderValue() { - return gender; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link GenderOuterClass.Gender}. Setting an invalid value - * can cause {@link GetHeroBasicTypeInfoScRsp#getGender()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public GetHeroBasicTypeInfoScRsp setGenderValue(final int value) { - bitField0_ |= 0x00000004; - gender = value; - return this; - } - - /** - * optional .Gender gender = 11; - * @param value the gender to set - * @return this - */ - public GetHeroBasicTypeInfoScRsp setGender(final GenderOuterClass.Gender value) { - bitField0_ |= 0x00000004; - gender = value.getNumber(); - return this; - } - - /** - * repeated uint32 unlocked_basic_types = 8; - * @return whether the unlockedBasicTypes field is set - */ - public boolean hasUnlockedBasicTypes() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 unlocked_basic_types = 8; - * @return this - */ - public GetHeroBasicTypeInfoScRsp clearUnlockedBasicTypes() { - bitField0_ &= ~0x00000008; - unlockedBasicTypes.clear(); - return this; - } - - /** - * repeated uint32 unlocked_basic_types = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUnlockedBasicTypes()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getUnlockedBasicTypes() { - return unlockedBasicTypes; - } - - /** - * repeated uint32 unlocked_basic_types = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableUnlockedBasicTypes() { - bitField0_ |= 0x00000008; - return unlockedBasicTypes; - } - - /** - * repeated uint32 unlocked_basic_types = 8; - * @param value the unlockedBasicTypes to add - * @return this - */ - public GetHeroBasicTypeInfoScRsp addUnlockedBasicTypes(final int value) { - bitField0_ |= 0x00000008; - unlockedBasicTypes.add(value); - return this; - } - - /** - * repeated uint32 unlocked_basic_types = 8; - * @param values the unlockedBasicTypes to add - * @return this - */ - public GetHeroBasicTypeInfoScRsp addAllUnlockedBasicTypes(final int... values) { - bitField0_ |= 0x00000008; - unlockedBasicTypes.addAll(values); - return this; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * @return whether the basicTypeInfoList field is set - */ - public boolean hasBasicTypeInfoList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * @return this - */ - public GetHeroBasicTypeInfoScRsp clearBasicTypeInfoList() { - bitField0_ &= ~0x00000010; - basicTypeInfoList.clear(); - return this; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBasicTypeInfoList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBasicTypeInfoList() { - return basicTypeInfoList; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableBasicTypeInfoList( - ) { - bitField0_ |= 0x00000010; - return basicTypeInfoList; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * @param value the basicTypeInfoList to add - * @return this - */ - public GetHeroBasicTypeInfoScRsp addBasicTypeInfoList( - final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo value) { - bitField0_ |= 0x00000010; - basicTypeInfoList.add(value); - return this; - } - - /** - * repeated .HeroBasicTypeInfo basic_type_info_list = 15; - * @param values the basicTypeInfoList to add - * @return this - */ - public GetHeroBasicTypeInfoScRsp addAllBasicTypeInfoList( - final HeroBasicTypeInfoOuterClass.HeroBasicTypeInfo... values) { - bitField0_ |= 0x00000010; - basicTypeInfoList.addAll(values); - return this; - } - - @Override - public GetHeroBasicTypeInfoScRsp copyFrom(final GetHeroBasicTypeInfoScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - curBasicType = other.curBasicType; - gender = other.gender; - unlockedBasicTypes.copyFrom(other.unlockedBasicTypes); - basicTypeInfoList.copyFrom(other.basicTypeInfoList); - } - return this; - } - - @Override - public GetHeroBasicTypeInfoScRsp mergeFrom(final GetHeroBasicTypeInfoScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasCurBasicType()) { - setCurBasicTypeValue(other.curBasicType); - } - if (other.hasGender()) { - setGenderValue(other.gender); - } - if (other.hasUnlockedBasicTypes()) { - getMutableUnlockedBasicTypes().addAll(other.unlockedBasicTypes); - } - if (other.hasBasicTypeInfoList()) { - getMutableBasicTypeInfoList().addAll(other.basicTypeInfoList); - } - return this; - } - - @Override - public GetHeroBasicTypeInfoScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - curBasicType = 0; - gender = 0; - unlockedBasicTypes.clear(); - basicTypeInfoList.clear(); - return this; - } - - @Override - public GetHeroBasicTypeInfoScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unlockedBasicTypes.clear(); - basicTypeInfoList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof GetHeroBasicTypeInfoScRsp)) { - return false; - } - GetHeroBasicTypeInfoScRsp other = (GetHeroBasicTypeInfoScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasCurBasicType() || curBasicType == other.curBasicType) - && (!hasGender() || gender == other.gender) - && (!hasUnlockedBasicTypes() || unlockedBasicTypes.equals(other.unlockedBasicTypes)) - && (!hasBasicTypeInfoList() || basicTypeInfoList.equals(other.basicTypeInfoList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeEnumNoTag(curBasicType); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeEnumNoTag(gender); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < unlockedBasicTypes.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(unlockedBasicTypes.array()[i]); - } - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < basicTypeInfoList.length(); i++) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(basicTypeInfoList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(curBasicType); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(gender); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * unlockedBasicTypes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedBasicTypes); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * basicTypeInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(basicTypeInfoList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public GetHeroBasicTypeInfoScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // curBasicType - final int value = input.readInt32(); - if (HeroBasicTypeOuterClass.HeroBasicType.forNumber(value) != null) { - curBasicType = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // gender - final int value = input.readInt32(); - if (GenderOuterClass.Gender.forNumber(value) != null) { - gender = value; - bitField0_ |= 0x00000004; - } - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // unlockedBasicTypes [packed=true] - input.readPackedUInt32(unlockedBasicTypes, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // basicTypeInfoList - tag = input.readRepeatedMessage(basicTypeInfoList, tag); - bitField0_ |= 0x00000010; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 64: { - // unlockedBasicTypes [packed=false] - tag = input.readRepeatedUInt32(unlockedBasicTypes, tag); - bitField0_ |= 0x00000008; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.curBasicType, curBasicType, HeroBasicTypeOuterClass.HeroBasicType.converter()); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.gender, gender, GenderOuterClass.Gender.converter()); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.unlockedBasicTypes, unlockedBasicTypes); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.basicTypeInfoList, basicTypeInfoList); - } - output.endObject(); - } - - @Override - public GetHeroBasicTypeInfoScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -518506968: - case -979186678: { - if (input.isAtField(FieldNames.curBasicType)) { - if (!input.trySkipNullValue()) { - final HeroBasicTypeOuterClass.HeroBasicType value = input.readEnum(HeroBasicTypeOuterClass.HeroBasicType.converter()); - if (value != null) { - curBasicType = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -1249512767: { - if (input.isAtField(FieldNames.gender)) { - if (!input.trySkipNullValue()) { - final GenderOuterClass.Gender value = input.readEnum(GenderOuterClass.Gender.converter()); - if (value != null) { - gender = value.getNumber(); - bitField0_ |= 0x00000004; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 243664942: - case -212631092: { - if (input.isAtField(FieldNames.unlockedBasicTypes)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(unlockedBasicTypes); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -344592620: - case -1315699973: { - if (input.isAtField(FieldNames.basicTypeInfoList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(basicTypeInfoList); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public GetHeroBasicTypeInfoScRsp clone() { - return new GetHeroBasicTypeInfoScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static GetHeroBasicTypeInfoScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetHeroBasicTypeInfoScRsp(), data).checkInitialized(); - } - - public static GetHeroBasicTypeInfoScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetHeroBasicTypeInfoScRsp(), input).checkInitialized(); - } - - public static GetHeroBasicTypeInfoScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetHeroBasicTypeInfoScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating GetHeroBasicTypeInfoScRsp messages - */ - public static MessageFactory getFactory() { - return GetHeroBasicTypeInfoScRspFactory.INSTANCE; - } - - private enum GetHeroBasicTypeInfoScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public GetHeroBasicTypeInfoScRsp create() { - return GetHeroBasicTypeInfoScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName curBasicType = FieldName.forField("curBasicType", "cur_basic_type"); - - static final FieldName gender = FieldName.forField("gender"); - - static final FieldName unlockedBasicTypes = FieldName.forField("unlockedBasicTypes", "unlocked_basic_types"); - - static final FieldName basicTypeInfoList = FieldName.forField("basicTypeInfoList", "basic_type_info_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java index b58d26f..6c4df0e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetJukeboxDataScRspOuterClass.java @@ -14,23 +14,35 @@ import us.hebi.quickbuf.RepeatedMessage; public final class GetJukeboxDataScRspOuterClass { /** + *
+   *  ICBICGCLBGO
+   * 
+ * * Protobuf type {@code GetJukeboxDataScRsp} */ public static final class GetJukeboxDataScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 14; */ private int playingId; /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; */ private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusicOuterClass.UnlockedMusic.getFactory()); @@ -38,6 +50,10 @@ public final class GetJukeboxDataScRspOuterClass { } /** + *
+     *  ICBICGCLBGO
+     * 
+ * * @return a new empty instance of {@code GetJukeboxDataScRsp} */ public static GetJukeboxDataScRsp newInstance() { @@ -45,7 +61,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +69,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return this */ public GetJukeboxDataScRsp clearRetcode() { @@ -63,7 +79,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -71,7 +87,7 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -82,7 +98,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 14; * @return whether the playingId field is set */ public boolean hasPlayingId() { @@ -90,7 +110,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 14; * @return this */ public GetJukeboxDataScRsp clearPlayingId() { @@ -100,7 +124,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 14; * @return the playingId */ public int getPlayingId() { @@ -108,7 +136,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 14; * @param value the playingId to set * @return this */ @@ -119,7 +151,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; * @return whether the musicList field is set */ public boolean hasMusicList() { @@ -127,7 +163,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; * @return this */ public GetJukeboxDataScRsp clearMusicList() { @@ -137,7 +177,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +195,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +213,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; * @param value the musicList to add * @return this */ @@ -176,7 +228,11 @@ public final class GetJukeboxDataScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 1; + *
+     *  LAHIPOLKDCA
+     * 
+ * + * repeated .UnlockedMusic music_list = 8; * @param values the musicList to add * @return this */ @@ -259,16 +315,16 @@ public final class GetJukeboxDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(playingId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < musicList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 66); output.writeMessageNoTag(musicList.get(i)); } } @@ -296,25 +352,25 @@ public final class GetJukeboxDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 112) { break; } } - case 80: { + case 112: { // playingId playingId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 10) { + if (tag != 66) { break; } } - case 10: { + case 66: { // musicList tag = input.readRepeatedMessage(musicList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueInitialScoreScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetLineupAvatarDataScRspOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/GetRogueInitialScoreScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetLineupAvatarDataScRspOuterClass.java index 7ab6082..fcaabac 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueInitialScoreScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetLineupAvatarDataScRspOuterClass.java @@ -10,36 +10,37 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class GetRogueInitialScoreScRspOuterClass { +public final class GetLineupAvatarDataScRspOuterClass { /** - * Protobuf type {@code GetRogueInitialScoreScRsp} + * Protobuf type {@code GetLineupAvatarDataScRsp} */ - public static final class GetRogueInitialScoreScRsp extends ProtoMessage implements Cloneable { + public static final class GetLineupAvatarDataScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional .RogueScoreRewardInfo rogue_score_info = 7; + * repeated .LineupAvatarData lineup_avatar_data_list = 3; */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo rogueScoreInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + private final RepeatedMessage lineupAvatarDataList = RepeatedMessage.newEmptyInstance(LineupAvatarDataOuterClass.LineupAvatarData.getFactory()); - private GetRogueInitialScoreScRsp() { + private GetLineupAvatarDataScRsp() { } /** - * @return a new empty instance of {@code GetRogueInitialScoreScRsp} + * @return a new empty instance of {@code GetLineupAvatarDataScRsp} */ - public static GetRogueInitialScoreScRsp newInstance() { - return new GetRogueInitialScoreScRsp(); + public static GetLineupAvatarDataScRsp newInstance() { + return new GetLineupAvatarDataScRsp(); } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +48,17 @@ public final class GetRogueInitialScoreScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 14; * @return this */ - public GetRogueInitialScoreScRsp clearRetcode() { + public GetLineupAvatarDataScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -65,50 +66,50 @@ public final class GetRogueInitialScoreScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ - public GetRogueInitialScoreScRsp setRetcode(final int value) { + public GetLineupAvatarDataScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueScoreRewardInfo rogue_score_info = 7; - * @return whether the rogueScoreInfo field is set + * repeated .LineupAvatarData lineup_avatar_data_list = 3; + * @return whether the lineupAvatarDataList field is set */ - public boolean hasRogueScoreInfo() { + public boolean hasLineupAvatarDataList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueScoreRewardInfo rogue_score_info = 7; + * repeated .LineupAvatarData lineup_avatar_data_list = 3; * @return this */ - public GetRogueInitialScoreScRsp clearRogueScoreInfo() { + public GetLineupAvatarDataScRsp clearLineupAvatarDataList() { bitField0_ &= ~0x00000002; - rogueScoreInfo.clear(); + lineupAvatarDataList.clear(); return this; } /** - * optional .RogueScoreRewardInfo rogue_score_info = 7; + * repeated .LineupAvatarData lineup_avatar_data_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRogueScoreInfo()} if you want to modify it. + * Use {@link #getMutableLineupAvatarDataList()} if you want to modify it. * * @return internal storage object for reading */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getRogueScoreInfo() { - return rogueScoreInfo; + public RepeatedMessage getLineupAvatarDataList() { + return lineupAvatarDataList; } /** - * optional .RogueScoreRewardInfo rogue_score_info = 7; + * repeated .LineupAvatarData lineup_avatar_data_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +117,49 @@ public final class GetRogueInitialScoreScRspOuterClass { * * @return internal storage object for modifications */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableRogueScoreInfo() { + public RepeatedMessage getMutableLineupAvatarDataList( + ) { bitField0_ |= 0x00000002; - return rogueScoreInfo; + return lineupAvatarDataList; } /** - * optional .RogueScoreRewardInfo rogue_score_info = 7; - * @param value the rogueScoreInfo to set + * repeated .LineupAvatarData lineup_avatar_data_list = 3; + * @param value the lineupAvatarDataList to add * @return this */ - public GetRogueInitialScoreScRsp setRogueScoreInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + public GetLineupAvatarDataScRsp addLineupAvatarDataList( + final LineupAvatarDataOuterClass.LineupAvatarData value) { bitField0_ |= 0x00000002; - rogueScoreInfo.copyFrom(value); + lineupAvatarDataList.add(value); + return this; + } + + /** + * repeated .LineupAvatarData lineup_avatar_data_list = 3; + * @param values the lineupAvatarDataList to add + * @return this + */ + public GetLineupAvatarDataScRsp addAllLineupAvatarDataList( + final LineupAvatarDataOuterClass.LineupAvatarData... values) { + bitField0_ |= 0x00000002; + lineupAvatarDataList.addAll(values); return this; } @Override - public GetRogueInitialScoreScRsp copyFrom(final GetRogueInitialScoreScRsp other) { + public GetLineupAvatarDataScRsp copyFrom(final GetLineupAvatarDataScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - rogueScoreInfo.copyFrom(other.rogueScoreInfo); + lineupAvatarDataList.copyFrom(other.lineupAvatarDataList); } return this; } @Override - public GetRogueInitialScoreScRsp mergeFrom(final GetRogueInitialScoreScRsp other) { + public GetLineupAvatarDataScRsp mergeFrom(final GetLineupAvatarDataScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +167,32 @@ public final class GetRogueInitialScoreScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasRogueScoreInfo()) { - getMutableRogueScoreInfo().mergeFrom(other.rogueScoreInfo); + if (other.hasLineupAvatarDataList()) { + getMutableLineupAvatarDataList().addAll(other.lineupAvatarDataList); } return this; } @Override - public GetRogueInitialScoreScRsp clear() { + public GetLineupAvatarDataScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - rogueScoreInfo.clear(); + lineupAvatarDataList.clear(); return this; } @Override - public GetRogueInitialScoreScRsp clearQuick() { + public GetLineupAvatarDataScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - rogueScoreInfo.clearQuick(); + lineupAvatarDataList.clearQuick(); return this; } @@ -187,24 +201,26 @@ public final class GetRogueInitialScoreScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRogueInitialScoreScRsp)) { + if (!(o instanceof GetLineupAvatarDataScRsp)) { return false; } - GetRogueInitialScoreScRsp other = (GetRogueInitialScoreScRsp) o; + GetLineupAvatarDataScRsp other = (GetLineupAvatarDataScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasRogueScoreInfo() || rogueScoreInfo.equals(other.rogueScoreInfo)); + && (!hasLineupAvatarDataList() || lineupAvatarDataList.equals(other.lineupAvatarDataList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(rogueScoreInfo); + for (int i = 0; i < lineupAvatarDataList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(lineupAvatarDataList.get(i)); + } } } @@ -215,32 +231,31 @@ public final class GetRogueInitialScoreScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueScoreInfo); + size += (1 * lineupAvatarDataList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lineupAvatarDataList); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRogueInitialScoreScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetLineupAvatarDataScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { - // rogueScoreInfo - input.readMessage(rogueScoreInfo); + case 26: { + // lineupAvatarDataList + tag = input.readRepeatedMessage(lineupAvatarDataList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +281,13 @@ public final class GetRogueInitialScoreScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueScoreInfo, rogueScoreInfo); + output.writeRepeatedMessage(FieldNames.lineupAvatarDataList, lineupAvatarDataList); } output.endObject(); } @Override - public GetRogueInitialScoreScRsp mergeFrom(final JsonSource input) throws IOException { + public GetLineupAvatarDataScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +304,11 @@ public final class GetRogueInitialScoreScRspOuterClass { } break; } - case 2078217638: - case -208816704: { - if (input.isAtField(FieldNames.rogueScoreInfo)) { + case 1962009424: + case -1985964707: { + if (input.isAtField(FieldNames.lineupAvatarDataList)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueScoreInfo); + input.readRepeatedMessage(lineupAvatarDataList); bitField0_ |= 0x00000002; } } else { @@ -312,8 +327,8 @@ public final class GetRogueInitialScoreScRspOuterClass { } @Override - public GetRogueInitialScoreScRsp clone() { - return new GetRogueInitialScoreScRsp().copyFrom(this); + public GetLineupAvatarDataScRsp clone() { + return new GetLineupAvatarDataScRsp().copyFrom(this); } @Override @@ -321,32 +336,32 @@ public final class GetRogueInitialScoreScRspOuterClass { return ((bitField0_) == 0); } - public static GetRogueInitialScoreScRsp parseFrom(final byte[] data) throws + public static GetLineupAvatarDataScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRogueInitialScoreScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetLineupAvatarDataScRsp(), data).checkInitialized(); } - public static GetRogueInitialScoreScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueInitialScoreScRsp(), input).checkInitialized(); + public static GetLineupAvatarDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetLineupAvatarDataScRsp(), input).checkInitialized(); } - public static GetRogueInitialScoreScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueInitialScoreScRsp(), input).checkInitialized(); + public static GetLineupAvatarDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetLineupAvatarDataScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRogueInitialScoreScRsp messages + * @return factory for creating GetLineupAvatarDataScRsp messages */ - public static MessageFactory getFactory() { - return GetRogueInitialScoreScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetLineupAvatarDataScRspFactory.INSTANCE; } - private enum GetRogueInitialScoreScRspFactory implements MessageFactory { + private enum GetLineupAvatarDataScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRogueInitialScoreScRsp create() { - return GetRogueInitialScoreScRsp.newInstance(); + public GetLineupAvatarDataScRsp create() { + return GetLineupAvatarDataScRsp.newInstance(); } } @@ -356,7 +371,7 @@ public final class GetRogueInitialScoreScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName rogueScoreInfo = FieldName.forField("rogueScoreInfo", "rogue_score_info"); + static final FieldName lineupAvatarDataList = FieldName.forField("lineupAvatarDataList", "lineup_avatar_data_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java index b1125b7..1ff418f 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMailScRspOuterClass.java @@ -25,7 +25,7 @@ public final class GetMailScRspOuterClass { private int start; /** - * optional uint32 total_num = 10; + * optional uint32 total_num = 8; */ private int totalNum; @@ -35,17 +35,17 @@ public final class GetMailScRspOuterClass { private int retcode; /** - * optional bool is_end = 8; + * optional bool is_end = 9; */ private boolean isEnd; /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; */ private final RepeatedMessage mailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; */ private final RepeatedMessage noticeMailList = RepeatedMessage.newEmptyInstance(ClientMailOuterClass.ClientMail.getFactory()); @@ -97,7 +97,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 10; + * optional uint32 total_num = 8; * @return whether the totalNum field is set */ public boolean hasTotalNum() { @@ -105,7 +105,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 10; + * optional uint32 total_num = 8; * @return this */ public GetMailScRsp clearTotalNum() { @@ -115,7 +115,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 10; + * optional uint32 total_num = 8; * @return the totalNum */ public int getTotalNum() { @@ -123,7 +123,7 @@ public final class GetMailScRspOuterClass { } /** - * optional uint32 total_num = 10; + * optional uint32 total_num = 8; * @param value the totalNum to set * @return this */ @@ -171,7 +171,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 8; + * optional bool is_end = 9; * @return whether the isEnd field is set */ public boolean hasIsEnd() { @@ -179,7 +179,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 8; + * optional bool is_end = 9; * @return this */ public GetMailScRsp clearIsEnd() { @@ -189,7 +189,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 8; + * optional bool is_end = 9; * @return the isEnd */ public boolean getIsEnd() { @@ -197,7 +197,7 @@ public final class GetMailScRspOuterClass { } /** - * optional bool is_end = 8; + * optional bool is_end = 9; * @param value the isEnd to set * @return this */ @@ -208,7 +208,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; * @return whether the mailList field is set */ public boolean hasMailList() { @@ -216,7 +216,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; * @return this */ public GetMailScRsp clearMailList() { @@ -226,7 +226,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -240,7 +240,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -254,7 +254,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; * @param value the mailList to add * @return this */ @@ -265,7 +265,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail mail_list = 2; + * repeated .ClientMail mail_list = 7; * @param values the mailList to add * @return this */ @@ -276,7 +276,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; * @return whether the noticeMailList field is set */ public boolean hasNoticeMailList() { @@ -284,7 +284,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; * @return this */ public GetMailScRsp clearNoticeMailList() { @@ -294,7 +294,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -308,7 +308,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -322,7 +322,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; * @param value the noticeMailList to add * @return this */ @@ -333,7 +333,7 @@ public final class GetMailScRspOuterClass { } /** - * repeated .ClientMail notice_mail_list = 4; + * repeated .ClientMail notice_mail_list = 10; * @param values the noticeMailList to add * @return this */ @@ -438,7 +438,7 @@ public final class GetMailScRspOuterClass { output.writeUInt32NoTag(start); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(totalNum); } if ((bitField0_ & 0x00000004) != 0) { @@ -446,18 +446,18 @@ public final class GetMailScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 72); output.writeBoolNoTag(isEnd); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < mailList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 58); output.writeMessageNoTag(mailList.get(i)); } } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < noticeMailList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 82); output.writeMessageNoTag(noticeMailList.get(i)); } } @@ -499,11 +499,11 @@ public final class GetMailScRspOuterClass { start = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 64) { break; } } - case 80: { + case 64: { // totalNum totalNum = input.readUInt32(); bitField0_ |= 0x00000002; @@ -517,28 +517,28 @@ public final class GetMailScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 72) { break; } } - case 64: { + case 72: { // isEnd isEnd = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 18) { + if (tag != 58) { break; } } - case 18: { + case 58: { // mailList tag = input.readRepeatedMessage(mailList, tag); bitField0_ |= 0x00000010; - if (tag != 34) { + if (tag != 82) { break; } } - case 34: { + case 82: { // noticeMailList tag = input.readRepeatedMessage(noticeMailList, tag); bitField0_ |= 0x00000020; diff --git a/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java new file mode 100644 index 0000000..e975d74 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueCsReqOuterClass.java @@ -0,0 +1,303 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class GetMainMissionCustomValueCsReqOuterClass { + /** + * Protobuf type {@code GetMainMissionCustomValueCsReq} + */ + public static final class GetMainMissionCustomValueCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated uint32 main_mission_id_list = 4; + */ + private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance(); + + private GetMainMissionCustomValueCsReq() { + } + + /** + * @return a new empty instance of {@code GetMainMissionCustomValueCsReq} + */ + public static GetMainMissionCustomValueCsReq newInstance() { + return new GetMainMissionCustomValueCsReq(); + } + + /** + * repeated uint32 main_mission_id_list = 4; + * @return whether the mainMissionIdList field is set + */ + public boolean hasMainMissionIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated uint32 main_mission_id_list = 4; + * @return this + */ + public GetMainMissionCustomValueCsReq clearMainMissionIdList() { + bitField0_ &= ~0x00000001; + mainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 main_mission_id_list = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getMainMissionIdList() { + return mainMissionIdList; + } + + /** + * repeated uint32 main_mission_id_list = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableMainMissionIdList() { + bitField0_ |= 0x00000001; + return mainMissionIdList; + } + + /** + * repeated uint32 main_mission_id_list = 4; + * @param value the mainMissionIdList to add + * @return this + */ + public GetMainMissionCustomValueCsReq addMainMissionIdList(final int value) { + bitField0_ |= 0x00000001; + mainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 main_mission_id_list = 4; + * @param values the mainMissionIdList to add + * @return this + */ + public GetMainMissionCustomValueCsReq addAllMainMissionIdList(final int... values) { + bitField0_ |= 0x00000001; + mainMissionIdList.addAll(values); + return this; + } + + @Override + public GetMainMissionCustomValueCsReq copyFrom(final GetMainMissionCustomValueCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mainMissionIdList.copyFrom(other.mainMissionIdList); + } + return this; + } + + @Override + public GetMainMissionCustomValueCsReq mergeFrom(final GetMainMissionCustomValueCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMainMissionIdList()) { + getMutableMainMissionIdList().addAll(other.mainMissionIdList); + } + return this; + } + + @Override + public GetMainMissionCustomValueCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mainMissionIdList.clear(); + return this; + } + + @Override + public GetMainMissionCustomValueCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mainMissionIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetMainMissionCustomValueCsReq)) { + return false; + } + GetMainMissionCustomValueCsReq other = (GetMainMissionCustomValueCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < mainMissionIdList.length(); i++) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(mainMissionIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * mainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mainMissionIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetMainMissionCustomValueCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 34: { + // mainMissionIdList [packed=true] + input.readPackedUInt32(mainMissionIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 32: { + // mainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(mainMissionIdList, tag); + bitField0_ |= 0x00000001; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.mainMissionIdList, mainMissionIdList); + } + output.endObject(); + } + + @Override + public GetMainMissionCustomValueCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1438400460: + case -1382679799: { + if (input.isAtField(FieldNames.mainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(mainMissionIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetMainMissionCustomValueCsReq clone() { + return new GetMainMissionCustomValueCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetMainMissionCustomValueCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), data).checkInitialized(); + } + + public static GetMainMissionCustomValueCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), input).checkInitialized(); + } + + public static GetMainMissionCustomValueCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetMainMissionCustomValueCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating GetMainMissionCustomValueCsReq messages + */ + public static MessageFactory getFactory() { + return GetMainMissionCustomValueCsReqFactory.INSTANCE; + } + + private enum GetMainMissionCustomValueCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public GetMainMissionCustomValueCsReq create() { + return GetMainMissionCustomValueCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mainMissionIdList = FieldName.forField("mainMissionIdList", "main_mission_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueScRspOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueScRspOuterClass.java index 3e82e9d..f5d97dd 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousEditDiceScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMainMissionCustomValueScRspOuterClass.java @@ -10,36 +10,37 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class ChessRogueNousEditDiceScRspOuterClass { +public final class GetMainMissionCustomValueScRspOuterClass { /** - * Protobuf type {@code ChessRogueNousEditDiceScRsp} + * Protobuf type {@code GetMainMissionCustomValueScRsp} */ - public static final class ChessRogueNousEditDiceScRsp extends ProtoMessage implements Cloneable { + public static final class GetMainMissionCustomValueScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 10; */ private int retcode; /** - * optional .ChessRogueNousDiceInfo dice_info = 13; + * repeated .MainMissionData main_mission_list = 6; */ - private final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo diceInfo = ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo.newInstance(); + private final RepeatedMessage mainMissionList = RepeatedMessage.newEmptyInstance(MainMissionDataOuterClass.MainMissionData.getFactory()); - private ChessRogueNousEditDiceScRsp() { + private GetMainMissionCustomValueScRsp() { } /** - * @return a new empty instance of {@code ChessRogueNousEditDiceScRsp} + * @return a new empty instance of {@code GetMainMissionCustomValueScRsp} */ - public static ChessRogueNousEditDiceScRsp newInstance() { - return new ChessRogueNousEditDiceScRsp(); + public static GetMainMissionCustomValueScRsp newInstance() { + return new GetMainMissionCustomValueScRsp(); } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +48,17 @@ public final class ChessRogueNousEditDiceScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 10; * @return this */ - public ChessRogueNousEditDiceScRsp clearRetcode() { + public GetMainMissionCustomValueScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -65,50 +66,50 @@ public final class ChessRogueNousEditDiceScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ - public ChessRogueNousEditDiceScRsp setRetcode(final int value) { + public GetMainMissionCustomValueScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .ChessRogueNousDiceInfo dice_info = 13; - * @return whether the diceInfo field is set + * repeated .MainMissionData main_mission_list = 6; + * @return whether the mainMissionList field is set */ - public boolean hasDiceInfo() { + public boolean hasMainMissionList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .ChessRogueNousDiceInfo dice_info = 13; + * repeated .MainMissionData main_mission_list = 6; * @return this */ - public ChessRogueNousEditDiceScRsp clearDiceInfo() { + public GetMainMissionCustomValueScRsp clearMainMissionList() { bitField0_ &= ~0x00000002; - diceInfo.clear(); + mainMissionList.clear(); return this; } /** - * optional .ChessRogueNousDiceInfo dice_info = 13; + * repeated .MainMissionData main_mission_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableDiceInfo()} if you want to modify it. + * Use {@link #getMutableMainMissionList()} if you want to modify it. * * @return internal storage object for reading */ - public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getDiceInfo() { - return diceInfo; + public RepeatedMessage getMainMissionList() { + return mainMissionList; } /** - * optional .ChessRogueNousDiceInfo dice_info = 13; + * repeated .MainMissionData main_mission_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +117,48 @@ public final class ChessRogueNousEditDiceScRspOuterClass { * * @return internal storage object for modifications */ - public ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo getMutableDiceInfo() { + public RepeatedMessage getMutableMainMissionList() { bitField0_ |= 0x00000002; - return diceInfo; + return mainMissionList; } /** - * optional .ChessRogueNousDiceInfo dice_info = 13; - * @param value the diceInfo to set + * repeated .MainMissionData main_mission_list = 6; + * @param value the mainMissionList to add * @return this */ - public ChessRogueNousEditDiceScRsp setDiceInfo( - final ChessRogueNousDiceInfoOuterClass.ChessRogueNousDiceInfo value) { + public GetMainMissionCustomValueScRsp addMainMissionList( + final MainMissionDataOuterClass.MainMissionData value) { bitField0_ |= 0x00000002; - diceInfo.copyFrom(value); + mainMissionList.add(value); + return this; + } + + /** + * repeated .MainMissionData main_mission_list = 6; + * @param values the mainMissionList to add + * @return this + */ + public GetMainMissionCustomValueScRsp addAllMainMissionList( + final MainMissionDataOuterClass.MainMissionData... values) { + bitField0_ |= 0x00000002; + mainMissionList.addAll(values); return this; } @Override - public ChessRogueNousEditDiceScRsp copyFrom(final ChessRogueNousEditDiceScRsp other) { + public GetMainMissionCustomValueScRsp copyFrom(final GetMainMissionCustomValueScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - diceInfo.copyFrom(other.diceInfo); + mainMissionList.copyFrom(other.mainMissionList); } return this; } @Override - public ChessRogueNousEditDiceScRsp mergeFrom(final ChessRogueNousEditDiceScRsp other) { + public GetMainMissionCustomValueScRsp mergeFrom(final GetMainMissionCustomValueScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +166,32 @@ public final class ChessRogueNousEditDiceScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasDiceInfo()) { - getMutableDiceInfo().mergeFrom(other.diceInfo); + if (other.hasMainMissionList()) { + getMutableMainMissionList().addAll(other.mainMissionList); } return this; } @Override - public ChessRogueNousEditDiceScRsp clear() { + public GetMainMissionCustomValueScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - diceInfo.clear(); + mainMissionList.clear(); return this; } @Override - public ChessRogueNousEditDiceScRsp clearQuick() { + public GetMainMissionCustomValueScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - diceInfo.clearQuick(); + mainMissionList.clearQuick(); return this; } @@ -187,24 +200,26 @@ public final class ChessRogueNousEditDiceScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueNousEditDiceScRsp)) { + if (!(o instanceof GetMainMissionCustomValueScRsp)) { return false; } - ChessRogueNousEditDiceScRsp other = (ChessRogueNousEditDiceScRsp) o; + GetMainMissionCustomValueScRsp other = (GetMainMissionCustomValueScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasDiceInfo() || diceInfo.equals(other.diceInfo)); + && (!hasMainMissionList() || mainMissionList.equals(other.mainMissionList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(diceInfo); + for (int i = 0; i < mainMissionList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(mainMissionList.get(i)); + } } } @@ -215,32 +230,31 @@ public final class ChessRogueNousEditDiceScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(diceInfo); + size += (1 * mainMissionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionList); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueNousEditDiceScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetMainMissionCustomValueScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 50) { break; } } - case 106: { - // diceInfo - input.readMessage(diceInfo); + case 50: { + // mainMissionList + tag = input.readRepeatedMessage(mainMissionList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +280,13 @@ public final class ChessRogueNousEditDiceScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.diceInfo, diceInfo); + output.writeRepeatedMessage(FieldNames.mainMissionList, mainMissionList); } output.endObject(); } @Override - public ChessRogueNousEditDiceScRsp mergeFrom(final JsonSource input) throws IOException { + public GetMainMissionCustomValueScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +303,11 @@ public final class ChessRogueNousEditDiceScRspOuterClass { } break; } - case -184174347: - case -1394261434: { - if (input.isAtField(FieldNames.diceInfo)) { + case -1352596271: + case 939604023: { + if (input.isAtField(FieldNames.mainMissionList)) { if (!input.trySkipNullValue()) { - input.readMessage(diceInfo); + input.readRepeatedMessage(mainMissionList); bitField0_ |= 0x00000002; } } else { @@ -312,8 +326,8 @@ public final class ChessRogueNousEditDiceScRspOuterClass { } @Override - public ChessRogueNousEditDiceScRsp clone() { - return new ChessRogueNousEditDiceScRsp().copyFrom(this); + public GetMainMissionCustomValueScRsp clone() { + return new GetMainMissionCustomValueScRsp().copyFrom(this); } @Override @@ -321,33 +335,34 @@ public final class ChessRogueNousEditDiceScRspOuterClass { return ((bitField0_) == 0); } - public static ChessRogueNousEditDiceScRsp parseFrom(final byte[] data) throws + public static GetMainMissionCustomValueScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), data).checkInitialized(); } - public static ChessRogueNousEditDiceScRsp parseFrom(final ProtoSource input) throws + public static GetMainMissionCustomValueScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceScRsp(), input).checkInitialized(); + return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), input).checkInitialized(); } - public static ChessRogueNousEditDiceScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousEditDiceScRsp(), input).checkInitialized(); + public static GetMainMissionCustomValueScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new GetMainMissionCustomValueScRsp(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueNousEditDiceScRsp messages + * @return factory for creating GetMainMissionCustomValueScRsp messages */ - public static MessageFactory getFactory() { - return ChessRogueNousEditDiceScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetMainMissionCustomValueScRspFactory.INSTANCE; } - private enum ChessRogueNousEditDiceScRspFactory implements MessageFactory { + private enum GetMainMissionCustomValueScRspFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueNousEditDiceScRsp create() { - return ChessRogueNousEditDiceScRsp.newInstance(); + public GetMainMissionCustomValueScRsp create() { + return GetMainMissionCustomValueScRsp.newInstance(); } } @@ -357,7 +372,7 @@ public final class ChessRogueNousEditDiceScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName diceInfo = FieldName.forField("diceInfo", "dice_info"); + static final FieldName mainMissionList = FieldName.forField("mainMissionList", "main_mission_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueConfirmRollScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMarkChestScRspOuterClass.java similarity index 56% rename from src/generated/main/emu/lunarcore/proto/ChessRogueConfirmRollScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetMarkChestScRspOuterClass.java index b743f36..9826b8d 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueConfirmRollScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMarkChestScRspOuterClass.java @@ -10,12 +10,13 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class ChessRogueConfirmRollScRspOuterClass { +public final class GetMarkChestScRspOuterClass { /** - * Protobuf type {@code ChessRogueConfirmRollScRsp} + * Protobuf type {@code GetMarkChestScRsp} */ - public static final class ChessRogueConfirmRollScRsp extends ProtoMessage implements Cloneable { + public static final class GetMarkChestScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -24,18 +25,18 @@ public final class ChessRogueConfirmRollScRspOuterClass { private int retcode; /** - * optional .ChessRogueNousDice nous_dice = 14; + * repeated .MarkChestInfo chest_group_list = 1; */ - private final ChessRogueNousDiceOuterClass.ChessRogueNousDice nousDice = ChessRogueNousDiceOuterClass.ChessRogueNousDice.newInstance(); + private final RepeatedMessage chestGroupList = RepeatedMessage.newEmptyInstance(MarkChestInfoOuterClass.MarkChestInfo.getFactory()); - private ChessRogueConfirmRollScRsp() { + private GetMarkChestScRsp() { } /** - * @return a new empty instance of {@code ChessRogueConfirmRollScRsp} + * @return a new empty instance of {@code GetMarkChestScRsp} */ - public static ChessRogueConfirmRollScRsp newInstance() { - return new ChessRogueConfirmRollScRsp(); + public static GetMarkChestScRsp newInstance() { + return new GetMarkChestScRsp(); } /** @@ -50,7 +51,7 @@ public final class ChessRogueConfirmRollScRspOuterClass { * optional uint32 retcode = 11; * @return this */ - public ChessRogueConfirmRollScRsp clearRetcode() { + public GetMarkChestScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; @@ -69,46 +70,46 @@ public final class ChessRogueConfirmRollScRspOuterClass { * @param value the retcode to set * @return this */ - public ChessRogueConfirmRollScRsp setRetcode(final int value) { + public GetMarkChestScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .ChessRogueNousDice nous_dice = 14; - * @return whether the nousDice field is set + * repeated .MarkChestInfo chest_group_list = 1; + * @return whether the chestGroupList field is set */ - public boolean hasNousDice() { + public boolean hasChestGroupList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .ChessRogueNousDice nous_dice = 14; + * repeated .MarkChestInfo chest_group_list = 1; * @return this */ - public ChessRogueConfirmRollScRsp clearNousDice() { + public GetMarkChestScRsp clearChestGroupList() { bitField0_ &= ~0x00000002; - nousDice.clear(); + chestGroupList.clear(); return this; } /** - * optional .ChessRogueNousDice nous_dice = 14; + * repeated .MarkChestInfo chest_group_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableNousDice()} if you want to modify it. + * Use {@link #getMutableChestGroupList()} if you want to modify it. * * @return internal storage object for reading */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getNousDice() { - return nousDice; + public RepeatedMessage getChestGroupList() { + return chestGroupList; } /** - * optional .ChessRogueNousDice nous_dice = 14; + * repeated .MarkChestInfo chest_group_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +117,47 @@ public final class ChessRogueConfirmRollScRspOuterClass { * * @return internal storage object for modifications */ - public ChessRogueNousDiceOuterClass.ChessRogueNousDice getMutableNousDice() { + public RepeatedMessage getMutableChestGroupList() { bitField0_ |= 0x00000002; - return nousDice; + return chestGroupList; } /** - * optional .ChessRogueNousDice nous_dice = 14; - * @param value the nousDice to set + * repeated .MarkChestInfo chest_group_list = 1; + * @param value the chestGroupList to add * @return this */ - public ChessRogueConfirmRollScRsp setNousDice( - final ChessRogueNousDiceOuterClass.ChessRogueNousDice value) { + public GetMarkChestScRsp addChestGroupList(final MarkChestInfoOuterClass.MarkChestInfo value) { bitField0_ |= 0x00000002; - nousDice.copyFrom(value); + chestGroupList.add(value); + return this; + } + + /** + * repeated .MarkChestInfo chest_group_list = 1; + * @param values the chestGroupList to add + * @return this + */ + public GetMarkChestScRsp addAllChestGroupList( + final MarkChestInfoOuterClass.MarkChestInfo... values) { + bitField0_ |= 0x00000002; + chestGroupList.addAll(values); return this; } @Override - public ChessRogueConfirmRollScRsp copyFrom(final ChessRogueConfirmRollScRsp other) { + public GetMarkChestScRsp copyFrom(final GetMarkChestScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - nousDice.copyFrom(other.nousDice); + chestGroupList.copyFrom(other.chestGroupList); } return this; } @Override - public ChessRogueConfirmRollScRsp mergeFrom(final ChessRogueConfirmRollScRsp other) { + public GetMarkChestScRsp mergeFrom(final GetMarkChestScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +165,32 @@ public final class ChessRogueConfirmRollScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasNousDice()) { - getMutableNousDice().mergeFrom(other.nousDice); + if (other.hasChestGroupList()) { + getMutableChestGroupList().addAll(other.chestGroupList); } return this; } @Override - public ChessRogueConfirmRollScRsp clear() { + public GetMarkChestScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - nousDice.clear(); + chestGroupList.clear(); return this; } @Override - public ChessRogueConfirmRollScRsp clearQuick() { + public GetMarkChestScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - nousDice.clearQuick(); + chestGroupList.clearQuick(); return this; } @@ -187,13 +199,13 @@ public final class ChessRogueConfirmRollScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueConfirmRollScRsp)) { + if (!(o instanceof GetMarkChestScRsp)) { return false; } - ChessRogueConfirmRollScRsp other = (ChessRogueConfirmRollScRsp) o; + GetMarkChestScRsp other = (GetMarkChestScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasNousDice() || nousDice.equals(other.nousDice)); + && (!hasChestGroupList() || chestGroupList.equals(other.chestGroupList)); } @Override @@ -203,8 +215,10 @@ public final class ChessRogueConfirmRollScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(nousDice); + for (int i = 0; i < chestGroupList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(chestGroupList.get(i)); + } } } @@ -215,14 +229,14 @@ public final class ChessRogueConfirmRollScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(nousDice); + size += (1 * chestGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chestGroupList); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueConfirmRollScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetMarkChestScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -232,15 +246,14 @@ public final class ChessRogueConfirmRollScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 10) { break; } } - case 114: { - // nousDice - input.readMessage(nousDice); + case 10: { + // chestGroupList + tag = input.readRepeatedMessage(chestGroupList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +279,13 @@ public final class ChessRogueConfirmRollScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.nousDice, nousDice); + output.writeRepeatedMessage(FieldNames.chestGroupList, chestGroupList); } output.endObject(); } @Override - public ChessRogueConfirmRollScRsp mergeFrom(final JsonSource input) throws IOException { + public GetMarkChestScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +302,11 @@ public final class ChessRogueConfirmRollScRspOuterClass { } break; } - case 1622214758: - case -1226158137: { - if (input.isAtField(FieldNames.nousDice)) { + case -98349636: + case 129195612: { + if (input.isAtField(FieldNames.chestGroupList)) { if (!input.trySkipNullValue()) { - input.readMessage(nousDice); + input.readRepeatedMessage(chestGroupList); bitField0_ |= 0x00000002; } } else { @@ -312,8 +325,8 @@ public final class ChessRogueConfirmRollScRspOuterClass { } @Override - public ChessRogueConfirmRollScRsp clone() { - return new ChessRogueConfirmRollScRsp().copyFrom(this); + public GetMarkChestScRsp clone() { + return new GetMarkChestScRsp().copyFrom(this); } @Override @@ -321,32 +334,32 @@ public final class ChessRogueConfirmRollScRspOuterClass { return ((bitField0_) == 0); } - public static ChessRogueConfirmRollScRsp parseFrom(final byte[] data) throws + public static GetMarkChestScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueConfirmRollScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetMarkChestScRsp(), data).checkInitialized(); } - public static ChessRogueConfirmRollScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueConfirmRollScRsp(), input).checkInitialized(); + public static GetMarkChestScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMarkChestScRsp(), input).checkInitialized(); } - public static ChessRogueConfirmRollScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueConfirmRollScRsp(), input).checkInitialized(); + public static GetMarkChestScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMarkChestScRsp(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueConfirmRollScRsp messages + * @return factory for creating GetMarkChestScRsp messages */ - public static MessageFactory getFactory() { - return ChessRogueConfirmRollScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetMarkChestScRspFactory.INSTANCE; } - private enum ChessRogueConfirmRollScRspFactory implements MessageFactory { + private enum GetMarkChestScRspFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueConfirmRollScRsp create() { - return ChessRogueConfirmRollScRsp.newInstance(); + public GetMarkChestScRsp create() { + return GetMarkChestScRsp.newInstance(); } } @@ -356,7 +369,7 @@ public final class ChessRogueConfirmRollScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName nousDice = FieldName.forField("nousDice", "nous_dice"); + static final FieldName chestGroupList = FieldName.forField("chestGroupList", "chest_group_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionDataScRspOuterClass.java new file mode 100644 index 0000000..82d90a4 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetMissionDataScRspOuterClass.java @@ -0,0 +1,571 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class GetMissionDataScRspOuterClass { + /** + * Protobuf type {@code GetMissionDataScRsp} + */ + public static final class GetMissionDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional uint32 cur_mission_id = 13; + */ + private int curMissionId; + + /** + * repeated .MainMissionData main_mission_list = 1; + */ + private final RepeatedMessage mainMissionList = RepeatedMessage.newEmptyInstance(MainMissionDataOuterClass.MainMissionData.getFactory()); + + /** + * repeated .Mission mission_list = 9; + */ + private final RepeatedMessage missionList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + + private GetMissionDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetMissionDataScRsp} + */ + public static GetMissionDataScRsp newInstance() { + return new GetMissionDataScRsp(); + } + + /** + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 8; + * @return this + */ + public GetMissionDataScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public GetMissionDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 cur_mission_id = 13; + * @return whether the curMissionId field is set + */ + public boolean hasCurMissionId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_mission_id = 13; + * @return this + */ + public GetMissionDataScRsp clearCurMissionId() { + bitField0_ &= ~0x00000002; + curMissionId = 0; + return this; + } + + /** + * optional uint32 cur_mission_id = 13; + * @return the curMissionId + */ + public int getCurMissionId() { + return curMissionId; + } + + /** + * optional uint32 cur_mission_id = 13; + * @param value the curMissionId to set + * @return this + */ + public GetMissionDataScRsp setCurMissionId(final int value) { + bitField0_ |= 0x00000002; + curMissionId = value; + return this; + } + + /** + * repeated .MainMissionData main_mission_list = 1; + * @return whether the mainMissionList field is set + */ + public boolean hasMainMissionList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .MainMissionData main_mission_list = 1; + * @return this + */ + public GetMissionDataScRsp clearMainMissionList() { + bitField0_ &= ~0x00000004; + mainMissionList.clear(); + return this; + } + + /** + * repeated .MainMissionData main_mission_list = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMainMissionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMainMissionList() { + return mainMissionList; + } + + /** + * repeated .MainMissionData main_mission_list = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMainMissionList() { + bitField0_ |= 0x00000004; + return mainMissionList; + } + + /** + * repeated .MainMissionData main_mission_list = 1; + * @param value the mainMissionList to add + * @return this + */ + public GetMissionDataScRsp addMainMissionList( + final MainMissionDataOuterClass.MainMissionData value) { + bitField0_ |= 0x00000004; + mainMissionList.add(value); + return this; + } + + /** + * repeated .MainMissionData main_mission_list = 1; + * @param values the mainMissionList to add + * @return this + */ + public GetMissionDataScRsp addAllMainMissionList( + final MainMissionDataOuterClass.MainMissionData... values) { + bitField0_ |= 0x00000004; + mainMissionList.addAll(values); + return this; + } + + /** + * repeated .Mission mission_list = 9; + * @return whether the missionList field is set + */ + public boolean hasMissionList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .Mission mission_list = 9; + * @return this + */ + public GetMissionDataScRsp clearMissionList() { + bitField0_ &= ~0x00000008; + missionList.clear(); + return this; + } + + /** + * repeated .Mission mission_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMissionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMissionList() { + return missionList; + } + + /** + * repeated .Mission mission_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMissionList() { + bitField0_ |= 0x00000008; + return missionList; + } + + /** + * repeated .Mission mission_list = 9; + * @param value the missionList to add + * @return this + */ + public GetMissionDataScRsp addMissionList(final MissionOuterClass.Mission value) { + bitField0_ |= 0x00000008; + missionList.add(value); + return this; + } + + /** + * repeated .Mission mission_list = 9; + * @param values the missionList to add + * @return this + */ + public GetMissionDataScRsp addAllMissionList(final MissionOuterClass.Mission... values) { + bitField0_ |= 0x00000008; + missionList.addAll(values); + return this; + } + + @Override + public GetMissionDataScRsp copyFrom(final GetMissionDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + curMissionId = other.curMissionId; + mainMissionList.copyFrom(other.mainMissionList); + missionList.copyFrom(other.missionList); + } + return this; + } + + @Override + public GetMissionDataScRsp mergeFrom(final GetMissionDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurMissionId()) { + setCurMissionId(other.curMissionId); + } + if (other.hasMainMissionList()) { + getMutableMainMissionList().addAll(other.mainMissionList); + } + if (other.hasMissionList()) { + getMutableMissionList().addAll(other.missionList); + } + return this; + } + + @Override + public GetMissionDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + curMissionId = 0; + mainMissionList.clear(); + missionList.clear(); + return this; + } + + @Override + public GetMissionDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mainMissionList.clearQuick(); + missionList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetMissionDataScRsp)) { + return false; + } + GetMissionDataScRsp other = (GetMissionDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurMissionId() || curMissionId == other.curMissionId) + && (!hasMainMissionList() || mainMissionList.equals(other.mainMissionList)) + && (!hasMissionList() || missionList.equals(other.missionList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(curMissionId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < mainMissionList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(mainMissionList.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < missionList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(missionList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(curMissionId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * mainMissionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * missionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetMissionDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // curMissionId + curMissionId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // mainMissionList + tag = input.readRepeatedMessage(mainMissionList, tag); + bitField0_ |= 0x00000004; + if (tag != 74) { + break; + } + } + case 74: { + // missionList + tag = input.readRepeatedMessage(missionList, tag); + bitField0_ |= 0x00000008; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.curMissionId, curMissionId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.mainMissionList, mainMissionList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.missionList, missionList); + } + output.endObject(); + } + + @Override + public GetMissionDataScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1870430873: + case 50847757: { + if (input.isAtField(FieldNames.curMissionId)) { + if (!input.trySkipNullValue()) { + curMissionId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1352596271: + case 939604023: { + if (input.isAtField(FieldNames.mainMissionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mainMissionList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1383006282: + case -58851471: { + if (input.isAtField(FieldNames.missionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(missionList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetMissionDataScRsp clone() { + return new GetMissionDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetMissionDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetMissionDataScRsp(), data).checkInitialized(); + } + + public static GetMissionDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionDataScRsp(), input).checkInitialized(); + } + + public static GetMissionDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetMissionDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetMissionDataScRspFactory.INSTANCE; + } + + private enum GetMissionDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetMissionDataScRsp create() { + return GetMissionDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curMissionId = FieldName.forField("curMissionId", "cur_mission_id"); + + static final FieldName mainMissionList = FieldName.forField("mainMissionList", "main_mission_list"); + + static final FieldName missionList = FieldName.forField("missionList", "mission_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionEventDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionEventDataScRspOuterClass.java new file mode 100644 index 0000000..3418173 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetMissionEventDataScRspOuterClass.java @@ -0,0 +1,464 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class GetMissionEventDataScRspOuterClass { + /** + *
+   *  REMOVED FROM GAME
+   * 
+ * + * Protobuf type {@code GetMissionEventDataScRsp} + */ + public static final class GetMissionEventDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_event_id = 5; + */ + private int challengeEventId; + + /** + * optional uint32 retcode = 12; + */ + private int retcode; + + /** + * repeated .Mission mission_event_list = 13; + */ + private final RepeatedMessage missionEventList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + + private GetMissionEventDataScRsp() { + } + + /** + *
+     *  REMOVED FROM GAME
+     * 
+ * + * @return a new empty instance of {@code GetMissionEventDataScRsp} + */ + public static GetMissionEventDataScRsp newInstance() { + return new GetMissionEventDataScRsp(); + } + + /** + * optional uint32 challenge_event_id = 5; + * @return whether the challengeEventId field is set + */ + public boolean hasChallengeEventId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_event_id = 5; + * @return this + */ + public GetMissionEventDataScRsp clearChallengeEventId() { + bitField0_ &= ~0x00000001; + challengeEventId = 0; + return this; + } + + /** + * optional uint32 challenge_event_id = 5; + * @return the challengeEventId + */ + public int getChallengeEventId() { + return challengeEventId; + } + + /** + * optional uint32 challenge_event_id = 5; + * @param value the challengeEventId to set + * @return this + */ + public GetMissionEventDataScRsp setChallengeEventId(final int value) { + bitField0_ |= 0x00000001; + challengeEventId = value; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public GetMissionEventDataScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public GetMissionEventDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * repeated .Mission mission_event_list = 13; + * @return whether the missionEventList field is set + */ + public boolean hasMissionEventList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .Mission mission_event_list = 13; + * @return this + */ + public GetMissionEventDataScRsp clearMissionEventList() { + bitField0_ &= ~0x00000004; + missionEventList.clear(); + return this; + } + + /** + * repeated .Mission mission_event_list = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMissionEventList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMissionEventList() { + return missionEventList; + } + + /** + * repeated .Mission mission_event_list = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMissionEventList() { + bitField0_ |= 0x00000004; + return missionEventList; + } + + /** + * repeated .Mission mission_event_list = 13; + * @param value the missionEventList to add + * @return this + */ + public GetMissionEventDataScRsp addMissionEventList(final MissionOuterClass.Mission value) { + bitField0_ |= 0x00000004; + missionEventList.add(value); + return this; + } + + /** + * repeated .Mission mission_event_list = 13; + * @param values the missionEventList to add + * @return this + */ + public GetMissionEventDataScRsp addAllMissionEventList( + final MissionOuterClass.Mission... values) { + bitField0_ |= 0x00000004; + missionEventList.addAll(values); + return this; + } + + @Override + public GetMissionEventDataScRsp copyFrom(final GetMissionEventDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengeEventId = other.challengeEventId; + retcode = other.retcode; + missionEventList.copyFrom(other.missionEventList); + } + return this; + } + + @Override + public GetMissionEventDataScRsp mergeFrom(final GetMissionEventDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengeEventId()) { + setChallengeEventId(other.challengeEventId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasMissionEventList()) { + getMutableMissionEventList().addAll(other.missionEventList); + } + return this; + } + + @Override + public GetMissionEventDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeEventId = 0; + retcode = 0; + missionEventList.clear(); + return this; + } + + @Override + public GetMissionEventDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + missionEventList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetMissionEventDataScRsp)) { + return false; + } + GetMissionEventDataScRsp other = (GetMissionEventDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasChallengeEventId() || challengeEventId == other.challengeEventId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasMissionEventList() || missionEventList.equals(other.missionEventList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(challengeEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < missionEventList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(missionEventList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * missionEventList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionEventList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetMissionEventDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // challengeEventId + challengeEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // missionEventList + tag = input.readRepeatedMessage(missionEventList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengeEventId, challengeEventId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.missionEventList, missionEventList); + } + output.endObject(); + } + + @Override + public GetMissionEventDataScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1708969102: + case 986756412: { + if (input.isAtField(FieldNames.challengeEventId)) { + if (!input.trySkipNullValue()) { + challengeEventId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1451600340: + case 1384393654: { + if (input.isAtField(FieldNames.missionEventList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(missionEventList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetMissionEventDataScRsp clone() { + return new GetMissionEventDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetMissionEventDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetMissionEventDataScRsp(), data).checkInitialized(); + } + + public static GetMissionEventDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionEventDataScRsp(), input).checkInitialized(); + } + + public static GetMissionEventDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetMissionEventDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetMissionEventDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetMissionEventDataScRspFactory.INSTANCE; + } + + private enum GetMissionEventDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetMissionEventDataScRsp create() { + return GetMissionEventDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengeEventId = FieldName.forField("challengeEventId", "challenge_event_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName missionEventList = FieldName.forField("missionEventList", "mission_event_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java index a77165f..41495b5 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusCsReqOuterClass.java @@ -20,20 +20,15 @@ public final class GetMissionStatusCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; */ private final RepeatedInt mainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; */ private final RepeatedInt subMissionIdList = RepeatedInt.newEmptyInstance(); - /** - * repeated uint32 mission_event_id_list = 11; - */ - private final RepeatedInt missionEventIdList = RepeatedInt.newEmptyInstance(); - private GetMissionStatusCsReq() { } @@ -45,7 +40,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; * @return whether the mainMissionIdList field is set */ public boolean hasMainMissionIdList() { @@ -53,7 +48,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; * @return this */ public GetMissionStatusCsReq clearMainMissionIdList() { @@ -63,7 +58,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -77,7 +72,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -91,7 +86,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; * @param value the mainMissionIdList to add * @return this */ @@ -102,7 +97,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 main_mission_id_list = 8; + * repeated uint32 main_mission_id_list = 5; * @param values the mainMissionIdList to add * @return this */ @@ -113,7 +108,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; * @return whether the subMissionIdList field is set */ public boolean hasSubMissionIdList() { @@ -121,7 +116,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; * @return this */ public GetMissionStatusCsReq clearSubMissionIdList() { @@ -131,7 +126,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -145,7 +140,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -159,7 +154,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; * @param value the subMissionIdList to add * @return this */ @@ -170,7 +165,7 @@ public final class GetMissionStatusCsReqOuterClass { } /** - * repeated uint32 sub_mission_id_list = 10; + * repeated uint32 sub_mission_id_list = 13; * @param values the subMissionIdList to add * @return this */ @@ -180,74 +175,6 @@ public final class GetMissionStatusCsReqOuterClass { return this; } - /** - * repeated uint32 mission_event_id_list = 11; - * @return whether the missionEventIdList field is set - */ - public boolean hasMissionEventIdList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated uint32 mission_event_id_list = 11; - * @return this - */ - public GetMissionStatusCsReq clearMissionEventIdList() { - bitField0_ &= ~0x00000004; - missionEventIdList.clear(); - return this; - } - - /** - * repeated uint32 mission_event_id_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMissionEventIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getMissionEventIdList() { - return missionEventIdList; - } - - /** - * repeated uint32 mission_event_id_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableMissionEventIdList() { - bitField0_ |= 0x00000004; - return missionEventIdList; - } - - /** - * repeated uint32 mission_event_id_list = 11; - * @param value the missionEventIdList to add - * @return this - */ - public GetMissionStatusCsReq addMissionEventIdList(final int value) { - bitField0_ |= 0x00000004; - missionEventIdList.add(value); - return this; - } - - /** - * repeated uint32 mission_event_id_list = 11; - * @param values the missionEventIdList to add - * @return this - */ - public GetMissionStatusCsReq addAllMissionEventIdList(final int... values) { - bitField0_ |= 0x00000004; - missionEventIdList.addAll(values); - return this; - } - @Override public GetMissionStatusCsReq copyFrom(final GetMissionStatusCsReq other) { cachedSize = other.cachedSize; @@ -255,7 +182,6 @@ public final class GetMissionStatusCsReqOuterClass { bitField0_ = other.bitField0_; mainMissionIdList.copyFrom(other.mainMissionIdList); subMissionIdList.copyFrom(other.subMissionIdList); - missionEventIdList.copyFrom(other.missionEventIdList); } return this; } @@ -272,9 +198,6 @@ public final class GetMissionStatusCsReqOuterClass { if (other.hasSubMissionIdList()) { getMutableSubMissionIdList().addAll(other.subMissionIdList); } - if (other.hasMissionEventIdList()) { - getMutableMissionEventIdList().addAll(other.missionEventIdList); - } return this; } @@ -287,7 +210,6 @@ public final class GetMissionStatusCsReqOuterClass { bitField0_ = 0; mainMissionIdList.clear(); subMissionIdList.clear(); - missionEventIdList.clear(); return this; } @@ -300,7 +222,6 @@ public final class GetMissionStatusCsReqOuterClass { bitField0_ = 0; mainMissionIdList.clear(); subMissionIdList.clear(); - missionEventIdList.clear(); return this; } @@ -315,30 +236,23 @@ public final class GetMissionStatusCsReqOuterClass { GetMissionStatusCsReq other = (GetMissionStatusCsReq) o; return bitField0_ == other.bitField0_ && (!hasMainMissionIdList() || mainMissionIdList.equals(other.mainMissionIdList)) - && (!hasSubMissionIdList() || subMissionIdList.equals(other.subMissionIdList)) - && (!hasMissionEventIdList() || missionEventIdList.equals(other.missionEventIdList)); + && (!hasSubMissionIdList() || subMissionIdList.equals(other.subMissionIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < mainMissionIdList.length(); i++) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(mainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < subMissionIdList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(subMissionIdList.array()[i]); } } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < missionEventIdList.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(missionEventIdList.array()[i]); - } - } } @Override @@ -350,9 +264,6 @@ public final class GetMissionStatusCsReqOuterClass { if ((bitField0_ & 0x00000002) != 0) { size += (1 * subMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(subMissionIdList); } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * missionEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(missionEventIdList); - } return size; } @@ -363,29 +274,20 @@ public final class GetMissionStatusCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 42: { // mainMissionIdList [packed=true] input.readPackedUInt32(mainMissionIdList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 106) { break; } } - case 82: { + case 106: { // subMissionIdList [packed=true] input.readPackedUInt32(subMissionIdList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // missionEventIdList [packed=true] - input.readPackedUInt32(missionEventIdList, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 0) { break; } @@ -400,24 +302,18 @@ public final class GetMissionStatusCsReqOuterClass { tag = input.readTag(); break; } - case 64: { + case 40: { // mainMissionIdList [packed=false] tag = input.readRepeatedUInt32(mainMissionIdList, tag); bitField0_ |= 0x00000001; break; } - case 80: { + case 104: { // subMissionIdList [packed=false] tag = input.readRepeatedUInt32(subMissionIdList, tag); bitField0_ |= 0x00000002; break; } - case 88: { - // missionEventIdList [packed=false] - tag = input.readRepeatedUInt32(missionEventIdList, tag); - bitField0_ |= 0x00000004; - break; - } } } } @@ -431,9 +327,6 @@ public final class GetMissionStatusCsReqOuterClass { if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedUInt32(FieldNames.subMissionIdList, subMissionIdList); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.missionEventIdList, missionEventIdList); - } output.endObject(); } @@ -468,18 +361,6 @@ public final class GetMissionStatusCsReqOuterClass { } break; } - case 784770663: - case -628890838: { - if (input.isAtField(FieldNames.missionEventIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(missionEventIdList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -536,8 +417,6 @@ public final class GetMissionStatusCsReqOuterClass { static final FieldName mainMissionIdList = FieldName.forField("mainMissionIdList", "main_mission_id_list"); static final FieldName subMissionIdList = FieldName.forField("subMissionIdList", "sub_mission_id_list"); - - static final FieldName missionEventIdList = FieldName.forField("missionEventIdList", "mission_event_id_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java index 2c03101..7176bf5 100644 --- a/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetMissionStatusScRspOuterClass.java @@ -21,34 +21,39 @@ public final class GetMissionStatusScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; */ private int retcode; /** - * repeated uint32 unfinished_main_mission_id_list = 1; + * repeated uint32 curversion_finished_main_mission_id_list = 1; */ - private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt curversionFinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated uint32 finished_main_mission_id_list = 6; - */ - private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 disabled_main_mission_id_list = 13; + * repeated uint32 disabled_main_mission_id_list = 6; */ private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .Mission sub_mission_status_list = 8; + * repeated uint32 unfinished_main_mission_id_list = 7; + */ + private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 finished_main_mission_id_list = 9; + */ + private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .Mission sub_mission_status_list = 2; */ private final RepeatedMessage subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); /** - * repeated .Mission mission_event_status_list = 9; + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; */ - private final RepeatedMessage missionEventStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + private final RepeatedMessage mainMissionMcvList = RepeatedMessage.newEmptyInstance(MainMissionCustomValueOuterClass.MainMissionCustomValue.getFactory()); private GetMissionStatusScRsp() { } @@ -61,7 +66,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -69,7 +74,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @return this */ public GetMissionStatusScRsp clearRetcode() { @@ -79,7 +84,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -87,7 +92,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -98,39 +103,39 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 unfinished_main_mission_id_list = 1; - * @return whether the unfinishedMainMissionIdList field is set + * repeated uint32 curversion_finished_main_mission_id_list = 1; + * @return whether the curversionFinishedMainMissionIdList field is set */ - public boolean hasUnfinishedMainMissionIdList() { + public boolean hasCurversionFinishedMainMissionIdList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated uint32 unfinished_main_mission_id_list = 1; + * repeated uint32 curversion_finished_main_mission_id_list = 1; * @return this */ - public GetMissionStatusScRsp clearUnfinishedMainMissionIdList() { + public GetMissionStatusScRsp clearCurversionFinishedMainMissionIdList() { bitField0_ &= ~0x00000002; - unfinishedMainMissionIdList.clear(); + curversionFinishedMainMissionIdList.clear(); return this; } /** - * repeated uint32 unfinished_main_mission_id_list = 1; + * repeated uint32 curversion_finished_main_mission_id_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnfinishedMainMissionIdList()} if you want to modify it. + * Use {@link #getMutableCurversionFinishedMainMissionIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getUnfinishedMainMissionIdList() { - return unfinishedMainMissionIdList; + public RepeatedInt getCurversionFinishedMainMissionIdList() { + return curversionFinishedMainMissionIdList; } /** - * repeated uint32 unfinished_main_mission_id_list = 1; + * repeated uint32 curversion_finished_main_mission_id_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -138,121 +143,53 @@ public final class GetMissionStatusScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableUnfinishedMainMissionIdList() { + public RepeatedInt getMutableCurversionFinishedMainMissionIdList() { bitField0_ |= 0x00000002; - return unfinishedMainMissionIdList; + return curversionFinishedMainMissionIdList; } /** - * repeated uint32 unfinished_main_mission_id_list = 1; - * @param value the unfinishedMainMissionIdList to add + * repeated uint32 curversion_finished_main_mission_id_list = 1; + * @param value the curversionFinishedMainMissionIdList to add * @return this */ - public GetMissionStatusScRsp addUnfinishedMainMissionIdList(final int value) { + public GetMissionStatusScRsp addCurversionFinishedMainMissionIdList(final int value) { bitField0_ |= 0x00000002; - unfinishedMainMissionIdList.add(value); + curversionFinishedMainMissionIdList.add(value); return this; } /** - * repeated uint32 unfinished_main_mission_id_list = 1; - * @param values the unfinishedMainMissionIdList to add + * repeated uint32 curversion_finished_main_mission_id_list = 1; + * @param values the curversionFinishedMainMissionIdList to add * @return this */ - public GetMissionStatusScRsp addAllUnfinishedMainMissionIdList(final int... values) { + public GetMissionStatusScRsp addAllCurversionFinishedMainMissionIdList(final int... values) { bitField0_ |= 0x00000002; - unfinishedMainMissionIdList.addAll(values); + curversionFinishedMainMissionIdList.addAll(values); return this; } /** - * repeated uint32 finished_main_mission_id_list = 6; - * @return whether the finishedMainMissionIdList field is set + * repeated uint32 disabled_main_mission_id_list = 6; + * @return whether the disabledMainMissionIdList field is set */ - public boolean hasFinishedMainMissionIdList() { + public boolean hasDisabledMainMissionIdList() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 finished_main_mission_id_list = 6; - * @return this - */ - public GetMissionStatusScRsp clearFinishedMainMissionIdList() { - bitField0_ &= ~0x00000004; - finishedMainMissionIdList.clear(); - return this; - } - - /** - * repeated uint32 finished_main_mission_id_list = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableFinishedMainMissionIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getFinishedMainMissionIdList() { - return finishedMainMissionIdList; - } - - /** - * repeated uint32 finished_main_mission_id_list = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableFinishedMainMissionIdList() { - bitField0_ |= 0x00000004; - return finishedMainMissionIdList; - } - - /** - * repeated uint32 finished_main_mission_id_list = 6; - * @param value the finishedMainMissionIdList to add - * @return this - */ - public GetMissionStatusScRsp addFinishedMainMissionIdList(final int value) { - bitField0_ |= 0x00000004; - finishedMainMissionIdList.add(value); - return this; - } - - /** - * repeated uint32 finished_main_mission_id_list = 6; - * @param values the finishedMainMissionIdList to add - * @return this - */ - public GetMissionStatusScRsp addAllFinishedMainMissionIdList(final int... values) { - bitField0_ |= 0x00000004; - finishedMainMissionIdList.addAll(values); - return this; - } - - /** - * repeated uint32 disabled_main_mission_id_list = 13; - * @return whether the disabledMainMissionIdList field is set - */ - public boolean hasDisabledMainMissionIdList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 disabled_main_mission_id_list = 13; + * repeated uint32 disabled_main_mission_id_list = 6; * @return this */ public GetMissionStatusScRsp clearDisabledMainMissionIdList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; disabledMainMissionIdList.clear(); return this; } /** - * repeated uint32 disabled_main_mission_id_list = 13; + * repeated uint32 disabled_main_mission_id_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -266,7 +203,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated uint32 disabled_main_mission_id_list = 13; + * repeated uint32 disabled_main_mission_id_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -275,52 +212,188 @@ public final class GetMissionStatusScRspOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableDisabledMainMissionIdList() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return disabledMainMissionIdList; } /** - * repeated uint32 disabled_main_mission_id_list = 13; + * repeated uint32 disabled_main_mission_id_list = 6; * @param value the disabledMainMissionIdList to add * @return this */ public GetMissionStatusScRsp addDisabledMainMissionIdList(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; disabledMainMissionIdList.add(value); return this; } /** - * repeated uint32 disabled_main_mission_id_list = 13; + * repeated uint32 disabled_main_mission_id_list = 6; * @param values the disabledMainMissionIdList to add * @return this */ public GetMissionStatusScRsp addAllDisabledMainMissionIdList(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; disabledMainMissionIdList.addAll(values); return this; } /** - * repeated .Mission sub_mission_status_list = 8; - * @return whether the subMissionStatusList field is set + * repeated uint32 unfinished_main_mission_id_list = 7; + * @return whether the unfinishedMainMissionIdList field is set */ - public boolean hasSubMissionStatusList() { + public boolean hasUnfinishedMainMissionIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 7; + * @return this + */ + public GetMissionStatusScRsp clearUnfinishedMainMissionIdList() { + bitField0_ &= ~0x00000008; + unfinishedMainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnfinishedMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnfinishedMainMissionIdList() { + return unfinishedMainMissionIdList; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnfinishedMainMissionIdList() { + bitField0_ |= 0x00000008; + return unfinishedMainMissionIdList; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 7; + * @param value the unfinishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addUnfinishedMainMissionIdList(final int value) { + bitField0_ |= 0x00000008; + unfinishedMainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 unfinished_main_mission_id_list = 7; + * @param values the unfinishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addAllUnfinishedMainMissionIdList(final int... values) { + bitField0_ |= 0x00000008; + unfinishedMainMissionIdList.addAll(values); + return this; + } + + /** + * repeated uint32 finished_main_mission_id_list = 9; + * @return whether the finishedMainMissionIdList field is set + */ + public boolean hasFinishedMainMissionIdList() { return (bitField0_ & 0x00000010) != 0; } /** - * repeated .Mission sub_mission_status_list = 8; + * repeated uint32 finished_main_mission_id_list = 9; + * @return this + */ + public GetMissionStatusScRsp clearFinishedMainMissionIdList() { + bitField0_ &= ~0x00000010; + finishedMainMissionIdList.clear(); + return this; + } + + /** + * repeated uint32 finished_main_mission_id_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFinishedMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFinishedMainMissionIdList() { + return finishedMainMissionIdList; + } + + /** + * repeated uint32 finished_main_mission_id_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableFinishedMainMissionIdList() { + bitField0_ |= 0x00000010; + return finishedMainMissionIdList; + } + + /** + * repeated uint32 finished_main_mission_id_list = 9; + * @param value the finishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addFinishedMainMissionIdList(final int value) { + bitField0_ |= 0x00000010; + finishedMainMissionIdList.add(value); + return this; + } + + /** + * repeated uint32 finished_main_mission_id_list = 9; + * @param values the finishedMainMissionIdList to add + * @return this + */ + public GetMissionStatusScRsp addAllFinishedMainMissionIdList(final int... values) { + bitField0_ |= 0x00000010; + finishedMainMissionIdList.addAll(values); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 2; + * @return whether the subMissionStatusList field is set + */ + public boolean hasSubMissionStatusList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated .Mission sub_mission_status_list = 2; * @return this */ public GetMissionStatusScRsp clearSubMissionStatusList() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; subMissionStatusList.clear(); return this; } /** - * repeated .Mission sub_mission_status_list = 8; + * repeated .Mission sub_mission_status_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -334,7 +407,7 @@ public final class GetMissionStatusScRspOuterClass { } /** - * repeated .Mission sub_mission_status_list = 8; + * repeated .Mission sub_mission_status_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -343,67 +416,68 @@ public final class GetMissionStatusScRspOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableSubMissionStatusList() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return subMissionStatusList; } /** - * repeated .Mission sub_mission_status_list = 8; + * repeated .Mission sub_mission_status_list = 2; * @param value the subMissionStatusList to add * @return this */ public GetMissionStatusScRsp addSubMissionStatusList(final MissionOuterClass.Mission value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; subMissionStatusList.add(value); return this; } /** - * repeated .Mission sub_mission_status_list = 8; + * repeated .Mission sub_mission_status_list = 2; * @param values the subMissionStatusList to add * @return this */ public GetMissionStatusScRsp addAllSubMissionStatusList( final MissionOuterClass.Mission... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; subMissionStatusList.addAll(values); return this; } /** - * repeated .Mission mission_event_status_list = 9; - * @return whether the missionEventStatusList field is set + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; + * @return whether the mainMissionMcvList field is set */ - public boolean hasMissionEventStatusList() { - return (bitField0_ & 0x00000020) != 0; + public boolean hasMainMissionMcvList() { + return (bitField0_ & 0x00000040) != 0; } /** - * repeated .Mission mission_event_status_list = 9; + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; * @return this */ - public GetMissionStatusScRsp clearMissionEventStatusList() { - bitField0_ &= ~0x00000020; - missionEventStatusList.clear(); + public GetMissionStatusScRsp clearMainMissionMcvList() { + bitField0_ &= ~0x00000040; + mainMissionMcvList.clear(); return this; } /** - * repeated .Mission mission_event_status_list = 9; + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMissionEventStatusList()} if you want to modify it. + * Use {@link #getMutableMainMissionMcvList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMissionEventStatusList() { - return missionEventStatusList; + public RepeatedMessage getMainMissionMcvList( + ) { + return mainMissionMcvList; } /** - * repeated .Mission mission_event_status_list = 9; + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -411,31 +485,33 @@ public final class GetMissionStatusScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMissionEventStatusList() { - bitField0_ |= 0x00000020; - return missionEventStatusList; + public RepeatedMessage getMutableMainMissionMcvList( + ) { + bitField0_ |= 0x00000040; + return mainMissionMcvList; } /** - * repeated .Mission mission_event_status_list = 9; - * @param value the missionEventStatusList to add + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; + * @param value the mainMissionMcvList to add * @return this */ - public GetMissionStatusScRsp addMissionEventStatusList(final MissionOuterClass.Mission value) { - bitField0_ |= 0x00000020; - missionEventStatusList.add(value); + public GetMissionStatusScRsp addMainMissionMcvList( + final MainMissionCustomValueOuterClass.MainMissionCustomValue value) { + bitField0_ |= 0x00000040; + mainMissionMcvList.add(value); return this; } /** - * repeated .Mission mission_event_status_list = 9; - * @param values the missionEventStatusList to add + * repeated .MainMissionCustomValue main_mission_mcv_list = 11; + * @param values the mainMissionMcvList to add * @return this */ - public GetMissionStatusScRsp addAllMissionEventStatusList( - final MissionOuterClass.Mission... values) { - bitField0_ |= 0x00000020; - missionEventStatusList.addAll(values); + public GetMissionStatusScRsp addAllMainMissionMcvList( + final MainMissionCustomValueOuterClass.MainMissionCustomValue... values) { + bitField0_ |= 0x00000040; + mainMissionMcvList.addAll(values); return this; } @@ -445,11 +521,12 @@ public final class GetMissionStatusScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; + curversionFinishedMainMissionIdList.copyFrom(other.curversionFinishedMainMissionIdList); + disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); unfinishedMainMissionIdList.copyFrom(other.unfinishedMainMissionIdList); finishedMainMissionIdList.copyFrom(other.finishedMainMissionIdList); - disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); subMissionStatusList.copyFrom(other.subMissionStatusList); - missionEventStatusList.copyFrom(other.missionEventStatusList); + mainMissionMcvList.copyFrom(other.mainMissionMcvList); } return this; } @@ -463,20 +540,23 @@ public final class GetMissionStatusScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurversionFinishedMainMissionIdList()) { + getMutableCurversionFinishedMainMissionIdList().addAll(other.curversionFinishedMainMissionIdList); + } + if (other.hasDisabledMainMissionIdList()) { + getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList); + } if (other.hasUnfinishedMainMissionIdList()) { getMutableUnfinishedMainMissionIdList().addAll(other.unfinishedMainMissionIdList); } if (other.hasFinishedMainMissionIdList()) { getMutableFinishedMainMissionIdList().addAll(other.finishedMainMissionIdList); } - if (other.hasDisabledMainMissionIdList()) { - getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList); - } if (other.hasSubMissionStatusList()) { getMutableSubMissionStatusList().addAll(other.subMissionStatusList); } - if (other.hasMissionEventStatusList()) { - getMutableMissionEventStatusList().addAll(other.missionEventStatusList); + if (other.hasMainMissionMcvList()) { + getMutableMainMissionMcvList().addAll(other.mainMissionMcvList); } return this; } @@ -489,11 +569,12 @@ public final class GetMissionStatusScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; + curversionFinishedMainMissionIdList.clear(); + disabledMainMissionIdList.clear(); unfinishedMainMissionIdList.clear(); finishedMainMissionIdList.clear(); - disabledMainMissionIdList.clear(); subMissionStatusList.clear(); - missionEventStatusList.clear(); + mainMissionMcvList.clear(); return this; } @@ -504,11 +585,12 @@ public final class GetMissionStatusScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + curversionFinishedMainMissionIdList.clear(); + disabledMainMissionIdList.clear(); unfinishedMainMissionIdList.clear(); finishedMainMissionIdList.clear(); - disabledMainMissionIdList.clear(); subMissionStatusList.clearQuick(); - missionEventStatusList.clearQuick(); + mainMissionMcvList.clearQuick(); return this; } @@ -523,47 +605,54 @@ public final class GetMissionStatusScRspOuterClass { GetMissionStatusScRsp other = (GetMissionStatusScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) + && (!hasCurversionFinishedMainMissionIdList() || curversionFinishedMainMissionIdList.equals(other.curversionFinishedMainMissionIdList)) + && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList)) && (!hasUnfinishedMainMissionIdList() || unfinishedMainMissionIdList.equals(other.unfinishedMainMissionIdList)) && (!hasFinishedMainMissionIdList() || finishedMainMissionIdList.equals(other.finishedMainMissionIdList)) - && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList)) && (!hasSubMissionStatusList() || subMissionStatusList.equals(other.subMissionStatusList)) - && (!hasMissionEventStatusList() || missionEventStatusList.equals(other.missionEventStatusList)); + && (!hasMainMissionMcvList() || mainMissionMcvList.equals(other.mainMissionMcvList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { + for (int i = 0; i < curversionFinishedMainMissionIdList.length(); i++) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); + output.writeUInt32NoTag(curversionFinishedMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < finishedMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]); - } - } - if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < disabledMainMissionIdList.length(); i++) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]); } } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); + } + } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < subMissionStatusList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(subMissionStatusList.get(i)); + for (int i = 0; i < finishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < missionEventStatusList.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(missionEventStatusList.get(i)); + for (int i = 0; i < subMissionStatusList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(subMissionStatusList.get(i)); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < mainMissionMcvList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(mainMissionMcvList.get(i)); } } } @@ -575,19 +664,22 @@ public final class GetMissionStatusScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList); + size += (1 * curversionFinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(curversionFinishedMainMissionIdList); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList); - } - if ((bitField0_ & 0x00000008) != 0) { size += (1 * disabledMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disabledMainMissionIdList); } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList); + } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList); + size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * missionEventStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(missionEventStatusList); + size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * mainMissionMcvList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionMcvList); } return size; } @@ -599,7 +691,7 @@ public final class GetMissionStatusScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; @@ -609,8 +701,8 @@ public final class GetMissionStatusScRspOuterClass { } } case 10: { - // unfinishedMainMissionIdList [packed=true] - input.readPackedUInt32(unfinishedMainMissionIdList, tag); + // curversionFinishedMainMissionIdList [packed=true] + input.readPackedUInt32(curversionFinishedMainMissionIdList, tag); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 50) { @@ -618,35 +710,44 @@ public final class GetMissionStatusScRspOuterClass { } } case 50: { - // finishedMainMissionIdList [packed=true] - input.readPackedUInt32(finishedMainMissionIdList, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { // disabledMainMissionIdList [packed=true] input.readPackedUInt32(disabledMainMissionIdList, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 66) { + if (tag != 58) { break; } } - case 66: { - // subMissionStatusList - tag = input.readRepeatedMessage(subMissionStatusList, tag); - bitField0_ |= 0x00000010; + case 58: { + // unfinishedMainMissionIdList [packed=true] + input.readPackedUInt32(unfinishedMainMissionIdList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 74) { break; } } case 74: { - // missionEventStatusList - tag = input.readRepeatedMessage(missionEventStatusList, tag); + // finishedMainMissionIdList [packed=true] + input.readPackedUInt32(finishedMainMissionIdList, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // subMissionStatusList + tag = input.readRepeatedMessage(subMissionStatusList, tag); bitField0_ |= 0x00000020; + if (tag != 90) { + break; + } + } + case 90: { + // mainMissionMcvList + tag = input.readRepeatedMessage(mainMissionMcvList, tag); + bitField0_ |= 0x00000040; if (tag != 0) { break; } @@ -662,23 +763,29 @@ public final class GetMissionStatusScRspOuterClass { break; } case 8: { - // unfinishedMainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); + // curversionFinishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(curversionFinishedMainMissionIdList, tag); bitField0_ |= 0x00000002; break; } case 48: { - // finishedMainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag); + // disabledMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); bitField0_ |= 0x00000004; break; } - case 104: { - // disabledMainMissionIdList [packed=false] - tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); + case 56: { + // unfinishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); bitField0_ |= 0x00000008; break; } + case 72: { + // finishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag); + bitField0_ |= 0x00000010; + break; + } } } } @@ -690,19 +797,22 @@ public final class GetMissionStatusScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList); + output.writeRepeatedUInt32(FieldNames.curversionFinishedMainMissionIdList, curversionFinishedMainMissionIdList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedUInt32(FieldNames.disabledMainMissionIdList, disabledMainMissionIdList); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList); + output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.missionEventStatusList, missionEventStatusList); + output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedMessage(FieldNames.mainMissionMcvList, mainMissionMcvList); } output.endObject(); } @@ -725,11 +835,11 @@ public final class GetMissionStatusScRspOuterClass { } break; } - case 61133057: - case 1704637629: { - if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) { + case -1934239294: + case -2039670449: { + if (input.isAtField(FieldNames.curversionFinishedMainMissionIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(unfinishedMainMissionIdList); + input.readRepeatedUInt32(curversionFinishedMainMissionIdList); bitField0_ |= 0x00000002; } } else { @@ -737,23 +847,23 @@ public final class GetMissionStatusScRspOuterClass { } break; } - case 104231290: - case -1929023306: { - if (input.isAtField(FieldNames.finishedMainMissionIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(finishedMainMissionIdList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 83823792: case 1929478380: { if (input.isAtField(FieldNames.disabledMainMissionIdList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(disabledMainMissionIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 61133057: + case 1704637629: { + if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unfinishedMainMissionIdList); bitField0_ |= 0x00000008; } } else { @@ -761,24 +871,36 @@ public final class GetMissionStatusScRspOuterClass { } break; } + case 104231290: + case -1929023306: { + if (input.isAtField(FieldNames.finishedMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(finishedMainMissionIdList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } case -1842850820: case 1165580825: { if (input.isAtField(FieldNames.subMissionStatusList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(subMissionStatusList); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); } break; } - case 582053566: - case 1494751923: { - if (input.isAtField(FieldNames.missionEventStatusList)) { + case 905073995: + case -1773053194: { + if (input.isAtField(FieldNames.mainMissionMcvList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(missionEventStatusList); - bitField0_ |= 0x00000020; + input.readRepeatedMessage(mainMissionMcvList); + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -840,15 +962,17 @@ public final class GetMissionStatusScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curversionFinishedMainMissionIdList = FieldName.forField("curversionFinishedMainMissionIdList", "curversion_finished_main_mission_id_list"); + + static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list"); + static final FieldName unfinishedMainMissionIdList = FieldName.forField("unfinishedMainMissionIdList", "unfinished_main_mission_id_list"); static final FieldName finishedMainMissionIdList = FieldName.forField("finishedMainMissionIdList", "finished_main_mission_id_list"); - static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list"); - static final FieldName subMissionStatusList = FieldName.forField("subMissionStatusList", "sub_mission_status_list"); - static final FieldName missionEventStatusList = FieldName.forField("missionEventStatusList", "mission_event_status_list"); + static final FieldName mainMissionMcvList = FieldName.forField("mainMissionMcvList", "main_mission_mcv_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetMultiPathAvatarInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetMultiPathAvatarInfoScRspOuterClass.java deleted file mode 100644 index 77a9327..0000000 --- a/src/generated/main/emu/lunarcore/proto/GetMultiPathAvatarInfoScRspOuterClass.java +++ /dev/null @@ -1,974 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class GetMultiPathAvatarInfoScRspOuterClass { - /** - * Protobuf type {@code GetMultiPathAvatarInfoScRsp} - */ - public static final class GetMultiPathAvatarInfoScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * repeated uint32 basic_type_id_list = 4; - */ - private final RepeatedInt basicTypeIdList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - */ - private final RepeatedMessage multiPathAvatarInfoList = RepeatedMessage.newEmptyInstance(MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo.getFactory()); - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - */ - private final RepeatedMessage curAvatarPath = RepeatedMessage.newEmptyInstance(CurAvatarPathEntry.getFactory()); - - private GetMultiPathAvatarInfoScRsp() { - } - - /** - * @return a new empty instance of {@code GetMultiPathAvatarInfoScRsp} - */ - public static GetMultiPathAvatarInfoScRsp newInstance() { - return new GetMultiPathAvatarInfoScRsp(); - } - - /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 3; - * @return this - */ - public GetMultiPathAvatarInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public GetMultiPathAvatarInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * repeated uint32 basic_type_id_list = 4; - * @return whether the basicTypeIdList field is set - */ - public boolean hasBasicTypeIdList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated uint32 basic_type_id_list = 4; - * @return this - */ - public GetMultiPathAvatarInfoScRsp clearBasicTypeIdList() { - bitField0_ &= ~0x00000002; - basicTypeIdList.clear(); - return this; - } - - /** - * repeated uint32 basic_type_id_list = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBasicTypeIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBasicTypeIdList() { - return basicTypeIdList; - } - - /** - * repeated uint32 basic_type_id_list = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableBasicTypeIdList() { - bitField0_ |= 0x00000002; - return basicTypeIdList; - } - - /** - * repeated uint32 basic_type_id_list = 4; - * @param value the basicTypeIdList to add - * @return this - */ - public GetMultiPathAvatarInfoScRsp addBasicTypeIdList(final int value) { - bitField0_ |= 0x00000002; - basicTypeIdList.add(value); - return this; - } - - /** - * repeated uint32 basic_type_id_list = 4; - * @param values the basicTypeIdList to add - * @return this - */ - public GetMultiPathAvatarInfoScRsp addAllBasicTypeIdList(final int... values) { - bitField0_ |= 0x00000002; - basicTypeIdList.addAll(values); - return this; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - * @return whether the multiPathAvatarInfoList field is set - */ - public boolean hasMultiPathAvatarInfoList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - * @return this - */ - public GetMultiPathAvatarInfoScRsp clearMultiPathAvatarInfoList() { - bitField0_ &= ~0x00000004; - multiPathAvatarInfoList.clear(); - return this; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMultiPathAvatarInfoList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMultiPathAvatarInfoList( - ) { - return multiPathAvatarInfoList; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMultiPathAvatarInfoList( - ) { - bitField0_ |= 0x00000004; - return multiPathAvatarInfoList; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - * @param value the multiPathAvatarInfoList to add - * @return this - */ - public GetMultiPathAvatarInfoScRsp addMultiPathAvatarInfoList( - final MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo value) { - bitField0_ |= 0x00000004; - multiPathAvatarInfoList.add(value); - return this; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 2; - * @param values the multiPathAvatarInfoList to add - * @return this - */ - public GetMultiPathAvatarInfoScRsp addAllMultiPathAvatarInfoList( - final MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo... values) { - bitField0_ |= 0x00000004; - multiPathAvatarInfoList.addAll(values); - return this; - } - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - * @return whether the curAvatarPath field is set - */ - public boolean hasCurAvatarPath() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - * @return this - */ - public GetMultiPathAvatarInfoScRsp clearCurAvatarPath() { - bitField0_ &= ~0x00000008; - curAvatarPath.clear(); - return this; - } - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCurAvatarPath()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getCurAvatarPath() { - return curAvatarPath; - } - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableCurAvatarPath() { - bitField0_ |= 0x00000008; - return curAvatarPath; - } - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - * @param value the curAvatarPath to add - * @return this - */ - public GetMultiPathAvatarInfoScRsp addCurAvatarPath(final CurAvatarPathEntry value) { - bitField0_ |= 0x00000008; - curAvatarPath.add(value); - return this; - } - - /** - * repeated .GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry cur_avatar_path = 13; - * @param values the curAvatarPath to add - * @return this - */ - public GetMultiPathAvatarInfoScRsp addAllCurAvatarPath(final CurAvatarPathEntry... values) { - bitField0_ |= 0x00000008; - curAvatarPath.addAll(values); - return this; - } - - @Override - public GetMultiPathAvatarInfoScRsp copyFrom(final GetMultiPathAvatarInfoScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - basicTypeIdList.copyFrom(other.basicTypeIdList); - multiPathAvatarInfoList.copyFrom(other.multiPathAvatarInfoList); - curAvatarPath.copyFrom(other.curAvatarPath); - } - return this; - } - - @Override - public GetMultiPathAvatarInfoScRsp mergeFrom(final GetMultiPathAvatarInfoScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasBasicTypeIdList()) { - getMutableBasicTypeIdList().addAll(other.basicTypeIdList); - } - if (other.hasMultiPathAvatarInfoList()) { - getMutableMultiPathAvatarInfoList().addAll(other.multiPathAvatarInfoList); - } - if (other.hasCurAvatarPath()) { - getMutableCurAvatarPath().addAll(other.curAvatarPath); - } - return this; - } - - @Override - public GetMultiPathAvatarInfoScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - basicTypeIdList.clear(); - multiPathAvatarInfoList.clear(); - curAvatarPath.clear(); - return this; - } - - @Override - public GetMultiPathAvatarInfoScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - basicTypeIdList.clear(); - multiPathAvatarInfoList.clearQuick(); - curAvatarPath.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof GetMultiPathAvatarInfoScRsp)) { - return false; - } - GetMultiPathAvatarInfoScRsp other = (GetMultiPathAvatarInfoScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasBasicTypeIdList() || basicTypeIdList.equals(other.basicTypeIdList)) - && (!hasMultiPathAvatarInfoList() || multiPathAvatarInfoList.equals(other.multiPathAvatarInfoList)) - && (!hasCurAvatarPath() || curAvatarPath.equals(other.curAvatarPath)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < basicTypeIdList.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(basicTypeIdList.array()[i]); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < multiPathAvatarInfoList.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(multiPathAvatarInfoList.get(i)); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < curAvatarPath.length(); i++) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(curAvatarPath.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * basicTypeIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(basicTypeIdList); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * multiPathAvatarInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(multiPathAvatarInfoList); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * curAvatarPath.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(curAvatarPath); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public GetMultiPathAvatarInfoScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // basicTypeIdList [packed=true] - input.readPackedUInt32(basicTypeIdList, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // multiPathAvatarInfoList - tag = input.readRepeatedMessage(multiPathAvatarInfoList, tag); - bitField0_ |= 0x00000004; - if (tag != 106) { - break; - } - } - case 106: { - // curAvatarPath - tag = input.readRepeatedMessage(curAvatarPath, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 32: { - // basicTypeIdList [packed=false] - tag = input.readRepeatedUInt32(basicTypeIdList, tag); - bitField0_ |= 0x00000002; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.basicTypeIdList, basicTypeIdList); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.multiPathAvatarInfoList, multiPathAvatarInfoList); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.curAvatarPath, curAvatarPath); - } - output.endObject(); - } - - @Override - public GetMultiPathAvatarInfoScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -332160255: - case 99090862: { - if (input.isAtField(FieldNames.basicTypeIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(basicTypeIdList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1198530685: - case -2042493827: { - if (input.isAtField(FieldNames.multiPathAvatarInfoList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(multiPathAvatarInfoList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1836831614: - case 589876172: { - if (input.isAtField(FieldNames.curAvatarPath)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(curAvatarPath); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public GetMultiPathAvatarInfoScRsp clone() { - return new GetMultiPathAvatarInfoScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static GetMultiPathAvatarInfoScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetMultiPathAvatarInfoScRsp(), data).checkInitialized(); - } - - public static GetMultiPathAvatarInfoScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetMultiPathAvatarInfoScRsp(), input).checkInitialized(); - } - - public static GetMultiPathAvatarInfoScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetMultiPathAvatarInfoScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating GetMultiPathAvatarInfoScRsp messages - */ - public static MessageFactory getFactory() { - return GetMultiPathAvatarInfoScRspFactory.INSTANCE; - } - - /** - * Protobuf type {@code CurAvatarPathEntry} - */ - public static final class CurAvatarPathEntry extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 key = 1; - */ - private int key; - - /** - * optional .MultiPathAvatarType value = 2; - */ - private int value_; - - private CurAvatarPathEntry() { - } - - /** - * @return a new empty instance of {@code CurAvatarPathEntry} - */ - public static CurAvatarPathEntry newInstance() { - return new CurAvatarPathEntry(); - } - - /** - * optional uint32 key = 1; - * @return whether the key field is set - */ - public boolean hasKey() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 key = 1; - * @return this - */ - public CurAvatarPathEntry clearKey() { - bitField0_ &= ~0x00000001; - key = 0; - return this; - } - - /** - * optional uint32 key = 1; - * @return the key - */ - public int getKey() { - return key; - } - - /** - * optional uint32 key = 1; - * @param value the key to set - * @return this - */ - public CurAvatarPathEntry setKey(final int value) { - bitField0_ |= 0x00000001; - key = value; - return this; - } - - /** - * optional .MultiPathAvatarType value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .MultiPathAvatarType value = 2; - * @return this - */ - public CurAvatarPathEntry clearValue() { - bitField0_ &= ~0x00000002; - value_ = 0; - return this; - } - - /** - * optional .MultiPathAvatarType value = 2; - * @return the value_ - */ - public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getValue() { - return MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value_); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link CurAvatarPathEntry#getValue()}.getNumber(). - * - * @return numeric wire representation - */ - public int getValueValue() { - return value_; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link MultiPathAvatarTypeOuterClass.MultiPathAvatarType}. Setting an invalid value - * can cause {@link CurAvatarPathEntry#getValue()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public CurAvatarPathEntry setValueValue(final int value) { - bitField0_ |= 0x00000002; - value_ = value; - return this; - } - - /** - * optional .MultiPathAvatarType value = 2; - * @param value the value_ to set - * @return this - */ - public CurAvatarPathEntry setValue( - final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value) { - bitField0_ |= 0x00000002; - value_ = value.getNumber(); - return this; - } - - @Override - public CurAvatarPathEntry copyFrom(final CurAvatarPathEntry other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - key = other.key; - value_ = other.value_; - } - return this; - } - - @Override - public CurAvatarPathEntry mergeFrom(final CurAvatarPathEntry other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKey()) { - setKey(other.key); - } - if (other.hasValue()) { - setValueValue(other.value_); - } - return this; - } - - @Override - public CurAvatarPathEntry clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - key = 0; - value_ = 0; - return this; - } - - @Override - public CurAvatarPathEntry clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof CurAvatarPathEntry)) { - return false; - } - CurAvatarPathEntry other = (CurAvatarPathEntry) o; - return bitField0_ == other.bitField0_ - && (!hasKey() || key == other.key) - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeEnumNoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public CurAvatarPathEntry mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // key - key = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // value_ - final int value = input.readInt32(); - if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { - value_ = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.key, key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.value_, value_, MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); - } - output.endObject(); - } - - @Override - public CurAvatarPathEntry mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106079: { - if (input.isAtField(FieldNames.key)) { - if (!input.trySkipNullValue()) { - key = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value = input.readEnum(MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); - if (value != null) { - value_ = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public CurAvatarPathEntry clone() { - return new CurAvatarPathEntry().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static CurAvatarPathEntry parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new CurAvatarPathEntry(), data).checkInitialized(); - } - - public static CurAvatarPathEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new CurAvatarPathEntry(), input).checkInitialized(); - } - - public static CurAvatarPathEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new CurAvatarPathEntry(), input).checkInitialized(); - } - - /** - * @return factory for creating CurAvatarPathEntry messages - */ - public static MessageFactory getFactory() { - return CurAvatarPathEntryFactory.INSTANCE; - } - - private enum CurAvatarPathEntryFactory implements MessageFactory { - INSTANCE; - - @Override - public CurAvatarPathEntry create() { - return CurAvatarPathEntry.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName key = FieldName.forField("key"); - - static final FieldName value_ = FieldName.forField("value"); - } - } - - private enum GetMultiPathAvatarInfoScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public GetMultiPathAvatarInfoScRsp create() { - return GetMultiPathAvatarInfoScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName basicTypeIdList = FieldName.forField("basicTypeIdList", "basic_type_id_list"); - - static final FieldName multiPathAvatarInfoList = FieldName.forField("multiPathAvatarInfoList", "multi_path_avatar_info_list"); - - static final FieldName curAvatarPath = FieldName.forField("curAvatarPath", "cur_avatar_path"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java index 53edf8f..ff2235d 100644 --- a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_id = 8; + * optional uint32 npc_id = 12; */ private int npcId; @@ -34,7 +34,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 8; + * optional uint32 npc_id = 12; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -42,7 +42,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 8; + * optional uint32 npc_id = 12; * @return this */ public GetNpcTakenRewardCsReq clearNpcId() { @@ -52,7 +52,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 8; + * optional uint32 npc_id = 12; * @return the npcId */ public int getNpcId() { @@ -60,7 +60,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { } /** - * optional uint32 npc_id = 8; + * optional uint32 npc_id = 12; * @param value the npcId to set * @return this */ @@ -129,7 +129,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(npcId); } } @@ -150,7 +150,7 @@ public final class GetNpcTakenRewardCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 96: { // npcId npcId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java index 4ada4c4..81ecc0f 100644 --- a/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetNpcTakenRewardScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetNpcTakenRewardScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional uint32 npc_id = 14; + * optional uint32 npc_id = 15; */ private int npcId; @@ -39,7 +39,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return this */ public GetNpcTakenRewardScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 npc_id = 14; + * optional uint32 npc_id = 15; * @return whether the npcId field is set */ public boolean hasNpcId() { @@ -84,7 +84,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 npc_id = 14; + * optional uint32 npc_id = 15; * @return this */ public GetNpcTakenRewardScRsp clearNpcId() { @@ -94,7 +94,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 npc_id = 14; + * optional uint32 npc_id = 15; * @return the npcId */ public int getNpcId() { @@ -102,7 +102,7 @@ public final class GetNpcTakenRewardScRspOuterClass { } /** - * optional uint32 npc_id = 14; + * optional uint32 npc_id = 15; * @param value the npcId to set * @return this */ @@ -177,11 +177,11 @@ public final class GetNpcTakenRewardScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(npcId); } } @@ -205,16 +205,16 @@ public final class GetNpcTakenRewardScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 120) { break; } } - case 112: { + case 120: { // npcId npcId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetOfferingInfoCsReqOuterClass.java similarity index 53% rename from src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetOfferingInfoCsReqOuterClass.java index 496fdbb..eab1041 100644 --- a/src/generated/main/emu/lunarcore/proto/PickRogueAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetOfferingInfoCsReqOuterClass.java @@ -12,62 +12,62 @@ import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedInt; -public final class PickRogueAvatarCsReqOuterClass { +public final class GetOfferingInfoCsReqOuterClass { /** - * Protobuf type {@code PickRogueAvatarCsReq} + * Protobuf type {@code GetOfferingInfoCsReq} */ - public static final class PickRogueAvatarCsReq extends ProtoMessage implements Cloneable { + public static final class GetOfferingInfoCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 base_avatar_list = 2; + * repeated uint32 offering_id_list = 12; */ - private final RepeatedInt baseAvatarList = RepeatedInt.newEmptyInstance(); + private final RepeatedInt offeringIdList = RepeatedInt.newEmptyInstance(); - private PickRogueAvatarCsReq() { + private GetOfferingInfoCsReq() { } /** - * @return a new empty instance of {@code PickRogueAvatarCsReq} + * @return a new empty instance of {@code GetOfferingInfoCsReq} */ - public static PickRogueAvatarCsReq newInstance() { - return new PickRogueAvatarCsReq(); + public static GetOfferingInfoCsReq newInstance() { + return new GetOfferingInfoCsReq(); } /** - * repeated uint32 base_avatar_list = 2; - * @return whether the baseAvatarList field is set + * repeated uint32 offering_id_list = 12; + * @return whether the offeringIdList field is set */ - public boolean hasBaseAvatarList() { + public boolean hasOfferingIdList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 base_avatar_list = 2; + * repeated uint32 offering_id_list = 12; * @return this */ - public PickRogueAvatarCsReq clearBaseAvatarList() { + public GetOfferingInfoCsReq clearOfferingIdList() { bitField0_ &= ~0x00000001; - baseAvatarList.clear(); + offeringIdList.clear(); return this; } /** - * repeated uint32 base_avatar_list = 2; + * repeated uint32 offering_id_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBaseAvatarList()} if you want to modify it. + * Use {@link #getMutableOfferingIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getBaseAvatarList() { - return baseAvatarList; + public RepeatedInt getOfferingIdList() { + return offeringIdList; } /** - * repeated uint32 base_avatar_list = 2; + * repeated uint32 offering_id_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75,74 +75,74 @@ public final class PickRogueAvatarCsReqOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableBaseAvatarList() { + public RepeatedInt getMutableOfferingIdList() { bitField0_ |= 0x00000001; - return baseAvatarList; + return offeringIdList; } /** - * repeated uint32 base_avatar_list = 2; - * @param value the baseAvatarList to add + * repeated uint32 offering_id_list = 12; + * @param value the offeringIdList to add * @return this */ - public PickRogueAvatarCsReq addBaseAvatarList(final int value) { + public GetOfferingInfoCsReq addOfferingIdList(final int value) { bitField0_ |= 0x00000001; - baseAvatarList.add(value); + offeringIdList.add(value); return this; } /** - * repeated uint32 base_avatar_list = 2; - * @param values the baseAvatarList to add + * repeated uint32 offering_id_list = 12; + * @param values the offeringIdList to add * @return this */ - public PickRogueAvatarCsReq addAllBaseAvatarList(final int... values) { + public GetOfferingInfoCsReq addAllOfferingIdList(final int... values) { bitField0_ |= 0x00000001; - baseAvatarList.addAll(values); + offeringIdList.addAll(values); return this; } @Override - public PickRogueAvatarCsReq copyFrom(final PickRogueAvatarCsReq other) { + public GetOfferingInfoCsReq copyFrom(final GetOfferingInfoCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - baseAvatarList.copyFrom(other.baseAvatarList); + offeringIdList.copyFrom(other.offeringIdList); } return this; } @Override - public PickRogueAvatarCsReq mergeFrom(final PickRogueAvatarCsReq other) { + public GetOfferingInfoCsReq mergeFrom(final GetOfferingInfoCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBaseAvatarList()) { - getMutableBaseAvatarList().addAll(other.baseAvatarList); + if (other.hasOfferingIdList()) { + getMutableOfferingIdList().addAll(other.offeringIdList); } return this; } @Override - public PickRogueAvatarCsReq clear() { + public GetOfferingInfoCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - baseAvatarList.clear(); + offeringIdList.clear(); return this; } @Override - public PickRogueAvatarCsReq clearQuick() { + public GetOfferingInfoCsReq clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - baseAvatarList.clear(); + offeringIdList.clear(); return this; } @@ -151,20 +151,20 @@ public final class PickRogueAvatarCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof PickRogueAvatarCsReq)) { + if (!(o instanceof GetOfferingInfoCsReq)) { return false; } - PickRogueAvatarCsReq other = (PickRogueAvatarCsReq) o; + GetOfferingInfoCsReq other = (GetOfferingInfoCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBaseAvatarList() || baseAvatarList.equals(other.baseAvatarList)); + && (!hasOfferingIdList() || offeringIdList.equals(other.offeringIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < baseAvatarList.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(baseAvatarList.array()[i]); + for (int i = 0; i < offeringIdList.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(offeringIdList.array()[i]); } } } @@ -173,21 +173,21 @@ public final class PickRogueAvatarCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * baseAvatarList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarList); + size += (1 * offeringIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(offeringIdList); } return size; } @Override @SuppressWarnings("fallthrough") - public PickRogueAvatarCsReq mergeFrom(final ProtoSource input) throws IOException { + public GetOfferingInfoCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 18: { - // baseAvatarList [packed=true] - input.readPackedUInt32(baseAvatarList, tag); + case 98: { + // offeringIdList [packed=true] + input.readPackedUInt32(offeringIdList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -204,9 +204,9 @@ public final class PickRogueAvatarCsReqOuterClass { tag = input.readTag(); break; } - case 16: { - // baseAvatarList [packed=false] - tag = input.readRepeatedUInt32(baseAvatarList, tag); + case 96: { + // offeringIdList [packed=false] + tag = input.readRepeatedUInt32(offeringIdList, tag); bitField0_ |= 0x00000001; break; } @@ -218,23 +218,23 @@ public final class PickRogueAvatarCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarList, baseAvatarList); + output.writeRepeatedUInt32(FieldNames.offeringIdList, offeringIdList); } output.endObject(); } @Override - public PickRogueAvatarCsReq mergeFrom(final JsonSource input) throws IOException { + public GetOfferingInfoCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1750786888: - case -387691690: { - if (input.isAtField(FieldNames.baseAvatarList)) { + case -859730945: + case -1060395511: { + if (input.isAtField(FieldNames.offeringIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(baseAvatarList); + input.readRepeatedUInt32(offeringIdList); bitField0_ |= 0x00000001; } } else { @@ -253,8 +253,8 @@ public final class PickRogueAvatarCsReqOuterClass { } @Override - public PickRogueAvatarCsReq clone() { - return new PickRogueAvatarCsReq().copyFrom(this); + public GetOfferingInfoCsReq clone() { + return new GetOfferingInfoCsReq().copyFrom(this); } @Override @@ -262,32 +262,32 @@ public final class PickRogueAvatarCsReqOuterClass { return ((bitField0_) == 0); } - public static PickRogueAvatarCsReq parseFrom(final byte[] data) throws + public static GetOfferingInfoCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PickRogueAvatarCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetOfferingInfoCsReq(), data).checkInitialized(); } - public static PickRogueAvatarCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PickRogueAvatarCsReq(), input).checkInitialized(); + public static GetOfferingInfoCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetOfferingInfoCsReq(), input).checkInitialized(); } - public static PickRogueAvatarCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PickRogueAvatarCsReq(), input).checkInitialized(); + public static GetOfferingInfoCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetOfferingInfoCsReq(), input).checkInitialized(); } /** - * @return factory for creating PickRogueAvatarCsReq messages + * @return factory for creating GetOfferingInfoCsReq messages */ - public static MessageFactory getFactory() { - return PickRogueAvatarCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetOfferingInfoCsReqFactory.INSTANCE; } - private enum PickRogueAvatarCsReqFactory implements MessageFactory { + private enum GetOfferingInfoCsReqFactory implements MessageFactory { INSTANCE; @Override - public PickRogueAvatarCsReq create() { - return PickRogueAvatarCsReq.newInstance(); + public GetOfferingInfoCsReq create() { + return GetOfferingInfoCsReq.newInstance(); } } @@ -295,7 +295,7 @@ public final class PickRogueAvatarCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName baseAvatarList = FieldName.forField("baseAvatarList", "base_avatar_list"); + static final FieldName offeringIdList = FieldName.forField("offeringIdList", "offering_id_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetOfferingInfoScRspOuterClass.java similarity index 53% rename from src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetOfferingInfoScRspOuterClass.java index c272286..ef92d23 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueHandbookDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetOfferingInfoScRspOuterClass.java @@ -10,36 +10,37 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class GetRogueHandbookDataScRspOuterClass { +public final class GetOfferingInfoScRspOuterClass { /** - * Protobuf type {@code GetRogueHandbookDataScRsp} + * Protobuf type {@code GetOfferingInfoScRsp} */ - public static final class GetRogueHandbookDataScRsp extends ProtoMessage implements Cloneable { + public static final class GetOfferingInfoScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional .RogueHandbookData handbook_info = 7; + * repeated .OfferingInfo offering_info_list = 3; */ - private final RogueHandbookDataOuterClass.RogueHandbookData handbookInfo = RogueHandbookDataOuterClass.RogueHandbookData.newInstance(); + private final RepeatedMessage offeringInfoList = RepeatedMessage.newEmptyInstance(OfferingInfoOuterClass.OfferingInfo.getFactory()); - private GetRogueHandbookDataScRsp() { + private GetOfferingInfoScRsp() { } /** - * @return a new empty instance of {@code GetRogueHandbookDataScRsp} + * @return a new empty instance of {@code GetOfferingInfoScRsp} */ - public static GetRogueHandbookDataScRsp newInstance() { - return new GetRogueHandbookDataScRsp(); + public static GetOfferingInfoScRsp newInstance() { + return new GetOfferingInfoScRsp(); } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +48,17 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @return this */ - public GetRogueHandbookDataScRsp clearRetcode() { + public GetOfferingInfoScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -65,50 +66,50 @@ public final class GetRogueHandbookDataScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ - public GetRogueHandbookDataScRsp setRetcode(final int value) { + public GetOfferingInfoScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueHandbookData handbook_info = 7; - * @return whether the handbookInfo field is set + * repeated .OfferingInfo offering_info_list = 3; + * @return whether the offeringInfoList field is set */ - public boolean hasHandbookInfo() { + public boolean hasOfferingInfoList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueHandbookData handbook_info = 7; + * repeated .OfferingInfo offering_info_list = 3; * @return this */ - public GetRogueHandbookDataScRsp clearHandbookInfo() { + public GetOfferingInfoScRsp clearOfferingInfoList() { bitField0_ &= ~0x00000002; - handbookInfo.clear(); + offeringInfoList.clear(); return this; } /** - * optional .RogueHandbookData handbook_info = 7; + * repeated .OfferingInfo offering_info_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableHandbookInfo()} if you want to modify it. + * Use {@link #getMutableOfferingInfoList()} if you want to modify it. * * @return internal storage object for reading */ - public RogueHandbookDataOuterClass.RogueHandbookData getHandbookInfo() { - return handbookInfo; + public RepeatedMessage getOfferingInfoList() { + return offeringInfoList; } /** - * optional .RogueHandbookData handbook_info = 7; + * repeated .OfferingInfo offering_info_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +117,48 @@ public final class GetRogueHandbookDataScRspOuterClass { * * @return internal storage object for modifications */ - public RogueHandbookDataOuterClass.RogueHandbookData getMutableHandbookInfo() { + public RepeatedMessage getMutableOfferingInfoList() { bitField0_ |= 0x00000002; - return handbookInfo; + return offeringInfoList; } /** - * optional .RogueHandbookData handbook_info = 7; - * @param value the handbookInfo to set + * repeated .OfferingInfo offering_info_list = 3; + * @param value the offeringInfoList to add * @return this */ - public GetRogueHandbookDataScRsp setHandbookInfo( - final RogueHandbookDataOuterClass.RogueHandbookData value) { + public GetOfferingInfoScRsp addOfferingInfoList( + final OfferingInfoOuterClass.OfferingInfo value) { bitField0_ |= 0x00000002; - handbookInfo.copyFrom(value); + offeringInfoList.add(value); + return this; + } + + /** + * repeated .OfferingInfo offering_info_list = 3; + * @param values the offeringInfoList to add + * @return this + */ + public GetOfferingInfoScRsp addAllOfferingInfoList( + final OfferingInfoOuterClass.OfferingInfo... values) { + bitField0_ |= 0x00000002; + offeringInfoList.addAll(values); return this; } @Override - public GetRogueHandbookDataScRsp copyFrom(final GetRogueHandbookDataScRsp other) { + public GetOfferingInfoScRsp copyFrom(final GetOfferingInfoScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - handbookInfo.copyFrom(other.handbookInfo); + offeringInfoList.copyFrom(other.offeringInfoList); } return this; } @Override - public GetRogueHandbookDataScRsp mergeFrom(final GetRogueHandbookDataScRsp other) { + public GetOfferingInfoScRsp mergeFrom(final GetOfferingInfoScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +166,32 @@ public final class GetRogueHandbookDataScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasHandbookInfo()) { - getMutableHandbookInfo().mergeFrom(other.handbookInfo); + if (other.hasOfferingInfoList()) { + getMutableOfferingInfoList().addAll(other.offeringInfoList); } return this; } @Override - public GetRogueHandbookDataScRsp clear() { + public GetOfferingInfoScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - handbookInfo.clear(); + offeringInfoList.clear(); return this; } @Override - public GetRogueHandbookDataScRsp clearQuick() { + public GetOfferingInfoScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - handbookInfo.clearQuick(); + offeringInfoList.clearQuick(); return this; } @@ -187,24 +200,26 @@ public final class GetRogueHandbookDataScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRogueHandbookDataScRsp)) { + if (!(o instanceof GetOfferingInfoScRsp)) { return false; } - GetRogueHandbookDataScRsp other = (GetRogueHandbookDataScRsp) o; + GetOfferingInfoScRsp other = (GetOfferingInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasHandbookInfo() || handbookInfo.equals(other.handbookInfo)); + && (!hasOfferingInfoList() || offeringInfoList.equals(other.offeringInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(handbookInfo); + for (int i = 0; i < offeringInfoList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(offeringInfoList.get(i)); + } } } @@ -215,32 +230,31 @@ public final class GetRogueHandbookDataScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(handbookInfo); + size += (1 * offeringInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(offeringInfoList); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRogueHandbookDataScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetOfferingInfoScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 26) { break; } } - case 58: { - // handbookInfo - input.readMessage(handbookInfo); + case 26: { + // offeringInfoList + tag = input.readRepeatedMessage(offeringInfoList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +280,13 @@ public final class GetRogueHandbookDataScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.handbookInfo, handbookInfo); + output.writeRepeatedMessage(FieldNames.offeringInfoList, offeringInfoList); } output.endObject(); } @Override - public GetRogueHandbookDataScRsp mergeFrom(final JsonSource input) throws IOException { + public GetOfferingInfoScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +303,11 @@ public final class GetRogueHandbookDataScRspOuterClass { } break; } - case -460040026: - case -1356162891: { - if (input.isAtField(FieldNames.handbookInfo)) { + case -533884782: + case 1109392534: { + if (input.isAtField(FieldNames.offeringInfoList)) { if (!input.trySkipNullValue()) { - input.readMessage(handbookInfo); + input.readRepeatedMessage(offeringInfoList); bitField0_ |= 0x00000002; } } else { @@ -312,8 +326,8 @@ public final class GetRogueHandbookDataScRspOuterClass { } @Override - public GetRogueHandbookDataScRsp clone() { - return new GetRogueHandbookDataScRsp().copyFrom(this); + public GetOfferingInfoScRsp clone() { + return new GetOfferingInfoScRsp().copyFrom(this); } @Override @@ -321,32 +335,32 @@ public final class GetRogueHandbookDataScRspOuterClass { return ((bitField0_) == 0); } - public static GetRogueHandbookDataScRsp parseFrom(final byte[] data) throws + public static GetOfferingInfoScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRogueHandbookDataScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetOfferingInfoScRsp(), data).checkInitialized(); } - public static GetRogueHandbookDataScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueHandbookDataScRsp(), input).checkInitialized(); + public static GetOfferingInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetOfferingInfoScRsp(), input).checkInitialized(); } - public static GetRogueHandbookDataScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueHandbookDataScRsp(), input).checkInitialized(); + public static GetOfferingInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetOfferingInfoScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRogueHandbookDataScRsp messages + * @return factory for creating GetOfferingInfoScRsp messages */ - public static MessageFactory getFactory() { - return GetRogueHandbookDataScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetOfferingInfoScRspFactory.INSTANCE; } - private enum GetRogueHandbookDataScRspFactory implements MessageFactory { + private enum GetOfferingInfoScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRogueHandbookDataScRsp create() { - return GetRogueHandbookDataScRsp.newInstance(); + public GetOfferingInfoScRsp create() { + return GetOfferingInfoScRsp.newInstance(); } } @@ -356,7 +370,7 @@ public final class GetRogueHandbookDataScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName handbookInfo = FieldName.forField("handbookInfo", "handbook_info"); + static final FieldName offeringInfoList = FieldName.forField("offeringInfoList", "offering_info_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPamSkinDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPamSkinDataScRspOuterClass.java new file mode 100644 index 0000000..075533e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetPamSkinDataScRspOuterClass.java @@ -0,0 +1,462 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class GetPamSkinDataScRspOuterClass { + /** + * Protobuf type {@code GetPamSkinDataScRsp} + */ + public static final class GetPamSkinDataScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 2; + */ + private int retcode; + + /** + * optional uint32 current_pam_skin_id = 6; + */ + private int currentPamSkinId; + + /** + * repeated uint32 unlocked_pam_skins = 10; + */ + private final RepeatedInt unlockedPamSkins = RepeatedInt.newEmptyInstance(); + + private GetPamSkinDataScRsp() { + } + + /** + * @return a new empty instance of {@code GetPamSkinDataScRsp} + */ + public static GetPamSkinDataScRsp newInstance() { + return new GetPamSkinDataScRsp(); + } + + /** + * optional uint32 retcode = 2; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 2; + * @return this + */ + public GetPamSkinDataScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 2; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 2; + * @param value the retcode to set + * @return this + */ + public GetPamSkinDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 current_pam_skin_id = 6; + * @return whether the currentPamSkinId field is set + */ + public boolean hasCurrentPamSkinId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 current_pam_skin_id = 6; + * @return this + */ + public GetPamSkinDataScRsp clearCurrentPamSkinId() { + bitField0_ &= ~0x00000002; + currentPamSkinId = 0; + return this; + } + + /** + * optional uint32 current_pam_skin_id = 6; + * @return the currentPamSkinId + */ + public int getCurrentPamSkinId() { + return currentPamSkinId; + } + + /** + * optional uint32 current_pam_skin_id = 6; + * @param value the currentPamSkinId to set + * @return this + */ + public GetPamSkinDataScRsp setCurrentPamSkinId(final int value) { + bitField0_ |= 0x00000002; + currentPamSkinId = value; + return this; + } + + /** + * repeated uint32 unlocked_pam_skins = 10; + * @return whether the unlockedPamSkins field is set + */ + public boolean hasUnlockedPamSkins() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 unlocked_pam_skins = 10; + * @return this + */ + public GetPamSkinDataScRsp clearUnlockedPamSkins() { + bitField0_ &= ~0x00000004; + unlockedPamSkins.clear(); + return this; + } + + /** + * repeated uint32 unlocked_pam_skins = 10; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnlockedPamSkins()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnlockedPamSkins() { + return unlockedPamSkins; + } + + /** + * repeated uint32 unlocked_pam_skins = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnlockedPamSkins() { + bitField0_ |= 0x00000004; + return unlockedPamSkins; + } + + /** + * repeated uint32 unlocked_pam_skins = 10; + * @param value the unlockedPamSkins to add + * @return this + */ + public GetPamSkinDataScRsp addUnlockedPamSkins(final int value) { + bitField0_ |= 0x00000004; + unlockedPamSkins.add(value); + return this; + } + + /** + * repeated uint32 unlocked_pam_skins = 10; + * @param values the unlockedPamSkins to add + * @return this + */ + public GetPamSkinDataScRsp addAllUnlockedPamSkins(final int... values) { + bitField0_ |= 0x00000004; + unlockedPamSkins.addAll(values); + return this; + } + + @Override + public GetPamSkinDataScRsp copyFrom(final GetPamSkinDataScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + currentPamSkinId = other.currentPamSkinId; + unlockedPamSkins.copyFrom(other.unlockedPamSkins); + } + return this; + } + + @Override + public GetPamSkinDataScRsp mergeFrom(final GetPamSkinDataScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasCurrentPamSkinId()) { + setCurrentPamSkinId(other.currentPamSkinId); + } + if (other.hasUnlockedPamSkins()) { + getMutableUnlockedPamSkins().addAll(other.unlockedPamSkins); + } + return this; + } + + @Override + public GetPamSkinDataScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + currentPamSkinId = 0; + unlockedPamSkins.clear(); + return this; + } + + @Override + public GetPamSkinDataScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unlockedPamSkins.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetPamSkinDataScRsp)) { + return false; + } + GetPamSkinDataScRsp other = (GetPamSkinDataScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurrentPamSkinId() || currentPamSkinId == other.currentPamSkinId) + && (!hasUnlockedPamSkins() || unlockedPamSkins.equals(other.unlockedPamSkins)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(currentPamSkinId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < unlockedPamSkins.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(unlockedPamSkins.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(currentPamSkinId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * unlockedPamSkins.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedPamSkins); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetPamSkinDataScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // currentPamSkinId + currentPamSkinId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // unlockedPamSkins [packed=true] + input.readPackedUInt32(unlockedPamSkins, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 80: { + // unlockedPamSkins [packed=false] + tag = input.readRepeatedUInt32(unlockedPamSkins, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.currentPamSkinId, currentPamSkinId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.unlockedPamSkins, unlockedPamSkins); + } + output.endObject(); + } + + @Override + public GetPamSkinDataScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1746750021: + case 249948340: { + if (input.isAtField(FieldNames.currentPamSkinId)) { + if (!input.trySkipNullValue()) { + currentPamSkinId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 699410269: + case -344383785: { + if (input.isAtField(FieldNames.unlockedPamSkins)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unlockedPamSkins); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetPamSkinDataScRsp clone() { + return new GetPamSkinDataScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetPamSkinDataScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetPamSkinDataScRsp(), data).checkInitialized(); + } + + public static GetPamSkinDataScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPamSkinDataScRsp(), input).checkInitialized(); + } + + public static GetPamSkinDataScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetPamSkinDataScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetPamSkinDataScRsp messages + */ + public static MessageFactory getFactory() { + return GetPamSkinDataScRspFactory.INSTANCE; + } + + private enum GetPamSkinDataScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetPamSkinDataScRsp create() { + return GetPamSkinDataScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName currentPamSkinId = FieldName.forField("currentPamSkinId", "current_pam_skin_id"); + + static final FieldName unlockedPamSkins = FieldName.forField("unlockedPamSkins", "unlocked_pam_skins"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetPetDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPetDataScRspOuterClass.java index 7cfff24..0fc0d42 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPetDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPetDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetPetDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_pet_id = 5; + * optional uint32 cur_pet_id = 1; */ private int curPetId; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; */ private int retcode; /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; */ private final RepeatedInt petIdList = RepeatedInt.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 cur_pet_id = 5; + * optional uint32 cur_pet_id = 1; * @return whether the curPetId field is set */ public boolean hasCurPetId() { @@ -53,7 +53,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 cur_pet_id = 5; + * optional uint32 cur_pet_id = 1; * @return this */ public GetPetDataScRsp clearCurPetId() { @@ -63,7 +63,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 cur_pet_id = 5; + * optional uint32 cur_pet_id = 1; * @return the curPetId */ public int getCurPetId() { @@ -71,7 +71,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 cur_pet_id = 5; + * optional uint32 cur_pet_id = 1; * @param value the curPetId to set * @return this */ @@ -82,7 +82,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -90,7 +90,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @return this */ public GetPetDataScRsp clearRetcode() { @@ -100,7 +100,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -108,7 +108,7 @@ public final class GetPetDataScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -119,7 +119,7 @@ public final class GetPetDataScRspOuterClass { } /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; * @return whether the petIdList field is set */ public boolean hasPetIdList() { @@ -127,7 +127,7 @@ public final class GetPetDataScRspOuterClass { } /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; * @return this */ public GetPetDataScRsp clearPetIdList() { @@ -137,7 +137,7 @@ public final class GetPetDataScRspOuterClass { } /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public final class GetPetDataScRspOuterClass { } /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public final class GetPetDataScRspOuterClass { } /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; * @param value the petIdList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetPetDataScRspOuterClass { } /** - * repeated uint32 pet_id_list = 10; + * repeated uint32 pet_id_list = 6; * @param values the petIdList to add * @return this */ @@ -258,16 +258,16 @@ public final class GetPetDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(curPetId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < petIdList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(petIdList.array()[i]); } } @@ -295,25 +295,25 @@ public final class GetPetDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // curPetId curPetId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 88) { break; } } - case 48: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 82) { + if (tag != 50) { break; } } - case 82: { + case 50: { // petIdList [packed=true] input.readPackedUInt32(petIdList, tag); bitField0_ |= 0x00000004; @@ -332,7 +332,7 @@ public final class GetPetDataScRspOuterClass { tag = input.readTag(); break; } - case 80: { + case 48: { // petIdList [packed=false] tag = input.readRepeatedUInt32(petIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java index 20be859..2ebaaa9 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPhoneDataScRspOuterClass.java @@ -25,25 +25,35 @@ public final class GetPhoneDataScRspOuterClass { private int retcode; /** - * optional uint32 cur_phone_theme = 2; + * optional uint32 cur_phone_case = 3; + */ + private int curPhoneCase; + + /** + * optional uint32 cur_phone_theme = 5; */ private int curPhoneTheme; /** - * optional uint32 cur_chat_bubble = 3; + * optional uint32 cur_chat_bubble = 9; */ private int curChatBubble; /** - * repeated uint32 owned_phone_themes = 6; - */ - private final RepeatedInt ownedPhoneThemes = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; */ private final RepeatedInt ownedChatBubbles = RepeatedInt.newEmptyInstance(); + /** + * repeated uint32 owned_phone_cases = 7; + */ + private final RepeatedInt ownedPhoneCases = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 owned_phone_themes = 8; + */ + private final RepeatedInt ownedPhoneThemes = RepeatedInt.newEmptyInstance(); + private GetPhoneDataScRsp() { } @@ -92,25 +102,62 @@ public final class GetPhoneDataScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 2; - * @return whether the curPhoneTheme field is set + * optional uint32 cur_phone_case = 3; + * @return whether the curPhoneCase field is set */ - public boolean hasCurPhoneTheme() { + public boolean hasCurPhoneCase() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 cur_phone_theme = 2; + * optional uint32 cur_phone_case = 3; + * @return this + */ + public GetPhoneDataScRsp clearCurPhoneCase() { + bitField0_ &= ~0x00000002; + curPhoneCase = 0; + return this; + } + + /** + * optional uint32 cur_phone_case = 3; + * @return the curPhoneCase + */ + public int getCurPhoneCase() { + return curPhoneCase; + } + + /** + * optional uint32 cur_phone_case = 3; + * @param value the curPhoneCase to set + * @return this + */ + public GetPhoneDataScRsp setCurPhoneCase(final int value) { + bitField0_ |= 0x00000002; + curPhoneCase = value; + return this; + } + + /** + * optional uint32 cur_phone_theme = 5; + * @return whether the curPhoneTheme field is set + */ + public boolean hasCurPhoneTheme() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cur_phone_theme = 5; * @return this */ public GetPhoneDataScRsp clearCurPhoneTheme() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; curPhoneTheme = 0; return this; } /** - * optional uint32 cur_phone_theme = 2; + * optional uint32 cur_phone_theme = 5; * @return the curPhoneTheme */ public int getCurPhoneTheme() { @@ -118,36 +165,36 @@ public final class GetPhoneDataScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 2; + * optional uint32 cur_phone_theme = 5; * @param value the curPhoneTheme to set * @return this */ public GetPhoneDataScRsp setCurPhoneTheme(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; curPhoneTheme = value; return this; } /** - * optional uint32 cur_chat_bubble = 3; + * optional uint32 cur_chat_bubble = 9; * @return whether the curChatBubble field is set */ public boolean hasCurChatBubble() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 cur_chat_bubble = 3; + * optional uint32 cur_chat_bubble = 9; * @return this */ public GetPhoneDataScRsp clearCurChatBubble() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; curChatBubble = 0; return this; } /** - * optional uint32 cur_chat_bubble = 3; + * optional uint32 cur_chat_bubble = 9; * @return the curChatBubble */ public int getCurChatBubble() { @@ -155,86 +202,18 @@ public final class GetPhoneDataScRspOuterClass { } /** - * optional uint32 cur_chat_bubble = 3; + * optional uint32 cur_chat_bubble = 9; * @param value the curChatBubble to set * @return this */ public GetPhoneDataScRsp setCurChatBubble(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; curChatBubble = value; return this; } /** - * repeated uint32 owned_phone_themes = 6; - * @return whether the ownedPhoneThemes field is set - */ - public boolean hasOwnedPhoneThemes() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 owned_phone_themes = 6; - * @return this - */ - public GetPhoneDataScRsp clearOwnedPhoneThemes() { - bitField0_ &= ~0x00000008; - ownedPhoneThemes.clear(); - return this; - } - - /** - * repeated uint32 owned_phone_themes = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableOwnedPhoneThemes()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getOwnedPhoneThemes() { - return ownedPhoneThemes; - } - - /** - * repeated uint32 owned_phone_themes = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableOwnedPhoneThemes() { - bitField0_ |= 0x00000008; - return ownedPhoneThemes; - } - - /** - * repeated uint32 owned_phone_themes = 6; - * @param value the ownedPhoneThemes to add - * @return this - */ - public GetPhoneDataScRsp addOwnedPhoneThemes(final int value) { - bitField0_ |= 0x00000008; - ownedPhoneThemes.add(value); - return this; - } - - /** - * repeated uint32 owned_phone_themes = 6; - * @param values the ownedPhoneThemes to add - * @return this - */ - public GetPhoneDataScRsp addAllOwnedPhoneThemes(final int... values) { - bitField0_ |= 0x00000008; - ownedPhoneThemes.addAll(values); - return this; - } - - /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; * @return whether the ownedChatBubbles field is set */ public boolean hasOwnedChatBubbles() { @@ -242,7 +221,7 @@ public final class GetPhoneDataScRspOuterClass { } /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; * @return this */ public GetPhoneDataScRsp clearOwnedChatBubbles() { @@ -252,7 +231,7 @@ public final class GetPhoneDataScRspOuterClass { } /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -266,7 +245,7 @@ public final class GetPhoneDataScRspOuterClass { } /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -280,7 +259,7 @@ public final class GetPhoneDataScRspOuterClass { } /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; * @param value the ownedChatBubbles to add * @return this */ @@ -291,7 +270,7 @@ public final class GetPhoneDataScRspOuterClass { } /** - * repeated uint32 owned_chat_bubbles = 9; + * repeated uint32 owned_chat_bubbles = 2; * @param values the ownedChatBubbles to add * @return this */ @@ -301,16 +280,154 @@ public final class GetPhoneDataScRspOuterClass { return this; } + /** + * repeated uint32 owned_phone_cases = 7; + * @return whether the ownedPhoneCases field is set + */ + public boolean hasOwnedPhoneCases() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * repeated uint32 owned_phone_cases = 7; + * @return this + */ + public GetPhoneDataScRsp clearOwnedPhoneCases() { + bitField0_ &= ~0x00000020; + ownedPhoneCases.clear(); + return this; + } + + /** + * repeated uint32 owned_phone_cases = 7; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOwnedPhoneCases()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOwnedPhoneCases() { + return ownedPhoneCases; + } + + /** + * repeated uint32 owned_phone_cases = 7; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableOwnedPhoneCases() { + bitField0_ |= 0x00000020; + return ownedPhoneCases; + } + + /** + * repeated uint32 owned_phone_cases = 7; + * @param value the ownedPhoneCases to add + * @return this + */ + public GetPhoneDataScRsp addOwnedPhoneCases(final int value) { + bitField0_ |= 0x00000020; + ownedPhoneCases.add(value); + return this; + } + + /** + * repeated uint32 owned_phone_cases = 7; + * @param values the ownedPhoneCases to add + * @return this + */ + public GetPhoneDataScRsp addAllOwnedPhoneCases(final int... values) { + bitField0_ |= 0x00000020; + ownedPhoneCases.addAll(values); + return this; + } + + /** + * repeated uint32 owned_phone_themes = 8; + * @return whether the ownedPhoneThemes field is set + */ + public boolean hasOwnedPhoneThemes() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 owned_phone_themes = 8; + * @return this + */ + public GetPhoneDataScRsp clearOwnedPhoneThemes() { + bitField0_ &= ~0x00000040; + ownedPhoneThemes.clear(); + return this; + } + + /** + * repeated uint32 owned_phone_themes = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOwnedPhoneThemes()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getOwnedPhoneThemes() { + return ownedPhoneThemes; + } + + /** + * repeated uint32 owned_phone_themes = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableOwnedPhoneThemes() { + bitField0_ |= 0x00000040; + return ownedPhoneThemes; + } + + /** + * repeated uint32 owned_phone_themes = 8; + * @param value the ownedPhoneThemes to add + * @return this + */ + public GetPhoneDataScRsp addOwnedPhoneThemes(final int value) { + bitField0_ |= 0x00000040; + ownedPhoneThemes.add(value); + return this; + } + + /** + * repeated uint32 owned_phone_themes = 8; + * @param values the ownedPhoneThemes to add + * @return this + */ + public GetPhoneDataScRsp addAllOwnedPhoneThemes(final int... values) { + bitField0_ |= 0x00000040; + ownedPhoneThemes.addAll(values); + return this; + } + @Override public GetPhoneDataScRsp copyFrom(final GetPhoneDataScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; + curPhoneCase = other.curPhoneCase; curPhoneTheme = other.curPhoneTheme; curChatBubble = other.curChatBubble; - ownedPhoneThemes.copyFrom(other.ownedPhoneThemes); ownedChatBubbles.copyFrom(other.ownedChatBubbles); + ownedPhoneCases.copyFrom(other.ownedPhoneCases); + ownedPhoneThemes.copyFrom(other.ownedPhoneThemes); } return this; } @@ -324,18 +441,24 @@ public final class GetPhoneDataScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurPhoneCase()) { + setCurPhoneCase(other.curPhoneCase); + } if (other.hasCurPhoneTheme()) { setCurPhoneTheme(other.curPhoneTheme); } if (other.hasCurChatBubble()) { setCurChatBubble(other.curChatBubble); } - if (other.hasOwnedPhoneThemes()) { - getMutableOwnedPhoneThemes().addAll(other.ownedPhoneThemes); - } if (other.hasOwnedChatBubbles()) { getMutableOwnedChatBubbles().addAll(other.ownedChatBubbles); } + if (other.hasOwnedPhoneCases()) { + getMutableOwnedPhoneCases().addAll(other.ownedPhoneCases); + } + if (other.hasOwnedPhoneThemes()) { + getMutableOwnedPhoneThemes().addAll(other.ownedPhoneThemes); + } return this; } @@ -347,10 +470,12 @@ public final class GetPhoneDataScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; + curPhoneCase = 0; curPhoneTheme = 0; curChatBubble = 0; - ownedPhoneThemes.clear(); ownedChatBubbles.clear(); + ownedPhoneCases.clear(); + ownedPhoneThemes.clear(); return this; } @@ -361,8 +486,9 @@ public final class GetPhoneDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - ownedPhoneThemes.clear(); ownedChatBubbles.clear(); + ownedPhoneCases.clear(); + ownedPhoneThemes.clear(); return this; } @@ -377,10 +503,12 @@ public final class GetPhoneDataScRspOuterClass { GetPhoneDataScRsp other = (GetPhoneDataScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) + && (!hasCurPhoneCase() || curPhoneCase == other.curPhoneCase) && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme) && (!hasCurChatBubble() || curChatBubble == other.curChatBubble) - && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes)) - && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles)); + && (!hasOwnedChatBubbles() || ownedChatBubbles.equals(other.ownedChatBubbles)) + && (!hasOwnedPhoneCases() || ownedPhoneCases.equals(other.ownedPhoneCases)) + && (!hasOwnedPhoneThemes() || ownedPhoneThemes.equals(other.ownedPhoneThemes)); } @Override @@ -390,25 +518,35 @@ public final class GetPhoneDataScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(curPhoneTheme); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(curPhoneCase); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(curChatBubble); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(curPhoneTheme); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < ownedPhoneThemes.length(); i++) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(ownedPhoneThemes.array()[i]); - } + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(curChatBubble); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < ownedChatBubbles.length(); i++) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(ownedChatBubbles.array()[i]); } } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < ownedPhoneCases.length(); i++) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(ownedPhoneCases.array()[i]); + } + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < ownedPhoneThemes.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(ownedPhoneThemes.array()[i]); + } + } } @Override @@ -418,17 +556,23 @@ public final class GetPhoneDataScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneCase); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curPhoneTheme); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); } if ((bitField0_ & 0x00000010) != 0) { size += (1 * ownedChatBubbles.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedChatBubbles); } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * ownedPhoneCases.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneCases); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * ownedPhoneThemes.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(ownedPhoneThemes); + } return size; } @@ -444,42 +588,60 @@ public final class GetPhoneDataScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // curPhoneTheme - curPhoneTheme = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 24) { break; } } case 24: { - // curChatBubble - curChatBubble = input.readUInt32(); + // curPhoneCase + curPhoneCase = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // curPhoneTheme + curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 50) { + if (tag != 72) { break; } } - case 50: { - // ownedPhoneThemes [packed=true] - input.readPackedUInt32(ownedPhoneThemes, tag); + case 72: { + // curChatBubble + curChatBubble = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 74) { + if (tag != 18) { break; } } - case 74: { + case 18: { // ownedChatBubbles [packed=true] input.readPackedUInt32(ownedChatBubbles, tag); bitField0_ |= 0x00000010; tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // ownedPhoneCases [packed=true] + input.readPackedUInt32(ownedPhoneCases, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // ownedPhoneThemes [packed=true] + input.readPackedUInt32(ownedPhoneThemes, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); if (tag != 0) { break; } @@ -494,18 +656,24 @@ public final class GetPhoneDataScRspOuterClass { tag = input.readTag(); break; } - case 48: { - // ownedPhoneThemes [packed=false] - tag = input.readRepeatedUInt32(ownedPhoneThemes, tag); - bitField0_ |= 0x00000008; - break; - } - case 72: { + case 16: { // ownedChatBubbles [packed=false] tag = input.readRepeatedUInt32(ownedChatBubbles, tag); bitField0_ |= 0x00000010; break; } + case 56: { + // ownedPhoneCases [packed=false] + tag = input.readRepeatedUInt32(ownedPhoneCases, tag); + bitField0_ |= 0x00000020; + break; + } + case 64: { + // ownedPhoneThemes [packed=false] + tag = input.readRepeatedUInt32(ownedPhoneThemes, tag); + bitField0_ |= 0x00000040; + break; + } } } } @@ -517,17 +685,23 @@ public final class GetPhoneDataScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme); + output.writeUInt32(FieldNames.curPhoneCase, curPhoneCase); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.curChatBubble, curChatBubble); + output.writeUInt32(FieldNames.curPhoneTheme, curPhoneTheme); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes); + output.writeUInt32(FieldNames.curChatBubble, curChatBubble); } if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedUInt32(FieldNames.ownedChatBubbles, ownedChatBubbles); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.ownedPhoneCases, ownedPhoneCases); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.ownedPhoneThemes, ownedPhoneThemes); + } output.endObject(); } @@ -549,12 +723,24 @@ public final class GetPhoneDataScRspOuterClass { } break; } + case 151120734: + case -1679681856: { + if (input.isAtField(FieldNames.curPhoneCase)) { + if (!input.trySkipNullValue()) { + curPhoneCase = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 405670747: case -514634695: { if (input.isAtField(FieldNames.curPhoneTheme)) { if (!input.trySkipNullValue()) { curPhoneTheme = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -566,18 +752,6 @@ public final class GetPhoneDataScRspOuterClass { if (input.isAtField(FieldNames.curChatBubble)) { if (!input.trySkipNullValue()) { curChatBubble = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -512676109: - case -1128638699: { - if (input.isAtField(FieldNames.ownedPhoneThemes)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(ownedPhoneThemes); bitField0_ |= 0x00000008; } } else { @@ -597,6 +771,30 @@ public final class GetPhoneDataScRspOuterClass { } break; } + case -1417906438: + case 1748812440: { + if (input.isAtField(FieldNames.ownedPhoneCases)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ownedPhoneCases); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -512676109: + case -1128638699: { + if (input.isAtField(FieldNames.ownedPhoneThemes)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(ownedPhoneThemes); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -652,13 +850,17 @@ public final class GetPhoneDataScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName curPhoneCase = FieldName.forField("curPhoneCase", "cur_phone_case"); + static final FieldName curPhoneTheme = FieldName.forField("curPhoneTheme", "cur_phone_theme"); static final FieldName curChatBubble = FieldName.forField("curChatBubble", "cur_chat_bubble"); - static final FieldName ownedPhoneThemes = FieldName.forField("ownedPhoneThemes", "owned_phone_themes"); - static final FieldName ownedChatBubbles = FieldName.forField("ownedChatBubbles", "owned_chat_bubbles"); + + static final FieldName ownedPhoneCases = FieldName.forField("ownedPhoneCases", "owned_phone_cases"); + + static final FieldName ownedPhoneThemes = FieldName.forField("ownedPhoneThemes", "owned_phone_themes"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java index 6eef56b..e90e600 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerBoardDataScRspOuterClass.java @@ -22,32 +22,32 @@ public final class GetPlayerBoardDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; - */ - private int retcode; - - /** - * optional uint32 current_head_icon_id = 14; + * optional uint32 current_head_icon_id = 2; */ private int currentHeadIconId; /** - * optional .DisplayAvatarVec display_avatar_vec = 4; + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional .DisplayAvatarVec display_avatar_vec = 15; */ private final DisplayAvatarVecOuterClass.DisplayAvatarVec displayAvatarVec = DisplayAvatarVecOuterClass.DisplayAvatarVec.newInstance(); /** - * optional string signature = 13; + * optional string signature = 6; */ private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; */ private final RepeatedInt displaySupportAvatarVec = RepeatedInt.newEmptyInstance(); /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; */ private final RepeatedMessage unlockedHeadIconList = RepeatedMessage.newEmptyInstance(HeadIconOuterClass.HeadIcon.getFactory()); @@ -62,62 +62,25 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 retcode = 9; - * @return whether the retcode field is set + * optional uint32 current_head_icon_id = 2; + * @return whether the currentHeadIconId field is set */ - public boolean hasRetcode() { + public boolean hasCurrentHeadIconId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 9; - * @return this - */ - public GetPlayerBoardDataScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 9; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 9; - * @param value the retcode to set - * @return this - */ - public GetPlayerBoardDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 current_head_icon_id = 14; - * @return whether the currentHeadIconId field is set - */ - public boolean hasCurrentHeadIconId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 current_head_icon_id = 14; + * optional uint32 current_head_icon_id = 2; * @return this */ public GetPlayerBoardDataScRsp clearCurrentHeadIconId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; currentHeadIconId = 0; return this; } /** - * optional uint32 current_head_icon_id = 14; + * optional uint32 current_head_icon_id = 2; * @return the currentHeadIconId */ public int getCurrentHeadIconId() { @@ -125,18 +88,55 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 14; + * optional uint32 current_head_icon_id = 2; * @param value the currentHeadIconId to set * @return this */ public GetPlayerBoardDataScRsp setCurrentHeadIconId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; currentHeadIconId = value; return this; } /** - * optional .DisplayAvatarVec display_avatar_vec = 4; + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 8; + * @return this + */ + public GetPlayerBoardDataScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public GetPlayerBoardDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .DisplayAvatarVec display_avatar_vec = 15; * @return whether the displayAvatarVec field is set */ public boolean hasDisplayAvatarVec() { @@ -144,7 +144,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 4; + * optional .DisplayAvatarVec display_avatar_vec = 15; * @return this */ public GetPlayerBoardDataScRsp clearDisplayAvatarVec() { @@ -154,7 +154,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 4; + * optional .DisplayAvatarVec display_avatar_vec = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -168,7 +168,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 4; + * optional .DisplayAvatarVec display_avatar_vec = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -182,7 +182,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional .DisplayAvatarVec display_avatar_vec = 4; + * optional .DisplayAvatarVec display_avatar_vec = 15; * @param value the displayAvatarVec to set * @return this */ @@ -194,7 +194,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @return whether the signature field is set */ public boolean hasSignature() { @@ -202,7 +202,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @return this */ public GetPlayerBoardDataScRsp clearSignature() { @@ -212,7 +212,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @return the signature */ public String getSignature() { @@ -220,7 +220,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -228,7 +228,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -237,7 +237,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @param value the signature to set * @return this */ @@ -248,7 +248,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * optional string signature = 13; + * optional string signature = 6; * @param value the signature to set * @return this */ @@ -259,7 +259,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; * @return whether the displaySupportAvatarVec field is set */ public boolean hasDisplaySupportAvatarVec() { @@ -267,7 +267,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; * @return this */ public GetPlayerBoardDataScRsp clearDisplaySupportAvatarVec() { @@ -277,7 +277,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -291,7 +291,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -305,7 +305,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; * @param value the displaySupportAvatarVec to add * @return this */ @@ -316,7 +316,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated uint32 display_support_avatar_vec = 1; + * repeated uint32 display_support_avatar_vec = 7; * @param values the displaySupportAvatarVec to add * @return this */ @@ -327,7 +327,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @return whether the unlockedHeadIconList field is set */ public boolean hasUnlockedHeadIconList() { @@ -335,7 +335,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @return this */ public GetPlayerBoardDataScRsp clearUnlockedHeadIconList() { @@ -345,7 +345,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -359,7 +359,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -373,7 +373,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @param value the unlockedHeadIconList to add * @return this */ @@ -385,7 +385,7 @@ public final class GetPlayerBoardDataScRspOuterClass { } /** - * repeated .HeadIcon unlocked_head_icon_list = 12; + * repeated .HeadIcon unlocked_head_icon_list = 9; * @param values the unlockedHeadIconList to add * @return this */ @@ -401,8 +401,8 @@ public final class GetPlayerBoardDataScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; currentHeadIconId = other.currentHeadIconId; + retcode = other.retcode; displayAvatarVec.copyFrom(other.displayAvatarVec); signature.copyFrom(other.signature); displaySupportAvatarVec.copyFrom(other.displaySupportAvatarVec); @@ -417,12 +417,12 @@ public final class GetPlayerBoardDataScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasCurrentHeadIconId()) { setCurrentHeadIconId(other.currentHeadIconId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasDisplayAvatarVec()) { getMutableDisplayAvatarVec().mergeFrom(other.displayAvatarVec); } @@ -445,8 +445,8 @@ public final class GetPlayerBoardDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; currentHeadIconId = 0; + retcode = 0; displayAvatarVec.clear(); signature.clear(); displaySupportAvatarVec.clear(); @@ -478,8 +478,8 @@ public final class GetPlayerBoardDataScRspOuterClass { } GetPlayerBoardDataScRsp other = (GetPlayerBoardDataScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasCurrentHeadIconId() || currentHeadIconId == other.currentHeadIconId) + && (!hasRetcode() || retcode == other.retcode) && (!hasDisplayAvatarVec() || displayAvatarVec.equals(other.displayAvatarVec)) && (!hasSignature() || signature.equals(other.signature)) && (!hasDisplaySupportAvatarVec() || displaySupportAvatarVec.equals(other.displaySupportAvatarVec)) @@ -489,30 +489,30 @@ public final class GetPlayerBoardDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(currentHeadIconId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 122); output.writeMessageNoTag(displayAvatarVec); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 50); output.writeStringNoTag(signature); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < displaySupportAvatarVec.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(displaySupportAvatarVec.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < unlockedHeadIconList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 74); output.writeMessageNoTag(unlockedHeadIconList.get(i)); } } @@ -522,10 +522,10 @@ public final class GetPlayerBoardDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(currentHeadIconId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(currentHeadIconId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(displayAvatarVec); @@ -549,52 +549,52 @@ public final class GetPlayerBoardDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 16: { // currentHeadIconId currentHeadIconId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 64) { break; } } - case 34: { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { // displayAvatarVec input.readMessage(displayAvatarVec); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 106) { + if (tag != 50) { break; } } - case 106: { + case 50: { // signature input.readString(signature); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 10) { + if (tag != 58) { break; } } - case 10: { + case 58: { // displaySupportAvatarVec [packed=true] input.readPackedUInt32(displaySupportAvatarVec, tag); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 98) { + if (tag != 74) { break; } } - case 98: { + case 74: { // unlockedHeadIconList tag = input.readRepeatedMessage(unlockedHeadIconList, tag); bitField0_ |= 0x00000020; @@ -612,7 +612,7 @@ public final class GetPlayerBoardDataScRspOuterClass { tag = input.readTag(); break; } - case 8: { + case 56: { // displaySupportAvatarVec [packed=false] tag = input.readRepeatedUInt32(displaySupportAvatarVec, tag); bitField0_ |= 0x00000010; @@ -626,10 +626,10 @@ public final class GetPlayerBoardDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.currentHeadIconId, currentHeadIconId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.currentHeadIconId, currentHeadIconId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.displayAvatarVec, displayAvatarVec); @@ -653,10 +653,11 @@ public final class GetPlayerBoardDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 2107487181: + case -1003133880: { + if (input.isAtField(FieldNames.currentHeadIconId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + currentHeadIconId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -664,11 +665,10 @@ public final class GetPlayerBoardDataScRspOuterClass { } break; } - case 2107487181: - case -1003133880: { - if (input.isAtField(FieldNames.currentHeadIconId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - currentHeadIconId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -776,10 +776,10 @@ public final class GetPlayerBoardDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName currentHeadIconId = FieldName.forField("currentHeadIconId", "current_head_icon_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName displayAvatarVec = FieldName.forField("displayAvatarVec", "display_avatar_vec"); static final FieldName signature = FieldName.forField("signature"); diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java index ed44545..13e425e 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 1; + * optional uint32 uid = 15; */ private int uid; @@ -34,7 +34,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 15; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 15; * @return this */ public GetPlayerDetailInfoCsReq clearUid() { @@ -52,7 +52,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 15; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 15; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public final class GetPlayerDetailInfoCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 120: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java index 811e8eb..9eea173 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPlayerDetailInfoScRspOuterClass.java @@ -19,12 +19,12 @@ public final class GetPlayerDetailInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional .PlayerDetailInfo player_detail_info = 5; + * optional .PlayerDetailInfo player_detail_info = 9; */ private final PlayerDetailInfoOuterClass.PlayerDetailInfo playerDetailInfo = PlayerDetailInfoOuterClass.PlayerDetailInfo.newInstance(); @@ -39,7 +39,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 5; * @return this */ public GetPlayerDetailInfoScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 5; + * optional .PlayerDetailInfo player_detail_info = 9; * @return whether the playerDetailInfo field is set */ public boolean hasPlayerDetailInfo() { @@ -84,7 +84,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 5; + * optional .PlayerDetailInfo player_detail_info = 9; * @return this */ public GetPlayerDetailInfoScRsp clearPlayerDetailInfo() { @@ -94,7 +94,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 5; + * optional .PlayerDetailInfo player_detail_info = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 5; + * optional .PlayerDetailInfo player_detail_info = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class GetPlayerDetailInfoScRspOuterClass { } /** - * optional .PlayerDetailInfo player_detail_info = 5; + * optional .PlayerDetailInfo player_detail_info = 9; * @param value the playerDetailInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class GetPlayerDetailInfoScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 74); output.writeMessageNoTag(playerDetailInfo); } } @@ -227,16 +227,16 @@ public final class GetPlayerDetailInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 74) { break; } } - case 42: { + case 74: { // playerDetailInfo input.readMessage(playerDetailInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java index 1d95b47..4f88e14 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class GetPrivateChatHistoryCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 2; */ private int senderUid; /** - * optional uint32 to_uid = 2; + * optional uint32 to_uid = 5; */ private int toUid; @@ -39,7 +39,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 2; * @return whether the senderUid field is set */ public boolean hasSenderUid() { @@ -47,7 +47,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 2; * @return this */ public GetPrivateChatHistoryCsReq clearSenderUid() { @@ -57,7 +57,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 2; * @return the senderUid */ public int getSenderUid() { @@ -65,7 +65,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 sender_uid = 1; + * optional uint32 sender_uid = 2; * @param value the senderUid to set * @return this */ @@ -76,7 +76,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 to_uid = 2; + * optional uint32 to_uid = 5; * @return whether the toUid field is set */ public boolean hasToUid() { @@ -84,7 +84,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 to_uid = 2; + * optional uint32 to_uid = 5; * @return this */ public GetPrivateChatHistoryCsReq clearToUid() { @@ -94,7 +94,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 to_uid = 2; + * optional uint32 to_uid = 5; * @return the toUid */ public int getToUid() { @@ -102,7 +102,7 @@ public final class GetPrivateChatHistoryCsReqOuterClass { } /** - * optional uint32 to_uid = 2; + * optional uint32 to_uid = 5; * @param value the toUid to set * @return this */ @@ -177,11 +177,11 @@ public final class GetPrivateChatHistoryCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(senderUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(toUid); } } @@ -205,16 +205,16 @@ public final class GetPrivateChatHistoryCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 16: { // senderUid senderUid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 40) { break; } } - case 16: { + case 40: { // toUid toUid = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java index 3d7fd8d..e9e6397 100644 --- a/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetPrivateChatHistoryScRspOuterClass.java @@ -20,24 +20,24 @@ public final class GetPrivateChatHistoryScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 sender_uid = 3; - */ - private int senderUid; - - /** - * optional uint32 to_uid = 7; + * optional uint32 to_uid = 2; */ private int toUid; /** - * optional uint32 retcode = 15; + * optional uint32 sender_uid = 4; + */ + private int senderUid; + + /** + * optional uint32 retcode = 9; */ private int retcode; /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; */ - private final RepeatedMessage chatList = RepeatedMessage.newEmptyInstance(ChatOuterClass.Chat.getFactory()); + private final RepeatedMessage chatList = RepeatedMessage.newEmptyInstance(ChatInfoOuterClass.ChatInfo.getFactory()); private GetPrivateChatHistoryScRsp() { } @@ -50,62 +50,25 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 sender_uid = 3; - * @return whether the senderUid field is set + * optional uint32 to_uid = 2; + * @return whether the toUid field is set */ - public boolean hasSenderUid() { + public boolean hasToUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 sender_uid = 3; - * @return this - */ - public GetPrivateChatHistoryScRsp clearSenderUid() { - bitField0_ &= ~0x00000001; - senderUid = 0; - return this; - } - - /** - * optional uint32 sender_uid = 3; - * @return the senderUid - */ - public int getSenderUid() { - return senderUid; - } - - /** - * optional uint32 sender_uid = 3; - * @param value the senderUid to set - * @return this - */ - public GetPrivateChatHistoryScRsp setSenderUid(final int value) { - bitField0_ |= 0x00000001; - senderUid = value; - return this; - } - - /** - * optional uint32 to_uid = 7; - * @return whether the toUid field is set - */ - public boolean hasToUid() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 to_uid = 7; + * optional uint32 to_uid = 2; * @return this */ public GetPrivateChatHistoryScRsp clearToUid() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; toUid = 0; return this; } /** - * optional uint32 to_uid = 7; + * optional uint32 to_uid = 2; * @return the toUid */ public int getToUid() { @@ -113,18 +76,55 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 to_uid = 7; + * optional uint32 to_uid = 2; * @param value the toUid to set * @return this */ public GetPrivateChatHistoryScRsp setToUid(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; toUid = value; return this; } /** - * optional uint32 retcode = 15; + * optional uint32 sender_uid = 4; + * @return whether the senderUid field is set + */ + public boolean hasSenderUid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 sender_uid = 4; + * @return this + */ + public GetPrivateChatHistoryScRsp clearSenderUid() { + bitField0_ &= ~0x00000002; + senderUid = 0; + return this; + } + + /** + * optional uint32 sender_uid = 4; + * @return the senderUid + */ + public int getSenderUid() { + return senderUid; + } + + /** + * optional uint32 sender_uid = 4; + * @param value the senderUid to set + * @return this + */ + public GetPrivateChatHistoryScRsp setSenderUid(final int value) { + bitField0_ |= 0x00000002; + senderUid = value; + return this; + } + + /** + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -132,7 +132,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @return this */ public GetPrivateChatHistoryScRsp clearRetcode() { @@ -142,7 +142,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -150,7 +150,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -161,7 +161,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; * @return whether the chatList field is set */ public boolean hasChatList() { @@ -169,7 +169,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; * @return this */ public GetPrivateChatHistoryScRsp clearChatList() { @@ -179,7 +179,7 @@ public final class GetPrivateChatHistoryScRspOuterClass { } /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -188,12 +188,12 @@ public final class GetPrivateChatHistoryScRspOuterClass { * * @return internal storage object for reading */ - public RepeatedMessage getChatList() { + public RepeatedMessage getChatList() { return chatList; } /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -201,28 +201,28 @@ public final class GetPrivateChatHistoryScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableChatList() { + public RepeatedMessage getMutableChatList() { bitField0_ |= 0x00000008; return chatList; } /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; * @param value the chatList to add * @return this */ - public GetPrivateChatHistoryScRsp addChatList(final ChatOuterClass.Chat value) { + public GetPrivateChatHistoryScRsp addChatList(final ChatInfoOuterClass.ChatInfo value) { bitField0_ |= 0x00000008; chatList.add(value); return this; } /** - * repeated .Chat chat_list = 9; + * repeated .ChatInfo chat_list = 13; * @param values the chatList to add * @return this */ - public GetPrivateChatHistoryScRsp addAllChatList(final ChatOuterClass.Chat... values) { + public GetPrivateChatHistoryScRsp addAllChatList(final ChatInfoOuterClass.ChatInfo... values) { bitField0_ |= 0x00000008; chatList.addAll(values); return this; @@ -233,8 +233,8 @@ public final class GetPrivateChatHistoryScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - senderUid = other.senderUid; toUid = other.toUid; + senderUid = other.senderUid; retcode = other.retcode; chatList.copyFrom(other.chatList); } @@ -247,12 +247,12 @@ public final class GetPrivateChatHistoryScRspOuterClass { return this; } cachedSize = -1; - if (other.hasSenderUid()) { - setSenderUid(other.senderUid); - } if (other.hasToUid()) { setToUid(other.toUid); } + if (other.hasSenderUid()) { + setSenderUid(other.senderUid); + } if (other.hasRetcode()) { setRetcode(other.retcode); } @@ -269,8 +269,8 @@ public final class GetPrivateChatHistoryScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - senderUid = 0; toUid = 0; + senderUid = 0; retcode = 0; chatList.clear(); return this; @@ -297,8 +297,8 @@ public final class GetPrivateChatHistoryScRspOuterClass { } GetPrivateChatHistoryScRsp other = (GetPrivateChatHistoryScRsp) o; return bitField0_ == other.bitField0_ - && (!hasSenderUid() || senderUid == other.senderUid) && (!hasToUid() || toUid == other.toUid) + && (!hasSenderUid() || senderUid == other.senderUid) && (!hasRetcode() || retcode == other.retcode) && (!hasChatList() || chatList.equals(other.chatList)); } @@ -306,20 +306,20 @@ public final class GetPrivateChatHistoryScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(senderUid); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(toUid); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(senderUid); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < chatList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 106); output.writeMessageNoTag(chatList.get(i)); } } @@ -329,10 +329,10 @@ public final class GetPrivateChatHistoryScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(senderUid); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -350,34 +350,34 @@ public final class GetPrivateChatHistoryScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // senderUid - senderUid = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { + case 16: { // toUid toUid = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 32) { break; } } - case 120: { + case 32: { + // senderUid + senderUid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 74) { + if (tag != 106) { break; } } - case 74: { + case 106: { // chatList tag = input.readRepeatedMessage(chatList, tag); bitField0_ |= 0x00000008; @@ -403,10 +403,10 @@ public final class GetPrivateChatHistoryScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.senderUid, senderUid); + output.writeUInt32(FieldNames.toUid, toUid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.toUid, toUid); + output.writeUInt32(FieldNames.senderUid, senderUid); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -424,11 +424,11 @@ public final class GetPrivateChatHistoryScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 32180699: - case 997911366: { - if (input.isAtField(FieldNames.senderUid)) { + case 110520277: + case -868529012: { + if (input.isAtField(FieldNames.toUid)) { if (!input.trySkipNullValue()) { - senderUid = input.readUInt32(); + toUid = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -436,11 +436,11 @@ public final class GetPrivateChatHistoryScRspOuterClass { } break; } - case 110520277: - case -868529012: { - if (input.isAtField(FieldNames.toUid)) { + case 32180699: + case 997911366: { + if (input.isAtField(FieldNames.senderUid)) { if (!input.trySkipNullValue()) { - toUid = input.readUInt32(); + senderUid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -524,10 +524,10 @@ public final class GetPrivateChatHistoryScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); - static final FieldName toUid = FieldName.forField("toUid", "to_uid"); + static final FieldName senderUid = FieldName.forField("senderUid", "sender_uid"); + static final FieldName retcode = FieldName.forField("retcode"); static final FieldName chatList = FieldName.forField("chatList", "chat_list"); diff --git a/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java index 5d8e50a..4d1d347 100644 --- a/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetQuestDataScRspOuterClass.java @@ -20,17 +20,17 @@ public final class GetQuestDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional uint32 total_achievement_exp = 15; + * optional uint32 total_achievement_exp = 14; */ private int totalAchievementExp; /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; */ private final RepeatedMessage questList = RepeatedMessage.newEmptyInstance(QuestOuterClass.Quest.getFactory()); @@ -45,7 +45,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return this */ public GetQuestDataScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 15; + * optional uint32 total_achievement_exp = 14; * @return whether the totalAchievementExp field is set */ public boolean hasTotalAchievementExp() { @@ -90,7 +90,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 15; + * optional uint32 total_achievement_exp = 14; * @return this */ public GetQuestDataScRsp clearTotalAchievementExp() { @@ -100,7 +100,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 15; + * optional uint32 total_achievement_exp = 14; * @return the totalAchievementExp */ public int getTotalAchievementExp() { @@ -108,7 +108,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * optional uint32 total_achievement_exp = 15; + * optional uint32 total_achievement_exp = 14; * @param value the totalAchievementExp to set * @return this */ @@ -119,7 +119,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; * @return whether the questList field is set */ public boolean hasQuestList() { @@ -127,7 +127,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; * @return this */ public GetQuestDataScRsp clearQuestList() { @@ -137,7 +137,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; * @param value the questList to add * @return this */ @@ -176,7 +176,7 @@ public final class GetQuestDataScRspOuterClass { } /** - * repeated .Quest quest_list = 13; + * repeated .Quest quest_list = 5; * @param values the questList to add * @return this */ @@ -258,16 +258,16 @@ public final class GetQuestDataScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(totalAchievementExp); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < questList.length(); i++) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 42); output.writeMessageNoTag(questList.get(i)); } } @@ -295,25 +295,25 @@ public final class GetQuestDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { + case 112: { // totalAchievementExp totalAchievementExp = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 42) { break; } } - case 106: { + case 42: { // questList tag = input.readRepeatedMessage(questList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/GetRechargeGiftInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRechargeGiftInfoScRspOuterClass.java new file mode 100644 index 0000000..3fe0d45 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/GetRechargeGiftInfoScRspOuterClass.java @@ -0,0 +1,259 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class GetRechargeGiftInfoScRspOuterClass { + /** + * Protobuf type {@code GetRechargeGiftInfoScRsp} + */ + public static final class GetRechargeGiftInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 1; + */ + private int retcode; + + private GetRechargeGiftInfoScRsp() { + } + + /** + * @return a new empty instance of {@code GetRechargeGiftInfoScRsp} + */ + public static GetRechargeGiftInfoScRsp newInstance() { + return new GetRechargeGiftInfoScRsp(); + } + + /** + * optional uint32 retcode = 1; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 1; + * @return this + */ + public GetRechargeGiftInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 1; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 1; + * @param value the retcode to set + * @return this + */ + public GetRechargeGiftInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + @Override + public GetRechargeGiftInfoScRsp copyFrom(final GetRechargeGiftInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + } + return this; + } + + @Override + public GetRechargeGiftInfoScRsp mergeFrom(final GetRechargeGiftInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public GetRechargeGiftInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + return this; + } + + @Override + public GetRechargeGiftInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GetRechargeGiftInfoScRsp)) { + return false; + } + GetRechargeGiftInfoScRsp other = (GetRechargeGiftInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GetRechargeGiftInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public GetRechargeGiftInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GetRechargeGiftInfoScRsp clone() { + return new GetRechargeGiftInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GetRechargeGiftInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GetRechargeGiftInfoScRsp(), data).checkInitialized(); + } + + public static GetRechargeGiftInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetRechargeGiftInfoScRsp(), input).checkInitialized(); + } + + public static GetRechargeGiftInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetRechargeGiftInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating GetRechargeGiftInfoScRsp messages + */ + public static MessageFactory getFactory() { + return GetRechargeGiftInfoScRspFactory.INSTANCE; + } + + private enum GetRechargeGiftInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public GetRechargeGiftInfoScRsp create() { + return GetRechargeGiftInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java deleted file mode 100644 index 8da7e0e..0000000 --- a/src/generated/main/emu/lunarcore/proto/GetRollShopInfoCsReqOuterClass.java +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class GetRollShopInfoCsReqOuterClass { - /** - * Protobuf type {@code GetRollShopInfoCsReq} - */ - public static final class GetRollShopInfoCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 roll_shop_id = 7; - */ - private int rollShopId; - - private GetRollShopInfoCsReq() { - } - - /** - * @return a new empty instance of {@code GetRollShopInfoCsReq} - */ - public static GetRollShopInfoCsReq newInstance() { - return new GetRollShopInfoCsReq(); - } - - /** - * optional uint32 roll_shop_id = 7; - * @return whether the rollShopId field is set - */ - public boolean hasRollShopId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 roll_shop_id = 7; - * @return this - */ - public GetRollShopInfoCsReq clearRollShopId() { - bitField0_ &= ~0x00000001; - rollShopId = 0; - return this; - } - - /** - * optional uint32 roll_shop_id = 7; - * @return the rollShopId - */ - public int getRollShopId() { - return rollShopId; - } - - /** - * optional uint32 roll_shop_id = 7; - * @param value the rollShopId to set - * @return this - */ - public GetRollShopInfoCsReq setRollShopId(final int value) { - bitField0_ |= 0x00000001; - rollShopId = value; - return this; - } - - @Override - public GetRollShopInfoCsReq copyFrom(final GetRollShopInfoCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rollShopId = other.rollShopId; - } - return this; - } - - @Override - public GetRollShopInfoCsReq mergeFrom(final GetRollShopInfoCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRollShopId()) { - setRollShopId(other.rollShopId); - } - return this; - } - - @Override - public GetRollShopInfoCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rollShopId = 0; - return this; - } - - @Override - public GetRollShopInfoCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof GetRollShopInfoCsReq)) { - return false; - } - GetRollShopInfoCsReq other = (GetRollShopInfoCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasRollShopId() || rollShopId == other.rollShopId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rollShopId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public GetRollShopInfoCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 56: { - // rollShopId - rollShopId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rollShopId, rollShopId); - } - output.endObject(); - } - - @Override - public GetRollShopInfoCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -904898162: - case -1612413630: { - if (input.isAtField(FieldNames.rollShopId)) { - if (!input.trySkipNullValue()) { - rollShopId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public GetRollShopInfoCsReq clone() { - return new GetRollShopInfoCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static GetRollShopInfoCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRollShopInfoCsReq(), data).checkInitialized(); - } - - public static GetRollShopInfoCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRollShopInfoCsReq(), input).checkInitialized(); - } - - public static GetRollShopInfoCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRollShopInfoCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating GetRollShopInfoCsReq messages - */ - public static MessageFactory getFactory() { - return GetRollShopInfoCsReqFactory.INSTANCE; - } - - private enum GetRollShopInfoCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public GetRollShopInfoCsReq create() { - return GetRollShopInfoCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java index ed665f1..492e2fd 100644 --- a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoCsReqOuterClass.java @@ -10,7 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; public final class GetSceneMapInfoCsReqOuterClass { /** @@ -20,9 +20,9 @@ public final class GetSceneMapInfoCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 entry_id_list = 1; + * repeated .SceneIdentifierInfo scene_identifier_list = 2; */ - private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); + private final RepeatedMessage sceneIdentifierList = RepeatedMessage.newEmptyInstance(SceneIdentifierInfoOuterClass.SceneIdentifierInfo.getFactory()); private GetSceneMapInfoCsReq() { } @@ -35,39 +35,40 @@ public final class GetSceneMapInfoCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 1; - * @return whether the entryIdList field is set + * repeated .SceneIdentifierInfo scene_identifier_list = 2; + * @return whether the sceneIdentifierList field is set */ - public boolean hasEntryIdList() { + public boolean hasSceneIdentifierList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 entry_id_list = 1; + * repeated .SceneIdentifierInfo scene_identifier_list = 2; * @return this */ - public GetSceneMapInfoCsReq clearEntryIdList() { + public GetSceneMapInfoCsReq clearSceneIdentifierList() { bitField0_ &= ~0x00000001; - entryIdList.clear(); + sceneIdentifierList.clear(); return this; } /** - * repeated uint32 entry_id_list = 1; + * repeated .SceneIdentifierInfo scene_identifier_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableEntryIdList()} if you want to modify it. + * Use {@link #getMutableSceneIdentifierList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getEntryIdList() { - return entryIdList; + public RepeatedMessage getSceneIdentifierList( + ) { + return sceneIdentifierList; } /** - * repeated uint32 entry_id_list = 1; + * repeated .SceneIdentifierInfo scene_identifier_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75,30 +76,33 @@ public final class GetSceneMapInfoCsReqOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableEntryIdList() { + public RepeatedMessage getMutableSceneIdentifierList( + ) { bitField0_ |= 0x00000001; - return entryIdList; + return sceneIdentifierList; } /** - * repeated uint32 entry_id_list = 1; - * @param value the entryIdList to add + * repeated .SceneIdentifierInfo scene_identifier_list = 2; + * @param value the sceneIdentifierList to add * @return this */ - public GetSceneMapInfoCsReq addEntryIdList(final int value) { + public GetSceneMapInfoCsReq addSceneIdentifierList( + final SceneIdentifierInfoOuterClass.SceneIdentifierInfo value) { bitField0_ |= 0x00000001; - entryIdList.add(value); + sceneIdentifierList.add(value); return this; } /** - * repeated uint32 entry_id_list = 1; - * @param values the entryIdList to add + * repeated .SceneIdentifierInfo scene_identifier_list = 2; + * @param values the sceneIdentifierList to add * @return this */ - public GetSceneMapInfoCsReq addAllEntryIdList(final int... values) { + public GetSceneMapInfoCsReq addAllSceneIdentifierList( + final SceneIdentifierInfoOuterClass.SceneIdentifierInfo... values) { bitField0_ |= 0x00000001; - entryIdList.addAll(values); + sceneIdentifierList.addAll(values); return this; } @@ -107,7 +111,7 @@ public final class GetSceneMapInfoCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entryIdList.copyFrom(other.entryIdList); + sceneIdentifierList.copyFrom(other.sceneIdentifierList); } return this; } @@ -118,8 +122,8 @@ public final class GetSceneMapInfoCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasEntryIdList()) { - getMutableEntryIdList().addAll(other.entryIdList); + if (other.hasSceneIdentifierList()) { + getMutableSceneIdentifierList().addAll(other.sceneIdentifierList); } return this; } @@ -131,7 +135,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - entryIdList.clear(); + sceneIdentifierList.clear(); return this; } @@ -142,7 +146,7 @@ public final class GetSceneMapInfoCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - entryIdList.clear(); + sceneIdentifierList.clearQuick(); return this; } @@ -156,15 +160,15 @@ public final class GetSceneMapInfoCsReqOuterClass { } GetSceneMapInfoCsReq other = (GetSceneMapInfoCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEntryIdList() || entryIdList.equals(other.entryIdList)); + && (!hasSceneIdentifierList() || sceneIdentifierList.equals(other.sceneIdentifierList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < entryIdList.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(entryIdList.array()[i]); + for (int i = 0; i < sceneIdentifierList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(sceneIdentifierList.get(i)); } } } @@ -173,7 +177,7 @@ public final class GetSceneMapInfoCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * entryIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(entryIdList); + size += (1 * sceneIdentifierList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(sceneIdentifierList); } return size; } @@ -185,11 +189,10 @@ public final class GetSceneMapInfoCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 10: { - // entryIdList [packed=true] - input.readPackedUInt32(entryIdList, tag); + case 18: { + // sceneIdentifierList + tag = input.readRepeatedMessage(sceneIdentifierList, tag); bitField0_ |= 0x00000001; - tag = input.readTag(); if (tag != 0) { break; } @@ -204,12 +207,6 @@ public final class GetSceneMapInfoCsReqOuterClass { tag = input.readTag(); break; } - case 8: { - // entryIdList [packed=false] - tag = input.readRepeatedUInt32(entryIdList, tag); - bitField0_ |= 0x00000001; - break; - } } } } @@ -218,7 +215,7 @@ public final class GetSceneMapInfoCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.entryIdList, entryIdList); + output.writeRepeatedMessage(FieldNames.sceneIdentifierList, sceneIdentifierList); } output.endObject(); } @@ -230,11 +227,11 @@ public final class GetSceneMapInfoCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1441102997: - case -1413189003: { - if (input.isAtField(FieldNames.entryIdList)) { + case 2084721811: + case -601025343: { + if (input.isAtField(FieldNames.sceneIdentifierList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(entryIdList); + input.readRepeatedMessage(sceneIdentifierList); bitField0_ |= 0x00000001; } } else { @@ -295,7 +292,7 @@ public final class GetSceneMapInfoCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entryIdList = FieldName.forField("entryIdList", "entry_id_list"); + static final FieldName sceneIdentifierList = FieldName.forField("sceneIdentifierList", "scene_identifier_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java index 7b2ade6..187f0e3 100644 --- a/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSceneMapInfoScRspOuterClass.java @@ -20,14 +20,14 @@ public final class GetSceneMapInfoScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; */ private int retcode; /** - * repeated .MazeMapData map_list = 5; + * repeated .SceneMapInfo scene_map_info_list = 7; */ - private final RepeatedMessage mapList = RepeatedMessage.newEmptyInstance(MazeMapDataOuterClass.MazeMapData.getFactory()); + private final RepeatedMessage sceneMapInfoList = RepeatedMessage.newEmptyInstance(SceneMapInfoOuterClass.SceneMapInfo.getFactory()); private GetSceneMapInfoScRsp() { } @@ -40,7 +40,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return this */ public GetSceneMapInfoScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -77,39 +77,39 @@ public final class GetSceneMapInfoScRspOuterClass { } /** - * repeated .MazeMapData map_list = 5; - * @return whether the mapList field is set + * repeated .SceneMapInfo scene_map_info_list = 7; + * @return whether the sceneMapInfoList field is set */ - public boolean hasMapList() { + public boolean hasSceneMapInfoList() { return (bitField0_ & 0x00000002) != 0; } /** - * repeated .MazeMapData map_list = 5; + * repeated .SceneMapInfo scene_map_info_list = 7; * @return this */ - public GetSceneMapInfoScRsp clearMapList() { + public GetSceneMapInfoScRsp clearSceneMapInfoList() { bitField0_ &= ~0x00000002; - mapList.clear(); + sceneMapInfoList.clear(); return this; } /** - * repeated .MazeMapData map_list = 5; + * repeated .SceneMapInfo scene_map_info_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMapList()} if you want to modify it. + * Use {@link #getMutableSceneMapInfoList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getMapList() { - return mapList; + public RepeatedMessage getSceneMapInfoList() { + return sceneMapInfoList; } /** - * repeated .MazeMapData map_list = 5; + * repeated .SceneMapInfo scene_map_info_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -117,30 +117,32 @@ public final class GetSceneMapInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableMapList() { + public RepeatedMessage getMutableSceneMapInfoList() { bitField0_ |= 0x00000002; - return mapList; + return sceneMapInfoList; } /** - * repeated .MazeMapData map_list = 5; - * @param value the mapList to add + * repeated .SceneMapInfo scene_map_info_list = 7; + * @param value the sceneMapInfoList to add * @return this */ - public GetSceneMapInfoScRsp addMapList(final MazeMapDataOuterClass.MazeMapData value) { + public GetSceneMapInfoScRsp addSceneMapInfoList( + final SceneMapInfoOuterClass.SceneMapInfo value) { bitField0_ |= 0x00000002; - mapList.add(value); + sceneMapInfoList.add(value); return this; } /** - * repeated .MazeMapData map_list = 5; - * @param values the mapList to add + * repeated .SceneMapInfo scene_map_info_list = 7; + * @param values the sceneMapInfoList to add * @return this */ - public GetSceneMapInfoScRsp addAllMapList(final MazeMapDataOuterClass.MazeMapData... values) { + public GetSceneMapInfoScRsp addAllSceneMapInfoList( + final SceneMapInfoOuterClass.SceneMapInfo... values) { bitField0_ |= 0x00000002; - mapList.addAll(values); + sceneMapInfoList.addAll(values); return this; } @@ -150,7 +152,7 @@ public final class GetSceneMapInfoScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - mapList.copyFrom(other.mapList); + sceneMapInfoList.copyFrom(other.sceneMapInfoList); } return this; } @@ -164,8 +166,8 @@ public final class GetSceneMapInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasMapList()) { - getMutableMapList().addAll(other.mapList); + if (other.hasSceneMapInfoList()) { + getMutableSceneMapInfoList().addAll(other.sceneMapInfoList); } return this; } @@ -178,7 +180,7 @@ public final class GetSceneMapInfoScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - mapList.clear(); + sceneMapInfoList.clear(); return this; } @@ -189,7 +191,7 @@ public final class GetSceneMapInfoScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - mapList.clearQuick(); + sceneMapInfoList.clearQuick(); return this; } @@ -204,19 +206,19 @@ public final class GetSceneMapInfoScRspOuterClass { GetSceneMapInfoScRsp other = (GetSceneMapInfoScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasMapList() || mapList.equals(other.mapList)); + && (!hasSceneMapInfoList() || sceneMapInfoList.equals(other.sceneMapInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < mapList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(mapList.get(i)); + for (int i = 0; i < sceneMapInfoList.length(); i++) { + output.writeRawByte((byte) 58); + output.writeMessageNoTag(sceneMapInfoList.get(i)); } } } @@ -228,7 +230,7 @@ public final class GetSceneMapInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += (1 * mapList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mapList); + size += (1 * sceneMapInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(sceneMapInfoList); } return size; } @@ -240,18 +242,18 @@ public final class GetSceneMapInfoScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 58) { break; } } - case 42: { - // mapList - tag = input.readRepeatedMessage(mapList, tag); + case 58: { + // sceneMapInfoList + tag = input.readRepeatedMessage(sceneMapInfoList, tag); bitField0_ |= 0x00000002; if (tag != 0) { break; @@ -278,7 +280,7 @@ public final class GetSceneMapInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.mapList, mapList); + output.writeRepeatedMessage(FieldNames.sceneMapInfoList, sceneMapInfoList); } output.endObject(); } @@ -301,11 +303,11 @@ public final class GetSceneMapInfoScRspOuterClass { } break; } - case 836484122: - case 178830753: { - if (input.isAtField(FieldNames.mapList)) { + case -79401028: + case -111975431: { + if (input.isAtField(FieldNames.sceneMapInfoList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mapList); + input.readRepeatedMessage(sceneMapInfoList); bitField0_ |= 0x00000002; } } else { @@ -368,7 +370,7 @@ public final class GetSceneMapInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName mapList = FieldName.forField("mapList", "map_list"); + static final FieldName sceneMapInfoList = FieldName.forField("sceneMapInfoList", "scene_map_info_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java index e961ed5..8ba7aa4 100644 --- a/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetShopListCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GetShopListCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 6; */ private int shopType; @@ -34,7 +34,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 6; * @return whether the shopType field is set */ public boolean hasShopType() { @@ -42,7 +42,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 6; * @return this */ public GetShopListCsReq clearShopType() { @@ -52,7 +52,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 6; * @return the shopType */ public int getShopType() { @@ -60,7 +60,7 @@ public final class GetShopListCsReqOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 6; * @param value the shopType to set * @return this */ @@ -129,7 +129,7 @@ public final class GetShopListCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(shopType); } } @@ -150,7 +150,7 @@ public final class GetShopListCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 48: { // shopType shopType = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java index edb555d..acd6268 100644 --- a/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetShopListScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetShopListScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 3; */ private int shopType; @@ -45,7 +45,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 1; * @return this */ public GetShopListScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 3; * @return whether the shopType field is set */ public boolean hasShopType() { @@ -90,7 +90,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 3; * @return this */ public GetShopListScRsp clearShopType() { @@ -100,7 +100,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 3; * @return the shopType */ public int getShopType() { @@ -108,7 +108,7 @@ public final class GetShopListScRspOuterClass { } /** - * optional uint32 shop_type = 13; + * optional uint32 shop_type = 3; * @param value the shopType to set * @return this */ @@ -258,11 +258,11 @@ public final class GetShopListScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(shopType); } if ((bitField0_ & 0x00000004) != 0) { @@ -295,16 +295,16 @@ public final class GetShopListScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 24) { break; } } - case 104: { + case 24: { // shopType shopType = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetSocialEventServerCacheScRspOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetSocialEventServerCacheScRspOuterClass.java index 65272a2..5b7d643 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueScoreRewardInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetSocialEventServerCacheScRspOuterClass.java @@ -10,36 +10,37 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class GetRogueScoreRewardInfoScRspOuterClass { +public final class GetSocialEventServerCacheScRspOuterClass { /** - * Protobuf type {@code GetRogueScoreRewardInfoScRsp} + * Protobuf type {@code GetSocialEventServerCacheScRsp} */ - public static final class GetRogueScoreRewardInfoScRsp extends ProtoMessage implements Cloneable { + public static final class GetSocialEventServerCacheScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 12; */ private int retcode; /** - * optional .RogueScoreRewardInfo score_reward_info = 1; + * repeated .SocialEventServerCache social_event = 6; */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); + private final RepeatedMessage socialEvent = RepeatedMessage.newEmptyInstance(SocialEventServerCacheOuterClass.SocialEventServerCache.getFactory()); - private GetRogueScoreRewardInfoScRsp() { + private GetSocialEventServerCacheScRsp() { } /** - * @return a new empty instance of {@code GetRogueScoreRewardInfoScRsp} + * @return a new empty instance of {@code GetSocialEventServerCacheScRsp} */ - public static GetRogueScoreRewardInfoScRsp newInstance() { - return new GetRogueScoreRewardInfoScRsp(); + public static GetSocialEventServerCacheScRsp newInstance() { + return new GetSocialEventServerCacheScRsp(); } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +48,17 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 12; * @return this */ - public GetRogueScoreRewardInfoScRsp clearRetcode() { + public GetSocialEventServerCacheScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -65,50 +66,51 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ - public GetRogueScoreRewardInfoScRsp setRetcode(final int value) { + public GetSocialEventServerCacheScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueScoreRewardInfo score_reward_info = 1; - * @return whether the scoreRewardInfo field is set + * repeated .SocialEventServerCache social_event = 6; + * @return whether the socialEvent field is set */ - public boolean hasScoreRewardInfo() { + public boolean hasSocialEvent() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueScoreRewardInfo score_reward_info = 1; + * repeated .SocialEventServerCache social_event = 6; * @return this */ - public GetRogueScoreRewardInfoScRsp clearScoreRewardInfo() { + public GetSocialEventServerCacheScRsp clearSocialEvent() { bitField0_ &= ~0x00000002; - scoreRewardInfo.clear(); + socialEvent.clear(); return this; } /** - * optional .RogueScoreRewardInfo score_reward_info = 1; + * repeated .SocialEventServerCache social_event = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableScoreRewardInfo()} if you want to modify it. + * Use {@link #getMutableSocialEvent()} if you want to modify it. * * @return internal storage object for reading */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { - return scoreRewardInfo; + public RepeatedMessage getSocialEvent( + ) { + return socialEvent; } /** - * optional .RogueScoreRewardInfo score_reward_info = 1; + * repeated .SocialEventServerCache social_event = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +118,49 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreRewardInfo() { + public RepeatedMessage getMutableSocialEvent( + ) { bitField0_ |= 0x00000002; - return scoreRewardInfo; + return socialEvent; } /** - * optional .RogueScoreRewardInfo score_reward_info = 1; - * @param value the scoreRewardInfo to set + * repeated .SocialEventServerCache social_event = 6; + * @param value the socialEvent to add * @return this */ - public GetRogueScoreRewardInfoScRsp setScoreRewardInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { + public GetSocialEventServerCacheScRsp addSocialEvent( + final SocialEventServerCacheOuterClass.SocialEventServerCache value) { bitField0_ |= 0x00000002; - scoreRewardInfo.copyFrom(value); + socialEvent.add(value); + return this; + } + + /** + * repeated .SocialEventServerCache social_event = 6; + * @param values the socialEvent to add + * @return this + */ + public GetSocialEventServerCacheScRsp addAllSocialEvent( + final SocialEventServerCacheOuterClass.SocialEventServerCache... values) { + bitField0_ |= 0x00000002; + socialEvent.addAll(values); return this; } @Override - public GetRogueScoreRewardInfoScRsp copyFrom(final GetRogueScoreRewardInfoScRsp other) { + public GetSocialEventServerCacheScRsp copyFrom(final GetSocialEventServerCacheScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - scoreRewardInfo.copyFrom(other.scoreRewardInfo); + socialEvent.copyFrom(other.socialEvent); } return this; } @Override - public GetRogueScoreRewardInfoScRsp mergeFrom(final GetRogueScoreRewardInfoScRsp other) { + public GetSocialEventServerCacheScRsp mergeFrom(final GetSocialEventServerCacheScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +168,32 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasScoreRewardInfo()) { - getMutableScoreRewardInfo().mergeFrom(other.scoreRewardInfo); + if (other.hasSocialEvent()) { + getMutableSocialEvent().addAll(other.socialEvent); } return this; } @Override - public GetRogueScoreRewardInfoScRsp clear() { + public GetSocialEventServerCacheScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - scoreRewardInfo.clear(); + socialEvent.clear(); return this; } @Override - public GetRogueScoreRewardInfoScRsp clearQuick() { + public GetSocialEventServerCacheScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - scoreRewardInfo.clearQuick(); + socialEvent.clearQuick(); return this; } @@ -187,24 +202,26 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRogueScoreRewardInfoScRsp)) { + if (!(o instanceof GetSocialEventServerCacheScRsp)) { return false; } - GetRogueScoreRewardInfoScRsp other = (GetRogueScoreRewardInfoScRsp) o; + GetSocialEventServerCacheScRsp other = (GetSocialEventServerCacheScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasScoreRewardInfo() || scoreRewardInfo.equals(other.scoreRewardInfo)); + && (!hasSocialEvent() || socialEvent.equals(other.socialEvent)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(scoreRewardInfo); + for (int i = 0; i < socialEvent.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(socialEvent.get(i)); + } } } @@ -215,32 +232,31 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scoreRewardInfo); + size += (1 * socialEvent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(socialEvent); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRogueScoreRewardInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetSocialEventServerCacheScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 50) { break; } } - case 10: { - // scoreRewardInfo - input.readMessage(scoreRewardInfo); + case 50: { + // socialEvent + tag = input.readRepeatedMessage(socialEvent, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +282,13 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.scoreRewardInfo, scoreRewardInfo); + output.writeRepeatedMessage(FieldNames.socialEvent, socialEvent); } output.endObject(); } @Override - public GetRogueScoreRewardInfoScRsp mergeFrom(final JsonSource input) throws IOException { + public GetSocialEventServerCacheScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +305,11 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { } break; } - case 672564399: - case 751191441: { - if (input.isAtField(FieldNames.scoreRewardInfo)) { + case -2014181587: + case -1580931256: { + if (input.isAtField(FieldNames.socialEvent)) { if (!input.trySkipNullValue()) { - input.readMessage(scoreRewardInfo); + input.readRepeatedMessage(socialEvent); bitField0_ |= 0x00000002; } } else { @@ -312,8 +328,8 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { } @Override - public GetRogueScoreRewardInfoScRsp clone() { - return new GetRogueScoreRewardInfoScRsp().copyFrom(this); + public GetSocialEventServerCacheScRsp clone() { + return new GetSocialEventServerCacheScRsp().copyFrom(this); } @Override @@ -321,34 +337,34 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { return ((bitField0_) == 0); } - public static GetRogueScoreRewardInfoScRsp parseFrom(final byte[] data) throws + public static GetSocialEventServerCacheScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetSocialEventServerCacheScRsp(), data).checkInitialized(); } - public static GetRogueScoreRewardInfoScRsp parseFrom(final ProtoSource input) throws + public static GetSocialEventServerCacheScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), input).checkInitialized(); + return ProtoMessage.mergeFrom(new GetSocialEventServerCacheScRsp(), input).checkInitialized(); } - public static GetRogueScoreRewardInfoScRsp parseFrom(final JsonSource input) throws + public static GetSocialEventServerCacheScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), input).checkInitialized(); + return ProtoMessage.mergeFrom(new GetSocialEventServerCacheScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRogueScoreRewardInfoScRsp messages + * @return factory for creating GetSocialEventServerCacheScRsp messages */ - public static MessageFactory getFactory() { - return GetRogueScoreRewardInfoScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetSocialEventServerCacheScRspFactory.INSTANCE; } - private enum GetRogueScoreRewardInfoScRspFactory implements MessageFactory { + private enum GetSocialEventServerCacheScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRogueScoreRewardInfoScRsp create() { - return GetRogueScoreRewardInfoScRsp.newInstance(); + public GetSocialEventServerCacheScRsp create() { + return GetSocialEventServerCacheScRsp.newInstance(); } } @@ -358,7 +374,7 @@ public final class GetRogueScoreRewardInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName scoreRewardInfo = FieldName.forField("scoreRewardInfo", "score_reward_info"); + static final FieldName socialEvent = FieldName.forField("socialEvent", "social_event"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueBuffEnhanceInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetTutorialGuideScRspOuterClass.java similarity index 55% rename from src/generated/main/emu/lunarcore/proto/GetRogueBuffEnhanceInfoScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetTutorialGuideScRspOuterClass.java index d2e6317..46b3bac 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueBuffEnhanceInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetTutorialGuideScRspOuterClass.java @@ -10,12 +10,13 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class GetRogueBuffEnhanceInfoScRspOuterClass { +public final class GetTutorialGuideScRspOuterClass { /** - * Protobuf type {@code GetRogueBuffEnhanceInfoScRsp} + * Protobuf type {@code GetTutorialGuideScRsp} */ - public static final class GetRogueBuffEnhanceInfoScRsp extends ProtoMessage implements Cloneable { + public static final class GetTutorialGuideScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -24,18 +25,18 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { private int retcode; /** - * optional .RogueBuffEnhanceShopInfo shop_info = 8; + * repeated .TutorialGuide tutorial_guide_list = 10; */ - private final RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo shopInfo = RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo.newInstance(); + private final RepeatedMessage tutorialGuideList = RepeatedMessage.newEmptyInstance(TutorialGuideOuterClass.TutorialGuide.getFactory()); - private GetRogueBuffEnhanceInfoScRsp() { + private GetTutorialGuideScRsp() { } /** - * @return a new empty instance of {@code GetRogueBuffEnhanceInfoScRsp} + * @return a new empty instance of {@code GetTutorialGuideScRsp} */ - public static GetRogueBuffEnhanceInfoScRsp newInstance() { - return new GetRogueBuffEnhanceInfoScRsp(); + public static GetTutorialGuideScRsp newInstance() { + return new GetTutorialGuideScRsp(); } /** @@ -50,7 +51,7 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { * optional uint32 retcode = 2; * @return this */ - public GetRogueBuffEnhanceInfoScRsp clearRetcode() { + public GetTutorialGuideScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; @@ -69,46 +70,46 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { * @param value the retcode to set * @return this */ - public GetRogueBuffEnhanceInfoScRsp setRetcode(final int value) { + public GetTutorialGuideScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueBuffEnhanceShopInfo shop_info = 8; - * @return whether the shopInfo field is set + * repeated .TutorialGuide tutorial_guide_list = 10; + * @return whether the tutorialGuideList field is set */ - public boolean hasShopInfo() { + public boolean hasTutorialGuideList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueBuffEnhanceShopInfo shop_info = 8; + * repeated .TutorialGuide tutorial_guide_list = 10; * @return this */ - public GetRogueBuffEnhanceInfoScRsp clearShopInfo() { + public GetTutorialGuideScRsp clearTutorialGuideList() { bitField0_ &= ~0x00000002; - shopInfo.clear(); + tutorialGuideList.clear(); return this; } /** - * optional .RogueBuffEnhanceShopInfo shop_info = 8; + * repeated .TutorialGuide tutorial_guide_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableShopInfo()} if you want to modify it. + * Use {@link #getMutableTutorialGuideList()} if you want to modify it. * * @return internal storage object for reading */ - public RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo getShopInfo() { - return shopInfo; + public RepeatedMessage getTutorialGuideList() { + return tutorialGuideList; } /** - * optional .RogueBuffEnhanceShopInfo shop_info = 8; + * repeated .TutorialGuide tutorial_guide_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +117,48 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo getMutableShopInfo() { + public RepeatedMessage getMutableTutorialGuideList() { bitField0_ |= 0x00000002; - return shopInfo; + return tutorialGuideList; } /** - * optional .RogueBuffEnhanceShopInfo shop_info = 8; - * @param value the shopInfo to set + * repeated .TutorialGuide tutorial_guide_list = 10; + * @param value the tutorialGuideList to add * @return this */ - public GetRogueBuffEnhanceInfoScRsp setShopInfo( - final RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo value) { + public GetTutorialGuideScRsp addTutorialGuideList( + final TutorialGuideOuterClass.TutorialGuide value) { bitField0_ |= 0x00000002; - shopInfo.copyFrom(value); + tutorialGuideList.add(value); + return this; + } + + /** + * repeated .TutorialGuide tutorial_guide_list = 10; + * @param values the tutorialGuideList to add + * @return this + */ + public GetTutorialGuideScRsp addAllTutorialGuideList( + final TutorialGuideOuterClass.TutorialGuide... values) { + bitField0_ |= 0x00000002; + tutorialGuideList.addAll(values); return this; } @Override - public GetRogueBuffEnhanceInfoScRsp copyFrom(final GetRogueBuffEnhanceInfoScRsp other) { + public GetTutorialGuideScRsp copyFrom(final GetTutorialGuideScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - shopInfo.copyFrom(other.shopInfo); + tutorialGuideList.copyFrom(other.tutorialGuideList); } return this; } @Override - public GetRogueBuffEnhanceInfoScRsp mergeFrom(final GetRogueBuffEnhanceInfoScRsp other) { + public GetTutorialGuideScRsp mergeFrom(final GetTutorialGuideScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +166,32 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasShopInfo()) { - getMutableShopInfo().mergeFrom(other.shopInfo); + if (other.hasTutorialGuideList()) { + getMutableTutorialGuideList().addAll(other.tutorialGuideList); } return this; } @Override - public GetRogueBuffEnhanceInfoScRsp clear() { + public GetTutorialGuideScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - shopInfo.clear(); + tutorialGuideList.clear(); return this; } @Override - public GetRogueBuffEnhanceInfoScRsp clearQuick() { + public GetTutorialGuideScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - shopInfo.clearQuick(); + tutorialGuideList.clearQuick(); return this; } @@ -187,13 +200,13 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRogueBuffEnhanceInfoScRsp)) { + if (!(o instanceof GetTutorialGuideScRsp)) { return false; } - GetRogueBuffEnhanceInfoScRsp other = (GetRogueBuffEnhanceInfoScRsp) o; + GetTutorialGuideScRsp other = (GetTutorialGuideScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasShopInfo() || shopInfo.equals(other.shopInfo)); + && (!hasTutorialGuideList() || tutorialGuideList.equals(other.tutorialGuideList)); } @Override @@ -203,8 +216,10 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(shopInfo); + for (int i = 0; i < tutorialGuideList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(tutorialGuideList.get(i)); + } } } @@ -215,14 +230,14 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(shopInfo); + size += (1 * tutorialGuideList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialGuideList); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRogueBuffEnhanceInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetTutorialGuideScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -232,15 +247,14 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 82) { break; } } - case 66: { - // shopInfo - input.readMessage(shopInfo); + case 82: { + // tutorialGuideList + tag = input.readRepeatedMessage(tutorialGuideList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +280,13 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.shopInfo, shopInfo); + output.writeRepeatedMessage(FieldNames.tutorialGuideList, tutorialGuideList); } output.endObject(); } @Override - public GetRogueBuffEnhanceInfoScRsp mergeFrom(final JsonSource input) throws IOException { + public GetTutorialGuideScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +303,11 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { } break; } - case -345618236: - case -2104054697: { - if (input.isAtField(FieldNames.shopInfo)) { + case 515727356: + case -299913342: { + if (input.isAtField(FieldNames.tutorialGuideList)) { if (!input.trySkipNullValue()) { - input.readMessage(shopInfo); + input.readRepeatedMessage(tutorialGuideList); bitField0_ |= 0x00000002; } } else { @@ -312,8 +326,8 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { } @Override - public GetRogueBuffEnhanceInfoScRsp clone() { - return new GetRogueBuffEnhanceInfoScRsp().copyFrom(this); + public GetTutorialGuideScRsp clone() { + return new GetTutorialGuideScRsp().copyFrom(this); } @Override @@ -321,34 +335,32 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { return ((bitField0_) == 0); } - public static GetRogueBuffEnhanceInfoScRsp parseFrom(final byte[] data) throws + public static GetTutorialGuideScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRogueBuffEnhanceInfoScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetTutorialGuideScRsp(), data).checkInitialized(); } - public static GetRogueBuffEnhanceInfoScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetRogueBuffEnhanceInfoScRsp(), input).checkInitialized(); + public static GetTutorialGuideScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetTutorialGuideScRsp(), input).checkInitialized(); } - public static GetRogueBuffEnhanceInfoScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new GetRogueBuffEnhanceInfoScRsp(), input).checkInitialized(); + public static GetTutorialGuideScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetTutorialGuideScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRogueBuffEnhanceInfoScRsp messages + * @return factory for creating GetTutorialGuideScRsp messages */ - public static MessageFactory getFactory() { - return GetRogueBuffEnhanceInfoScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetTutorialGuideScRspFactory.INSTANCE; } - private enum GetRogueBuffEnhanceInfoScRspFactory implements MessageFactory { + private enum GetTutorialGuideScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRogueBuffEnhanceInfoScRsp create() { - return GetRogueBuffEnhanceInfoScRsp.newInstance(); + public GetTutorialGuideScRsp create() { + return GetTutorialGuideScRsp.newInstance(); } } @@ -358,7 +370,7 @@ public final class GetRogueBuffEnhanceInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName shopInfo = FieldName.forField("shopInfo", "shop_info"); + static final FieldName tutorialGuideList = FieldName.forField("tutorialGuideList", "tutorial_guide_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetTutorialScRspOuterClass.java similarity index 55% rename from src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/GetTutorialScRspOuterClass.java index 1b8edbd..fb56755 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueTalentInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetTutorialScRspOuterClass.java @@ -10,36 +10,37 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; -public final class GetRogueTalentInfoScRspOuterClass { +public final class GetTutorialScRspOuterClass { /** - * Protobuf type {@code GetRogueTalentInfoScRsp} + * Protobuf type {@code GetTutorialScRsp} */ - public static final class GetRogueTalentInfoScRsp extends ProtoMessage implements Cloneable { + public static final class GetTutorialScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 10; */ private int retcode; /** - * optional .RogueTalentInfo talent_info = 8; + * repeated .Tutorial tutorial_list = 1; */ - private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance(); + private final RepeatedMessage tutorialList = RepeatedMessage.newEmptyInstance(TutorialOuterClass.Tutorial.getFactory()); - private GetRogueTalentInfoScRsp() { + private GetTutorialScRsp() { } /** - * @return a new empty instance of {@code GetRogueTalentInfoScRsp} + * @return a new empty instance of {@code GetTutorialScRsp} */ - public static GetRogueTalentInfoScRsp newInstance() { - return new GetRogueTalentInfoScRsp(); + public static GetTutorialScRsp newInstance() { + return new GetTutorialScRsp(); } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +48,17 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 10; * @return this */ - public GetRogueTalentInfoScRsp clearRetcode() { + public GetTutorialScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -65,50 +66,50 @@ public final class GetRogueTalentInfoScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ - public GetRogueTalentInfoScRsp setRetcode(final int value) { + public GetTutorialScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueTalentInfo talent_info = 8; - * @return whether the talentInfo field is set + * repeated .Tutorial tutorial_list = 1; + * @return whether the tutorialList field is set */ - public boolean hasTalentInfo() { + public boolean hasTutorialList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueTalentInfo talent_info = 8; + * repeated .Tutorial tutorial_list = 1; * @return this */ - public GetRogueTalentInfoScRsp clearTalentInfo() { + public GetTutorialScRsp clearTutorialList() { bitField0_ &= ~0x00000002; - talentInfo.clear(); + tutorialList.clear(); return this; } /** - * optional .RogueTalentInfo talent_info = 8; + * repeated .Tutorial tutorial_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableTalentInfo()} if you want to modify it. + * Use {@link #getMutableTutorialList()} if you want to modify it. * * @return internal storage object for reading */ - public RogueTalentInfoOuterClass.RogueTalentInfo getTalentInfo() { - return talentInfo; + public RepeatedMessage getTutorialList() { + return tutorialList; } /** - * optional .RogueTalentInfo talent_info = 8; + * repeated .Tutorial tutorial_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +117,46 @@ public final class GetRogueTalentInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RogueTalentInfoOuterClass.RogueTalentInfo getMutableTalentInfo() { + public RepeatedMessage getMutableTutorialList() { bitField0_ |= 0x00000002; - return talentInfo; + return tutorialList; } /** - * optional .RogueTalentInfo talent_info = 8; - * @param value the talentInfo to set + * repeated .Tutorial tutorial_list = 1; + * @param value the tutorialList to add * @return this */ - public GetRogueTalentInfoScRsp setTalentInfo( - final RogueTalentInfoOuterClass.RogueTalentInfo value) { + public GetTutorialScRsp addTutorialList(final TutorialOuterClass.Tutorial value) { bitField0_ |= 0x00000002; - talentInfo.copyFrom(value); + tutorialList.add(value); + return this; + } + + /** + * repeated .Tutorial tutorial_list = 1; + * @param values the tutorialList to add + * @return this + */ + public GetTutorialScRsp addAllTutorialList(final TutorialOuterClass.Tutorial... values) { + bitField0_ |= 0x00000002; + tutorialList.addAll(values); return this; } @Override - public GetRogueTalentInfoScRsp copyFrom(final GetRogueTalentInfoScRsp other) { + public GetTutorialScRsp copyFrom(final GetTutorialScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - talentInfo.copyFrom(other.talentInfo); + tutorialList.copyFrom(other.tutorialList); } return this; } @Override - public GetRogueTalentInfoScRsp mergeFrom(final GetRogueTalentInfoScRsp other) { + public GetTutorialScRsp mergeFrom(final GetTutorialScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +164,32 @@ public final class GetRogueTalentInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasTalentInfo()) { - getMutableTalentInfo().mergeFrom(other.talentInfo); + if (other.hasTutorialList()) { + getMutableTutorialList().addAll(other.tutorialList); } return this; } @Override - public GetRogueTalentInfoScRsp clear() { + public GetTutorialScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - talentInfo.clear(); + tutorialList.clear(); return this; } @Override - public GetRogueTalentInfoScRsp clearQuick() { + public GetTutorialScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - talentInfo.clearQuick(); + tutorialList.clearQuick(); return this; } @@ -187,24 +198,26 @@ public final class GetRogueTalentInfoScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRogueTalentInfoScRsp)) { + if (!(o instanceof GetTutorialScRsp)) { return false; } - GetRogueTalentInfoScRsp other = (GetRogueTalentInfoScRsp) o; + GetTutorialScRsp other = (GetTutorialScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasTalentInfo() || talentInfo.equals(other.talentInfo)); + && (!hasTutorialList() || tutorialList.equals(other.tutorialList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(talentInfo); + for (int i = 0; i < tutorialList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(tutorialList.get(i)); + } } } @@ -215,32 +228,31 @@ public final class GetRogueTalentInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(talentInfo); + size += (1 * tutorialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(tutorialList); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRogueTalentInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + public GetTutorialScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 112: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 10) { break; } } - case 66: { - // talentInfo - input.readMessage(talentInfo); + case 10: { + // tutorialList + tag = input.readRepeatedMessage(tutorialList, tag); bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -266,13 +278,13 @@ public final class GetRogueTalentInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.talentInfo, talentInfo); + output.writeRepeatedMessage(FieldNames.tutorialList, tutorialList); } output.endObject(); } @Override - public GetRogueTalentInfoScRsp mergeFrom(final JsonSource input) throws IOException { + public GetTutorialScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +301,11 @@ public final class GetRogueTalentInfoScRspOuterClass { } break; } - case 1396978618: - case 376840225: { - if (input.isAtField(FieldNames.talentInfo)) { + case 608727324: + case 1708304607: { + if (input.isAtField(FieldNames.tutorialList)) { if (!input.trySkipNullValue()) { - input.readMessage(talentInfo); + input.readRepeatedMessage(tutorialList); bitField0_ |= 0x00000002; } } else { @@ -312,8 +324,8 @@ public final class GetRogueTalentInfoScRspOuterClass { } @Override - public GetRogueTalentInfoScRsp clone() { - return new GetRogueTalentInfoScRsp().copyFrom(this); + public GetTutorialScRsp clone() { + return new GetTutorialScRsp().copyFrom(this); } @Override @@ -321,32 +333,32 @@ public final class GetRogueTalentInfoScRspOuterClass { return ((bitField0_) == 0); } - public static GetRogueTalentInfoScRsp parseFrom(final byte[] data) throws + public static GetTutorialScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRogueTalentInfoScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new GetTutorialScRsp(), data).checkInitialized(); } - public static GetRogueTalentInfoScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueTalentInfoScRsp(), input).checkInitialized(); + public static GetTutorialScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetTutorialScRsp(), input).checkInitialized(); } - public static GetRogueTalentInfoScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueTalentInfoScRsp(), input).checkInitialized(); + public static GetTutorialScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GetTutorialScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRogueTalentInfoScRsp messages + * @return factory for creating GetTutorialScRsp messages */ - public static MessageFactory getFactory() { - return GetRogueTalentInfoScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return GetTutorialScRspFactory.INSTANCE; } - private enum GetRogueTalentInfoScRspFactory implements MessageFactory { + private enum GetTutorialScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRogueTalentInfoScRsp create() { - return GetRogueTalentInfoScRsp.newInstance(); + public GetTutorialScRsp create() { + return GetTutorialScRsp.newInstance(); } } @@ -356,7 +368,7 @@ public final class GetRogueTalentInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName talentInfo = FieldName.forField("talentInfo", "talent_info"); + static final FieldName tutorialList = FieldName.forField("tutorialList", "tutorial_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java index ee0b4f4..d7b76a9 100644 --- a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class GetUnlockTeleportCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; */ private final RepeatedInt entryIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; * @return whether the entryIdList field is set */ public boolean hasEntryIdList() { @@ -43,7 +43,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; * @return this */ public GetUnlockTeleportCsReq clearEntryIdList() { @@ -53,7 +53,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; * @param value the entryIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class GetUnlockTeleportCsReqOuterClass { } /** - * repeated uint32 entry_id_list = 12; + * repeated uint32 entry_id_list = 15; * @param values the entryIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class GetUnlockTeleportCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entryIdList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(entryIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class GetUnlockTeleportCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { + case 122: { // entryIdList [packed=true] input.readPackedUInt32(entryIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class GetUnlockTeleportCsReqOuterClass { tag = input.readTag(); break; } - case 96: { + case 120: { // entryIdList [packed=false] tag = input.readRepeatedUInt32(entryIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java index 30c364f..1ca1306 100644 --- a/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GetUnlockTeleportScRspOuterClass.java @@ -20,12 +20,12 @@ public final class GetUnlockTeleportScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 10; */ private int retcode; /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; */ private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 10; * @return this */ public GetUnlockTeleportScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; * @return whether the unlockedTeleportList field is set */ public boolean hasUnlockedTeleportList() { @@ -85,7 +85,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; * @return this */ public GetUnlockTeleportScRsp clearUnlockedTeleportList() { @@ -95,7 +95,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; * @param value the unlockedTeleportList to add * @return this */ @@ -134,7 +134,7 @@ public final class GetUnlockTeleportScRspOuterClass { } /** - * repeated uint32 unlocked_teleport_list = 5; + * repeated uint32 unlocked_teleport_list = 2; * @param values the unlockedTeleportList to add * @return this */ @@ -210,12 +210,12 @@ public final class GetUnlockTeleportScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(unlockedTeleportList.array()[i]); } } @@ -240,16 +240,16 @@ public final class GetUnlockTeleportScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 18) { break; } } - case 42: { + case 18: { // unlockedTeleportList [packed=true] input.readPackedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class GetUnlockTeleportScRspOuterClass { tag = input.readTag(); break; } - case 40: { + case 16: { // unlockedTeleportList [packed=false] tag = input.readRepeatedUInt32(unlockedTeleportList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java index 9c85bef..94ce567 100644 --- a/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GoodsOuterClass.java @@ -19,17 +19,17 @@ public final class GoodsOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 end_time = 3; + * optional int64 end_time = 1; */ private long endTime; /** - * optional int64 begin_time = 14; + * optional int64 begin_time = 9; */ private long beginTime; /** - * optional uint32 buy_times = 11; + * optional uint32 buy_times = 10; */ private int buyTimes; @@ -39,7 +39,7 @@ public final class GoodsOuterClass { private int goodsId; /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 14; */ private int itemId; @@ -54,7 +54,7 @@ public final class GoodsOuterClass { } /** - * optional int64 end_time = 3; + * optional int64 end_time = 1; * @return whether the endTime field is set */ public boolean hasEndTime() { @@ -62,7 +62,7 @@ public final class GoodsOuterClass { } /** - * optional int64 end_time = 3; + * optional int64 end_time = 1; * @return this */ public Goods clearEndTime() { @@ -72,7 +72,7 @@ public final class GoodsOuterClass { } /** - * optional int64 end_time = 3; + * optional int64 end_time = 1; * @return the endTime */ public long getEndTime() { @@ -80,7 +80,7 @@ public final class GoodsOuterClass { } /** - * optional int64 end_time = 3; + * optional int64 end_time = 1; * @param value the endTime to set * @return this */ @@ -91,7 +91,7 @@ public final class GoodsOuterClass { } /** - * optional int64 begin_time = 14; + * optional int64 begin_time = 9; * @return whether the beginTime field is set */ public boolean hasBeginTime() { @@ -99,7 +99,7 @@ public final class GoodsOuterClass { } /** - * optional int64 begin_time = 14; + * optional int64 begin_time = 9; * @return this */ public Goods clearBeginTime() { @@ -109,7 +109,7 @@ public final class GoodsOuterClass { } /** - * optional int64 begin_time = 14; + * optional int64 begin_time = 9; * @return the beginTime */ public long getBeginTime() { @@ -117,7 +117,7 @@ public final class GoodsOuterClass { } /** - * optional int64 begin_time = 14; + * optional int64 begin_time = 9; * @param value the beginTime to set * @return this */ @@ -128,7 +128,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 buy_times = 11; + * optional uint32 buy_times = 10; * @return whether the buyTimes field is set */ public boolean hasBuyTimes() { @@ -136,7 +136,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 buy_times = 11; + * optional uint32 buy_times = 10; * @return this */ public Goods clearBuyTimes() { @@ -146,7 +146,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 buy_times = 11; + * optional uint32 buy_times = 10; * @return the buyTimes */ public int getBuyTimes() { @@ -154,7 +154,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 buy_times = 11; + * optional uint32 buy_times = 10; * @param value the buyTimes to set * @return this */ @@ -202,7 +202,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 14; * @return whether the itemId field is set */ public boolean hasItemId() { @@ -210,7 +210,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 14; * @return this */ public Goods clearItemId() { @@ -220,7 +220,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 14; * @return the itemId */ public int getItemId() { @@ -228,7 +228,7 @@ public final class GoodsOuterClass { } /** - * optional uint32 item_id = 15; + * optional uint32 item_id = 14; * @param value the itemId to set * @return this */ @@ -321,15 +321,15 @@ public final class GoodsOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeInt64NoTag(endTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 72); output.writeInt64NoTag(beginTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(buyTimes); } if ((bitField0_ & 0x00000008) != 0) { @@ -337,7 +337,7 @@ public final class GoodsOuterClass { output.writeUInt32NoTag(goodsId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(itemId); } } @@ -370,25 +370,25 @@ public final class GoodsOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 8: { // endTime endTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 72) { break; } } - case 112: { + case 72: { // beginTime beginTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 80) { break; } } - case 88: { + case 80: { // buyTimes buyTimes = input.readUInt32(); bitField0_ |= 0x00000004; @@ -402,11 +402,11 @@ public final class GoodsOuterClass { goodsId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { + case 112: { // itemId itemId = input.readUInt32(); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java index e69eb03..9bcc583 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateChangeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class GroupStateChangeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .GroupStateInfo group_info = 8; + * optional .GroupStateInfo group_info = 11; */ private final GroupStateInfoOuterClass.GroupStateInfo groupInfo = GroupStateInfoOuterClass.GroupStateInfo.newInstance(); @@ -34,7 +34,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_info = 8; + * optional .GroupStateInfo group_info = 11; * @return whether the groupInfo field is set */ public boolean hasGroupInfo() { @@ -42,7 +42,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_info = 8; + * optional .GroupStateInfo group_info = 11; * @return this */ public GroupStateChangeCsReq clearGroupInfo() { @@ -52,7 +52,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_info = 8; + * optional .GroupStateInfo group_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_info = 8; + * optional .GroupStateInfo group_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class GroupStateChangeCsReqOuterClass { } /** - * optional .GroupStateInfo group_info = 8; + * optional .GroupStateInfo group_info = 11; * @param value the groupInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class GroupStateChangeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 90); output.writeMessageNoTag(groupInfo); } } @@ -171,7 +171,7 @@ public final class GroupStateChangeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 90: { // groupInfo input.readMessage(groupInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java index 0a7534a..869619a 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScNotifyOuterClass.java @@ -19,9 +19,9 @@ public final class GroupStateChangeScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .GroupStateInfo group_state_info = 9; + * optional .GroupStateInfo group_info = 4; */ - private final GroupStateInfoOuterClass.GroupStateInfo groupStateInfo = GroupStateInfoOuterClass.GroupStateInfo.newInstance(); + private final GroupStateInfoOuterClass.GroupStateInfo groupInfo = GroupStateInfoOuterClass.GroupStateInfo.newInstance(); private GroupStateChangeScNotify() { } @@ -34,39 +34,39 @@ public final class GroupStateChangeScNotifyOuterClass { } /** - * optional .GroupStateInfo group_state_info = 9; - * @return whether the groupStateInfo field is set + * optional .GroupStateInfo group_info = 4; + * @return whether the groupInfo field is set */ - public boolean hasGroupStateInfo() { + public boolean hasGroupInfo() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .GroupStateInfo group_state_info = 9; + * optional .GroupStateInfo group_info = 4; * @return this */ - public GroupStateChangeScNotify clearGroupStateInfo() { + public GroupStateChangeScNotify clearGroupInfo() { bitField0_ &= ~0x00000001; - groupStateInfo.clear(); + groupInfo.clear(); return this; } /** - * optional .GroupStateInfo group_state_info = 9; + * optional .GroupStateInfo group_info = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableGroupStateInfo()} if you want to modify it. + * Use {@link #getMutableGroupInfo()} if you want to modify it. * * @return internal storage object for reading */ - public GroupStateInfoOuterClass.GroupStateInfo getGroupStateInfo() { - return groupStateInfo; + public GroupStateInfoOuterClass.GroupStateInfo getGroupInfo() { + return groupInfo; } /** - * optional .GroupStateInfo group_state_info = 9; + * optional .GroupStateInfo group_info = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -74,20 +74,20 @@ public final class GroupStateChangeScNotifyOuterClass { * * @return internal storage object for modifications */ - public GroupStateInfoOuterClass.GroupStateInfo getMutableGroupStateInfo() { + public GroupStateInfoOuterClass.GroupStateInfo getMutableGroupInfo() { bitField0_ |= 0x00000001; - return groupStateInfo; + return groupInfo; } /** - * optional .GroupStateInfo group_state_info = 9; - * @param value the groupStateInfo to set + * optional .GroupStateInfo group_info = 4; + * @param value the groupInfo to set * @return this */ - public GroupStateChangeScNotify setGroupStateInfo( + public GroupStateChangeScNotify setGroupInfo( final GroupStateInfoOuterClass.GroupStateInfo value) { bitField0_ |= 0x00000001; - groupStateInfo.copyFrom(value); + groupInfo.copyFrom(value); return this; } @@ -96,7 +96,7 @@ public final class GroupStateChangeScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupStateInfo.copyFrom(other.groupStateInfo); + groupInfo.copyFrom(other.groupInfo); } return this; } @@ -107,8 +107,8 @@ public final class GroupStateChangeScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasGroupStateInfo()) { - getMutableGroupStateInfo().mergeFrom(other.groupStateInfo); + if (other.hasGroupInfo()) { + getMutableGroupInfo().mergeFrom(other.groupInfo); } return this; } @@ -120,7 +120,7 @@ public final class GroupStateChangeScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - groupStateInfo.clear(); + groupInfo.clear(); return this; } @@ -131,7 +131,7 @@ public final class GroupStateChangeScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - groupStateInfo.clearQuick(); + groupInfo.clearQuick(); return this; } @@ -145,14 +145,14 @@ public final class GroupStateChangeScNotifyOuterClass { } GroupStateChangeScNotify other = (GroupStateChangeScNotify) o; return bitField0_ == other.bitField0_ - && (!hasGroupStateInfo() || groupStateInfo.equals(other.groupStateInfo)); + && (!hasGroupInfo() || groupInfo.equals(other.groupInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(groupStateInfo); + output.writeRawByte((byte) 34); + output.writeMessageNoTag(groupInfo); } } @@ -160,7 +160,7 @@ public final class GroupStateChangeScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(groupStateInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(groupInfo); } return size; } @@ -172,9 +172,9 @@ public final class GroupStateChangeScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 74: { - // groupStateInfo - input.readMessage(groupStateInfo); + case 34: { + // groupInfo + input.readMessage(groupInfo); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -199,7 +199,7 @@ public final class GroupStateChangeScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.groupStateInfo, groupStateInfo); + output.writeMessage(FieldNames.groupInfo, groupInfo); } output.endObject(); } @@ -211,11 +211,11 @@ public final class GroupStateChangeScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1415312672: - case 1198732636: { - if (input.isAtField(FieldNames.groupStateInfo)) { + case -1483311155: + case 1282170478: { + if (input.isAtField(FieldNames.groupInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(groupStateInfo); + input.readMessage(groupInfo); bitField0_ |= 0x00000001; } } else { @@ -276,7 +276,7 @@ public final class GroupStateChangeScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupStateInfo = FieldName.forField("groupStateInfo", "group_state_info"); + static final FieldName groupInfo = FieldName.forField("groupInfo", "group_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java index 48397bb..4470783 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateChangeScRspOuterClass.java @@ -19,12 +19,16 @@ public final class GroupStateChangeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; */ private int retcode; /** - * optional .GroupStateInfo group_info = 11; + * optional .GroupStateInfo group_info = 12; */ private final GroupStateInfoOuterClass.GroupStateInfo groupInfo = GroupStateInfoOuterClass.GroupStateInfo.newInstance(); @@ -39,7 +43,11 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 6; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +55,11 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 6; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return this */ public GroupStateChangeScRsp clearRetcode() { @@ -57,7 +69,11 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 6; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -65,7 +81,11 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional uint32 retcode = 6; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -76,7 +96,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional .GroupStateInfo group_info = 11; + * optional .GroupStateInfo group_info = 12; * @return whether the groupInfo field is set */ public boolean hasGroupInfo() { @@ -84,7 +104,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional .GroupStateInfo group_info = 11; + * optional .GroupStateInfo group_info = 12; * @return this */ public GroupStateChangeScRsp clearGroupInfo() { @@ -94,7 +114,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional .GroupStateInfo group_info = 11; + * optional .GroupStateInfo group_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +128,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional .GroupStateInfo group_info = 11; + * optional .GroupStateInfo group_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +142,7 @@ public final class GroupStateChangeScRspOuterClass { } /** - * optional .GroupStateInfo group_info = 11; + * optional .GroupStateInfo group_info = 12; * @param value the groupInfo to set * @return this */ @@ -198,11 +218,11 @@ public final class GroupStateChangeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 98); output.writeMessageNoTag(groupInfo); } } @@ -226,16 +246,16 @@ public final class GroupStateChangeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 98) { break; } } - case 90: { + case 98: { // groupInfo input.readMessage(groupInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java index 9ba6e0e..2d23d32 100644 --- a/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/GroupStateInfoOuterClass.java @@ -13,129 +13,47 @@ import us.hebi.quickbuf.ProtoSource; public final class GroupStateInfoOuterClass { /** - *
-   *  TODO: verify player_uid and group_state
-   * 
- * * Protobuf type {@code GroupStateInfo} */ public static final class GroupStateInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 group_id = 1; - */ - private int groupId; - - /** - * optional uint32 group_state = 3; - */ - private int groupState; - /** * optional uint32 entry_id = 4; */ private int entryId; /** - * optional uint32 player_uid = 6; + * optional uint32 player_uid = 8; */ private int playerUid; + /** + * optional uint32 group_id = 11; + */ + private int groupId; + + /** + * optional uint32 group_state = 13; + */ + private int groupState; + private GroupStateInfo() { } /** - *
-     *  TODO: verify player_uid and group_state
-     * 
- * * @return a new empty instance of {@code GroupStateInfo} */ public static GroupStateInfo newInstance() { return new GroupStateInfo(); } - /** - * optional uint32 group_id = 1; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 group_id = 1; - * @return this - */ - public GroupStateInfo clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 1; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 1; - * @param value the groupId to set - * @return this - */ - public GroupStateInfo setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 group_state = 3; - * @return whether the groupState field is set - */ - public boolean hasGroupState() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 group_state = 3; - * @return this - */ - public GroupStateInfo clearGroupState() { - bitField0_ &= ~0x00000002; - groupState = 0; - return this; - } - - /** - * optional uint32 group_state = 3; - * @return the groupState - */ - public int getGroupState() { - return groupState; - } - - /** - * optional uint32 group_state = 3; - * @param value the groupState to set - * @return this - */ - public GroupStateInfo setGroupState(final int value) { - bitField0_ |= 0x00000002; - groupState = value; - return this; - } - /** * optional uint32 entry_id = 4; * @return whether the entryId field is set */ public boolean hasEntryId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -143,7 +61,7 @@ public final class GroupStateInfoOuterClass { * @return this */ public GroupStateInfo clearEntryId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; entryId = 0; return this; } @@ -162,31 +80,31 @@ public final class GroupStateInfoOuterClass { * @return this */ public GroupStateInfo setEntryId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; entryId = value; return this; } /** - * optional uint32 player_uid = 6; + * optional uint32 player_uid = 8; * @return whether the playerUid field is set */ public boolean hasPlayerUid() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 player_uid = 6; + * optional uint32 player_uid = 8; * @return this */ public GroupStateInfo clearPlayerUid() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; playerUid = 0; return this; } /** - * optional uint32 player_uid = 6; + * optional uint32 player_uid = 8; * @return the playerUid */ public int getPlayerUid() { @@ -194,25 +112,99 @@ public final class GroupStateInfoOuterClass { } /** - * optional uint32 player_uid = 6; + * optional uint32 player_uid = 8; * @param value the playerUid to set * @return this */ public GroupStateInfo setPlayerUid(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; playerUid = value; return this; } + /** + * optional uint32 group_id = 11; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 11; + * @return this + */ + public GroupStateInfo clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 11; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 11; + * @param value the groupId to set + * @return this + */ + public GroupStateInfo setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + /** + * optional uint32 group_state = 13; + * @return whether the groupState field is set + */ + public boolean hasGroupState() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 group_state = 13; + * @return this + */ + public GroupStateInfo clearGroupState() { + bitField0_ &= ~0x00000008; + groupState = 0; + return this; + } + + /** + * optional uint32 group_state = 13; + * @return the groupState + */ + public int getGroupState() { + return groupState; + } + + /** + * optional uint32 group_state = 13; + * @param value the groupState to set + * @return this + */ + public GroupStateInfo setGroupState(final int value) { + bitField0_ |= 0x00000008; + groupState = value; + return this; + } + @Override public GroupStateInfo copyFrom(final GroupStateInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; - groupState = other.groupState; entryId = other.entryId; playerUid = other.playerUid; + groupId = other.groupId; + groupState = other.groupState; } return this; } @@ -223,18 +215,18 @@ public final class GroupStateInfoOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } - if (other.hasGroupState()) { - setGroupState(other.groupState); - } if (other.hasEntryId()) { setEntryId(other.entryId); } if (other.hasPlayerUid()) { setPlayerUid(other.playerUid); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasGroupState()) { + setGroupState(other.groupState); + } return this; } @@ -245,10 +237,10 @@ public final class GroupStateInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; - groupState = 0; entryId = 0; playerUid = 0; + groupId = 0; + groupState = 0; return this; } @@ -272,47 +264,47 @@ public final class GroupStateInfoOuterClass { } GroupStateInfo other = (GroupStateInfo) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) - && (!hasGroupState() || groupState == other.groupState) && (!hasEntryId() || entryId == other.entryId) - && (!hasPlayerUid() || playerUid == other.playerUid); + && (!hasPlayerUid() || playerUid == other.playerUid) + && (!hasGroupId() || groupId == other.groupId) + && (!hasGroupState() || groupState == other.groupState); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(groupState); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 32); output.writeUInt32NoTag(entryId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); output.writeUInt32NoTag(playerUid); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(groupState); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupState); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(playerUid); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupState); + } return size; } @@ -323,36 +315,36 @@ public final class GroupStateInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // groupState - groupState = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 32) { - break; - } - } case 32: { // entryId entryId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 64) { break; } } - case 48: { + case 64: { // playerUid playerUid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // groupState + groupState = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -377,17 +369,17 @@ public final class GroupStateInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupState, groupState); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.entryId, entryId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.playerUid, playerUid); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.groupState, groupState); + } output.endObject(); } @@ -398,36 +390,12 @@ public final class GroupStateInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { - if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1271403858: - case 1101988561: { - if (input.isAtField(FieldNames.groupState)) { - if (!input.trySkipNullValue()) { - groupState = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -1591558867: case -2093663224: { if (input.isAtField(FieldNames.entryId)) { if (!input.trySkipNullValue()) { entryId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -439,6 +407,30 @@ public final class GroupStateInfoOuterClass { if (input.isAtField(FieldNames.playerUid)) { if (!input.trySkipNullValue()) { playerUid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1271403858: + case 1101988561: { + if (input.isAtField(FieldNames.groupState)) { + if (!input.trySkipNullValue()) { + groupState = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -499,13 +491,13 @@ public final class GroupStateInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - - static final FieldName groupState = FieldName.forField("groupState", "group_state"); - static final FieldName entryId = FieldName.forField("entryId", "entry_id"); static final FieldName playerUid = FieldName.forField("playerUid", "player_uid"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName groupState = FieldName.forField("groupState", "group_state"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java index 2058e26..0de2c85 100644 --- a/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HandleFriendCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class HandleFriendCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 11; + * optional uint32 uid = 12; */ private int uid; /** - * optional bool handle_result = 12; + * optional bool handle_result = 8; */ private boolean handleResult; @@ -39,7 +39,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 12; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 12; * @return this */ public HandleFriendCsReq clearUid() { @@ -57,7 +57,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 12; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional uint32 uid = 11; + * optional uint32 uid = 12; * @param value the uid to set * @return this */ @@ -76,7 +76,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 8; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -84,7 +84,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 8; * @return this */ public HandleFriendCsReq clearHandleResult() { @@ -94,7 +94,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 8; * @return the handleResult */ public boolean getHandleResult() { @@ -102,7 +102,7 @@ public final class HandleFriendCsReqOuterClass { } /** - * optional bool handle_result = 12; + * optional bool handle_result = 8; * @param value the handleResult to set * @return this */ @@ -177,11 +177,11 @@ public final class HandleFriendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 64); output.writeBoolNoTag(handleResult); } } @@ -205,16 +205,16 @@ public final class HandleFriendCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 96: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 64) { break; } } - case 96: { + case 64: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java index 918cbc5..8f8519d 100644 --- a/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HandleFriendScRspOuterClass.java @@ -19,22 +19,22 @@ public final class HandleFriendScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional uint32 uid = 7; + * optional uint32 uid = 12; */ private int uid; /** - * optional bool handle_result = 11; + * optional bool handle_result = 3; */ private boolean handleResult; /** - * optional .FriendListInfo handle_friend_info = 6; + * optional .FriendListInfo handle_friend_info = 14; */ private final FriendListInfoOuterClass.FriendListInfo handleFriendInfo = FriendListInfoOuterClass.FriendListInfo.newInstance(); @@ -49,7 +49,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 2; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -57,7 +57,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 2; * @return this */ public HandleFriendScRsp clearRetcode() { @@ -67,7 +67,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -75,7 +75,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ @@ -86,7 +86,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 12; * @return whether the uid field is set */ public boolean hasUid() { @@ -94,7 +94,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 12; * @return this */ public HandleFriendScRsp clearUid() { @@ -104,7 +104,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 12; * @return the uid */ public int getUid() { @@ -112,7 +112,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional uint32 uid = 7; + * optional uint32 uid = 12; * @param value the uid to set * @return this */ @@ -123,7 +123,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 11; + * optional bool handle_result = 3; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -131,7 +131,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 11; + * optional bool handle_result = 3; * @return this */ public HandleFriendScRsp clearHandleResult() { @@ -141,7 +141,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 11; + * optional bool handle_result = 3; * @return the handleResult */ public boolean getHandleResult() { @@ -149,7 +149,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional bool handle_result = 11; + * optional bool handle_result = 3; * @param value the handleResult to set * @return this */ @@ -160,7 +160,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 6; + * optional .FriendListInfo handle_friend_info = 14; * @return whether the handleFriendInfo field is set */ public boolean hasHandleFriendInfo() { @@ -168,7 +168,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 6; + * optional .FriendListInfo handle_friend_info = 14; * @return this */ public HandleFriendScRsp clearHandleFriendInfo() { @@ -178,7 +178,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 6; + * optional .FriendListInfo handle_friend_info = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 6; + * optional .FriendListInfo handle_friend_info = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public final class HandleFriendScRspOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 6; + * optional .FriendListInfo handle_friend_info = 14; * @param value the handleFriendInfo to set * @return this */ @@ -295,19 +295,19 @@ public final class HandleFriendScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 24); output.writeBoolNoTag(handleResult); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 114); output.writeMessageNoTag(handleFriendInfo); } } @@ -337,34 +337,34 @@ public final class HandleFriendScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 16: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 96) { break; } } - case 56: { + case 96: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 24) { break; } } - case 88: { + case 24: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 50) { + if (tag != 114) { break; } } - case 50: { + case 114: { // handleFriendInfo input.readMessage(handleFriendInfo); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java deleted file mode 100644 index f14cf4a..0000000 --- a/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionCsReqOuterClass.java +++ /dev/null @@ -1,733 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class HandleRogueCommonPendingActionCsReqOuterClass { - /** - * Protobuf type {@code HandleRogueCommonPendingActionCsReq} - */ - public static final class HandleRogueCommonPendingActionCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueCommonBuffSelectResult buff_select_result = 737; - */ - private final RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult buffSelectResult = RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult.newInstance(); - - /** - *
-     *  check as well
-     * 
- * - * optional .RogueBonusSelectResult bonus_select_result = 1156; - */ - private final RogueBonusSelectResultOuterClass.RogueBonusSelectResult bonusSelectResult = RogueBonusSelectResultOuterClass.RogueBonusSelectResult.newInstance(); - - /** - *
-     *  TODO: check
-     * 
- * - * optional .RogueMiracleSelectResult miracle_select_result = 1209; - */ - private final RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult miracleSelectResult = RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult.newInstance(); - - /** - *
-     *  could be 1349
-     * 
- * - * optional .RogueBuffRollInfo roll_buff = 1753; - */ - private final RogueBuffRollInfoOuterClass.RogueBuffRollInfo rollBuff = RogueBuffRollInfoOuterClass.RogueBuffRollInfo.newInstance(); - - private HandleRogueCommonPendingActionCsReq() { - } - - /** - * @return a new empty instance of {@code HandleRogueCommonPendingActionCsReq} - */ - public static HandleRogueCommonPendingActionCsReq newInstance() { - return new HandleRogueCommonPendingActionCsReq(); - } - - public boolean hasPendingAction() { - return (((bitField0_ & 0x0000000f)) != 0); - } - - public HandleRogueCommonPendingActionCsReq clearPendingAction() { - if (hasPendingAction()) { - clearBuffSelectResult(); - clearBonusSelectResult(); - clearMiracleSelectResult(); - clearRollBuff(); - } - return this; - } - - private void clearPendingActionOtherBuffSelectResult() { - if ((((bitField0_ & 0x0000000e)) != 0)) { - clearBonusSelectResult(); - clearMiracleSelectResult(); - clearRollBuff(); - } - } - - private void clearPendingActionOtherBonusSelectResult() { - if ((((bitField0_ & 0x0000000d)) != 0)) { - clearBuffSelectResult(); - clearMiracleSelectResult(); - clearRollBuff(); - } - } - - private void clearPendingActionOtherMiracleSelectResult() { - if ((((bitField0_ & 0x0000000b)) != 0)) { - clearBuffSelectResult(); - clearBonusSelectResult(); - clearRollBuff(); - } - } - - private void clearPendingActionOtherRollBuff() { - if ((((bitField0_ & 0x00000007)) != 0)) { - clearBuffSelectResult(); - clearBonusSelectResult(); - clearMiracleSelectResult(); - } - } - - /** - * optional .RogueCommonBuffSelectResult buff_select_result = 737; - * @return whether the buffSelectResult field is set - */ - public boolean hasBuffSelectResult() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueCommonBuffSelectResult buff_select_result = 737; - * @return this - */ - public HandleRogueCommonPendingActionCsReq clearBuffSelectResult() { - bitField0_ &= ~0x00000001; - buffSelectResult.clear(); - return this; - } - - /** - * optional .RogueCommonBuffSelectResult buff_select_result = 737; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffSelectResult()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult getBuffSelectResult() { - return buffSelectResult; - } - - /** - * optional .RogueCommonBuffSelectResult buff_select_result = 737; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult getMutableBuffSelectResult( - ) { - clearPendingActionOtherBuffSelectResult(); - bitField0_ |= 0x00000001; - return buffSelectResult; - } - - /** - * optional .RogueCommonBuffSelectResult buff_select_result = 737; - * @param value the buffSelectResult to set - * @return this - */ - public HandleRogueCommonPendingActionCsReq setBuffSelectResult( - final RogueCommonBuffSelectResultOuterClass.RogueCommonBuffSelectResult value) { - clearPendingActionOtherBuffSelectResult(); - bitField0_ |= 0x00000001; - buffSelectResult.copyFrom(value); - return this; - } - - /** - *
-     *  check as well
-     * 
- * - * optional .RogueBonusSelectResult bonus_select_result = 1156; - * @return whether the bonusSelectResult field is set - */ - public boolean hasBonusSelectResult() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  check as well
-     * 
- * - * optional .RogueBonusSelectResult bonus_select_result = 1156; - * @return this - */ - public HandleRogueCommonPendingActionCsReq clearBonusSelectResult() { - bitField0_ &= ~0x00000002; - bonusSelectResult.clear(); - return this; - } - - /** - *
-     *  check as well
-     * 
- * - * optional .RogueBonusSelectResult bonus_select_result = 1156; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBonusSelectResult()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBonusSelectResultOuterClass.RogueBonusSelectResult getBonusSelectResult() { - return bonusSelectResult; - } - - /** - *
-     *  check as well
-     * 
- * - * optional .RogueBonusSelectResult bonus_select_result = 1156; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBonusSelectResultOuterClass.RogueBonusSelectResult getMutableBonusSelectResult() { - clearPendingActionOtherBonusSelectResult(); - bitField0_ |= 0x00000002; - return bonusSelectResult; - } - - /** - *
-     *  check as well
-     * 
- * - * optional .RogueBonusSelectResult bonus_select_result = 1156; - * @param value the bonusSelectResult to set - * @return this - */ - public HandleRogueCommonPendingActionCsReq setBonusSelectResult( - final RogueBonusSelectResultOuterClass.RogueBonusSelectResult value) { - clearPendingActionOtherBonusSelectResult(); - bitField0_ |= 0x00000002; - bonusSelectResult.copyFrom(value); - return this; - } - - /** - *
-     *  TODO: check
-     * 
- * - * optional .RogueMiracleSelectResult miracle_select_result = 1209; - * @return whether the miracleSelectResult field is set - */ - public boolean hasMiracleSelectResult() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  TODO: check
-     * 
- * - * optional .RogueMiracleSelectResult miracle_select_result = 1209; - * @return this - */ - public HandleRogueCommonPendingActionCsReq clearMiracleSelectResult() { - bitField0_ &= ~0x00000004; - miracleSelectResult.clear(); - return this; - } - - /** - *
-     *  TODO: check
-     * 
- * - * optional .RogueMiracleSelectResult miracle_select_result = 1209; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleSelectResult()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult getMiracleSelectResult() { - return miracleSelectResult; - } - - /** - *
-     *  TODO: check
-     * 
- * - * optional .RogueMiracleSelectResult miracle_select_result = 1209; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult getMutableMiracleSelectResult( - ) { - clearPendingActionOtherMiracleSelectResult(); - bitField0_ |= 0x00000004; - return miracleSelectResult; - } - - /** - *
-     *  TODO: check
-     * 
- * - * optional .RogueMiracleSelectResult miracle_select_result = 1209; - * @param value the miracleSelectResult to set - * @return this - */ - public HandleRogueCommonPendingActionCsReq setMiracleSelectResult( - final RogueMiracleSelectResultOuterClass.RogueMiracleSelectResult value) { - clearPendingActionOtherMiracleSelectResult(); - bitField0_ |= 0x00000004; - miracleSelectResult.copyFrom(value); - return this; - } - - /** - *
-     *  could be 1349
-     * 
- * - * optional .RogueBuffRollInfo roll_buff = 1753; - * @return whether the rollBuff field is set - */ - public boolean hasRollBuff() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - *
-     *  could be 1349
-     * 
- * - * optional .RogueBuffRollInfo roll_buff = 1753; - * @return this - */ - public HandleRogueCommonPendingActionCsReq clearRollBuff() { - bitField0_ &= ~0x00000008; - rollBuff.clear(); - return this; - } - - /** - *
-     *  could be 1349
-     * 
- * - * optional .RogueBuffRollInfo roll_buff = 1753; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRollBuff()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffRollInfoOuterClass.RogueBuffRollInfo getRollBuff() { - return rollBuff; - } - - /** - *
-     *  could be 1349
-     * 
- * - * optional .RogueBuffRollInfo roll_buff = 1753; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffRollInfoOuterClass.RogueBuffRollInfo getMutableRollBuff() { - clearPendingActionOtherRollBuff(); - bitField0_ |= 0x00000008; - return rollBuff; - } - - /** - *
-     *  could be 1349
-     * 
- * - * optional .RogueBuffRollInfo roll_buff = 1753; - * @param value the rollBuff to set - * @return this - */ - public HandleRogueCommonPendingActionCsReq setRollBuff( - final RogueBuffRollInfoOuterClass.RogueBuffRollInfo value) { - clearPendingActionOtherRollBuff(); - bitField0_ |= 0x00000008; - rollBuff.copyFrom(value); - return this; - } - - @Override - public HandleRogueCommonPendingActionCsReq copyFrom( - final HandleRogueCommonPendingActionCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffSelectResult.copyFrom(other.buffSelectResult); - bonusSelectResult.copyFrom(other.bonusSelectResult); - miracleSelectResult.copyFrom(other.miracleSelectResult); - rollBuff.copyFrom(other.rollBuff); - } - return this; - } - - @Override - public HandleRogueCommonPendingActionCsReq mergeFrom( - final HandleRogueCommonPendingActionCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffSelectResult()) { - getMutableBuffSelectResult().mergeFrom(other.buffSelectResult); - } - if (other.hasBonusSelectResult()) { - getMutableBonusSelectResult().mergeFrom(other.bonusSelectResult); - } - if (other.hasMiracleSelectResult()) { - getMutableMiracleSelectResult().mergeFrom(other.miracleSelectResult); - } - if (other.hasRollBuff()) { - getMutableRollBuff().mergeFrom(other.rollBuff); - } - return this; - } - - @Override - public HandleRogueCommonPendingActionCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectResult.clear(); - bonusSelectResult.clear(); - miracleSelectResult.clear(); - rollBuff.clear(); - return this; - } - - @Override - public HandleRogueCommonPendingActionCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectResult.clearQuick(); - bonusSelectResult.clearQuick(); - miracleSelectResult.clearQuick(); - rollBuff.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof HandleRogueCommonPendingActionCsReq)) { - return false; - } - HandleRogueCommonPendingActionCsReq other = (HandleRogueCommonPendingActionCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasBuffSelectResult() || buffSelectResult.equals(other.buffSelectResult)) - && (!hasBonusSelectResult() || bonusSelectResult.equals(other.bonusSelectResult)) - && (!hasMiracleSelectResult() || miracleSelectResult.equals(other.miracleSelectResult)) - && (!hasRollBuff() || rollBuff.equals(other.rollBuff)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawLittleEndian16((short) 11914); - output.writeMessageNoTag(buffSelectResult); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawLittleEndian16((short) 18594); - output.writeMessageNoTag(bonusSelectResult); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawLittleEndian16((short) 19402); - output.writeMessageNoTag(miracleSelectResult); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 28106); - output.writeMessageNoTag(rollBuff); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(buffSelectResult); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(bonusSelectResult); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(miracleSelectResult); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rollBuff); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public HandleRogueCommonPendingActionCsReq mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 5898: { - // buffSelectResult - clearPendingActionOtherBuffSelectResult(); - input.readMessage(buffSelectResult); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 9250) { - break; - } - } - case 9250: { - // bonusSelectResult - clearPendingActionOtherBonusSelectResult(); - input.readMessage(bonusSelectResult); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 9674) { - break; - } - } - case 9674: { - // miracleSelectResult - clearPendingActionOtherMiracleSelectResult(); - input.readMessage(miracleSelectResult); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 14026) { - break; - } - } - case 14026: { - // rollBuff - clearPendingActionOtherRollBuff(); - input.readMessage(rollBuff); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.buffSelectResult, buffSelectResult); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.bonusSelectResult, bonusSelectResult); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.miracleSelectResult, miracleSelectResult); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.rollBuff, rollBuff); - } - output.endObject(); - } - - @Override - public HandleRogueCommonPendingActionCsReq mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -224789460: - case -839396908: { - if (input.isAtField(FieldNames.buffSelectResult)) { - if (!input.trySkipNullValue()) { - clearPendingActionOtherBuffSelectResult(); - input.readMessage(buffSelectResult); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 732920312: - case 396692640: { - if (input.isAtField(FieldNames.bonusSelectResult)) { - if (!input.trySkipNullValue()) { - clearPendingActionOtherBonusSelectResult(); - input.readMessage(bonusSelectResult); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 961581898: - case 1097144690: { - if (input.isAtField(FieldNames.miracleSelectResult)) { - if (!input.trySkipNullValue()) { - clearPendingActionOtherMiracleSelectResult(); - input.readMessage(miracleSelectResult); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -260653456: - case 535908053: { - if (input.isAtField(FieldNames.rollBuff)) { - if (!input.trySkipNullValue()) { - clearPendingActionOtherRollBuff(); - input.readMessage(rollBuff); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public HandleRogueCommonPendingActionCsReq clone() { - return new HandleRogueCommonPendingActionCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static HandleRogueCommonPendingActionCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new HandleRogueCommonPendingActionCsReq(), data).checkInitialized(); - } - - public static HandleRogueCommonPendingActionCsReq parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new HandleRogueCommonPendingActionCsReq(), input).checkInitialized(); - } - - public static HandleRogueCommonPendingActionCsReq parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new HandleRogueCommonPendingActionCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating HandleRogueCommonPendingActionCsReq messages - */ - public static MessageFactory getFactory() { - return HandleRogueCommonPendingActionCsReqFactory.INSTANCE; - } - - private enum HandleRogueCommonPendingActionCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public HandleRogueCommonPendingActionCsReq create() { - return HandleRogueCommonPendingActionCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffSelectResult = FieldName.forField("buffSelectResult", "buff_select_result"); - - static final FieldName bonusSelectResult = FieldName.forField("bonusSelectResult", "bonus_select_result"); - - static final FieldName miracleSelectResult = FieldName.forField("miracleSelectResult", "miracle_select_result"); - - static final FieldName rollBuff = FieldName.forField("rollBuff", "roll_buff"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java deleted file mode 100644 index 592477f..0000000 --- a/src/generated/main/emu/lunarcore/proto/HandleRogueCommonPendingActionScRspOuterClass.java +++ /dev/null @@ -1,838 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class HandleRogueCommonPendingActionScRspOuterClass { - /** - * Protobuf type {@code HandleRogueCommonPendingActionScRsp} - */ - public static final class HandleRogueCommonPendingActionScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * optional uint32 action_unique_id = 5; - */ - private int actionUniqueId; - - /** - * optional uint32 times2 = 10; - */ - private int times2; - - /** - * optional .RogueBonusSelect bonus_select = 90; - */ - private final RogueBonusSelectOuterClass.RogueBonusSelect bonusSelect = RogueBonusSelectOuterClass.RogueBonusSelect.newInstance(); - - /** - * optional .RogueRerollBuff rogue_reroll_buff = 461; - */ - private final RogueRerollBuffOuterClass.RogueRerollBuff rogueRerollBuff = RogueRerollBuffOuterClass.RogueRerollBuff.newInstance(); - - /** - * optional .RogueMiracleSelect miracle_select = 1604; - */ - private final RogueMiracleSelectOuterClass.RogueMiracleSelect miracleSelect = RogueMiracleSelectOuterClass.RogueMiracleSelect.newInstance(); - - /** - * optional .RogueBuffSelect rogue_buff_select = 1733; - */ - private final RogueBuffSelectOuterClass.RogueBuffSelect rogueBuffSelect = RogueBuffSelectOuterClass.RogueBuffSelect.newInstance(); - - private HandleRogueCommonPendingActionScRsp() { - } - - /** - * @return a new empty instance of {@code HandleRogueCommonPendingActionScRsp} - */ - public static HandleRogueCommonPendingActionScRsp newInstance() { - return new HandleRogueCommonPendingActionScRsp(); - } - - /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 2; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 2; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 2; - * @param value the retcode to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 action_unique_id = 5; - * @return whether the actionUniqueId field is set - */ - public boolean hasActionUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 action_unique_id = 5; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearActionUniqueId() { - bitField0_ &= ~0x00000002; - actionUniqueId = 0; - return this; - } - - /** - * optional uint32 action_unique_id = 5; - * @return the actionUniqueId - */ - public int getActionUniqueId() { - return actionUniqueId; - } - - /** - * optional uint32 action_unique_id = 5; - * @param value the actionUniqueId to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setActionUniqueId(final int value) { - bitField0_ |= 0x00000002; - actionUniqueId = value; - return this; - } - - /** - * optional uint32 times2 = 10; - * @return whether the times2 field is set - */ - public boolean hasTimes2() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 times2 = 10; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearTimes2() { - bitField0_ &= ~0x00000004; - times2 = 0; - return this; - } - - /** - * optional uint32 times2 = 10; - * @return the times2 - */ - public int getTimes2() { - return times2; - } - - /** - * optional uint32 times2 = 10; - * @param value the times2 to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setTimes2(final int value) { - bitField0_ |= 0x00000004; - times2 = value; - return this; - } - - /** - * optional .RogueBonusSelect bonus_select = 90; - * @return whether the bonusSelect field is set - */ - public boolean hasBonusSelect() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RogueBonusSelect bonus_select = 90; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearBonusSelect() { - bitField0_ &= ~0x00000008; - bonusSelect.clear(); - return this; - } - - /** - * optional .RogueBonusSelect bonus_select = 90; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBonusSelect()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBonusSelectOuterClass.RogueBonusSelect getBonusSelect() { - return bonusSelect; - } - - /** - * optional .RogueBonusSelect bonus_select = 90; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBonusSelectOuterClass.RogueBonusSelect getMutableBonusSelect() { - bitField0_ |= 0x00000008; - return bonusSelect; - } - - /** - * optional .RogueBonusSelect bonus_select = 90; - * @param value the bonusSelect to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setBonusSelect( - final RogueBonusSelectOuterClass.RogueBonusSelect value) { - bitField0_ |= 0x00000008; - bonusSelect.copyFrom(value); - return this; - } - - /** - * optional .RogueRerollBuff rogue_reroll_buff = 461; - * @return whether the rogueRerollBuff field is set - */ - public boolean hasRogueRerollBuff() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueRerollBuff rogue_reroll_buff = 461; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearRogueRerollBuff() { - bitField0_ &= ~0x00000010; - rogueRerollBuff.clear(); - return this; - } - - /** - * optional .RogueRerollBuff rogue_reroll_buff = 461; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueRerollBuff()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueRerollBuffOuterClass.RogueRerollBuff getRogueRerollBuff() { - return rogueRerollBuff; - } - - /** - * optional .RogueRerollBuff rogue_reroll_buff = 461; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueRerollBuffOuterClass.RogueRerollBuff getMutableRogueRerollBuff() { - bitField0_ |= 0x00000010; - return rogueRerollBuff; - } - - /** - * optional .RogueRerollBuff rogue_reroll_buff = 461; - * @param value the rogueRerollBuff to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setRogueRerollBuff( - final RogueRerollBuffOuterClass.RogueRerollBuff value) { - bitField0_ |= 0x00000010; - rogueRerollBuff.copyFrom(value); - return this; - } - - /** - * optional .RogueMiracleSelect miracle_select = 1604; - * @return whether the miracleSelect field is set - */ - public boolean hasMiracleSelect() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .RogueMiracleSelect miracle_select = 1604; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearMiracleSelect() { - bitField0_ &= ~0x00000020; - miracleSelect.clear(); - return this; - } - - /** - * optional .RogueMiracleSelect miracle_select = 1604; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleSelect()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleSelectOuterClass.RogueMiracleSelect getMiracleSelect() { - return miracleSelect; - } - - /** - * optional .RogueMiracleSelect miracle_select = 1604; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleSelectOuterClass.RogueMiracleSelect getMutableMiracleSelect() { - bitField0_ |= 0x00000020; - return miracleSelect; - } - - /** - * optional .RogueMiracleSelect miracle_select = 1604; - * @param value the miracleSelect to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setMiracleSelect( - final RogueMiracleSelectOuterClass.RogueMiracleSelect value) { - bitField0_ |= 0x00000020; - miracleSelect.copyFrom(value); - return this; - } - - /** - * optional .RogueBuffSelect rogue_buff_select = 1733; - * @return whether the rogueBuffSelect field is set - */ - public boolean hasRogueBuffSelect() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional .RogueBuffSelect rogue_buff_select = 1733; - * @return this - */ - public HandleRogueCommonPendingActionScRsp clearRogueBuffSelect() { - bitField0_ &= ~0x00000040; - rogueBuffSelect.clear(); - return this; - } - - /** - * optional .RogueBuffSelect rogue_buff_select = 1733; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueBuffSelect()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffSelectOuterClass.RogueBuffSelect getRogueBuffSelect() { - return rogueBuffSelect; - } - - /** - * optional .RogueBuffSelect rogue_buff_select = 1733; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffSelectOuterClass.RogueBuffSelect getMutableRogueBuffSelect() { - bitField0_ |= 0x00000040; - return rogueBuffSelect; - } - - /** - * optional .RogueBuffSelect rogue_buff_select = 1733; - * @param value the rogueBuffSelect to set - * @return this - */ - public HandleRogueCommonPendingActionScRsp setRogueBuffSelect( - final RogueBuffSelectOuterClass.RogueBuffSelect value) { - bitField0_ |= 0x00000040; - rogueBuffSelect.copyFrom(value); - return this; - } - - @Override - public HandleRogueCommonPendingActionScRsp copyFrom( - final HandleRogueCommonPendingActionScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - actionUniqueId = other.actionUniqueId; - times2 = other.times2; - bonusSelect.copyFrom(other.bonusSelect); - rogueRerollBuff.copyFrom(other.rogueRerollBuff); - miracleSelect.copyFrom(other.miracleSelect); - rogueBuffSelect.copyFrom(other.rogueBuffSelect); - } - return this; - } - - @Override - public HandleRogueCommonPendingActionScRsp mergeFrom( - final HandleRogueCommonPendingActionScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasActionUniqueId()) { - setActionUniqueId(other.actionUniqueId); - } - if (other.hasTimes2()) { - setTimes2(other.times2); - } - if (other.hasBonusSelect()) { - getMutableBonusSelect().mergeFrom(other.bonusSelect); - } - if (other.hasRogueRerollBuff()) { - getMutableRogueRerollBuff().mergeFrom(other.rogueRerollBuff); - } - if (other.hasMiracleSelect()) { - getMutableMiracleSelect().mergeFrom(other.miracleSelect); - } - if (other.hasRogueBuffSelect()) { - getMutableRogueBuffSelect().mergeFrom(other.rogueBuffSelect); - } - return this; - } - - @Override - public HandleRogueCommonPendingActionScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - actionUniqueId = 0; - times2 = 0; - bonusSelect.clear(); - rogueRerollBuff.clear(); - miracleSelect.clear(); - rogueBuffSelect.clear(); - return this; - } - - @Override - public HandleRogueCommonPendingActionScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - bonusSelect.clearQuick(); - rogueRerollBuff.clearQuick(); - miracleSelect.clearQuick(); - rogueBuffSelect.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof HandleRogueCommonPendingActionScRsp)) { - return false; - } - HandleRogueCommonPendingActionScRsp other = (HandleRogueCommonPendingActionScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasActionUniqueId() || actionUniqueId == other.actionUniqueId) - && (!hasTimes2() || times2 == other.times2) - && (!hasBonusSelect() || bonusSelect.equals(other.bonusSelect)) - && (!hasRogueRerollBuff() || rogueRerollBuff.equals(other.rogueRerollBuff)) - && (!hasMiracleSelect() || miracleSelect.equals(other.miracleSelect)) - && (!hasRogueBuffSelect() || rogueBuffSelect.equals(other.rogueBuffSelect)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(actionUniqueId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(times2); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 1490); - output.writeMessageNoTag(bonusSelect); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 7402); - output.writeMessageNoTag(rogueRerollBuff); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawLittleEndian16((short) 25762); - output.writeMessageNoTag(miracleSelect); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawLittleEndian16((short) 27818); - output.writeMessageNoTag(rogueBuffSelect); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(actionUniqueId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(times2); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(bonusSelect); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueRerollBuff); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(miracleSelect); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueBuffSelect); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public HandleRogueCommonPendingActionScRsp mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // actionUniqueId - actionUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // times2 - times2 = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 722) { - break; - } - } - case 722: { - // bonusSelect - input.readMessage(bonusSelect); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 3690) { - break; - } - } - case 3690: { - // rogueRerollBuff - input.readMessage(rogueRerollBuff); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 12834) { - break; - } - } - case 12834: { - // miracleSelect - input.readMessage(miracleSelect); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 13866) { - break; - } - } - case 13866: { - // rogueBuffSelect - input.readMessage(rogueBuffSelect); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.actionUniqueId, actionUniqueId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.times2, times2); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.bonusSelect, bonusSelect); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.rogueRerollBuff, rogueRerollBuff); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.miracleSelect, miracleSelect); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.rogueBuffSelect, rogueBuffSelect); - } - output.endObject(); - } - - @Override - public HandleRogueCommonPendingActionScRsp mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -208785118: - case 1003664768: { - if (input.isAtField(FieldNames.actionUniqueId)) { - if (!input.trySkipNullValue()) { - actionUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -873668180: { - if (input.isAtField(FieldNames.times2)) { - if (!input.trySkipNullValue()) { - times2 = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1904635387: - case 1368817948: { - if (input.isAtField(FieldNames.bonusSelect)) { - if (!input.trySkipNullValue()) { - input.readMessage(bonusSelect); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -620807395: - case -555127011: { - if (input.isAtField(FieldNames.rogueRerollBuff)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueRerollBuff); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 788622541: - case 1132158090: { - if (input.isAtField(FieldNames.miracleSelect)) { - if (!input.trySkipNullValue()) { - input.readMessage(miracleSelect); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case -183502679: - case -1750117501: { - if (input.isAtField(FieldNames.rogueBuffSelect)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueBuffSelect); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public HandleRogueCommonPendingActionScRsp clone() { - return new HandleRogueCommonPendingActionScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static HandleRogueCommonPendingActionScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new HandleRogueCommonPendingActionScRsp(), data).checkInitialized(); - } - - public static HandleRogueCommonPendingActionScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new HandleRogueCommonPendingActionScRsp(), input).checkInitialized(); - } - - public static HandleRogueCommonPendingActionScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new HandleRogueCommonPendingActionScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating HandleRogueCommonPendingActionScRsp messages - */ - public static MessageFactory getFactory() { - return HandleRogueCommonPendingActionScRspFactory.INSTANCE; - } - - private enum HandleRogueCommonPendingActionScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public HandleRogueCommonPendingActionScRsp create() { - return HandleRogueCommonPendingActionScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName actionUniqueId = FieldName.forField("actionUniqueId", "action_unique_id"); - - static final FieldName times2 = FieldName.forField("times2"); - - static final FieldName bonusSelect = FieldName.forField("bonusSelect", "bonus_select"); - - static final FieldName rogueRerollBuff = FieldName.forField("rogueRerollBuff", "rogue_reroll_buff"); - - static final FieldName miracleSelect = FieldName.forField("miracleSelect", "miracle_select"); - - static final FieldName rogueBuffSelect = FieldName.forField("rogueBuffSelect", "rogue_buff_select"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/HeadIconFrameInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeadIconFrameInfoOuterClass.java new file mode 100644 index 0000000..ce31b04 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/HeadIconFrameInfoOuterClass.java @@ -0,0 +1,260 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class HeadIconFrameInfoOuterClass { + /** + * Protobuf type {@code HeadIconFrameInfo} + */ + public static final class HeadIconFrameInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 head_icon_frame_id = 9; + */ + private int headIconFrameId; + + private HeadIconFrameInfo() { + } + + /** + * @return a new empty instance of {@code HeadIconFrameInfo} + */ + public static HeadIconFrameInfo newInstance() { + return new HeadIconFrameInfo(); + } + + /** + * optional uint32 head_icon_frame_id = 9; + * @return whether the headIconFrameId field is set + */ + public boolean hasHeadIconFrameId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 head_icon_frame_id = 9; + * @return this + */ + public HeadIconFrameInfo clearHeadIconFrameId() { + bitField0_ &= ~0x00000001; + headIconFrameId = 0; + return this; + } + + /** + * optional uint32 head_icon_frame_id = 9; + * @return the headIconFrameId + */ + public int getHeadIconFrameId() { + return headIconFrameId; + } + + /** + * optional uint32 head_icon_frame_id = 9; + * @param value the headIconFrameId to set + * @return this + */ + public HeadIconFrameInfo setHeadIconFrameId(final int value) { + bitField0_ |= 0x00000001; + headIconFrameId = value; + return this; + } + + @Override + public HeadIconFrameInfo copyFrom(final HeadIconFrameInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + headIconFrameId = other.headIconFrameId; + } + return this; + } + + @Override + public HeadIconFrameInfo mergeFrom(final HeadIconFrameInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHeadIconFrameId()) { + setHeadIconFrameId(other.headIconFrameId); + } + return this; + } + + @Override + public HeadIconFrameInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + headIconFrameId = 0; + return this; + } + + @Override + public HeadIconFrameInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof HeadIconFrameInfo)) { + return false; + } + HeadIconFrameInfo other = (HeadIconFrameInfo) o; + return bitField0_ == other.bitField0_ + && (!hasHeadIconFrameId() || headIconFrameId == other.headIconFrameId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(headIconFrameId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(headIconFrameId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public HeadIconFrameInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // headIconFrameId + headIconFrameId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.headIconFrameId, headIconFrameId); + } + output.endObject(); + } + + @Override + public HeadIconFrameInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 398428847: + case 152205844: { + if (input.isAtField(FieldNames.headIconFrameId)) { + if (!input.trySkipNullValue()) { + headIconFrameId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public HeadIconFrameInfo clone() { + return new HeadIconFrameInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static HeadIconFrameInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new HeadIconFrameInfo(), data).checkInitialized(); + } + + public static HeadIconFrameInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new HeadIconFrameInfo(), input).checkInitialized(); + } + + public static HeadIconFrameInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new HeadIconFrameInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating HeadIconFrameInfo messages + */ + public static MessageFactory getFactory() { + return HeadIconFrameInfoFactory.INSTANCE; + } + + private enum HeadIconFrameInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public HeadIconFrameInfo create() { + return HeadIconFrameInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName headIconFrameId = FieldName.forField("headIconFrameId", "head_icon_frame_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java index 455ec38..be2a6b8 100644 --- a/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/HeadIconOuterClass.java @@ -19,7 +19,7 @@ public final class HeadIconOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 15; + * optional uint32 id = 4; */ private int id; @@ -34,7 +34,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 4; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 4; * @return this */ public HeadIcon clearId() { @@ -52,7 +52,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 4; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public final class HeadIconOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 4; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public final class HeadIconOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public final class HeadIconOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 32: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java index 5b7d65b..ea7a1e5 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractChargerCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class InteractChargerCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ChargerInfo charger_info = 13; + * optional .ChargerInfo charger_info = 1; */ private final ChargerInfoOuterClass.ChargerInfo chargerInfo = ChargerInfoOuterClass.ChargerInfo.newInstance(); @@ -34,7 +34,7 @@ public final class InteractChargerCsReqOuterClass { } /** - * optional .ChargerInfo charger_info = 13; + * optional .ChargerInfo charger_info = 1; * @return whether the chargerInfo field is set */ public boolean hasChargerInfo() { @@ -42,7 +42,7 @@ public final class InteractChargerCsReqOuterClass { } /** - * optional .ChargerInfo charger_info = 13; + * optional .ChargerInfo charger_info = 1; * @return this */ public InteractChargerCsReq clearChargerInfo() { @@ -52,7 +52,7 @@ public final class InteractChargerCsReqOuterClass { } /** - * optional .ChargerInfo charger_info = 13; + * optional .ChargerInfo charger_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class InteractChargerCsReqOuterClass { } /** - * optional .ChargerInfo charger_info = 13; + * optional .ChargerInfo charger_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class InteractChargerCsReqOuterClass { } /** - * optional .ChargerInfo charger_info = 13; + * optional .ChargerInfo charger_info = 1; * @param value the chargerInfo to set * @return this */ @@ -150,7 +150,7 @@ public final class InteractChargerCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 10); output.writeMessageNoTag(chargerInfo); } } @@ -171,7 +171,7 @@ public final class InteractChargerCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { + case 10: { // chargerInfo input.readMessage(chargerInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java index 762613d..6164697 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractChargerScRspOuterClass.java @@ -24,15 +24,15 @@ public final class InteractChargerScRspOuterClass { private int retcode; /** - * optional .ChargerInfo charger_info = 1; - */ - private final ChargerInfoOuterClass.ChargerInfo chargerInfo = ChargerInfoOuterClass.ChargerInfo.newInstance(); - - /** - * optional .RotatorEnergyInfo energy_info = 8; + * optional .RotatorEnergyInfo energy_info = 12; */ private final RotatorEnergyInfoOuterClass.RotatorEnergyInfo energyInfo = RotatorEnergyInfoOuterClass.RotatorEnergyInfo.newInstance(); + /** + * optional .ChargerInfo charger_info = 15; + */ + private final ChargerInfoOuterClass.ChargerInfo chargerInfo = ChargerInfoOuterClass.ChargerInfo.newInstance(); + private InteractChargerScRsp() { } @@ -81,82 +81,25 @@ public final class InteractChargerScRspOuterClass { } /** - * optional .ChargerInfo charger_info = 1; - * @return whether the chargerInfo field is set + * optional .RotatorEnergyInfo energy_info = 12; + * @return whether the energyInfo field is set */ - public boolean hasChargerInfo() { + public boolean hasEnergyInfo() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .ChargerInfo charger_info = 1; - * @return this - */ - public InteractChargerScRsp clearChargerInfo() { - bitField0_ &= ~0x00000002; - chargerInfo.clear(); - return this; - } - - /** - * optional .ChargerInfo charger_info = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableChargerInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChargerInfoOuterClass.ChargerInfo getChargerInfo() { - return chargerInfo; - } - - /** - * optional .ChargerInfo charger_info = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChargerInfoOuterClass.ChargerInfo getMutableChargerInfo() { - bitField0_ |= 0x00000002; - return chargerInfo; - } - - /** - * optional .ChargerInfo charger_info = 1; - * @param value the chargerInfo to set - * @return this - */ - public InteractChargerScRsp setChargerInfo(final ChargerInfoOuterClass.ChargerInfo value) { - bitField0_ |= 0x00000002; - chargerInfo.copyFrom(value); - return this; - } - - /** - * optional .RotatorEnergyInfo energy_info = 8; - * @return whether the energyInfo field is set - */ - public boolean hasEnergyInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RotatorEnergyInfo energy_info = 8; + * optional .RotatorEnergyInfo energy_info = 12; * @return this */ public InteractChargerScRsp clearEnergyInfo() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; energyInfo.clear(); return this; } /** - * optional .RotatorEnergyInfo energy_info = 8; + * optional .RotatorEnergyInfo energy_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -170,7 +113,7 @@ public final class InteractChargerScRspOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 8; + * optional .RotatorEnergyInfo energy_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -179,30 +122,87 @@ public final class InteractChargerScRspOuterClass { * @return internal storage object for modifications */ public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getMutableEnergyInfo() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return energyInfo; } /** - * optional .RotatorEnergyInfo energy_info = 8; + * optional .RotatorEnergyInfo energy_info = 12; * @param value the energyInfo to set * @return this */ public InteractChargerScRsp setEnergyInfo( final RotatorEnergyInfoOuterClass.RotatorEnergyInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; energyInfo.copyFrom(value); return this; } + /** + * optional .ChargerInfo charger_info = 15; + * @return whether the chargerInfo field is set + */ + public boolean hasChargerInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ChargerInfo charger_info = 15; + * @return this + */ + public InteractChargerScRsp clearChargerInfo() { + bitField0_ &= ~0x00000004; + chargerInfo.clear(); + return this; + } + + /** + * optional .ChargerInfo charger_info = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChargerInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChargerInfoOuterClass.ChargerInfo getChargerInfo() { + return chargerInfo; + } + + /** + * optional .ChargerInfo charger_info = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChargerInfoOuterClass.ChargerInfo getMutableChargerInfo() { + bitField0_ |= 0x00000004; + return chargerInfo; + } + + /** + * optional .ChargerInfo charger_info = 15; + * @param value the chargerInfo to set + * @return this + */ + public InteractChargerScRsp setChargerInfo(final ChargerInfoOuterClass.ChargerInfo value) { + bitField0_ |= 0x00000004; + chargerInfo.copyFrom(value); + return this; + } + @Override public InteractChargerScRsp copyFrom(final InteractChargerScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - chargerInfo.copyFrom(other.chargerInfo); energyInfo.copyFrom(other.energyInfo); + chargerInfo.copyFrom(other.chargerInfo); } return this; } @@ -216,12 +216,12 @@ public final class InteractChargerScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasChargerInfo()) { - getMutableChargerInfo().mergeFrom(other.chargerInfo); - } if (other.hasEnergyInfo()) { getMutableEnergyInfo().mergeFrom(other.energyInfo); } + if (other.hasChargerInfo()) { + getMutableChargerInfo().mergeFrom(other.chargerInfo); + } return this; } @@ -233,8 +233,8 @@ public final class InteractChargerScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - chargerInfo.clear(); energyInfo.clear(); + chargerInfo.clear(); return this; } @@ -245,8 +245,8 @@ public final class InteractChargerScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - chargerInfo.clearQuick(); energyInfo.clearQuick(); + chargerInfo.clearQuick(); return this; } @@ -261,8 +261,8 @@ public final class InteractChargerScRspOuterClass { InteractChargerScRsp other = (InteractChargerScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasChargerInfo() || chargerInfo.equals(other.chargerInfo)) - && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)); + && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)) + && (!hasChargerInfo() || chargerInfo.equals(other.chargerInfo)); } @Override @@ -272,12 +272,12 @@ public final class InteractChargerScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(chargerInfo); + output.writeRawByte((byte) 98); + output.writeMessageNoTag(energyInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(energyInfo); + output.writeRawByte((byte) 122); + output.writeMessageNoTag(chargerInfo); } } @@ -288,10 +288,10 @@ public final class InteractChargerScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(chargerInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(chargerInfo); } return size; } @@ -308,22 +308,22 @@ public final class InteractChargerScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 98) { break; } } - case 10: { - // chargerInfo - input.readMessage(chargerInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { + case 98: { // energyInfo input.readMessage(energyInfo); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // chargerInfo + input.readMessage(chargerInfo); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -351,10 +351,10 @@ public final class InteractChargerScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.chargerInfo, chargerInfo); + output.writeMessage(FieldNames.energyInfo, energyInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.energyInfo, energyInfo); + output.writeMessage(FieldNames.chargerInfo, chargerInfo); } output.endObject(); } @@ -377,11 +377,11 @@ public final class InteractChargerScRspOuterClass { } break; } - case 1038073356: - case 2135678991: { - if (input.isAtField(FieldNames.chargerInfo)) { + case 1464698710: + case -1818804219: { + if (input.isAtField(FieldNames.energyInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(chargerInfo); + input.readMessage(energyInfo); bitField0_ |= 0x00000002; } } else { @@ -389,11 +389,11 @@ public final class InteractChargerScRspOuterClass { } break; } - case 1464698710: - case -1818804219: { - if (input.isAtField(FieldNames.energyInfo)) { + case 1038073356: + case 2135678991: { + if (input.isAtField(FieldNames.chargerInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(energyInfo); + input.readMessage(chargerInfo); bitField0_ |= 0x00000004; } } else { @@ -456,9 +456,9 @@ public final class InteractChargerScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName chargerInfo = FieldName.forField("chargerInfo", "charger_info"); - static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); + + static final FieldName chargerInfo = FieldName.forField("chargerInfo", "charger_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java index eca8b64..eb4356e 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractPropCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class InteractPropCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 interact_id = 1; - */ - private int interactId; - - /** - * optional uint32 prop_entity_id = 11; + * optional uint32 prop_entity_id = 8; */ private int propEntityId; + /** + * optional uint32 interact_id = 15; + */ + private int interactId; + private InteractPropCsReq() { } @@ -39,62 +39,25 @@ public final class InteractPropCsReqOuterClass { } /** - * optional uint32 interact_id = 1; - * @return whether the interactId field is set + * optional uint32 prop_entity_id = 8; + * @return whether the propEntityId field is set */ - public boolean hasInteractId() { + public boolean hasPropEntityId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 interact_id = 1; - * @return this - */ - public InteractPropCsReq clearInteractId() { - bitField0_ &= ~0x00000001; - interactId = 0; - return this; - } - - /** - * optional uint32 interact_id = 1; - * @return the interactId - */ - public int getInteractId() { - return interactId; - } - - /** - * optional uint32 interact_id = 1; - * @param value the interactId to set - * @return this - */ - public InteractPropCsReq setInteractId(final int value) { - bitField0_ |= 0x00000001; - interactId = value; - return this; - } - - /** - * optional uint32 prop_entity_id = 11; - * @return whether the propEntityId field is set - */ - public boolean hasPropEntityId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 prop_entity_id = 11; + * optional uint32 prop_entity_id = 8; * @return this */ public InteractPropCsReq clearPropEntityId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; propEntityId = 0; return this; } /** - * optional uint32 prop_entity_id = 11; + * optional uint32 prop_entity_id = 8; * @return the propEntityId */ public int getPropEntityId() { @@ -102,23 +65,60 @@ public final class InteractPropCsReqOuterClass { } /** - * optional uint32 prop_entity_id = 11; + * optional uint32 prop_entity_id = 8; * @param value the propEntityId to set * @return this */ public InteractPropCsReq setPropEntityId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; propEntityId = value; return this; } + /** + * optional uint32 interact_id = 15; + * @return whether the interactId field is set + */ + public boolean hasInteractId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 interact_id = 15; + * @return this + */ + public InteractPropCsReq clearInteractId() { + bitField0_ &= ~0x00000002; + interactId = 0; + return this; + } + + /** + * optional uint32 interact_id = 15; + * @return the interactId + */ + public int getInteractId() { + return interactId; + } + + /** + * optional uint32 interact_id = 15; + * @param value the interactId to set + * @return this + */ + public InteractPropCsReq setInteractId(final int value) { + bitField0_ |= 0x00000002; + interactId = value; + return this; + } + @Override public InteractPropCsReq copyFrom(final InteractPropCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - interactId = other.interactId; propEntityId = other.propEntityId; + interactId = other.interactId; } return this; } @@ -129,12 +129,12 @@ public final class InteractPropCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasInteractId()) { - setInteractId(other.interactId); - } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } + if (other.hasInteractId()) { + setInteractId(other.interactId); + } return this; } @@ -145,8 +145,8 @@ public final class InteractPropCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - interactId = 0; propEntityId = 0; + interactId = 0; return this; } @@ -170,19 +170,19 @@ public final class InteractPropCsReqOuterClass { } InteractPropCsReq other = (InteractPropCsReq) o; return bitField0_ == other.bitField0_ - && (!hasInteractId() || interactId == other.interactId) - && (!hasPropEntityId() || propEntityId == other.propEntityId); + && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasInteractId() || interactId == other.interactId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(interactId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(propEntityId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(interactId); } } @@ -190,10 +190,10 @@ public final class InteractPropCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(interactId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(interactId); } return size; } @@ -205,18 +205,18 @@ public final class InteractPropCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // interactId - interactId = input.readUInt32(); + case 64: { + // propEntityId + propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 120) { break; } } - case 88: { - // propEntityId - propEntityId = input.readUInt32(); + case 120: { + // interactId + interactId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class InteractPropCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.interactId, interactId); + output.writeUInt32(FieldNames.propEntityId, propEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.propEntityId, propEntityId); + output.writeUInt32(FieldNames.interactId, interactId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class InteractPropCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1603081743: - case 1844094916: { - if (input.isAtField(FieldNames.interactId)) { + case -68717343: + case -57484005: { + if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { - interactId = input.readUInt32(); + propEntityId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class InteractPropCsReqOuterClass { } break; } - case -68717343: - case -57484005: { - if (input.isAtField(FieldNames.propEntityId)) { + case -1603081743: + case 1844094916: { + if (input.isAtField(FieldNames.interactId)) { if (!input.trySkipNullValue()) { - propEntityId = input.readUInt32(); + interactId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class InteractPropCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName interactId = FieldName.forField("interactId", "interact_id"); - static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + + static final FieldName interactId = FieldName.forField("interactId", "interact_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java index bb4dda4..01ac173 100644 --- a/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/InteractPropScRspOuterClass.java @@ -19,17 +19,21 @@ public final class InteractPropScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 prop_state = 1; + * optional uint32 prop_state = 5; */ private int propState; /** - * optional uint32 prop_entity_id = 6; + * optional uint32 prop_entity_id = 11; */ private int propEntityId; /** - * optional uint32 retcode = 10; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; */ private int retcode; @@ -44,7 +48,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 1; + * optional uint32 prop_state = 5; * @return whether the propState field is set */ public boolean hasPropState() { @@ -52,7 +56,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 1; + * optional uint32 prop_state = 5; * @return this */ public InteractPropScRsp clearPropState() { @@ -62,7 +66,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 1; + * optional uint32 prop_state = 5; * @return the propState */ public int getPropState() { @@ -70,7 +74,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_state = 1; + * optional uint32 prop_state = 5; * @param value the propState to set * @return this */ @@ -81,7 +85,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_entity_id = 6; + * optional uint32 prop_entity_id = 11; * @return whether the propEntityId field is set */ public boolean hasPropEntityId() { @@ -89,7 +93,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_entity_id = 6; + * optional uint32 prop_entity_id = 11; * @return this */ public InteractPropScRsp clearPropEntityId() { @@ -99,7 +103,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_entity_id = 6; + * optional uint32 prop_entity_id = 11; * @return the propEntityId */ public int getPropEntityId() { @@ -107,7 +111,7 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 prop_entity_id = 6; + * optional uint32 prop_entity_id = 11; * @param value the propEntityId to set * @return this */ @@ -118,7 +122,11 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 retcode = 10; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -126,7 +134,11 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 retcode = 10; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return this */ public InteractPropScRsp clearRetcode() { @@ -136,7 +148,11 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 retcode = 10; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @return the retcode */ public int getRetcode() { @@ -144,7 +160,11 @@ public final class InteractPropScRspOuterClass { } /** - * optional uint32 retcode = 10; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; * @param value the retcode to set * @return this */ @@ -225,15 +245,15 @@ public final class InteractPropScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(propState); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(propEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(retcode); } } @@ -260,25 +280,25 @@ public final class InteractPropScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 40: { // propState propState = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 88) { break; } } - case 48: { + case 88: { // propEntityId propEntityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 104) { break; } } - case 80: { + case 104: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java index fddb7dc..7fd5846 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostListOuterClass.java @@ -20,7 +20,7 @@ public final class ItemCostListOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -35,7 +35,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -43,7 +43,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; * @return this */ public ItemCostList clearItemList() { @@ -53,7 +53,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; * @param value the itemList to add * @return this */ @@ -92,7 +92,7 @@ public final class ItemCostListOuterClass { } /** - * repeated .ItemCost item_list = 9; + * repeated .ItemCost item_list = 14; * @param values the itemList to add * @return this */ @@ -163,7 +163,7 @@ public final class ItemCostListOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 114); output.writeMessageNoTag(itemList.get(i)); } } @@ -185,7 +185,7 @@ public final class ItemCostListOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 74: { + case 114: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java index 6151ba7..020a974 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemCostOuterClass.java @@ -19,7 +19,7 @@ public final class ItemCostOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 8; */ private int equipmentUniqueId; @@ -29,7 +29,7 @@ public final class ItemCostOuterClass { private int relicUniqueId; /** - * optional .PileItem pile_item = 12; + * optional .PileItem pile_item = 11; */ private final PileItemOuterClass.PileItem pileItem = PileItemOuterClass.PileItem.newInstance(); @@ -44,7 +44,7 @@ public final class ItemCostOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 8; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -52,7 +52,7 @@ public final class ItemCostOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 8; * @return this */ public ItemCost clearEquipmentUniqueId() { @@ -62,7 +62,7 @@ public final class ItemCostOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 8; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -70,7 +70,7 @@ public final class ItemCostOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 8; * @param value the equipmentUniqueId to set * @return this */ @@ -118,7 +118,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 12; + * optional .PileItem pile_item = 11; * @return whether the pileItem field is set */ public boolean hasPileItem() { @@ -126,7 +126,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 12; + * optional .PileItem pile_item = 11; * @return this */ public ItemCost clearPileItem() { @@ -136,7 +136,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 12; + * optional .PileItem pile_item = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 12; + * optional .PileItem pile_item = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class ItemCostOuterClass { } /** - * optional .PileItem pile_item = 12; + * optional .PileItem pile_item = 11; * @param value the pileItem to set * @return this */ @@ -246,7 +246,7 @@ public final class ItemCostOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { @@ -254,7 +254,7 @@ public final class ItemCostOuterClass { output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 90); output.writeMessageNoTag(pileItem); } } @@ -281,7 +281,7 @@ public final class ItemCostOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 64: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; @@ -295,11 +295,11 @@ public final class ItemCostOuterClass { relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 90) { break; } } - case 98: { + case 90: { // pileItem input.readMessage(pileItem); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java index cc08d24..5cb2bb9 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemListOuterClass.java @@ -20,7 +20,7 @@ public final class ItemListOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemOuterClass.Item.getFactory()); @@ -35,7 +35,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -43,7 +43,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; * @return this */ public ItemList clearItemList() { @@ -53,7 +53,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; * @param value the itemList to add * @return this */ @@ -92,7 +92,7 @@ public final class ItemListOuterClass { } /** - * repeated .Item item_list = 10; + * repeated .Item item_list = 1; * @param values the itemList to add * @return this */ @@ -163,7 +163,7 @@ public final class ItemListOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 10); output.writeMessageNoTag(itemList.get(i)); } } @@ -185,7 +185,7 @@ public final class ItemListOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 10: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java index c518ae5..0c13ff4 100644 --- a/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ItemOuterClass.java @@ -19,39 +19,39 @@ public final class ItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 1; - */ - private int num; - - /** - * optional uint32 promotion = 2; - */ - private int promotion; - - /** - * optional uint32 main_affix_id = 3; - */ - private int mainAffixId; - - /** - * optional uint32 level = 6; - */ - private int level; - - /** - * optional uint32 rank = 9; + * optional uint32 rank = 1; */ private int rank; /** - * optional uint32 item_id = 13; + * optional uint32 level = 3; + */ + private int level; + + /** + * optional uint32 unique_id = 5; + */ + private int uniqueId; + + /** + * optional uint32 item_id = 9; */ private int itemId; /** - * optional uint32 unique_id = 15; + * optional uint32 promotion = 12; */ - private int uniqueId; + private int promotion; + + /** + * optional uint32 num = 13; + */ + private int num; + + /** + * optional uint32 main_affix_id = 14; + */ + private int mainAffixId; private Item() { } @@ -64,173 +64,25 @@ public final class ItemOuterClass { } /** - * optional uint32 num = 1; - * @return whether the num field is set + * optional uint32 rank = 1; + * @return whether the rank field is set */ - public boolean hasNum() { + public boolean hasRank() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 num = 1; - * @return this - */ - public Item clearNum() { - bitField0_ &= ~0x00000001; - num = 0; - return this; - } - - /** - * optional uint32 num = 1; - * @return the num - */ - public int getNum() { - return num; - } - - /** - * optional uint32 num = 1; - * @param value the num to set - * @return this - */ - public Item setNum(final int value) { - bitField0_ |= 0x00000001; - num = value; - return this; - } - - /** - * optional uint32 promotion = 2; - * @return whether the promotion field is set - */ - public boolean hasPromotion() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 promotion = 2; - * @return this - */ - public Item clearPromotion() { - bitField0_ &= ~0x00000002; - promotion = 0; - return this; - } - - /** - * optional uint32 promotion = 2; - * @return the promotion - */ - public int getPromotion() { - return promotion; - } - - /** - * optional uint32 promotion = 2; - * @param value the promotion to set - * @return this - */ - public Item setPromotion(final int value) { - bitField0_ |= 0x00000002; - promotion = value; - return this; - } - - /** - * optional uint32 main_affix_id = 3; - * @return whether the mainAffixId field is set - */ - public boolean hasMainAffixId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 main_affix_id = 3; - * @return this - */ - public Item clearMainAffixId() { - bitField0_ &= ~0x00000004; - mainAffixId = 0; - return this; - } - - /** - * optional uint32 main_affix_id = 3; - * @return the mainAffixId - */ - public int getMainAffixId() { - return mainAffixId; - } - - /** - * optional uint32 main_affix_id = 3; - * @param value the mainAffixId to set - * @return this - */ - public Item setMainAffixId(final int value) { - bitField0_ |= 0x00000004; - mainAffixId = value; - return this; - } - - /** - * optional uint32 level = 6; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 level = 6; - * @return this - */ - public Item clearLevel() { - bitField0_ &= ~0x00000008; - level = 0; - return this; - } - - /** - * optional uint32 level = 6; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 6; - * @param value the level to set - * @return this - */ - public Item setLevel(final int value) { - bitField0_ |= 0x00000008; - level = value; - return this; - } - - /** - * optional uint32 rank = 9; - * @return whether the rank field is set - */ - public boolean hasRank() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 rank = 9; + * optional uint32 rank = 1; * @return this */ public Item clearRank() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000001; rank = 0; return this; } /** - * optional uint32 rank = 9; + * optional uint32 rank = 1; * @return the rank */ public int getRank() { @@ -238,73 +90,73 @@ public final class ItemOuterClass { } /** - * optional uint32 rank = 9; + * optional uint32 rank = 1; * @param value the rank to set * @return this */ public Item setRank(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; rank = value; return this; } /** - * optional uint32 item_id = 13; - * @return whether the itemId field is set + * optional uint32 level = 3; + * @return whether the level field is set */ - public boolean hasItemId() { - return (bitField0_ & 0x00000020) != 0; + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 item_id = 13; + * optional uint32 level = 3; * @return this */ - public Item clearItemId() { - bitField0_ &= ~0x00000020; - itemId = 0; + public Item clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; return this; } /** - * optional uint32 item_id = 13; - * @return the itemId + * optional uint32 level = 3; + * @return the level */ - public int getItemId() { - return itemId; + public int getLevel() { + return level; } /** - * optional uint32 item_id = 13; - * @param value the itemId to set + * optional uint32 level = 3; + * @param value the level to set * @return this */ - public Item setItemId(final int value) { - bitField0_ |= 0x00000020; - itemId = value; + public Item setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; return this; } /** - * optional uint32 unique_id = 15; + * optional uint32 unique_id = 5; * @return whether the uniqueId field is set */ public boolean hasUniqueId() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 unique_id = 15; + * optional uint32 unique_id = 5; * @return this */ public Item clearUniqueId() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000004; uniqueId = 0; return this; } /** - * optional uint32 unique_id = 15; + * optional uint32 unique_id = 5; * @return the uniqueId */ public int getUniqueId() { @@ -312,28 +164,176 @@ public final class ItemOuterClass { } /** - * optional uint32 unique_id = 15; + * optional uint32 unique_id = 5; * @param value the uniqueId to set * @return this */ public Item setUniqueId(final int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000004; uniqueId = value; return this; } + /** + * optional uint32 item_id = 9; + * @return whether the itemId field is set + */ + public boolean hasItemId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 item_id = 9; + * @return this + */ + public Item clearItemId() { + bitField0_ &= ~0x00000008; + itemId = 0; + return this; + } + + /** + * optional uint32 item_id = 9; + * @return the itemId + */ + public int getItemId() { + return itemId; + } + + /** + * optional uint32 item_id = 9; + * @param value the itemId to set + * @return this + */ + public Item setItemId(final int value) { + bitField0_ |= 0x00000008; + itemId = value; + return this; + } + + /** + * optional uint32 promotion = 12; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 promotion = 12; + * @return this + */ + public Item clearPromotion() { + bitField0_ &= ~0x00000010; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 12; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 12; + * @param value the promotion to set + * @return this + */ + public Item setPromotion(final int value) { + bitField0_ |= 0x00000010; + promotion = value; + return this; + } + + /** + * optional uint32 num = 13; + * @return whether the num field is set + */ + public boolean hasNum() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 num = 13; + * @return this + */ + public Item clearNum() { + bitField0_ &= ~0x00000020; + num = 0; + return this; + } + + /** + * optional uint32 num = 13; + * @return the num + */ + public int getNum() { + return num; + } + + /** + * optional uint32 num = 13; + * @param value the num to set + * @return this + */ + public Item setNum(final int value) { + bitField0_ |= 0x00000020; + num = value; + return this; + } + + /** + * optional uint32 main_affix_id = 14; + * @return whether the mainAffixId field is set + */ + public boolean hasMainAffixId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 main_affix_id = 14; + * @return this + */ + public Item clearMainAffixId() { + bitField0_ &= ~0x00000040; + mainAffixId = 0; + return this; + } + + /** + * optional uint32 main_affix_id = 14; + * @return the mainAffixId + */ + public int getMainAffixId() { + return mainAffixId; + } + + /** + * optional uint32 main_affix_id = 14; + * @param value the mainAffixId to set + * @return this + */ + public Item setMainAffixId(final int value) { + bitField0_ |= 0x00000040; + mainAffixId = value; + return this; + } + @Override public Item copyFrom(final Item other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - num = other.num; - promotion = other.promotion; - mainAffixId = other.mainAffixId; - level = other.level; rank = other.rank; - itemId = other.itemId; + level = other.level; uniqueId = other.uniqueId; + itemId = other.itemId; + promotion = other.promotion; + num = other.num; + mainAffixId = other.mainAffixId; } return this; } @@ -344,26 +344,26 @@ public final class ItemOuterClass { return this; } cachedSize = -1; - if (other.hasNum()) { - setNum(other.num); - } - if (other.hasPromotion()) { - setPromotion(other.promotion); - } - if (other.hasMainAffixId()) { - setMainAffixId(other.mainAffixId); + if (other.hasRank()) { + setRank(other.rank); } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasRank()) { - setRank(other.rank); + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); } if (other.hasItemId()) { setItemId(other.itemId); } - if (other.hasUniqueId()) { - setUniqueId(other.uniqueId); + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasNum()) { + setNum(other.num); + } + if (other.hasMainAffixId()) { + setMainAffixId(other.mainAffixId); } return this; } @@ -375,13 +375,13 @@ public final class ItemOuterClass { } cachedSize = -1; bitField0_ = 0; - num = 0; - promotion = 0; - mainAffixId = 0; - level = 0; rank = 0; - itemId = 0; + level = 0; uniqueId = 0; + itemId = 0; + promotion = 0; + num = 0; + mainAffixId = 0; return this; } @@ -405,44 +405,44 @@ public final class ItemOuterClass { } Item other = (Item) o; return bitField0_ == other.bitField0_ - && (!hasNum() || num == other.num) - && (!hasPromotion() || promotion == other.promotion) - && (!hasMainAffixId() || mainAffixId == other.mainAffixId) - && (!hasLevel() || level == other.level) && (!hasRank() || rank == other.rank) + && (!hasLevel() || level == other.level) + && (!hasUniqueId() || uniqueId == other.uniqueId) && (!hasItemId() || itemId == other.itemId) - && (!hasUniqueId() || uniqueId == other.uniqueId); + && (!hasPromotion() || promotion == other.promotion) + && (!hasNum() || num == other.num) + && (!hasMainAffixId() || mainAffixId == other.mainAffixId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(num); + output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(promotion); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(mainAffixId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); output.writeUInt32NoTag(level); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(uniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(rank); + output.writeUInt32NoTag(itemId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(promotion); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(itemId); + output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(uniqueId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(mainAffixId); } } @@ -450,25 +450,25 @@ public final class ItemOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(num); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(num); + } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } return size; } @@ -481,44 +481,44 @@ public final class ItemOuterClass { while (true) { switch (tag) { case 8: { - // num - num = input.readUInt32(); + // rank + rank = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // promotion - promotion = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 24) { break; } } case 24: { - // mainAffixId - mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000004; + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { + if (tag != 40) { break; } } - case 48: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000008; + case 40: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 72) { break; } } case 72: { - // rank - rank = input.readUInt32(); + // itemId + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 104) { @@ -526,17 +526,17 @@ public final class ItemOuterClass { } } case 104: { - // itemId - itemId = input.readUInt32(); + // num + num = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { - // uniqueId - uniqueId = input.readUInt32(); + case 112: { + // mainAffixId + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 0) { @@ -561,25 +561,25 @@ public final class ItemOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.num, num); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mainAffixId, mainAffixId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.level, level); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.rank, rank); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.level, level); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.itemId, itemId); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.num, num); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); + output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } output.endObject(); } @@ -591,10 +591,10 @@ public final class ItemOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109446: { - if (input.isAtField(FieldNames.num)) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { - num = input.readUInt32(); + rank = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -602,57 +602,11 @@ public final class ItemOuterClass { } break; } - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { - if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1973876974: - case -1426712144: { - if (input.isAtField(FieldNames.mainAffixId)) { - if (!input.trySkipNullValue()) { - mainAffixId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case 102865796: { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 3492908: { - if (input.isAtField(FieldNames.rank)) { - if (!input.trySkipNullValue()) { - rank = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { - if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -664,6 +618,52 @@ public final class ItemOuterClass { if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { uniqueId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { + if (!input.trySkipNullValue()) { + itemId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109446: { + if (input.isAtField(FieldNames.num)) { + if (!input.trySkipNullValue()) { + num = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1973876974: + case -1426712144: { + if (input.isAtField(FieldNames.mainAffixId)) { + if (!input.trySkipNullValue()) { + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -723,19 +723,19 @@ public final class ItemOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName num = FieldName.forField("num"); - - static final FieldName promotion = FieldName.forField("promotion"); - - static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); + static final FieldName rank = FieldName.forField("rank"); static final FieldName level = FieldName.forField("level"); - static final FieldName rank = FieldName.forField("rank"); + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); static final FieldName itemId = FieldName.forField("itemId", "item_id"); - static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName num = FieldName.forField("num"); + + static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java index 69b4b2c..f2d146c 100644 --- a/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/JoinLineupCsReqOuterClass.java @@ -19,37 +19,37 @@ public final class JoinLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 2; - */ - private int slot; - - /** - * optional uint32 index = 3; + * optional uint32 index = 1; */ private int index; /** - * optional uint32 base_avatar_id = 11; - */ - private int baseAvatarId; - - /** - * optional uint32 plane_id = 14; + * optional uint32 plane_id = 8; */ private int planeId; /** - * optional .ExtraLineupType extra_lineup_type = 9; + * optional uint32 slot = 13; */ - private int extraLineupType; + private int slot; /** - * optional .AvatarType avatar_type = 15; + * optional uint32 base_avatar_id = 14; + */ + private int baseAvatarId; + + /** + * optional .AvatarType avatar_type = 4; */ private int avatarType; /** - * optional bool is_virtual = 13; + * optional .ExtraLineupType extra_lineup_type = 10; + */ + private int extraLineupType; + + /** + * optional bool is_virtual = 7; */ private boolean isVirtual; @@ -64,62 +64,25 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 slot = 2; - * @return whether the slot field is set + * optional uint32 index = 1; + * @return whether the index field is set */ - public boolean hasSlot() { + public boolean hasIndex() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 slot = 2; - * @return this - */ - public JoinLineupCsReq clearSlot() { - bitField0_ &= ~0x00000001; - slot = 0; - return this; - } - - /** - * optional uint32 slot = 2; - * @return the slot - */ - public int getSlot() { - return slot; - } - - /** - * optional uint32 slot = 2; - * @param value the slot to set - * @return this - */ - public JoinLineupCsReq setSlot(final int value) { - bitField0_ |= 0x00000001; - slot = value; - return this; - } - - /** - * optional uint32 index = 3; - * @return whether the index field is set - */ - public boolean hasIndex() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 index = 3; + * optional uint32 index = 1; * @return this */ public JoinLineupCsReq clearIndex() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; index = 0; return this; } /** - * optional uint32 index = 3; + * optional uint32 index = 1; * @return the index */ public int getIndex() { @@ -127,73 +90,36 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 index = 3; + * optional uint32 index = 1; * @param value the index to set * @return this */ public JoinLineupCsReq setIndex(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; index = value; return this; } /** - * optional uint32 base_avatar_id = 11; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 base_avatar_id = 11; - * @return this - */ - public JoinLineupCsReq clearBaseAvatarId() { - bitField0_ &= ~0x00000004; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 11; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 11; - * @param value the baseAvatarId to set - * @return this - */ - public JoinLineupCsReq setBaseAvatarId(final int value) { - bitField0_ |= 0x00000004; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 plane_id = 14; + * optional uint32 plane_id = 8; * @return whether the planeId field is set */ public boolean hasPlaneId() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 plane_id = 14; + * optional uint32 plane_id = 8; * @return this */ public JoinLineupCsReq clearPlaneId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; planeId = 0; return this; } /** - * optional uint32 plane_id = 14; + * optional uint32 plane_id = 8; * @return the planeId */ public int getPlaneId() { @@ -201,99 +127,110 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 14; + * optional uint32 plane_id = 8; * @param value the planeId to set * @return this */ public JoinLineupCsReq setPlaneId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; planeId = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 9; - * @return whether the extraLineupType field is set + * optional uint32 slot = 13; + * @return whether the slot field is set */ - public boolean hasExtraLineupType() { + public boolean hasSlot() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 slot = 13; + * @return this + */ + public JoinLineupCsReq clearSlot() { + bitField0_ &= ~0x00000004; + slot = 0; + return this; + } + + /** + * optional uint32 slot = 13; + * @return the slot + */ + public int getSlot() { + return slot; + } + + /** + * optional uint32 slot = 13; + * @param value the slot to set + * @return this + */ + public JoinLineupCsReq setSlot(final int value) { + bitField0_ |= 0x00000004; + slot = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return this + */ + public JoinLineupCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000008; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 14; + * @param value the baseAvatarId to set + * @return this + */ + public JoinLineupCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000008; + baseAvatarId = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 4; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .ExtraLineupType extra_lineup_type = 9; - * @return this - */ - public JoinLineupCsReq clearExtraLineupType() { - bitField0_ &= ~0x00000010; - extraLineupType = 0; - return this; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 9; - * @return the extraLineupType - */ - public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { - return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link JoinLineupCsReq#getExtraLineupType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getExtraLineupTypeValue() { - return extraLineupType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value - * can cause {@link JoinLineupCsReq#getExtraLineupType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public JoinLineupCsReq setExtraLineupTypeValue(final int value) { - bitField0_ |= 0x00000010; - extraLineupType = value; - return this; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 9; - * @param value the extraLineupType to set - * @return this - */ - public JoinLineupCsReq setExtraLineupType( - final ExtraLineupTypeOuterClass.ExtraLineupType value) { - bitField0_ |= 0x00000010; - extraLineupType = value.getNumber(); - return this; - } - - /** - * optional .AvatarType avatar_type = 15; - * @return whether the avatarType field is set - */ - public boolean hasAvatarType() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 4; * @return this */ public JoinLineupCsReq clearAvatarType() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000010; avatarType = 0; return this; } /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 4; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -320,24 +257,87 @@ public final class JoinLineupCsReqOuterClass { * @return this */ public JoinLineupCsReq setAvatarTypeValue(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; avatarType = value; return this; } /** - * optional .AvatarType avatar_type = 15; + * optional .AvatarType avatar_type = 4; * @param value the avatarType to set * @return this */ public JoinLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; avatarType = value.getNumber(); return this; } /** - * optional bool is_virtual = 13; + * optional .ExtraLineupType extra_lineup_type = 10; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 10; + * @return this + */ + public JoinLineupCsReq clearExtraLineupType() { + bitField0_ &= ~0x00000020; + extraLineupType = 0; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 10; + * @return the extraLineupType + */ + public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { + return ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(extraLineupType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link JoinLineupCsReq#getExtraLineupType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getExtraLineupTypeValue() { + return extraLineupType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ExtraLineupTypeOuterClass.ExtraLineupType}. Setting an invalid value + * can cause {@link JoinLineupCsReq#getExtraLineupType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public JoinLineupCsReq setExtraLineupTypeValue(final int value) { + bitField0_ |= 0x00000020; + extraLineupType = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 10; + * @param value the extraLineupType to set + * @return this + */ + public JoinLineupCsReq setExtraLineupType( + final ExtraLineupTypeOuterClass.ExtraLineupType value) { + bitField0_ |= 0x00000020; + extraLineupType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 7; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -345,7 +345,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 7; * @return this */ public JoinLineupCsReq clearIsVirtual() { @@ -355,7 +355,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 7; * @return the isVirtual */ public boolean getIsVirtual() { @@ -363,7 +363,7 @@ public final class JoinLineupCsReqOuterClass { } /** - * optional bool is_virtual = 13; + * optional bool is_virtual = 7; * @param value the isVirtual to set * @return this */ @@ -378,12 +378,12 @@ public final class JoinLineupCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - slot = other.slot; index = other.index; - baseAvatarId = other.baseAvatarId; planeId = other.planeId; - extraLineupType = other.extraLineupType; + slot = other.slot; + baseAvatarId = other.baseAvatarId; avatarType = other.avatarType; + extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; } return this; @@ -395,24 +395,24 @@ public final class JoinLineupCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasSlot()) { - setSlot(other.slot); - } if (other.hasIndex()) { setIndex(other.index); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } if (other.hasPlaneId()) { setPlaneId(other.planeId); } - if (other.hasExtraLineupType()) { - setExtraLineupTypeValue(other.extraLineupType); + if (other.hasSlot()) { + setSlot(other.slot); + } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } + if (other.hasExtraLineupType()) { + setExtraLineupTypeValue(other.extraLineupType); + } if (other.hasIsVirtual()) { setIsVirtual(other.isVirtual); } @@ -426,12 +426,12 @@ public final class JoinLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - slot = 0; index = 0; - baseAvatarId = 0; planeId = 0; - extraLineupType = 0; + slot = 0; + baseAvatarId = 0; avatarType = 0; + extraLineupType = 0; isVirtual = false; return this; } @@ -456,43 +456,43 @@ public final class JoinLineupCsReqOuterClass { } JoinLineupCsReq other = (JoinLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSlot() || slot == other.slot) && (!hasIndex() || index == other.index) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasPlaneId() || planeId == other.planeId) - && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasSlot() || slot == other.slot) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(slot); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(index); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(planeId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(planeId); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 72); - output.writeEnumNoTag(extraLineupType); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeEnumNoTag(avatarType); } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeEnumNoTag(extraLineupType); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 56); output.writeBoolNoTag(isVirtual); } } @@ -501,22 +501,22 @@ public final class JoinLineupCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } if ((bitField0_ & 0x00000040) != 0) { size += 2; @@ -531,27 +531,27 @@ public final class JoinLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // slot - slot = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { + case 8: { // index index = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 64) { break; } } - case 88: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 64: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // slot + slot = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 112) { @@ -559,39 +559,39 @@ public final class JoinLineupCsReqOuterClass { } } case 112: { - // planeId - planeId = input.readUInt32(); + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 72) { + if (tag != 32) { break; } } - case 72: { - // extraLineupType - final int value = input.readInt32(); - if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { - extraLineupType = value; - bitField0_ |= 0x00000010; - } - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { + case 32: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { avatarType = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 104) { + if (tag != 80) { break; } } - case 104: { + case 80: { + // extraLineupType + final int value = input.readInt32(); + if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { + extraLineupType = value; + bitField0_ |= 0x00000020; + } + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000040; @@ -618,22 +618,22 @@ public final class JoinLineupCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.slot, slot); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.index, index); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); - } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.planeId, planeId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.slot, slot); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } if ((bitField0_ & 0x00000040) != 0) { output.writeBool(FieldNames.isVirtual, isVirtual); @@ -648,34 +648,11 @@ public final class JoinLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3533310: { - if (input.isAtField(FieldNames.slot)) { - if (!input.trySkipNullValue()) { - slot = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 100346066: { if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { index = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { - if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -687,24 +664,30 @@ public final class JoinLineupCsReqOuterClass { if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { planeId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); } break; } - case -468135527: - case -1144475077: { - if (input.isAtField(FieldNames.extraLineupType)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); - if (value != null) { - extraLineupType = value.getNumber(); - bitField0_ |= 0x00000010; - } else { - input.skipUnknownEnumValue(); - } + slot = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { + if (!input.trySkipNullValue()) { + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -718,6 +701,23 @@ public final class JoinLineupCsReqOuterClass { final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); if (value != null) { avatarType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -468135527: + case -1144475077: { + if (input.isAtField(FieldNames.extraLineupType)) { + if (!input.trySkipNullValue()) { + final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + if (value != null) { + extraLineupType = value.getNumber(); bitField0_ |= 0x00000020; } else { input.skipUnknownEnumValue(); @@ -793,18 +793,18 @@ public final class JoinLineupCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName slot = FieldName.forField("slot"); - static final FieldName index = FieldName.forField("index"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName slot = FieldName.forField("slot"); + + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); } } diff --git a/src/generated/main/emu/lunarcore/proto/LANBPBBAJLMOuterClass.java b/src/generated/main/emu/lunarcore/proto/LANBPBBAJLMOuterClass.java deleted file mode 100644 index cb12d85..0000000 --- a/src/generated/main/emu/lunarcore/proto/LANBPBBAJLMOuterClass.java +++ /dev/null @@ -1,280 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class LANBPBBAJLMOuterClass { - /** - * Protobuf type {@code LANBPBBAJLM} - */ - public static final class LANBPBBAJLM extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ItemList item_list = 8; - */ - private final ItemListOuterClass.ItemList itemList = ItemListOuterClass.ItemList.newInstance(); - - private LANBPBBAJLM() { - } - - /** - * @return a new empty instance of {@code LANBPBBAJLM} - */ - public static LANBPBBAJLM newInstance() { - return new LANBPBBAJLM(); - } - - /** - * optional .ItemList item_list = 8; - * @return whether the itemList field is set - */ - public boolean hasItemList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ItemList item_list = 8; - * @return this - */ - public LANBPBBAJLM clearItemList() { - bitField0_ &= ~0x00000001; - itemList.clear(); - return this; - } - - /** - * optional .ItemList item_list = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableItemList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemListOuterClass.ItemList getItemList() { - return itemList; - } - - /** - * optional .ItemList item_list = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemListOuterClass.ItemList getMutableItemList() { - bitField0_ |= 0x00000001; - return itemList; - } - - /** - * optional .ItemList item_list = 8; - * @param value the itemList to set - * @return this - */ - public LANBPBBAJLM setItemList(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000001; - itemList.copyFrom(value); - return this; - } - - @Override - public LANBPBBAJLM copyFrom(final LANBPBBAJLM other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - itemList.copyFrom(other.itemList); - } - return this; - } - - @Override - public LANBPBBAJLM mergeFrom(final LANBPBBAJLM other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasItemList()) { - getMutableItemList().mergeFrom(other.itemList); - } - return this; - } - - @Override - public LANBPBBAJLM clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - itemList.clear(); - return this; - } - - @Override - public LANBPBBAJLM clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - itemList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof LANBPBBAJLM)) { - return false; - } - LANBPBBAJLM other = (LANBPBBAJLM) o; - return bitField0_ == other.bitField0_ - && (!hasItemList() || itemList.equals(other.itemList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(itemList); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(itemList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public LANBPBBAJLM mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 66: { - // itemList - input.readMessage(itemList); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.itemList, itemList); - } - output.endObject(); - } - - @Override - public LANBPBBAJLM mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1177280081: - case -2141396406: { - if (input.isAtField(FieldNames.itemList)) { - if (!input.trySkipNullValue()) { - input.readMessage(itemList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public LANBPBBAJLM clone() { - return new LANBPBBAJLM().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static LANBPBBAJLM parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new LANBPBBAJLM(), data).checkInitialized(); - } - - public static LANBPBBAJLM parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new LANBPBBAJLM(), input).checkInitialized(); - } - - public static LANBPBBAJLM parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new LANBPBBAJLM(), input).checkInitialized(); - } - - /** - * @return factory for creating LANBPBBAJLM messages - */ - public static MessageFactory getFactory() { - return LANBPBBAJLMFactory.INSTANCE; - } - - private enum LANBPBBAJLMFactory implements MessageFactory { - INSTANCE; - - @Override - public LANBPBBAJLM create() { - return LANBPBBAJLM.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName itemList = FieldName.forField("itemList", "item_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/LLJFPKKLGAKOuterClass.java b/src/generated/main/emu/lunarcore/proto/LLJFPKKLGAKOuterClass.java deleted file mode 100644 index 1c3fab4..0000000 --- a/src/generated/main/emu/lunarcore/proto/LLJFPKKLGAKOuterClass.java +++ /dev/null @@ -1,381 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class LLJFPKKLGAKOuterClass { - /** - * Protobuf type {@code LLJFPKKLGAK} - */ - public static final class LLJFPKKLGAK extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .LANBPBBAJLM OLMCGHBDKIE = 1; - */ - private final LANBPBBAJLMOuterClass.LANBPBBAJLM oLMCGHBDKIE = LANBPBBAJLMOuterClass.LANBPBBAJLM.newInstance(); - - /** - * optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9; - */ - private final RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent pJALJFEJGDD = RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent.newInstance(); - - private LLJFPKKLGAK() { - } - - /** - * @return a new empty instance of {@code LLJFPKKLGAK} - */ - public static LLJFPKKLGAK newInstance() { - return new LLJFPKKLGAK(); - } - - /** - * optional .LANBPBBAJLM OLMCGHBDKIE = 1; - * @return whether the oLMCGHBDKIE field is set - */ - public boolean hasOLMCGHBDKIE() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .LANBPBBAJLM OLMCGHBDKIE = 1; - * @return this - */ - public LLJFPKKLGAK clearOLMCGHBDKIE() { - bitField0_ &= ~0x00000001; - oLMCGHBDKIE.clear(); - return this; - } - - /** - * optional .LANBPBBAJLM OLMCGHBDKIE = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableOLMCGHBDKIE()} if you want to modify it. - * - * @return internal storage object for reading - */ - public LANBPBBAJLMOuterClass.LANBPBBAJLM getOLMCGHBDKIE() { - return oLMCGHBDKIE; - } - - /** - * optional .LANBPBBAJLM OLMCGHBDKIE = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public LANBPBBAJLMOuterClass.LANBPBBAJLM getMutableOLMCGHBDKIE() { - bitField0_ |= 0x00000001; - return oLMCGHBDKIE; - } - - /** - * optional .LANBPBBAJLM OLMCGHBDKIE = 1; - * @param value the oLMCGHBDKIE to set - * @return this - */ - public LLJFPKKLGAK setOLMCGHBDKIE(final LANBPBBAJLMOuterClass.LANBPBBAJLM value) { - bitField0_ |= 0x00000001; - oLMCGHBDKIE.copyFrom(value); - return this; - } - - /** - * optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9; - * @return whether the pJALJFEJGDD field is set - */ - public boolean hasPJALJFEJGDD() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9; - * @return this - */ - public LLJFPKKLGAK clearPJALJFEJGDD() { - bitField0_ &= ~0x00000002; - pJALJFEJGDD.clear(); - return this; - } - - /** - * optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutablePJALJFEJGDD()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent getPJALJFEJGDD() { - return pJALJFEJGDD; - } - - /** - * optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent getMutablePJALJFEJGDD() { - bitField0_ |= 0x00000002; - return pJALJFEJGDD; - } - - /** - * optional .RogueSyncContextBoardEvent PJALJFEJGDD = 9; - * @param value the pJALJFEJGDD to set - * @return this - */ - public LLJFPKKLGAK setPJALJFEJGDD( - final RogueSyncContextBoardEventOuterClass.RogueSyncContextBoardEvent value) { - bitField0_ |= 0x00000002; - pJALJFEJGDD.copyFrom(value); - return this; - } - - @Override - public LLJFPKKLGAK copyFrom(final LLJFPKKLGAK other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - oLMCGHBDKIE.copyFrom(other.oLMCGHBDKIE); - pJALJFEJGDD.copyFrom(other.pJALJFEJGDD); - } - return this; - } - - @Override - public LLJFPKKLGAK mergeFrom(final LLJFPKKLGAK other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasOLMCGHBDKIE()) { - getMutableOLMCGHBDKIE().mergeFrom(other.oLMCGHBDKIE); - } - if (other.hasPJALJFEJGDD()) { - getMutablePJALJFEJGDD().mergeFrom(other.pJALJFEJGDD); - } - return this; - } - - @Override - public LLJFPKKLGAK clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - oLMCGHBDKIE.clear(); - pJALJFEJGDD.clear(); - return this; - } - - @Override - public LLJFPKKLGAK clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - oLMCGHBDKIE.clearQuick(); - pJALJFEJGDD.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof LLJFPKKLGAK)) { - return false; - } - LLJFPKKLGAK other = (LLJFPKKLGAK) o; - return bitField0_ == other.bitField0_ - && (!hasOLMCGHBDKIE() || oLMCGHBDKIE.equals(other.oLMCGHBDKIE)) - && (!hasPJALJFEJGDD() || pJALJFEJGDD.equals(other.pJALJFEJGDD)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(oLMCGHBDKIE); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(pJALJFEJGDD); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(oLMCGHBDKIE); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(pJALJFEJGDD); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public LLJFPKKLGAK mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 10: { - // oLMCGHBDKIE - input.readMessage(oLMCGHBDKIE); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // pJALJFEJGDD - input.readMessage(pJALJFEJGDD); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.oLMCGHBDKIE, oLMCGHBDKIE); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.pJALJFEJGDD, pJALJFEJGDD); - } - output.endObject(); - } - - @Override - public LLJFPKKLGAK mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1801344849: { - if (input.isAtField(FieldNames.oLMCGHBDKIE)) { - if (!input.trySkipNullValue()) { - input.readMessage(oLMCGHBDKIE); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1725659457: { - if (input.isAtField(FieldNames.pJALJFEJGDD)) { - if (!input.trySkipNullValue()) { - input.readMessage(pJALJFEJGDD); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public LLJFPKKLGAK clone() { - return new LLJFPKKLGAK().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static LLJFPKKLGAK parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new LLJFPKKLGAK(), data).checkInitialized(); - } - - public static LLJFPKKLGAK parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new LLJFPKKLGAK(), input).checkInitialized(); - } - - public static LLJFPKKLGAK parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new LLJFPKKLGAK(), input).checkInitialized(); - } - - /** - * @return factory for creating LLJFPKKLGAK messages - */ - public static MessageFactory getFactory() { - return LLJFPKKLGAKFactory.INSTANCE; - } - - private enum LLJFPKKLGAKFactory implements MessageFactory { - INSTANCE; - - @Override - public LLJFPKKLGAK create() { - return LLJFPKKLGAK.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName oLMCGHBDKIE = FieldName.forField("OLMCGHBDKIE"); - - static final FieldName pJALJFEJGDD = FieldName.forField("PJALJFEJGDD"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java deleted file mode 100644 index 43aad4d..0000000 --- a/src/generated/main/emu/lunarcore/proto/LeaveRogueScRspOuterClass.java +++ /dev/null @@ -1,563 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class LeaveRogueScRspOuterClass { - /** - * Protobuf type {@code LeaveRogueScRsp} - */ - public static final class LeaveRogueScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 1; - */ - private int retcode; - - /** - * optional .SceneInfo scene = 2; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .RogueInfo rogue_info = 9; - */ - private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); - - /** - * optional .LineupInfo lineup = 14; - */ - private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); - - private LeaveRogueScRsp() { - } - - /** - * @return a new empty instance of {@code LeaveRogueScRsp} - */ - public static LeaveRogueScRsp newInstance() { - return new LeaveRogueScRsp(); - } - - /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 1; - * @return this - */ - public LeaveRogueScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 1; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 1; - * @param value the retcode to set - * @return this - */ - public LeaveRogueScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .SceneInfo scene = 2; - * @return whether the scene field is set - */ - public boolean hasScene() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .SceneInfo scene = 2; - * @return this - */ - public LeaveRogueScRsp clearScene() { - bitField0_ &= ~0x00000002; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000002; - return scene; - } - - /** - * optional .SceneInfo scene = 2; - * @param value the scene to set - * @return this - */ - public LeaveRogueScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000002; - scene.copyFrom(value); - return this; - } - - /** - * optional .RogueInfo rogue_info = 9; - * @return whether the rogueInfo field is set - */ - public boolean hasRogueInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueInfo rogue_info = 9; - * @return this - */ - public LeaveRogueScRsp clearRogueInfo() { - bitField0_ &= ~0x00000004; - rogueInfo.clear(); - return this; - } - - /** - * optional .RogueInfo rogue_info = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueInfoOuterClass.RogueInfo getRogueInfo() { - return rogueInfo; - } - - /** - * optional .RogueInfo rogue_info = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueInfoOuterClass.RogueInfo getMutableRogueInfo() { - bitField0_ |= 0x00000004; - return rogueInfo; - } - - /** - * optional .RogueInfo rogue_info = 9; - * @param value the rogueInfo to set - * @return this - */ - public LeaveRogueScRsp setRogueInfo(final RogueInfoOuterClass.RogueInfo value) { - bitField0_ |= 0x00000004; - rogueInfo.copyFrom(value); - return this; - } - - /** - * optional .LineupInfo lineup = 14; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .LineupInfo lineup = 14; - * @return this - */ - public LeaveRogueScRsp clearLineup() { - bitField0_ &= ~0x00000008; - lineup.clear(); - return this; - } - - /** - * optional .LineupInfo lineup = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLineup()} if you want to modify it. - * - * @return internal storage object for reading - */ - public LineupInfoOuterClass.LineupInfo getLineup() { - return lineup; - } - - /** - * optional .LineupInfo lineup = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000008; - return lineup; - } - - /** - * optional .LineupInfo lineup = 14; - * @param value the lineup to set - * @return this - */ - public LeaveRogueScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000008; - lineup.copyFrom(value); - return this; - } - - @Override - public LeaveRogueScRsp copyFrom(final LeaveRogueScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - scene.copyFrom(other.scene); - rogueInfo.copyFrom(other.rogueInfo); - lineup.copyFrom(other.lineup); - } - return this; - } - - @Override - public LeaveRogueScRsp mergeFrom(final LeaveRogueScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } - if (other.hasRogueInfo()) { - getMutableRogueInfo().mergeFrom(other.rogueInfo); - } - if (other.hasLineup()) { - getMutableLineup().mergeFrom(other.lineup); - } - return this; - } - - @Override - public LeaveRogueScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - scene.clear(); - rogueInfo.clear(); - lineup.clear(); - return this; - } - - @Override - public LeaveRogueScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - scene.clearQuick(); - rogueInfo.clearQuick(); - lineup.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof LeaveRogueScRsp)) { - return false; - } - LeaveRogueScRsp other = (LeaveRogueScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasScene() || scene.equals(other.scene)) - && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)) - && (!hasLineup() || lineup.equals(other.lineup)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(scene); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rogueInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(lineup); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public LeaveRogueScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rogueInfo - input.readMessage(rogueInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // lineup - input.readMessage(lineup); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.scene, scene); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueInfo, rogueInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.lineup, lineup); - } - output.endObject(); - } - - @Override - public LeaveRogueScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { - if (!input.trySkipNullValue()) { - input.readMessage(scene); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 655808936: - case -1124583437: { - if (input.isAtField(FieldNames.rogueInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { - if (!input.trySkipNullValue()) { - input.readMessage(lineup); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public LeaveRogueScRsp clone() { - return new LeaveRogueScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static LeaveRogueScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new LeaveRogueScRsp(), data).checkInitialized(); - } - - public static LeaveRogueScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new LeaveRogueScRsp(), input).checkInitialized(); - } - - public static LeaveRogueScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new LeaveRogueScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating LeaveRogueScRsp messages - */ - public static MessageFactory getFactory() { - return LeaveRogueScRspFactory.INSTANCE; - } - - private enum LeaveRogueScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public LeaveRogueScRsp create() { - return LeaveRogueScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName scene = FieldName.forField("scene"); - - static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); - - static final FieldName lineup = FieldName.forField("lineup"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/LineupAvatarDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupAvatarDataOuterClass.java new file mode 100644 index 0000000..bfcffd9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/LineupAvatarDataOuterClass.java @@ -0,0 +1,453 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class LineupAvatarDataOuterClass { + /** + * Protobuf type {@code LineupAvatarData} + */ + public static final class LineupAvatarData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 hp = 2; + */ + private int hp; + + /** + * optional uint32 id = 6; + */ + private int id; + + /** + * optional .AvatarType avatar_type = 9; + */ + private int avatarType; + + private LineupAvatarData() { + } + + /** + * @return a new empty instance of {@code LineupAvatarData} + */ + public static LineupAvatarData newInstance() { + return new LineupAvatarData(); + } + + /** + * optional uint32 hp = 2; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 hp = 2; + * @return this + */ + public LineupAvatarData clearHp() { + bitField0_ &= ~0x00000001; + hp = 0; + return this; + } + + /** + * optional uint32 hp = 2; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional uint32 hp = 2; + * @param value the hp to set + * @return this + */ + public LineupAvatarData setHp(final int value) { + bitField0_ |= 0x00000001; + hp = value; + return this; + } + + /** + * optional uint32 id = 6; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 id = 6; + * @return this + */ + public LineupAvatarData clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 id = 6; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 6; + * @param value the id to set + * @return this + */ + public LineupAvatarData setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 9; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .AvatarType avatar_type = 9; + * @return this + */ + public LineupAvatarData clearAvatarType() { + bitField0_ &= ~0x00000004; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 9; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link LineupAvatarData#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link LineupAvatarData#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public LineupAvatarData setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000004; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 9; + * @param value the avatarType to set + * @return this + */ + public LineupAvatarData setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000004; + avatarType = value.getNumber(); + return this; + } + + @Override + public LineupAvatarData copyFrom(final LineupAvatarData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + hp = other.hp; + id = other.id; + avatarType = other.avatarType; + } + return this; + } + + @Override + public LineupAvatarData mergeFrom(final LineupAvatarData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHp()) { + setHp(other.hp); + } + if (other.hasId()) { + setId(other.id); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + return this; + } + + @Override + public LineupAvatarData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + hp = 0; + id = 0; + avatarType = 0; + return this; + } + + @Override + public LineupAvatarData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof LineupAvatarData)) { + return false; + } + LineupAvatarData other = (LineupAvatarData) o; + return bitField0_ == other.bitField0_ + && (!hasHp() || hp == other.hp) + && (!hasId() || id == other.id) + && (!hasAvatarType() || avatarType == other.avatarType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeEnumNoTag(avatarType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public LineupAvatarData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // hp + hp = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000004; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.hp, hp); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + output.endObject(); + } + + @Override + public LineupAvatarData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3336: { + if (input.isAtField(FieldNames.hp)) { + if (!input.trySkipNullValue()) { + hp = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000004; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public LineupAvatarData clone() { + return new LineupAvatarData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static LineupAvatarData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new LineupAvatarData(), data).checkInitialized(); + } + + public static LineupAvatarData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupAvatarData(), input).checkInitialized(); + } + + public static LineupAvatarData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new LineupAvatarData(), input).checkInitialized(); + } + + /** + * @return factory for creating LineupAvatarData messages + */ + public static MessageFactory getFactory() { + return LineupAvatarDataFactory.INSTANCE; + } + + private enum LineupAvatarDataFactory implements MessageFactory { + INSTANCE; + + @Override + public LineupAvatarData create() { + return LineupAvatarData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName hp = FieldName.forField("hp"); + + static final FieldName id = FieldName.forField("id"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java index 45c2124..f1cf32f 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupAvatarOuterClass.java @@ -19,32 +19,32 @@ public final class LineupAvatarOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 slot = 5; + * optional uint32 slot = 4; */ private int slot; /** - * optional uint32 hp = 6; - */ - private int hp; - - /** - * optional uint32 id = 8; + * optional uint32 id = 6; */ private int id; /** - * optional uint32 satiety = 15; + * optional uint32 hp = 9; + */ + private int hp; + + /** + * optional uint32 satiety = 11; */ private int satiety; /** - * optional .AvatarType avatar_type = 1; + * optional .AvatarType avatar_type = 12; */ private int avatarType; /** - * optional .SpBarInfo sp_bar = 14; + * optional .SpBarInfo sp_bar = 15; */ private final SpBarInfoOuterClass.SpBarInfo spBar = SpBarInfoOuterClass.SpBarInfo.newInstance(); @@ -59,7 +59,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 4; * @return whether the slot field is set */ public boolean hasSlot() { @@ -67,7 +67,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 4; * @return this */ public LineupAvatar clearSlot() { @@ -77,7 +77,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 4; * @return the slot */ public int getSlot() { @@ -85,7 +85,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 slot = 5; + * optional uint32 slot = 4; * @param value the slot to set * @return this */ @@ -96,62 +96,25 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 hp = 6; - * @return whether the hp field is set + * optional uint32 id = 6; + * @return whether the id field is set */ - public boolean hasHp() { + public boolean hasId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 hp = 6; - * @return this - */ - public LineupAvatar clearHp() { - bitField0_ &= ~0x00000002; - hp = 0; - return this; - } - - /** - * optional uint32 hp = 6; - * @return the hp - */ - public int getHp() { - return hp; - } - - /** - * optional uint32 hp = 6; - * @param value the hp to set - * @return this - */ - public LineupAvatar setHp(final int value) { - bitField0_ |= 0x00000002; - hp = value; - return this; - } - - /** - * optional uint32 id = 8; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 id = 8; + * optional uint32 id = 6; * @return this */ public LineupAvatar clearId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; id = 0; return this; } /** - * optional uint32 id = 8; + * optional uint32 id = 6; * @return the id */ public int getId() { @@ -159,18 +122,55 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 id = 8; + * optional uint32 id = 6; * @param value the id to set * @return this */ public LineupAvatar setId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; id = value; return this; } /** - * optional uint32 satiety = 15; + * optional uint32 hp = 9; + * @return whether the hp field is set + */ + public boolean hasHp() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 hp = 9; + * @return this + */ + public LineupAvatar clearHp() { + bitField0_ &= ~0x00000004; + hp = 0; + return this; + } + + /** + * optional uint32 hp = 9; + * @return the hp + */ + public int getHp() { + return hp; + } + + /** + * optional uint32 hp = 9; + * @param value the hp to set + * @return this + */ + public LineupAvatar setHp(final int value) { + bitField0_ |= 0x00000004; + hp = value; + return this; + } + + /** + * optional uint32 satiety = 11; * @return whether the satiety field is set */ public boolean hasSatiety() { @@ -178,7 +178,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 satiety = 15; + * optional uint32 satiety = 11; * @return this */ public LineupAvatar clearSatiety() { @@ -188,7 +188,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 satiety = 15; + * optional uint32 satiety = 11; * @return the satiety */ public int getSatiety() { @@ -196,7 +196,7 @@ public final class LineupAvatarOuterClass { } /** - * optional uint32 satiety = 15; + * optional uint32 satiety = 11; * @param value the satiety to set * @return this */ @@ -207,7 +207,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 1; + * optional .AvatarType avatar_type = 12; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -215,7 +215,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 1; + * optional .AvatarType avatar_type = 12; * @return this */ public LineupAvatar clearAvatarType() { @@ -225,7 +225,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 1; + * optional .AvatarType avatar_type = 12; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -258,7 +258,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .AvatarType avatar_type = 1; + * optional .AvatarType avatar_type = 12; * @param value the avatarType to set * @return this */ @@ -269,7 +269,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 14; + * optional .SpBarInfo sp_bar = 15; * @return whether the spBar field is set */ public boolean hasSpBar() { @@ -277,7 +277,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 14; + * optional .SpBarInfo sp_bar = 15; * @return this */ public LineupAvatar clearSpBar() { @@ -287,7 +287,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 14; + * optional .SpBarInfo sp_bar = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -301,7 +301,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 14; + * optional .SpBarInfo sp_bar = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -315,7 +315,7 @@ public final class LineupAvatarOuterClass { } /** - * optional .SpBarInfo sp_bar = 14; + * optional .SpBarInfo sp_bar = 15; * @param value the spBar to set * @return this */ @@ -331,8 +331,8 @@ public final class LineupAvatarOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; slot = other.slot; - hp = other.hp; id = other.id; + hp = other.hp; satiety = other.satiety; avatarType = other.avatarType; spBar.copyFrom(other.spBar); @@ -349,12 +349,12 @@ public final class LineupAvatarOuterClass { if (other.hasSlot()) { setSlot(other.slot); } - if (other.hasHp()) { - setHp(other.hp); - } if (other.hasId()) { setId(other.id); } + if (other.hasHp()) { + setHp(other.hp); + } if (other.hasSatiety()) { setSatiety(other.satiety); } @@ -375,8 +375,8 @@ public final class LineupAvatarOuterClass { cachedSize = -1; bitField0_ = 0; slot = 0; - hp = 0; id = 0; + hp = 0; satiety = 0; avatarType = 0; spBar.clear(); @@ -405,8 +405,8 @@ public final class LineupAvatarOuterClass { LineupAvatar other = (LineupAvatar) o; return bitField0_ == other.bitField0_ && (!hasSlot() || slot == other.slot) - && (!hasHp() || hp == other.hp) && (!hasId() || id == other.id) + && (!hasHp() || hp == other.hp) && (!hasSatiety() || satiety == other.satiety) && (!hasAvatarType() || avatarType == other.avatarType) && (!hasSpBar() || spBar.equals(other.spBar)); @@ -415,27 +415,27 @@ public final class LineupAvatarOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 48); - output.writeUInt32NoTag(hp); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 64); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(hp); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(satiety); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 96); output.writeEnumNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 122); output.writeMessageNoTag(spBar); } } @@ -447,10 +447,10 @@ public final class LineupAvatarOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(hp); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(satiety); @@ -471,7 +471,7 @@ public final class LineupAvatarOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 32: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000001; @@ -481,33 +481,33 @@ public final class LineupAvatarOuterClass { } } case 48: { - // hp - hp = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { // id id = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 72) { break; } } - case 120: { + case 72: { + // hp + hp = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { // satiety satiety = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 8) { + if (tag != 96) { break; } } - case 8: { + case 96: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -515,11 +515,11 @@ public final class LineupAvatarOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 114) { + if (tag != 122) { break; } } - case 114: { + case 122: { // spBar input.readMessage(spBar); bitField0_ |= 0x00000020; @@ -549,10 +549,10 @@ public final class LineupAvatarOuterClass { output.writeUInt32(FieldNames.slot, slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.hp, hp); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.hp, hp); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.satiety, satiety); @@ -584,10 +584,10 @@ public final class LineupAvatarOuterClass { } break; } - case 3336: { - if (input.isAtField(FieldNames.hp)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - hp = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -595,10 +595,10 @@ public final class LineupAvatarOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 3336: { + if (input.isAtField(FieldNames.hp)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + hp = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -700,10 +700,10 @@ public final class LineupAvatarOuterClass { static class FieldNames { static final FieldName slot = FieldName.forField("slot"); - static final FieldName hp = FieldName.forField("hp"); - static final FieldName id = FieldName.forField("id"); + static final FieldName hp = FieldName.forField("hp"); + static final FieldName satiety = FieldName.forField("satiety"); static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); diff --git a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java index d76e563..8c94b1d 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupInfoOuterClass.java @@ -21,9 +21,9 @@ public final class LineupInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 3; + * optional uint32 max_mp = 4; */ - private int index; + private int maxMp; /** * optional uint32 mp = 6; @@ -31,32 +31,32 @@ public final class LineupInfoOuterClass { private int mp; /** - * optional uint32 max_mp = 8; + * optional uint32 index = 8; */ - private int maxMp; + private int index; /** - * optional uint32 plane_id = 10; - */ - private int planeId; - - /** - * optional uint32 leader_slot = 13; + * optional uint32 leader_slot = 14; */ private int leaderSlot; /** - * optional .ExtraLineupType extra_lineup_type = 7; + * optional uint32 plane_id = 15; + */ + private int planeId; + + /** + * optional .ExtraLineupType extra_lineup_type = 9; */ private int extraLineupType; /** - * optional bool is_virtual = 15; + * optional bool is_virtual = 7; */ private boolean isVirtual; /** - * optional string name = 14; + * optional string name = 11; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -76,39 +76,39 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 index = 3; - * @return whether the index field is set + * optional uint32 max_mp = 4; + * @return whether the maxMp field is set */ - public boolean hasIndex() { + public boolean hasMaxMp() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 index = 3; + * optional uint32 max_mp = 4; * @return this */ - public LineupInfo clearIndex() { + public LineupInfo clearMaxMp() { bitField0_ &= ~0x00000001; - index = 0; + maxMp = 0; return this; } /** - * optional uint32 index = 3; - * @return the index + * optional uint32 max_mp = 4; + * @return the maxMp */ - public int getIndex() { - return index; + public int getMaxMp() { + return maxMp; } /** - * optional uint32 index = 3; - * @param value the index to set + * optional uint32 max_mp = 4; + * @param value the maxMp to set * @return this */ - public LineupInfo setIndex(final int value) { + public LineupInfo setMaxMp(final int value) { bitField0_ |= 0x00000001; - index = value; + maxMp = value; return this; } @@ -150,99 +150,62 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 max_mp = 8; - * @return whether the maxMp field is set + * optional uint32 index = 8; + * @return whether the index field is set */ - public boolean hasMaxMp() { + public boolean hasIndex() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 max_mp = 8; + * optional uint32 index = 8; * @return this */ - public LineupInfo clearMaxMp() { + public LineupInfo clearIndex() { bitField0_ &= ~0x00000004; - maxMp = 0; + index = 0; return this; } /** - * optional uint32 max_mp = 8; - * @return the maxMp + * optional uint32 index = 8; + * @return the index */ - public int getMaxMp() { - return maxMp; + public int getIndex() { + return index; } /** - * optional uint32 max_mp = 8; - * @param value the maxMp to set + * optional uint32 index = 8; + * @param value the index to set * @return this */ - public LineupInfo setMaxMp(final int value) { + public LineupInfo setIndex(final int value) { bitField0_ |= 0x00000004; - maxMp = value; + index = value; return this; } /** - * optional uint32 plane_id = 10; - * @return whether the planeId field is set + * optional uint32 leader_slot = 14; + * @return whether the leaderSlot field is set */ - public boolean hasPlaneId() { + public boolean hasLeaderSlot() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 plane_id = 10; - * @return this - */ - public LineupInfo clearPlaneId() { - bitField0_ &= ~0x00000008; - planeId = 0; - return this; - } - - /** - * optional uint32 plane_id = 10; - * @return the planeId - */ - public int getPlaneId() { - return planeId; - } - - /** - * optional uint32 plane_id = 10; - * @param value the planeId to set - * @return this - */ - public LineupInfo setPlaneId(final int value) { - bitField0_ |= 0x00000008; - planeId = value; - return this; - } - - /** - * optional uint32 leader_slot = 13; - * @return whether the leaderSlot field is set - */ - public boolean hasLeaderSlot() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 leader_slot = 13; + * optional uint32 leader_slot = 14; * @return this */ public LineupInfo clearLeaderSlot() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; leaderSlot = 0; return this; } /** - * optional uint32 leader_slot = 13; + * optional uint32 leader_slot = 14; * @return the leaderSlot */ public int getLeaderSlot() { @@ -250,18 +213,55 @@ public final class LineupInfoOuterClass { } /** - * optional uint32 leader_slot = 13; + * optional uint32 leader_slot = 14; * @param value the leaderSlot to set * @return this */ public LineupInfo setLeaderSlot(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; leaderSlot = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 7; + * optional uint32 plane_id = 15; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 plane_id = 15; + * @return this + */ + public LineupInfo clearPlaneId() { + bitField0_ &= ~0x00000010; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 15; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 15; + * @param value the planeId to set + * @return this + */ + public LineupInfo setPlaneId(final int value) { + bitField0_ |= 0x00000010; + planeId = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 9; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -269,7 +269,7 @@ public final class LineupInfoOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 7; + * optional .ExtraLineupType extra_lineup_type = 9; * @return this */ public LineupInfo clearExtraLineupType() { @@ -279,7 +279,7 @@ public final class LineupInfoOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 7; + * optional .ExtraLineupType extra_lineup_type = 9; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -312,7 +312,7 @@ public final class LineupInfoOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 7; + * optional .ExtraLineupType extra_lineup_type = 9; * @param value the extraLineupType to set * @return this */ @@ -323,7 +323,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 15; + * optional bool is_virtual = 7; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -331,7 +331,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 15; + * optional bool is_virtual = 7; * @return this */ public LineupInfo clearIsVirtual() { @@ -341,7 +341,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 15; + * optional bool is_virtual = 7; * @return the isVirtual */ public boolean getIsVirtual() { @@ -349,7 +349,7 @@ public final class LineupInfoOuterClass { } /** - * optional bool is_virtual = 15; + * optional bool is_virtual = 7; * @param value the isVirtual to set * @return this */ @@ -360,7 +360,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @return whether the name field is set */ public boolean hasName() { @@ -368,7 +368,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @return this */ public LineupInfo clearName() { @@ -378,7 +378,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @return the name */ public String getName() { @@ -386,7 +386,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -394,7 +394,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -403,7 +403,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @param value the name to set * @return this */ @@ -414,7 +414,7 @@ public final class LineupInfoOuterClass { } /** - * optional string name = 14; + * optional string name = 11; * @param value the name to set * @return this */ @@ -497,11 +497,11 @@ public final class LineupInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - index = other.index; - mp = other.mp; maxMp = other.maxMp; - planeId = other.planeId; + mp = other.mp; + index = other.index; leaderSlot = other.leaderSlot; + planeId = other.planeId; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; name.copyFrom(other.name); @@ -516,21 +516,21 @@ public final class LineupInfoOuterClass { return this; } cachedSize = -1; - if (other.hasIndex()) { - setIndex(other.index); + if (other.hasMaxMp()) { + setMaxMp(other.maxMp); } if (other.hasMp()) { setMp(other.mp); } - if (other.hasMaxMp()) { - setMaxMp(other.maxMp); - } - if (other.hasPlaneId()) { - setPlaneId(other.planeId); + if (other.hasIndex()) { + setIndex(other.index); } if (other.hasLeaderSlot()) { setLeaderSlot(other.leaderSlot); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } @@ -553,11 +553,11 @@ public final class LineupInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - index = 0; - mp = 0; maxMp = 0; - planeId = 0; + mp = 0; + index = 0; leaderSlot = 0; + planeId = 0; extraLineupType = 0; isVirtual = false; name.clear(); @@ -587,11 +587,11 @@ public final class LineupInfoOuterClass { } LineupInfo other = (LineupInfo) o; return bitField0_ == other.bitField0_ - && (!hasIndex() || index == other.index) - && (!hasMp() || mp == other.mp) && (!hasMaxMp() || maxMp == other.maxMp) - && (!hasPlaneId() || planeId == other.planeId) + && (!hasMp() || mp == other.mp) + && (!hasIndex() || index == other.index) && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) + && (!hasPlaneId() || planeId == other.planeId) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual) && (!hasName() || name.equals(other.name)) @@ -601,8 +601,8 @@ public final class LineupInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(maxMp); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 48); @@ -610,26 +610,26 @@ public final class LineupInfoOuterClass { } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 64); - output.writeUInt32NoTag(maxMp); + output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(planeId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(leaderSlot); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(planeId); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 56); output.writeBoolNoTag(isVirtual); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 90); output.writeStringNoTag(name); } if ((bitField0_ & 0x00000100) != 0) { @@ -644,19 +644,19 @@ public final class LineupInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(mp); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxMp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -680,9 +680,9 @@ public final class LineupInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // index - index = input.readUInt32(); + case 32: { + // maxMp + maxMp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 48) { @@ -699,33 +699,33 @@ public final class LineupInfoOuterClass { } } case 64: { - // maxMp - maxMp = input.readUInt32(); + // index + index = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 80) { + if (tag != 112) { break; } } - case 80: { - // planeId - planeId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 112: { // leaderSlot leaderSlot = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 56) { + if (tag != 120) { break; } } - case 56: { + case 120: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -733,20 +733,20 @@ public final class LineupInfoOuterClass { bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 120) { + if (tag != 56) { break; } } - case 120: { + case 56: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 114) { + if (tag != 90) { break; } } - case 114: { + case 90: { // name input.readString(name); bitField0_ |= 0x00000080; @@ -781,19 +781,19 @@ public final class LineupInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.maxMp, maxMp); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.mp, mp); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.maxMp, maxMp); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.leaderSlot, leaderSlot); + output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -817,10 +817,11 @@ public final class LineupInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 103671335: + case -1081138594: { + if (input.isAtField(FieldNames.maxMp)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + maxMp = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -839,11 +840,10 @@ public final class LineupInfoOuterClass { } break; } - case 103671335: - case -1081138594: { - if (input.isAtField(FieldNames.maxMp)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - maxMp = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -851,23 +851,23 @@ public final class LineupInfoOuterClass { } break; } - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { - if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 1191442087: case -1708713100: { if (input.isAtField(FieldNames.leaderSlot)) { if (!input.trySkipNullValue()) { leaderSlot = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -979,16 +979,16 @@ public final class LineupInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName index = FieldName.forField("index"); + static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); static final FieldName mp = FieldName.forField("mp"); - static final FieldName maxMp = FieldName.forField("maxMp", "max_mp"); - - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName index = FieldName.forField("index"); static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); diff --git a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java index ab7236f..c0f7b32 100644 --- a/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LineupSlotDataOuterClass.java @@ -19,17 +19,17 @@ public final class LineupSlotDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 10; - */ - private int id; - - /** - * optional uint32 slot = 13; + * optional uint32 slot = 3; */ private int slot; /** - * optional .AvatarType avatar_type = 11; + * optional uint32 id = 7; + */ + private int id; + + /** + * optional .AvatarType avatar_type = 4; */ private int avatarType; @@ -44,62 +44,25 @@ public final class LineupSlotDataOuterClass { } /** - * optional uint32 id = 10; - * @return whether the id field is set + * optional uint32 slot = 3; + * @return whether the slot field is set */ - public boolean hasId() { + public boolean hasSlot() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 id = 10; - * @return this - */ - public LineupSlotData clearId() { - bitField0_ &= ~0x00000001; - id = 0; - return this; - } - - /** - * optional uint32 id = 10; - * @return the id - */ - public int getId() { - return id; - } - - /** - * optional uint32 id = 10; - * @param value the id to set - * @return this - */ - public LineupSlotData setId(final int value) { - bitField0_ |= 0x00000001; - id = value; - return this; - } - - /** - * optional uint32 slot = 13; - * @return whether the slot field is set - */ - public boolean hasSlot() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 slot = 13; + * optional uint32 slot = 3; * @return this */ public LineupSlotData clearSlot() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; slot = 0; return this; } /** - * optional uint32 slot = 13; + * optional uint32 slot = 3; * @return the slot */ public int getSlot() { @@ -107,18 +70,55 @@ public final class LineupSlotDataOuterClass { } /** - * optional uint32 slot = 13; + * optional uint32 slot = 3; * @param value the slot to set * @return this */ public LineupSlotData setSlot(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; slot = value; return this; } /** - * optional .AvatarType avatar_type = 11; + * optional uint32 id = 7; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 id = 7; + * @return this + */ + public LineupSlotData clearId() { + bitField0_ &= ~0x00000002; + id = 0; + return this; + } + + /** + * optional uint32 id = 7; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 7; + * @param value the id to set + * @return this + */ + public LineupSlotData setId(final int value) { + bitField0_ |= 0x00000002; + id = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 4; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -126,7 +126,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 4; * @return this */ public LineupSlotData clearAvatarType() { @@ -136,7 +136,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 4; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -169,7 +169,7 @@ public final class LineupSlotDataOuterClass { } /** - * optional .AvatarType avatar_type = 11; + * optional .AvatarType avatar_type = 4; * @param value the avatarType to set * @return this */ @@ -184,8 +184,8 @@ public final class LineupSlotDataOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - id = other.id; slot = other.slot; + id = other.id; avatarType = other.avatarType; } return this; @@ -197,12 +197,12 @@ public final class LineupSlotDataOuterClass { return this; } cachedSize = -1; - if (other.hasId()) { - setId(other.id); - } if (other.hasSlot()) { setSlot(other.slot); } + if (other.hasId()) { + setId(other.id); + } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -216,8 +216,8 @@ public final class LineupSlotDataOuterClass { } cachedSize = -1; bitField0_ = 0; - id = 0; slot = 0; + id = 0; avatarType = 0; return this; } @@ -242,23 +242,23 @@ public final class LineupSlotDataOuterClass { } LineupSlotData other = (LineupSlotData) o; return bitField0_ == other.bitField0_ - && (!hasId() || id == other.id) && (!hasSlot() || slot == other.slot) + && (!hasId() || id == other.id) && (!hasAvatarType() || avatarType == other.avatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(id); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(slot); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(id); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeEnumNoTag(avatarType); } } @@ -267,10 +267,10 @@ public final class LineupSlotDataOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(slot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -285,25 +285,25 @@ public final class LineupSlotDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // id - id = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 24: { // slot slot = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 56) { break; } } - case 88: { + case 56: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -333,10 +333,10 @@ public final class LineupSlotDataOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.slot, slot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.slot, slot); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -351,10 +351,10 @@ public final class LineupSlotDataOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 3533310: { + if (input.isAtField(FieldNames.slot)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + slot = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -362,10 +362,10 @@ public final class LineupSlotDataOuterClass { } break; } - case 3533310: { - if (input.isAtField(FieldNames.slot)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - slot = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -443,10 +443,10 @@ public final class LineupSlotDataOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName id = FieldName.forField("id"); - static final FieldName slot = FieldName.forField("slot"); + static final FieldName id = FieldName.forField("id"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); } } diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java index 5598728..6f80a1c 100644 --- a/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class LockEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_protected = 15; + * optional bool is_protected = 4; */ private boolean isProtected; /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; */ private final RepeatedInt equipmentIdList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 15; + * optional bool is_protected = 4; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -48,7 +48,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 15; + * optional bool is_protected = 4; * @return this */ public LockEquipmentCsReq clearIsProtected() { @@ -58,7 +58,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 15; + * optional bool is_protected = 4; * @return the isProtected */ public boolean getIsProtected() { @@ -66,7 +66,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * optional bool is_protected = 15; + * optional bool is_protected = 4; * @param value the isProtected to set * @return this */ @@ -77,7 +77,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; * @return whether the equipmentIdList field is set */ public boolean hasEquipmentIdList() { @@ -85,7 +85,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; * @return this */ public LockEquipmentCsReq clearEquipmentIdList() { @@ -95,7 +95,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; * @param value the equipmentIdList to add * @return this */ @@ -134,7 +134,7 @@ public final class LockEquipmentCsReqOuterClass { } /** - * repeated uint32 equipment_id_list = 10; + * repeated uint32 equipment_id_list = 13; * @param values the equipmentIdList to add * @return this */ @@ -210,12 +210,12 @@ public final class LockEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeBoolNoTag(isProtected); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < equipmentIdList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(equipmentIdList.array()[i]); } } @@ -240,16 +240,16 @@ public final class LockEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 32: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 106) { break; } } - case 82: { + case 106: { // equipmentIdList [packed=true] input.readPackedUInt32(equipmentIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class LockEquipmentCsReqOuterClass { tag = input.readTag(); break; } - case 80: { + case 104: { // equipmentIdList [packed=false] tag = input.readRepeatedUInt32(equipmentIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java index 76cbebc..471ab8e 100644 --- a/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockEquipmentScRspOuterClass.java @@ -19,7 +19,7 @@ public final class LockEquipmentScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 1; */ private int retcode; @@ -34,7 +34,7 @@ public final class LockEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -42,7 +42,7 @@ public final class LockEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 1; * @return this */ public LockEquipmentScRsp clearRetcode() { @@ -52,7 +52,7 @@ public final class LockEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -60,7 +60,7 @@ public final class LockEquipmentScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -129,7 +129,7 @@ public final class LockEquipmentScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } } @@ -150,7 +150,7 @@ public final class LockEquipmentScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java index 6192a20..f40e156 100644 --- a/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockRelicCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class LockRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool is_protected = 5; + * optional bool is_protected = 9; */ private boolean isProtected; /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; */ private final RepeatedInt relicIdList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 5; + * optional bool is_protected = 9; * @return whether the isProtected field is set */ public boolean hasIsProtected() { @@ -48,7 +48,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 5; + * optional bool is_protected = 9; * @return this */ public LockRelicCsReq clearIsProtected() { @@ -58,7 +58,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 5; + * optional bool is_protected = 9; * @return the isProtected */ public boolean getIsProtected() { @@ -66,7 +66,7 @@ public final class LockRelicCsReqOuterClass { } /** - * optional bool is_protected = 5; + * optional bool is_protected = 9; * @param value the isProtected to set * @return this */ @@ -77,7 +77,7 @@ public final class LockRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; * @return whether the relicIdList field is set */ public boolean hasRelicIdList() { @@ -85,7 +85,7 @@ public final class LockRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; * @return this */ public LockRelicCsReq clearRelicIdList() { @@ -95,7 +95,7 @@ public final class LockRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class LockRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class LockRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; * @param value the relicIdList to add * @return this */ @@ -134,7 +134,7 @@ public final class LockRelicCsReqOuterClass { } /** - * repeated uint32 relic_id_list = 4; + * repeated uint32 relic_id_list = 1; * @param values the relicIdList to add * @return this */ @@ -210,12 +210,12 @@ public final class LockRelicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 72); output.writeBoolNoTag(isProtected); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < relicIdList.length(); i++) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(relicIdList.array()[i]); } } @@ -240,16 +240,16 @@ public final class LockRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 72: { // isProtected isProtected = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 10) { break; } } - case 34: { + case 10: { // relicIdList [packed=true] input.readPackedUInt32(relicIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class LockRelicCsReqOuterClass { tag = input.readTag(); break; } - case 32: { + case 8: { // relicIdList [packed=false] tag = input.readRepeatedUInt32(relicIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java index 095cb28..c87f7ef 100644 --- a/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/LockRelicScRspOuterClass.java @@ -19,15 +19,10 @@ public final class LockRelicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 7; */ private int retcode; - /** - * optional uint32 relic_unique_id = 15; - */ - private int relicUniqueId; - private LockRelicScRsp() { } @@ -39,7 +34,7 @@ public final class LockRelicScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +42,7 @@ public final class LockRelicScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 7; * @return this */ public LockRelicScRsp clearRetcode() { @@ -57,7 +52,7 @@ public final class LockRelicScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -65,7 +60,7 @@ public final class LockRelicScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -75,50 +70,12 @@ public final class LockRelicScRspOuterClass { return this; } - /** - * optional uint32 relic_unique_id = 15; - * @return whether the relicUniqueId field is set - */ - public boolean hasRelicUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 relic_unique_id = 15; - * @return this - */ - public LockRelicScRsp clearRelicUniqueId() { - bitField0_ &= ~0x00000002; - relicUniqueId = 0; - return this; - } - - /** - * optional uint32 relic_unique_id = 15; - * @return the relicUniqueId - */ - public int getRelicUniqueId() { - return relicUniqueId; - } - - /** - * optional uint32 relic_unique_id = 15; - * @param value the relicUniqueId to set - * @return this - */ - public LockRelicScRsp setRelicUniqueId(final int value) { - bitField0_ |= 0x00000002; - relicUniqueId = value; - return this; - } - @Override public LockRelicScRsp copyFrom(final LockRelicScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - relicUniqueId = other.relicUniqueId; } return this; } @@ -132,9 +89,6 @@ public final class LockRelicScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasRelicUniqueId()) { - setRelicUniqueId(other.relicUniqueId); - } return this; } @@ -146,7 +100,6 @@ public final class LockRelicScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - relicUniqueId = 0; return this; } @@ -170,20 +123,15 @@ public final class LockRelicScRspOuterClass { } LockRelicScRsp other = (LockRelicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(relicUniqueId); - } } @Override @@ -192,9 +140,6 @@ public final class LockRelicScRspOuterClass { if ((bitField0_ & 0x00000001) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); - } return size; } @@ -205,20 +150,11 @@ public final class LockRelicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // relicUniqueId - relicUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 0) { break; } @@ -243,9 +179,6 @@ public final class LockRelicScRspOuterClass { if ((bitField0_ & 0x00000001) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); - } output.endObject(); } @@ -267,18 +200,6 @@ public final class LockRelicScRspOuterClass { } break; } - case -1966200481: - case 49648253: { - if (input.isAtField(FieldNames.relicUniqueId)) { - if (!input.trySkipNullValue()) { - relicUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -333,8 +254,6 @@ public final class LockRelicScRspOuterClass { */ static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java b/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java deleted file mode 100644 index 424019b..0000000 --- a/src/generated/main/emu/lunarcore/proto/MECNPEEJJDEOuterClass.java +++ /dev/null @@ -1,278 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class MECNPEEJJDEOuterClass { - /** - * Protobuf type {@code MECNPEEJJDE} - */ - public static final class MECNPEEJJDE extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
-     * 
- * - * optional uint32 GLFDHAJPJDF = 3; - */ - private int gLFDHAJPJDF; - - private MECNPEEJJDE() { - } - - /** - * @return a new empty instance of {@code MECNPEEJJDE} - */ - public static MECNPEEJJDE newInstance() { - return new MECNPEEJJDE(); - } - - /** - *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
-     * 
- * - * optional uint32 GLFDHAJPJDF = 3; - * @return whether the gLFDHAJPJDF field is set - */ - public boolean hasGLFDHAJPJDF() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
-     * 
- * - * optional uint32 GLFDHAJPJDF = 3; - * @return this - */ - public MECNPEEJJDE clearGLFDHAJPJDF() { - bitField0_ &= ~0x00000001; - gLFDHAJPJDF = 0; - return this; - } - - /** - *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
-     * 
- * - * optional uint32 GLFDHAJPJDF = 3; - * @return the gLFDHAJPJDF - */ - public int getGLFDHAJPJDF() { - return gLFDHAJPJDF; - } - - /** - *
-     * LJABGHIILFI DHJPHJOBLLB = 7;
-     * 
- * - * optional uint32 GLFDHAJPJDF = 3; - * @param value the gLFDHAJPJDF to set - * @return this - */ - public MECNPEEJJDE setGLFDHAJPJDF(final int value) { - bitField0_ |= 0x00000001; - gLFDHAJPJDF = value; - return this; - } - - @Override - public MECNPEEJJDE copyFrom(final MECNPEEJJDE other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - gLFDHAJPJDF = other.gLFDHAJPJDF; - } - return this; - } - - @Override - public MECNPEEJJDE mergeFrom(final MECNPEEJJDE other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasGLFDHAJPJDF()) { - setGLFDHAJPJDF(other.gLFDHAJPJDF); - } - return this; - } - - @Override - public MECNPEEJJDE clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - gLFDHAJPJDF = 0; - return this; - } - - @Override - public MECNPEEJJDE clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof MECNPEEJJDE)) { - return false; - } - MECNPEEJJDE other = (MECNPEEJJDE) o; - return bitField0_ == other.bitField0_ - && (!hasGLFDHAJPJDF() || gLFDHAJPJDF == other.gLFDHAJPJDF); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(gLFDHAJPJDF); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gLFDHAJPJDF); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public MECNPEEJJDE mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // gLFDHAJPJDF - gLFDHAJPJDF = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.gLFDHAJPJDF, gLFDHAJPJDF); - } - output.endObject(); - } - - @Override - public MECNPEEJJDE mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1202020394: { - if (input.isAtField(FieldNames.gLFDHAJPJDF)) { - if (!input.trySkipNullValue()) { - gLFDHAJPJDF = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public MECNPEEJJDE clone() { - return new MECNPEEJJDE().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static MECNPEEJJDE parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MECNPEEJJDE(), data).checkInitialized(); - } - - public static MECNPEEJJDE parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MECNPEEJJDE(), input).checkInitialized(); - } - - public static MECNPEEJJDE parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MECNPEEJJDE(), input).checkInitialized(); - } - - /** - * @return factory for creating MECNPEEJJDE messages - */ - public static MessageFactory getFactory() { - return MECNPEEJJDEFactory.INSTANCE; - } - - private enum MECNPEEJJDEFactory implements MessageFactory { - INSTANCE; - - @Override - public MECNPEEJJDE create() { - return MECNPEEJJDE.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName gLFDHAJPJDF = FieldName.forField("GLFDHAJPJDF"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/FinishTalkMissionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/MainMissionCustomValueOuterClass.java similarity index 52% rename from src/generated/main/emu/lunarcore/proto/FinishTalkMissionScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/MainMissionCustomValueOuterClass.java index bc2bf57..a221521 100644 --- a/src/generated/main/emu/lunarcore/proto/FinishTalkMissionScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MainMissionCustomValueOuterClass.java @@ -11,204 +11,158 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedMessage; -import us.hebi.quickbuf.Utf8String; -public final class FinishTalkMissionScRspOuterClass { +public final class MainMissionCustomValueOuterClass { /** - * Protobuf type {@code FinishTalkMissionScRsp} + * Protobuf type {@code MainMissionCustomValue} */ - public static final class FinishTalkMissionScRsp extends ProtoMessage implements Cloneable { + public static final class MainMissionCustomValue extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 main_mission_id = 3; */ - private int retcode; + private int mainMissionId; /** - * optional uint32 sub_mission_id = 10; + * optional .MissionStatus status = 10; */ - private int subMissionId; + private int status; /** - * optional string talk_str = 11; - */ - private final Utf8String talkStr = Utf8String.newEmptyInstance(); - - /** - * repeated .MissionCustomValueData custom_value_list = 4; + * repeated .MissionCustomValueData custom_value_list = 2; */ private final RepeatedMessage customValueList = RepeatedMessage.newEmptyInstance(MissionCustomValueDataOuterClass.MissionCustomValueData.getFactory()); - private FinishTalkMissionScRsp() { + private MainMissionCustomValue() { } /** - * @return a new empty instance of {@code FinishTalkMissionScRsp} + * @return a new empty instance of {@code MainMissionCustomValue} */ - public static FinishTalkMissionScRsp newInstance() { - return new FinishTalkMissionScRsp(); + public static MainMissionCustomValue newInstance() { + return new MainMissionCustomValue(); } /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set + * optional uint32 main_mission_id = 3; + * @return whether the mainMissionId field is set */ - public boolean hasRetcode() { + public boolean hasMainMissionId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 8; + * optional uint32 main_mission_id = 3; * @return this */ - public FinishTalkMissionScRsp clearRetcode() { + public MainMissionCustomValue clearMainMissionId() { bitField0_ &= ~0x00000001; - retcode = 0; + mainMissionId = 0; return this; } /** - * optional uint32 retcode = 8; - * @return the retcode + * optional uint32 main_mission_id = 3; + * @return the mainMissionId */ - public int getRetcode() { - return retcode; + public int getMainMissionId() { + return mainMissionId; } /** - * optional uint32 retcode = 8; - * @param value the retcode to set + * optional uint32 main_mission_id = 3; + * @param value the mainMissionId to set * @return this */ - public FinishTalkMissionScRsp setRetcode(final int value) { + public MainMissionCustomValue setMainMissionId(final int value) { bitField0_ |= 0x00000001; - retcode = value; + mainMissionId = value; return this; } /** - * optional uint32 sub_mission_id = 10; - * @return whether the subMissionId field is set + * optional .MissionStatus status = 10; + * @return whether the status field is set */ - public boolean hasSubMissionId() { + public boolean hasStatus() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 sub_mission_id = 10; + * optional .MissionStatus status = 10; * @return this */ - public FinishTalkMissionScRsp clearSubMissionId() { + public MainMissionCustomValue clearStatus() { bitField0_ &= ~0x00000002; - subMissionId = 0; + status = 0; return this; } /** - * optional uint32 sub_mission_id = 10; - * @return the subMissionId + * optional .MissionStatus status = 10; + * @return the status */ - public int getSubMissionId() { - return subMissionId; + public MissionStatusOuterClass.MissionStatus getStatus() { + return MissionStatusOuterClass.MissionStatus.forNumber(status); } /** - * optional uint32 sub_mission_id = 10; - * @param value the subMissionId to set + * Gets the value of the internal enum store. The result is + * equivalent to {@link MainMissionCustomValue#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MissionStatusOuterClass.MissionStatus}. Setting an invalid value + * can cause {@link MainMissionCustomValue#getStatus()} to return null + * + * @param value the numeric wire value to set * @return this */ - public FinishTalkMissionScRsp setSubMissionId(final int value) { + public MainMissionCustomValue setStatusValue(final int value) { bitField0_ |= 0x00000002; - subMissionId = value; + status = value; return this; } /** - * optional string talk_str = 11; - * @return whether the talkStr field is set + * optional .MissionStatus status = 10; + * @param value the status to set + * @return this */ - public boolean hasTalkStr() { + public MainMissionCustomValue setStatus(final MissionStatusOuterClass.MissionStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + /** + * repeated .MissionCustomValueData custom_value_list = 2; + * @return whether the customValueList field is set + */ + public boolean hasCustomValueList() { return (bitField0_ & 0x00000004) != 0; } /** - * optional string talk_str = 11; + * repeated .MissionCustomValueData custom_value_list = 2; * @return this */ - public FinishTalkMissionScRsp clearTalkStr() { + public MainMissionCustomValue clearCustomValueList() { bitField0_ &= ~0x00000004; - talkStr.clear(); - return this; - } - - /** - * optional string talk_str = 11; - * @return the talkStr - */ - public String getTalkStr() { - return talkStr.getString(); - } - - /** - * optional string talk_str = 11; - * @return internal {@code Utf8String} representation of talkStr for reading - */ - public Utf8String getTalkStrBytes() { - return this.talkStr; - } - - /** - * optional string talk_str = 11; - * @return internal {@code Utf8String} representation of talkStr for modifications - */ - public Utf8String getMutableTalkStrBytes() { - bitField0_ |= 0x00000004; - return this.talkStr; - } - - /** - * optional string talk_str = 11; - * @param value the talkStr to set - * @return this - */ - public FinishTalkMissionScRsp setTalkStr(final CharSequence value) { - bitField0_ |= 0x00000004; - talkStr.copyFrom(value); - return this; - } - - /** - * optional string talk_str = 11; - * @param value the talkStr to set - * @return this - */ - public FinishTalkMissionScRsp setTalkStr(final Utf8String value) { - bitField0_ |= 0x00000004; - talkStr.copyFrom(value); - return this; - } - - /** - * repeated .MissionCustomValueData custom_value_list = 4; - * @return whether the customValueList field is set - */ - public boolean hasCustomValueList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .MissionCustomValueData custom_value_list = 4; - * @return this - */ - public FinishTalkMissionScRsp clearCustomValueList() { - bitField0_ &= ~0x00000008; customValueList.clear(); return this; } /** - * repeated .MissionCustomValueData custom_value_list = 4; + * repeated .MissionCustomValueData custom_value_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -223,7 +177,7 @@ public final class FinishTalkMissionScRspOuterClass { } /** - * repeated .MissionCustomValueData custom_value_list = 4; + * repeated .MissionCustomValueData custom_value_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -233,61 +187,57 @@ public final class FinishTalkMissionScRspOuterClass { */ public RepeatedMessage getMutableCustomValueList( ) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return customValueList; } /** - * repeated .MissionCustomValueData custom_value_list = 4; + * repeated .MissionCustomValueData custom_value_list = 2; * @param value the customValueList to add * @return this */ - public FinishTalkMissionScRsp addCustomValueList( + public MainMissionCustomValue addCustomValueList( final MissionCustomValueDataOuterClass.MissionCustomValueData value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; customValueList.add(value); return this; } /** - * repeated .MissionCustomValueData custom_value_list = 4; + * repeated .MissionCustomValueData custom_value_list = 2; * @param values the customValueList to add * @return this */ - public FinishTalkMissionScRsp addAllCustomValueList( + public MainMissionCustomValue addAllCustomValueList( final MissionCustomValueDataOuterClass.MissionCustomValueData... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; customValueList.addAll(values); return this; } @Override - public FinishTalkMissionScRsp copyFrom(final FinishTalkMissionScRsp other) { + public MainMissionCustomValue copyFrom(final MainMissionCustomValue other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; - subMissionId = other.subMissionId; - talkStr.copyFrom(other.talkStr); + mainMissionId = other.mainMissionId; + status = other.status; customValueList.copyFrom(other.customValueList); } return this; } @Override - public FinishTalkMissionScRsp mergeFrom(final FinishTalkMissionScRsp other) { + public MainMissionCustomValue mergeFrom(final MainMissionCustomValue other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); + if (other.hasMainMissionId()) { + setMainMissionId(other.mainMissionId); } - if (other.hasSubMissionId()) { - setSubMissionId(other.subMissionId); - } - if (other.hasTalkStr()) { - getMutableTalkStrBytes().copyFrom(other.talkStr); + if (other.hasStatus()) { + setStatusValue(other.status); } if (other.hasCustomValueList()) { getMutableCustomValueList().addAll(other.customValueList); @@ -296,27 +246,25 @@ public final class FinishTalkMissionScRspOuterClass { } @Override - public FinishTalkMissionScRsp clear() { + public MainMissionCustomValue clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - retcode = 0; - subMissionId = 0; - talkStr.clear(); + mainMissionId = 0; + status = 0; customValueList.clear(); return this; } @Override - public FinishTalkMissionScRsp clearQuick() { + public MainMissionCustomValue clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - talkStr.clear(); customValueList.clearQuick(); return this; } @@ -326,34 +274,29 @@ public final class FinishTalkMissionScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof FinishTalkMissionScRsp)) { + if (!(o instanceof MainMissionCustomValue)) { return false; } - FinishTalkMissionScRsp other = (FinishTalkMissionScRsp) o; + MainMissionCustomValue other = (MainMissionCustomValue) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasSubMissionId() || subMissionId == other.subMissionId) - && (!hasTalkStr() || talkStr.equals(other.talkStr)) + && (!hasMainMissionId() || mainMissionId == other.mainMissionId) + && (!hasStatus() || status == other.status) && (!hasCustomValueList() || customValueList.equals(other.customValueList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(mainMissionId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); - output.writeUInt32NoTag(subMissionId); + output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 90); - output.writeStringNoTag(talkStr); - } - if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < customValueList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 18); output.writeMessageNoTag(customValueList.get(i)); } } @@ -363,15 +306,12 @@ public final class FinishTalkMissionScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mainMissionId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(subMissionId); + size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(talkStr); - } - if ((bitField0_ & 0x00000008) != 0) { size += (1 * customValueList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(customValueList); } return size; @@ -379,14 +319,14 @@ public final class FinishTalkMissionScRspOuterClass { @Override @SuppressWarnings("fallthrough") - public FinishTalkMissionScRsp mergeFrom(final ProtoSource input) throws IOException { + public MainMissionCustomValue mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 64: { - // retcode - retcode = input.readUInt32(); + case 24: { + // mainMissionId + mainMissionId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 80) { @@ -394,27 +334,21 @@ public final class FinishTalkMissionScRspOuterClass { } } case 80: { - // subMissionId - subMissionId = input.readUInt32(); - bitField0_ |= 0x00000002; + // status + final int value = input.readInt32(); + if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000002; + } tag = input.readTag(); - if (tag != 90) { + if (tag != 18) { break; } } - case 90: { - // talkStr - input.readString(talkStr); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { + case 18: { // customValueList tag = input.readRepeatedMessage(customValueList, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; if (tag != 0) { break; } @@ -437,31 +371,29 @@ public final class FinishTalkMissionScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.mainMissionId, mainMissionId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.subMissionId, subMissionId); + output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter()); } if ((bitField0_ & 0x00000004) != 0) { - output.writeString(FieldNames.talkStr, talkStr); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.customValueList, customValueList); } output.endObject(); } @Override - public FinishTalkMissionScRsp mergeFrom(final JsonSource input) throws IOException { + public MainMissionCustomValue mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1124848142: + case 885892852: { + if (input.isAtField(FieldNames.mainMissionId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + mainMissionId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -469,24 +401,16 @@ public final class FinishTalkMissionScRspOuterClass { } break; } - case -955858585: - case -1513479155: { - if (input.isAtField(FieldNames.subMissionId)) { + case -892481550: { + if (input.isAtField(FieldNames.status)) { if (!input.trySkipNullValue()) { - subMissionId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1543716379: - case -610210786: { - if (input.isAtField(FieldNames.talkStr)) { - if (!input.trySkipNullValue()) { - input.readString(talkStr); - bitField0_ |= 0x00000004; + final MissionStatusOuterClass.MissionStatus value = input.readEnum(MissionStatusOuterClass.MissionStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } } } else { input.skipUnknownField(); @@ -498,7 +422,7 @@ public final class FinishTalkMissionScRspOuterClass { if (input.isAtField(FieldNames.customValueList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(customValueList); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -516,8 +440,8 @@ public final class FinishTalkMissionScRspOuterClass { } @Override - public FinishTalkMissionScRsp clone() { - return new FinishTalkMissionScRsp().copyFrom(this); + public MainMissionCustomValue clone() { + return new MainMissionCustomValue().copyFrom(this); } @Override @@ -525,32 +449,32 @@ public final class FinishTalkMissionScRspOuterClass { return ((bitField0_) == 0); } - public static FinishTalkMissionScRsp parseFrom(final byte[] data) throws + public static MainMissionCustomValue parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new FinishTalkMissionScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new MainMissionCustomValue(), data).checkInitialized(); } - public static FinishTalkMissionScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishTalkMissionScRsp(), input).checkInitialized(); + public static MainMissionCustomValue parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MainMissionCustomValue(), input).checkInitialized(); } - public static FinishTalkMissionScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishTalkMissionScRsp(), input).checkInitialized(); + public static MainMissionCustomValue parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MainMissionCustomValue(), input).checkInitialized(); } /** - * @return factory for creating FinishTalkMissionScRsp messages + * @return factory for creating MainMissionCustomValue messages */ - public static MessageFactory getFactory() { - return FinishTalkMissionScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return MainMissionCustomValueFactory.INSTANCE; } - private enum FinishTalkMissionScRspFactory implements MessageFactory { + private enum MainMissionCustomValueFactory implements MessageFactory { INSTANCE; @Override - public FinishTalkMissionScRsp create() { - return FinishTalkMissionScRsp.newInstance(); + public MainMissionCustomValue create() { + return MainMissionCustomValue.newInstance(); } } @@ -558,11 +482,9 @@ public final class FinishTalkMissionScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName mainMissionId = FieldName.forField("mainMissionId", "main_mission_id"); - static final FieldName subMissionId = FieldName.forField("subMissionId", "sub_mission_id"); - - static final FieldName talkStr = FieldName.forField("talkStr", "talk_str"); + static final FieldName status = FieldName.forField("status"); static final FieldName customValueList = FieldName.forField("customValueList", "custom_value_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/FinishTalkMissionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/MainMissionDataOuterClass.java similarity index 57% rename from src/generated/main/emu/lunarcore/proto/FinishTalkMissionCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/MainMissionDataOuterClass.java index 8682cfd..bfb5862 100644 --- a/src/generated/main/emu/lunarcore/proto/FinishTalkMissionCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MainMissionDataOuterClass.java @@ -11,144 +11,140 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedMessage; -import us.hebi.quickbuf.Utf8String; -public final class FinishTalkMissionCsReqOuterClass { +public final class MainMissionDataOuterClass { /** - * Protobuf type {@code FinishTalkMissionCsReq} + * Protobuf type {@code MainMissionData} */ - public static final class FinishTalkMissionCsReq extends ProtoMessage implements Cloneable { + public static final class MainMissionData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 sub_mission_id = 14; + * optional uint32 id = 2; */ - private int subMissionId; + private int id; /** - * optional string talk_str = 7; + * optional .MissionStatus status = 5; */ - private final Utf8String talkStr = Utf8String.newEmptyInstance(); + private int status; /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; */ private final RepeatedMessage customValueList = RepeatedMessage.newEmptyInstance(MissionCustomValueDataOuterClass.MissionCustomValueData.getFactory()); - private FinishTalkMissionCsReq() { + private MainMissionData() { } /** - * @return a new empty instance of {@code FinishTalkMissionCsReq} + * @return a new empty instance of {@code MainMissionData} */ - public static FinishTalkMissionCsReq newInstance() { - return new FinishTalkMissionCsReq(); + public static MainMissionData newInstance() { + return new MainMissionData(); } /** - * optional uint32 sub_mission_id = 14; - * @return whether the subMissionId field is set + * optional uint32 id = 2; + * @return whether the id field is set */ - public boolean hasSubMissionId() { + public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 sub_mission_id = 14; + * optional uint32 id = 2; * @return this */ - public FinishTalkMissionCsReq clearSubMissionId() { + public MainMissionData clearId() { bitField0_ &= ~0x00000001; - subMissionId = 0; + id = 0; return this; } /** - * optional uint32 sub_mission_id = 14; - * @return the subMissionId + * optional uint32 id = 2; + * @return the id */ - public int getSubMissionId() { - return subMissionId; + public int getId() { + return id; } /** - * optional uint32 sub_mission_id = 14; - * @param value the subMissionId to set + * optional uint32 id = 2; + * @param value the id to set * @return this */ - public FinishTalkMissionCsReq setSubMissionId(final int value) { + public MainMissionData setId(final int value) { bitField0_ |= 0x00000001; - subMissionId = value; + id = value; return this; } /** - * optional string talk_str = 7; - * @return whether the talkStr field is set + * optional .MissionStatus status = 5; + * @return whether the status field is set */ - public boolean hasTalkStr() { + public boolean hasStatus() { return (bitField0_ & 0x00000002) != 0; } /** - * optional string talk_str = 7; + * optional .MissionStatus status = 5; * @return this */ - public FinishTalkMissionCsReq clearTalkStr() { + public MainMissionData clearStatus() { bitField0_ &= ~0x00000002; - talkStr.clear(); + status = 0; return this; } /** - * optional string talk_str = 7; - * @return the talkStr + * optional .MissionStatus status = 5; + * @return the status */ - public String getTalkStr() { - return talkStr.getString(); + public MissionStatusOuterClass.MissionStatus getStatus() { + return MissionStatusOuterClass.MissionStatus.forNumber(status); } /** - * optional string talk_str = 7; - * @return internal {@code Utf8String} representation of talkStr for reading + * Gets the value of the internal enum store. The result is + * equivalent to {@link MainMissionData#getStatus()}.getNumber(). + * + * @return numeric wire representation */ - public Utf8String getTalkStrBytes() { - return this.talkStr; + public int getStatusValue() { + return status; } /** - * optional string talk_str = 7; - * @return internal {@code Utf8String} representation of talkStr for modifications - */ - public Utf8String getMutableTalkStrBytes() { - bitField0_ |= 0x00000002; - return this.talkStr; - } - - /** - * optional string talk_str = 7; - * @param value the talkStr to set + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MissionStatusOuterClass.MissionStatus}. Setting an invalid value + * can cause {@link MainMissionData#getStatus()} to return null + * + * @param value the numeric wire value to set * @return this */ - public FinishTalkMissionCsReq setTalkStr(final CharSequence value) { + public MainMissionData setStatusValue(final int value) { bitField0_ |= 0x00000002; - talkStr.copyFrom(value); + status = value; return this; } /** - * optional string talk_str = 7; - * @param value the talkStr to set + * optional .MissionStatus status = 5; + * @param value the status to set * @return this */ - public FinishTalkMissionCsReq setTalkStr(final Utf8String value) { + public MainMissionData setStatus(final MissionStatusOuterClass.MissionStatus value) { bitField0_ |= 0x00000002; - talkStr.copyFrom(value); + status = value.getNumber(); return this; } /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; * @return whether the customValueList field is set */ public boolean hasCustomValueList() { @@ -156,17 +152,17 @@ public final class FinishTalkMissionCsReqOuterClass { } /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; * @return this */ - public FinishTalkMissionCsReq clearCustomValueList() { + public MainMissionData clearCustomValueList() { bitField0_ &= ~0x00000004; customValueList.clear(); return this; } /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -181,7 +177,7 @@ public final class FinishTalkMissionCsReqOuterClass { } /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -196,11 +192,11 @@ public final class FinishTalkMissionCsReqOuterClass { } /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; * @param value the customValueList to add * @return this */ - public FinishTalkMissionCsReq addCustomValueList( + public MainMissionData addCustomValueList( final MissionCustomValueDataOuterClass.MissionCustomValueData value) { bitField0_ |= 0x00000004; customValueList.add(value); @@ -208,11 +204,11 @@ public final class FinishTalkMissionCsReqOuterClass { } /** - * repeated .MissionCustomValueData custom_value_list = 10; + * repeated .MissionCustomValueData custom_value_list = 12; * @param values the customValueList to add * @return this */ - public FinishTalkMissionCsReq addAllCustomValueList( + public MainMissionData addAllCustomValueList( final MissionCustomValueDataOuterClass.MissionCustomValueData... values) { bitField0_ |= 0x00000004; customValueList.addAll(values); @@ -220,28 +216,28 @@ public final class FinishTalkMissionCsReqOuterClass { } @Override - public FinishTalkMissionCsReq copyFrom(final FinishTalkMissionCsReq other) { + public MainMissionData copyFrom(final MainMissionData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - subMissionId = other.subMissionId; - talkStr.copyFrom(other.talkStr); + id = other.id; + status = other.status; customValueList.copyFrom(other.customValueList); } return this; } @Override - public FinishTalkMissionCsReq mergeFrom(final FinishTalkMissionCsReq other) { + public MainMissionData mergeFrom(final MainMissionData other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasSubMissionId()) { - setSubMissionId(other.subMissionId); + if (other.hasId()) { + setId(other.id); } - if (other.hasTalkStr()) { - getMutableTalkStrBytes().copyFrom(other.talkStr); + if (other.hasStatus()) { + setStatusValue(other.status); } if (other.hasCustomValueList()) { getMutableCustomValueList().addAll(other.customValueList); @@ -250,26 +246,25 @@ public final class FinishTalkMissionCsReqOuterClass { } @Override - public FinishTalkMissionCsReq clear() { + public MainMissionData clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - subMissionId = 0; - talkStr.clear(); + id = 0; + status = 0; customValueList.clear(); return this; } @Override - public FinishTalkMissionCsReq clearQuick() { + public MainMissionData clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - talkStr.clear(); customValueList.clearQuick(); return this; } @@ -279,29 +274,29 @@ public final class FinishTalkMissionCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof FinishTalkMissionCsReq)) { + if (!(o instanceof MainMissionData)) { return false; } - FinishTalkMissionCsReq other = (FinishTalkMissionCsReq) o; + MainMissionData other = (MainMissionData) o; return bitField0_ == other.bitField0_ - && (!hasSubMissionId() || subMissionId == other.subMissionId) - && (!hasTalkStr() || talkStr.equals(other.talkStr)) + && (!hasId() || id == other.id) + && (!hasStatus() || status == other.status) && (!hasCustomValueList() || customValueList.equals(other.customValueList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(subMissionId); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeStringNoTag(talkStr); + output.writeRawByte((byte) 40); + output.writeEnumNoTag(status); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < customValueList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 98); output.writeMessageNoTag(customValueList.get(i)); } } @@ -311,10 +306,10 @@ public final class FinishTalkMissionCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(subMissionId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(talkStr); + size += 1 + ProtoSink.computeEnumSizeNoTag(status); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * customValueList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(customValueList); @@ -324,30 +319,33 @@ public final class FinishTalkMissionCsReqOuterClass { @Override @SuppressWarnings("fallthrough") - public FinishTalkMissionCsReq mergeFrom(final ProtoSource input) throws IOException { + public MainMissionData mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 112: { - // subMissionId - subMissionId = input.readUInt32(); + case 16: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 58) { + if (tag != 40) { break; } } - case 58: { - // talkStr - input.readString(talkStr); - bitField0_ |= 0x00000002; + case 40: { + // status + final int value = input.readInt32(); + if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000002; + } tag = input.readTag(); - if (tag != 82) { + if (tag != 98) { break; } } - case 82: { + case 98: { // customValueList tag = input.readRepeatedMessage(customValueList, tag); bitField0_ |= 0x00000004; @@ -373,10 +371,10 @@ public final class FinishTalkMissionCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.subMissionId, subMissionId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeString(FieldNames.talkStr, talkStr); + output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter()); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.customValueList, customValueList); @@ -385,17 +383,16 @@ public final class FinishTalkMissionCsReqOuterClass { } @Override - public FinishTalkMissionCsReq mergeFrom(final JsonSource input) throws IOException { + public MainMissionData mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -955858585: - case -1513479155: { - if (input.isAtField(FieldNames.subMissionId)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - subMissionId = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -403,12 +400,16 @@ public final class FinishTalkMissionCsReqOuterClass { } break; } - case -1543716379: - case -610210786: { - if (input.isAtField(FieldNames.talkStr)) { + case -892481550: { + if (input.isAtField(FieldNames.status)) { if (!input.trySkipNullValue()) { - input.readString(talkStr); - bitField0_ |= 0x00000002; + final MissionStatusOuterClass.MissionStatus value = input.readEnum(MissionStatusOuterClass.MissionStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } } } else { input.skipUnknownField(); @@ -438,8 +439,8 @@ public final class FinishTalkMissionCsReqOuterClass { } @Override - public FinishTalkMissionCsReq clone() { - return new FinishTalkMissionCsReq().copyFrom(this); + public MainMissionData clone() { + return new MainMissionData().copyFrom(this); } @Override @@ -447,32 +448,32 @@ public final class FinishTalkMissionCsReqOuterClass { return ((bitField0_) == 0); } - public static FinishTalkMissionCsReq parseFrom(final byte[] data) throws + public static MainMissionData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new FinishTalkMissionCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new MainMissionData(), data).checkInitialized(); } - public static FinishTalkMissionCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishTalkMissionCsReq(), input).checkInitialized(); + public static MainMissionData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MainMissionData(), input).checkInitialized(); } - public static FinishTalkMissionCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishTalkMissionCsReq(), input).checkInitialized(); + public static MainMissionData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MainMissionData(), input).checkInitialized(); } /** - * @return factory for creating FinishTalkMissionCsReq messages + * @return factory for creating MainMissionData messages */ - public static MessageFactory getFactory() { - return FinishTalkMissionCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return MainMissionDataFactory.INSTANCE; } - private enum FinishTalkMissionCsReqFactory implements MessageFactory { + private enum MainMissionDataFactory implements MessageFactory { INSTANCE; @Override - public FinishTalkMissionCsReq create() { - return FinishTalkMissionCsReq.newInstance(); + public MainMissionData create() { + return MainMissionData.newInstance(); } } @@ -480,9 +481,9 @@ public final class FinishTalkMissionCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName subMissionId = FieldName.forField("subMissionId", "sub_mission_id"); + static final FieldName id = FieldName.forField("id"); - static final FieldName talkStr = FieldName.forField("talkStr", "talk_str"); + static final FieldName status = FieldName.forField("status"); static final FieldName customValueList = FieldName.forField("customValueList", "custom_value_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/MapInfoGroupOuterClass.java b/src/generated/main/emu/lunarcore/proto/MapInfoGroupOuterClass.java new file mode 100644 index 0000000..00c183e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MapInfoGroupOuterClass.java @@ -0,0 +1,1013 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class MapInfoGroupOuterClass { + /** + * Protobuf type {@code MapInfoGroup} + */ + public static final class MapInfoGroup extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 modify_time = 15; + */ + private long modifyTime; + + /** + * optional uint32 group_id = 4; + */ + private int groupId; + + /** + * optional bool is_need_refresh = 6; + */ + private boolean isNeedRefresh; + + /** + * repeated uint32 destory_monster_config_id_list = 11; + */ + private final RepeatedInt destoryMonsterConfigIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + */ + private final RepeatedMessage propertyMap = RepeatedMessage.newEmptyInstance(PropertyMapEntry.getFactory()); + + private MapInfoGroup() { + } + + /** + * @return a new empty instance of {@code MapInfoGroup} + */ + public static MapInfoGroup newInstance() { + return new MapInfoGroup(); + } + + /** + * optional int64 modify_time = 15; + * @return whether the modifyTime field is set + */ + public boolean hasModifyTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 modify_time = 15; + * @return this + */ + public MapInfoGroup clearModifyTime() { + bitField0_ &= ~0x00000001; + modifyTime = 0L; + return this; + } + + /** + * optional int64 modify_time = 15; + * @return the modifyTime + */ + public long getModifyTime() { + return modifyTime; + } + + /** + * optional int64 modify_time = 15; + * @param value the modifyTime to set + * @return this + */ + public MapInfoGroup setModifyTime(final long value) { + bitField0_ |= 0x00000001; + modifyTime = value; + return this; + } + + /** + * optional uint32 group_id = 4; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 4; + * @return this + */ + public MapInfoGroup clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 4; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 4; + * @param value the groupId to set + * @return this + */ + public MapInfoGroup setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional bool is_need_refresh = 6; + * @return whether the isNeedRefresh field is set + */ + public boolean hasIsNeedRefresh() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool is_need_refresh = 6; + * @return this + */ + public MapInfoGroup clearIsNeedRefresh() { + bitField0_ &= ~0x00000004; + isNeedRefresh = false; + return this; + } + + /** + * optional bool is_need_refresh = 6; + * @return the isNeedRefresh + */ + public boolean getIsNeedRefresh() { + return isNeedRefresh; + } + + /** + * optional bool is_need_refresh = 6; + * @param value the isNeedRefresh to set + * @return this + */ + public MapInfoGroup setIsNeedRefresh(final boolean value) { + bitField0_ |= 0x00000004; + isNeedRefresh = value; + return this; + } + + /** + * repeated uint32 destory_monster_config_id_list = 11; + * @return whether the destoryMonsterConfigIdList field is set + */ + public boolean hasDestoryMonsterConfigIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 destory_monster_config_id_list = 11; + * @return this + */ + public MapInfoGroup clearDestoryMonsterConfigIdList() { + bitField0_ &= ~0x00000008; + destoryMonsterConfigIdList.clear(); + return this; + } + + /** + * repeated uint32 destory_monster_config_id_list = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDestoryMonsterConfigIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDestoryMonsterConfigIdList() { + return destoryMonsterConfigIdList; + } + + /** + * repeated uint32 destory_monster_config_id_list = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableDestoryMonsterConfigIdList() { + bitField0_ |= 0x00000008; + return destoryMonsterConfigIdList; + } + + /** + * repeated uint32 destory_monster_config_id_list = 11; + * @param value the destoryMonsterConfigIdList to add + * @return this + */ + public MapInfoGroup addDestoryMonsterConfigIdList(final int value) { + bitField0_ |= 0x00000008; + destoryMonsterConfigIdList.add(value); + return this; + } + + /** + * repeated uint32 destory_monster_config_id_list = 11; + * @param values the destoryMonsterConfigIdList to add + * @return this + */ + public MapInfoGroup addAllDestoryMonsterConfigIdList(final int... values) { + bitField0_ |= 0x00000008; + destoryMonsterConfigIdList.addAll(values); + return this; + } + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + * @return whether the propertyMap field is set + */ + public boolean hasPropertyMap() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + * @return this + */ + public MapInfoGroup clearPropertyMap() { + bitField0_ &= ~0x00000010; + propertyMap.clear(); + return this; + } + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePropertyMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPropertyMap() { + return propertyMap; + } + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutablePropertyMap() { + bitField0_ |= 0x00000010; + return propertyMap; + } + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + * @param value the propertyMap to add + * @return this + */ + public MapInfoGroup addPropertyMap(final PropertyMapEntry value) { + bitField0_ |= 0x00000010; + propertyMap.add(value); + return this; + } + + /** + * repeated .MapInfoGroup.PropertyMapEntry property_map = 12; + * @param values the propertyMap to add + * @return this + */ + public MapInfoGroup addAllPropertyMap(final PropertyMapEntry... values) { + bitField0_ |= 0x00000010; + propertyMap.addAll(values); + return this; + } + + @Override + public MapInfoGroup copyFrom(final MapInfoGroup other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + modifyTime = other.modifyTime; + groupId = other.groupId; + isNeedRefresh = other.isNeedRefresh; + destoryMonsterConfigIdList.copyFrom(other.destoryMonsterConfigIdList); + propertyMap.copyFrom(other.propertyMap); + } + return this; + } + + @Override + public MapInfoGroup mergeFrom(final MapInfoGroup other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasModifyTime()) { + setModifyTime(other.modifyTime); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasIsNeedRefresh()) { + setIsNeedRefresh(other.isNeedRefresh); + } + if (other.hasDestoryMonsterConfigIdList()) { + getMutableDestoryMonsterConfigIdList().addAll(other.destoryMonsterConfigIdList); + } + if (other.hasPropertyMap()) { + getMutablePropertyMap().addAll(other.propertyMap); + } + return this; + } + + @Override + public MapInfoGroup clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + modifyTime = 0L; + groupId = 0; + isNeedRefresh = false; + destoryMonsterConfigIdList.clear(); + propertyMap.clear(); + return this; + } + + @Override + public MapInfoGroup clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + destoryMonsterConfigIdList.clear(); + propertyMap.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MapInfoGroup)) { + return false; + } + MapInfoGroup other = (MapInfoGroup) o; + return bitField0_ == other.bitField0_ + && (!hasModifyTime() || modifyTime == other.modifyTime) + && (!hasGroupId() || groupId == other.groupId) + && (!hasIsNeedRefresh() || isNeedRefresh == other.isNeedRefresh) + && (!hasDestoryMonsterConfigIdList() || destoryMonsterConfigIdList.equals(other.destoryMonsterConfigIdList)) + && (!hasPropertyMap() || propertyMap.equals(other.propertyMap)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 120); + output.writeInt64NoTag(modifyTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(isNeedRefresh); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < destoryMonsterConfigIdList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(destoryMonsterConfigIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < propertyMap.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(propertyMap.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(modifyTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * destoryMonsterConfigIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(destoryMonsterConfigIdList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * propertyMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(propertyMap); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MapInfoGroup mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 120: { + // modifyTime + modifyTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // isNeedRefresh + isNeedRefresh = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // destoryMonsterConfigIdList [packed=true] + input.readPackedUInt32(destoryMonsterConfigIdList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // propertyMap + tag = input.readRepeatedMessage(propertyMap, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 88: { + // destoryMonsterConfigIdList [packed=false] + tag = input.readRepeatedUInt32(destoryMonsterConfigIdList, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.modifyTime, modifyTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.isNeedRefresh, isNeedRefresh); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.destoryMonsterConfigIdList, destoryMonsterConfigIdList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.propertyMap, propertyMap); + } + output.endObject(); + } + + @Override + public MapInfoGroup mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1211388583: + case -1091176654: { + if (input.isAtField(FieldNames.modifyTime)) { + if (!input.trySkipNullValue()) { + modifyTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1106015781: + case -104440537: { + if (input.isAtField(FieldNames.isNeedRefresh)) { + if (!input.trySkipNullValue()) { + isNeedRefresh = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1102059905: + case -1928058923: { + if (input.isAtField(FieldNames.destoryMonsterConfigIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(destoryMonsterConfigIdList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1357579079: + case -864174094: { + if (input.isAtField(FieldNames.propertyMap)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(propertyMap); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MapInfoGroup clone() { + return new MapInfoGroup().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MapInfoGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MapInfoGroup(), data).checkInitialized(); + } + + public static MapInfoGroup parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MapInfoGroup(), input).checkInitialized(); + } + + public static MapInfoGroup parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MapInfoGroup(), input).checkInitialized(); + } + + /** + * @return factory for creating MapInfoGroup messages + */ + public static MessageFactory getFactory() { + return MapInfoGroupFactory.INSTANCE; + } + + /** + * Protobuf type {@code PropertyMapEntry} + */ + public static final class PropertyMapEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional sint32 value = 2; + */ + private int value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private PropertyMapEntry() { + } + + /** + * @return a new empty instance of {@code PropertyMapEntry} + */ + public static PropertyMapEntry newInstance() { + return new PropertyMapEntry(); + } + + /** + * optional sint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional sint32 value = 2; + * @return this + */ + public PropertyMapEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional sint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional sint32 value = 2; + * @param value the value_ to set + * @return this + */ + public PropertyMapEntry setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public PropertyMapEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public PropertyMapEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public PropertyMapEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public PropertyMapEntry copyFrom(final PropertyMapEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public PropertyMapEntry mergeFrom(final PropertyMapEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public PropertyMapEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + key.clear(); + return this; + } + + @Override + public PropertyMapEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PropertyMapEntry)) { + return false; + } + PropertyMapEntry other = (PropertyMapEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeSInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PropertyMapEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readSInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeSInt32(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public PropertyMapEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readSInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PropertyMapEntry clone() { + return new PropertyMapEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PropertyMapEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PropertyMapEntry(), data).checkInitialized(); + } + + public static PropertyMapEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PropertyMapEntry(), input).checkInitialized(); + } + + public static PropertyMapEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PropertyMapEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating PropertyMapEntry messages + */ + public static MessageFactory getFactory() { + return PropertyMapEntryFactory.INSTANCE; + } + + private enum PropertyMapEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public PropertyMapEntry create() { + return PropertyMapEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum MapInfoGroupFactory implements MessageFactory { + INSTANCE; + + @Override + public MapInfoGroup create() { + return MapInfoGroup.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName modifyTime = FieldName.forField("modifyTime", "modify_time"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName isNeedRefresh = FieldName.forField("isNeedRefresh", "is_need_refresh"); + + static final FieldName destoryMonsterConfigIdList = FieldName.forField("destoryMonsterConfigIdList", "destory_monster_config_id_list"); + + static final FieldName propertyMap = FieldName.forField("propertyMap", "property_map"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java b/src/generated/main/emu/lunarcore/proto/MapPropDefInfoOuterClass.java similarity index 56% rename from src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java rename to src/generated/main/emu/lunarcore/proto/MapPropDefInfoOuterClass.java index bed1a7a..06a1e5b 100644 --- a/src/generated/main/emu/lunarcore/proto/MazePropOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MapPropDefInfoOuterClass.java @@ -11,95 +11,63 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class MazePropOuterClass { +public final class MapPropDefInfoOuterClass { /** - * Protobuf type {@code MazeProp} + * Protobuf type {@code MapPropDefInfo} */ - public static final class MazeProp extends ProtoMessage implements Cloneable { + public static final class MapPropDefInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 state = 3; - */ - private int state; - - /** - * optional uint32 config_id = 4; + * optional uint32 config_id = 2; */ private int configId; + /** + * optional uint32 plane_id = 4; + */ + private int planeId; + + /** + * optional uint32 floor_id = 5; + */ + private int floorId; + /** * optional uint32 group_id = 8; */ private int groupId; - private MazeProp() { + private MapPropDefInfo() { } /** - * @return a new empty instance of {@code MazeProp} + * @return a new empty instance of {@code MapPropDefInfo} */ - public static MazeProp newInstance() { - return new MazeProp(); + public static MapPropDefInfo newInstance() { + return new MapPropDefInfo(); } /** - * optional uint32 state = 3; - * @return whether the state field is set + * optional uint32 config_id = 2; + * @return whether the configId field is set */ - public boolean hasState() { + public boolean hasConfigId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 state = 3; + * optional uint32 config_id = 2; * @return this */ - public MazeProp clearState() { + public MapPropDefInfo clearConfigId() { bitField0_ &= ~0x00000001; - state = 0; - return this; - } - - /** - * optional uint32 state = 3; - * @return the state - */ - public int getState() { - return state; - } - - /** - * optional uint32 state = 3; - * @param value the state to set - * @return this - */ - public MazeProp setState(final int value) { - bitField0_ |= 0x00000001; - state = value; - return this; - } - - /** - * optional uint32 config_id = 4; - * @return whether the configId field is set - */ - public boolean hasConfigId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 config_id = 4; - * @return this - */ - public MazeProp clearConfigId() { - bitField0_ &= ~0x00000002; configId = 0; return this; } /** - * optional uint32 config_id = 4; + * optional uint32 config_id = 2; * @return the configId */ public int getConfigId() { @@ -107,30 +75,104 @@ public final class MazePropOuterClass { } /** - * optional uint32 config_id = 4; + * optional uint32 config_id = 2; * @param value the configId to set * @return this */ - public MazeProp setConfigId(final int value) { - bitField0_ |= 0x00000002; + public MapPropDefInfo setConfigId(final int value) { + bitField0_ |= 0x00000001; configId = value; return this; } + /** + * optional uint32 plane_id = 4; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 plane_id = 4; + * @return this + */ + public MapPropDefInfo clearPlaneId() { + bitField0_ &= ~0x00000002; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 4; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 4; + * @param value the planeId to set + * @return this + */ + public MapPropDefInfo setPlaneId(final int value) { + bitField0_ |= 0x00000002; + planeId = value; + return this; + } + + /** + * optional uint32 floor_id = 5; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 floor_id = 5; + * @return this + */ + public MapPropDefInfo clearFloorId() { + bitField0_ &= ~0x00000004; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 5; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 5; + * @param value the floorId to set + * @return this + */ + public MapPropDefInfo setFloorId(final int value) { + bitField0_ |= 0x00000004; + floorId = value; + return this; + } + /** * optional uint32 group_id = 8; * @return whether the groupId field is set */ public boolean hasGroupId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** * optional uint32 group_id = 8; * @return this */ - public MazeProp clearGroupId() { - bitField0_ &= ~0x00000004; + public MapPropDefInfo clearGroupId() { + bitField0_ &= ~0x00000008; groupId = 0; return this; } @@ -148,36 +190,40 @@ public final class MazePropOuterClass { * @param value the groupId to set * @return this */ - public MazeProp setGroupId(final int value) { - bitField0_ |= 0x00000004; + public MapPropDefInfo setGroupId(final int value) { + bitField0_ |= 0x00000008; groupId = value; return this; } @Override - public MazeProp copyFrom(final MazeProp other) { + public MapPropDefInfo copyFrom(final MapPropDefInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - state = other.state; configId = other.configId; + planeId = other.planeId; + floorId = other.floorId; groupId = other.groupId; } return this; } @Override - public MazeProp mergeFrom(final MazeProp other) { + public MapPropDefInfo mergeFrom(final MapPropDefInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasState()) { - setState(other.state); - } if (other.hasConfigId()) { setConfigId(other.configId); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } if (other.hasGroupId()) { setGroupId(other.groupId); } @@ -185,20 +231,21 @@ public final class MazePropOuterClass { } @Override - public MazeProp clear() { + public MapPropDefInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - state = 0; configId = 0; + planeId = 0; + floorId = 0; groupId = 0; return this; } @Override - public MazeProp clearQuick() { + public MapPropDefInfo clearQuick() { if (isEmpty()) { return this; } @@ -212,27 +259,32 @@ public final class MazePropOuterClass { if (o == this) { return true; } - if (!(o instanceof MazeProp)) { + if (!(o instanceof MapPropDefInfo)) { return false; } - MazeProp other = (MazeProp) o; + MapPropDefInfo other = (MapPropDefInfo) o; return bitField0_ == other.bitField0_ - && (!hasState() || state == other.state) && (!hasConfigId() || configId == other.configId) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasFloorId() || floorId == other.floorId) && (!hasGroupId() || groupId == other.groupId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(state); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(configId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(configId); + output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 64); output.writeUInt32NoTag(groupId); } @@ -242,12 +294,15 @@ public final class MazePropOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(state); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } return size; @@ -255,14 +310,14 @@ public final class MazePropOuterClass { @Override @SuppressWarnings("fallthrough") - public MazeProp mergeFrom(final ProtoSource input) throws IOException { + public MapPropDefInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // state - state = input.readUInt32(); + case 16: { + // configId + configId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { @@ -270,10 +325,19 @@ public final class MazePropOuterClass { } } case 32: { - // configId - configId = input.readUInt32(); + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 64) { break; } @@ -281,7 +345,7 @@ public final class MazePropOuterClass { case 64: { // groupId groupId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { break; @@ -305,28 +369,32 @@ public final class MazePropOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.state, state); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.configId, configId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.groupId, groupId); } output.endObject(); } @Override - public MazeProp mergeFrom(final JsonSource input) throws IOException { + public MapPropDefInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109757585: { - if (input.isAtField(FieldNames.state)) { + case -580140035: + case -804450504: { + if (input.isAtField(FieldNames.configId)) { if (!input.trySkipNullValue()) { - state = input.readUInt32(); + configId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -334,11 +402,11 @@ public final class MazePropOuterClass { } break; } - case -580140035: - case -804450504: { - if (input.isAtField(FieldNames.configId)) { + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { if (!input.trySkipNullValue()) { - configId = input.readUInt32(); + planeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -346,12 +414,24 @@ public final class MazePropOuterClass { } break; } + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case 293428218: case 506361563: { if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { groupId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -369,8 +449,8 @@ public final class MazePropOuterClass { } @Override - public MazeProp clone() { - return new MazeProp().copyFrom(this); + public MapPropDefInfo clone() { + return new MapPropDefInfo().copyFrom(this); } @Override @@ -378,31 +458,32 @@ public final class MazePropOuterClass { return ((bitField0_) == 0); } - public static MazeProp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MazeProp(), data).checkInitialized(); + public static MapPropDefInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MapPropDefInfo(), data).checkInitialized(); } - public static MazeProp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeProp(), input).checkInitialized(); + public static MapPropDefInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MapPropDefInfo(), input).checkInitialized(); } - public static MazeProp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeProp(), input).checkInitialized(); + public static MapPropDefInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MapPropDefInfo(), input).checkInitialized(); } /** - * @return factory for creating MazeProp messages + * @return factory for creating MapPropDefInfo messages */ - public static MessageFactory getFactory() { - return MazePropFactory.INSTANCE; + public static MessageFactory getFactory() { + return MapPropDefInfoFactory.INSTANCE; } - private enum MazePropFactory implements MessageFactory { + private enum MapPropDefInfoFactory implements MessageFactory { INSTANCE; @Override - public MazeProp create() { - return MazeProp.newInstance(); + public MapPropDefInfo create() { + return MapPropDefInfo.newInstance(); } } @@ -410,10 +491,12 @@ public final class MazePropOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName state = FieldName.forField("state"); - static final FieldName configId = FieldName.forField("configId", "config_id"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); } } diff --git a/src/generated/main/emu/lunarcore/proto/MapPropInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MapPropInfoOuterClass.java new file mode 100644 index 0000000..1b67f71 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MapPropInfoOuterClass.java @@ -0,0 +1,522 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class MapPropInfoOuterClass { + /** + * Protobuf type {@code MapPropInfo} + */ + public static final class MapPropInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 config_id = 8; + */ + private int configId; + + /** + * optional uint32 state = 11; + */ + private int state; + + /** + * optional uint32 group_id = 13; + */ + private int groupId; + + /** + * optional .PropExtraInfo extra_info = 9; + */ + private final PropExtraInfoOuterClass.PropExtraInfo extraInfo = PropExtraInfoOuterClass.PropExtraInfo.newInstance(); + + private MapPropInfo() { + } + + /** + * @return a new empty instance of {@code MapPropInfo} + */ + public static MapPropInfo newInstance() { + return new MapPropInfo(); + } + + /** + * optional uint32 config_id = 8; + * @return whether the configId field is set + */ + public boolean hasConfigId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 config_id = 8; + * @return this + */ + public MapPropInfo clearConfigId() { + bitField0_ &= ~0x00000001; + configId = 0; + return this; + } + + /** + * optional uint32 config_id = 8; + * @return the configId + */ + public int getConfigId() { + return configId; + } + + /** + * optional uint32 config_id = 8; + * @param value the configId to set + * @return this + */ + public MapPropInfo setConfigId(final int value) { + bitField0_ |= 0x00000001; + configId = value; + return this; + } + + /** + * optional uint32 state = 11; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 state = 11; + * @return this + */ + public MapPropInfo clearState() { + bitField0_ &= ~0x00000002; + state = 0; + return this; + } + + /** + * optional uint32 state = 11; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 11; + * @param value the state to set + * @return this + */ + public MapPropInfo setState(final int value) { + bitField0_ |= 0x00000002; + state = value; + return this; + } + + /** + * optional uint32 group_id = 13; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 group_id = 13; + * @return this + */ + public MapPropInfo clearGroupId() { + bitField0_ &= ~0x00000004; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 13; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 13; + * @param value the groupId to set + * @return this + */ + public MapPropInfo setGroupId(final int value) { + bitField0_ |= 0x00000004; + groupId = value; + return this; + } + + /** + * optional .PropExtraInfo extra_info = 9; + * @return whether the extraInfo field is set + */ + public boolean hasExtraInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .PropExtraInfo extra_info = 9; + * @return this + */ + public MapPropInfo clearExtraInfo() { + bitField0_ &= ~0x00000008; + extraInfo.clear(); + return this; + } + + /** + * optional .PropExtraInfo extra_info = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableExtraInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PropExtraInfoOuterClass.PropExtraInfo getExtraInfo() { + return extraInfo; + } + + /** + * optional .PropExtraInfo extra_info = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PropExtraInfoOuterClass.PropExtraInfo getMutableExtraInfo() { + bitField0_ |= 0x00000008; + return extraInfo; + } + + /** + * optional .PropExtraInfo extra_info = 9; + * @param value the extraInfo to set + * @return this + */ + public MapPropInfo setExtraInfo(final PropExtraInfoOuterClass.PropExtraInfo value) { + bitField0_ |= 0x00000008; + extraInfo.copyFrom(value); + return this; + } + + @Override + public MapPropInfo copyFrom(final MapPropInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + configId = other.configId; + state = other.state; + groupId = other.groupId; + extraInfo.copyFrom(other.extraInfo); + } + return this; + } + + @Override + public MapPropInfo mergeFrom(final MapPropInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasConfigId()) { + setConfigId(other.configId); + } + if (other.hasState()) { + setState(other.state); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasExtraInfo()) { + getMutableExtraInfo().mergeFrom(other.extraInfo); + } + return this; + } + + @Override + public MapPropInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + configId = 0; + state = 0; + groupId = 0; + extraInfo.clear(); + return this; + } + + @Override + public MapPropInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + extraInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MapPropInfo)) { + return false; + } + MapPropInfo other = (MapPropInfo) o; + return bitField0_ == other.bitField0_ + && (!hasConfigId() || configId == other.configId) + && (!hasState() || state == other.state) + && (!hasGroupId() || groupId == other.groupId) + && (!hasExtraInfo() || extraInfo.equals(other.extraInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(configId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(extraInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(extraInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MapPropInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // configId + configId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // extraInfo + input.readMessage(extraInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.configId, configId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.state, state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.extraInfo, extraInfo); + } + output.endObject(); + } + + @Override + public MapPropInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -580140035: + case -804450504: { + if (input.isAtField(FieldNames.configId)) { + if (!input.trySkipNullValue()) { + configId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 109757585: { + if (input.isAtField(FieldNames.state)) { + if (!input.trySkipNullValue()) { + state = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -253631266: + case 747541373: { + if (input.isAtField(FieldNames.extraInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(extraInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MapPropInfo clone() { + return new MapPropInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MapPropInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MapPropInfo(), data).checkInitialized(); + } + + public static MapPropInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MapPropInfo(), input).checkInitialized(); + } + + public static MapPropInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MapPropInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MapPropInfo messages + */ + public static MessageFactory getFactory() { + return MapPropInfoFactory.INSTANCE; + } + + private enum MapPropInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MapPropInfo create() { + return MapPropInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName configId = FieldName.forField("configId", "config_id"); + + static final FieldName state = FieldName.forField("state"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName extraInfo = FieldName.forField("extraInfo", "extra_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MarkAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkAvatarCsReqOuterClass.java index f14aaa7..03cc4ee 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkAvatarCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class MarkAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 2; + * optional uint32 avatar_id = 9; */ private int avatarId; /** - * optional bool is_marked = 3; + * optional bool is_marked = 1; */ private boolean isMarked; @@ -39,7 +39,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 2; + * optional uint32 avatar_id = 9; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -47,7 +47,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 2; + * optional uint32 avatar_id = 9; * @return this */ public MarkAvatarCsReq clearAvatarId() { @@ -57,7 +57,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 2; + * optional uint32 avatar_id = 9; * @return the avatarId */ public int getAvatarId() { @@ -65,7 +65,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 2; + * optional uint32 avatar_id = 9; * @param value the avatarId to set * @return this */ @@ -76,7 +76,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional bool is_marked = 3; + * optional bool is_marked = 1; * @return whether the isMarked field is set */ public boolean hasIsMarked() { @@ -84,7 +84,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional bool is_marked = 3; + * optional bool is_marked = 1; * @return this */ public MarkAvatarCsReq clearIsMarked() { @@ -94,7 +94,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional bool is_marked = 3; + * optional bool is_marked = 1; * @return the isMarked */ public boolean getIsMarked() { @@ -102,7 +102,7 @@ public final class MarkAvatarCsReqOuterClass { } /** - * optional bool is_marked = 3; + * optional bool is_marked = 1; * @param value the isMarked to set * @return this */ @@ -177,11 +177,11 @@ public final class MarkAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeBoolNoTag(isMarked); } } @@ -205,16 +205,16 @@ public final class MarkAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 72: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 8) { break; } } - case 24: { + case 8: { // isMarked isMarked = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/MarkAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkAvatarScRspOuterClass.java index 1d9e047..43714a1 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkAvatarScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkAvatarScRspOuterClass.java @@ -19,12 +19,12 @@ public final class MarkAvatarScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 9; */ private int avatarId; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 11; */ private int retcode; @@ -44,7 +44,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 9; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -52,7 +52,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 9; * @return this */ public MarkAvatarScRsp clearAvatarId() { @@ -62,7 +62,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 9; * @return the avatarId */ public int getAvatarId() { @@ -70,7 +70,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 9; * @param value the avatarId to set * @return this */ @@ -81,7 +81,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 11; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +89,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 11; * @return this */ public MarkAvatarScRsp clearRetcode() { @@ -99,7 +99,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -107,7 +107,7 @@ public final class MarkAvatarScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ @@ -225,11 +225,11 @@ public final class MarkAvatarScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { @@ -260,16 +260,16 @@ public final class MarkAvatarScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 72: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 88) { break; } } - case 120: { + case 88: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceShopInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkChestChangedScNotifyOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceShopInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/MarkChestChangedScNotifyOuterClass.java index cf27db9..aa0f2e2 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceShopInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkChestChangedScNotifyOuterClass.java @@ -12,62 +12,62 @@ import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedMessage; -public final class RogueBuffEnhanceShopInfoOuterClass { +public final class MarkChestChangedScNotifyOuterClass { /** - * Protobuf type {@code RogueBuffEnhanceShopInfo} + * Protobuf type {@code MarkChestChangedScNotify} */ - public static final class RogueBuffEnhanceShopInfo extends ProtoMessage implements Cloneable { + public static final class MarkChestChangedScNotify extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; + * repeated .MarkChestInfo chest_group_list = 6; */ - private final RepeatedMessage buffInfo = RepeatedMessage.newEmptyInstance(RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo.getFactory()); + private final RepeatedMessage chestGroupList = RepeatedMessage.newEmptyInstance(MarkChestInfoOuterClass.MarkChestInfo.getFactory()); - private RogueBuffEnhanceShopInfo() { + private MarkChestChangedScNotify() { } /** - * @return a new empty instance of {@code RogueBuffEnhanceShopInfo} + * @return a new empty instance of {@code MarkChestChangedScNotify} */ - public static RogueBuffEnhanceShopInfo newInstance() { - return new RogueBuffEnhanceShopInfo(); + public static MarkChestChangedScNotify newInstance() { + return new MarkChestChangedScNotify(); } /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; - * @return whether the buffInfo field is set + * repeated .MarkChestInfo chest_group_list = 6; + * @return whether the chestGroupList field is set */ - public boolean hasBuffInfo() { + public boolean hasChestGroupList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; + * repeated .MarkChestInfo chest_group_list = 6; * @return this */ - public RogueBuffEnhanceShopInfo clearBuffInfo() { + public MarkChestChangedScNotify clearChestGroupList() { bitField0_ &= ~0x00000001; - buffInfo.clear(); + chestGroupList.clear(); return this; } /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; + * repeated .MarkChestInfo chest_group_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBuffInfo()} if you want to modify it. + * Use {@link #getMutableChestGroupList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getBuffInfo() { - return buffInfo; + public RepeatedMessage getChestGroupList() { + return chestGroupList; } /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; + * repeated .MarkChestInfo chest_group_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75,77 +75,76 @@ public final class RogueBuffEnhanceShopInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableBuffInfo( - ) { + public RepeatedMessage getMutableChestGroupList() { bitField0_ |= 0x00000001; - return buffInfo; + return chestGroupList; } /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; - * @param value the buffInfo to add + * repeated .MarkChestInfo chest_group_list = 6; + * @param value the chestGroupList to add * @return this */ - public RogueBuffEnhanceShopInfo addBuffInfo( - final RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo value) { + public MarkChestChangedScNotify addChestGroupList( + final MarkChestInfoOuterClass.MarkChestInfo value) { bitField0_ |= 0x00000001; - buffInfo.add(value); + chestGroupList.add(value); return this; } /** - * repeated .RogueBuffEnhanceInfo buff_info = 1; - * @param values the buffInfo to add + * repeated .MarkChestInfo chest_group_list = 6; + * @param values the chestGroupList to add * @return this */ - public RogueBuffEnhanceShopInfo addAllBuffInfo( - final RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo... values) { + public MarkChestChangedScNotify addAllChestGroupList( + final MarkChestInfoOuterClass.MarkChestInfo... values) { bitField0_ |= 0x00000001; - buffInfo.addAll(values); + chestGroupList.addAll(values); return this; } @Override - public RogueBuffEnhanceShopInfo copyFrom(final RogueBuffEnhanceShopInfo other) { + public MarkChestChangedScNotify copyFrom(final MarkChestChangedScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - buffInfo.copyFrom(other.buffInfo); + chestGroupList.copyFrom(other.chestGroupList); } return this; } @Override - public RogueBuffEnhanceShopInfo mergeFrom(final RogueBuffEnhanceShopInfo other) { + public MarkChestChangedScNotify mergeFrom(final MarkChestChangedScNotify other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBuffInfo()) { - getMutableBuffInfo().addAll(other.buffInfo); + if (other.hasChestGroupList()) { + getMutableChestGroupList().addAll(other.chestGroupList); } return this; } @Override - public RogueBuffEnhanceShopInfo clear() { + public MarkChestChangedScNotify clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buffInfo.clear(); + chestGroupList.clear(); return this; } @Override - public RogueBuffEnhanceShopInfo clearQuick() { + public MarkChestChangedScNotify clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buffInfo.clearQuick(); + chestGroupList.clearQuick(); return this; } @@ -154,20 +153,20 @@ public final class RogueBuffEnhanceShopInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueBuffEnhanceShopInfo)) { + if (!(o instanceof MarkChestChangedScNotify)) { return false; } - RogueBuffEnhanceShopInfo other = (RogueBuffEnhanceShopInfo) o; + MarkChestChangedScNotify other = (MarkChestChangedScNotify) o; return bitField0_ == other.bitField0_ - && (!hasBuffInfo() || buffInfo.equals(other.buffInfo)); + && (!hasChestGroupList() || chestGroupList.equals(other.chestGroupList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < buffInfo.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(buffInfo.get(i)); + for (int i = 0; i < chestGroupList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(chestGroupList.get(i)); } } } @@ -176,21 +175,21 @@ public final class RogueBuffEnhanceShopInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * buffInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffInfo); + size += (1 * chestGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chestGroupList); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueBuffEnhanceShopInfo mergeFrom(final ProtoSource input) throws IOException { + public MarkChestChangedScNotify mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 10: { - // buffInfo - tag = input.readRepeatedMessage(buffInfo, tag); + case 50: { + // chestGroupList + tag = input.readRepeatedMessage(chestGroupList, tag); bitField0_ |= 0x00000001; if (tag != 0) { break; @@ -214,23 +213,23 @@ public final class RogueBuffEnhanceShopInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.buffInfo, buffInfo); + output.writeRepeatedMessage(FieldNames.chestGroupList, chestGroupList); } output.endObject(); } @Override - public RogueBuffEnhanceShopInfo mergeFrom(final JsonSource input) throws IOException { + public MarkChestChangedScNotify mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1522874463: - case 55707930: { - if (input.isAtField(FieldNames.buffInfo)) { + case -98349636: + case 129195612: { + if (input.isAtField(FieldNames.chestGroupList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffInfo); + input.readRepeatedMessage(chestGroupList); bitField0_ |= 0x00000001; } } else { @@ -249,8 +248,8 @@ public final class RogueBuffEnhanceShopInfoOuterClass { } @Override - public RogueBuffEnhanceShopInfo clone() { - return new RogueBuffEnhanceShopInfo().copyFrom(this); + public MarkChestChangedScNotify clone() { + return new MarkChestChangedScNotify().copyFrom(this); } @Override @@ -258,32 +257,32 @@ public final class RogueBuffEnhanceShopInfoOuterClass { return ((bitField0_) == 0); } - public static RogueBuffEnhanceShopInfo parseFrom(final byte[] data) throws + public static MarkChestChangedScNotify parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffEnhanceShopInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new MarkChestChangedScNotify(), data).checkInitialized(); } - public static RogueBuffEnhanceShopInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffEnhanceShopInfo(), input).checkInitialized(); + public static MarkChestChangedScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MarkChestChangedScNotify(), input).checkInitialized(); } - public static RogueBuffEnhanceShopInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffEnhanceShopInfo(), input).checkInitialized(); + public static MarkChestChangedScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MarkChestChangedScNotify(), input).checkInitialized(); } /** - * @return factory for creating RogueBuffEnhanceShopInfo messages + * @return factory for creating MarkChestChangedScNotify messages */ - public static MessageFactory getFactory() { - return RogueBuffEnhanceShopInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return MarkChestChangedScNotifyFactory.INSTANCE; } - private enum RogueBuffEnhanceShopInfoFactory implements MessageFactory { + private enum MarkChestChangedScNotifyFactory implements MessageFactory { INSTANCE; @Override - public RogueBuffEnhanceShopInfo create() { - return RogueBuffEnhanceShopInfo.newInstance(); + public MarkChestChangedScNotify create() { + return MarkChestChangedScNotify.newInstance(); } } @@ -291,7 +290,7 @@ public final class RogueBuffEnhanceShopInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName buffInfo = FieldName.forField("buffInfo", "buff_info"); + static final FieldName chestGroupList = FieldName.forField("chestGroupList", "chest_group_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MarkChestInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkChestInfoOuterClass.java new file mode 100644 index 0000000..9c0f858 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MarkChestInfoOuterClass.java @@ -0,0 +1,375 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class MarkChestInfoOuterClass { + /** + * Protobuf type {@code MarkChestInfo} + */ + public static final class MarkChestInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 func_id = 7; + */ + private int funcId; + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + */ + private final RepeatedMessage chestPropDefList = RepeatedMessage.newEmptyInstance(MapPropDefInfoOuterClass.MapPropDefInfo.getFactory()); + + private MarkChestInfo() { + } + + /** + * @return a new empty instance of {@code MarkChestInfo} + */ + public static MarkChestInfo newInstance() { + return new MarkChestInfo(); + } + + /** + * optional uint32 func_id = 7; + * @return whether the funcId field is set + */ + public boolean hasFuncId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 func_id = 7; + * @return this + */ + public MarkChestInfo clearFuncId() { + bitField0_ &= ~0x00000001; + funcId = 0; + return this; + } + + /** + * optional uint32 func_id = 7; + * @return the funcId + */ + public int getFuncId() { + return funcId; + } + + /** + * optional uint32 func_id = 7; + * @param value the funcId to set + * @return this + */ + public MarkChestInfo setFuncId(final int value) { + bitField0_ |= 0x00000001; + funcId = value; + return this; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + * @return whether the chestPropDefList field is set + */ + public boolean hasChestPropDefList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + * @return this + */ + public MarkChestInfo clearChestPropDefList() { + bitField0_ &= ~0x00000002; + chestPropDefList.clear(); + return this; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChestPropDefList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChestPropDefList() { + return chestPropDefList; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableChestPropDefList() { + bitField0_ |= 0x00000002; + return chestPropDefList; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + * @param value the chestPropDefList to add + * @return this + */ + public MarkChestInfo addChestPropDefList(final MapPropDefInfoOuterClass.MapPropDefInfo value) { + bitField0_ |= 0x00000002; + chestPropDefList.add(value); + return this; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 3; + * @param values the chestPropDefList to add + * @return this + */ + public MarkChestInfo addAllChestPropDefList( + final MapPropDefInfoOuterClass.MapPropDefInfo... values) { + bitField0_ |= 0x00000002; + chestPropDefList.addAll(values); + return this; + } + + @Override + public MarkChestInfo copyFrom(final MarkChestInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + funcId = other.funcId; + chestPropDefList.copyFrom(other.chestPropDefList); + } + return this; + } + + @Override + public MarkChestInfo mergeFrom(final MarkChestInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFuncId()) { + setFuncId(other.funcId); + } + if (other.hasChestPropDefList()) { + getMutableChestPropDefList().addAll(other.chestPropDefList); + } + return this; + } + + @Override + public MarkChestInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + funcId = 0; + chestPropDefList.clear(); + return this; + } + + @Override + public MarkChestInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chestPropDefList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MarkChestInfo)) { + return false; + } + MarkChestInfo other = (MarkChestInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFuncId() || funcId == other.funcId) + && (!hasChestPropDefList() || chestPropDefList.equals(other.chestPropDefList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(funcId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < chestPropDefList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(chestPropDefList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(funcId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * chestPropDefList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chestPropDefList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MarkChestInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // funcId + funcId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // chestPropDefList + tag = input.readRepeatedMessage(chestPropDefList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.funcId, funcId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.chestPropDefList, chestPropDefList); + } + output.endObject(); + } + + @Override + public MarkChestInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1263367425: + case -509663114: { + if (input.isAtField(FieldNames.funcId)) { + if (!input.trySkipNullValue()) { + funcId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1174803359: + case 1976709430: { + if (input.isAtField(FieldNames.chestPropDefList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chestPropDefList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MarkChestInfo clone() { + return new MarkChestInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MarkChestInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MarkChestInfo(), data).checkInitialized(); + } + + public static MarkChestInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MarkChestInfo(), input).checkInitialized(); + } + + public static MarkChestInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MarkChestInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MarkChestInfo messages + */ + public static MessageFactory getFactory() { + return MarkChestInfoFactory.INSTANCE; + } + + private enum MarkChestInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MarkChestInfo create() { + return MarkChestInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName funcId = FieldName.forField("funcId", "func_id"); + + static final FieldName chestPropDefList = FieldName.forField("chestPropDefList", "chest_prop_def_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java index bbfd2ff..f5061bb 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkReadMailCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class MarkReadMailCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 3; + * optional uint32 id = 14; */ private int id; @@ -34,7 +34,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 14; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 14; * @return this */ public MarkReadMailCsReq clearId() { @@ -52,7 +52,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 14; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public final class MarkReadMailCsReqOuterClass { } /** - * optional uint32 id = 3; + * optional uint32 id = 14; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public final class MarkReadMailCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public final class MarkReadMailCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 112: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java index fde32df..6505155 100644 --- a/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MarkReadMailScRspOuterClass.java @@ -19,15 +19,15 @@ public final class MarkReadMailScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; - */ - private int retcode; - - /** - * optional uint32 id = 13; + * optional uint32 id = 14; */ private int id; + /** + * optional uint32 retcode = 15; + */ + private int retcode; + private MarkReadMailScRsp() { } @@ -39,62 +39,25 @@ public final class MarkReadMailScRspOuterClass { } /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set + * optional uint32 id = 14; + * @return whether the id field is set */ - public boolean hasRetcode() { + public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 10; - * @return this - */ - public MarkReadMailScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 10; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 10; - * @param value the retcode to set - * @return this - */ - public MarkReadMailScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 id = 13; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 id = 13; + * optional uint32 id = 14; * @return this */ public MarkReadMailScRsp clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } /** - * optional uint32 id = 13; + * optional uint32 id = 14; * @return the id */ public int getId() { @@ -102,23 +65,60 @@ public final class MarkReadMailScRspOuterClass { } /** - * optional uint32 id = 13; + * optional uint32 id = 14; * @param value the id to set * @return this */ public MarkReadMailScRsp setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public MarkReadMailScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public MarkReadMailScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public MarkReadMailScRsp copyFrom(final MarkReadMailScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; id = other.id; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class MarkReadMailScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasId()) { setId(other.id); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class MarkReadMailScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; id = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class MarkReadMailScRspOuterClass { } MarkReadMailScRsp other = (MarkReadMailScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasId() || id == other.id); + && (!hasId() || id == other.id) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(id); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class MarkReadMailScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,18 +205,18 @@ public final class MarkReadMailScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // retcode - retcode = input.readUInt32(); + case 112: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { - // id - id = input.readUInt32(); + case 120: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class MarkReadMailScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,10 @@ public final class MarkReadMailScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class MarkReadMailScRspOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class MarkReadMailScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName id = FieldName.forField("id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java index ee5c9d1..72d60bc 100644 --- a/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MaterialOuterClass.java @@ -19,12 +19,12 @@ public final class MaterialOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 tid = 6; + * optional uint32 tid = 11; */ private int tid; /** - * optional uint32 num = 10; + * optional uint32 num = 12; */ private int num; @@ -39,7 +39,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 tid = 6; + * optional uint32 tid = 11; * @return whether the tid field is set */ public boolean hasTid() { @@ -47,7 +47,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 tid = 6; + * optional uint32 tid = 11; * @return this */ public Material clearTid() { @@ -57,7 +57,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 tid = 6; + * optional uint32 tid = 11; * @return the tid */ public int getTid() { @@ -65,7 +65,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 tid = 6; + * optional uint32 tid = 11; * @param value the tid to set * @return this */ @@ -76,7 +76,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 num = 10; + * optional uint32 num = 12; * @return whether the num field is set */ public boolean hasNum() { @@ -84,7 +84,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 num = 10; + * optional uint32 num = 12; * @return this */ public Material clearNum() { @@ -94,7 +94,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 num = 10; + * optional uint32 num = 12; * @return the num */ public int getNum() { @@ -102,7 +102,7 @@ public final class MaterialOuterClass { } /** - * optional uint32 num = 10; + * optional uint32 num = 12; * @param value the num to set * @return this */ @@ -177,11 +177,11 @@ public final class MaterialOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(tid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(num); } } @@ -205,16 +205,16 @@ public final class MaterialOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 88: { // tid tid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { + case 96: { // num num = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/MaterialSubmitInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MaterialSubmitInfoOuterClass.java new file mode 100644 index 0000000..58f6be1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MaterialSubmitInfoOuterClass.java @@ -0,0 +1,502 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class MaterialSubmitInfoOuterClass { + /** + * Protobuf type {@code MaterialSubmitInfo} + */ + public static final class MaterialSubmitInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 activity_id = 10; + */ + private int activityId; + + /** + * optional uint32 belobog_shop_id = 15; + */ + private int belobogShopId; + + /** + * optional bool completed = 7; + */ + private boolean completed; + + /** + * optional bool is_first_reward_taken = 8; + */ + private boolean isFirstRewardTaken; + + private MaterialSubmitInfo() { + } + + /** + * @return a new empty instance of {@code MaterialSubmitInfo} + */ + public static MaterialSubmitInfo newInstance() { + return new MaterialSubmitInfo(); + } + + /** + * optional uint32 activity_id = 10; + * @return whether the activityId field is set + */ + public boolean hasActivityId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 activity_id = 10; + * @return this + */ + public MaterialSubmitInfo clearActivityId() { + bitField0_ &= ~0x00000001; + activityId = 0; + return this; + } + + /** + * optional uint32 activity_id = 10; + * @return the activityId + */ + public int getActivityId() { + return activityId; + } + + /** + * optional uint32 activity_id = 10; + * @param value the activityId to set + * @return this + */ + public MaterialSubmitInfo setActivityId(final int value) { + bitField0_ |= 0x00000001; + activityId = value; + return this; + } + + /** + * optional uint32 belobog_shop_id = 15; + * @return whether the belobogShopId field is set + */ + public boolean hasBelobogShopId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 belobog_shop_id = 15; + * @return this + */ + public MaterialSubmitInfo clearBelobogShopId() { + bitField0_ &= ~0x00000002; + belobogShopId = 0; + return this; + } + + /** + * optional uint32 belobog_shop_id = 15; + * @return the belobogShopId + */ + public int getBelobogShopId() { + return belobogShopId; + } + + /** + * optional uint32 belobog_shop_id = 15; + * @param value the belobogShopId to set + * @return this + */ + public MaterialSubmitInfo setBelobogShopId(final int value) { + bitField0_ |= 0x00000002; + belobogShopId = value; + return this; + } + + /** + * optional bool completed = 7; + * @return whether the completed field is set + */ + public boolean hasCompleted() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool completed = 7; + * @return this + */ + public MaterialSubmitInfo clearCompleted() { + bitField0_ &= ~0x00000004; + completed = false; + return this; + } + + /** + * optional bool completed = 7; + * @return the completed + */ + public boolean getCompleted() { + return completed; + } + + /** + * optional bool completed = 7; + * @param value the completed to set + * @return this + */ + public MaterialSubmitInfo setCompleted(final boolean value) { + bitField0_ |= 0x00000004; + completed = value; + return this; + } + + /** + * optional bool is_first_reward_taken = 8; + * @return whether the isFirstRewardTaken field is set + */ + public boolean hasIsFirstRewardTaken() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional bool is_first_reward_taken = 8; + * @return this + */ + public MaterialSubmitInfo clearIsFirstRewardTaken() { + bitField0_ &= ~0x00000008; + isFirstRewardTaken = false; + return this; + } + + /** + * optional bool is_first_reward_taken = 8; + * @return the isFirstRewardTaken + */ + public boolean getIsFirstRewardTaken() { + return isFirstRewardTaken; + } + + /** + * optional bool is_first_reward_taken = 8; + * @param value the isFirstRewardTaken to set + * @return this + */ + public MaterialSubmitInfo setIsFirstRewardTaken(final boolean value) { + bitField0_ |= 0x00000008; + isFirstRewardTaken = value; + return this; + } + + @Override + public MaterialSubmitInfo copyFrom(final MaterialSubmitInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + activityId = other.activityId; + belobogShopId = other.belobogShopId; + completed = other.completed; + isFirstRewardTaken = other.isFirstRewardTaken; + } + return this; + } + + @Override + public MaterialSubmitInfo mergeFrom(final MaterialSubmitInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasActivityId()) { + setActivityId(other.activityId); + } + if (other.hasBelobogShopId()) { + setBelobogShopId(other.belobogShopId); + } + if (other.hasCompleted()) { + setCompleted(other.completed); + } + if (other.hasIsFirstRewardTaken()) { + setIsFirstRewardTaken(other.isFirstRewardTaken); + } + return this; + } + + @Override + public MaterialSubmitInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + activityId = 0; + belobogShopId = 0; + completed = false; + isFirstRewardTaken = false; + return this; + } + + @Override + public MaterialSubmitInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MaterialSubmitInfo)) { + return false; + } + MaterialSubmitInfo other = (MaterialSubmitInfo) o; + return bitField0_ == other.bitField0_ + && (!hasActivityId() || activityId == other.activityId) + && (!hasBelobogShopId() || belobogShopId == other.belobogShopId) + && (!hasCompleted() || completed == other.completed) + && (!hasIsFirstRewardTaken() || isFirstRewardTaken == other.isFirstRewardTaken); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(belobogShopId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeBoolNoTag(completed); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); + output.writeBoolNoTag(isFirstRewardTaken); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(belobogShopId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MaterialSubmitInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // activityId + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // belobogShopId + belobogShopId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // completed + completed = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // isFirstRewardTaken + isFirstRewardTaken = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.activityId, activityId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.belobogShopId, belobogShopId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.completed, completed); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeBool(FieldNames.isFirstRewardTaken, isFirstRewardTaken); + } + output.endObject(); + } + + @Override + public MaterialSubmitInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 2048619658: + case -917278645: { + if (input.isAtField(FieldNames.activityId)) { + if (!input.trySkipNullValue()) { + activityId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1130830139: + case 310288569: { + if (input.isAtField(FieldNames.belobogShopId)) { + if (!input.trySkipNullValue()) { + belobogShopId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1402931637: { + if (input.isAtField(FieldNames.completed)) { + if (!input.trySkipNullValue()) { + completed = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 863586130: + case 442788379: { + if (input.isAtField(FieldNames.isFirstRewardTaken)) { + if (!input.trySkipNullValue()) { + isFirstRewardTaken = input.readBool(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MaterialSubmitInfo clone() { + return new MaterialSubmitInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MaterialSubmitInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MaterialSubmitInfo(), data).checkInitialized(); + } + + public static MaterialSubmitInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MaterialSubmitInfo(), input).checkInitialized(); + } + + public static MaterialSubmitInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MaterialSubmitInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MaterialSubmitInfo messages + */ + public static MessageFactory getFactory() { + return MaterialSubmitInfoFactory.INSTANCE; + } + + private enum MaterialSubmitInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MaterialSubmitInfo create() { + return MaterialSubmitInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName activityId = FieldName.forField("activityId", "activity_id"); + + static final FieldName belobogShopId = FieldName.forField("belobogShopId", "belobog_shop_id"); + + static final FieldName completed = FieldName.forField("completed"); + + static final FieldName isFirstRewardTaken = FieldName.forField("isFirstRewardTaken", "is_first_reward_taken"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java index 1f5e5d0..f8859e8 100644 --- a/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MazeChestOuterClass.java @@ -19,17 +19,17 @@ public final class MazeChestOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 total_amount_list = 9; + * optional uint32 total_amount_list = 12; */ private int totalAmountList; /** - * optional uint32 unlocked_amount_list = 12; + * optional uint32 unlocked_amount_list = 14; */ private int unlockedAmountList; /** - * optional .MapInfoChestType map_info_chest_type = 4; + * optional .MapInfoChestType map_info_chest_type = 10; */ private int mapInfoChestType; @@ -44,7 +44,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 total_amount_list = 9; + * optional uint32 total_amount_list = 12; * @return whether the totalAmountList field is set */ public boolean hasTotalAmountList() { @@ -52,7 +52,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 total_amount_list = 9; + * optional uint32 total_amount_list = 12; * @return this */ public MazeChest clearTotalAmountList() { @@ -62,7 +62,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 total_amount_list = 9; + * optional uint32 total_amount_list = 12; * @return the totalAmountList */ public int getTotalAmountList() { @@ -70,7 +70,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 total_amount_list = 9; + * optional uint32 total_amount_list = 12; * @param value the totalAmountList to set * @return this */ @@ -81,7 +81,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 unlocked_amount_list = 12; + * optional uint32 unlocked_amount_list = 14; * @return whether the unlockedAmountList field is set */ public boolean hasUnlockedAmountList() { @@ -89,7 +89,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 unlocked_amount_list = 12; + * optional uint32 unlocked_amount_list = 14; * @return this */ public MazeChest clearUnlockedAmountList() { @@ -99,7 +99,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 unlocked_amount_list = 12; + * optional uint32 unlocked_amount_list = 14; * @return the unlockedAmountList */ public int getUnlockedAmountList() { @@ -107,7 +107,7 @@ public final class MazeChestOuterClass { } /** - * optional uint32 unlocked_amount_list = 12; + * optional uint32 unlocked_amount_list = 14; * @param value the unlockedAmountList to set * @return this */ @@ -118,7 +118,7 @@ public final class MazeChestOuterClass { } /** - * optional .MapInfoChestType map_info_chest_type = 4; + * optional .MapInfoChestType map_info_chest_type = 10; * @return whether the mapInfoChestType field is set */ public boolean hasMapInfoChestType() { @@ -126,7 +126,7 @@ public final class MazeChestOuterClass { } /** - * optional .MapInfoChestType map_info_chest_type = 4; + * optional .MapInfoChestType map_info_chest_type = 10; * @return this */ public MazeChest clearMapInfoChestType() { @@ -136,7 +136,7 @@ public final class MazeChestOuterClass { } /** - * optional .MapInfoChestType map_info_chest_type = 4; + * optional .MapInfoChestType map_info_chest_type = 10; * @return the mapInfoChestType */ public MapInfoChestTypeOuterClass.MapInfoChestType getMapInfoChestType() { @@ -169,7 +169,7 @@ public final class MazeChestOuterClass { } /** - * optional .MapInfoChestType map_info_chest_type = 4; + * optional .MapInfoChestType map_info_chest_type = 10; * @param value the mapInfoChestType to set * @return this */ @@ -250,15 +250,15 @@ public final class MazeChestOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(totalAmountList); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(unlockedAmountList); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 80); output.writeEnumNoTag(mapInfoChestType); } } @@ -285,25 +285,25 @@ public final class MazeChestOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 96: { // totalAmountList totalAmountList = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { + case 112: { // unlockedAmountList unlockedAmountList = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 32) { + if (tag != 80) { break; } } - case 32: { + case 80: { // mapInfoChestType final int value = input.readInt32(); if (MapInfoChestTypeOuterClass.MapInfoChestType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java deleted file mode 100644 index f18c423..0000000 --- a/src/generated/main/emu/lunarcore/proto/MazeMapDataOuterClass.java +++ /dev/null @@ -1,1006 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class MazeMapDataOuterClass { - /** - * Protobuf type {@code MazeMapData} - */ - public static final class MazeMapData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 6; - */ - private int retcode; - - /** - * optional uint32 entry_id = 9; - */ - private int entryId; - - /** - * optional uint32 content_id = 13; - */ - private int contentId; - - /** - * repeated uint32 lighten_section_list = 10; - */ - private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 unlocked_teleport_list = 11; - */ - private final RepeatedInt unlockedTeleportList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .MazeGroup maze_group_list = 1; - */ - private final RepeatedMessage mazeGroupList = RepeatedMessage.newEmptyInstance(MazeGroupOuterClass.MazeGroup.getFactory()); - - /** - * repeated .MazeProp maze_prop_list = 5; - */ - private final RepeatedMessage mazePropList = RepeatedMessage.newEmptyInstance(MazePropOuterClass.MazeProp.getFactory()); - - /** - * repeated .MazeChest unlocked_chest_list = 7; - */ - private final RepeatedMessage unlockedChestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); - - private MazeMapData() { - } - - /** - * @return a new empty instance of {@code MazeMapData} - */ - public static MazeMapData newInstance() { - return new MazeMapData(); - } - - /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 6; - * @return this - */ - public MazeMapData clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 6; - * @param value the retcode to set - * @return this - */ - public MazeMapData setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 entry_id = 9; - * @return whether the entryId field is set - */ - public boolean hasEntryId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 entry_id = 9; - * @return this - */ - public MazeMapData clearEntryId() { - bitField0_ &= ~0x00000002; - entryId = 0; - return this; - } - - /** - * optional uint32 entry_id = 9; - * @return the entryId - */ - public int getEntryId() { - return entryId; - } - - /** - * optional uint32 entry_id = 9; - * @param value the entryId to set - * @return this - */ - public MazeMapData setEntryId(final int value) { - bitField0_ |= 0x00000002; - entryId = value; - return this; - } - - /** - * optional uint32 content_id = 13; - * @return whether the contentId field is set - */ - public boolean hasContentId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 content_id = 13; - * @return this - */ - public MazeMapData clearContentId() { - bitField0_ &= ~0x00000004; - contentId = 0; - return this; - } - - /** - * optional uint32 content_id = 13; - * @return the contentId - */ - public int getContentId() { - return contentId; - } - - /** - * optional uint32 content_id = 13; - * @param value the contentId to set - * @return this - */ - public MazeMapData setContentId(final int value) { - bitField0_ |= 0x00000004; - contentId = value; - return this; - } - - /** - * repeated uint32 lighten_section_list = 10; - * @return whether the lightenSectionList field is set - */ - public boolean hasLightenSectionList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 lighten_section_list = 10; - * @return this - */ - public MazeMapData clearLightenSectionList() { - bitField0_ &= ~0x00000008; - lightenSectionList.clear(); - return this; - } - - /** - * repeated uint32 lighten_section_list = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLightenSectionList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getLightenSectionList() { - return lightenSectionList; - } - - /** - * repeated uint32 lighten_section_list = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableLightenSectionList() { - bitField0_ |= 0x00000008; - return lightenSectionList; - } - - /** - * repeated uint32 lighten_section_list = 10; - * @param value the lightenSectionList to add - * @return this - */ - public MazeMapData addLightenSectionList(final int value) { - bitField0_ |= 0x00000008; - lightenSectionList.add(value); - return this; - } - - /** - * repeated uint32 lighten_section_list = 10; - * @param values the lightenSectionList to add - * @return this - */ - public MazeMapData addAllLightenSectionList(final int... values) { - bitField0_ |= 0x00000008; - lightenSectionList.addAll(values); - return this; - } - - /** - * repeated uint32 unlocked_teleport_list = 11; - * @return whether the unlockedTeleportList field is set - */ - public boolean hasUnlockedTeleportList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 unlocked_teleport_list = 11; - * @return this - */ - public MazeMapData clearUnlockedTeleportList() { - bitField0_ &= ~0x00000010; - unlockedTeleportList.clear(); - return this; - } - - /** - * repeated uint32 unlocked_teleport_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUnlockedTeleportList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getUnlockedTeleportList() { - return unlockedTeleportList; - } - - /** - * repeated uint32 unlocked_teleport_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableUnlockedTeleportList() { - bitField0_ |= 0x00000010; - return unlockedTeleportList; - } - - /** - * repeated uint32 unlocked_teleport_list = 11; - * @param value the unlockedTeleportList to add - * @return this - */ - public MazeMapData addUnlockedTeleportList(final int value) { - bitField0_ |= 0x00000010; - unlockedTeleportList.add(value); - return this; - } - - /** - * repeated uint32 unlocked_teleport_list = 11; - * @param values the unlockedTeleportList to add - * @return this - */ - public MazeMapData addAllUnlockedTeleportList(final int... values) { - bitField0_ |= 0x00000010; - unlockedTeleportList.addAll(values); - return this; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * @return whether the mazeGroupList field is set - */ - public boolean hasMazeGroupList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * @return this - */ - public MazeMapData clearMazeGroupList() { - bitField0_ &= ~0x00000020; - mazeGroupList.clear(); - return this; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMazeGroupList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazeGroupList() { - return mazeGroupList; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazeGroupList() { - bitField0_ |= 0x00000020; - return mazeGroupList; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * @param value the mazeGroupList to add - * @return this - */ - public MazeMapData addMazeGroupList(final MazeGroupOuterClass.MazeGroup value) { - bitField0_ |= 0x00000020; - mazeGroupList.add(value); - return this; - } - - /** - * repeated .MazeGroup maze_group_list = 1; - * @param values the mazeGroupList to add - * @return this - */ - public MazeMapData addAllMazeGroupList(final MazeGroupOuterClass.MazeGroup... values) { - bitField0_ |= 0x00000020; - mazeGroupList.addAll(values); - return this; - } - - /** - * repeated .MazeProp maze_prop_list = 5; - * @return whether the mazePropList field is set - */ - public boolean hasMazePropList() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated .MazeProp maze_prop_list = 5; - * @return this - */ - public MazeMapData clearMazePropList() { - bitField0_ &= ~0x00000040; - mazePropList.clear(); - return this; - } - - /** - * repeated .MazeProp maze_prop_list = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMazePropList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazePropList() { - return mazePropList; - } - - /** - * repeated .MazeProp maze_prop_list = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazePropList() { - bitField0_ |= 0x00000040; - return mazePropList; - } - - /** - * repeated .MazeProp maze_prop_list = 5; - * @param value the mazePropList to add - * @return this - */ - public MazeMapData addMazePropList(final MazePropOuterClass.MazeProp value) { - bitField0_ |= 0x00000040; - mazePropList.add(value); - return this; - } - - /** - * repeated .MazeProp maze_prop_list = 5; - * @param values the mazePropList to add - * @return this - */ - public MazeMapData addAllMazePropList(final MazePropOuterClass.MazeProp... values) { - bitField0_ |= 0x00000040; - mazePropList.addAll(values); - return this; - } - - /** - * repeated .MazeChest unlocked_chest_list = 7; - * @return whether the unlockedChestList field is set - */ - public boolean hasUnlockedChestList() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated .MazeChest unlocked_chest_list = 7; - * @return this - */ - public MazeMapData clearUnlockedChestList() { - bitField0_ &= ~0x00000080; - unlockedChestList.clear(); - return this; - } - - /** - * repeated .MazeChest unlocked_chest_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUnlockedChestList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getUnlockedChestList() { - return unlockedChestList; - } - - /** - * repeated .MazeChest unlocked_chest_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableUnlockedChestList() { - bitField0_ |= 0x00000080; - return unlockedChestList; - } - - /** - * repeated .MazeChest unlocked_chest_list = 7; - * @param value the unlockedChestList to add - * @return this - */ - public MazeMapData addUnlockedChestList(final MazeChestOuterClass.MazeChest value) { - bitField0_ |= 0x00000080; - unlockedChestList.add(value); - return this; - } - - /** - * repeated .MazeChest unlocked_chest_list = 7; - * @param values the unlockedChestList to add - * @return this - */ - public MazeMapData addAllUnlockedChestList(final MazeChestOuterClass.MazeChest... values) { - bitField0_ |= 0x00000080; - unlockedChestList.addAll(values); - return this; - } - - @Override - public MazeMapData copyFrom(final MazeMapData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - entryId = other.entryId; - contentId = other.contentId; - lightenSectionList.copyFrom(other.lightenSectionList); - unlockedTeleportList.copyFrom(other.unlockedTeleportList); - mazeGroupList.copyFrom(other.mazeGroupList); - mazePropList.copyFrom(other.mazePropList); - unlockedChestList.copyFrom(other.unlockedChestList); - } - return this; - } - - @Override - public MazeMapData mergeFrom(final MazeMapData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasEntryId()) { - setEntryId(other.entryId); - } - if (other.hasContentId()) { - setContentId(other.contentId); - } - if (other.hasLightenSectionList()) { - getMutableLightenSectionList().addAll(other.lightenSectionList); - } - if (other.hasUnlockedTeleportList()) { - getMutableUnlockedTeleportList().addAll(other.unlockedTeleportList); - } - if (other.hasMazeGroupList()) { - getMutableMazeGroupList().addAll(other.mazeGroupList); - } - if (other.hasMazePropList()) { - getMutableMazePropList().addAll(other.mazePropList); - } - if (other.hasUnlockedChestList()) { - getMutableUnlockedChestList().addAll(other.unlockedChestList); - } - return this; - } - - @Override - public MazeMapData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - entryId = 0; - contentId = 0; - lightenSectionList.clear(); - unlockedTeleportList.clear(); - mazeGroupList.clear(); - mazePropList.clear(); - unlockedChestList.clear(); - return this; - } - - @Override - public MazeMapData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - lightenSectionList.clear(); - unlockedTeleportList.clear(); - mazeGroupList.clearQuick(); - mazePropList.clearQuick(); - unlockedChestList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof MazeMapData)) { - return false; - } - MazeMapData other = (MazeMapData) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasEntryId() || entryId == other.entryId) - && (!hasContentId() || contentId == other.contentId) - && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) - && (!hasUnlockedTeleportList() || unlockedTeleportList.equals(other.unlockedTeleportList)) - && (!hasMazeGroupList() || mazeGroupList.equals(other.mazeGroupList)) - && (!hasMazePropList() || mazePropList.equals(other.mazePropList)) - && (!hasUnlockedChestList() || unlockedChestList.equals(other.unlockedChestList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(entryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(contentId); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(lightenSectionList.array()[i]); - } - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < unlockedTeleportList.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(unlockedTeleportList.array()[i]); - } - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < mazeGroupList.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(mazeGroupList.get(i)); - } - } - if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < mazePropList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(mazePropList.get(i)); - } - } - if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < unlockedChestList.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(unlockedChestList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(contentId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * unlockedTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockedTeleportList); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * mazeGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeGroupList); - } - if ((bitField0_ & 0x00000040) != 0) { - size += (1 * mazePropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazePropList); - } - if ((bitField0_ & 0x00000080) != 0) { - size += (1 * unlockedChestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockedChestList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public MazeMapData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // entryId - entryId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // contentId - contentId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // lightenSectionList [packed=true] - input.readPackedUInt32(lightenSectionList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // unlockedTeleportList [packed=true] - input.readPackedUInt32(unlockedTeleportList, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // mazeGroupList - tag = input.readRepeatedMessage(mazeGroupList, tag); - bitField0_ |= 0x00000020; - if (tag != 42) { - break; - } - } - case 42: { - // mazePropList - tag = input.readRepeatedMessage(mazePropList, tag); - bitField0_ |= 0x00000040; - if (tag != 58) { - break; - } - } - case 58: { - // unlockedChestList - tag = input.readRepeatedMessage(unlockedChestList, tag); - bitField0_ |= 0x00000080; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 80: { - // lightenSectionList [packed=false] - tag = input.readRepeatedUInt32(lightenSectionList, tag); - bitField0_ |= 0x00000008; - break; - } - case 88: { - // unlockedTeleportList [packed=false] - tag = input.readRepeatedUInt32(unlockedTeleportList, tag); - bitField0_ |= 0x00000010; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.contentId, contentId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.unlockedTeleportList, unlockedTeleportList); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.mazeGroupList, mazeGroupList); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedMessage(FieldNames.mazePropList, mazePropList); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.unlockedChestList, unlockedChestList); - } - output.endObject(); - } - - @Override - public MazeMapData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { - if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -407108748: - case 264552097: { - if (input.isAtField(FieldNames.contentId)) { - if (!input.trySkipNullValue()) { - contentId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1942343836: - case 1328850360: { - if (input.isAtField(FieldNames.lightenSectionList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(lightenSectionList); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 856936684: - case -10753834: { - if (input.isAtField(FieldNames.unlockedTeleportList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(unlockedTeleportList); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -317054274: - case 407435998: { - if (input.isAtField(FieldNames.mazeGroupList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeGroupList); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1676123008: - case 1875839866: { - if (input.isAtField(FieldNames.mazePropList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazePropList); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -337762404: - case 231688696: { - if (input.isAtField(FieldNames.unlockedChestList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(unlockedChestList); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public MazeMapData clone() { - return new MazeMapData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static MazeMapData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new MazeMapData(), data).checkInitialized(); - } - - public static MazeMapData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeMapData(), input).checkInitialized(); - } - - public static MazeMapData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new MazeMapData(), input).checkInitialized(); - } - - /** - * @return factory for creating MazeMapData messages - */ - public static MessageFactory getFactory() { - return MazeMapDataFactory.INSTANCE; - } - - private enum MazeMapDataFactory implements MessageFactory { - INSTANCE; - - @Override - public MazeMapData create() { - return MazeMapData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName entryId = FieldName.forField("entryId", "entry_id"); - - static final FieldName contentId = FieldName.forField("contentId", "content_id"); - - static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); - - static final FieldName unlockedTeleportList = FieldName.forField("unlockedTeleportList", "unlocked_teleport_list"); - - static final FieldName mazeGroupList = FieldName.forField("mazeGroupList", "maze_group_list"); - - static final FieldName mazePropList = FieldName.forField("mazePropList", "maze_prop_list"); - - static final FieldName unlockedChestList = FieldName.forField("unlockedChestList", "unlocked_chest_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/MissionCustomValueDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionCustomValueDataOuterClass.java index de39dff..46c4975 100644 --- a/src/generated/main/emu/lunarcore/proto/MissionCustomValueDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MissionCustomValueDataOuterClass.java @@ -19,7 +19,7 @@ public final class MissionCustomValueDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 custom_value = 10; + * optional uint32 custom_value = 4; */ private int customValue; @@ -39,7 +39,7 @@ public final class MissionCustomValueDataOuterClass { } /** - * optional uint32 custom_value = 10; + * optional uint32 custom_value = 4; * @return whether the customValue field is set */ public boolean hasCustomValue() { @@ -47,7 +47,7 @@ public final class MissionCustomValueDataOuterClass { } /** - * optional uint32 custom_value = 10; + * optional uint32 custom_value = 4; * @return this */ public MissionCustomValueData clearCustomValue() { @@ -57,7 +57,7 @@ public final class MissionCustomValueDataOuterClass { } /** - * optional uint32 custom_value = 10; + * optional uint32 custom_value = 4; * @return the customValue */ public int getCustomValue() { @@ -65,7 +65,7 @@ public final class MissionCustomValueDataOuterClass { } /** - * optional uint32 custom_value = 10; + * optional uint32 custom_value = 4; * @param value the customValue to set * @return this */ @@ -177,7 +177,7 @@ public final class MissionCustomValueDataOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(customValue); } if ((bitField0_ & 0x00000002) != 0) { @@ -205,7 +205,7 @@ public final class MissionCustomValueDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 32: { // customValue customValue = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java index 6d5cbb5..b74cde0 100644 --- a/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MissionOuterClass.java @@ -18,18 +18,18 @@ public final class MissionOuterClass { public static final class Mission extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 progress = 3; - */ - private int progress; - /** * optional uint32 id = 5; */ private int id; /** - * optional .MissionStatus status = 6; + * optional uint32 progress = 14; + */ + private int progress; + + /** + * optional .MissionStatus status = 12; */ private int status; @@ -43,49 +43,12 @@ public final class MissionOuterClass { return new Mission(); } - /** - * optional uint32 progress = 3; - * @return whether the progress field is set - */ - public boolean hasProgress() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 progress = 3; - * @return this - */ - public Mission clearProgress() { - bitField0_ &= ~0x00000001; - progress = 0; - return this; - } - - /** - * optional uint32 progress = 3; - * @return the progress - */ - public int getProgress() { - return progress; - } - - /** - * optional uint32 progress = 3; - * @param value the progress to set - * @return this - */ - public Mission setProgress(final int value) { - bitField0_ |= 0x00000001; - progress = value; - return this; - } - /** * optional uint32 id = 5; * @return whether the id field is set */ public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -93,7 +56,7 @@ public final class MissionOuterClass { * @return this */ public Mission clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } @@ -112,13 +75,50 @@ public final class MissionOuterClass { * @return this */ public Mission setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } /** - * optional .MissionStatus status = 6; + * optional uint32 progress = 14; + * @return whether the progress field is set + */ + public boolean hasProgress() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 progress = 14; + * @return this + */ + public Mission clearProgress() { + bitField0_ &= ~0x00000002; + progress = 0; + return this; + } + + /** + * optional uint32 progress = 14; + * @return the progress + */ + public int getProgress() { + return progress; + } + + /** + * optional uint32 progress = 14; + * @param value the progress to set + * @return this + */ + public Mission setProgress(final int value) { + bitField0_ |= 0x00000002; + progress = value; + return this; + } + + /** + * optional .MissionStatus status = 12; * @return whether the status field is set */ public boolean hasStatus() { @@ -126,7 +126,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 6; + * optional .MissionStatus status = 12; * @return this */ public Mission clearStatus() { @@ -136,7 +136,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 6; + * optional .MissionStatus status = 12; * @return the status */ public MissionStatusOuterClass.MissionStatus getStatus() { @@ -169,7 +169,7 @@ public final class MissionOuterClass { } /** - * optional .MissionStatus status = 6; + * optional .MissionStatus status = 12; * @param value the status to set * @return this */ @@ -184,8 +184,8 @@ public final class MissionOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - progress = other.progress; id = other.id; + progress = other.progress; status = other.status; } return this; @@ -197,12 +197,12 @@ public final class MissionOuterClass { return this; } cachedSize = -1; - if (other.hasProgress()) { - setProgress(other.progress); - } if (other.hasId()) { setId(other.id); } + if (other.hasProgress()) { + setProgress(other.progress); + } if (other.hasStatus()) { setStatusValue(other.status); } @@ -216,8 +216,8 @@ public final class MissionOuterClass { } cachedSize = -1; bitField0_ = 0; - progress = 0; id = 0; + progress = 0; status = 0; return this; } @@ -242,23 +242,23 @@ public final class MissionOuterClass { } Mission other = (Mission) o; return bitField0_ == other.bitField0_ - && (!hasProgress() || progress == other.progress) && (!hasId() || id == other.id) + && (!hasProgress() || progress == other.progress) && (!hasStatus() || status == other.status); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(progress); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); output.writeUInt32NoTag(id); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(progress); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 96); output.writeEnumNoTag(status); } } @@ -267,10 +267,10 @@ public final class MissionOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(status); @@ -285,25 +285,25 @@ public final class MissionOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // progress - progress = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } case 40: { // id id = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 112) { break; } } - case 48: { + case 112: { + // progress + progress = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { // status final int value = input.readInt32(); if (MissionStatusOuterClass.MissionStatus.forNumber(value) != null) { @@ -333,10 +333,10 @@ public final class MissionOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.progress, progress); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.progress, progress); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.status, status, MissionStatusOuterClass.MissionStatus.converter()); @@ -351,10 +351,10 @@ public final class MissionOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1001078227: { - if (input.isAtField(FieldNames.progress)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - progress = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -362,10 +362,10 @@ public final class MissionOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case -1001078227: { + if (input.isAtField(FieldNames.progress)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + progress = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -441,10 +441,10 @@ public final class MissionOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName progress = FieldName.forField("progress"); - static final FieldName id = FieldName.forField("id"); + static final FieldName progress = FieldName.forField("progress"); + static final FieldName status = FieldName.forField("status"); } } diff --git a/src/generated/main/emu/lunarcore/proto/MissionStatusBySceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionStatusBySceneInfoOuterClass.java new file mode 100644 index 0000000..88af233 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/MissionStatusBySceneInfoOuterClass.java @@ -0,0 +1,861 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; + +public final class MissionStatusBySceneInfoOuterClass { + /** + * Protobuf type {@code MissionStatusBySceneInfo} + */ + public static final class MissionStatusBySceneInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + */ + private final RepeatedInt disabledMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + */ + private final RepeatedInt finishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + */ + private final RepeatedInt unfinishedMainMissionIdList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + */ + private final RepeatedMessage mainMissionMcvList = RepeatedMessage.newEmptyInstance(MainMissionCustomValueOuterClass.MainMissionCustomValue.getFactory()); + + /** + * repeated .Mission sub_mission_status_list = 15; + */ + private final RepeatedMessage subMissionStatusList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); + + private MissionStatusBySceneInfo() { + } + + /** + * @return a new empty instance of {@code MissionStatusBySceneInfo} + */ + public static MissionStatusBySceneInfo newInstance() { + return new MissionStatusBySceneInfo(); + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + * @return whether the disabledMainMissionIdList field is set + */ + public boolean hasDisabledMainMissionIdList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + * @return this + */ + public MissionStatusBySceneInfo clearDisabledMainMissionIdList() { + bitField0_ &= ~0x00000001; + disabledMainMissionIdList.clear(); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDisabledMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getDisabledMainMissionIdList() { + return disabledMainMissionIdList; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableDisabledMainMissionIdList() { + bitField0_ |= 0x00000001; + return disabledMainMissionIdList; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + * @param value the disabledMainMissionIdList to add + * @return this + */ + public MissionStatusBySceneInfo addDisabledMainMissionIdList(final int value) { + bitField0_ |= 0x00000001; + disabledMainMissionIdList.add(value); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 disabled_main_mission_id_list = 9; + * @param values the disabledMainMissionIdList to add + * @return this + */ + public MissionStatusBySceneInfo addAllDisabledMainMissionIdList(final int... values) { + bitField0_ |= 0x00000001; + disabledMainMissionIdList.addAll(values); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + * @return whether the finishedMainMissionIdList field is set + */ + public boolean hasFinishedMainMissionIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + * @return this + */ + public MissionStatusBySceneInfo clearFinishedMainMissionIdList() { + bitField0_ &= ~0x00000002; + finishedMainMissionIdList.clear(); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFinishedMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFinishedMainMissionIdList() { + return finishedMainMissionIdList; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableFinishedMainMissionIdList() { + bitField0_ |= 0x00000002; + return finishedMainMissionIdList; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + * @param value the finishedMainMissionIdList to add + * @return this + */ + public MissionStatusBySceneInfo addFinishedMainMissionIdList(final int value) { + bitField0_ |= 0x00000002; + finishedMainMissionIdList.add(value); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 finished_main_mission_id_list = 13; + * @param values the finishedMainMissionIdList to add + * @return this + */ + public MissionStatusBySceneInfo addAllFinishedMainMissionIdList(final int... values) { + bitField0_ |= 0x00000002; + finishedMainMissionIdList.addAll(values); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + * @return whether the unfinishedMainMissionIdList field is set + */ + public boolean hasUnfinishedMainMissionIdList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + * @return this + */ + public MissionStatusBySceneInfo clearUnfinishedMainMissionIdList() { + bitField0_ &= ~0x00000004; + unfinishedMainMissionIdList.clear(); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnfinishedMainMissionIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnfinishedMainMissionIdList() { + return unfinishedMainMissionIdList; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnfinishedMainMissionIdList() { + bitField0_ |= 0x00000004; + return unfinishedMainMissionIdList; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + * @param value the unfinishedMainMissionIdList to add + * @return this + */ + public MissionStatusBySceneInfo addUnfinishedMainMissionIdList(final int value) { + bitField0_ |= 0x00000004; + unfinishedMainMissionIdList.add(value); + return this; + } + + /** + *
+     *  guessed
+     * 
+ * + * repeated uint32 unfinished_main_mission_id_list = 14; + * @param values the unfinishedMainMissionIdList to add + * @return this + */ + public MissionStatusBySceneInfo addAllUnfinishedMainMissionIdList(final int... values) { + bitField0_ |= 0x00000004; + unfinishedMainMissionIdList.addAll(values); + return this; + } + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + * @return whether the mainMissionMcvList field is set + */ + public boolean hasMainMissionMcvList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + * @return this + */ + public MissionStatusBySceneInfo clearMainMissionMcvList() { + bitField0_ &= ~0x00000008; + mainMissionMcvList.clear(); + return this; + } + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMainMissionMcvList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMainMissionMcvList( + ) { + return mainMissionMcvList; + } + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMainMissionMcvList( + ) { + bitField0_ |= 0x00000008; + return mainMissionMcvList; + } + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + * @param value the mainMissionMcvList to add + * @return this + */ + public MissionStatusBySceneInfo addMainMissionMcvList( + final MainMissionCustomValueOuterClass.MainMissionCustomValue value) { + bitField0_ |= 0x00000008; + mainMissionMcvList.add(value); + return this; + } + + /** + * repeated .MainMissionCustomValue main_mission_mcv_list = 3; + * @param values the mainMissionMcvList to add + * @return this + */ + public MissionStatusBySceneInfo addAllMainMissionMcvList( + final MainMissionCustomValueOuterClass.MainMissionCustomValue... values) { + bitField0_ |= 0x00000008; + mainMissionMcvList.addAll(values); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 15; + * @return whether the subMissionStatusList field is set + */ + public boolean hasSubMissionStatusList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .Mission sub_mission_status_list = 15; + * @return this + */ + public MissionStatusBySceneInfo clearSubMissionStatusList() { + bitField0_ &= ~0x00000010; + subMissionStatusList.clear(); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSubMissionStatusList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSubMissionStatusList() { + return subMissionStatusList; + } + + /** + * repeated .Mission sub_mission_status_list = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableSubMissionStatusList() { + bitField0_ |= 0x00000010; + return subMissionStatusList; + } + + /** + * repeated .Mission sub_mission_status_list = 15; + * @param value the subMissionStatusList to add + * @return this + */ + public MissionStatusBySceneInfo addSubMissionStatusList(final MissionOuterClass.Mission value) { + bitField0_ |= 0x00000010; + subMissionStatusList.add(value); + return this; + } + + /** + * repeated .Mission sub_mission_status_list = 15; + * @param values the subMissionStatusList to add + * @return this + */ + public MissionStatusBySceneInfo addAllSubMissionStatusList( + final MissionOuterClass.Mission... values) { + bitField0_ |= 0x00000010; + subMissionStatusList.addAll(values); + return this; + } + + @Override + public MissionStatusBySceneInfo copyFrom(final MissionStatusBySceneInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + disabledMainMissionIdList.copyFrom(other.disabledMainMissionIdList); + finishedMainMissionIdList.copyFrom(other.finishedMainMissionIdList); + unfinishedMainMissionIdList.copyFrom(other.unfinishedMainMissionIdList); + mainMissionMcvList.copyFrom(other.mainMissionMcvList); + subMissionStatusList.copyFrom(other.subMissionStatusList); + } + return this; + } + + @Override + public MissionStatusBySceneInfo mergeFrom(final MissionStatusBySceneInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasDisabledMainMissionIdList()) { + getMutableDisabledMainMissionIdList().addAll(other.disabledMainMissionIdList); + } + if (other.hasFinishedMainMissionIdList()) { + getMutableFinishedMainMissionIdList().addAll(other.finishedMainMissionIdList); + } + if (other.hasUnfinishedMainMissionIdList()) { + getMutableUnfinishedMainMissionIdList().addAll(other.unfinishedMainMissionIdList); + } + if (other.hasMainMissionMcvList()) { + getMutableMainMissionMcvList().addAll(other.mainMissionMcvList); + } + if (other.hasSubMissionStatusList()) { + getMutableSubMissionStatusList().addAll(other.subMissionStatusList); + } + return this; + } + + @Override + public MissionStatusBySceneInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + disabledMainMissionIdList.clear(); + finishedMainMissionIdList.clear(); + unfinishedMainMissionIdList.clear(); + mainMissionMcvList.clear(); + subMissionStatusList.clear(); + return this; + } + + @Override + public MissionStatusBySceneInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + disabledMainMissionIdList.clear(); + finishedMainMissionIdList.clear(); + unfinishedMainMissionIdList.clear(); + mainMissionMcvList.clearQuick(); + subMissionStatusList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof MissionStatusBySceneInfo)) { + return false; + } + MissionStatusBySceneInfo other = (MissionStatusBySceneInfo) o; + return bitField0_ == other.bitField0_ + && (!hasDisabledMainMissionIdList() || disabledMainMissionIdList.equals(other.disabledMainMissionIdList)) + && (!hasFinishedMainMissionIdList() || finishedMainMissionIdList.equals(other.finishedMainMissionIdList)) + && (!hasUnfinishedMainMissionIdList() || unfinishedMainMissionIdList.equals(other.unfinishedMainMissionIdList)) + && (!hasMainMissionMcvList() || mainMissionMcvList.equals(other.mainMissionMcvList)) + && (!hasSubMissionStatusList() || subMissionStatusList.equals(other.subMissionStatusList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < disabledMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(disabledMainMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < finishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(finishedMainMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < unfinishedMainMissionIdList.length(); i++) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(unfinishedMainMissionIdList.array()[i]); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < mainMissionMcvList.length(); i++) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(mainMissionMcvList.get(i)); + } + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < subMissionStatusList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(subMissionStatusList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * disabledMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(disabledMainMissionIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * finishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(finishedMainMissionIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * unfinishedMainMissionIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unfinishedMainMissionIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * mainMissionMcvList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mainMissionMcvList); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * subMissionStatusList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subMissionStatusList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public MissionStatusBySceneInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 74: { + // disabledMainMissionIdList [packed=true] + input.readPackedUInt32(disabledMainMissionIdList, tag); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // finishedMainMissionIdList [packed=true] + input.readPackedUInt32(finishedMainMissionIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // unfinishedMainMissionIdList [packed=true] + input.readPackedUInt32(unfinishedMainMissionIdList, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // mainMissionMcvList + tag = input.readRepeatedMessage(mainMissionMcvList, tag); + bitField0_ |= 0x00000008; + if (tag != 122) { + break; + } + } + case 122: { + // subMissionStatusList + tag = input.readRepeatedMessage(subMissionStatusList, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 72: { + // disabledMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(disabledMainMissionIdList, tag); + bitField0_ |= 0x00000001; + break; + } + case 104: { + // finishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(finishedMainMissionIdList, tag); + bitField0_ |= 0x00000002; + break; + } + case 112: { + // unfinishedMainMissionIdList [packed=false] + tag = input.readRepeatedUInt32(unfinishedMainMissionIdList, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedUInt32(FieldNames.disabledMainMissionIdList, disabledMainMissionIdList); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.finishedMainMissionIdList, finishedMainMissionIdList); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.unfinishedMainMissionIdList, unfinishedMainMissionIdList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedMessage(FieldNames.mainMissionMcvList, mainMissionMcvList); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.subMissionStatusList, subMissionStatusList); + } + output.endObject(); + } + + @Override + public MissionStatusBySceneInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 83823792: + case 1929478380: { + if (input.isAtField(FieldNames.disabledMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(disabledMainMissionIdList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 104231290: + case -1929023306: { + if (input.isAtField(FieldNames.finishedMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(finishedMainMissionIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 61133057: + case 1704637629: { + if (input.isAtField(FieldNames.unfinishedMainMissionIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unfinishedMainMissionIdList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 905073995: + case -1773053194: { + if (input.isAtField(FieldNames.mainMissionMcvList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mainMissionMcvList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1842850820: + case 1165580825: { + if (input.isAtField(FieldNames.subMissionStatusList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(subMissionStatusList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public MissionStatusBySceneInfo clone() { + return new MissionStatusBySceneInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static MissionStatusBySceneInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new MissionStatusBySceneInfo(), data).checkInitialized(); + } + + public static MissionStatusBySceneInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new MissionStatusBySceneInfo(), input).checkInitialized(); + } + + public static MissionStatusBySceneInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new MissionStatusBySceneInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating MissionStatusBySceneInfo messages + */ + public static MessageFactory getFactory() { + return MissionStatusBySceneInfoFactory.INSTANCE; + } + + private enum MissionStatusBySceneInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public MissionStatusBySceneInfo create() { + return MissionStatusBySceneInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName disabledMainMissionIdList = FieldName.forField("disabledMainMissionIdList", "disabled_main_mission_id_list"); + + static final FieldName finishedMainMissionIdList = FieldName.forField("finishedMainMissionIdList", "finished_main_mission_id_list"); + + static final FieldName unfinishedMainMissionIdList = FieldName.forField("unfinishedMainMissionIdList", "unfinished_main_mission_id_list"); + + static final FieldName mainMissionMcvList = FieldName.forField("mainMissionMcvList", "main_mission_mcv_list"); + + static final FieldName subMissionStatusList = FieldName.forField("subMissionStatusList", "sub_mission_status_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/MissionSyncOuterClass.java b/src/generated/main/emu/lunarcore/proto/MissionSyncOuterClass.java index 0e1756f..092f953 100644 --- a/src/generated/main/emu/lunarcore/proto/MissionSyncOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MissionSyncOuterClass.java @@ -21,16 +21,12 @@ public final class MissionSyncOuterClass { private static final long serialVersionUID = 0L; /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; */ private final RepeatedInt mainMissionId = RepeatedInt.newEmptyInstance(); /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; */ private final RepeatedMessage missionList = RepeatedMessage.newEmptyInstance(MissionOuterClass.Mission.getFactory()); @@ -45,10 +41,6 @@ public final class MissionSyncOuterClass { } /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; * @return whether the mainMissionId field is set */ @@ -57,10 +49,6 @@ public final class MissionSyncOuterClass { } /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; * @return this */ @@ -71,10 +59,6 @@ public final class MissionSyncOuterClass { } /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; * * This method returns the internal storage object without modifying any has state. @@ -89,10 +73,6 @@ public final class MissionSyncOuterClass { } /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; * * This method returns the internal storage object and sets the corresponding @@ -107,10 +87,6 @@ public final class MissionSyncOuterClass { } /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; * @param value the mainMissionId to add * @return this @@ -122,10 +98,6 @@ public final class MissionSyncOuterClass { } /** - *
-     *  could be also 10 or 6
-     * 
- * * repeated uint32 main_mission_id = 1; * @param values the mainMissionId to add * @return this @@ -137,7 +109,7 @@ public final class MissionSyncOuterClass { } /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; * @return whether the missionList field is set */ public boolean hasMissionList() { @@ -145,7 +117,7 @@ public final class MissionSyncOuterClass { } /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; * @return this */ public MissionSync clearMissionList() { @@ -155,7 +127,7 @@ public final class MissionSyncOuterClass { } /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -169,7 +141,7 @@ public final class MissionSyncOuterClass { } /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -183,7 +155,7 @@ public final class MissionSyncOuterClass { } /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; * @param value the missionList to add * @return this */ @@ -194,7 +166,7 @@ public final class MissionSyncOuterClass { } /** - * repeated .Mission mission_list = 12; + * repeated .Mission mission_list = 5; * @param values the missionList to add * @return this */ @@ -278,7 +250,7 @@ public final class MissionSyncOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < missionList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 42); output.writeMessageNoTag(missionList.get(i)); } } @@ -308,11 +280,11 @@ public final class MissionSyncOuterClass { input.readPackedUInt32(mainMissionId, tag); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 42) { break; } } - case 98: { + case 42: { // missionList tag = input.readRepeatedMessage(missionList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java b/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java index be99583..9508a26 100644 --- a/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MonsterArchiveOuterClass.java @@ -24,7 +24,7 @@ public final class MonsterArchiveOuterClass { private int num; /** - * optional uint32 monster_id = 9; + * optional uint32 monster_id = 11; */ private int monsterId; @@ -76,7 +76,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 9; + * optional uint32 monster_id = 11; * @return whether the monsterId field is set */ public boolean hasMonsterId() { @@ -84,7 +84,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 9; + * optional uint32 monster_id = 11; * @return this */ public MonsterArchive clearMonsterId() { @@ -94,7 +94,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 9; + * optional uint32 monster_id = 11; * @return the monsterId */ public int getMonsterId() { @@ -102,7 +102,7 @@ public final class MonsterArchiveOuterClass { } /** - * optional uint32 monster_id = 9; + * optional uint32 monster_id = 11; * @param value the monsterId to set * @return this */ @@ -181,7 +181,7 @@ public final class MonsterArchiveOuterClass { output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(monsterId); } } @@ -210,11 +210,11 @@ public final class MonsterArchiveOuterClass { num = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 88) { break; } } - case 72: { + case 88: { // monsterId monsterId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java index 9dad986..163ee4a 100644 --- a/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MotionInfoOuterClass.java @@ -19,15 +19,15 @@ public final class MotionInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .Vector rot = 13; - */ - private final VectorOuterClass.Vector rot = VectorOuterClass.Vector.newInstance(); - - /** - * optional .Vector pos = 14; + * optional .Vector pos = 7; */ private final VectorOuterClass.Vector pos = VectorOuterClass.Vector.newInstance(); + /** + * optional .Vector rot = 8; + */ + private final VectorOuterClass.Vector rot = VectorOuterClass.Vector.newInstance(); + private MotionInfo() { } @@ -39,82 +39,25 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector rot = 13; - * @return whether the rot field is set + * optional .Vector pos = 7; + * @return whether the pos field is set */ - public boolean hasRot() { + public boolean hasPos() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .Vector rot = 13; - * @return this - */ - public MotionInfo clearRot() { - bitField0_ &= ~0x00000001; - rot.clear(); - return this; - } - - /** - * optional .Vector rot = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRot()} if you want to modify it. - * - * @return internal storage object for reading - */ - public VectorOuterClass.Vector getRot() { - return rot; - } - - /** - * optional .Vector rot = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public VectorOuterClass.Vector getMutableRot() { - bitField0_ |= 0x00000001; - return rot; - } - - /** - * optional .Vector rot = 13; - * @param value the rot to set - * @return this - */ - public MotionInfo setRot(final VectorOuterClass.Vector value) { - bitField0_ |= 0x00000001; - rot.copyFrom(value); - return this; - } - - /** - * optional .Vector pos = 14; - * @return whether the pos field is set - */ - public boolean hasPos() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .Vector pos = 14; + * optional .Vector pos = 7; * @return this */ public MotionInfo clearPos() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; pos.clear(); return this; } /** - * optional .Vector pos = 14; + * optional .Vector pos = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -128,7 +71,7 @@ public final class MotionInfoOuterClass { } /** - * optional .Vector pos = 14; + * optional .Vector pos = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -137,28 +80,85 @@ public final class MotionInfoOuterClass { * @return internal storage object for modifications */ public VectorOuterClass.Vector getMutablePos() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return pos; } /** - * optional .Vector pos = 14; + * optional .Vector pos = 7; * @param value the pos to set * @return this */ public MotionInfo setPos(final VectorOuterClass.Vector value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; pos.copyFrom(value); return this; } + /** + * optional .Vector rot = 8; + * @return whether the rot field is set + */ + public boolean hasRot() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .Vector rot = 8; + * @return this + */ + public MotionInfo clearRot() { + bitField0_ &= ~0x00000002; + rot.clear(); + return this; + } + + /** + * optional .Vector rot = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRot()} if you want to modify it. + * + * @return internal storage object for reading + */ + public VectorOuterClass.Vector getRot() { + return rot; + } + + /** + * optional .Vector rot = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public VectorOuterClass.Vector getMutableRot() { + bitField0_ |= 0x00000002; + return rot; + } + + /** + * optional .Vector rot = 8; + * @param value the rot to set + * @return this + */ + public MotionInfo setRot(final VectorOuterClass.Vector value) { + bitField0_ |= 0x00000002; + rot.copyFrom(value); + return this; + } + @Override public MotionInfo copyFrom(final MotionInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rot.copyFrom(other.rot); pos.copyFrom(other.pos); + rot.copyFrom(other.rot); } return this; } @@ -169,12 +169,12 @@ public final class MotionInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRot()) { - getMutableRot().mergeFrom(other.rot); - } if (other.hasPos()) { getMutablePos().mergeFrom(other.pos); } + if (other.hasRot()) { + getMutableRot().mergeFrom(other.rot); + } return this; } @@ -185,8 +185,8 @@ public final class MotionInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rot.clear(); pos.clear(); + rot.clear(); return this; } @@ -197,8 +197,8 @@ public final class MotionInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rot.clearQuick(); pos.clearQuick(); + rot.clearQuick(); return this; } @@ -212,19 +212,19 @@ public final class MotionInfoOuterClass { } MotionInfo other = (MotionInfo) o; return bitField0_ == other.bitField0_ - && (!hasRot() || rot.equals(other.rot)) - && (!hasPos() || pos.equals(other.pos)); + && (!hasPos() || pos.equals(other.pos)) + && (!hasRot() || rot.equals(other.rot)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(rot); + output.writeRawByte((byte) 58); + output.writeMessageNoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(pos); + output.writeRawByte((byte) 66); + output.writeMessageNoTag(rot); } } @@ -232,10 +232,10 @@ public final class MotionInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rot); + size += 1 + ProtoSink.computeMessageSizeNoTag(pos); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(pos); + size += 1 + ProtoSink.computeMessageSizeNoTag(rot); } return size; } @@ -247,18 +247,18 @@ public final class MotionInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 106: { - // rot - input.readMessage(rot); + case 58: { + // pos + input.readMessage(pos); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 66) { break; } } - case 114: { - // pos - input.readMessage(pos); + case 66: { + // rot + input.readMessage(rot); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -283,10 +283,10 @@ public final class MotionInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rot, rot); + output.writeMessage(FieldNames.pos, pos); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.pos, pos); + output.writeMessage(FieldNames.rot, rot); } output.endObject(); } @@ -298,10 +298,10 @@ public final class MotionInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 113111: { - if (input.isAtField(FieldNames.rot)) { + case 111188: { + if (input.isAtField(FieldNames.pos)) { if (!input.trySkipNullValue()) { - input.readMessage(rot); + input.readMessage(pos); bitField0_ |= 0x00000001; } } else { @@ -309,10 +309,10 @@ public final class MotionInfoOuterClass { } break; } - case 111188: { - if (input.isAtField(FieldNames.pos)) { + case 113111: { + if (input.isAtField(FieldNames.rot)) { if (!input.trySkipNullValue()) { - input.readMessage(pos); + input.readMessage(rot); bitField0_ |= 0x00000002; } } else { @@ -372,9 +372,9 @@ public final class MotionInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rot = FieldName.forField("rot"); - static final FieldName pos = FieldName.forField("pos"); + + static final FieldName rot = FieldName.forField("rot"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/MultiPathAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/MultiPathAvatarInfoOuterClass.java index 1678190..6cd312e 100644 --- a/src/generated/main/emu/lunarcore/proto/MultiPathAvatarInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MultiPathAvatarInfoOuterClass.java @@ -14,33 +14,62 @@ import us.hebi.quickbuf.RepeatedMessage; public final class MultiPathAvatarInfoOuterClass { /** + *
+   *  ANJKJIDCFIO
+   * 
+ * * Protobuf type {@code MultiPathAvatarInfo} */ public static final class MultiPathAvatarInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 rank = 7; + * optional uint32 rank = 1; */ private int rank; /** - * optional uint32 path_equipment_id = 10; + *
+     *  PDLDBGNNKJI
+     * 
+ * + * optional uint32 enhance_id = 10; + */ + private int enhanceId; + + /** + *
+     *  PCJODMEPONH
+     * 
+ * + * optional uint32 path_equipment_id = 15; */ private int pathEquipmentId; /** - * optional .MultiPathAvatarType avatar_id = 2; + *
+     *  PMHEJNFFAKI
+     * 
+ * + * optional .MultiPathAvatarType avatar_id = 4; */ private int avatarId; /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; */ private final RepeatedMessage equipRelicList = RepeatedMessage.newEmptyInstance(EquipRelicOuterClass.EquipRelic.getFactory()); /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; */ private final RepeatedMessage multiPathSkillTree = RepeatedMessage.newEmptyInstance(AvatarSkillTreeOuterClass.AvatarSkillTree.getFactory()); @@ -48,6 +77,10 @@ public final class MultiPathAvatarInfoOuterClass { } /** + *
+     *  ANJKJIDCFIO
+     * 
+ * * @return a new empty instance of {@code MultiPathAvatarInfo} */ public static MultiPathAvatarInfo newInstance() { @@ -55,7 +88,7 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * optional uint32 rank = 7; + * optional uint32 rank = 1; * @return whether the rank field is set */ public boolean hasRank() { @@ -63,7 +96,7 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * optional uint32 rank = 7; + * optional uint32 rank = 1; * @return this */ public MultiPathAvatarInfo clearRank() { @@ -73,7 +106,7 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * optional uint32 rank = 7; + * optional uint32 rank = 1; * @return the rank */ public int getRank() { @@ -81,7 +114,7 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * optional uint32 rank = 7; + * optional uint32 rank = 1; * @param value the rank to set * @return this */ @@ -92,25 +125,90 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * optional uint32 path_equipment_id = 10; - * @return whether the pathEquipmentId field is set + *
+     *  PDLDBGNNKJI
+     * 
+ * + * optional uint32 enhance_id = 10; + * @return whether the enhanceId field is set */ - public boolean hasPathEquipmentId() { + public boolean hasEnhanceId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 path_equipment_id = 10; + *
+     *  PDLDBGNNKJI
+     * 
+ * + * optional uint32 enhance_id = 10; + * @return this + */ + public MultiPathAvatarInfo clearEnhanceId() { + bitField0_ &= ~0x00000002; + enhanceId = 0; + return this; + } + + /** + *
+     *  PDLDBGNNKJI
+     * 
+ * + * optional uint32 enhance_id = 10; + * @return the enhanceId + */ + public int getEnhanceId() { + return enhanceId; + } + + /** + *
+     *  PDLDBGNNKJI
+     * 
+ * + * optional uint32 enhance_id = 10; + * @param value the enhanceId to set + * @return this + */ + public MultiPathAvatarInfo setEnhanceId(final int value) { + bitField0_ |= 0x00000002; + enhanceId = value; + return this; + } + + /** + *
+     *  PCJODMEPONH
+     * 
+ * + * optional uint32 path_equipment_id = 15; + * @return whether the pathEquipmentId field is set + */ + public boolean hasPathEquipmentId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  PCJODMEPONH
+     * 
+ * + * optional uint32 path_equipment_id = 15; * @return this */ public MultiPathAvatarInfo clearPathEquipmentId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; pathEquipmentId = 0; return this; } /** - * optional uint32 path_equipment_id = 10; + *
+     *  PCJODMEPONH
+     * 
+ * + * optional uint32 path_equipment_id = 15; * @return the pathEquipmentId */ public int getPathEquipmentId() { @@ -118,36 +216,52 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * optional uint32 path_equipment_id = 10; + *
+     *  PCJODMEPONH
+     * 
+ * + * optional uint32 path_equipment_id = 15; * @param value the pathEquipmentId to set * @return this */ public MultiPathAvatarInfo setPathEquipmentId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; pathEquipmentId = value; return this; } /** - * optional .MultiPathAvatarType avatar_id = 2; + *
+     *  PMHEJNFFAKI
+     * 
+ * + * optional .MultiPathAvatarType avatar_id = 4; * @return whether the avatarId field is set */ public boolean hasAvatarId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional .MultiPathAvatarType avatar_id = 2; + *
+     *  PMHEJNFFAKI
+     * 
+ * + * optional .MultiPathAvatarType avatar_id = 4; * @return this */ public MultiPathAvatarInfo clearAvatarId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; avatarId = 0; return this; } /** - * optional .MultiPathAvatarType avatar_id = 2; + *
+     *  PMHEJNFFAKI
+     * 
+ * + * optional .MultiPathAvatarType avatar_id = 4; * @return the avatarId */ public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getAvatarId() { @@ -174,43 +288,59 @@ public final class MultiPathAvatarInfoOuterClass { * @return this */ public MultiPathAvatarInfo setAvatarIdValue(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; avatarId = value; return this; } /** - * optional .MultiPathAvatarType avatar_id = 2; + *
+     *  PMHEJNFFAKI
+     * 
+ * + * optional .MultiPathAvatarType avatar_id = 4; * @param value the avatarId to set * @return this */ public MultiPathAvatarInfo setAvatarId( final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; avatarId = value.getNumber(); return this; } /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; * @return whether the equipRelicList field is set */ public boolean hasEquipRelicList() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000010) != 0; } /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; * @return this */ public MultiPathAvatarInfo clearEquipRelicList() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; equipRelicList.clear(); return this; } /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -224,7 +354,11 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -233,53 +367,73 @@ public final class MultiPathAvatarInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableEquipRelicList() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return equipRelicList; } /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; * @param value the equipRelicList to add * @return this */ public MultiPathAvatarInfo addEquipRelicList(final EquipRelicOuterClass.EquipRelic value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; equipRelicList.add(value); return this; } /** - * repeated .EquipRelic equip_relic_list = 3; + *
+     *  DOLKNNEAGGE
+     * 
+ * + * repeated .EquipRelic equip_relic_list = 13; * @param values the equipRelicList to add * @return this */ public MultiPathAvatarInfo addAllEquipRelicList( final EquipRelicOuterClass.EquipRelic... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; equipRelicList.addAll(values); return this; } /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; * @return whether the multiPathSkillTree field is set */ public boolean hasMultiPathSkillTree() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000020) != 0; } /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; * @return this */ public MultiPathAvatarInfo clearMultiPathSkillTree() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; multiPathSkillTree.clear(); return this; } /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -293,7 +447,11 @@ public final class MultiPathAvatarInfoOuterClass { } /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -303,30 +461,38 @@ public final class MultiPathAvatarInfoOuterClass { */ public RepeatedMessage getMutableMultiPathSkillTree( ) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return multiPathSkillTree; } /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; * @param value the multiPathSkillTree to add * @return this */ public MultiPathAvatarInfo addMultiPathSkillTree( final AvatarSkillTreeOuterClass.AvatarSkillTree value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; multiPathSkillTree.add(value); return this; } /** - * repeated .AvatarSkillTree multi_path_skill_tree = 4; + *
+     *  CDMBHMEKAGM
+     * 
+ * + * repeated .AvatarSkillTree multi_path_skill_tree = 14; * @param values the multiPathSkillTree to add * @return this */ public MultiPathAvatarInfo addAllMultiPathSkillTree( final AvatarSkillTreeOuterClass.AvatarSkillTree... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; multiPathSkillTree.addAll(values); return this; } @@ -337,6 +503,7 @@ public final class MultiPathAvatarInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; rank = other.rank; + enhanceId = other.enhanceId; pathEquipmentId = other.pathEquipmentId; avatarId = other.avatarId; equipRelicList.copyFrom(other.equipRelicList); @@ -354,6 +521,9 @@ public final class MultiPathAvatarInfoOuterClass { if (other.hasRank()) { setRank(other.rank); } + if (other.hasEnhanceId()) { + setEnhanceId(other.enhanceId); + } if (other.hasPathEquipmentId()) { setPathEquipmentId(other.pathEquipmentId); } @@ -377,6 +547,7 @@ public final class MultiPathAvatarInfoOuterClass { cachedSize = -1; bitField0_ = 0; rank = 0; + enhanceId = 0; pathEquipmentId = 0; avatarId = 0; equipRelicList.clear(); @@ -407,6 +578,7 @@ public final class MultiPathAvatarInfoOuterClass { MultiPathAvatarInfo other = (MultiPathAvatarInfo) o; return bitField0_ == other.bitField0_ && (!hasRank() || rank == other.rank) + && (!hasEnhanceId() || enhanceId == other.enhanceId) && (!hasPathEquipmentId() || pathEquipmentId == other.pathEquipmentId) && (!hasAvatarId() || avatarId == other.avatarId) && (!hasEquipRelicList() || equipRelicList.equals(other.equipRelicList)) @@ -416,26 +588,30 @@ public final class MultiPathAvatarInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); - output.writeUInt32NoTag(pathEquipmentId); + output.writeUInt32NoTag(enhanceId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); - output.writeEnumNoTag(avatarId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(pathEquipmentId); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 32); + output.writeEnumNoTag(avatarId); + } + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < equipRelicList.length(); i++) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 106); output.writeMessageNoTag(equipRelicList.get(i)); } } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < multiPathSkillTree.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 114); output.writeMessageNoTag(multiPathSkillTree.get(i)); } } @@ -448,15 +624,18 @@ public final class MultiPathAvatarInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(pathEquipmentId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(enhanceId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pathEquipmentId); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarId); } if ((bitField0_ & 0x00000010) != 0) { + size += (1 * equipRelicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipRelicList); + } + if ((bitField0_ & 0x00000020) != 0) { size += (1 * multiPathSkillTree.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(multiPathSkillTree); } return size; @@ -469,7 +648,7 @@ public final class MultiPathAvatarInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 8: { // rank rank = input.readUInt32(); bitField0_ |= 0x00000001; @@ -479,38 +658,47 @@ public final class MultiPathAvatarInfoOuterClass { } } case 80: { - // pathEquipmentId - pathEquipmentId = input.readUInt32(); + // enhanceId + enhanceId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 120) { break; } } - case 16: { + case 120: { + // pathEquipmentId + pathEquipmentId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { // avatarId final int value = input.readInt32(); if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { avatarId = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 26) { + if (tag != 106) { break; } } - case 26: { + case 106: { // equipRelicList tag = input.readRepeatedMessage(equipRelicList, tag); - bitField0_ |= 0x00000008; - if (tag != 34) { + bitField0_ |= 0x00000010; + if (tag != 114) { break; } } - case 34: { + case 114: { // multiPathSkillTree tag = input.readRepeatedMessage(multiPathSkillTree, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; if (tag != 0) { break; } @@ -536,15 +724,18 @@ public final class MultiPathAvatarInfoOuterClass { output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.pathEquipmentId, pathEquipmentId); + output.writeUInt32(FieldNames.enhanceId, enhanceId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.avatarId, avatarId, MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); + output.writeUInt32(FieldNames.pathEquipmentId, pathEquipmentId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + output.writeEnum(FieldNames.avatarId, avatarId, MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); } if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.equipRelicList, equipRelicList); + } + if ((bitField0_ & 0x00000020) != 0) { output.writeRepeatedMessage(FieldNames.multiPathSkillTree, multiPathSkillTree); } output.endObject(); @@ -568,12 +759,24 @@ public final class MultiPathAvatarInfoOuterClass { } break; } + case 1259067497: + case 376408140: { + if (input.isAtField(FieldNames.enhanceId)) { + if (!input.trySkipNullValue()) { + enhanceId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 1371565540: case -1584422074: { if (input.isAtField(FieldNames.pathEquipmentId)) { if (!input.trySkipNullValue()) { pathEquipmentId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -587,7 +790,7 @@ public final class MultiPathAvatarInfoOuterClass { final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value = input.readEnum(MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); if (value != null) { avatarId = value.getNumber(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } else { input.skipUnknownEnumValue(); } @@ -602,7 +805,7 @@ public final class MultiPathAvatarInfoOuterClass { if (input.isAtField(FieldNames.equipRelicList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(equipRelicList); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -614,7 +817,7 @@ public final class MultiPathAvatarInfoOuterClass { if (input.isAtField(FieldNames.multiPathSkillTree)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(multiPathSkillTree); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -676,6 +879,8 @@ public final class MultiPathAvatarInfoOuterClass { static class FieldNames { static final FieldName rank = FieldName.forField("rank"); + static final FieldName enhanceId = FieldName.forField("enhanceId", "enhance_id"); + static final FieldName pathEquipmentId = FieldName.forField("pathEquipmentId", "path_equipment_id"); static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); diff --git a/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java index 8a7274e..09326b9 100644 --- a/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/MultiPathAvatarTypeOuterClass.java @@ -52,7 +52,27 @@ public final class MultiPathAvatarTypeOuterClass { /** * GirlShamanType = 8006; */ - GirlShamanType("GirlShamanType", 8006); + GirlShamanType("GirlShamanType", 8006), + + /** + * BoyMemoryType = 8007; + */ + BoyMemoryType("BoyMemoryType", 8007), + + /** + * GirlMemoryType = 8008; + */ + GirlMemoryType("GirlMemoryType", 8008), + + /** + * BoyElationType = 8009; + */ + BoyElationType("BoyElationType", 8009), + + /** + * GirlElationType = 8010; + */ + GirlElationType("GirlElationType", 8010); /** * MultiPathAvatarTypeNone = 0; @@ -99,6 +119,26 @@ public final class MultiPathAvatarTypeOuterClass { */ public static final int GirlShamanType_VALUE = 8006; + /** + * BoyMemoryType = 8007; + */ + public static final int BoyMemoryType_VALUE = 8007; + + /** + * GirlMemoryType = 8008; + */ + public static final int GirlMemoryType_VALUE = 8008; + + /** + * BoyElationType = 8009; + */ + public static final int BoyElationType_VALUE = 8009; + + /** + * GirlElationType = 8010; + */ + public static final int GirlElationType_VALUE = 8010; + private final String name; private final int number; @@ -164,6 +204,10 @@ public final class MultiPathAvatarTypeOuterClass { case 8004: return GirlKnightType; case 8005: return BoyShamanType; case 8006: return GirlShamanType; + case 8007: return BoyMemoryType; + case 8008: return GirlMemoryType; + case 8009: return BoyElationType; + case 8010: return GirlElationType; default: return null; } } @@ -178,6 +222,9 @@ public final class MultiPathAvatarTypeOuterClass { if (ProtoUtil.isEqual("BoyShamanType", value)) { return BoyShamanType; } + if (ProtoUtil.isEqual("BoyMemoryType", value)) { + return BoyMemoryType; + } break; } case 14: { @@ -190,12 +237,21 @@ public final class MultiPathAvatarTypeOuterClass { if (ProtoUtil.isEqual("GirlShamanType", value)) { return GirlShamanType; } + if (ProtoUtil.isEqual("GirlMemoryType", value)) { + return GirlMemoryType; + } + if (ProtoUtil.isEqual("BoyElationType", value)) { + return BoyElationType; + } break; } case 15: { if (ProtoUtil.isEqual("GirlWarriorType", value)) { return GirlWarriorType; } + if (ProtoUtil.isEqual("GirlElationType", value)) { + return GirlElationType; + } break; } case 16: { diff --git a/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java index a577993..7371113 100644 --- a/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NewMailScNotifyOuterClass.java @@ -20,7 +20,7 @@ public final class NewMailScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; */ private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; * @return whether the mailIdList field is set */ public boolean hasMailIdList() { @@ -43,7 +43,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; * @return this */ public NewMailScNotify clearMailIdList() { @@ -53,7 +53,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; * @param value the mailIdList to add * @return this */ @@ -92,7 +92,7 @@ public final class NewMailScNotifyOuterClass { } /** - * repeated uint32 mail_id_list = 10; + * repeated uint32 mail_id_list = 8; * @param values the mailIdList to add * @return this */ @@ -163,7 +163,7 @@ public final class NewMailScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < mailIdList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(mailIdList.array()[i]); } } @@ -185,7 +185,7 @@ public final class NewMailScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 66: { // mailIdList [packed=true] input.readPackedUInt32(mailIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class NewMailScNotifyOuterClass { tag = input.readTag(); break; } - case 80: { + case 64: { // mailIdList [packed=false] tag = input.readRepeatedUInt32(mailIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java index 76febc8..1a9b8d1 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcDialogueEventParamOuterClass.java @@ -19,15 +19,15 @@ public final class NpcDialogueEventParamOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 arg_id = 3; - */ - private int argId; - - /** - * optional uint32 rogue_dialogue_event_id = 12; + * optional uint32 rogue_dialogue_event_id = 11; */ private int rogueDialogueEventId; + /** + * optional uint32 arg_id = 14; + */ + private int argId; + private NpcDialogueEventParam() { } @@ -39,62 +39,25 @@ public final class NpcDialogueEventParamOuterClass { } /** - * optional uint32 arg_id = 3; - * @return whether the argId field is set + * optional uint32 rogue_dialogue_event_id = 11; + * @return whether the rogueDialogueEventId field is set */ - public boolean hasArgId() { + public boolean hasRogueDialogueEventId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 arg_id = 3; - * @return this - */ - public NpcDialogueEventParam clearArgId() { - bitField0_ &= ~0x00000001; - argId = 0; - return this; - } - - /** - * optional uint32 arg_id = 3; - * @return the argId - */ - public int getArgId() { - return argId; - } - - /** - * optional uint32 arg_id = 3; - * @param value the argId to set - * @return this - */ - public NpcDialogueEventParam setArgId(final int value) { - bitField0_ |= 0x00000001; - argId = value; - return this; - } - - /** - * optional uint32 rogue_dialogue_event_id = 12; - * @return whether the rogueDialogueEventId field is set - */ - public boolean hasRogueDialogueEventId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 rogue_dialogue_event_id = 12; + * optional uint32 rogue_dialogue_event_id = 11; * @return this */ public NpcDialogueEventParam clearRogueDialogueEventId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; rogueDialogueEventId = 0; return this; } /** - * optional uint32 rogue_dialogue_event_id = 12; + * optional uint32 rogue_dialogue_event_id = 11; * @return the rogueDialogueEventId */ public int getRogueDialogueEventId() { @@ -102,23 +65,60 @@ public final class NpcDialogueEventParamOuterClass { } /** - * optional uint32 rogue_dialogue_event_id = 12; + * optional uint32 rogue_dialogue_event_id = 11; * @param value the rogueDialogueEventId to set * @return this */ public NpcDialogueEventParam setRogueDialogueEventId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; rogueDialogueEventId = value; return this; } + /** + * optional uint32 arg_id = 14; + * @return whether the argId field is set + */ + public boolean hasArgId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 arg_id = 14; + * @return this + */ + public NpcDialogueEventParam clearArgId() { + bitField0_ &= ~0x00000002; + argId = 0; + return this; + } + + /** + * optional uint32 arg_id = 14; + * @return the argId + */ + public int getArgId() { + return argId; + } + + /** + * optional uint32 arg_id = 14; + * @param value the argId to set + * @return this + */ + public NpcDialogueEventParam setArgId(final int value) { + bitField0_ |= 0x00000002; + argId = value; + return this; + } + @Override public NpcDialogueEventParam copyFrom(final NpcDialogueEventParam other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - argId = other.argId; rogueDialogueEventId = other.rogueDialogueEventId; + argId = other.argId; } return this; } @@ -129,12 +129,12 @@ public final class NpcDialogueEventParamOuterClass { return this; } cachedSize = -1; - if (other.hasArgId()) { - setArgId(other.argId); - } if (other.hasRogueDialogueEventId()) { setRogueDialogueEventId(other.rogueDialogueEventId); } + if (other.hasArgId()) { + setArgId(other.argId); + } return this; } @@ -145,8 +145,8 @@ public final class NpcDialogueEventParamOuterClass { } cachedSize = -1; bitField0_ = 0; - argId = 0; rogueDialogueEventId = 0; + argId = 0; return this; } @@ -170,19 +170,19 @@ public final class NpcDialogueEventParamOuterClass { } NpcDialogueEventParam other = (NpcDialogueEventParam) o; return bitField0_ == other.bitField0_ - && (!hasArgId() || argId == other.argId) - && (!hasRogueDialogueEventId() || rogueDialogueEventId == other.rogueDialogueEventId); + && (!hasRogueDialogueEventId() || rogueDialogueEventId == other.rogueDialogueEventId) + && (!hasArgId() || argId == other.argId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(argId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(rogueDialogueEventId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(rogueDialogueEventId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(argId); } } @@ -190,10 +190,10 @@ public final class NpcDialogueEventParamOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueDialogueEventId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueDialogueEventId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); } return size; } @@ -205,18 +205,18 @@ public final class NpcDialogueEventParamOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // argId - argId = input.readUInt32(); + case 88: { + // rogueDialogueEventId + rogueDialogueEventId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { - // rogueDialogueEventId - rogueDialogueEventId = input.readUInt32(); + case 112: { + // argId + argId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class NpcDialogueEventParamOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.argId, argId); + output.writeUInt32(FieldNames.rogueDialogueEventId, rogueDialogueEventId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rogueDialogueEventId, rogueDialogueEventId); + output.writeUInt32(FieldNames.argId, argId); } output.endObject(); } @@ -256,11 +256,11 @@ public final class NpcDialogueEventParamOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 93079057: - case -1409495132: { - if (input.isAtField(FieldNames.argId)) { + case 262816547: + case -963375038: { + if (input.isAtField(FieldNames.rogueDialogueEventId)) { if (!input.trySkipNullValue()) { - argId = input.readUInt32(); + rogueDialogueEventId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class NpcDialogueEventParamOuterClass { } break; } - case 262816547: - case -963375038: { - if (input.isAtField(FieldNames.rogueDialogueEventId)) { + case 93079057: + case -1409495132: { + if (input.isAtField(FieldNames.argId)) { if (!input.trySkipNullValue()) { - rogueDialogueEventId = input.readUInt32(); + argId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -333,9 +333,9 @@ public final class NpcDialogueEventParamOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName argId = FieldName.forField("argId", "arg_id"); - static final FieldName rogueDialogueEventId = FieldName.forField("rogueDialogueEventId", "rogue_dialogue_event_id"); + + static final FieldName argId = FieldName.forField("argId", "arg_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java index afb3fe1..e86c9e4 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcExtraInfoOuterClass.java @@ -2,7 +2,6 @@ package emu.lunarcore.proto; import java.io.IOException; -import us.hebi.quickbuf.FieldName; import us.hebi.quickbuf.InvalidProtocolBufferException; import us.hebi.quickbuf.JsonSink; import us.hebi.quickbuf.JsonSource; @@ -18,11 +17,6 @@ public final class NpcExtraInfoOuterClass { public static final class NpcExtraInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional .NpcRogueInfo rogue_info = 6; - */ - private final NpcRogueInfoOuterClass.NpcRogueInfo rogueInfo = NpcRogueInfoOuterClass.NpcRogueInfo.newInstance(); - private NpcExtraInfo() { } @@ -33,70 +27,9 @@ public final class NpcExtraInfoOuterClass { return new NpcExtraInfo(); } - /** - * optional .NpcRogueInfo rogue_info = 6; - * @return whether the rogueInfo field is set - */ - public boolean hasRogueInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .NpcRogueInfo rogue_info = 6; - * @return this - */ - public NpcExtraInfo clearRogueInfo() { - bitField0_ &= ~0x00000001; - rogueInfo.clear(); - return this; - } - - /** - * optional .NpcRogueInfo rogue_info = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public NpcRogueInfoOuterClass.NpcRogueInfo getRogueInfo() { - return rogueInfo; - } - - /** - * optional .NpcRogueInfo rogue_info = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public NpcRogueInfoOuterClass.NpcRogueInfo getMutableRogueInfo() { - bitField0_ |= 0x00000001; - return rogueInfo; - } - - /** - * optional .NpcRogueInfo rogue_info = 6; - * @param value the rogueInfo to set - * @return this - */ - public NpcExtraInfo setRogueInfo(final NpcRogueInfoOuterClass.NpcRogueInfo value) { - bitField0_ |= 0x00000001; - rogueInfo.copyFrom(value); - return this; - } - @Override public NpcExtraInfo copyFrom(final NpcExtraInfo other) { cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueInfo.copyFrom(other.rogueInfo); - } return this; } @@ -106,9 +39,6 @@ public final class NpcExtraInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRogueInfo()) { - getMutableRogueInfo().mergeFrom(other.rogueInfo); - } return this; } @@ -118,8 +48,6 @@ public final class NpcExtraInfoOuterClass { return this; } cachedSize = -1; - bitField0_ = 0; - rogueInfo.clear(); return this; } @@ -129,8 +57,6 @@ public final class NpcExtraInfoOuterClass { return this; } cachedSize = -1; - bitField0_ = 0; - rogueInfo.clearQuick(); return this; } @@ -143,24 +69,16 @@ public final class NpcExtraInfoOuterClass { return false; } NpcExtraInfo other = (NpcExtraInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)); + return true; } @Override public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(rogueInfo); - } } @Override protected int computeSerializedSize() { int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); - } return size; } @@ -171,15 +89,6 @@ public final class NpcExtraInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { - // rogueInfo - input.readMessage(rogueInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } case 0: { return this; } @@ -197,9 +106,6 @@ public final class NpcExtraInfoOuterClass { @Override public void writeTo(final JsonSink output) throws IOException { output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueInfo, rogueInfo); - } output.endObject(); } @@ -210,18 +116,6 @@ public final class NpcExtraInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 655808936: - case -1124583437: { - if (input.isAtField(FieldNames.rogueInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -274,7 +168,6 @@ public final class NpcExtraInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java deleted file mode 100644 index 7268c0a..0000000 --- a/src/generated/main/emu/lunarcore/proto/NpcRogueInfoOuterClass.java +++ /dev/null @@ -1,1307 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class NpcRogueInfoOuterClass { - /** - *
-   *  HIACMGHPPMI
-   * 
- * - * Protobuf type {@code NpcRogueInfo} - */ - public static final class NpcRogueInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 dialogue_id = 3; - */ - private int dialogueId; - - /** - * optional uint32 KIAKKDIECME = 5; - */ - private int kIAKKDIECME; - - /** - * optional uint32 event_id = 9; - */ - private int eventId; - - /** - * optional uint32 event_unique_id = 10; - */ - private int eventUniqueId; - - /** - * optional bool PHDDANOOOJI = 2; - */ - private boolean pHDDANOOOJI; - - /** - * optional bool IDOFFGNNGEM = 11; - */ - private boolean iDOFFGNNGEM; - - /** - * optional bool finish_dialogue = 12; - */ - private boolean finishDialogue; - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - */ - private final RepeatedMessage lPFLCICNIOA = RepeatedMessage.newEmptyInstance(LPFLCICNIOAEntry.getFactory()); - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - */ - private final RepeatedMessage dialogueEventParamList = RepeatedMessage.newEmptyInstance(NpcDialogueEventParamOuterClass.NpcDialogueEventParam.getFactory()); - - private NpcRogueInfo() { - } - - /** - *
-     *  HIACMGHPPMI
-     * 
- * - * @return a new empty instance of {@code NpcRogueInfo} - */ - public static NpcRogueInfo newInstance() { - return new NpcRogueInfo(); - } - - /** - * optional uint32 dialogue_id = 3; - * @return whether the dialogueId field is set - */ - public boolean hasDialogueId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 dialogue_id = 3; - * @return this - */ - public NpcRogueInfo clearDialogueId() { - bitField0_ &= ~0x00000001; - dialogueId = 0; - return this; - } - - /** - * optional uint32 dialogue_id = 3; - * @return the dialogueId - */ - public int getDialogueId() { - return dialogueId; - } - - /** - * optional uint32 dialogue_id = 3; - * @param value the dialogueId to set - * @return this - */ - public NpcRogueInfo setDialogueId(final int value) { - bitField0_ |= 0x00000001; - dialogueId = value; - return this; - } - - /** - * optional uint32 KIAKKDIECME = 5; - * @return whether the kIAKKDIECME field is set - */ - public boolean hasKIAKKDIECME() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 KIAKKDIECME = 5; - * @return this - */ - public NpcRogueInfo clearKIAKKDIECME() { - bitField0_ &= ~0x00000002; - kIAKKDIECME = 0; - return this; - } - - /** - * optional uint32 KIAKKDIECME = 5; - * @return the kIAKKDIECME - */ - public int getKIAKKDIECME() { - return kIAKKDIECME; - } - - /** - * optional uint32 KIAKKDIECME = 5; - * @param value the kIAKKDIECME to set - * @return this - */ - public NpcRogueInfo setKIAKKDIECME(final int value) { - bitField0_ |= 0x00000002; - kIAKKDIECME = value; - return this; - } - - /** - * optional uint32 event_id = 9; - * @return whether the eventId field is set - */ - public boolean hasEventId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 event_id = 9; - * @return this - */ - public NpcRogueInfo clearEventId() { - bitField0_ &= ~0x00000004; - eventId = 0; - return this; - } - - /** - * optional uint32 event_id = 9; - * @return the eventId - */ - public int getEventId() { - return eventId; - } - - /** - * optional uint32 event_id = 9; - * @param value the eventId to set - * @return this - */ - public NpcRogueInfo setEventId(final int value) { - bitField0_ |= 0x00000004; - eventId = value; - return this; - } - - /** - * optional uint32 event_unique_id = 10; - * @return whether the eventUniqueId field is set - */ - public boolean hasEventUniqueId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 event_unique_id = 10; - * @return this - */ - public NpcRogueInfo clearEventUniqueId() { - bitField0_ &= ~0x00000008; - eventUniqueId = 0; - return this; - } - - /** - * optional uint32 event_unique_id = 10; - * @return the eventUniqueId - */ - public int getEventUniqueId() { - return eventUniqueId; - } - - /** - * optional uint32 event_unique_id = 10; - * @param value the eventUniqueId to set - * @return this - */ - public NpcRogueInfo setEventUniqueId(final int value) { - bitField0_ |= 0x00000008; - eventUniqueId = value; - return this; - } - - /** - * optional bool PHDDANOOOJI = 2; - * @return whether the pHDDANOOOJI field is set - */ - public boolean hasPHDDANOOOJI() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional bool PHDDANOOOJI = 2; - * @return this - */ - public NpcRogueInfo clearPHDDANOOOJI() { - bitField0_ &= ~0x00000010; - pHDDANOOOJI = false; - return this; - } - - /** - * optional bool PHDDANOOOJI = 2; - * @return the pHDDANOOOJI - */ - public boolean getPHDDANOOOJI() { - return pHDDANOOOJI; - } - - /** - * optional bool PHDDANOOOJI = 2; - * @param value the pHDDANOOOJI to set - * @return this - */ - public NpcRogueInfo setPHDDANOOOJI(final boolean value) { - bitField0_ |= 0x00000010; - pHDDANOOOJI = value; - return this; - } - - /** - * optional bool IDOFFGNNGEM = 11; - * @return whether the iDOFFGNNGEM field is set - */ - public boolean hasIDOFFGNNGEM() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional bool IDOFFGNNGEM = 11; - * @return this - */ - public NpcRogueInfo clearIDOFFGNNGEM() { - bitField0_ &= ~0x00000020; - iDOFFGNNGEM = false; - return this; - } - - /** - * optional bool IDOFFGNNGEM = 11; - * @return the iDOFFGNNGEM - */ - public boolean getIDOFFGNNGEM() { - return iDOFFGNNGEM; - } - - /** - * optional bool IDOFFGNNGEM = 11; - * @param value the iDOFFGNNGEM to set - * @return this - */ - public NpcRogueInfo setIDOFFGNNGEM(final boolean value) { - bitField0_ |= 0x00000020; - iDOFFGNNGEM = value; - return this; - } - - /** - * optional bool finish_dialogue = 12; - * @return whether the finishDialogue field is set - */ - public boolean hasFinishDialogue() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional bool finish_dialogue = 12; - * @return this - */ - public NpcRogueInfo clearFinishDialogue() { - bitField0_ &= ~0x00000040; - finishDialogue = false; - return this; - } - - /** - * optional bool finish_dialogue = 12; - * @return the finishDialogue - */ - public boolean getFinishDialogue() { - return finishDialogue; - } - - /** - * optional bool finish_dialogue = 12; - * @param value the finishDialogue to set - * @return this - */ - public NpcRogueInfo setFinishDialogue(final boolean value) { - bitField0_ |= 0x00000040; - finishDialogue = value; - return this; - } - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - * @return whether the lPFLCICNIOA field is set - */ - public boolean hasLPFLCICNIOA() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - * @return this - */ - public NpcRogueInfo clearLPFLCICNIOA() { - bitField0_ &= ~0x00000080; - lPFLCICNIOA.clear(); - return this; - } - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLPFLCICNIOA()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getLPFLCICNIOA() { - return lPFLCICNIOA; - } - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableLPFLCICNIOA() { - bitField0_ |= 0x00000080; - return lPFLCICNIOA; - } - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - * @param value the lPFLCICNIOA to add - * @return this - */ - public NpcRogueInfo addLPFLCICNIOA(final LPFLCICNIOAEntry value) { - bitField0_ |= 0x00000080; - lPFLCICNIOA.add(value); - return this; - } - - /** - * repeated .NpcRogueInfo.LPFLCICNIOAEntry LPFLCICNIOA = 14; - * @param values the lPFLCICNIOA to add - * @return this - */ - public NpcRogueInfo addAllLPFLCICNIOA(final LPFLCICNIOAEntry... values) { - bitField0_ |= 0x00000080; - lPFLCICNIOA.addAll(values); - return this; - } - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - * @return whether the dialogueEventParamList field is set - */ - public boolean hasDialogueEventParamList() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - * @return this - */ - public NpcRogueInfo clearDialogueEventParamList() { - bitField0_ &= ~0x00000100; - dialogueEventParamList.clear(); - return this; - } - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueEventParamList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getDialogueEventParamList( - ) { - return dialogueEventParamList; - } - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableDialogueEventParamList( - ) { - bitField0_ |= 0x00000100; - return dialogueEventParamList; - } - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - * @param value the dialogueEventParamList to add - * @return this - */ - public NpcRogueInfo addDialogueEventParamList( - final NpcDialogueEventParamOuterClass.NpcDialogueEventParam value) { - bitField0_ |= 0x00000100; - dialogueEventParamList.add(value); - return this; - } - - /** - * repeated .NpcDialogueEventParam dialogue_event_param_list = 15; - * @param values the dialogueEventParamList to add - * @return this - */ - public NpcRogueInfo addAllDialogueEventParamList( - final NpcDialogueEventParamOuterClass.NpcDialogueEventParam... values) { - bitField0_ |= 0x00000100; - dialogueEventParamList.addAll(values); - return this; - } - - @Override - public NpcRogueInfo copyFrom(final NpcRogueInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - dialogueId = other.dialogueId; - kIAKKDIECME = other.kIAKKDIECME; - eventId = other.eventId; - eventUniqueId = other.eventUniqueId; - pHDDANOOOJI = other.pHDDANOOOJI; - iDOFFGNNGEM = other.iDOFFGNNGEM; - finishDialogue = other.finishDialogue; - lPFLCICNIOA.copyFrom(other.lPFLCICNIOA); - dialogueEventParamList.copyFrom(other.dialogueEventParamList); - } - return this; - } - - @Override - public NpcRogueInfo mergeFrom(final NpcRogueInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDialogueId()) { - setDialogueId(other.dialogueId); - } - if (other.hasKIAKKDIECME()) { - setKIAKKDIECME(other.kIAKKDIECME); - } - if (other.hasEventId()) { - setEventId(other.eventId); - } - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); - } - if (other.hasPHDDANOOOJI()) { - setPHDDANOOOJI(other.pHDDANOOOJI); - } - if (other.hasIDOFFGNNGEM()) { - setIDOFFGNNGEM(other.iDOFFGNNGEM); - } - if (other.hasFinishDialogue()) { - setFinishDialogue(other.finishDialogue); - } - if (other.hasLPFLCICNIOA()) { - getMutableLPFLCICNIOA().addAll(other.lPFLCICNIOA); - } - if (other.hasDialogueEventParamList()) { - getMutableDialogueEventParamList().addAll(other.dialogueEventParamList); - } - return this; - } - - @Override - public NpcRogueInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueId = 0; - kIAKKDIECME = 0; - eventId = 0; - eventUniqueId = 0; - pHDDANOOOJI = false; - iDOFFGNNGEM = false; - finishDialogue = false; - lPFLCICNIOA.clear(); - dialogueEventParamList.clear(); - return this; - } - - @Override - public NpcRogueInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - lPFLCICNIOA.clearQuick(); - dialogueEventParamList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof NpcRogueInfo)) { - return false; - } - NpcRogueInfo other = (NpcRogueInfo) o; - return bitField0_ == other.bitField0_ - && (!hasDialogueId() || dialogueId == other.dialogueId) - && (!hasKIAKKDIECME() || kIAKKDIECME == other.kIAKKDIECME) - && (!hasEventId() || eventId == other.eventId) - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) - && (!hasPHDDANOOOJI() || pHDDANOOOJI == other.pHDDANOOOJI) - && (!hasIDOFFGNNGEM() || iDOFFGNNGEM == other.iDOFFGNNGEM) - && (!hasFinishDialogue() || finishDialogue == other.finishDialogue) - && (!hasLPFLCICNIOA() || lPFLCICNIOA.equals(other.lPFLCICNIOA)) - && (!hasDialogueEventParamList() || dialogueEventParamList.equals(other.dialogueEventParamList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(dialogueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(kIAKKDIECME); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(eventId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 16); - output.writeBoolNoTag(pHDDANOOOJI); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 88); - output.writeBoolNoTag(iDOFFGNNGEM); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 96); - output.writeBoolNoTag(finishDialogue); - } - if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < lPFLCICNIOA.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(lPFLCICNIOA.get(i)); - } - } - if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < dialogueEventParamList.length(); i++) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(dialogueEventParamList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(kIAKKDIECME); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000020) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000040) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000080) != 0) { - size += (1 * lPFLCICNIOA.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lPFLCICNIOA); - } - if ((bitField0_ & 0x00000100) != 0) { - size += (1 * dialogueEventParamList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dialogueEventParamList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public NpcRogueInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // dialogueId - dialogueId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // kIAKKDIECME - kIAKKDIECME = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // eventId - eventId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // eventUniqueId - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // pHDDANOOOJI - pHDDANOOOJI = input.readBool(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // iDOFFGNNGEM - iDOFFGNNGEM = input.readBool(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // finishDialogue - finishDialogue = input.readBool(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // lPFLCICNIOA - tag = input.readRepeatedMessage(lPFLCICNIOA, tag); - bitField0_ |= 0x00000080; - if (tag != 122) { - break; - } - } - case 122: { - // dialogueEventParamList - tag = input.readRepeatedMessage(dialogueEventParamList, tag); - bitField0_ |= 0x00000100; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.dialogueId, dialogueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.kIAKKDIECME, kIAKKDIECME); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.eventId, eventId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.pHDDANOOOJI, pHDDANOOOJI); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.iDOFFGNNGEM, iDOFFGNNGEM); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.finishDialogue, finishDialogue); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.lPFLCICNIOA, lPFLCICNIOA); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedMessage(FieldNames.dialogueEventParamList, dialogueEventParamList); - } - output.endObject(); - } - - @Override - public NpcRogueInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1384067821: - case 43591906: { - if (input.isAtField(FieldNames.dialogueId)) { - if (!input.trySkipNullValue()) { - dialogueId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1407971774: { - if (input.isAtField(FieldNames.kIAKKDIECME)) { - if (!input.trySkipNullValue()) { - kIAKKDIECME = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1376502443: - case 278118624: { - if (input.isAtField(FieldNames.eventId)) { - if (!input.trySkipNullValue()) { - eventId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { - if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 774536297: { - if (input.isAtField(FieldNames.pHDDANOOOJI)) { - if (!input.trySkipNullValue()) { - pHDDANOOOJI = input.readBool(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1979024604: { - if (input.isAtField(FieldNames.iDOFFGNNGEM)) { - if (!input.trySkipNullValue()) { - iDOFFGNNGEM = input.readBool(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 552830859: - case 764736516: { - if (input.isAtField(FieldNames.finishDialogue)) { - if (!input.trySkipNullValue()) { - finishDialogue = input.readBool(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1158682208: { - if (input.isAtField(FieldNames.lPFLCICNIOA)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(lPFLCICNIOA); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case -340413111: - case -612945060: { - if (input.isAtField(FieldNames.dialogueEventParamList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(dialogueEventParamList); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public NpcRogueInfo clone() { - return new NpcRogueInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static NpcRogueInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new NpcRogueInfo(), data).checkInitialized(); - } - - public static NpcRogueInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new NpcRogueInfo(), input).checkInitialized(); - } - - public static NpcRogueInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new NpcRogueInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating NpcRogueInfo messages - */ - public static MessageFactory getFactory() { - return NpcRogueInfoFactory.INSTANCE; - } - - /** - * Protobuf type {@code LPFLCICNIOAEntry} - */ - public static final class LPFLCICNIOAEntry extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 key = 1; - */ - private int key; - - /** - * optional uint32 value = 2; - */ - private int value_; - - private LPFLCICNIOAEntry() { - } - - /** - * @return a new empty instance of {@code LPFLCICNIOAEntry} - */ - public static LPFLCICNIOAEntry newInstance() { - return new LPFLCICNIOAEntry(); - } - - /** - * optional uint32 key = 1; - * @return whether the key field is set - */ - public boolean hasKey() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 key = 1; - * @return this - */ - public LPFLCICNIOAEntry clearKey() { - bitField0_ &= ~0x00000001; - key = 0; - return this; - } - - /** - * optional uint32 key = 1; - * @return the key - */ - public int getKey() { - return key; - } - - /** - * optional uint32 key = 1; - * @param value the key to set - * @return this - */ - public LPFLCICNIOAEntry setKey(final int value) { - bitField0_ |= 0x00000001; - key = value; - return this; - } - - /** - * optional uint32 value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 value = 2; - * @return this - */ - public LPFLCICNIOAEntry clearValue() { - bitField0_ &= ~0x00000002; - value_ = 0; - return this; - } - - /** - * optional uint32 value = 2; - * @return the value_ - */ - public int getValue() { - return value_; - } - - /** - * optional uint32 value = 2; - * @param value the value_ to set - * @return this - */ - public LPFLCICNIOAEntry setValue(final int value) { - bitField0_ |= 0x00000002; - value_ = value; - return this; - } - - @Override - public LPFLCICNIOAEntry copyFrom(final LPFLCICNIOAEntry other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - key = other.key; - value_ = other.value_; - } - return this; - } - - @Override - public LPFLCICNIOAEntry mergeFrom(final LPFLCICNIOAEntry other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKey()) { - setKey(other.key); - } - if (other.hasValue()) { - setValue(other.value_); - } - return this; - } - - @Override - public LPFLCICNIOAEntry clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - key = 0; - value_ = 0; - return this; - } - - @Override - public LPFLCICNIOAEntry clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof LPFLCICNIOAEntry)) { - return false; - } - LPFLCICNIOAEntry other = (LPFLCICNIOAEntry) o; - return bitField0_ == other.bitField0_ - && (!hasKey() || key == other.key) - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public LPFLCICNIOAEntry mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // key - key = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // value_ - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.key, key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public LPFLCICNIOAEntry mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106079: { - if (input.isAtField(FieldNames.key)) { - if (!input.trySkipNullValue()) { - key = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public LPFLCICNIOAEntry clone() { - return new LPFLCICNIOAEntry().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static LPFLCICNIOAEntry parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new LPFLCICNIOAEntry(), data).checkInitialized(); - } - - public static LPFLCICNIOAEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new LPFLCICNIOAEntry(), input).checkInitialized(); - } - - public static LPFLCICNIOAEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new LPFLCICNIOAEntry(), input).checkInitialized(); - } - - /** - * @return factory for creating LPFLCICNIOAEntry messages - */ - public static MessageFactory getFactory() { - return LPFLCICNIOAEntryFactory.INSTANCE; - } - - private enum LPFLCICNIOAEntryFactory implements MessageFactory { - INSTANCE; - - @Override - public LPFLCICNIOAEntry create() { - return LPFLCICNIOAEntry.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName key = FieldName.forField("key"); - - static final FieldName value_ = FieldName.forField("value"); - } - } - - private enum NpcRogueInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public NpcRogueInfo create() { - return NpcRogueInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName dialogueId = FieldName.forField("dialogueId", "dialogue_id"); - - static final FieldName kIAKKDIECME = FieldName.forField("KIAKKDIECME"); - - static final FieldName eventId = FieldName.forField("eventId", "event_id"); - - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); - - static final FieldName pHDDANOOOJI = FieldName.forField("PHDDANOOOJI"); - - static final FieldName iDOFFGNNGEM = FieldName.forField("IDOFFGNNGEM"); - - static final FieldName finishDialogue = FieldName.forField("finishDialogue", "finish_dialogue"); - - static final FieldName lPFLCICNIOA = FieldName.forField("LPFLCICNIOA"); - - static final FieldName dialogueEventParamList = FieldName.forField("dialogueEventParamList", "dialogue_event_param_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java index 591f21e..f329b8c 100644 --- a/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/NpcTalkInfoOuterClass.java @@ -19,7 +19,7 @@ public final class NpcTalkInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 npc_talk_id = 13; + * optional uint32 npc_talk_id = 8; */ private int npcTalkId; @@ -34,7 +34,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 13; + * optional uint32 npc_talk_id = 8; * @return whether the npcTalkId field is set */ public boolean hasNpcTalkId() { @@ -42,7 +42,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 13; + * optional uint32 npc_talk_id = 8; * @return this */ public NpcTalkInfo clearNpcTalkId() { @@ -52,7 +52,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 13; + * optional uint32 npc_talk_id = 8; * @return the npcTalkId */ public int getNpcTalkId() { @@ -60,7 +60,7 @@ public final class NpcTalkInfoOuterClass { } /** - * optional uint32 npc_talk_id = 13; + * optional uint32 npc_talk_id = 8; * @param value the npcTalkId to set * @return this */ @@ -129,7 +129,7 @@ public final class NpcTalkInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(npcTalkId); } } @@ -150,7 +150,7 @@ public final class NpcTalkInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 64: { // npcTalkId npcTalkId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/OfferingInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/OfferingInfoOuterClass.java new file mode 100644 index 0000000..39450b1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/OfferingInfoOuterClass.java @@ -0,0 +1,874 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class OfferingInfoOuterClass { + /** + *
+   *  EPBFDKPHGKB
+   * 
+ * + * Protobuf type {@code OfferingInfo} + */ + public static final class OfferingInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  LNAJBIJGLEM
+     * 
+ * + * optional uint32 total_submitted_num = 8; + */ + private int totalSubmittedNum; + + /** + *
+     *  EKDOHEDHBML
+     * 
+ * + * optional uint32 offering_level = 12; + */ + private int offeringLevel; + + /** + *
+     *  NHJNFGEDACC
+     * 
+ * + * optional uint32 offering_id = 13; + */ + private int offeringId; + + /** + *
+     *  ADECCLMAAAF
+     * 
+ * + * optional uint32 submitted_num = 15; + */ + private int submittedNum; + + /** + *
+     *  NLOENEDONMP
+     * 
+ * + * optional .OfferingState offering_state = 6; + */ + private int offeringState; + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + */ + private final RepeatedInt takenRewardLevelList = RepeatedInt.newEmptyInstance(); + + private OfferingInfo() { + } + + /** + *
+     *  EPBFDKPHGKB
+     * 
+ * + * @return a new empty instance of {@code OfferingInfo} + */ + public static OfferingInfo newInstance() { + return new OfferingInfo(); + } + + /** + *
+     *  LNAJBIJGLEM
+     * 
+ * + * optional uint32 total_submitted_num = 8; + * @return whether the totalSubmittedNum field is set + */ + public boolean hasTotalSubmittedNum() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  LNAJBIJGLEM
+     * 
+ * + * optional uint32 total_submitted_num = 8; + * @return this + */ + public OfferingInfo clearTotalSubmittedNum() { + bitField0_ &= ~0x00000001; + totalSubmittedNum = 0; + return this; + } + + /** + *
+     *  LNAJBIJGLEM
+     * 
+ * + * optional uint32 total_submitted_num = 8; + * @return the totalSubmittedNum + */ + public int getTotalSubmittedNum() { + return totalSubmittedNum; + } + + /** + *
+     *  LNAJBIJGLEM
+     * 
+ * + * optional uint32 total_submitted_num = 8; + * @param value the totalSubmittedNum to set + * @return this + */ + public OfferingInfo setTotalSubmittedNum(final int value) { + bitField0_ |= 0x00000001; + totalSubmittedNum = value; + return this; + } + + /** + *
+     *  EKDOHEDHBML
+     * 
+ * + * optional uint32 offering_level = 12; + * @return whether the offeringLevel field is set + */ + public boolean hasOfferingLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  EKDOHEDHBML
+     * 
+ * + * optional uint32 offering_level = 12; + * @return this + */ + public OfferingInfo clearOfferingLevel() { + bitField0_ &= ~0x00000002; + offeringLevel = 0; + return this; + } + + /** + *
+     *  EKDOHEDHBML
+     * 
+ * + * optional uint32 offering_level = 12; + * @return the offeringLevel + */ + public int getOfferingLevel() { + return offeringLevel; + } + + /** + *
+     *  EKDOHEDHBML
+     * 
+ * + * optional uint32 offering_level = 12; + * @param value the offeringLevel to set + * @return this + */ + public OfferingInfo setOfferingLevel(final int value) { + bitField0_ |= 0x00000002; + offeringLevel = value; + return this; + } + + /** + *
+     *  NHJNFGEDACC
+     * 
+ * + * optional uint32 offering_id = 13; + * @return whether the offeringId field is set + */ + public boolean hasOfferingId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  NHJNFGEDACC
+     * 
+ * + * optional uint32 offering_id = 13; + * @return this + */ + public OfferingInfo clearOfferingId() { + bitField0_ &= ~0x00000004; + offeringId = 0; + return this; + } + + /** + *
+     *  NHJNFGEDACC
+     * 
+ * + * optional uint32 offering_id = 13; + * @return the offeringId + */ + public int getOfferingId() { + return offeringId; + } + + /** + *
+     *  NHJNFGEDACC
+     * 
+ * + * optional uint32 offering_id = 13; + * @param value the offeringId to set + * @return this + */ + public OfferingInfo setOfferingId(final int value) { + bitField0_ |= 0x00000004; + offeringId = value; + return this; + } + + /** + *
+     *  ADECCLMAAAF
+     * 
+ * + * optional uint32 submitted_num = 15; + * @return whether the submittedNum field is set + */ + public boolean hasSubmittedNum() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + *
+     *  ADECCLMAAAF
+     * 
+ * + * optional uint32 submitted_num = 15; + * @return this + */ + public OfferingInfo clearSubmittedNum() { + bitField0_ &= ~0x00000008; + submittedNum = 0; + return this; + } + + /** + *
+     *  ADECCLMAAAF
+     * 
+ * + * optional uint32 submitted_num = 15; + * @return the submittedNum + */ + public int getSubmittedNum() { + return submittedNum; + } + + /** + *
+     *  ADECCLMAAAF
+     * 
+ * + * optional uint32 submitted_num = 15; + * @param value the submittedNum to set + * @return this + */ + public OfferingInfo setSubmittedNum(final int value) { + bitField0_ |= 0x00000008; + submittedNum = value; + return this; + } + + /** + *
+     *  NLOENEDONMP
+     * 
+ * + * optional .OfferingState offering_state = 6; + * @return whether the offeringState field is set + */ + public boolean hasOfferingState() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + *
+     *  NLOENEDONMP
+     * 
+ * + * optional .OfferingState offering_state = 6; + * @return this + */ + public OfferingInfo clearOfferingState() { + bitField0_ &= ~0x00000010; + offeringState = 0; + return this; + } + + /** + *
+     *  NLOENEDONMP
+     * 
+ * + * optional .OfferingState offering_state = 6; + * @return the offeringState + */ + public OfferingStateOuterClass.OfferingState getOfferingState() { + return OfferingStateOuterClass.OfferingState.forNumber(offeringState); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link OfferingInfo#getOfferingState()}.getNumber(). + * + * @return numeric wire representation + */ + public int getOfferingStateValue() { + return offeringState; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link OfferingStateOuterClass.OfferingState}. Setting an invalid value + * can cause {@link OfferingInfo#getOfferingState()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public OfferingInfo setOfferingStateValue(final int value) { + bitField0_ |= 0x00000010; + offeringState = value; + return this; + } + + /** + *
+     *  NLOENEDONMP
+     * 
+ * + * optional .OfferingState offering_state = 6; + * @param value the offeringState to set + * @return this + */ + public OfferingInfo setOfferingState(final OfferingStateOuterClass.OfferingState value) { + bitField0_ |= 0x00000010; + offeringState = value.getNumber(); + return this; + } + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + * @return whether the takenRewardLevelList field is set + */ + public boolean hasTakenRewardLevelList() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + * @return this + */ + public OfferingInfo clearTakenRewardLevelList() { + bitField0_ &= ~0x00000020; + takenRewardLevelList.clear(); + return this; + } + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableTakenRewardLevelList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getTakenRewardLevelList() { + return takenRewardLevelList; + } + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableTakenRewardLevelList() { + bitField0_ |= 0x00000020; + return takenRewardLevelList; + } + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + * @param value the takenRewardLevelList to add + * @return this + */ + public OfferingInfo addTakenRewardLevelList(final int value) { + bitField0_ |= 0x00000020; + takenRewardLevelList.add(value); + return this; + } + + /** + *
+     *  HNDLHBNPDBO
+     * 
+ * + * repeated uint32 taken_reward_level_list = 9; + * @param values the takenRewardLevelList to add + * @return this + */ + public OfferingInfo addAllTakenRewardLevelList(final int... values) { + bitField0_ |= 0x00000020; + takenRewardLevelList.addAll(values); + return this; + } + + @Override + public OfferingInfo copyFrom(final OfferingInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + totalSubmittedNum = other.totalSubmittedNum; + offeringLevel = other.offeringLevel; + offeringId = other.offeringId; + submittedNum = other.submittedNum; + offeringState = other.offeringState; + takenRewardLevelList.copyFrom(other.takenRewardLevelList); + } + return this; + } + + @Override + public OfferingInfo mergeFrom(final OfferingInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasTotalSubmittedNum()) { + setTotalSubmittedNum(other.totalSubmittedNum); + } + if (other.hasOfferingLevel()) { + setOfferingLevel(other.offeringLevel); + } + if (other.hasOfferingId()) { + setOfferingId(other.offeringId); + } + if (other.hasSubmittedNum()) { + setSubmittedNum(other.submittedNum); + } + if (other.hasOfferingState()) { + setOfferingStateValue(other.offeringState); + } + if (other.hasTakenRewardLevelList()) { + getMutableTakenRewardLevelList().addAll(other.takenRewardLevelList); + } + return this; + } + + @Override + public OfferingInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + totalSubmittedNum = 0; + offeringLevel = 0; + offeringId = 0; + submittedNum = 0; + offeringState = 0; + takenRewardLevelList.clear(); + return this; + } + + @Override + public OfferingInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + takenRewardLevelList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof OfferingInfo)) { + return false; + } + OfferingInfo other = (OfferingInfo) o; + return bitField0_ == other.bitField0_ + && (!hasTotalSubmittedNum() || totalSubmittedNum == other.totalSubmittedNum) + && (!hasOfferingLevel() || offeringLevel == other.offeringLevel) + && (!hasOfferingId() || offeringId == other.offeringId) + && (!hasSubmittedNum() || submittedNum == other.submittedNum) + && (!hasOfferingState() || offeringState == other.offeringState) + && (!hasTakenRewardLevelList() || takenRewardLevelList.equals(other.takenRewardLevelList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(totalSubmittedNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(offeringLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(offeringId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(submittedNum); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeEnumNoTag(offeringState); + } + if ((bitField0_ & 0x00000020) != 0) { + for (int i = 0; i < takenRewardLevelList.length(); i++) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(takenRewardLevelList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(totalSubmittedNum); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(offeringLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(offeringId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(submittedNum); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(offeringState); + } + if ((bitField0_ & 0x00000020) != 0) { + size += (1 * takenRewardLevelList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewardLevelList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public OfferingInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // totalSubmittedNum + totalSubmittedNum = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // offeringLevel + offeringLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // offeringId + offeringId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // submittedNum + submittedNum = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // offeringState + final int value = input.readInt32(); + if (OfferingStateOuterClass.OfferingState.forNumber(value) != null) { + offeringState = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // takenRewardLevelList [packed=true] + input.readPackedUInt32(takenRewardLevelList, tag); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 72: { + // takenRewardLevelList [packed=false] + tag = input.readRepeatedUInt32(takenRewardLevelList, tag); + bitField0_ |= 0x00000020; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.totalSubmittedNum, totalSubmittedNum); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.offeringLevel, offeringLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.offeringId, offeringId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.submittedNum, submittedNum); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.offeringState, offeringState, OfferingStateOuterClass.OfferingState.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRepeatedUInt32(FieldNames.takenRewardLevelList, takenRewardLevelList); + } + output.endObject(); + } + + @Override + public OfferingInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -693023249: + case 1675883655: { + if (input.isAtField(FieldNames.totalSubmittedNum)) { + if (!input.trySkipNullValue()) { + totalSubmittedNum = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1083485982: + case -221744629: { + if (input.isAtField(FieldNames.offeringLevel)) { + if (!input.trySkipNullValue()) { + offeringLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 170733505: + case 997792756: { + if (input.isAtField(FieldNames.offeringId)) { + if (!input.trySkipNullValue()) { + offeringId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2047744885: + case 944918082: { + if (input.isAtField(FieldNames.submittedNum)) { + if (!input.trySkipNullValue()) { + submittedNum = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1090377771: + case -214852840: { + if (input.isAtField(FieldNames.offeringState)) { + if (!input.trySkipNullValue()) { + final OfferingStateOuterClass.OfferingState value = input.readEnum(OfferingStateOuterClass.OfferingState.converter()); + if (value != null) { + offeringState = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1221470220: + case 1483712017: { + if (input.isAtField(FieldNames.takenRewardLevelList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(takenRewardLevelList); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public OfferingInfo clone() { + return new OfferingInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static OfferingInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new OfferingInfo(), data).checkInitialized(); + } + + public static OfferingInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new OfferingInfo(), input).checkInitialized(); + } + + public static OfferingInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new OfferingInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating OfferingInfo messages + */ + public static MessageFactory getFactory() { + return OfferingInfoFactory.INSTANCE; + } + + private enum OfferingInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public OfferingInfo create() { + return OfferingInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName totalSubmittedNum = FieldName.forField("totalSubmittedNum", "total_submitted_num"); + + static final FieldName offeringLevel = FieldName.forField("offeringLevel", "offering_level"); + + static final FieldName offeringId = FieldName.forField("offeringId", "offering_id"); + + static final FieldName submittedNum = FieldName.forField("submittedNum", "submitted_num"); + + static final FieldName offeringState = FieldName.forField("offeringState", "offering_state"); + + static final FieldName takenRewardLevelList = FieldName.forField("takenRewardLevelList", "taken_reward_level_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/OfferingStateOuterClass.java b/src/generated/main/emu/lunarcore/proto/OfferingStateOuterClass.java new file mode 100644 index 0000000..3fe4156 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/OfferingStateOuterClass.java @@ -0,0 +1,128 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class OfferingStateOuterClass { + /** + * Protobuf enum {@code OfferingState} + */ + public enum OfferingState implements ProtoEnum { + /** + * OFFERING_STATE_NONE = 0; + */ + OFFERING_STATE_NONE("OFFERING_STATE_NONE", 0), + + /** + * OFFERING_STATE_LOCK = 1; + */ + OFFERING_STATE_LOCK("OFFERING_STATE_LOCK", 1), + + /** + * OFFERING_STATE_OPEN = 2; + */ + OFFERING_STATE_OPEN("OFFERING_STATE_OPEN", 2); + + /** + * OFFERING_STATE_NONE = 0; + */ + public static final int OFFERING_STATE_NONE_VALUE = 0; + + /** + * OFFERING_STATE_LOCK = 1; + */ + public static final int OFFERING_STATE_LOCK_VALUE = 1; + + /** + * OFFERING_STATE_OPEN = 2; + */ + public static final int OFFERING_STATE_OPEN_VALUE = 2; + + private final String name; + + private final int number; + + private OfferingState(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return OfferingStateConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static OfferingState forNumber(int value) { + return OfferingStateConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static OfferingState forNumberOr(int number, OfferingState other) { + OfferingState value = forNumber(number); + return value == null ? other : value; + } + + enum OfferingStateConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final OfferingState[] lookup = new OfferingState[3]; + + static { + lookup[0] = OFFERING_STATE_NONE; + lookup[1] = OFFERING_STATE_LOCK; + lookup[2] = OFFERING_STATE_OPEN; + } + + @Override + public final OfferingState forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final OfferingState forName(final CharSequence value) { + if (value.length() == 19) { + if (ProtoUtil.isEqual("OFFERING_STATE_NONE", value)) { + return OFFERING_STATE_NONE; + } + if (ProtoUtil.isEqual("OFFERING_STATE_LOCK", value)) { + return OFFERING_STATE_LOCK; + } + if (ProtoUtil.isEqual("OFFERING_STATE_OPEN", value)) { + return OFFERING_STATE_OPEN; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java index 5dd31cb..9d23170 100644 --- a/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultCsReqOuterClass.java @@ -21,47 +21,47 @@ public final class PVEBattleResultCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 5; - */ - private int stageId; - - /** - * optional uint32 battle_id = 9; - */ - private int battleId; - - /** - * optional uint32 client_res_version = 10; - */ - private int clientResVersion; - - /** - * optional uint32 cost_time = 13; + * optional uint32 cost_time = 4; */ private int costTime; /** - * optional .BattleEndStatus end_status = 1; + * optional uint32 client_res_version = 12; + */ + private int clientResVersion; + + /** + * optional uint32 stage_id = 14; + */ + private int stageId; + + /** + * optional uint32 battle_id = 15; + */ + private int battleId; + + /** + * optional .BattleEndStatus end_status = 8; */ private int endStatus; /** - * optional bool is_ai_consider_ultra_skill = 2; + * optional bool is_ai_consider_ultra_skill = 9; */ private boolean isAiConsiderUltraSkill; /** - * optional .BattleStatistics stt = 12; + * optional .BattleStatistics stt = 3; */ private final BattleStatisticsOuterClass.BattleStatistics stt = BattleStatisticsOuterClass.BattleStatistics.newInstance(); /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; */ private final RepeatedByte turnSnapshotHash = RepeatedByte.newEmptyInstance(); /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; */ private final RepeatedMessage opList = RepeatedMessage.newEmptyInstance(BattleOpOuterClass.BattleOp.getFactory()); @@ -76,136 +76,25 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 stage_id = 5; - * @return whether the stageId field is set + * optional uint32 cost_time = 4; + * @return whether the costTime field is set */ - public boolean hasStageId() { + public boolean hasCostTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 stage_id = 5; - * @return this - */ - public PVEBattleResultCsReq clearStageId() { - bitField0_ &= ~0x00000001; - stageId = 0; - return this; - } - - /** - * optional uint32 stage_id = 5; - * @return the stageId - */ - public int getStageId() { - return stageId; - } - - /** - * optional uint32 stage_id = 5; - * @param value the stageId to set - * @return this - */ - public PVEBattleResultCsReq setStageId(final int value) { - bitField0_ |= 0x00000001; - stageId = value; - return this; - } - - /** - * optional uint32 battle_id = 9; - * @return whether the battleId field is set - */ - public boolean hasBattleId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 battle_id = 9; - * @return this - */ - public PVEBattleResultCsReq clearBattleId() { - bitField0_ &= ~0x00000002; - battleId = 0; - return this; - } - - /** - * optional uint32 battle_id = 9; - * @return the battleId - */ - public int getBattleId() { - return battleId; - } - - /** - * optional uint32 battle_id = 9; - * @param value the battleId to set - * @return this - */ - public PVEBattleResultCsReq setBattleId(final int value) { - bitField0_ |= 0x00000002; - battleId = value; - return this; - } - - /** - * optional uint32 client_res_version = 10; - * @return whether the clientResVersion field is set - */ - public boolean hasClientResVersion() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 client_res_version = 10; - * @return this - */ - public PVEBattleResultCsReq clearClientResVersion() { - bitField0_ &= ~0x00000004; - clientResVersion = 0; - return this; - } - - /** - * optional uint32 client_res_version = 10; - * @return the clientResVersion - */ - public int getClientResVersion() { - return clientResVersion; - } - - /** - * optional uint32 client_res_version = 10; - * @param value the clientResVersion to set - * @return this - */ - public PVEBattleResultCsReq setClientResVersion(final int value) { - bitField0_ |= 0x00000004; - clientResVersion = value; - return this; - } - - /** - * optional uint32 cost_time = 13; - * @return whether the costTime field is set - */ - public boolean hasCostTime() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 cost_time = 13; + * optional uint32 cost_time = 4; * @return this */ public PVEBattleResultCsReq clearCostTime() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000001; costTime = 0; return this; } /** - * optional uint32 cost_time = 13; + * optional uint32 cost_time = 4; * @return the costTime */ public int getCostTime() { @@ -213,18 +102,129 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional uint32 cost_time = 13; + * optional uint32 cost_time = 4; * @param value the costTime to set * @return this */ public PVEBattleResultCsReq setCostTime(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; costTime = value; return this; } /** - * optional .BattleEndStatus end_status = 1; + * optional uint32 client_res_version = 12; + * @return whether the clientResVersion field is set + */ + public boolean hasClientResVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 client_res_version = 12; + * @return this + */ + public PVEBattleResultCsReq clearClientResVersion() { + bitField0_ &= ~0x00000002; + clientResVersion = 0; + return this; + } + + /** + * optional uint32 client_res_version = 12; + * @return the clientResVersion + */ + public int getClientResVersion() { + return clientResVersion; + } + + /** + * optional uint32 client_res_version = 12; + * @param value the clientResVersion to set + * @return this + */ + public PVEBattleResultCsReq setClientResVersion(final int value) { + bitField0_ |= 0x00000002; + clientResVersion = value; + return this; + } + + /** + * optional uint32 stage_id = 14; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 stage_id = 14; + * @return this + */ + public PVEBattleResultCsReq clearStageId() { + bitField0_ &= ~0x00000004; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 14; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 14; + * @param value the stageId to set + * @return this + */ + public PVEBattleResultCsReq setStageId(final int value) { + bitField0_ |= 0x00000004; + stageId = value; + return this; + } + + /** + * optional uint32 battle_id = 15; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 battle_id = 15; + * @return this + */ + public PVEBattleResultCsReq clearBattleId() { + bitField0_ &= ~0x00000008; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 15; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 15; + * @param value the battleId to set + * @return this + */ + public PVEBattleResultCsReq setBattleId(final int value) { + bitField0_ |= 0x00000008; + battleId = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 8; * @return whether the endStatus field is set */ public boolean hasEndStatus() { @@ -232,7 +232,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 1; + * optional .BattleEndStatus end_status = 8; * @return this */ public PVEBattleResultCsReq clearEndStatus() { @@ -242,7 +242,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 1; + * optional .BattleEndStatus end_status = 8; * @return the endStatus */ public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { @@ -275,7 +275,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleEndStatus end_status = 1; + * optional .BattleEndStatus end_status = 8; * @param value the endStatus to set * @return this */ @@ -287,7 +287,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 2; + * optional bool is_ai_consider_ultra_skill = 9; * @return whether the isAiConsiderUltraSkill field is set */ public boolean hasIsAiConsiderUltraSkill() { @@ -295,7 +295,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 2; + * optional bool is_ai_consider_ultra_skill = 9; * @return this */ public PVEBattleResultCsReq clearIsAiConsiderUltraSkill() { @@ -305,7 +305,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 2; + * optional bool is_ai_consider_ultra_skill = 9; * @return the isAiConsiderUltraSkill */ public boolean getIsAiConsiderUltraSkill() { @@ -313,7 +313,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bool is_ai_consider_ultra_skill = 2; + * optional bool is_ai_consider_ultra_skill = 9; * @param value the isAiConsiderUltraSkill to set * @return this */ @@ -324,7 +324,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 12; + * optional .BattleStatistics stt = 3; * @return whether the stt field is set */ public boolean hasStt() { @@ -332,7 +332,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 12; + * optional .BattleStatistics stt = 3; * @return this */ public PVEBattleResultCsReq clearStt() { @@ -342,7 +342,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 12; + * optional .BattleStatistics stt = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -356,7 +356,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 12; + * optional .BattleStatistics stt = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -370,7 +370,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional .BattleStatistics stt = 12; + * optional .BattleStatistics stt = 3; * @param value the stt to set * @return this */ @@ -381,7 +381,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * @return whether the turnSnapshotHash field is set */ public boolean hasTurnSnapshotHash() { @@ -389,7 +389,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * @return this */ public PVEBattleResultCsReq clearTurnSnapshotHash() { @@ -399,7 +399,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -413,7 +413,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -427,7 +427,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * @param value the turnSnapshotHash to add * @return this */ @@ -438,7 +438,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * @param values the turnSnapshotHash to add * @return this */ @@ -449,7 +449,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * optional bytes turn_snapshot_hash = 8; + * optional bytes turn_snapshot_hash = 13; * @param values the turnSnapshotHash to set * @return this */ @@ -460,7 +460,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; * @return whether the opList field is set */ public boolean hasOpList() { @@ -468,7 +468,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; * @return this */ public PVEBattleResultCsReq clearOpList() { @@ -478,7 +478,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -492,7 +492,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -506,7 +506,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; * @param value the opList to add * @return this */ @@ -517,7 +517,7 @@ public final class PVEBattleResultCsReqOuterClass { } /** - * repeated .BattleOp op_list = 6; + * repeated .BattleOp op_list = 2; * @param values the opList to add * @return this */ @@ -532,10 +532,10 @@ public final class PVEBattleResultCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + costTime = other.costTime; + clientResVersion = other.clientResVersion; stageId = other.stageId; battleId = other.battleId; - clientResVersion = other.clientResVersion; - costTime = other.costTime; endStatus = other.endStatus; isAiConsiderUltraSkill = other.isAiConsiderUltraSkill; stt.copyFrom(other.stt); @@ -551,18 +551,18 @@ public final class PVEBattleResultCsReqOuterClass { return this; } cachedSize = -1; + if (other.hasCostTime()) { + setCostTime(other.costTime); + } + if (other.hasClientResVersion()) { + setClientResVersion(other.clientResVersion); + } if (other.hasStageId()) { setStageId(other.stageId); } if (other.hasBattleId()) { setBattleId(other.battleId); } - if (other.hasClientResVersion()) { - setClientResVersion(other.clientResVersion); - } - if (other.hasCostTime()) { - setCostTime(other.costTime); - } if (other.hasEndStatus()) { setEndStatusValue(other.endStatus); } @@ -588,10 +588,10 @@ public final class PVEBattleResultCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; + costTime = 0; + clientResVersion = 0; stageId = 0; battleId = 0; - clientResVersion = 0; - costTime = 0; endStatus = 0; isAiConsiderUltraSkill = false; stt.clear(); @@ -623,10 +623,10 @@ public final class PVEBattleResultCsReqOuterClass { } PVEBattleResultCsReq other = (PVEBattleResultCsReq) o; return bitField0_ == other.bitField0_ + && (!hasCostTime() || costTime == other.costTime) + && (!hasClientResVersion() || clientResVersion == other.clientResVersion) && (!hasStageId() || stageId == other.stageId) && (!hasBattleId() || battleId == other.battleId) - && (!hasClientResVersion() || clientResVersion == other.clientResVersion) - && (!hasCostTime() || costTime == other.costTime) && (!hasEndStatus() || endStatus == other.endStatus) && (!hasIsAiConsiderUltraSkill() || isAiConsiderUltraSkill == other.isAiConsiderUltraSkill) && (!hasStt() || stt.equals(other.stt)) @@ -637,40 +637,40 @@ public final class PVEBattleResultCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(stageId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(battleId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(clientResVersion); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(costTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(clientResVersion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(stageId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(battleId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 64); output.writeEnumNoTag(endStatus); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 72); output.writeBoolNoTag(isAiConsiderUltraSkill); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 26); output.writeMessageNoTag(stt); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 106); output.writeBytesNoTag(turnSnapshotHash); } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < opList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 18); output.writeMessageNoTag(opList.get(i)); } } @@ -680,16 +680,16 @@ public final class PVEBattleResultCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(costTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(clientResVersion); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(costTime); + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); @@ -716,43 +716,43 @@ public final class PVEBattleResultCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // stageId - stageId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // battleId - battleId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // clientResVersion - clientResVersion = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 32: { // costTime costTime = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 96) { break; } } - case 8: { + case 96: { + // clientResVersion + clientResVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // battleId + battleId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { // endStatus final int value = input.readInt32(); if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { @@ -760,38 +760,38 @@ public final class PVEBattleResultCsReqOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 16) { + if (tag != 72) { break; } } - case 16: { + case 72: { // isAiConsiderUltraSkill isAiConsiderUltraSkill = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 98) { + if (tag != 26) { break; } } - case 98: { + case 26: { // stt input.readMessage(stt); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 66) { + if (tag != 106) { break; } } - case 66: { + case 106: { // turnSnapshotHash input.readBytes(turnSnapshotHash); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 50) { + if (tag != 18) { break; } } - case 50: { + case 18: { // opList tag = input.readRepeatedMessage(opList, tag); bitField0_ |= 0x00000100; @@ -817,16 +817,16 @@ public final class PVEBattleResultCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.costTime, costTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.clientResVersion, clientResVersion); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.costTime, costTime); + output.writeUInt32(FieldNames.battleId, battleId); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); @@ -853,11 +853,11 @@ public final class PVEBattleResultCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case -424687558: + case -269929473: { + if (input.isAtField(FieldNames.costTime)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + costTime = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -865,23 +865,23 @@ public final class PVEBattleResultCsReqOuterClass { } break; } - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { - if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -2005674429: case -349907515: { if (input.isAtField(FieldNames.clientResVersion)) { if (!input.trySkipNullValue()) { clientResVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -889,11 +889,11 @@ public final class PVEBattleResultCsReqOuterClass { } break; } - case -424687558: - case -269929473: { - if (input.isAtField(FieldNames.costTime)) { + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { if (!input.trySkipNullValue()) { - costTime = input.readUInt32(); + battleId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1018,13 +1018,13 @@ public final class PVEBattleResultCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); - - static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + static final FieldName costTime = FieldName.forField("costTime", "cost_time"); static final FieldName clientResVersion = FieldName.forField("clientResVersion", "client_res_version"); - static final FieldName costTime = FieldName.forField("costTime", "cost_time"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); diff --git a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java index e432e4b..063a115 100644 --- a/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PVEBattleResultScRspOuterClass.java @@ -21,72 +21,72 @@ public final class PVEBattleResultScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * optional uint32 battle_id = 6; - */ - private int battleId; - - /** - * optional uint32 stage_id = 11; + * optional uint32 stage_id = 3; */ private int stageId; /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 mismatch_turn_count = 10; */ private int mismatchTurnCount; /** - * optional uint32 event_id = 15; + * optional uint32 event_id = 12; */ private int eventId; /** - * optional .BattleEndStatus end_status = 2; + * optional uint32 battle_id = 13; + */ + private int battleId; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + /** + * optional .BattleEndStatus end_status = 4; */ private int endStatus; /** - * optional bool check_identical = 4; + * optional bool check_identical = 8; */ private boolean checkIdentical; - /** - * optional .ItemList unk1 = 1; - */ - private final ItemListOuterClass.ItemList unk1 = ItemListOuterClass.ItemList.newInstance(); - /** * optional .ItemList drop_data = 5; */ private final ItemListOuterClass.ItemList dropData = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList unk2 = 8; + * optional .ItemList extra_drop_data = 6; */ - private final ItemListOuterClass.ItemList unk2 = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList extraDropData = ItemListOuterClass.ItemList.newInstance(); /** - * optional .ItemList unk3 = 73; + * optional .ItemList unk_item_list_2 = 7; */ - private final ItemListOuterClass.ItemList unk3 = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList unkItemList2 = ItemListOuterClass.ItemList.newInstance(); /** - * optional string bin_version = 10; + * optional .ItemList unk_item_list_3 = 460; */ - private final Utf8String binVersion = Utf8String.newEmptyInstance(); + private final ItemListOuterClass.ItemList unkItemList3 = ItemListOuterClass.ItemList.newInstance(); /** - * optional string res_version = 12; + * optional string res_version = 2; */ private final Utf8String resVersion = Utf8String.newEmptyInstance(); /** - * repeated .BattleAvatar battle_avatar_list = 7; + * optional string bin_version = 15; + */ + private final Utf8String binVersion = Utf8String.newEmptyInstance(); + + /** + * repeated .BattleAvatar battle_avatar_list = 9; */ private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); @@ -101,99 +101,25 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set + * optional uint32 stage_id = 3; + * @return whether the stageId field is set */ - public boolean hasRetcode() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 3; - * @return this - */ - public PVEBattleResultScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public PVEBattleResultScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 battle_id = 6; - * @return whether the battleId field is set - */ - public boolean hasBattleId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 battle_id = 6; - * @return this - */ - public PVEBattleResultScRsp clearBattleId() { - bitField0_ &= ~0x00000002; - battleId = 0; - return this; - } - - /** - * optional uint32 battle_id = 6; - * @return the battleId - */ - public int getBattleId() { - return battleId; - } - - /** - * optional uint32 battle_id = 6; - * @param value the battleId to set - * @return this - */ - public PVEBattleResultScRsp setBattleId(final int value) { - bitField0_ |= 0x00000002; - battleId = value; - return this; - } - - /** - * optional uint32 stage_id = 11; - * @return whether the stageId field is set - */ - public boolean hasStageId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 stage_id = 11; + * optional uint32 stage_id = 3; * @return this */ public PVEBattleResultScRsp clearStageId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; stageId = 0; return this; } /** - * optional uint32 stage_id = 11; + * optional uint32 stage_id = 3; * @return the stageId */ public int getStageId() { @@ -201,36 +127,36 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional uint32 stage_id = 11; + * optional uint32 stage_id = 3; * @param value the stageId to set * @return this */ public PVEBattleResultScRsp setStageId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; stageId = value; return this; } /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 mismatch_turn_count = 10; * @return whether the mismatchTurnCount field is set */ public boolean hasMismatchTurnCount() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 mismatch_turn_count = 10; * @return this */ public PVEBattleResultScRsp clearMismatchTurnCount() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; mismatchTurnCount = 0; return this; } /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 mismatch_turn_count = 10; * @return the mismatchTurnCount */ public int getMismatchTurnCount() { @@ -238,36 +164,36 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional uint32 mismatch_turn_count = 14; + * optional uint32 mismatch_turn_count = 10; * @param value the mismatchTurnCount to set * @return this */ public PVEBattleResultScRsp setMismatchTurnCount(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; mismatchTurnCount = value; return this; } /** - * optional uint32 event_id = 15; + * optional uint32 event_id = 12; * @return whether the eventId field is set */ public boolean hasEventId() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 event_id = 15; + * optional uint32 event_id = 12; * @return this */ public PVEBattleResultScRsp clearEventId() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000004; eventId = 0; return this; } /** - * optional uint32 event_id = 15; + * optional uint32 event_id = 12; * @return the eventId */ public int getEventId() { @@ -275,18 +201,92 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional uint32 event_id = 15; + * optional uint32 event_id = 12; * @param value the eventId to set * @return this */ public PVEBattleResultScRsp setEventId(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; eventId = value; return this; } /** - * optional .BattleEndStatus end_status = 2; + * optional uint32 battle_id = 13; + * @return whether the battleId field is set + */ + public boolean hasBattleId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 battle_id = 13; + * @return this + */ + public PVEBattleResultScRsp clearBattleId() { + bitField0_ &= ~0x00000008; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 13; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 13; + * @param value the battleId to set + * @return this + */ + public PVEBattleResultScRsp setBattleId(final int value) { + bitField0_ |= 0x00000008; + battleId = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public PVEBattleResultScRsp clearRetcode() { + bitField0_ &= ~0x00000010; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public PVEBattleResultScRsp setRetcode(final int value) { + bitField0_ |= 0x00000010; + retcode = value; + return this; + } + + /** + * optional .BattleEndStatus end_status = 4; * @return whether the endStatus field is set */ public boolean hasEndStatus() { @@ -294,7 +294,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .BattleEndStatus end_status = 2; + * optional .BattleEndStatus end_status = 4; * @return this */ public PVEBattleResultScRsp clearEndStatus() { @@ -304,7 +304,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .BattleEndStatus end_status = 2; + * optional .BattleEndStatus end_status = 4; * @return the endStatus */ public BattleEndStatusOuterClass.BattleEndStatus getEndStatus() { @@ -337,7 +337,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional .BattleEndStatus end_status = 2; + * optional .BattleEndStatus end_status = 4; * @param value the endStatus to set * @return this */ @@ -349,7 +349,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 4; + * optional bool check_identical = 8; * @return whether the checkIdentical field is set */ public boolean hasCheckIdentical() { @@ -357,7 +357,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 4; + * optional bool check_identical = 8; * @return this */ public PVEBattleResultScRsp clearCheckIdentical() { @@ -367,7 +367,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 4; + * optional bool check_identical = 8; * @return the checkIdentical */ public boolean getCheckIdentical() { @@ -375,7 +375,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional bool check_identical = 4; + * optional bool check_identical = 8; * @param value the checkIdentical to set * @return this */ @@ -385,69 +385,12 @@ public final class PVEBattleResultScRspOuterClass { return this; } - /** - * optional .ItemList unk1 = 1; - * @return whether the unk1 field is set - */ - public boolean hasUnk1() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .ItemList unk1 = 1; - * @return this - */ - public PVEBattleResultScRsp clearUnk1() { - bitField0_ &= ~0x00000080; - unk1.clear(); - return this; - } - - /** - * optional .ItemList unk1 = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUnk1()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemListOuterClass.ItemList getUnk1() { - return unk1; - } - - /** - * optional .ItemList unk1 = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemListOuterClass.ItemList getMutableUnk1() { - bitField0_ |= 0x00000080; - return unk1; - } - - /** - * optional .ItemList unk1 = 1; - * @param value the unk1 to set - * @return this - */ - public PVEBattleResultScRsp setUnk1(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000080; - unk1.copyFrom(value); - return this; - } - /** * optional .ItemList drop_data = 5; * @return whether the dropData field is set */ public boolean hasDropData() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000080) != 0; } /** @@ -455,7 +398,7 @@ public final class PVEBattleResultScRspOuterClass { * @return this */ public PVEBattleResultScRsp clearDropData() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000080; dropData.clear(); return this; } @@ -484,7 +427,7 @@ public final class PVEBattleResultScRspOuterClass { * @return internal storage object for modifications */ public ItemListOuterClass.ItemList getMutableDropData() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return dropData; } @@ -494,45 +437,102 @@ public final class PVEBattleResultScRspOuterClass { * @return this */ public PVEBattleResultScRsp setDropData(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; dropData.copyFrom(value); return this; } /** - * optional .ItemList unk2 = 8; - * @return whether the unk2 field is set + * optional .ItemList extra_drop_data = 6; + * @return whether the extraDropData field is set */ - public boolean hasUnk2() { + public boolean hasExtraDropData() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .ItemList extra_drop_data = 6; + * @return this + */ + public PVEBattleResultScRsp clearExtraDropData() { + bitField0_ &= ~0x00000100; + extraDropData.clear(); + return this; + } + + /** + * optional .ItemList extra_drop_data = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableExtraDropData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getExtraDropData() { + return extraDropData; + } + + /** + * optional .ItemList extra_drop_data = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemListOuterClass.ItemList getMutableExtraDropData() { + bitField0_ |= 0x00000100; + return extraDropData; + } + + /** + * optional .ItemList extra_drop_data = 6; + * @param value the extraDropData to set + * @return this + */ + public PVEBattleResultScRsp setExtraDropData(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000100; + extraDropData.copyFrom(value); + return this; + } + + /** + * optional .ItemList unk_item_list_2 = 7; + * @return whether the unkItemList2 field is set + */ + public boolean hasUnkItemList2() { return (bitField0_ & 0x00000200) != 0; } /** - * optional .ItemList unk2 = 8; + * optional .ItemList unk_item_list_2 = 7; * @return this */ - public PVEBattleResultScRsp clearUnk2() { + public PVEBattleResultScRsp clearUnkItemList2() { bitField0_ &= ~0x00000200; - unk2.clear(); + unkItemList2.clear(); return this; } /** - * optional .ItemList unk2 = 8; + * optional .ItemList unk_item_list_2 = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnk2()} if you want to modify it. + * Use {@link #getMutableUnkItemList2()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getUnk2() { - return unk2; + public ItemListOuterClass.ItemList getUnkItemList2() { + return unkItemList2; } /** - * optional .ItemList unk2 = 8; + * optional .ItemList unk_item_list_2 = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -540,56 +540,56 @@ public final class PVEBattleResultScRspOuterClass { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableUnk2() { + public ItemListOuterClass.ItemList getMutableUnkItemList2() { bitField0_ |= 0x00000200; - return unk2; + return unkItemList2; } /** - * optional .ItemList unk2 = 8; - * @param value the unk2 to set + * optional .ItemList unk_item_list_2 = 7; + * @param value the unkItemList2 to set * @return this */ - public PVEBattleResultScRsp setUnk2(final ItemListOuterClass.ItemList value) { + public PVEBattleResultScRsp setUnkItemList2(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000200; - unk2.copyFrom(value); + unkItemList2.copyFrom(value); return this; } /** - * optional .ItemList unk3 = 73; - * @return whether the unk3 field is set + * optional .ItemList unk_item_list_3 = 460; + * @return whether the unkItemList3 field is set */ - public boolean hasUnk3() { + public boolean hasUnkItemList3() { return (bitField0_ & 0x00000400) != 0; } /** - * optional .ItemList unk3 = 73; + * optional .ItemList unk_item_list_3 = 460; * @return this */ - public PVEBattleResultScRsp clearUnk3() { + public PVEBattleResultScRsp clearUnkItemList3() { bitField0_ &= ~0x00000400; - unk3.clear(); + unkItemList3.clear(); return this; } /** - * optional .ItemList unk3 = 73; + * optional .ItemList unk_item_list_3 = 460; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableUnk3()} if you want to modify it. + * Use {@link #getMutableUnkItemList3()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getUnk3() { - return unk3; + public ItemListOuterClass.ItemList getUnkItemList3() { + return unkItemList3; } /** - * optional .ItemList unk3 = 73; + * optional .ItemList unk_item_list_3 = 460; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -597,107 +597,42 @@ public final class PVEBattleResultScRspOuterClass { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableUnk3() { + public ItemListOuterClass.ItemList getMutableUnkItemList3() { bitField0_ |= 0x00000400; - return unk3; + return unkItemList3; } /** - * optional .ItemList unk3 = 73; - * @param value the unk3 to set + * optional .ItemList unk_item_list_3 = 460; + * @param value the unkItemList3 to set * @return this */ - public PVEBattleResultScRsp setUnk3(final ItemListOuterClass.ItemList value) { + public PVEBattleResultScRsp setUnkItemList3(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000400; - unk3.copyFrom(value); + unkItemList3.copyFrom(value); return this; } /** - * optional string bin_version = 10; - * @return whether the binVersion field is set + * optional string res_version = 2; + * @return whether the resVersion field is set */ - public boolean hasBinVersion() { + public boolean hasResVersion() { return (bitField0_ & 0x00000800) != 0; } /** - * optional string bin_version = 10; - * @return this - */ - public PVEBattleResultScRsp clearBinVersion() { - bitField0_ &= ~0x00000800; - binVersion.clear(); - return this; - } - - /** - * optional string bin_version = 10; - * @return the binVersion - */ - public String getBinVersion() { - return binVersion.getString(); - } - - /** - * optional string bin_version = 10; - * @return internal {@code Utf8String} representation of binVersion for reading - */ - public Utf8String getBinVersionBytes() { - return this.binVersion; - } - - /** - * optional string bin_version = 10; - * @return internal {@code Utf8String} representation of binVersion for modifications - */ - public Utf8String getMutableBinVersionBytes() { - bitField0_ |= 0x00000800; - return this.binVersion; - } - - /** - * optional string bin_version = 10; - * @param value the binVersion to set - * @return this - */ - public PVEBattleResultScRsp setBinVersion(final CharSequence value) { - bitField0_ |= 0x00000800; - binVersion.copyFrom(value); - return this; - } - - /** - * optional string bin_version = 10; - * @param value the binVersion to set - * @return this - */ - public PVEBattleResultScRsp setBinVersion(final Utf8String value) { - bitField0_ |= 0x00000800; - binVersion.copyFrom(value); - return this; - } - - /** - * optional string res_version = 12; - * @return whether the resVersion field is set - */ - public boolean hasResVersion() { - return (bitField0_ & 0x00001000) != 0; - } - - /** - * optional string res_version = 12; + * optional string res_version = 2; * @return this */ public PVEBattleResultScRsp clearResVersion() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00000800; resVersion.clear(); return this; } /** - * optional string res_version = 12; + * optional string res_version = 2; * @return the resVersion */ public String getResVersion() { @@ -705,7 +640,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional string res_version = 12; + * optional string res_version = 2; * @return internal {@code Utf8String} representation of resVersion for reading */ public Utf8String getResVersionBytes() { @@ -713,38 +648,103 @@ public final class PVEBattleResultScRspOuterClass { } /** - * optional string res_version = 12; + * optional string res_version = 2; * @return internal {@code Utf8String} representation of resVersion for modifications */ public Utf8String getMutableResVersionBytes() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; return this.resVersion; } /** - * optional string res_version = 12; + * optional string res_version = 2; * @param value the resVersion to set * @return this */ public PVEBattleResultScRsp setResVersion(final CharSequence value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; resVersion.copyFrom(value); return this; } /** - * optional string res_version = 12; + * optional string res_version = 2; * @param value the resVersion to set * @return this */ public PVEBattleResultScRsp setResVersion(final Utf8String value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; resVersion.copyFrom(value); return this; } /** - * repeated .BattleAvatar battle_avatar_list = 7; + * optional string bin_version = 15; + * @return whether the binVersion field is set + */ + public boolean hasBinVersion() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string bin_version = 15; + * @return this + */ + public PVEBattleResultScRsp clearBinVersion() { + bitField0_ &= ~0x00001000; + binVersion.clear(); + return this; + } + + /** + * optional string bin_version = 15; + * @return the binVersion + */ + public String getBinVersion() { + return binVersion.getString(); + } + + /** + * optional string bin_version = 15; + * @return internal {@code Utf8String} representation of binVersion for reading + */ + public Utf8String getBinVersionBytes() { + return this.binVersion; + } + + /** + * optional string bin_version = 15; + * @return internal {@code Utf8String} representation of binVersion for modifications + */ + public Utf8String getMutableBinVersionBytes() { + bitField0_ |= 0x00001000; + return this.binVersion; + } + + /** + * optional string bin_version = 15; + * @param value the binVersion to set + * @return this + */ + public PVEBattleResultScRsp setBinVersion(final CharSequence value) { + bitField0_ |= 0x00001000; + binVersion.copyFrom(value); + return this; + } + + /** + * optional string bin_version = 15; + * @param value the binVersion to set + * @return this + */ + public PVEBattleResultScRsp setBinVersion(final Utf8String value) { + bitField0_ |= 0x00001000; + binVersion.copyFrom(value); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 9; * @return whether the battleAvatarList field is set */ public boolean hasBattleAvatarList() { @@ -752,7 +752,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 7; + * repeated .BattleAvatar battle_avatar_list = 9; * @return this */ public PVEBattleResultScRsp clearBattleAvatarList() { @@ -762,7 +762,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 7; + * repeated .BattleAvatar battle_avatar_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -776,7 +776,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 7; + * repeated .BattleAvatar battle_avatar_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -790,7 +790,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 7; + * repeated .BattleAvatar battle_avatar_list = 9; * @param value the battleAvatarList to add * @return this */ @@ -802,7 +802,7 @@ public final class PVEBattleResultScRspOuterClass { } /** - * repeated .BattleAvatar battle_avatar_list = 7; + * repeated .BattleAvatar battle_avatar_list = 9; * @param values the battleAvatarList to add * @return this */ @@ -818,19 +818,19 @@ public final class PVEBattleResultScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; - battleId = other.battleId; stageId = other.stageId; mismatchTurnCount = other.mismatchTurnCount; eventId = other.eventId; + battleId = other.battleId; + retcode = other.retcode; endStatus = other.endStatus; checkIdentical = other.checkIdentical; - unk1.copyFrom(other.unk1); dropData.copyFrom(other.dropData); - unk2.copyFrom(other.unk2); - unk3.copyFrom(other.unk3); - binVersion.copyFrom(other.binVersion); + extraDropData.copyFrom(other.extraDropData); + unkItemList2.copyFrom(other.unkItemList2); + unkItemList3.copyFrom(other.unkItemList3); resVersion.copyFrom(other.resVersion); + binVersion.copyFrom(other.binVersion); battleAvatarList.copyFrom(other.battleAvatarList); } return this; @@ -842,12 +842,6 @@ public final class PVEBattleResultScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasBattleId()) { - setBattleId(other.battleId); - } if (other.hasStageId()) { setStageId(other.stageId); } @@ -857,30 +851,36 @@ public final class PVEBattleResultScRspOuterClass { if (other.hasEventId()) { setEventId(other.eventId); } + if (other.hasBattleId()) { + setBattleId(other.battleId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasEndStatus()) { setEndStatusValue(other.endStatus); } if (other.hasCheckIdentical()) { setCheckIdentical(other.checkIdentical); } - if (other.hasUnk1()) { - getMutableUnk1().mergeFrom(other.unk1); - } if (other.hasDropData()) { getMutableDropData().mergeFrom(other.dropData); } - if (other.hasUnk2()) { - getMutableUnk2().mergeFrom(other.unk2); + if (other.hasExtraDropData()) { + getMutableExtraDropData().mergeFrom(other.extraDropData); } - if (other.hasUnk3()) { - getMutableUnk3().mergeFrom(other.unk3); + if (other.hasUnkItemList2()) { + getMutableUnkItemList2().mergeFrom(other.unkItemList2); } - if (other.hasBinVersion()) { - getMutableBinVersionBytes().copyFrom(other.binVersion); + if (other.hasUnkItemList3()) { + getMutableUnkItemList3().mergeFrom(other.unkItemList3); } if (other.hasResVersion()) { getMutableResVersionBytes().copyFrom(other.resVersion); } + if (other.hasBinVersion()) { + getMutableBinVersionBytes().copyFrom(other.binVersion); + } if (other.hasBattleAvatarList()) { getMutableBattleAvatarList().addAll(other.battleAvatarList); } @@ -894,19 +894,19 @@ public final class PVEBattleResultScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; - battleId = 0; stageId = 0; mismatchTurnCount = 0; eventId = 0; + battleId = 0; + retcode = 0; endStatus = 0; checkIdentical = false; - unk1.clear(); dropData.clear(); - unk2.clear(); - unk3.clear(); - binVersion.clear(); + extraDropData.clear(); + unkItemList2.clear(); + unkItemList3.clear(); resVersion.clear(); + binVersion.clear(); battleAvatarList.clear(); return this; } @@ -918,12 +918,12 @@ public final class PVEBattleResultScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - unk1.clearQuick(); dropData.clearQuick(); - unk2.clearQuick(); - unk3.clearQuick(); - binVersion.clear(); + extraDropData.clearQuick(); + unkItemList2.clearQuick(); + unkItemList3.clearQuick(); resVersion.clear(); + binVersion.clear(); battleAvatarList.clearQuick(); return this; } @@ -938,19 +938,19 @@ public final class PVEBattleResultScRspOuterClass { } PVEBattleResultScRsp other = (PVEBattleResultScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasBattleId() || battleId == other.battleId) && (!hasStageId() || stageId == other.stageId) && (!hasMismatchTurnCount() || mismatchTurnCount == other.mismatchTurnCount) && (!hasEventId() || eventId == other.eventId) + && (!hasBattleId() || battleId == other.battleId) + && (!hasRetcode() || retcode == other.retcode) && (!hasEndStatus() || endStatus == other.endStatus) && (!hasCheckIdentical() || checkIdentical == other.checkIdentical) - && (!hasUnk1() || unk1.equals(other.unk1)) && (!hasDropData() || dropData.equals(other.dropData)) - && (!hasUnk2() || unk2.equals(other.unk2)) - && (!hasUnk3() || unk3.equals(other.unk3)) - && (!hasBinVersion() || binVersion.equals(other.binVersion)) + && (!hasExtraDropData() || extraDropData.equals(other.extraDropData)) + && (!hasUnkItemList2() || unkItemList2.equals(other.unkItemList2)) + && (!hasUnkItemList3() || unkItemList3.equals(other.unkItemList3)) && (!hasResVersion() || resVersion.equals(other.resVersion)) + && (!hasBinVersion() || binVersion.equals(other.binVersion)) && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)); } @@ -958,59 +958,59 @@ public final class PVEBattleResultScRspOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(battleId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); output.writeUInt32NoTag(stageId); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); output.writeUInt32NoTag(mismatchTurnCount); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); output.writeUInt32NoTag(eventId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(battleId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 32); output.writeEnumNoTag(endStatus); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 64); output.writeBoolNoTag(checkIdentical); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(unk1); - } - if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 42); output.writeMessageNoTag(dropData); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(extraDropData); + } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(unk2); + output.writeRawByte((byte) 58); + output.writeMessageNoTag(unkItemList2); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawLittleEndian16((short) 1226); - output.writeMessageNoTag(unk3); + output.writeRawLittleEndian16((short) 7394); + output.writeMessageNoTag(unkItemList3); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRawByte((byte) 82); - output.writeStringNoTag(binVersion); + output.writeRawByte((byte) 18); + output.writeStringNoTag(resVersion); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRawByte((byte) 98); - output.writeStringNoTag(resVersion); + output.writeRawByte((byte) 122); + output.writeStringNoTag(binVersion); } if ((bitField0_ & 0x00002000) != 0) { for (int i = 0; i < battleAvatarList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 74); output.writeMessageNoTag(battleAvatarList.get(i)); } } @@ -1020,20 +1020,20 @@ public final class PVEBattleResultScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(mismatchTurnCount); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(endStatus); } @@ -1041,22 +1041,22 @@ public final class PVEBattleResultScRspOuterClass { size += 2; } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(unk1); - } - if ((bitField0_ & 0x00000100) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(dropData); } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(extraDropData); + } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(unk2); + size += 1 + ProtoSink.computeMessageSizeNoTag(unkItemList2); } if ((bitField0_ & 0x00000400) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(unk3); + size += 2 + ProtoSink.computeMessageSizeNoTag(unkItemList3); } if ((bitField0_ & 0x00000800) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(binVersion); + size += 1 + ProtoSink.computeStringSizeNoTag(resVersion); } if ((bitField0_ & 0x00001000) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(resVersion); + size += 1 + ProtoSink.computeStringSizeNoTag(binVersion); } if ((bitField0_ & 0x00002000) != 0) { size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); @@ -1072,51 +1072,51 @@ public final class PVEBattleResultScRspOuterClass { while (true) { switch (tag) { case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // battleId - battleId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { // stageId stageId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // mismatchTurnCount + mismatchTurnCount = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // eventId + eventId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // battleId + battleId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // mismatchTurnCount - mismatchTurnCount = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // eventId - eventId = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 16) { + if (tag != 32) { break; } } - case 16: { + case 32: { // endStatus final int value = input.readInt32(); if (BattleEndStatusOuterClass.BattleEndStatus.forNumber(value) != null) { @@ -1124,24 +1124,15 @@ public final class PVEBattleResultScRspOuterClass { bitField0_ |= 0x00000020; } tag = input.readTag(); - if (tag != 32) { + if (tag != 64) { break; } } - case 32: { + case 64: { // checkIdentical checkIdentical = input.readBool(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // unk1 - input.readMessage(unk1); - bitField0_ |= 0x00000080; - tag = input.readTag(); if (tag != 42) { break; } @@ -1149,49 +1140,58 @@ public final class PVEBattleResultScRspOuterClass { case 42: { // dropData input.readMessage(dropData); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // extraDropData + input.readMessage(extraDropData); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // unk2 - input.readMessage(unk2); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 586) { - break; - } - } - case 586: { - // unk3 - input.readMessage(unk3); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // binVersion - input.readString(binVersion); - bitField0_ |= 0x00000800; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // resVersion - input.readString(resVersion); - bitField0_ |= 0x00001000; - tag = input.readTag(); if (tag != 58) { break; } } case 58: { + // unkItemList2 + input.readMessage(unkItemList2); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 3682) { + break; + } + } + case 3682: { + // unkItemList3 + input.readMessage(unkItemList3); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // resVersion + input.readString(resVersion); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // binVersion + input.readString(binVersion); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { // battleAvatarList tag = input.readRepeatedMessage(battleAvatarList, tag); bitField0_ |= 0x00002000; @@ -1217,20 +1217,20 @@ public final class PVEBattleResultScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.stageId, stageId); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.mismatchTurnCount, mismatchTurnCount); } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.eventId, eventId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.battleId, battleId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } if ((bitField0_ & 0x00000020) != 0) { output.writeEnum(FieldNames.endStatus, endStatus, BattleEndStatusOuterClass.BattleEndStatus.converter()); } @@ -1238,22 +1238,22 @@ public final class PVEBattleResultScRspOuterClass { output.writeBool(FieldNames.checkIdentical, checkIdentical); } if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.unk1, unk1); - } - if ((bitField0_ & 0x00000100) != 0) { output.writeMessage(FieldNames.dropData, dropData); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.extraDropData, extraDropData); + } if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.unk2, unk2); + output.writeMessage(FieldNames.unkItemList2, unkItemList2); } if ((bitField0_ & 0x00000400) != 0) { - output.writeMessage(FieldNames.unk3, unk3); + output.writeMessage(FieldNames.unkItemList3, unkItemList3); } if ((bitField0_ & 0x00000800) != 0) { - output.writeString(FieldNames.binVersion, binVersion); + output.writeString(FieldNames.resVersion, resVersion); } if ((bitField0_ & 0x00001000) != 0) { - output.writeString(FieldNames.resVersion, resVersion); + output.writeString(FieldNames.binVersion, binVersion); } if ((bitField0_ & 0x00002000) != 0) { output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); @@ -1268,35 +1268,12 @@ public final class PVEBattleResultScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { - if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -1897528135: case 1306191356: { if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { stageId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -1308,7 +1285,7 @@ public final class PVEBattleResultScRspOuterClass { if (input.isAtField(FieldNames.mismatchTurnCount)) { if (!input.trySkipNullValue()) { mismatchTurnCount = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -1320,6 +1297,29 @@ public final class PVEBattleResultScRspOuterClass { if (input.isAtField(FieldNames.eventId)) { if (!input.trySkipNullValue()) { eventId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1356,10 +1356,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 3594623: { - if (input.isAtField(FieldNames.unk1)) { + case -433028295: + case -513968390: { + if (input.isAtField(FieldNames.dropData)) { if (!input.trySkipNullValue()) { - input.readMessage(unk1); + input.readMessage(dropData); bitField0_ |= 0x00000080; } } else { @@ -1367,11 +1368,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case -433028295: - case -513968390: { - if (input.isAtField(FieldNames.dropData)) { + case 222653289: + case -951570037: { + if (input.isAtField(FieldNames.extraDropData)) { if (!input.trySkipNullValue()) { - input.readMessage(dropData); + input.readMessage(extraDropData); bitField0_ |= 0x00000100; } } else { @@ -1379,10 +1380,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 3594624: { - if (input.isAtField(FieldNames.unk2)) { + case -1880508625: + case -2030974032: { + if (input.isAtField(FieldNames.unkItemList2)) { if (!input.trySkipNullValue()) { - input.readMessage(unk2); + input.readMessage(unkItemList2); bitField0_ |= 0x00000200; } } else { @@ -1390,10 +1392,11 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 3594625: { - if (input.isAtField(FieldNames.unk3)) { + case -1880508624: + case -2030974031: { + if (input.isAtField(FieldNames.unkItemList3)) { if (!input.trySkipNullValue()) { - input.readMessage(unk3); + input.readMessage(unkItemList3); bitField0_ |= 0x00000400; } } else { @@ -1401,23 +1404,23 @@ public final class PVEBattleResultScRspOuterClass { } break; } - case 1864225233: - case -2003285600: { - if (input.isAtField(FieldNames.binVersion)) { - if (!input.trySkipNullValue()) { - input.readString(binVersion); - bitField0_ |= 0x00000800; - } - } else { - input.skipUnknownField(); - } - break; - } case 1778976792: case -351019975: { if (input.isAtField(FieldNames.resVersion)) { if (!input.trySkipNullValue()) { input.readString(resVersion); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1864225233: + case -2003285600: { + if (input.isAtField(FieldNames.binVersion)) { + if (!input.trySkipNullValue()) { + input.readString(binVersion); bitField0_ |= 0x00001000; } } else { @@ -1490,32 +1493,32 @@ public final class PVEBattleResultScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName battleId = FieldName.forField("battleId", "battle_id"); - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); static final FieldName mismatchTurnCount = FieldName.forField("mismatchTurnCount", "mismatch_turn_count"); static final FieldName eventId = FieldName.forField("eventId", "event_id"); + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName endStatus = FieldName.forField("endStatus", "end_status"); static final FieldName checkIdentical = FieldName.forField("checkIdentical", "check_identical"); - static final FieldName unk1 = FieldName.forField("unk1"); - static final FieldName dropData = FieldName.forField("dropData", "drop_data"); - static final FieldName unk2 = FieldName.forField("unk2"); + static final FieldName extraDropData = FieldName.forField("extraDropData", "extra_drop_data"); - static final FieldName unk3 = FieldName.forField("unk3"); + static final FieldName unkItemList2 = FieldName.forField("unkItemList2", "unk_item_list_2"); - static final FieldName binVersion = FieldName.forField("binVersion", "bin_version"); + static final FieldName unkItemList3 = FieldName.forField("unkItemList3", "unk_item_list_3"); static final FieldName resVersion = FieldName.forField("resVersion", "res_version"); + static final FieldName binVersion = FieldName.forField("binVersion", "bin_version"); + static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java deleted file mode 100644 index 5b6abf0..0000000 --- a/src/generated/main/emu/lunarcore/proto/PickRogueAvatarScRspOuterClass.java +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class PickRogueAvatarScRspOuterClass { - /** - * Protobuf type {@code PickRogueAvatarScRsp} - */ - public static final class PickRogueAvatarScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated uint32 base_avatar_list = 7; - */ - private final RepeatedInt baseAvatarList = RepeatedInt.newEmptyInstance(); - - private PickRogueAvatarScRsp() { - } - - /** - * @return a new empty instance of {@code PickRogueAvatarScRsp} - */ - public static PickRogueAvatarScRsp newInstance() { - return new PickRogueAvatarScRsp(); - } - - /** - * repeated uint32 base_avatar_list = 7; - * @return whether the baseAvatarList field is set - */ - public boolean hasBaseAvatarList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated uint32 base_avatar_list = 7; - * @return this - */ - public PickRogueAvatarScRsp clearBaseAvatarList() { - bitField0_ &= ~0x00000001; - baseAvatarList.clear(); - return this; - } - - /** - * repeated uint32 base_avatar_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBaseAvatarList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBaseAvatarList() { - return baseAvatarList; - } - - /** - * repeated uint32 base_avatar_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableBaseAvatarList() { - bitField0_ |= 0x00000001; - return baseAvatarList; - } - - /** - * repeated uint32 base_avatar_list = 7; - * @param value the baseAvatarList to add - * @return this - */ - public PickRogueAvatarScRsp addBaseAvatarList(final int value) { - bitField0_ |= 0x00000001; - baseAvatarList.add(value); - return this; - } - - /** - * repeated uint32 base_avatar_list = 7; - * @param values the baseAvatarList to add - * @return this - */ - public PickRogueAvatarScRsp addAllBaseAvatarList(final int... values) { - bitField0_ |= 0x00000001; - baseAvatarList.addAll(values); - return this; - } - - @Override - public PickRogueAvatarScRsp copyFrom(final PickRogueAvatarScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - baseAvatarList.copyFrom(other.baseAvatarList); - } - return this; - } - - @Override - public PickRogueAvatarScRsp mergeFrom(final PickRogueAvatarScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBaseAvatarList()) { - getMutableBaseAvatarList().addAll(other.baseAvatarList); - } - return this; - } - - @Override - public PickRogueAvatarScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - baseAvatarList.clear(); - return this; - } - - @Override - public PickRogueAvatarScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - baseAvatarList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof PickRogueAvatarScRsp)) { - return false; - } - PickRogueAvatarScRsp other = (PickRogueAvatarScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasBaseAvatarList() || baseAvatarList.equals(other.baseAvatarList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < baseAvatarList.length(); i++) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(baseAvatarList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * baseAvatarList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public PickRogueAvatarScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 58: { - // baseAvatarList [packed=true] - input.readPackedUInt32(baseAvatarList, tag); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 56: { - // baseAvatarList [packed=false] - tag = input.readRepeatedUInt32(baseAvatarList, tag); - bitField0_ |= 0x00000001; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarList, baseAvatarList); - } - output.endObject(); - } - - @Override - public PickRogueAvatarScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1750786888: - case -387691690: { - if (input.isAtField(FieldNames.baseAvatarList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(baseAvatarList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public PickRogueAvatarScRsp clone() { - return new PickRogueAvatarScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static PickRogueAvatarScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PickRogueAvatarScRsp(), data).checkInitialized(); - } - - public static PickRogueAvatarScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PickRogueAvatarScRsp(), input).checkInitialized(); - } - - public static PickRogueAvatarScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PickRogueAvatarScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating PickRogueAvatarScRsp messages - */ - public static MessageFactory getFactory() { - return PickRogueAvatarScRspFactory.INSTANCE; - } - - private enum PickRogueAvatarScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public PickRogueAvatarScRsp create() { - return PickRogueAvatarScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName baseAvatarList = FieldName.forField("baseAvatarList", "base_avatar_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java index f257fc0..16f743a 100644 --- a/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PileItemOuterClass.java @@ -19,15 +19,15 @@ public final class PileItemOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 item_num = 12; - */ - private int itemNum; - - /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 2; */ private int itemId; + /** + * optional uint32 item_num = 5; + */ + private int itemNum; + private PileItem() { } @@ -39,62 +39,25 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_num = 12; - * @return whether the itemNum field is set + * optional uint32 item_id = 2; + * @return whether the itemId field is set */ - public boolean hasItemNum() { + public boolean hasItemId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 item_num = 12; - * @return this - */ - public PileItem clearItemNum() { - bitField0_ &= ~0x00000001; - itemNum = 0; - return this; - } - - /** - * optional uint32 item_num = 12; - * @return the itemNum - */ - public int getItemNum() { - return itemNum; - } - - /** - * optional uint32 item_num = 12; - * @param value the itemNum to set - * @return this - */ - public PileItem setItemNum(final int value) { - bitField0_ |= 0x00000001; - itemNum = value; - return this; - } - - /** - * optional uint32 item_id = 14; - * @return whether the itemId field is set - */ - public boolean hasItemId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 2; * @return this */ public PileItem clearItemId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; itemId = 0; return this; } /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 2; * @return the itemId */ public int getItemId() { @@ -102,23 +65,60 @@ public final class PileItemOuterClass { } /** - * optional uint32 item_id = 14; + * optional uint32 item_id = 2; * @param value the itemId to set * @return this */ public PileItem setItemId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; itemId = value; return this; } + /** + * optional uint32 item_num = 5; + * @return whether the itemNum field is set + */ + public boolean hasItemNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 item_num = 5; + * @return this + */ + public PileItem clearItemNum() { + bitField0_ &= ~0x00000002; + itemNum = 0; + return this; + } + + /** + * optional uint32 item_num = 5; + * @return the itemNum + */ + public int getItemNum() { + return itemNum; + } + + /** + * optional uint32 item_num = 5; + * @param value the itemNum to set + * @return this + */ + public PileItem setItemNum(final int value) { + bitField0_ |= 0x00000002; + itemNum = value; + return this; + } + @Override public PileItem copyFrom(final PileItem other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - itemNum = other.itemNum; itemId = other.itemId; + itemNum = other.itemNum; } return this; } @@ -129,12 +129,12 @@ public final class PileItemOuterClass { return this; } cachedSize = -1; - if (other.hasItemNum()) { - setItemNum(other.itemNum); - } if (other.hasItemId()) { setItemId(other.itemId); } + if (other.hasItemNum()) { + setItemNum(other.itemNum); + } return this; } @@ -145,8 +145,8 @@ public final class PileItemOuterClass { } cachedSize = -1; bitField0_ = 0; - itemNum = 0; itemId = 0; + itemNum = 0; return this; } @@ -170,19 +170,19 @@ public final class PileItemOuterClass { } PileItem other = (PileItem) o; return bitField0_ == other.bitField0_ - && (!hasItemNum() || itemNum == other.itemNum) - && (!hasItemId() || itemId == other.itemId); + && (!hasItemId() || itemId == other.itemId) + && (!hasItemNum() || itemNum == other.itemNum); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(itemNum); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(itemId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(itemNum); } } @@ -190,10 +190,10 @@ public final class PileItemOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(itemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(itemNum); } return size; } @@ -205,18 +205,18 @@ public final class PileItemOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { - // itemNum - itemNum = input.readUInt32(); + case 16: { + // itemId + itemId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 40) { break; } } - case 112: { - // itemId - itemId = input.readUInt32(); + case 40: { + // itemNum + itemNum = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class PileItemOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.itemNum, itemNum); + output.writeUInt32(FieldNames.itemId, itemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.itemId, itemId); + output.writeUInt32(FieldNames.itemNum, itemNum); } output.endObject(); } @@ -256,11 +256,11 @@ public final class PileItemOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2116189043: - case 1177850970: { - if (input.isAtField(FieldNames.itemNum)) { + case -1178662002: + case 2116204999: { + if (input.isAtField(FieldNames.itemId)) { if (!input.trySkipNullValue()) { - itemNum = input.readUInt32(); + itemId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class PileItemOuterClass { } break; } - case -1178662002: - case 2116204999: { - if (input.isAtField(FieldNames.itemId)) { + case 2116189043: + case 1177850970: { + if (input.isAtField(FieldNames.itemNum)) { if (!input.trySkipNullValue()) { - itemId = input.readUInt32(); + itemNum = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class PileItemOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName itemNum = FieldName.forField("itemNum", "item_num"); - static final FieldName itemId = FieldName.forField("itemId", "item_id"); + + static final FieldName itemNum = FieldName.forField("itemNum", "item_num"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java index a44a0b9..bbb90be 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicCsReqOuterClass.java @@ -13,13 +13,21 @@ import us.hebi.quickbuf.ProtoSource; public final class PlayBackGroundMusicCsReqOuterClass { /** + *
+   *  KHABGPOLCAP
+   * 
+ * * Protobuf type {@code PlayBackGroundMusicCsReq} */ public static final class PlayBackGroundMusicCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 play_music_id = 12; + *
+     *  PFLDAPJLJCD
+     * 
+ * + * optional uint32 play_music_id = 10; */ private int playMusicId; @@ -27,6 +35,10 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** + *
+     *  KHABGPOLCAP
+     * 
+ * * @return a new empty instance of {@code PlayBackGroundMusicCsReq} */ public static PlayBackGroundMusicCsReq newInstance() { @@ -34,7 +46,11 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 12; + *
+     *  PFLDAPJLJCD
+     * 
+ * + * optional uint32 play_music_id = 10; * @return whether the playMusicId field is set */ public boolean hasPlayMusicId() { @@ -42,7 +58,11 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 12; + *
+     *  PFLDAPJLJCD
+     * 
+ * + * optional uint32 play_music_id = 10; * @return this */ public PlayBackGroundMusicCsReq clearPlayMusicId() { @@ -52,7 +72,11 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 12; + *
+     *  PFLDAPJLJCD
+     * 
+ * + * optional uint32 play_music_id = 10; * @return the playMusicId */ public int getPlayMusicId() { @@ -60,7 +84,11 @@ public final class PlayBackGroundMusicCsReqOuterClass { } /** - * optional uint32 play_music_id = 12; + *
+     *  PFLDAPJLJCD
+     * 
+ * + * optional uint32 play_music_id = 10; * @param value the playMusicId to set * @return this */ @@ -129,7 +157,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(playMusicId); } } @@ -150,7 +178,7 @@ public final class PlayBackGroundMusicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 80: { // playMusicId playMusicId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java index 8c7e619..925c25f 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayBackGroundMusicScRspOuterClass.java @@ -13,30 +13,50 @@ import us.hebi.quickbuf.ProtoSource; public final class PlayBackGroundMusicScRspOuterClass { /** + *
+   *  PNJBOMIMHIN
+   * 
+ * * Protobuf type {@code PlayBackGroundMusicScRsp} */ public static final class PlayBackGroundMusicScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; - */ - private int retcode; - - /** + *
+     *  PFLDAPJLJCD
+     * 
+ * * optional uint32 play_music_id = 7; */ private int playMusicId; /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 12; */ private int playingId; + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + */ + private int retcode; + private PlayBackGroundMusicScRsp() { } /** + *
+     *  PNJBOMIMHIN
+     * 
+ * * @return a new empty instance of {@code PlayBackGroundMusicScRsp} */ public static PlayBackGroundMusicScRsp newInstance() { @@ -44,61 +64,36 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 1; - * @return this - */ - public PlayBackGroundMusicScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 1; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 1; - * @param value the retcode to set - * @return this - */ - public PlayBackGroundMusicScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** + *
+     *  PFLDAPJLJCD
+     * 
+ * * optional uint32 play_music_id = 7; * @return whether the playMusicId field is set */ public boolean hasPlayMusicId() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** + *
+     *  PFLDAPJLJCD
+     * 
+ * * optional uint32 play_music_id = 7; * @return this */ public PlayBackGroundMusicScRsp clearPlayMusicId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; playMusicId = 0; return this; } /** + *
+     *  PFLDAPJLJCD
+     * 
+ * * optional uint32 play_music_id = 7; * @return the playMusicId */ @@ -107,36 +102,52 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** + *
+     *  PFLDAPJLJCD
+     * 
+ * * optional uint32 play_music_id = 7; * @param value the playMusicId to set * @return this */ public PlayBackGroundMusicScRsp setPlayMusicId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; playMusicId = value; return this; } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 12; * @return whether the playingId field is set */ public boolean hasPlayingId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 12; * @return this */ public PlayBackGroundMusicScRsp clearPlayingId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; playingId = 0; return this; } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 12; * @return the playingId */ public int getPlayingId() { @@ -144,24 +155,81 @@ public final class PlayBackGroundMusicScRspOuterClass { } /** - * optional uint32 playing_id = 10; + *
+     *  BIIDJKEJEND
+     * 
+ * + * optional uint32 playing_id = 12; * @param value the playingId to set * @return this */ public PlayBackGroundMusicScRsp setPlayingId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; playingId = value; return this; } + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return this + */ + public PlayBackGroundMusicScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 13; + * @param value the retcode to set + * @return this + */ + public PlayBackGroundMusicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + @Override public PlayBackGroundMusicScRsp copyFrom(final PlayBackGroundMusicScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; playMusicId = other.playMusicId; playingId = other.playingId; + retcode = other.retcode; } return this; } @@ -172,15 +240,15 @@ public final class PlayBackGroundMusicScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasPlayMusicId()) { setPlayMusicId(other.playMusicId); } if (other.hasPlayingId()) { setPlayingId(other.playingId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -191,9 +259,9 @@ public final class PlayBackGroundMusicScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; playMusicId = 0; playingId = 0; + retcode = 0; return this; } @@ -217,39 +285,39 @@ public final class PlayBackGroundMusicScRspOuterClass { } PlayBackGroundMusicScRsp other = (PlayBackGroundMusicScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasPlayMusicId() || playMusicId == other.playMusicId) - && (!hasPlayingId() || playingId == other.playingId); + && (!hasPlayingId() || playingId == other.playingId) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); output.writeUInt32NoTag(playMusicId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); output.writeUInt32NoTag(playingId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(retcode); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(playMusicId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(playingId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } return size; } @@ -260,27 +328,27 @@ public final class PlayBackGroundMusicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } case 56: { // playMusicId playMusicId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { + case 96: { // playingId playingId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,14 +373,14 @@ public final class PlayBackGroundMusicScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.playMusicId, playMusicId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.playingId, playingId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } output.endObject(); } @@ -323,23 +391,12 @@ public final class PlayBackGroundMusicScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 835898444: case -1319856608: { if (input.isAtField(FieldNames.playMusicId)) { if (!input.trySkipNullValue()) { playMusicId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -351,6 +408,17 @@ public final class PlayBackGroundMusicScRspOuterClass { if (input.isAtField(FieldNames.playingId)) { if (!input.trySkipNullValue()) { playingId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -411,11 +479,11 @@ public final class PlayBackGroundMusicScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName playMusicId = FieldName.forField("playMusicId", "play_music_id"); static final FieldName playingId = FieldName.forField("playingId", "playing_id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerChallengeDetailInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerChallengeDetailInfoOuterClass.java new file mode 100644 index 0000000..ce94139 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerChallengeDetailInfoOuterClass.java @@ -0,0 +1,1258 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class PlayerChallengeDetailInfoOuterClass { + /** + * Protobuf type {@code PlayerChallengeDetailInfo} + */ + public static final class PlayerChallengeDetailInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .PlayerChallengeDetailInfo.KIEEFAOCOCC unk_info = 11; + */ + private final KIEEFAOCOCC unkInfo = KIEEFAOCOCC.newInstance(); + + private PlayerChallengeDetailInfo() { + } + + /** + * @return a new empty instance of {@code PlayerChallengeDetailInfo} + */ + public static PlayerChallengeDetailInfo newInstance() { + return new PlayerChallengeDetailInfo(); + } + + /** + * optional .PlayerChallengeDetailInfo.KIEEFAOCOCC unk_info = 11; + * @return whether the unkInfo field is set + */ + public boolean hasUnkInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .PlayerChallengeDetailInfo.KIEEFAOCOCC unk_info = 11; + * @return this + */ + public PlayerChallengeDetailInfo clearUnkInfo() { + bitField0_ &= ~0x00000001; + unkInfo.clear(); + return this; + } + + /** + * optional .PlayerChallengeDetailInfo.KIEEFAOCOCC unk_info = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnkInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public KIEEFAOCOCC getUnkInfo() { + return unkInfo; + } + + /** + * optional .PlayerChallengeDetailInfo.KIEEFAOCOCC unk_info = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public KIEEFAOCOCC getMutableUnkInfo() { + bitField0_ |= 0x00000001; + return unkInfo; + } + + /** + * optional .PlayerChallengeDetailInfo.KIEEFAOCOCC unk_info = 11; + * @param value the unkInfo to set + * @return this + */ + public PlayerChallengeDetailInfo setUnkInfo(final KIEEFAOCOCC value) { + bitField0_ |= 0x00000001; + unkInfo.copyFrom(value); + return this; + } + + @Override + public PlayerChallengeDetailInfo copyFrom(final PlayerChallengeDetailInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unkInfo.copyFrom(other.unkInfo); + } + return this; + } + + @Override + public PlayerChallengeDetailInfo mergeFrom(final PlayerChallengeDetailInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnkInfo()) { + getMutableUnkInfo().mergeFrom(other.unkInfo); + } + return this; + } + + @Override + public PlayerChallengeDetailInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInfo.clear(); + return this; + } + + @Override + public PlayerChallengeDetailInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerChallengeDetailInfo)) { + return false; + } + PlayerChallengeDetailInfo other = (PlayerChallengeDetailInfo) o; + return bitField0_ == other.bitField0_ + && (!hasUnkInfo() || unkInfo.equals(other.unkInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(unkInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(unkInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerChallengeDetailInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 90: { + // unkInfo + input.readMessage(unkInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.unkInfo, unkInfo); + } + output.endObject(); + } + + @Override + public PlayerChallengeDetailInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -285944640: + case -254173221: { + if (input.isAtField(FieldNames.unkInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(unkInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerChallengeDetailInfo clone() { + return new PlayerChallengeDetailInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerChallengeDetailInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerChallengeDetailInfo(), data).checkInitialized(); + } + + public static PlayerChallengeDetailInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerChallengeDetailInfo(), input).checkInitialized(); + } + + public static PlayerChallengeDetailInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerChallengeDetailInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerChallengeDetailInfo messages + */ + public static MessageFactory getFactory() { + return PlayerChallengeDetailInfoFactory.INSTANCE; + } + + /** + * Protobuf type {@code KIEEFAOCOCC} + */ + public static final class KIEEFAOCOCC extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .PlayerChallengeDetailInfo.CGLILDEBBIH unk_info = 1; + */ + private final CGLILDEBBIH unkInfo = CGLILDEBBIH.newInstance(); + + private KIEEFAOCOCC() { + } + + /** + * @return a new empty instance of {@code KIEEFAOCOCC} + */ + public static KIEEFAOCOCC newInstance() { + return new KIEEFAOCOCC(); + } + + /** + * optional .PlayerChallengeDetailInfo.CGLILDEBBIH unk_info = 1; + * @return whether the unkInfo field is set + */ + public boolean hasUnkInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .PlayerChallengeDetailInfo.CGLILDEBBIH unk_info = 1; + * @return this + */ + public KIEEFAOCOCC clearUnkInfo() { + bitField0_ &= ~0x00000001; + unkInfo.clear(); + return this; + } + + /** + * optional .PlayerChallengeDetailInfo.CGLILDEBBIH unk_info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnkInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CGLILDEBBIH getUnkInfo() { + return unkInfo; + } + + /** + * optional .PlayerChallengeDetailInfo.CGLILDEBBIH unk_info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public CGLILDEBBIH getMutableUnkInfo() { + bitField0_ |= 0x00000001; + return unkInfo; + } + + /** + * optional .PlayerChallengeDetailInfo.CGLILDEBBIH unk_info = 1; + * @param value the unkInfo to set + * @return this + */ + public KIEEFAOCOCC setUnkInfo(final CGLILDEBBIH value) { + bitField0_ |= 0x00000001; + unkInfo.copyFrom(value); + return this; + } + + @Override + public KIEEFAOCOCC copyFrom(final KIEEFAOCOCC other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unkInfo.copyFrom(other.unkInfo); + } + return this; + } + + @Override + public KIEEFAOCOCC mergeFrom(final KIEEFAOCOCC other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnkInfo()) { + getMutableUnkInfo().mergeFrom(other.unkInfo); + } + return this; + } + + @Override + public KIEEFAOCOCC clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInfo.clear(); + return this; + } + + @Override + public KIEEFAOCOCC clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof KIEEFAOCOCC)) { + return false; + } + KIEEFAOCOCC other = (KIEEFAOCOCC) o; + return bitField0_ == other.bitField0_ + && (!hasUnkInfo() || unkInfo.equals(other.unkInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(unkInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(unkInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public KIEEFAOCOCC mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 10: { + // unkInfo + input.readMessage(unkInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.unkInfo, unkInfo); + } + output.endObject(); + } + + @Override + public KIEEFAOCOCC mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -285944640: + case -254173221: { + if (input.isAtField(FieldNames.unkInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(unkInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public KIEEFAOCOCC clone() { + return new KIEEFAOCOCC().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static KIEEFAOCOCC parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new KIEEFAOCOCC(), data).checkInitialized(); + } + + public static KIEEFAOCOCC parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new KIEEFAOCOCC(), input).checkInitialized(); + } + + public static KIEEFAOCOCC parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new KIEEFAOCOCC(), input).checkInitialized(); + } + + /** + * @return factory for creating KIEEFAOCOCC messages + */ + public static MessageFactory getFactory() { + return KIEEFAOCOCCFactory.INSTANCE; + } + + private enum KIEEFAOCOCCFactory implements MessageFactory { + INSTANCE; + + @Override + public KIEEFAOCOCC create() { + return KIEEFAOCOCC.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unkInfo = FieldName.forField("unkInfo", "unk_info"); + } + } + + /** + * Protobuf type {@code CGLILDEBBIH} + */ + public static final class CGLILDEBBIH extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .PlayerChallengeDetailInfo.CEGOPFBELBL unk_info = 3; + */ + private final CEGOPFBELBL unkInfo = CEGOPFBELBL.newInstance(); + + private CGLILDEBBIH() { + } + + /** + * @return a new empty instance of {@code CGLILDEBBIH} + */ + public static CGLILDEBBIH newInstance() { + return new CGLILDEBBIH(); + } + + /** + * optional .PlayerChallengeDetailInfo.CEGOPFBELBL unk_info = 3; + * @return whether the unkInfo field is set + */ + public boolean hasUnkInfo() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .PlayerChallengeDetailInfo.CEGOPFBELBL unk_info = 3; + * @return this + */ + public CGLILDEBBIH clearUnkInfo() { + bitField0_ &= ~0x00000001; + unkInfo.clear(); + return this; + } + + /** + * optional .PlayerChallengeDetailInfo.CEGOPFBELBL unk_info = 3; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnkInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public CEGOPFBELBL getUnkInfo() { + return unkInfo; + } + + /** + * optional .PlayerChallengeDetailInfo.CEGOPFBELBL unk_info = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public CEGOPFBELBL getMutableUnkInfo() { + bitField0_ |= 0x00000001; + return unkInfo; + } + + /** + * optional .PlayerChallengeDetailInfo.CEGOPFBELBL unk_info = 3; + * @param value the unkInfo to set + * @return this + */ + public CGLILDEBBIH setUnkInfo(final CEGOPFBELBL value) { + bitField0_ |= 0x00000001; + unkInfo.copyFrom(value); + return this; + } + + @Override + public CGLILDEBBIH copyFrom(final CGLILDEBBIH other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + unkInfo.copyFrom(other.unkInfo); + } + return this; + } + + @Override + public CGLILDEBBIH mergeFrom(final CGLILDEBBIH other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasUnkInfo()) { + getMutableUnkInfo().mergeFrom(other.unkInfo); + } + return this; + } + + @Override + public CGLILDEBBIH clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInfo.clear(); + return this; + } + + @Override + public CGLILDEBBIH clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + unkInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CGLILDEBBIH)) { + return false; + } + CGLILDEBBIH other = (CGLILDEBBIH) o; + return bitField0_ == other.bitField0_ + && (!hasUnkInfo() || unkInfo.equals(other.unkInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 26); + output.writeMessageNoTag(unkInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(unkInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CGLILDEBBIH mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 26: { + // unkInfo + input.readMessage(unkInfo); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.unkInfo, unkInfo); + } + output.endObject(); + } + + @Override + public CGLILDEBBIH mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -285944640: + case -254173221: { + if (input.isAtField(FieldNames.unkInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(unkInfo); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CGLILDEBBIH clone() { + return new CGLILDEBBIH().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CGLILDEBBIH parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CGLILDEBBIH(), data).checkInitialized(); + } + + public static CGLILDEBBIH parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CGLILDEBBIH(), input).checkInitialized(); + } + + public static CGLILDEBBIH parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CGLILDEBBIH(), input).checkInitialized(); + } + + /** + * @return factory for creating CGLILDEBBIH messages + */ + public static MessageFactory getFactory() { + return CGLILDEBBIHFactory.INSTANCE; + } + + private enum CGLILDEBBIHFactory implements MessageFactory { + INSTANCE; + + @Override + public CGLILDEBBIH create() { + return CGLILDEBBIH.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unkInfo = FieldName.forField("unkInfo", "unk_info"); + } + } + + /** + * Protobuf type {@code CEGOPFBELBL} + */ + public static final class CEGOPFBELBL extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 KKFBLJNMDFJ = 7; + */ + private int kKFBLJNMDFJ; + + /** + * optional uint32 KBFDOPNODBL = 15; + */ + private int kBFDOPNODBL; + + /** + * repeated uint32 PGKLOMAJMDC = 11; + */ + private final RepeatedInt pGKLOMAJMDC = RepeatedInt.newEmptyInstance(); + + private CEGOPFBELBL() { + } + + /** + * @return a new empty instance of {@code CEGOPFBELBL} + */ + public static CEGOPFBELBL newInstance() { + return new CEGOPFBELBL(); + } + + /** + * optional uint32 KKFBLJNMDFJ = 7; + * @return whether the kKFBLJNMDFJ field is set + */ + public boolean hasKKFBLJNMDFJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 KKFBLJNMDFJ = 7; + * @return this + */ + public CEGOPFBELBL clearKKFBLJNMDFJ() { + bitField0_ &= ~0x00000001; + kKFBLJNMDFJ = 0; + return this; + } + + /** + * optional uint32 KKFBLJNMDFJ = 7; + * @return the kKFBLJNMDFJ + */ + public int getKKFBLJNMDFJ() { + return kKFBLJNMDFJ; + } + + /** + * optional uint32 KKFBLJNMDFJ = 7; + * @param value the kKFBLJNMDFJ to set + * @return this + */ + public CEGOPFBELBL setKKFBLJNMDFJ(final int value) { + bitField0_ |= 0x00000001; + kKFBLJNMDFJ = value; + return this; + } + + /** + * optional uint32 KBFDOPNODBL = 15; + * @return whether the kBFDOPNODBL field is set + */ + public boolean hasKBFDOPNODBL() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 KBFDOPNODBL = 15; + * @return this + */ + public CEGOPFBELBL clearKBFDOPNODBL() { + bitField0_ &= ~0x00000002; + kBFDOPNODBL = 0; + return this; + } + + /** + * optional uint32 KBFDOPNODBL = 15; + * @return the kBFDOPNODBL + */ + public int getKBFDOPNODBL() { + return kBFDOPNODBL; + } + + /** + * optional uint32 KBFDOPNODBL = 15; + * @param value the kBFDOPNODBL to set + * @return this + */ + public CEGOPFBELBL setKBFDOPNODBL(final int value) { + bitField0_ |= 0x00000002; + kBFDOPNODBL = value; + return this; + } + + /** + * repeated uint32 PGKLOMAJMDC = 11; + * @return whether the pGKLOMAJMDC field is set + */ + public boolean hasPGKLOMAJMDC() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated uint32 PGKLOMAJMDC = 11; + * @return this + */ + public CEGOPFBELBL clearPGKLOMAJMDC() { + bitField0_ &= ~0x00000004; + pGKLOMAJMDC.clear(); + return this; + } + + /** + * repeated uint32 PGKLOMAJMDC = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePGKLOMAJMDC()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPGKLOMAJMDC() { + return pGKLOMAJMDC; + } + + /** + * repeated uint32 PGKLOMAJMDC = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutablePGKLOMAJMDC() { + bitField0_ |= 0x00000004; + return pGKLOMAJMDC; + } + + /** + * repeated uint32 PGKLOMAJMDC = 11; + * @param value the pGKLOMAJMDC to add + * @return this + */ + public CEGOPFBELBL addPGKLOMAJMDC(final int value) { + bitField0_ |= 0x00000004; + pGKLOMAJMDC.add(value); + return this; + } + + /** + * repeated uint32 PGKLOMAJMDC = 11; + * @param values the pGKLOMAJMDC to add + * @return this + */ + public CEGOPFBELBL addAllPGKLOMAJMDC(final int... values) { + bitField0_ |= 0x00000004; + pGKLOMAJMDC.addAll(values); + return this; + } + + @Override + public CEGOPFBELBL copyFrom(final CEGOPFBELBL other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kKFBLJNMDFJ = other.kKFBLJNMDFJ; + kBFDOPNODBL = other.kBFDOPNODBL; + pGKLOMAJMDC.copyFrom(other.pGKLOMAJMDC); + } + return this; + } + + @Override + public CEGOPFBELBL mergeFrom(final CEGOPFBELBL other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKKFBLJNMDFJ()) { + setKKFBLJNMDFJ(other.kKFBLJNMDFJ); + } + if (other.hasKBFDOPNODBL()) { + setKBFDOPNODBL(other.kBFDOPNODBL); + } + if (other.hasPGKLOMAJMDC()) { + getMutablePGKLOMAJMDC().addAll(other.pGKLOMAJMDC); + } + return this; + } + + @Override + public CEGOPFBELBL clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kKFBLJNMDFJ = 0; + kBFDOPNODBL = 0; + pGKLOMAJMDC.clear(); + return this; + } + + @Override + public CEGOPFBELBL clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + pGKLOMAJMDC.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof CEGOPFBELBL)) { + return false; + } + CEGOPFBELBL other = (CEGOPFBELBL) o; + return bitField0_ == other.bitField0_ + && (!hasKKFBLJNMDFJ() || kKFBLJNMDFJ == other.kKFBLJNMDFJ) + && (!hasKBFDOPNODBL() || kBFDOPNODBL == other.kBFDOPNODBL) + && (!hasPGKLOMAJMDC() || pGKLOMAJMDC.equals(other.pGKLOMAJMDC)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(kKFBLJNMDFJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(kBFDOPNODBL); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < pGKLOMAJMDC.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(pGKLOMAJMDC.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kKFBLJNMDFJ); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(kBFDOPNODBL); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * pGKLOMAJMDC.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(pGKLOMAJMDC); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public CEGOPFBELBL mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 56: { + // kKFBLJNMDFJ + kKFBLJNMDFJ = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // kBFDOPNODBL + kBFDOPNODBL = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // pGKLOMAJMDC [packed=true] + input.readPackedUInt32(pGKLOMAJMDC, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 88: { + // pGKLOMAJMDC [packed=false] + tag = input.readRepeatedUInt32(pGKLOMAJMDC, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.kKFBLJNMDFJ, kKFBLJNMDFJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.kBFDOPNODBL, kBFDOPNODBL); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.pGKLOMAJMDC, pGKLOMAJMDC); + } + output.endObject(); + } + + @Override + public CEGOPFBELBL mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1168648817: { + if (input.isAtField(FieldNames.kKFBLJNMDFJ)) { + if (!input.trySkipNullValue()) { + kKFBLJNMDFJ = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1669995785: { + if (input.isAtField(FieldNames.kBFDOPNODBL)) { + if (!input.trySkipNullValue()) { + kBFDOPNODBL = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1759791373: { + if (input.isAtField(FieldNames.pGKLOMAJMDC)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(pGKLOMAJMDC); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public CEGOPFBELBL clone() { + return new CEGOPFBELBL().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static CEGOPFBELBL parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new CEGOPFBELBL(), data).checkInitialized(); + } + + public static CEGOPFBELBL parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new CEGOPFBELBL(), input).checkInitialized(); + } + + public static CEGOPFBELBL parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new CEGOPFBELBL(), input).checkInitialized(); + } + + /** + * @return factory for creating CEGOPFBELBL messages + */ + public static MessageFactory getFactory() { + return CEGOPFBELBLFactory.INSTANCE; + } + + private enum CEGOPFBELBLFactory implements MessageFactory { + INSTANCE; + + @Override + public CEGOPFBELBL create() { + return CEGOPFBELBL.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kKFBLJNMDFJ = FieldName.forField("KKFBLJNMDFJ"); + + static final FieldName kBFDOPNODBL = FieldName.forField("KBFDOPNODBL"); + + static final FieldName pGKLOMAJMDC = FieldName.forField("PGKLOMAJMDC"); + } + } + + private enum PlayerChallengeDetailInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerChallengeDetailInfo create() { + return PlayerChallengeDetailInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName unkInfo = FieldName.forField("unkInfo", "unk_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerDetailInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerDetailInfoOuterClass.java index fe41bed..7fb99cb 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerDetailInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerDetailInfoOuterClass.java @@ -15,44 +15,35 @@ import us.hebi.quickbuf.Utf8String; public final class PlayerDetailInfoOuterClass { /** - *
-   *  TODO: verify DisplayAvatarDetailInfo repeateds
-   * 
- * * Protobuf type {@code PlayerDetailInfo} */ public static final class PlayerDetailInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 world_level = 5; - */ - private int worldLevel; - - /** - * optional uint32 head_icon = 8; + * optional uint32 head_icon = 2; */ private int headIcon; /** - * optional uint32 uid = 13; - */ - private int uid; - - /** - * optional uint32 level = 15; + * optional uint32 level = 6; */ private int level; /** - * optional .PlatformType platform_type = 3; + * optional uint32 uid = 10; */ - private int platformType; + private int uid; /** - * optional bool show_display_avatars = 1; + * optional uint32 world_level = 15; */ - private boolean showDisplayAvatars; + private int worldLevel; + + /** + * optional .PlatformType platform_type = 13; + */ + private int platformType; /** * optional bool is_banned = 12; @@ -60,32 +51,57 @@ public final class PlayerDetailInfoOuterClass { private boolean isBanned; /** - * optional .PlayerRecordInfo record_info = 7; + * optional bool show_display_avatars = 14; + */ + private boolean showDisplayAvatars; + + /** + * optional .PlayerRecordInfo record_info = 3; */ private final PlayerRecordInfoOuterClass.PlayerRecordInfo recordInfo = PlayerRecordInfoOuterClass.PlayerRecordInfo.newInstance(); /** - * optional .PlayerDisplaySettings display_settings = 1743; + * optional .PlayerOutfitInfo player_outfit_data = 831; + */ + private final PlayerOutfitInfoOuterClass.PlayerOutfitInfo playerOutfitData = PlayerOutfitInfoOuterClass.PlayerOutfitInfo.newInstance(); + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 1012; + */ + private final HeadIconFrameInfoOuterClass.HeadIconFrameInfo headIconFrameInfo = HeadIconFrameInfoOuterClass.HeadIconFrameInfo.newInstance(); + + /** + * optional .PlayerChallengeDetailInfo challenge_detail = 1039; + */ + private final PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo challengeDetail = PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo.newInstance(); + + /** + * optional .PlayerDisplaySettings display_settings = 1052; */ private final PlayerDisplaySettingsOuterClass.PlayerDisplaySettings displaySettings = PlayerDisplaySettingsOuterClass.PlayerDisplaySettings.newInstance(); /** - * optional string nickname = 4; + * optional string nickname = 5; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); /** - * optional string signature = 14; + * optional string signature = 11; */ private final Utf8String signature = Utf8String.newEmptyInstance(); /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; + * optional string unk_detail = 1966; + */ + private final Utf8String unkDetail = Utf8String.newEmptyInstance(); + + /** + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; */ private final RepeatedMessage displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo.getFactory()); /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; */ private final RepeatedMessage assistAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo.getFactory()); @@ -93,10 +109,6 @@ public final class PlayerDetailInfoOuterClass { } /** - *
-     *  TODO: verify DisplayAvatarDetailInfo repeateds
-     * 
- * * @return a new empty instance of {@code PlayerDetailInfo} */ public static PlayerDetailInfo newInstance() { @@ -104,62 +116,25 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional uint32 world_level = 5; - * @return whether the worldLevel field is set + * optional uint32 head_icon = 2; + * @return whether the headIcon field is set */ - public boolean hasWorldLevel() { + public boolean hasHeadIcon() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 world_level = 5; - * @return this - */ - public PlayerDetailInfo clearWorldLevel() { - bitField0_ &= ~0x00000001; - worldLevel = 0; - return this; - } - - /** - * optional uint32 world_level = 5; - * @return the worldLevel - */ - public int getWorldLevel() { - return worldLevel; - } - - /** - * optional uint32 world_level = 5; - * @param value the worldLevel to set - * @return this - */ - public PlayerDetailInfo setWorldLevel(final int value) { - bitField0_ |= 0x00000001; - worldLevel = value; - return this; - } - - /** - * optional uint32 head_icon = 8; - * @return whether the headIcon field is set - */ - public boolean hasHeadIcon() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 head_icon = 8; + * optional uint32 head_icon = 2; * @return this */ public PlayerDetailInfo clearHeadIcon() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; headIcon = 0; return this; } /** - * optional uint32 head_icon = 8; + * optional uint32 head_icon = 2; * @return the headIcon */ public int getHeadIcon() { @@ -167,18 +142,55 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional uint32 head_icon = 8; + * optional uint32 head_icon = 2; * @param value the headIcon to set * @return this */ public PlayerDetailInfo setHeadIcon(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; headIcon = value; return this; } /** - * optional uint32 uid = 13; + * optional uint32 level = 6; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 level = 6; + * @return this + */ + public PlayerDetailInfo clearLevel() { + bitField0_ &= ~0x00000002; + level = 0; + return this; + } + + /** + * optional uint32 level = 6; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 6; + * @param value the level to set + * @return this + */ + public PlayerDetailInfo setLevel(final int value) { + bitField0_ |= 0x00000002; + level = value; + return this; + } + + /** + * optional uint32 uid = 10; * @return whether the uid field is set */ public boolean hasUid() { @@ -186,7 +198,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional uint32 uid = 13; + * optional uint32 uid = 10; * @return this */ public PlayerDetailInfo clearUid() { @@ -196,7 +208,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional uint32 uid = 13; + * optional uint32 uid = 10; * @return the uid */ public int getUid() { @@ -204,7 +216,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional uint32 uid = 13; + * optional uint32 uid = 10; * @param value the uid to set * @return this */ @@ -215,44 +227,44 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional uint32 level = 15; - * @return whether the level field is set + * optional uint32 world_level = 15; + * @return whether the worldLevel field is set */ - public boolean hasLevel() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 level = 15; + * optional uint32 world_level = 15; * @return this */ - public PlayerDetailInfo clearLevel() { + public PlayerDetailInfo clearWorldLevel() { bitField0_ &= ~0x00000008; - level = 0; + worldLevel = 0; return this; } /** - * optional uint32 level = 15; - * @return the level + * optional uint32 world_level = 15; + * @return the worldLevel */ - public int getLevel() { - return level; + public int getWorldLevel() { + return worldLevel; } /** - * optional uint32 level = 15; - * @param value the level to set + * optional uint32 world_level = 15; + * @param value the worldLevel to set * @return this */ - public PlayerDetailInfo setLevel(final int value) { + public PlayerDetailInfo setWorldLevel(final int value) { bitField0_ |= 0x00000008; - level = value; + worldLevel = value; return this; } /** - * optional .PlatformType platform_type = 3; + * optional .PlatformType platform_type = 13; * @return whether the platformType field is set */ public boolean hasPlatformType() { @@ -260,7 +272,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlatformType platform_type = 3; + * optional .PlatformType platform_type = 13; * @return this */ public PlayerDetailInfo clearPlatformType() { @@ -270,7 +282,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlatformType platform_type = 3; + * optional .PlatformType platform_type = 13; * @return the platformType */ public PlatformTypeOuterClass.PlatformType getPlatformType() { @@ -303,7 +315,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlatformType platform_type = 3; + * optional .PlatformType platform_type = 13; * @param value the platformType to set * @return this */ @@ -313,49 +325,12 @@ public final class PlayerDetailInfoOuterClass { return this; } - /** - * optional bool show_display_avatars = 1; - * @return whether the showDisplayAvatars field is set - */ - public boolean hasShowDisplayAvatars() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional bool show_display_avatars = 1; - * @return this - */ - public PlayerDetailInfo clearShowDisplayAvatars() { - bitField0_ &= ~0x00000020; - showDisplayAvatars = false; - return this; - } - - /** - * optional bool show_display_avatars = 1; - * @return the showDisplayAvatars - */ - public boolean getShowDisplayAvatars() { - return showDisplayAvatars; - } - - /** - * optional bool show_display_avatars = 1; - * @param value the showDisplayAvatars to set - * @return this - */ - public PlayerDetailInfo setShowDisplayAvatars(final boolean value) { - bitField0_ |= 0x00000020; - showDisplayAvatars = value; - return this; - } - /** * optional bool is_banned = 12; * @return whether the isBanned field is set */ public boolean hasIsBanned() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000020) != 0; } /** @@ -363,7 +338,7 @@ public final class PlayerDetailInfoOuterClass { * @return this */ public PlayerDetailInfo clearIsBanned() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; isBanned = false; return this; } @@ -382,13 +357,50 @@ public final class PlayerDetailInfoOuterClass { * @return this */ public PlayerDetailInfo setIsBanned(final boolean value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; isBanned = value; return this; } /** - * optional .PlayerRecordInfo record_info = 7; + * optional bool show_display_avatars = 14; + * @return whether the showDisplayAvatars field is set + */ + public boolean hasShowDisplayAvatars() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional bool show_display_avatars = 14; + * @return this + */ + public PlayerDetailInfo clearShowDisplayAvatars() { + bitField0_ &= ~0x00000040; + showDisplayAvatars = false; + return this; + } + + /** + * optional bool show_display_avatars = 14; + * @return the showDisplayAvatars + */ + public boolean getShowDisplayAvatars() { + return showDisplayAvatars; + } + + /** + * optional bool show_display_avatars = 14; + * @param value the showDisplayAvatars to set + * @return this + */ + public PlayerDetailInfo setShowDisplayAvatars(final boolean value) { + bitField0_ |= 0x00000040; + showDisplayAvatars = value; + return this; + } + + /** + * optional .PlayerRecordInfo record_info = 3; * @return whether the recordInfo field is set */ public boolean hasRecordInfo() { @@ -396,7 +408,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlayerRecordInfo record_info = 7; + * optional .PlayerRecordInfo record_info = 3; * @return this */ public PlayerDetailInfo clearRecordInfo() { @@ -406,7 +418,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlayerRecordInfo record_info = 7; + * optional .PlayerRecordInfo record_info = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -420,7 +432,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlayerRecordInfo record_info = 7; + * optional .PlayerRecordInfo record_info = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -434,7 +446,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlayerRecordInfo record_info = 7; + * optional .PlayerRecordInfo record_info = 3; * @param value the recordInfo to set * @return this */ @@ -445,25 +457,200 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlayerDisplaySettings display_settings = 1743; - * @return whether the displaySettings field is set + * optional .PlayerOutfitInfo player_outfit_data = 831; + * @return whether the playerOutfitData field is set */ - public boolean hasDisplaySettings() { + public boolean hasPlayerOutfitData() { return (bitField0_ & 0x00000100) != 0; } /** - * optional .PlayerDisplaySettings display_settings = 1743; + * optional .PlayerOutfitInfo player_outfit_data = 831; + * @return this + */ + public PlayerDetailInfo clearPlayerOutfitData() { + bitField0_ &= ~0x00000100; + playerOutfitData.clear(); + return this; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 831; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePlayerOutfitData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getPlayerOutfitData() { + return playerOutfitData; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 831; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getMutablePlayerOutfitData() { + bitField0_ |= 0x00000100; + return playerOutfitData; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 831; + * @param value the playerOutfitData to set + * @return this + */ + public PlayerDetailInfo setPlayerOutfitData( + final PlayerOutfitInfoOuterClass.PlayerOutfitInfo value) { + bitField0_ |= 0x00000100; + playerOutfitData.copyFrom(value); + return this; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 1012; + * @return whether the headIconFrameInfo field is set + */ + public boolean hasHeadIconFrameInfo() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 1012; + * @return this + */ + public PlayerDetailInfo clearHeadIconFrameInfo() { + bitField0_ &= ~0x00000200; + headIconFrameInfo.clear(); + return this; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 1012; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableHeadIconFrameInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public HeadIconFrameInfoOuterClass.HeadIconFrameInfo getHeadIconFrameInfo() { + return headIconFrameInfo; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 1012; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public HeadIconFrameInfoOuterClass.HeadIconFrameInfo getMutableHeadIconFrameInfo() { + bitField0_ |= 0x00000200; + return headIconFrameInfo; + } + + /** + * optional .HeadIconFrameInfo head_icon_frame_info = 1012; + * @param value the headIconFrameInfo to set + * @return this + */ + public PlayerDetailInfo setHeadIconFrameInfo( + final HeadIconFrameInfoOuterClass.HeadIconFrameInfo value) { + bitField0_ |= 0x00000200; + headIconFrameInfo.copyFrom(value); + return this; + } + + /** + * optional .PlayerChallengeDetailInfo challenge_detail = 1039; + * @return whether the challengeDetail field is set + */ + public boolean hasChallengeDetail() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional .PlayerChallengeDetailInfo challenge_detail = 1039; + * @return this + */ + public PlayerDetailInfo clearChallengeDetail() { + bitField0_ &= ~0x00000400; + challengeDetail.clear(); + return this; + } + + /** + * optional .PlayerChallengeDetailInfo challenge_detail = 1039; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeDetail()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo getChallengeDetail() { + return challengeDetail; + } + + /** + * optional .PlayerChallengeDetailInfo challenge_detail = 1039; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo getMutableChallengeDetail( + ) { + bitField0_ |= 0x00000400; + return challengeDetail; + } + + /** + * optional .PlayerChallengeDetailInfo challenge_detail = 1039; + * @param value the challengeDetail to set + * @return this + */ + public PlayerDetailInfo setChallengeDetail( + final PlayerChallengeDetailInfoOuterClass.PlayerChallengeDetailInfo value) { + bitField0_ |= 0x00000400; + challengeDetail.copyFrom(value); + return this; + } + + /** + * optional .PlayerDisplaySettings display_settings = 1052; + * @return whether the displaySettings field is set + */ + public boolean hasDisplaySettings() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional .PlayerDisplaySettings display_settings = 1052; * @return this */ public PlayerDetailInfo clearDisplaySettings() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000800; displaySettings.clear(); return this; } /** - * optional .PlayerDisplaySettings display_settings = 1743; + * optional .PlayerDisplaySettings display_settings = 1052; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -477,7 +664,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional .PlayerDisplaySettings display_settings = 1743; + * optional .PlayerDisplaySettings display_settings = 1052; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -486,42 +673,42 @@ public final class PlayerDetailInfoOuterClass { * @return internal storage object for modifications */ public PlayerDisplaySettingsOuterClass.PlayerDisplaySettings getMutableDisplaySettings() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return displaySettings; } /** - * optional .PlayerDisplaySettings display_settings = 1743; + * optional .PlayerDisplaySettings display_settings = 1052; * @param value the displaySettings to set * @return this */ public PlayerDetailInfo setDisplaySettings( final PlayerDisplaySettingsOuterClass.PlayerDisplaySettings value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; displaySettings.copyFrom(value); return this; } /** - * optional string nickname = 4; + * optional string nickname = 5; * @return whether the nickname field is set */ public boolean hasNickname() { - return (bitField0_ & 0x00000200) != 0; + return (bitField0_ & 0x00001000) != 0; } /** - * optional string nickname = 4; + * optional string nickname = 5; * @return this */ public PlayerDetailInfo clearNickname() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00001000; nickname.clear(); return this; } /** - * optional string nickname = 4; + * optional string nickname = 5; * @return the nickname */ public String getNickname() { @@ -529,7 +716,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional string nickname = 4; + * optional string nickname = 5; * @return internal {@code Utf8String} representation of nickname for reading */ public Utf8String getNicknameBytes() { @@ -537,56 +724,56 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional string nickname = 4; + * optional string nickname = 5; * @return internal {@code Utf8String} representation of nickname for modifications */ public Utf8String getMutableNicknameBytes() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; return this.nickname; } /** - * optional string nickname = 4; + * optional string nickname = 5; * @param value the nickname to set * @return this */ public PlayerDetailInfo setNickname(final CharSequence value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; nickname.copyFrom(value); return this; } /** - * optional string nickname = 4; + * optional string nickname = 5; * @param value the nickname to set * @return this */ public PlayerDetailInfo setNickname(final Utf8String value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; nickname.copyFrom(value); return this; } /** - * optional string signature = 14; + * optional string signature = 11; * @return whether the signature field is set */ public boolean hasSignature() { - return (bitField0_ & 0x00000400) != 0; + return (bitField0_ & 0x00002000) != 0; } /** - * optional string signature = 14; + * optional string signature = 11; * @return this */ public PlayerDetailInfo clearSignature() { - bitField0_ &= ~0x00000400; + bitField0_ &= ~0x00002000; signature.clear(); return this; } /** - * optional string signature = 14; + * optional string signature = 11; * @return the signature */ public String getSignature() { @@ -594,7 +781,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional string signature = 14; + * optional string signature = 11; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -602,56 +789,121 @@ public final class PlayerDetailInfoOuterClass { } /** - * optional string signature = 14; + * optional string signature = 11; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; return this.signature; } /** - * optional string signature = 14; + * optional string signature = 11; * @param value the signature to set * @return this */ public PlayerDetailInfo setSignature(final CharSequence value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; signature.copyFrom(value); return this; } /** - * optional string signature = 14; + * optional string signature = 11; * @param value the signature to set * @return this */ public PlayerDetailInfo setSignature(final Utf8String value) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; signature.copyFrom(value); return this; } /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; - * @return whether the displayAvatarList field is set + * optional string unk_detail = 1966; + * @return whether the unkDetail field is set */ - public boolean hasDisplayAvatarList() { - return (bitField0_ & 0x00000800) != 0; + public boolean hasUnkDetail() { + return (bitField0_ & 0x00004000) != 0; } /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; + * optional string unk_detail = 1966; + * @return this + */ + public PlayerDetailInfo clearUnkDetail() { + bitField0_ &= ~0x00004000; + unkDetail.clear(); + return this; + } + + /** + * optional string unk_detail = 1966; + * @return the unkDetail + */ + public String getUnkDetail() { + return unkDetail.getString(); + } + + /** + * optional string unk_detail = 1966; + * @return internal {@code Utf8String} representation of unkDetail for reading + */ + public Utf8String getUnkDetailBytes() { + return this.unkDetail; + } + + /** + * optional string unk_detail = 1966; + * @return internal {@code Utf8String} representation of unkDetail for modifications + */ + public Utf8String getMutableUnkDetailBytes() { + bitField0_ |= 0x00004000; + return this.unkDetail; + } + + /** + * optional string unk_detail = 1966; + * @param value the unkDetail to set + * @return this + */ + public PlayerDetailInfo setUnkDetail(final CharSequence value) { + bitField0_ |= 0x00004000; + unkDetail.copyFrom(value); + return this; + } + + /** + * optional string unk_detail = 1966; + * @param value the unkDetail to set + * @return this + */ + public PlayerDetailInfo setUnkDetail(final Utf8String value) { + bitField0_ |= 0x00004000; + unkDetail.copyFrom(value); + return this; + } + + /** + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; + * @return whether the displayAvatarList field is set + */ + public boolean hasDisplayAvatarList() { + return (bitField0_ & 0x00008000) != 0; + } + + /** + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; * @return this */ public PlayerDetailInfo clearDisplayAvatarList() { - bitField0_ &= ~0x00000800; + bitField0_ &= ~0x00008000; displayAvatarList.clear(); return this; } /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -666,7 +918,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -676,54 +928,54 @@ public final class PlayerDetailInfoOuterClass { */ public RepeatedMessage getMutableDisplayAvatarList( ) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; return displayAvatarList; } /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; * @param value the displayAvatarList to add * @return this */ public PlayerDetailInfo addDisplayAvatarList( final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo value) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; displayAvatarList.add(value); return this; } /** - * repeated .DisplayAvatarDetailInfo display_avatar_list = 11; + * repeated .DisplayAvatarDetailInfo display_avatar_list = 8; * @param values the displayAvatarList to add * @return this */ public PlayerDetailInfo addAllDisplayAvatarList( final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo... values) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; displayAvatarList.addAll(values); return this; } /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; * @return whether the assistAvatarList field is set */ public boolean hasAssistAvatarList() { - return (bitField0_ & 0x00001000) != 0; + return (bitField0_ & 0x00010000) != 0; } /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; * @return this */ public PlayerDetailInfo clearAssistAvatarList() { - bitField0_ &= ~0x00001000; + bitField0_ &= ~0x00010000; assistAvatarList.clear(); return this; } /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -738,7 +990,7 @@ public final class PlayerDetailInfoOuterClass { } /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -748,30 +1000,30 @@ public final class PlayerDetailInfoOuterClass { */ public RepeatedMessage getMutableAssistAvatarList( ) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; return assistAvatarList; } /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; * @param value the assistAvatarList to add * @return this */ public PlayerDetailInfo addAssistAvatarList( final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo value) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; assistAvatarList.add(value); return this; } /** - * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1700; + * repeated .DisplayAvatarDetailInfo assist_avatar_list = 1809; * @param values the assistAvatarList to add * @return this */ public PlayerDetailInfo addAllAssistAvatarList( final DisplayAvatarDetailInfoOuterClass.DisplayAvatarDetailInfo... values) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; assistAvatarList.addAll(values); return this; } @@ -781,17 +1033,21 @@ public final class PlayerDetailInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - worldLevel = other.worldLevel; headIcon = other.headIcon; - uid = other.uid; level = other.level; + uid = other.uid; + worldLevel = other.worldLevel; platformType = other.platformType; - showDisplayAvatars = other.showDisplayAvatars; isBanned = other.isBanned; + showDisplayAvatars = other.showDisplayAvatars; recordInfo.copyFrom(other.recordInfo); + playerOutfitData.copyFrom(other.playerOutfitData); + headIconFrameInfo.copyFrom(other.headIconFrameInfo); + challengeDetail.copyFrom(other.challengeDetail); displaySettings.copyFrom(other.displaySettings); nickname.copyFrom(other.nickname); signature.copyFrom(other.signature); + unkDetail.copyFrom(other.unkDetail); displayAvatarList.copyFrom(other.displayAvatarList); assistAvatarList.copyFrom(other.assistAvatarList); } @@ -804,30 +1060,39 @@ public final class PlayerDetailInfoOuterClass { return this; } cachedSize = -1; - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); - } if (other.hasHeadIcon()) { setHeadIcon(other.headIcon); } - if (other.hasUid()) { - setUid(other.uid); - } if (other.hasLevel()) { setLevel(other.level); } + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } if (other.hasPlatformType()) { setPlatformTypeValue(other.platformType); } - if (other.hasShowDisplayAvatars()) { - setShowDisplayAvatars(other.showDisplayAvatars); - } if (other.hasIsBanned()) { setIsBanned(other.isBanned); } + if (other.hasShowDisplayAvatars()) { + setShowDisplayAvatars(other.showDisplayAvatars); + } if (other.hasRecordInfo()) { getMutableRecordInfo().mergeFrom(other.recordInfo); } + if (other.hasPlayerOutfitData()) { + getMutablePlayerOutfitData().mergeFrom(other.playerOutfitData); + } + if (other.hasHeadIconFrameInfo()) { + getMutableHeadIconFrameInfo().mergeFrom(other.headIconFrameInfo); + } + if (other.hasChallengeDetail()) { + getMutableChallengeDetail().mergeFrom(other.challengeDetail); + } if (other.hasDisplaySettings()) { getMutableDisplaySettings().mergeFrom(other.displaySettings); } @@ -837,6 +1102,9 @@ public final class PlayerDetailInfoOuterClass { if (other.hasSignature()) { getMutableSignatureBytes().copyFrom(other.signature); } + if (other.hasUnkDetail()) { + getMutableUnkDetailBytes().copyFrom(other.unkDetail); + } if (other.hasDisplayAvatarList()) { getMutableDisplayAvatarList().addAll(other.displayAvatarList); } @@ -853,17 +1121,21 @@ public final class PlayerDetailInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - worldLevel = 0; headIcon = 0; - uid = 0; level = 0; + uid = 0; + worldLevel = 0; platformType = 0; - showDisplayAvatars = false; isBanned = false; + showDisplayAvatars = false; recordInfo.clear(); + playerOutfitData.clear(); + headIconFrameInfo.clear(); + challengeDetail.clear(); displaySettings.clear(); nickname.clear(); signature.clear(); + unkDetail.clear(); displayAvatarList.clear(); assistAvatarList.clear(); return this; @@ -877,9 +1149,13 @@ public final class PlayerDetailInfoOuterClass { cachedSize = -1; bitField0_ = 0; recordInfo.clearQuick(); + playerOutfitData.clearQuick(); + headIconFrameInfo.clearQuick(); + challengeDetail.clearQuick(); displaySettings.clearQuick(); nickname.clear(); signature.clear(); + unkDetail.clear(); displayAvatarList.clearQuick(); assistAvatarList.clearQuick(); return this; @@ -895,17 +1171,21 @@ public final class PlayerDetailInfoOuterClass { } PlayerDetailInfo other = (PlayerDetailInfo) o; return bitField0_ == other.bitField0_ - && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasHeadIcon() || headIcon == other.headIcon) - && (!hasUid() || uid == other.uid) && (!hasLevel() || level == other.level) + && (!hasUid() || uid == other.uid) + && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasPlatformType() || platformType == other.platformType) - && (!hasShowDisplayAvatars() || showDisplayAvatars == other.showDisplayAvatars) && (!hasIsBanned() || isBanned == other.isBanned) + && (!hasShowDisplayAvatars() || showDisplayAvatars == other.showDisplayAvatars) && (!hasRecordInfo() || recordInfo.equals(other.recordInfo)) + && (!hasPlayerOutfitData() || playerOutfitData.equals(other.playerOutfitData)) + && (!hasHeadIconFrameInfo() || headIconFrameInfo.equals(other.headIconFrameInfo)) + && (!hasChallengeDetail() || challengeDetail.equals(other.challengeDetail)) && (!hasDisplaySettings() || displaySettings.equals(other.displaySettings)) && (!hasNickname() || nickname.equals(other.nickname)) && (!hasSignature() || signature.equals(other.signature)) + && (!hasUnkDetail() || unkDetail.equals(other.unkDetail)) && (!hasDisplayAvatarList() || displayAvatarList.equals(other.displayAvatarList)) && (!hasAssistAvatarList() || assistAvatarList.equals(other.assistAvatarList)); } @@ -913,58 +1193,74 @@ public final class PlayerDetailInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(worldLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(headIcon); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(level); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(level); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 104); output.writeEnumNoTag(platformType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(showDisplayAvatars); - } - if ((bitField0_ & 0x00000040) != 0) { output.writeRawByte((byte) 96); output.writeBoolNoTag(isBanned); } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(showDisplayAvatars); + } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 26); output.writeMessageNoTag(recordInfo); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawLittleEndian16((short) 27898); - output.writeMessageNoTag(displaySettings); + output.writeRawLittleEndian16((short) 13306); + output.writeMessageNoTag(playerOutfitData); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 34); - output.writeStringNoTag(nickname); + output.writeRawLittleEndian16((short) 16290); + output.writeMessageNoTag(headIconFrameInfo); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRawByte((byte) 114); - output.writeStringNoTag(signature); + output.writeRawLittleEndian16((short) 16634); + output.writeMessageNoTag(challengeDetail); } if ((bitField0_ & 0x00000800) != 0) { + output.writeRawLittleEndian16((short) 16866); + output.writeMessageNoTag(displaySettings); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 42); + output.writeStringNoTag(nickname); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawByte((byte) 90); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawLittleEndian16((short) 31474); + output.writeStringNoTag(unkDetail); + } + if ((bitField0_ & 0x00008000) != 0) { for (int i = 0; i < displayAvatarList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 66); output.writeMessageNoTag(displayAvatarList.get(i)); } } - if ((bitField0_ & 0x00001000) != 0) { + if ((bitField0_ & 0x00010000) != 0) { for (int i = 0; i < assistAvatarList.length(); i++) { - output.writeRawLittleEndian16((short) 27298); + output.writeRawLittleEndian16((short) 29066); output.writeMessageNoTag(assistAvatarList.get(i)); } } @@ -974,16 +1270,16 @@ public final class PlayerDetailInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(platformType); @@ -998,18 +1294,30 @@ public final class PlayerDetailInfoOuterClass { size += 1 + ProtoSink.computeMessageSizeNoTag(recordInfo); } if ((bitField0_ & 0x00000100) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(displaySettings); + size += 2 + ProtoSink.computeMessageSizeNoTag(playerOutfitData); } if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + size += 2 + ProtoSink.computeMessageSizeNoTag(headIconFrameInfo); } if ((bitField0_ & 0x00000400) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(signature); + size += 2 + ProtoSink.computeMessageSizeNoTag(challengeDetail); } if ((bitField0_ & 0x00000800) != 0) { - size += (1 * displayAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(displayAvatarList); + size += 2 + ProtoSink.computeMessageSizeNoTag(displaySettings); } if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(nickname); + } + if ((bitField0_ & 0x00002000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00004000) != 0) { + size += 2 + ProtoSink.computeStringSizeNoTag(unkDetail); + } + if ((bitField0_ & 0x00008000) != 0) { + size += (1 * displayAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(displayAvatarList); + } + if ((bitField0_ & 0x00010000) != 0) { size += (2 * assistAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assistAvatarList); } return size; @@ -1022,25 +1330,25 @@ public final class PlayerDetailInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // worldLevel - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { + case 16: { // headIcon headIcon = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 48) { break; } } - case 104: { + case 48: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000004; @@ -1050,15 +1358,15 @@ public final class PlayerDetailInfoOuterClass { } } case 120: { - // level - level = input.readUInt32(); + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 24) { + if (tag != 104) { break; } } - case 24: { + case 104: { // platformType final int value = input.readInt32(); if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { @@ -1066,15 +1374,6 @@ public final class PlayerDetailInfoOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // showDisplayAvatars - showDisplayAvatars = input.readBool(); - bitField0_ |= 0x00000020; - tag = input.readTag(); if (tag != 96) { break; } @@ -1082,60 +1381,105 @@ public final class PlayerDetailInfoOuterClass { case 96: { // isBanned isBanned = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 58) { + if (tag != 112) { break; } } - case 58: { + case 112: { + // showDisplayAvatars + showDisplayAvatars = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // recordInfo input.readMessage(recordInfo); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 13946) { + if (tag != 6650) { break; } } - case 13946: { - // displaySettings - input.readMessage(displaySettings); + case 6650: { + // playerOutfitData + input.readMessage(playerOutfitData); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 34) { + if (tag != 8098) { break; } } - case 34: { - // nickname - input.readString(nickname); + case 8098: { + // headIconFrameInfo + input.readMessage(headIconFrameInfo); bitField0_ |= 0x00000200; tag = input.readTag(); - if (tag != 114) { + if (tag != 8314) { break; } } - case 114: { - // signature - input.readString(signature); + case 8314: { + // challengeDetail + input.readMessage(challengeDetail); bitField0_ |= 0x00000400; tag = input.readTag(); + if (tag != 8418) { + break; + } + } + case 8418: { + // displaySettings + input.readMessage(displaySettings); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // nickname + input.readString(nickname); + bitField0_ |= 0x00001000; + tag = input.readTag(); if (tag != 90) { break; } } case 90: { - // displayAvatarList - tag = input.readRepeatedMessage(displayAvatarList, tag); - bitField0_ |= 0x00000800; - if (tag != 13602) { + // signature + input.readString(signature); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 15730) { break; } } - case 13602: { + case 15730: { + // unkDetail + input.readString(unkDetail); + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // displayAvatarList + tag = input.readRepeatedMessage(displayAvatarList, tag); + bitField0_ |= 0x00008000; + if (tag != 14474) { + break; + } + } + case 14474: { // assistAvatarList tag = input.readRepeatedMessage(assistAvatarList, tag); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; if (tag != 0) { break; } @@ -1158,42 +1502,54 @@ public final class PlayerDetailInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.headIcon, headIcon); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.headIcon, headIcon); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.level, level); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter()); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.showDisplayAvatars, showDisplayAvatars); + output.writeBool(FieldNames.isBanned, isBanned); } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.isBanned, isBanned); + output.writeBool(FieldNames.showDisplayAvatars, showDisplayAvatars); } if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.recordInfo, recordInfo); } if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.displaySettings, displaySettings); + output.writeMessage(FieldNames.playerOutfitData, playerOutfitData); } if ((bitField0_ & 0x00000200) != 0) { - output.writeString(FieldNames.nickname, nickname); + output.writeMessage(FieldNames.headIconFrameInfo, headIconFrameInfo); } if ((bitField0_ & 0x00000400) != 0) { - output.writeString(FieldNames.signature, signature); + output.writeMessage(FieldNames.challengeDetail, challengeDetail); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.displayAvatarList, displayAvatarList); + output.writeMessage(FieldNames.displaySettings, displaySettings); } if ((bitField0_ & 0x00001000) != 0) { + output.writeString(FieldNames.nickname, nickname); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeString(FieldNames.unkDetail, unkDetail); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeRepeatedMessage(FieldNames.displayAvatarList, displayAvatarList); + } + if ((bitField0_ & 0x00010000) != 0) { output.writeRepeatedMessage(FieldNames.assistAvatarList, assistAvatarList); } output.endObject(); @@ -1206,11 +1562,11 @@ public final class PlayerDetailInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { + case -1116107143: + case -219098248: { + if (input.isAtField(FieldNames.headIcon)) { if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); + headIcon = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -1218,11 +1574,10 @@ public final class PlayerDetailInfoOuterClass { } break; } - case -1116107143: - case -219098248: { - if (input.isAtField(FieldNames.headIcon)) { + case 102865796: { + if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { - headIcon = input.readUInt32(); + level = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -1241,10 +1596,11 @@ public final class PlayerDetailInfoOuterClass { } break; } - case 102865796: { - if (input.isAtField(FieldNames.level)) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { - level = input.readUInt32(); + worldLevel = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -1269,11 +1625,11 @@ public final class PlayerDetailInfoOuterClass { } break; } - case -1526656139: - case 635559547: { - if (input.isAtField(FieldNames.showDisplayAvatars)) { + case -722308888: + case -932303917: { + if (input.isAtField(FieldNames.isBanned)) { if (!input.trySkipNullValue()) { - showDisplayAvatars = input.readBool(); + isBanned = input.readBool(); bitField0_ |= 0x00000020; } } else { @@ -1281,11 +1637,11 @@ public final class PlayerDetailInfoOuterClass { } break; } - case -722308888: - case -932303917: { - if (input.isAtField(FieldNames.isBanned)) { + case -1526656139: + case 635559547: { + if (input.isAtField(FieldNames.showDisplayAvatars)) { if (!input.trySkipNullValue()) { - isBanned = input.readBool(); + showDisplayAvatars = input.readBool(); bitField0_ |= 0x00000040; } } else { @@ -1305,12 +1661,48 @@ public final class PlayerDetailInfoOuterClass { } break; } + case 1168879118: + case 1803235336: { + if (input.isAtField(FieldNames.playerOutfitData)) { + if (!input.trySkipNullValue()) { + input.readMessage(playerOutfitData); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 638045506: + case 240940903: { + if (input.isAtField(FieldNames.headIconFrameInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(headIconFrameInfo); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 732261012: + case -623873107: { + if (input.isAtField(FieldNames.challengeDetail)) { + if (!input.trySkipNullValue()) { + input.readMessage(challengeDetail); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } case 239490821: case 1126534912: { if (input.isAtField(FieldNames.displaySettings)) { if (!input.trySkipNullValue()) { input.readMessage(displaySettings); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -1321,7 +1713,7 @@ public final class PlayerDetailInfoOuterClass { if (input.isAtField(FieldNames.nickname)) { if (!input.trySkipNullValue()) { input.readString(nickname); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; } } else { input.skipUnknownField(); @@ -1332,7 +1724,19 @@ public final class PlayerDetailInfoOuterClass { if (input.isAtField(FieldNames.signature)) { if (!input.trySkipNullValue()) { input.readString(signature); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case -65942557: + case 401620030: { + if (input.isAtField(FieldNames.unkDetail)) { + if (!input.trySkipNullValue()) { + input.readString(unkDetail); + bitField0_ |= 0x00004000; } } else { input.skipUnknownField(); @@ -1344,7 +1748,7 @@ public final class PlayerDetailInfoOuterClass { if (input.isAtField(FieldNames.displayAvatarList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(displayAvatarList); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00008000; } } else { input.skipUnknownField(); @@ -1356,7 +1760,7 @@ public final class PlayerDetailInfoOuterClass { if (input.isAtField(FieldNames.assistAvatarList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(assistAvatarList); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; } } else { input.skipUnknownField(); @@ -1416,28 +1820,36 @@ public final class PlayerDetailInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - static final FieldName headIcon = FieldName.forField("headIcon", "head_icon"); - static final FieldName uid = FieldName.forField("uid"); - static final FieldName level = FieldName.forField("level"); - static final FieldName platformType = FieldName.forField("platformType", "platform_type"); + static final FieldName uid = FieldName.forField("uid"); - static final FieldName showDisplayAvatars = FieldName.forField("showDisplayAvatars", "show_display_avatars"); + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName platformType = FieldName.forField("platformType", "platform_type"); static final FieldName isBanned = FieldName.forField("isBanned", "is_banned"); + static final FieldName showDisplayAvatars = FieldName.forField("showDisplayAvatars", "show_display_avatars"); + static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info"); + static final FieldName playerOutfitData = FieldName.forField("playerOutfitData", "player_outfit_data"); + + static final FieldName headIconFrameInfo = FieldName.forField("headIconFrameInfo", "head_icon_frame_info"); + + static final FieldName challengeDetail = FieldName.forField("challengeDetail", "challenge_detail"); + static final FieldName displaySettings = FieldName.forField("displaySettings", "display_settings"); static final FieldName nickname = FieldName.forField("nickname"); static final FieldName signature = FieldName.forField("signature"); + static final FieldName unkDetail = FieldName.forField("unkDetail", "unk_detail"); + static final FieldName displayAvatarList = FieldName.forField("displayAvatarList", "display_avatar_list"); static final FieldName assistAvatarList = FieldName.forField("assistAvatarList", "assist_avatar_list"); diff --git a/src/generated/main/emu/lunarcore/proto/PlayerDisplayInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerDisplayInfoOuterClass.java new file mode 100644 index 0000000..df79be2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerDisplayInfoOuterClass.java @@ -0,0 +1,928 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class PlayerDisplayInfoOuterClass { + /** + * Protobuf type {@code PlayerDisplayInfo} + */ + public static final class PlayerDisplayInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 lightcone_count = 1; + */ + private int lightconeCount; + + /** + * optional uint32 int2 = 2; + */ + private int int2; + + /** + * optional uint32 su_world = 3; + */ + private int suWorld; + + /** + * optional uint32 int5 = 5; + */ + private int int5; + + /** + * optional uint32 character_count = 7; + */ + private int characterCount; + + /** + * optional uint32 phonograph_count = 12; + */ + private int phonographCount; + + /** + * optional uint32 book_count = 13; + */ + private int bookCount; + + /** + * optional uint32 achievement_count = 15; + */ + private int achievementCount; + + /** + * optional .PlayerMocDisplayInfo moc_display_info = 4; + */ + private final PlayerMocDisplayInfoOuterClass.PlayerMocDisplayInfo mocDisplayInfo = PlayerMocDisplayInfoOuterClass.PlayerMocDisplayInfo.newInstance(); + + private PlayerDisplayInfo() { + } + + /** + * @return a new empty instance of {@code PlayerDisplayInfo} + */ + public static PlayerDisplayInfo newInstance() { + return new PlayerDisplayInfo(); + } + + /** + * optional uint32 lightcone_count = 1; + * @return whether the lightconeCount field is set + */ + public boolean hasLightconeCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 lightcone_count = 1; + * @return this + */ + public PlayerDisplayInfo clearLightconeCount() { + bitField0_ &= ~0x00000001; + lightconeCount = 0; + return this; + } + + /** + * optional uint32 lightcone_count = 1; + * @return the lightconeCount + */ + public int getLightconeCount() { + return lightconeCount; + } + + /** + * optional uint32 lightcone_count = 1; + * @param value the lightconeCount to set + * @return this + */ + public PlayerDisplayInfo setLightconeCount(final int value) { + bitField0_ |= 0x00000001; + lightconeCount = value; + return this; + } + + /** + * optional uint32 int2 = 2; + * @return whether the int2 field is set + */ + public boolean hasInt2() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 int2 = 2; + * @return this + */ + public PlayerDisplayInfo clearInt2() { + bitField0_ &= ~0x00000002; + int2 = 0; + return this; + } + + /** + * optional uint32 int2 = 2; + * @return the int2 + */ + public int getInt2() { + return int2; + } + + /** + * optional uint32 int2 = 2; + * @param value the int2 to set + * @return this + */ + public PlayerDisplayInfo setInt2(final int value) { + bitField0_ |= 0x00000002; + int2 = value; + return this; + } + + /** + * optional uint32 su_world = 3; + * @return whether the suWorld field is set + */ + public boolean hasSuWorld() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 su_world = 3; + * @return this + */ + public PlayerDisplayInfo clearSuWorld() { + bitField0_ &= ~0x00000004; + suWorld = 0; + return this; + } + + /** + * optional uint32 su_world = 3; + * @return the suWorld + */ + public int getSuWorld() { + return suWorld; + } + + /** + * optional uint32 su_world = 3; + * @param value the suWorld to set + * @return this + */ + public PlayerDisplayInfo setSuWorld(final int value) { + bitField0_ |= 0x00000004; + suWorld = value; + return this; + } + + /** + * optional uint32 int5 = 5; + * @return whether the int5 field is set + */ + public boolean hasInt5() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 int5 = 5; + * @return this + */ + public PlayerDisplayInfo clearInt5() { + bitField0_ &= ~0x00000008; + int5 = 0; + return this; + } + + /** + * optional uint32 int5 = 5; + * @return the int5 + */ + public int getInt5() { + return int5; + } + + /** + * optional uint32 int5 = 5; + * @param value the int5 to set + * @return this + */ + public PlayerDisplayInfo setInt5(final int value) { + bitField0_ |= 0x00000008; + int5 = value; + return this; + } + + /** + * optional uint32 character_count = 7; + * @return whether the characterCount field is set + */ + public boolean hasCharacterCount() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 character_count = 7; + * @return this + */ + public PlayerDisplayInfo clearCharacterCount() { + bitField0_ &= ~0x00000010; + characterCount = 0; + return this; + } + + /** + * optional uint32 character_count = 7; + * @return the characterCount + */ + public int getCharacterCount() { + return characterCount; + } + + /** + * optional uint32 character_count = 7; + * @param value the characterCount to set + * @return this + */ + public PlayerDisplayInfo setCharacterCount(final int value) { + bitField0_ |= 0x00000010; + characterCount = value; + return this; + } + + /** + * optional uint32 phonograph_count = 12; + * @return whether the phonographCount field is set + */ + public boolean hasPhonographCount() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 phonograph_count = 12; + * @return this + */ + public PlayerDisplayInfo clearPhonographCount() { + bitField0_ &= ~0x00000020; + phonographCount = 0; + return this; + } + + /** + * optional uint32 phonograph_count = 12; + * @return the phonographCount + */ + public int getPhonographCount() { + return phonographCount; + } + + /** + * optional uint32 phonograph_count = 12; + * @param value the phonographCount to set + * @return this + */ + public PlayerDisplayInfo setPhonographCount(final int value) { + bitField0_ |= 0x00000020; + phonographCount = value; + return this; + } + + /** + * optional uint32 book_count = 13; + * @return whether the bookCount field is set + */ + public boolean hasBookCount() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional uint32 book_count = 13; + * @return this + */ + public PlayerDisplayInfo clearBookCount() { + bitField0_ &= ~0x00000040; + bookCount = 0; + return this; + } + + /** + * optional uint32 book_count = 13; + * @return the bookCount + */ + public int getBookCount() { + return bookCount; + } + + /** + * optional uint32 book_count = 13; + * @param value the bookCount to set + * @return this + */ + public PlayerDisplayInfo setBookCount(final int value) { + bitField0_ |= 0x00000040; + bookCount = value; + return this; + } + + /** + * optional uint32 achievement_count = 15; + * @return whether the achievementCount field is set + */ + public boolean hasAchievementCount() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional uint32 achievement_count = 15; + * @return this + */ + public PlayerDisplayInfo clearAchievementCount() { + bitField0_ &= ~0x00000080; + achievementCount = 0; + return this; + } + + /** + * optional uint32 achievement_count = 15; + * @return the achievementCount + */ + public int getAchievementCount() { + return achievementCount; + } + + /** + * optional uint32 achievement_count = 15; + * @param value the achievementCount to set + * @return this + */ + public PlayerDisplayInfo setAchievementCount(final int value) { + bitField0_ |= 0x00000080; + achievementCount = value; + return this; + } + + /** + * optional .PlayerMocDisplayInfo moc_display_info = 4; + * @return whether the mocDisplayInfo field is set + */ + public boolean hasMocDisplayInfo() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .PlayerMocDisplayInfo moc_display_info = 4; + * @return this + */ + public PlayerDisplayInfo clearMocDisplayInfo() { + bitField0_ &= ~0x00000100; + mocDisplayInfo.clear(); + return this; + } + + /** + * optional .PlayerMocDisplayInfo moc_display_info = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMocDisplayInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerMocDisplayInfoOuterClass.PlayerMocDisplayInfo getMocDisplayInfo() { + return mocDisplayInfo; + } + + /** + * optional .PlayerMocDisplayInfo moc_display_info = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerMocDisplayInfoOuterClass.PlayerMocDisplayInfo getMutableMocDisplayInfo() { + bitField0_ |= 0x00000100; + return mocDisplayInfo; + } + + /** + * optional .PlayerMocDisplayInfo moc_display_info = 4; + * @param value the mocDisplayInfo to set + * @return this + */ + public PlayerDisplayInfo setMocDisplayInfo( + final PlayerMocDisplayInfoOuterClass.PlayerMocDisplayInfo value) { + bitField0_ |= 0x00000100; + mocDisplayInfo.copyFrom(value); + return this; + } + + @Override + public PlayerDisplayInfo copyFrom(final PlayerDisplayInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + lightconeCount = other.lightconeCount; + int2 = other.int2; + suWorld = other.suWorld; + int5 = other.int5; + characterCount = other.characterCount; + phonographCount = other.phonographCount; + bookCount = other.bookCount; + achievementCount = other.achievementCount; + mocDisplayInfo.copyFrom(other.mocDisplayInfo); + } + return this; + } + + @Override + public PlayerDisplayInfo mergeFrom(final PlayerDisplayInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasLightconeCount()) { + setLightconeCount(other.lightconeCount); + } + if (other.hasInt2()) { + setInt2(other.int2); + } + if (other.hasSuWorld()) { + setSuWorld(other.suWorld); + } + if (other.hasInt5()) { + setInt5(other.int5); + } + if (other.hasCharacterCount()) { + setCharacterCount(other.characterCount); + } + if (other.hasPhonographCount()) { + setPhonographCount(other.phonographCount); + } + if (other.hasBookCount()) { + setBookCount(other.bookCount); + } + if (other.hasAchievementCount()) { + setAchievementCount(other.achievementCount); + } + if (other.hasMocDisplayInfo()) { + getMutableMocDisplayInfo().mergeFrom(other.mocDisplayInfo); + } + return this; + } + + @Override + public PlayerDisplayInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lightconeCount = 0; + int2 = 0; + suWorld = 0; + int5 = 0; + characterCount = 0; + phonographCount = 0; + bookCount = 0; + achievementCount = 0; + mocDisplayInfo.clear(); + return this; + } + + @Override + public PlayerDisplayInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mocDisplayInfo.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerDisplayInfo)) { + return false; + } + PlayerDisplayInfo other = (PlayerDisplayInfo) o; + return bitField0_ == other.bitField0_ + && (!hasLightconeCount() || lightconeCount == other.lightconeCount) + && (!hasInt2() || int2 == other.int2) + && (!hasSuWorld() || suWorld == other.suWorld) + && (!hasInt5() || int5 == other.int5) + && (!hasCharacterCount() || characterCount == other.characterCount) + && (!hasPhonographCount() || phonographCount == other.phonographCount) + && (!hasBookCount() || bookCount == other.bookCount) + && (!hasAchievementCount() || achievementCount == other.achievementCount) + && (!hasMocDisplayInfo() || mocDisplayInfo.equals(other.mocDisplayInfo)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(lightconeCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(int2); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(suWorld); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(int5); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(characterCount); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(phonographCount); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(bookCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(achievementCount); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(mocDisplayInfo); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(lightconeCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(int2); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(suWorld); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(int5); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(characterCount); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(phonographCount); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(bookCount); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(achievementCount); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(mocDisplayInfo); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerDisplayInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // lightconeCount + lightconeCount = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // int2 + int2 = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // suWorld + suWorld = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // int5 + int5 = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // characterCount + characterCount = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // phonographCount + phonographCount = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // bookCount + bookCount = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // achievementCount + achievementCount = input.readUInt32(); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // mocDisplayInfo + input.readMessage(mocDisplayInfo); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.lightconeCount, lightconeCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.int2, int2); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.suWorld, suWorld); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.int5, int5); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.characterCount, characterCount); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.phonographCount, phonographCount); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeUInt32(FieldNames.bookCount, bookCount); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeUInt32(FieldNames.achievementCount, achievementCount); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.mocDisplayInfo, mocDisplayInfo); + } + output.endObject(); + } + + @Override + public PlayerDisplayInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 809292630: + case 108629641: { + if (input.isAtField(FieldNames.lightconeCount)) { + if (!input.trySkipNullValue()) { + lightconeCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237411: { + if (input.isAtField(FieldNames.int2)) { + if (!input.trySkipNullValue()) { + int2 = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1877882288: + case -2143437963: { + if (input.isAtField(FieldNames.suWorld)) { + if (!input.trySkipNullValue()) { + suWorld = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237414: { + if (input.isAtField(FieldNames.int5)) { + if (!input.trySkipNullValue()) { + int5 = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 331102054: + case -1830376327: { + if (input.isAtField(FieldNames.characterCount)) { + if (!input.trySkipNullValue()) { + characterCount = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -522909735: + case 1760029286: { + if (input.isAtField(FieldNames.phonographCount)) { + if (!input.trySkipNullValue()) { + phonographCount = input.readUInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1998819238: + case -1670751175: { + if (input.isAtField(FieldNames.bookCount)) { + if (!input.trySkipNullValue()) { + bookCount = input.readUInt32(); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2066675488: + case 432792575: { + if (input.isAtField(FieldNames.achievementCount)) { + if (!input.trySkipNullValue()) { + achievementCount = input.readUInt32(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1501890255: + case 1021647497: { + if (input.isAtField(FieldNames.mocDisplayInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(mocDisplayInfo); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerDisplayInfo clone() { + return new PlayerDisplayInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerDisplayInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerDisplayInfo(), data).checkInitialized(); + } + + public static PlayerDisplayInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerDisplayInfo(), input).checkInitialized(); + } + + public static PlayerDisplayInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerDisplayInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerDisplayInfo messages + */ + public static MessageFactory getFactory() { + return PlayerDisplayInfoFactory.INSTANCE; + } + + private enum PlayerDisplayInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerDisplayInfo create() { + return PlayerDisplayInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName lightconeCount = FieldName.forField("lightconeCount", "lightcone_count"); + + static final FieldName int2 = FieldName.forField("int2"); + + static final FieldName suWorld = FieldName.forField("suWorld", "su_world"); + + static final FieldName int5 = FieldName.forField("int5"); + + static final FieldName characterCount = FieldName.forField("characterCount", "character_count"); + + static final FieldName phonographCount = FieldName.forField("phonographCount", "phonograph_count"); + + static final FieldName bookCount = FieldName.forField("bookCount", "book_count"); + + static final FieldName achievementCount = FieldName.forField("achievementCount", "achievement_count"); + + static final FieldName mocDisplayInfo = FieldName.forField("mocDisplayInfo", "moc_display_info"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PlayerDisplaySettingsOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerDisplaySettingsOuterClass.java index 4080364..cca4830 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerDisplaySettingsOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerDisplaySettingsOuterClass.java @@ -19,29 +19,29 @@ public final class PlayerDisplaySettingsOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool GGODAIOHJIF = 2; + * optional bool unk5 = 2; */ - private boolean gGODAIOHJIF; + private boolean unk5; /** - * optional bool HHCGDEOCOMI = 3; + * optional bool unk3 = 3; */ - private boolean hHCGDEOCOMI; + private boolean unk3; /** - * optional bool BKPACECKIIA = 6; + * optional bool unk1 = 6; */ - private boolean bKPACECKIIA; + private boolean unk1; /** - * optional bool KMJDMEFGCCK = 13; + * optional bool unk2 = 13; */ - private boolean kMJDMEFGCCK; + private boolean unk2; /** - * optional bool JCNINCCCAKL = 14; + * optional bool unk4 = 14; */ - private boolean jCNINCCCAKL; + private boolean unk4; private PlayerDisplaySettings() { } @@ -54,187 +54,187 @@ public final class PlayerDisplaySettingsOuterClass { } /** - * optional bool GGODAIOHJIF = 2; - * @return whether the gGODAIOHJIF field is set + * optional bool unk5 = 2; + * @return whether the unk5 field is set */ - public boolean hasGGODAIOHJIF() { + public boolean hasUnk5() { return (bitField0_ & 0x00000001) != 0; } /** - * optional bool GGODAIOHJIF = 2; + * optional bool unk5 = 2; * @return this */ - public PlayerDisplaySettings clearGGODAIOHJIF() { + public PlayerDisplaySettings clearUnk5() { bitField0_ &= ~0x00000001; - gGODAIOHJIF = false; + unk5 = false; return this; } /** - * optional bool GGODAIOHJIF = 2; - * @return the gGODAIOHJIF + * optional bool unk5 = 2; + * @return the unk5 */ - public boolean getGGODAIOHJIF() { - return gGODAIOHJIF; + public boolean getUnk5() { + return unk5; } /** - * optional bool GGODAIOHJIF = 2; - * @param value the gGODAIOHJIF to set + * optional bool unk5 = 2; + * @param value the unk5 to set * @return this */ - public PlayerDisplaySettings setGGODAIOHJIF(final boolean value) { + public PlayerDisplaySettings setUnk5(final boolean value) { bitField0_ |= 0x00000001; - gGODAIOHJIF = value; + unk5 = value; return this; } /** - * optional bool HHCGDEOCOMI = 3; - * @return whether the hHCGDEOCOMI field is set + * optional bool unk3 = 3; + * @return whether the unk3 field is set */ - public boolean hasHHCGDEOCOMI() { + public boolean hasUnk3() { return (bitField0_ & 0x00000002) != 0; } /** - * optional bool HHCGDEOCOMI = 3; + * optional bool unk3 = 3; * @return this */ - public PlayerDisplaySettings clearHHCGDEOCOMI() { + public PlayerDisplaySettings clearUnk3() { bitField0_ &= ~0x00000002; - hHCGDEOCOMI = false; + unk3 = false; return this; } /** - * optional bool HHCGDEOCOMI = 3; - * @return the hHCGDEOCOMI + * optional bool unk3 = 3; + * @return the unk3 */ - public boolean getHHCGDEOCOMI() { - return hHCGDEOCOMI; + public boolean getUnk3() { + return unk3; } /** - * optional bool HHCGDEOCOMI = 3; - * @param value the hHCGDEOCOMI to set + * optional bool unk3 = 3; + * @param value the unk3 to set * @return this */ - public PlayerDisplaySettings setHHCGDEOCOMI(final boolean value) { + public PlayerDisplaySettings setUnk3(final boolean value) { bitField0_ |= 0x00000002; - hHCGDEOCOMI = value; + unk3 = value; return this; } /** - * optional bool BKPACECKIIA = 6; - * @return whether the bKPACECKIIA field is set + * optional bool unk1 = 6; + * @return whether the unk1 field is set */ - public boolean hasBKPACECKIIA() { + public boolean hasUnk1() { return (bitField0_ & 0x00000004) != 0; } /** - * optional bool BKPACECKIIA = 6; + * optional bool unk1 = 6; * @return this */ - public PlayerDisplaySettings clearBKPACECKIIA() { + public PlayerDisplaySettings clearUnk1() { bitField0_ &= ~0x00000004; - bKPACECKIIA = false; + unk1 = false; return this; } /** - * optional bool BKPACECKIIA = 6; - * @return the bKPACECKIIA + * optional bool unk1 = 6; + * @return the unk1 */ - public boolean getBKPACECKIIA() { - return bKPACECKIIA; + public boolean getUnk1() { + return unk1; } /** - * optional bool BKPACECKIIA = 6; - * @param value the bKPACECKIIA to set + * optional bool unk1 = 6; + * @param value the unk1 to set * @return this */ - public PlayerDisplaySettings setBKPACECKIIA(final boolean value) { + public PlayerDisplaySettings setUnk1(final boolean value) { bitField0_ |= 0x00000004; - bKPACECKIIA = value; + unk1 = value; return this; } /** - * optional bool KMJDMEFGCCK = 13; - * @return whether the kMJDMEFGCCK field is set + * optional bool unk2 = 13; + * @return whether the unk2 field is set */ - public boolean hasKMJDMEFGCCK() { + public boolean hasUnk2() { return (bitField0_ & 0x00000008) != 0; } /** - * optional bool KMJDMEFGCCK = 13; + * optional bool unk2 = 13; * @return this */ - public PlayerDisplaySettings clearKMJDMEFGCCK() { + public PlayerDisplaySettings clearUnk2() { bitField0_ &= ~0x00000008; - kMJDMEFGCCK = false; + unk2 = false; return this; } /** - * optional bool KMJDMEFGCCK = 13; - * @return the kMJDMEFGCCK + * optional bool unk2 = 13; + * @return the unk2 */ - public boolean getKMJDMEFGCCK() { - return kMJDMEFGCCK; + public boolean getUnk2() { + return unk2; } /** - * optional bool KMJDMEFGCCK = 13; - * @param value the kMJDMEFGCCK to set + * optional bool unk2 = 13; + * @param value the unk2 to set * @return this */ - public PlayerDisplaySettings setKMJDMEFGCCK(final boolean value) { + public PlayerDisplaySettings setUnk2(final boolean value) { bitField0_ |= 0x00000008; - kMJDMEFGCCK = value; + unk2 = value; return this; } /** - * optional bool JCNINCCCAKL = 14; - * @return whether the jCNINCCCAKL field is set + * optional bool unk4 = 14; + * @return whether the unk4 field is set */ - public boolean hasJCNINCCCAKL() { + public boolean hasUnk4() { return (bitField0_ & 0x00000010) != 0; } /** - * optional bool JCNINCCCAKL = 14; + * optional bool unk4 = 14; * @return this */ - public PlayerDisplaySettings clearJCNINCCCAKL() { + public PlayerDisplaySettings clearUnk4() { bitField0_ &= ~0x00000010; - jCNINCCCAKL = false; + unk4 = false; return this; } /** - * optional bool JCNINCCCAKL = 14; - * @return the jCNINCCCAKL + * optional bool unk4 = 14; + * @return the unk4 */ - public boolean getJCNINCCCAKL() { - return jCNINCCCAKL; + public boolean getUnk4() { + return unk4; } /** - * optional bool JCNINCCCAKL = 14; - * @param value the jCNINCCCAKL to set + * optional bool unk4 = 14; + * @param value the unk4 to set * @return this */ - public PlayerDisplaySettings setJCNINCCCAKL(final boolean value) { + public PlayerDisplaySettings setUnk4(final boolean value) { bitField0_ |= 0x00000010; - jCNINCCCAKL = value; + unk4 = value; return this; } @@ -243,11 +243,11 @@ public final class PlayerDisplaySettingsOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - gGODAIOHJIF = other.gGODAIOHJIF; - hHCGDEOCOMI = other.hHCGDEOCOMI; - bKPACECKIIA = other.bKPACECKIIA; - kMJDMEFGCCK = other.kMJDMEFGCCK; - jCNINCCCAKL = other.jCNINCCCAKL; + unk5 = other.unk5; + unk3 = other.unk3; + unk1 = other.unk1; + unk2 = other.unk2; + unk4 = other.unk4; } return this; } @@ -258,20 +258,20 @@ public final class PlayerDisplaySettingsOuterClass { return this; } cachedSize = -1; - if (other.hasGGODAIOHJIF()) { - setGGODAIOHJIF(other.gGODAIOHJIF); + if (other.hasUnk5()) { + setUnk5(other.unk5); } - if (other.hasHHCGDEOCOMI()) { - setHHCGDEOCOMI(other.hHCGDEOCOMI); + if (other.hasUnk3()) { + setUnk3(other.unk3); } - if (other.hasBKPACECKIIA()) { - setBKPACECKIIA(other.bKPACECKIIA); + if (other.hasUnk1()) { + setUnk1(other.unk1); } - if (other.hasKMJDMEFGCCK()) { - setKMJDMEFGCCK(other.kMJDMEFGCCK); + if (other.hasUnk2()) { + setUnk2(other.unk2); } - if (other.hasJCNINCCCAKL()) { - setJCNINCCCAKL(other.jCNINCCCAKL); + if (other.hasUnk4()) { + setUnk4(other.unk4); } return this; } @@ -283,11 +283,11 @@ public final class PlayerDisplaySettingsOuterClass { } cachedSize = -1; bitField0_ = 0; - gGODAIOHJIF = false; - hHCGDEOCOMI = false; - bKPACECKIIA = false; - kMJDMEFGCCK = false; - jCNINCCCAKL = false; + unk5 = false; + unk3 = false; + unk1 = false; + unk2 = false; + unk4 = false; return this; } @@ -311,34 +311,34 @@ public final class PlayerDisplaySettingsOuterClass { } PlayerDisplaySettings other = (PlayerDisplaySettings) o; return bitField0_ == other.bitField0_ - && (!hasGGODAIOHJIF() || gGODAIOHJIF == other.gGODAIOHJIF) - && (!hasHHCGDEOCOMI() || hHCGDEOCOMI == other.hHCGDEOCOMI) - && (!hasBKPACECKIIA() || bKPACECKIIA == other.bKPACECKIIA) - && (!hasKMJDMEFGCCK() || kMJDMEFGCCK == other.kMJDMEFGCCK) - && (!hasJCNINCCCAKL() || jCNINCCCAKL == other.jCNINCCCAKL); + && (!hasUnk5() || unk5 == other.unk5) + && (!hasUnk3() || unk3 == other.unk3) + && (!hasUnk1() || unk1 == other.unk1) + && (!hasUnk2() || unk2 == other.unk2) + && (!hasUnk4() || unk4 == other.unk4); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeBoolNoTag(gGODAIOHJIF); + output.writeBoolNoTag(unk5); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 24); - output.writeBoolNoTag(hHCGDEOCOMI); + output.writeBoolNoTag(unk3); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 48); - output.writeBoolNoTag(bKPACECKIIA); + output.writeBoolNoTag(unk1); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 104); - output.writeBoolNoTag(kMJDMEFGCCK); + output.writeBoolNoTag(unk2); } if ((bitField0_ & 0x00000010) != 0) { output.writeRawByte((byte) 112); - output.writeBoolNoTag(jCNINCCCAKL); + output.writeBoolNoTag(unk4); } } @@ -371,8 +371,8 @@ public final class PlayerDisplaySettingsOuterClass { while (true) { switch (tag) { case 16: { - // gGODAIOHJIF - gGODAIOHJIF = input.readBool(); + // unk5 + unk5 = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 24) { @@ -380,8 +380,8 @@ public final class PlayerDisplaySettingsOuterClass { } } case 24: { - // hHCGDEOCOMI - hHCGDEOCOMI = input.readBool(); + // unk3 + unk3 = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 48) { @@ -389,8 +389,8 @@ public final class PlayerDisplaySettingsOuterClass { } } case 48: { - // bKPACECKIIA - bKPACECKIIA = input.readBool(); + // unk1 + unk1 = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 104) { @@ -398,8 +398,8 @@ public final class PlayerDisplaySettingsOuterClass { } } case 104: { - // kMJDMEFGCCK - kMJDMEFGCCK = input.readBool(); + // unk2 + unk2 = input.readBool(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 112) { @@ -407,8 +407,8 @@ public final class PlayerDisplaySettingsOuterClass { } } case 112: { - // jCNINCCCAKL - jCNINCCCAKL = input.readBool(); + // unk4 + unk4 = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -433,19 +433,19 @@ public final class PlayerDisplaySettingsOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeBool(FieldNames.gGODAIOHJIF, gGODAIOHJIF); + output.writeBool(FieldNames.unk5, unk5); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.hHCGDEOCOMI, hHCGDEOCOMI); + output.writeBool(FieldNames.unk3, unk3); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.bKPACECKIIA, bKPACECKIIA); + output.writeBool(FieldNames.unk1, unk1); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.kMJDMEFGCCK, kMJDMEFGCCK); + output.writeBool(FieldNames.unk2, unk2); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.jCNINCCCAKL, jCNINCCCAKL); + output.writeBool(FieldNames.unk4, unk4); } output.endObject(); } @@ -457,10 +457,10 @@ public final class PlayerDisplaySettingsOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1413221105: { - if (input.isAtField(FieldNames.gGODAIOHJIF)) { + case 3594627: { + if (input.isAtField(FieldNames.unk5)) { if (!input.trySkipNullValue()) { - gGODAIOHJIF = input.readBool(); + unk5 = input.readBool(); bitField0_ |= 0x00000001; } } else { @@ -468,10 +468,10 @@ public final class PlayerDisplaySettingsOuterClass { } break; } - case -1179279854: { - if (input.isAtField(FieldNames.hHCGDEOCOMI)) { + case 3594625: { + if (input.isAtField(FieldNames.unk3)) { if (!input.trySkipNullValue()) { - hHCGDEOCOMI = input.readBool(); + unk3 = input.readBool(); bitField0_ |= 0x00000002; } } else { @@ -479,10 +479,10 @@ public final class PlayerDisplaySettingsOuterClass { } break; } - case -69431971: { - if (input.isAtField(FieldNames.bKPACECKIIA)) { + case 3594623: { + if (input.isAtField(FieldNames.unk1)) { if (!input.trySkipNullValue()) { - bKPACECKIIA = input.readBool(); + unk1 = input.readBool(); bitField0_ |= 0x00000004; } } else { @@ -490,10 +490,10 @@ public final class PlayerDisplaySettingsOuterClass { } break; } - case -274115754: { - if (input.isAtField(FieldNames.kMJDMEFGCCK)) { + case 3594624: { + if (input.isAtField(FieldNames.unk2)) { if (!input.trySkipNullValue()) { - kMJDMEFGCCK = input.readBool(); + unk2 = input.readBool(); bitField0_ |= 0x00000008; } } else { @@ -501,10 +501,10 @@ public final class PlayerDisplaySettingsOuterClass { } break; } - case 1504591161: { - if (input.isAtField(FieldNames.jCNINCCCAKL)) { + case 3594626: { + if (input.isAtField(FieldNames.unk4)) { if (!input.trySkipNullValue()) { - jCNINCCCAKL = input.readBool(); + unk4 = input.readBool(); bitField0_ |= 0x00000010; } } else { @@ -565,15 +565,15 @@ public final class PlayerDisplaySettingsOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName gGODAIOHJIF = FieldName.forField("GGODAIOHJIF"); + static final FieldName unk5 = FieldName.forField("unk5"); - static final FieldName hHCGDEOCOMI = FieldName.forField("HHCGDEOCOMI"); + static final FieldName unk3 = FieldName.forField("unk3"); - static final FieldName bKPACECKIIA = FieldName.forField("BKPACECKIIA"); + static final FieldName unk1 = FieldName.forField("unk1"); - static final FieldName kMJDMEFGCCK = FieldName.forField("KMJDMEFGCCK"); + static final FieldName unk2 = FieldName.forField("unk2"); - static final FieldName jCNINCCCAKL = FieldName.forField("JCNINCCCAKL"); + static final FieldName unk4 = FieldName.forField("unk4"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java index 227281c..c3724d9 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenCsReqOuterClass.java @@ -20,20 +20,20 @@ public final class PlayerGetTokenCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 platform_type = 3; + * optional uint32 platform_type = 10; */ private int platformType; /** - * optional string token = 4; - */ - private final Utf8String token = Utf8String.newEmptyInstance(); - - /** - * optional string account_uid = 10; + * optional string account_uid = 2; */ private final Utf8String accountUid = Utf8String.newEmptyInstance(); + /** + * optional string token = 7; + */ + private final Utf8String token = Utf8String.newEmptyInstance(); + private PlayerGetTokenCsReq() { } @@ -45,7 +45,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 3; + * optional uint32 platform_type = 10; * @return whether the platformType field is set */ public boolean hasPlatformType() { @@ -53,7 +53,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 3; + * optional uint32 platform_type = 10; * @return this */ public PlayerGetTokenCsReq clearPlatformType() { @@ -63,7 +63,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 3; + * optional uint32 platform_type = 10; * @return the platformType */ public int getPlatformType() { @@ -71,7 +71,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional uint32 platform_type = 3; + * optional uint32 platform_type = 10; * @param value the platformType to set * @return this */ @@ -82,90 +82,25 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string token = 4; - * @return whether the token field is set + * optional string account_uid = 2; + * @return whether the accountUid field is set */ - public boolean hasToken() { + public boolean hasAccountUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional string token = 4; - * @return this - */ - public PlayerGetTokenCsReq clearToken() { - bitField0_ &= ~0x00000002; - token.clear(); - return this; - } - - /** - * optional string token = 4; - * @return the token - */ - public String getToken() { - return token.getString(); - } - - /** - * optional string token = 4; - * @return internal {@code Utf8String} representation of token for reading - */ - public Utf8String getTokenBytes() { - return this.token; - } - - /** - * optional string token = 4; - * @return internal {@code Utf8String} representation of token for modifications - */ - public Utf8String getMutableTokenBytes() { - bitField0_ |= 0x00000002; - return this.token; - } - - /** - * optional string token = 4; - * @param value the token to set - * @return this - */ - public PlayerGetTokenCsReq setToken(final CharSequence value) { - bitField0_ |= 0x00000002; - token.copyFrom(value); - return this; - } - - /** - * optional string token = 4; - * @param value the token to set - * @return this - */ - public PlayerGetTokenCsReq setToken(final Utf8String value) { - bitField0_ |= 0x00000002; - token.copyFrom(value); - return this; - } - - /** - * optional string account_uid = 10; - * @return whether the accountUid field is set - */ - public boolean hasAccountUid() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional string account_uid = 10; + * optional string account_uid = 2; * @return this */ public PlayerGetTokenCsReq clearAccountUid() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; accountUid.clear(); return this; } /** - * optional string account_uid = 10; + * optional string account_uid = 2; * @return the accountUid */ public String getAccountUid() { @@ -173,7 +108,7 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 10; + * optional string account_uid = 2; * @return internal {@code Utf8String} representation of accountUid for reading */ public Utf8String getAccountUidBytes() { @@ -181,44 +116,109 @@ public final class PlayerGetTokenCsReqOuterClass { } /** - * optional string account_uid = 10; + * optional string account_uid = 2; * @return internal {@code Utf8String} representation of accountUid for modifications */ public Utf8String getMutableAccountUidBytes() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return this.accountUid; } /** - * optional string account_uid = 10; + * optional string account_uid = 2; * @param value the accountUid to set * @return this */ public PlayerGetTokenCsReq setAccountUid(final CharSequence value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; accountUid.copyFrom(value); return this; } /** - * optional string account_uid = 10; + * optional string account_uid = 2; * @param value the accountUid to set * @return this */ public PlayerGetTokenCsReq setAccountUid(final Utf8String value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; accountUid.copyFrom(value); return this; } + /** + * optional string token = 7; + * @return whether the token field is set + */ + public boolean hasToken() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional string token = 7; + * @return this + */ + public PlayerGetTokenCsReq clearToken() { + bitField0_ &= ~0x00000004; + token.clear(); + return this; + } + + /** + * optional string token = 7; + * @return the token + */ + public String getToken() { + return token.getString(); + } + + /** + * optional string token = 7; + * @return internal {@code Utf8String} representation of token for reading + */ + public Utf8String getTokenBytes() { + return this.token; + } + + /** + * optional string token = 7; + * @return internal {@code Utf8String} representation of token for modifications + */ + public Utf8String getMutableTokenBytes() { + bitField0_ |= 0x00000004; + return this.token; + } + + /** + * optional string token = 7; + * @param value the token to set + * @return this + */ + public PlayerGetTokenCsReq setToken(final CharSequence value) { + bitField0_ |= 0x00000004; + token.copyFrom(value); + return this; + } + + /** + * optional string token = 7; + * @param value the token to set + * @return this + */ + public PlayerGetTokenCsReq setToken(final Utf8String value) { + bitField0_ |= 0x00000004; + token.copyFrom(value); + return this; + } + @Override public PlayerGetTokenCsReq copyFrom(final PlayerGetTokenCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; platformType = other.platformType; - token.copyFrom(other.token); accountUid.copyFrom(other.accountUid); + token.copyFrom(other.token); } return this; } @@ -232,12 +232,12 @@ public final class PlayerGetTokenCsReqOuterClass { if (other.hasPlatformType()) { setPlatformType(other.platformType); } - if (other.hasToken()) { - getMutableTokenBytes().copyFrom(other.token); - } if (other.hasAccountUid()) { getMutableAccountUidBytes().copyFrom(other.accountUid); } + if (other.hasToken()) { + getMutableTokenBytes().copyFrom(other.token); + } return this; } @@ -249,8 +249,8 @@ public final class PlayerGetTokenCsReqOuterClass { cachedSize = -1; bitField0_ = 0; platformType = 0; - token.clear(); accountUid.clear(); + token.clear(); return this; } @@ -261,8 +261,8 @@ public final class PlayerGetTokenCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - token.clear(); accountUid.clear(); + token.clear(); return this; } @@ -277,23 +277,23 @@ public final class PlayerGetTokenCsReqOuterClass { PlayerGetTokenCsReq other = (PlayerGetTokenCsReq) o; return bitField0_ == other.bitField0_ && (!hasPlatformType() || platformType == other.platformType) - && (!hasToken() || token.equals(other.token)) - && (!hasAccountUid() || accountUid.equals(other.accountUid)); + && (!hasAccountUid() || accountUid.equals(other.accountUid)) + && (!hasToken() || token.equals(other.token)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(platformType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); - output.writeStringNoTag(token); + output.writeRawByte((byte) 18); + output.writeStringNoTag(accountUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 82); - output.writeStringNoTag(accountUid); + output.writeRawByte((byte) 58); + output.writeStringNoTag(token); } } @@ -304,10 +304,10 @@ public final class PlayerGetTokenCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(platformType); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(token); + size += 1 + ProtoSink.computeStringSizeNoTag(accountUid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(accountUid); + size += 1 + ProtoSink.computeStringSizeNoTag(token); } return size; } @@ -319,27 +319,27 @@ public final class PlayerGetTokenCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 80: { // platformType platformType = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 18) { break; } } - case 34: { - // token - input.readString(token); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { + case 18: { // accountUid input.readString(accountUid); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // token + input.readString(token); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -367,10 +367,10 @@ public final class PlayerGetTokenCsReqOuterClass { output.writeUInt32(FieldNames.platformType, platformType); } if ((bitField0_ & 0x00000002) != 0) { - output.writeString(FieldNames.token, token); + output.writeString(FieldNames.accountUid, accountUid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeString(FieldNames.accountUid, accountUid); + output.writeString(FieldNames.token, token); } output.endObject(); } @@ -394,10 +394,11 @@ public final class PlayerGetTokenCsReqOuterClass { } break; } - case 110541305: { - if (input.isAtField(FieldNames.token)) { + case -803342621: + case 866492222: { + if (input.isAtField(FieldNames.accountUid)) { if (!input.trySkipNullValue()) { - input.readString(token); + input.readString(accountUid); bitField0_ |= 0x00000002; } } else { @@ -405,11 +406,10 @@ public final class PlayerGetTokenCsReqOuterClass { } break; } - case -803342621: - case 866492222: { - if (input.isAtField(FieldNames.accountUid)) { + case 110541305: { + if (input.isAtField(FieldNames.token)) { if (!input.trySkipNullValue()) { - input.readString(accountUid); + input.readString(token); bitField0_ |= 0x00000004; } } else { @@ -472,9 +472,9 @@ public final class PlayerGetTokenCsReqOuterClass { static class FieldNames { static final FieldName platformType = FieldName.forField("platformType", "platform_type"); - static final FieldName token = FieldName.forField("token"); - static final FieldName accountUid = FieldName.forField("accountUid", "account_uid"); + + static final FieldName token = FieldName.forField("token"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java index d263634..f0b4f81 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerGetTokenScRspOuterClass.java @@ -20,27 +20,27 @@ public final class PlayerGetTokenScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 secret_key_seed = 5; + * optional uint64 secret_key_seed = 8; */ private long secretKeySeed; /** - * optional uint32 uid = 4; - */ - private int uid; - - /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional .BlackInfo black_info = 12; + * optional uint32 uid = 11; + */ + private int uid; + + /** + * optional .BlackInfo black_info = 14; */ private final BlackInfoOuterClass.BlackInfo blackInfo = BlackInfoOuterClass.BlackInfo.newInstance(); /** - * optional string msg = 3; + * optional string msg = 1; */ private final Utf8String msg = Utf8String.newEmptyInstance(); @@ -55,7 +55,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 5; + * optional uint64 secret_key_seed = 8; * @return whether the secretKeySeed field is set */ public boolean hasSecretKeySeed() { @@ -63,7 +63,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 5; + * optional uint64 secret_key_seed = 8; * @return this */ public PlayerGetTokenScRsp clearSecretKeySeed() { @@ -73,7 +73,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 5; + * optional uint64 secret_key_seed = 8; * @return the secretKeySeed */ public long getSecretKeySeed() { @@ -81,7 +81,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint64 secret_key_seed = 5; + * optional uint64 secret_key_seed = 8; * @param value the secretKeySeed to set * @return this */ @@ -92,62 +92,25 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint32 uid = 4; - * @return whether the uid field is set + * optional uint32 retcode = 7; + * @return whether the retcode field is set */ - public boolean hasUid() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 uid = 4; - * @return this - */ - public PlayerGetTokenScRsp clearUid() { - bitField0_ &= ~0x00000002; - uid = 0; - return this; - } - - /** - * optional uint32 uid = 4; - * @return the uid - */ - public int getUid() { - return uid; - } - - /** - * optional uint32 uid = 4; - * @param value the uid to set - * @return this - */ - public PlayerGetTokenScRsp setUid(final int value) { - bitField0_ |= 0x00000002; - uid = value; - return this; - } - - /** - * optional uint32 retcode = 10; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 7; * @return this */ public PlayerGetTokenScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -155,18 +118,55 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ public PlayerGetTokenScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } /** - * optional .BlackInfo black_info = 12; + * optional uint32 uid = 11; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 uid = 11; + * @return this + */ + public PlayerGetTokenScRsp clearUid() { + bitField0_ &= ~0x00000004; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 11; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 11; + * @param value the uid to set + * @return this + */ + public PlayerGetTokenScRsp setUid(final int value) { + bitField0_ |= 0x00000004; + uid = value; + return this; + } + + /** + * optional .BlackInfo black_info = 14; * @return whether the blackInfo field is set */ public boolean hasBlackInfo() { @@ -174,7 +174,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_info = 14; * @return this */ public PlayerGetTokenScRsp clearBlackInfo() { @@ -184,7 +184,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_info = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -198,7 +198,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_info = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -212,7 +212,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional .BlackInfo black_info = 12; + * optional .BlackInfo black_info = 14; * @param value the blackInfo to set * @return this */ @@ -223,7 +223,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @return whether the msg field is set */ public boolean hasMsg() { @@ -231,7 +231,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @return this */ public PlayerGetTokenScRsp clearMsg() { @@ -241,7 +241,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @return the msg */ public String getMsg() { @@ -249,7 +249,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @return internal {@code Utf8String} representation of msg for reading */ public Utf8String getMsgBytes() { @@ -257,7 +257,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @return internal {@code Utf8String} representation of msg for modifications */ public Utf8String getMutableMsgBytes() { @@ -266,7 +266,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @param value the msg to set * @return this */ @@ -277,7 +277,7 @@ public final class PlayerGetTokenScRspOuterClass { } /** - * optional string msg = 3; + * optional string msg = 1; * @param value the msg to set * @return this */ @@ -293,8 +293,8 @@ public final class PlayerGetTokenScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; secretKeySeed = other.secretKeySeed; - uid = other.uid; retcode = other.retcode; + uid = other.uid; blackInfo.copyFrom(other.blackInfo); msg.copyFrom(other.msg); } @@ -310,12 +310,12 @@ public final class PlayerGetTokenScRspOuterClass { if (other.hasSecretKeySeed()) { setSecretKeySeed(other.secretKeySeed); } - if (other.hasUid()) { - setUid(other.uid); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasUid()) { + setUid(other.uid); + } if (other.hasBlackInfo()) { getMutableBlackInfo().mergeFrom(other.blackInfo); } @@ -333,8 +333,8 @@ public final class PlayerGetTokenScRspOuterClass { cachedSize = -1; bitField0_ = 0; secretKeySeed = 0L; - uid = 0; retcode = 0; + uid = 0; blackInfo.clear(); msg.clear(); return this; @@ -363,8 +363,8 @@ public final class PlayerGetTokenScRspOuterClass { PlayerGetTokenScRsp other = (PlayerGetTokenScRsp) o; return bitField0_ == other.bitField0_ && (!hasSecretKeySeed() || secretKeySeed == other.secretKeySeed) - && (!hasUid() || uid == other.uid) && (!hasRetcode() || retcode == other.retcode) + && (!hasUid() || uid == other.uid) && (!hasBlackInfo() || blackInfo.equals(other.blackInfo)) && (!hasMsg() || msg.equals(other.msg)); } @@ -372,23 +372,23 @@ public final class PlayerGetTokenScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 64); output.writeUInt64NoTag(secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(uid); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(uid); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 114); output.writeMessageNoTag(blackInfo); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 10); output.writeStringNoTag(msg); } } @@ -400,10 +400,10 @@ public final class PlayerGetTokenScRspOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(blackInfo); @@ -421,43 +421,43 @@ public final class PlayerGetTokenScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 64: { // secretKeySeed secretKeySeed = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 56) { break; } } - case 32: { - // uid - uid = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 56: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 88) { break; } } - case 98: { + case 88: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { // blackInfo input.readMessage(blackInfo); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 26) { + if (tag != 10) { break; } } - case 26: { + case 10: { // msg input.readString(msg); bitField0_ |= 0x00000010; @@ -487,10 +487,10 @@ public final class PlayerGetTokenScRspOuterClass { output.writeUInt64(FieldNames.secretKeySeed, secretKeySeed); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.blackInfo, blackInfo); @@ -520,10 +520,10 @@ public final class PlayerGetTokenScRspOuterClass { } break; } - case 115792: { - if (input.isAtField(FieldNames.uid)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - uid = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -531,10 +531,10 @@ public final class PlayerGetTokenScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -620,10 +620,10 @@ public final class PlayerGetTokenScRspOuterClass { static class FieldNames { static final FieldName secretKeySeed = FieldName.forField("secretKeySeed", "secret_key_seed"); - static final FieldName uid = FieldName.forField("uid"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName uid = FieldName.forField("uid"); + static final FieldName blackInfo = FieldName.forField("blackInfo", "black_info"); static final FieldName msg = FieldName.forField("msg"); diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java index 7dc9fd6..0f00811 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatCsReqOuterClass.java @@ -11,30 +11,30 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class PlayerHeartbeatCsReqOuterClass { +public final class PlayerHeartBeatCsReqOuterClass { /** - * Protobuf type {@code PlayerHeartbeatCsReq} + * Protobuf type {@code PlayerHeartBeatCsReq} */ - public static final class PlayerHeartbeatCsReq extends ProtoMessage implements Cloneable { + public static final class PlayerHeartBeatCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 3; */ private long clientTimeMs; - private PlayerHeartbeatCsReq() { + private PlayerHeartBeatCsReq() { } /** - * @return a new empty instance of {@code PlayerHeartbeatCsReq} + * @return a new empty instance of {@code PlayerHeartBeatCsReq} */ - public static PlayerHeartbeatCsReq newInstance() { - return new PlayerHeartbeatCsReq(); + public static PlayerHeartBeatCsReq newInstance() { + return new PlayerHeartBeatCsReq(); } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 3; * @return whether the clientTimeMs field is set */ public boolean hasClientTimeMs() { @@ -42,17 +42,17 @@ public final class PlayerHeartbeatCsReqOuterClass { } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 3; * @return this */ - public PlayerHeartbeatCsReq clearClientTimeMs() { + public PlayerHeartBeatCsReq clearClientTimeMs() { bitField0_ &= ~0x00000001; clientTimeMs = 0L; return this; } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 3; * @return the clientTimeMs */ public long getClientTimeMs() { @@ -60,18 +60,18 @@ public final class PlayerHeartbeatCsReqOuterClass { } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 3; * @param value the clientTimeMs to set * @return this */ - public PlayerHeartbeatCsReq setClientTimeMs(final long value) { + public PlayerHeartBeatCsReq setClientTimeMs(final long value) { bitField0_ |= 0x00000001; clientTimeMs = value; return this; } @Override - public PlayerHeartbeatCsReq copyFrom(final PlayerHeartbeatCsReq other) { + public PlayerHeartBeatCsReq copyFrom(final PlayerHeartBeatCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -81,7 +81,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } @Override - public PlayerHeartbeatCsReq mergeFrom(final PlayerHeartbeatCsReq other) { + public PlayerHeartBeatCsReq mergeFrom(final PlayerHeartBeatCsReq other) { if (other.isEmpty()) { return this; } @@ -93,7 +93,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } @Override - public PlayerHeartbeatCsReq clear() { + public PlayerHeartBeatCsReq clear() { if (isEmpty()) { return this; } @@ -104,7 +104,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } @Override - public PlayerHeartbeatCsReq clearQuick() { + public PlayerHeartBeatCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,10 +118,10 @@ public final class PlayerHeartbeatCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof PlayerHeartbeatCsReq)) { + if (!(o instanceof PlayerHeartBeatCsReq)) { return false; } - PlayerHeartbeatCsReq other = (PlayerHeartbeatCsReq) o; + PlayerHeartBeatCsReq other = (PlayerHeartBeatCsReq) o; return bitField0_ == other.bitField0_ && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs); } @@ -129,7 +129,7 @@ public final class PlayerHeartbeatCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 24); output.writeUInt64NoTag(clientTimeMs); } } @@ -145,12 +145,12 @@ public final class PlayerHeartbeatCsReqOuterClass { @Override @SuppressWarnings("fallthrough") - public PlayerHeartbeatCsReq mergeFrom(final ProtoSource input) throws IOException { + public PlayerHeartBeatCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 24: { // clientTimeMs clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; @@ -183,7 +183,7 @@ public final class PlayerHeartbeatCsReqOuterClass { } @Override - public PlayerHeartbeatCsReq mergeFrom(final JsonSource input) throws IOException { + public PlayerHeartBeatCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -212,8 +212,8 @@ public final class PlayerHeartbeatCsReqOuterClass { } @Override - public PlayerHeartbeatCsReq clone() { - return new PlayerHeartbeatCsReq().copyFrom(this); + public PlayerHeartBeatCsReq clone() { + return new PlayerHeartBeatCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class PlayerHeartbeatCsReqOuterClass { return ((bitField0_) == 0); } - public static PlayerHeartbeatCsReq parseFrom(final byte[] data) throws + public static PlayerHeartBeatCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PlayerHeartbeatCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new PlayerHeartBeatCsReq(), data).checkInitialized(); } - public static PlayerHeartbeatCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PlayerHeartbeatCsReq(), input).checkInitialized(); + public static PlayerHeartBeatCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartBeatCsReq(), input).checkInitialized(); } - public static PlayerHeartbeatCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PlayerHeartbeatCsReq(), input).checkInitialized(); + public static PlayerHeartBeatCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartBeatCsReq(), input).checkInitialized(); } /** - * @return factory for creating PlayerHeartbeatCsReq messages + * @return factory for creating PlayerHeartBeatCsReq messages */ - public static MessageFactory getFactory() { - return PlayerHeartbeatCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return PlayerHeartBeatCsReqFactory.INSTANCE; } - private enum PlayerHeartbeatCsReqFactory implements MessageFactory { + private enum PlayerHeartBeatCsReqFactory implements MessageFactory { INSTANCE; @Override - public PlayerHeartbeatCsReq create() { - return PlayerHeartbeatCsReq.newInstance(); + public PlayerHeartBeatCsReq create() { + return PlayerHeartBeatCsReq.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java index 8fd36db..67e4691 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerHeartbeatScRspOuterClass.java @@ -11,40 +11,40 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class PlayerHeartbeatScRspOuterClass { +public final class PlayerHeartBeatScRspOuterClass { /** - * Protobuf type {@code PlayerHeartbeatScRsp} + * Protobuf type {@code PlayerHeartBeatScRsp} */ - public static final class PlayerHeartbeatScRsp extends ProtoMessage implements Cloneable { + public static final class PlayerHeartBeatScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 9; */ private long clientTimeMs; /** - * optional uint64 server_time_ms = 12; + * optional uint64 server_time_ms = 14; */ private long serverTimeMs; /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; */ private int retcode; - private PlayerHeartbeatScRsp() { + private PlayerHeartBeatScRsp() { } /** - * @return a new empty instance of {@code PlayerHeartbeatScRsp} + * @return a new empty instance of {@code PlayerHeartBeatScRsp} */ - public static PlayerHeartbeatScRsp newInstance() { - return new PlayerHeartbeatScRsp(); + public static PlayerHeartBeatScRsp newInstance() { + return new PlayerHeartBeatScRsp(); } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 9; * @return whether the clientTimeMs field is set */ public boolean hasClientTimeMs() { @@ -52,17 +52,17 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 9; * @return this */ - public PlayerHeartbeatScRsp clearClientTimeMs() { + public PlayerHeartBeatScRsp clearClientTimeMs() { bitField0_ &= ~0x00000001; clientTimeMs = 0L; return this; } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 9; * @return the clientTimeMs */ public long getClientTimeMs() { @@ -70,18 +70,18 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 client_time_ms = 11; + * optional uint64 client_time_ms = 9; * @param value the clientTimeMs to set * @return this */ - public PlayerHeartbeatScRsp setClientTimeMs(final long value) { + public PlayerHeartBeatScRsp setClientTimeMs(final long value) { bitField0_ |= 0x00000001; clientTimeMs = value; return this; } /** - * optional uint64 server_time_ms = 12; + * optional uint64 server_time_ms = 14; * @return whether the serverTimeMs field is set */ public boolean hasServerTimeMs() { @@ -89,17 +89,17 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 server_time_ms = 12; + * optional uint64 server_time_ms = 14; * @return this */ - public PlayerHeartbeatScRsp clearServerTimeMs() { + public PlayerHeartBeatScRsp clearServerTimeMs() { bitField0_ &= ~0x00000002; serverTimeMs = 0L; return this; } /** - * optional uint64 server_time_ms = 12; + * optional uint64 server_time_ms = 14; * @return the serverTimeMs */ public long getServerTimeMs() { @@ -107,18 +107,18 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint64 server_time_ms = 12; + * optional uint64 server_time_ms = 14; * @param value the serverTimeMs to set * @return this */ - public PlayerHeartbeatScRsp setServerTimeMs(final long value) { + public PlayerHeartBeatScRsp setServerTimeMs(final long value) { bitField0_ |= 0x00000002; serverTimeMs = value; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -126,17 +126,17 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @return this */ - public PlayerHeartbeatScRsp clearRetcode() { + public PlayerHeartBeatScRsp clearRetcode() { bitField0_ &= ~0x00000004; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -144,18 +144,18 @@ public final class PlayerHeartbeatScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ - public PlayerHeartbeatScRsp setRetcode(final int value) { + public PlayerHeartBeatScRsp setRetcode(final int value) { bitField0_ |= 0x00000004; retcode = value; return this; } @Override - public PlayerHeartbeatScRsp copyFrom(final PlayerHeartbeatScRsp other) { + public PlayerHeartBeatScRsp copyFrom(final PlayerHeartBeatScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -167,7 +167,7 @@ public final class PlayerHeartbeatScRspOuterClass { } @Override - public PlayerHeartbeatScRsp mergeFrom(final PlayerHeartbeatScRsp other) { + public PlayerHeartBeatScRsp mergeFrom(final PlayerHeartBeatScRsp other) { if (other.isEmpty()) { return this; } @@ -185,7 +185,7 @@ public final class PlayerHeartbeatScRspOuterClass { } @Override - public PlayerHeartbeatScRsp clear() { + public PlayerHeartBeatScRsp clear() { if (isEmpty()) { return this; } @@ -198,7 +198,7 @@ public final class PlayerHeartbeatScRspOuterClass { } @Override - public PlayerHeartbeatScRsp clearQuick() { + public PlayerHeartBeatScRsp clearQuick() { if (isEmpty()) { return this; } @@ -212,10 +212,10 @@ public final class PlayerHeartbeatScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof PlayerHeartbeatScRsp)) { + if (!(o instanceof PlayerHeartBeatScRsp)) { return false; } - PlayerHeartbeatScRsp other = (PlayerHeartbeatScRsp) o; + PlayerHeartBeatScRsp other = (PlayerHeartBeatScRsp) o; return bitField0_ == other.bitField0_ && (!hasClientTimeMs() || clientTimeMs == other.clientTimeMs) && (!hasServerTimeMs() || serverTimeMs == other.serverTimeMs) @@ -225,15 +225,15 @@ public final class PlayerHeartbeatScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 72); output.writeUInt64NoTag(clientTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 112); output.writeUInt64NoTag(serverTimeMs); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } } @@ -255,30 +255,30 @@ public final class PlayerHeartbeatScRspOuterClass { @Override @SuppressWarnings("fallthrough") - public PlayerHeartbeatScRsp mergeFrom(final ProtoSource input) throws IOException { + public PlayerHeartBeatScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 72: { // clientTimeMs clientTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { + case 112: { // serverTimeMs serverTimeMs = input.readUInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 64) { break; } } - case 104: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000004; @@ -317,7 +317,7 @@ public final class PlayerHeartbeatScRspOuterClass { } @Override - public PlayerHeartbeatScRsp mergeFrom(final JsonSource input) throws IOException { + public PlayerHeartBeatScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -369,8 +369,8 @@ public final class PlayerHeartbeatScRspOuterClass { } @Override - public PlayerHeartbeatScRsp clone() { - return new PlayerHeartbeatScRsp().copyFrom(this); + public PlayerHeartBeatScRsp clone() { + return new PlayerHeartBeatScRsp().copyFrom(this); } @Override @@ -378,32 +378,32 @@ public final class PlayerHeartbeatScRspOuterClass { return ((bitField0_) == 0); } - public static PlayerHeartbeatScRsp parseFrom(final byte[] data) throws + public static PlayerHeartBeatScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PlayerHeartbeatScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new PlayerHeartBeatScRsp(), data).checkInitialized(); } - public static PlayerHeartbeatScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PlayerHeartbeatScRsp(), input).checkInitialized(); + public static PlayerHeartBeatScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartBeatScRsp(), input).checkInitialized(); } - public static PlayerHeartbeatScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PlayerHeartbeatScRsp(), input).checkInitialized(); + public static PlayerHeartBeatScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerHeartBeatScRsp(), input).checkInitialized(); } /** - * @return factory for creating PlayerHeartbeatScRsp messages + * @return factory for creating PlayerHeartBeatScRsp messages */ - public static MessageFactory getFactory() { - return PlayerHeartbeatScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return PlayerHeartBeatScRspFactory.INSTANCE; } - private enum PlayerHeartbeatScRspFactory implements MessageFactory { + private enum PlayerHeartBeatScRspFactory implements MessageFactory { INSTANCE; @Override - public PlayerHeartbeatScRsp create() { - return PlayerHeartbeatScRsp.newInstance(); + public PlayerHeartBeatScRsp create() { + return PlayerHeartBeatScRsp.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java index 8162fc8..cb42ae7 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerLoginScRspOuterClass.java @@ -19,32 +19,32 @@ public final class PlayerLoginScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 login_random = 13; + * optional uint64 login_random = 4; */ private long loginRandom; /** - * optional uint64 server_timestamp_ms = 15; + * optional uint64 server_timestamp_ms = 8; */ private long serverTimestampMs; /** - * optional uint32 stamina = 6; + * optional uint32 stamina = 7; */ private int stamina; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; */ private int retcode; /** - * optional sint32 cur_timezone = 3; + * optional sint32 cur_timezone = 11; */ private int curTimezone; /** - * optional .PlayerBasicInfo basic_info = 5; + * optional .PlayerBasicInfo basic_info = 1; */ private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); @@ -59,7 +59,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 13; + * optional uint64 login_random = 4; * @return whether the loginRandom field is set */ public boolean hasLoginRandom() { @@ -67,7 +67,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 13; + * optional uint64 login_random = 4; * @return this */ public PlayerLoginScRsp clearLoginRandom() { @@ -77,7 +77,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 13; + * optional uint64 login_random = 4; * @return the loginRandom */ public long getLoginRandom() { @@ -85,7 +85,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 login_random = 13; + * optional uint64 login_random = 4; * @param value the loginRandom to set * @return this */ @@ -96,7 +96,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 15; + * optional uint64 server_timestamp_ms = 8; * @return whether the serverTimestampMs field is set */ public boolean hasServerTimestampMs() { @@ -104,7 +104,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 15; + * optional uint64 server_timestamp_ms = 8; * @return this */ public PlayerLoginScRsp clearServerTimestampMs() { @@ -114,7 +114,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 15; + * optional uint64 server_timestamp_ms = 8; * @return the serverTimestampMs */ public long getServerTimestampMs() { @@ -122,7 +122,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint64 server_timestamp_ms = 15; + * optional uint64 server_timestamp_ms = 8; * @param value the serverTimestampMs to set * @return this */ @@ -133,7 +133,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 stamina = 6; + * optional uint32 stamina = 7; * @return whether the stamina field is set */ public boolean hasStamina() { @@ -141,7 +141,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 stamina = 6; + * optional uint32 stamina = 7; * @return this */ public PlayerLoginScRsp clearStamina() { @@ -151,7 +151,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 stamina = 6; + * optional uint32 stamina = 7; * @return the stamina */ public int getStamina() { @@ -159,7 +159,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 stamina = 6; + * optional uint32 stamina = 7; * @param value the stamina to set * @return this */ @@ -170,7 +170,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -178,7 +178,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return this */ public PlayerLoginScRsp clearRetcode() { @@ -188,7 +188,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -196,7 +196,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -207,7 +207,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 3; + * optional sint32 cur_timezone = 11; * @return whether the curTimezone field is set */ public boolean hasCurTimezone() { @@ -215,7 +215,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 3; + * optional sint32 cur_timezone = 11; * @return this */ public PlayerLoginScRsp clearCurTimezone() { @@ -225,7 +225,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 3; + * optional sint32 cur_timezone = 11; * @return the curTimezone */ public int getCurTimezone() { @@ -233,7 +233,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional sint32 cur_timezone = 3; + * optional sint32 cur_timezone = 11; * @param value the curTimezone to set * @return this */ @@ -244,7 +244,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 5; + * optional .PlayerBasicInfo basic_info = 1; * @return whether the basicInfo field is set */ public boolean hasBasicInfo() { @@ -252,7 +252,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 5; + * optional .PlayerBasicInfo basic_info = 1; * @return this */ public PlayerLoginScRsp clearBasicInfo() { @@ -262,7 +262,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 5; + * optional .PlayerBasicInfo basic_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -276,7 +276,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 5; + * optional .PlayerBasicInfo basic_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -290,7 +290,7 @@ public final class PlayerLoginScRspOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 5; + * optional .PlayerBasicInfo basic_info = 1; * @param value the basicInfo to set * @return this */ @@ -390,27 +390,27 @@ public final class PlayerLoginScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 32); output.writeUInt64NoTag(loginRandom); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 64); output.writeUInt64NoTag(serverTimestampMs); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(stamina); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 88); output.writeSInt32NoTag(curTimezone); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 10); output.writeMessageNoTag(basicInfo); } } @@ -446,52 +446,52 @@ public final class PlayerLoginScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 32: { // loginRandom loginRandom = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 64) { break; } } - case 120: { + case 64: { // serverTimestampMs serverTimestampMs = input.readUInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // stamina - stamina = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 56) { break; } } case 56: { + // stamina + stamina = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 24) { + if (tag != 88) { break; } } - case 24: { + case 88: { // curTimezone curTimezone = input.readSInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 42) { + if (tag != 10) { break; } } - case 42: { + case 10: { // basicInfo input.readMessage(basicInfo); bitField0_ |= 0x00000020; diff --git a/src/generated/main/emu/lunarcore/proto/PlayerMocDisplayInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerMocDisplayInfoOuterClass.java new file mode 100644 index 0000000..3ad4380 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PlayerMocDisplayInfoOuterClass.java @@ -0,0 +1,582 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class PlayerMocDisplayInfoOuterClass { + /** + * Protobuf type {@code PlayerMocDisplayInfo} + */ + public static final class PlayerMocDisplayInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 int1 = 1; + */ + private int int1; + + /** + * optional uint32 int3 = 3; + */ + private int int3; + + /** + * optional uint32 star_count = 6; + */ + private int starCount; + + /** + * optional uint32 floor_num = 14; + */ + private int floorNum; + + /** + * optional uint32 season_id = 15; + */ + private int seasonId; + + private PlayerMocDisplayInfo() { + } + + /** + * @return a new empty instance of {@code PlayerMocDisplayInfo} + */ + public static PlayerMocDisplayInfo newInstance() { + return new PlayerMocDisplayInfo(); + } + + /** + * optional uint32 int1 = 1; + * @return whether the int1 field is set + */ + public boolean hasInt1() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 int1 = 1; + * @return this + */ + public PlayerMocDisplayInfo clearInt1() { + bitField0_ &= ~0x00000001; + int1 = 0; + return this; + } + + /** + * optional uint32 int1 = 1; + * @return the int1 + */ + public int getInt1() { + return int1; + } + + /** + * optional uint32 int1 = 1; + * @param value the int1 to set + * @return this + */ + public PlayerMocDisplayInfo setInt1(final int value) { + bitField0_ |= 0x00000001; + int1 = value; + return this; + } + + /** + * optional uint32 int3 = 3; + * @return whether the int3 field is set + */ + public boolean hasInt3() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 int3 = 3; + * @return this + */ + public PlayerMocDisplayInfo clearInt3() { + bitField0_ &= ~0x00000002; + int3 = 0; + return this; + } + + /** + * optional uint32 int3 = 3; + * @return the int3 + */ + public int getInt3() { + return int3; + } + + /** + * optional uint32 int3 = 3; + * @param value the int3 to set + * @return this + */ + public PlayerMocDisplayInfo setInt3(final int value) { + bitField0_ |= 0x00000002; + int3 = value; + return this; + } + + /** + * optional uint32 star_count = 6; + * @return whether the starCount field is set + */ + public boolean hasStarCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 star_count = 6; + * @return this + */ + public PlayerMocDisplayInfo clearStarCount() { + bitField0_ &= ~0x00000004; + starCount = 0; + return this; + } + + /** + * optional uint32 star_count = 6; + * @return the starCount + */ + public int getStarCount() { + return starCount; + } + + /** + * optional uint32 star_count = 6; + * @param value the starCount to set + * @return this + */ + public PlayerMocDisplayInfo setStarCount(final int value) { + bitField0_ |= 0x00000004; + starCount = value; + return this; + } + + /** + * optional uint32 floor_num = 14; + * @return whether the floorNum field is set + */ + public boolean hasFloorNum() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 floor_num = 14; + * @return this + */ + public PlayerMocDisplayInfo clearFloorNum() { + bitField0_ &= ~0x00000008; + floorNum = 0; + return this; + } + + /** + * optional uint32 floor_num = 14; + * @return the floorNum + */ + public int getFloorNum() { + return floorNum; + } + + /** + * optional uint32 floor_num = 14; + * @param value the floorNum to set + * @return this + */ + public PlayerMocDisplayInfo setFloorNum(final int value) { + bitField0_ |= 0x00000008; + floorNum = value; + return this; + } + + /** + * optional uint32 season_id = 15; + * @return whether the seasonId field is set + */ + public boolean hasSeasonId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 season_id = 15; + * @return this + */ + public PlayerMocDisplayInfo clearSeasonId() { + bitField0_ &= ~0x00000010; + seasonId = 0; + return this; + } + + /** + * optional uint32 season_id = 15; + * @return the seasonId + */ + public int getSeasonId() { + return seasonId; + } + + /** + * optional uint32 season_id = 15; + * @param value the seasonId to set + * @return this + */ + public PlayerMocDisplayInfo setSeasonId(final int value) { + bitField0_ |= 0x00000010; + seasonId = value; + return this; + } + + @Override + public PlayerMocDisplayInfo copyFrom(final PlayerMocDisplayInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + int1 = other.int1; + int3 = other.int3; + starCount = other.starCount; + floorNum = other.floorNum; + seasonId = other.seasonId; + } + return this; + } + + @Override + public PlayerMocDisplayInfo mergeFrom(final PlayerMocDisplayInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasInt1()) { + setInt1(other.int1); + } + if (other.hasInt3()) { + setInt3(other.int3); + } + if (other.hasStarCount()) { + setStarCount(other.starCount); + } + if (other.hasFloorNum()) { + setFloorNum(other.floorNum); + } + if (other.hasSeasonId()) { + setSeasonId(other.seasonId); + } + return this; + } + + @Override + public PlayerMocDisplayInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + int1 = 0; + int3 = 0; + starCount = 0; + floorNum = 0; + seasonId = 0; + return this; + } + + @Override + public PlayerMocDisplayInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PlayerMocDisplayInfo)) { + return false; + } + PlayerMocDisplayInfo other = (PlayerMocDisplayInfo) o; + return bitField0_ == other.bitField0_ + && (!hasInt1() || int1 == other.int1) + && (!hasInt3() || int3 == other.int3) + && (!hasStarCount() || starCount == other.starCount) + && (!hasFloorNum() || floorNum == other.floorNum) + && (!hasSeasonId() || seasonId == other.seasonId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(int1); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(int3); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(starCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(floorNum); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(seasonId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(int1); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(int3); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorNum); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PlayerMocDisplayInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // int1 + int1 = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // int3 + int3 = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // starCount + starCount = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // floorNum + floorNum = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // seasonId + seasonId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.int1, int1); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.int3, int3); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.starCount, starCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.floorNum, floorNum); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.seasonId, seasonId); + } + output.endObject(); + } + + @Override + public PlayerMocDisplayInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3237410: { + if (input.isAtField(FieldNames.int1)) { + if (!input.trySkipNullValue()) { + int1 = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3237412: { + if (input.isAtField(FieldNames.int3)) { + if (!input.trySkipNullValue()) { + int3 = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2121235933: + case 2124166370: { + if (input.isAtField(FieldNames.starCount)) { + if (!input.trySkipNullValue()) { + starCount = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2022966234: + case -1712056109: { + if (input.isAtField(FieldNames.floorNum)) { + if (!input.trySkipNullValue()) { + floorNum = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 889931614: + case 1818097655: { + if (input.isAtField(FieldNames.seasonId)) { + if (!input.trySkipNullValue()) { + seasonId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PlayerMocDisplayInfo clone() { + return new PlayerMocDisplayInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PlayerMocDisplayInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerMocDisplayInfo(), data).checkInitialized(); + } + + public static PlayerMocDisplayInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerMocDisplayInfo(), input).checkInitialized(); + } + + public static PlayerMocDisplayInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerMocDisplayInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PlayerMocDisplayInfo messages + */ + public static MessageFactory getFactory() { + return PlayerMocDisplayInfoFactory.INSTANCE; + } + + private enum PlayerMocDisplayInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PlayerMocDisplayInfo create() { + return PlayerMocDisplayInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName int1 = FieldName.forField("int1"); + + static final FieldName int3 = FieldName.forField("int3"); + + static final FieldName starCount = FieldName.forField("starCount", "star_count"); + + static final FieldName floorNum = FieldName.forField("floorNum", "floor_num"); + + static final FieldName seasonId = FieldName.forField("seasonId", "season_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerOutfitInfoOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/PlayerOutfitInfoOuterClass.java index 5f128a7..fb76833 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerOutfitInfoOuterClass.java @@ -12,62 +12,62 @@ import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedInt; -public final class RogueBonusSelectInfoOuterClass { +public final class PlayerOutfitInfoOuterClass { /** - * Protobuf type {@code RogueBonusSelectInfo} + * Protobuf type {@code PlayerOutfitInfo} */ - public static final class RogueBonusSelectInfo extends ProtoMessage implements Cloneable { + public static final class PlayerOutfitInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 bonus_info = 4; + * repeated uint32 outfit_id_list = 1; */ - private final RepeatedInt bonusInfo = RepeatedInt.newEmptyInstance(); + private final RepeatedInt outfitIdList = RepeatedInt.newEmptyInstance(); - private RogueBonusSelectInfo() { + private PlayerOutfitInfo() { } /** - * @return a new empty instance of {@code RogueBonusSelectInfo} + * @return a new empty instance of {@code PlayerOutfitInfo} */ - public static RogueBonusSelectInfo newInstance() { - return new RogueBonusSelectInfo(); + public static PlayerOutfitInfo newInstance() { + return new PlayerOutfitInfo(); } /** - * repeated uint32 bonus_info = 4; - * @return whether the bonusInfo field is set + * repeated uint32 outfit_id_list = 1; + * @return whether the outfitIdList field is set */ - public boolean hasBonusInfo() { + public boolean hasOutfitIdList() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated uint32 bonus_info = 4; + * repeated uint32 outfit_id_list = 1; * @return this */ - public RogueBonusSelectInfo clearBonusInfo() { + public PlayerOutfitInfo clearOutfitIdList() { bitField0_ &= ~0x00000001; - bonusInfo.clear(); + outfitIdList.clear(); return this; } /** - * repeated uint32 bonus_info = 4; + * repeated uint32 outfit_id_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBonusInfo()} if you want to modify it. + * Use {@link #getMutableOutfitIdList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getBonusInfo() { - return bonusInfo; + public RepeatedInt getOutfitIdList() { + return outfitIdList; } /** - * repeated uint32 bonus_info = 4; + * repeated uint32 outfit_id_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -75,74 +75,74 @@ public final class RogueBonusSelectInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableBonusInfo() { + public RepeatedInt getMutableOutfitIdList() { bitField0_ |= 0x00000001; - return bonusInfo; + return outfitIdList; } /** - * repeated uint32 bonus_info = 4; - * @param value the bonusInfo to add + * repeated uint32 outfit_id_list = 1; + * @param value the outfitIdList to add * @return this */ - public RogueBonusSelectInfo addBonusInfo(final int value) { + public PlayerOutfitInfo addOutfitIdList(final int value) { bitField0_ |= 0x00000001; - bonusInfo.add(value); + outfitIdList.add(value); return this; } /** - * repeated uint32 bonus_info = 4; - * @param values the bonusInfo to add + * repeated uint32 outfit_id_list = 1; + * @param values the outfitIdList to add * @return this */ - public RogueBonusSelectInfo addAllBonusInfo(final int... values) { + public PlayerOutfitInfo addAllOutfitIdList(final int... values) { bitField0_ |= 0x00000001; - bonusInfo.addAll(values); + outfitIdList.addAll(values); return this; } @Override - public RogueBonusSelectInfo copyFrom(final RogueBonusSelectInfo other) { + public PlayerOutfitInfo copyFrom(final PlayerOutfitInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - bonusInfo.copyFrom(other.bonusInfo); + outfitIdList.copyFrom(other.outfitIdList); } return this; } @Override - public RogueBonusSelectInfo mergeFrom(final RogueBonusSelectInfo other) { + public PlayerOutfitInfo mergeFrom(final PlayerOutfitInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBonusInfo()) { - getMutableBonusInfo().addAll(other.bonusInfo); + if (other.hasOutfitIdList()) { + getMutableOutfitIdList().addAll(other.outfitIdList); } return this; } @Override - public RogueBonusSelectInfo clear() { + public PlayerOutfitInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - bonusInfo.clear(); + outfitIdList.clear(); return this; } @Override - public RogueBonusSelectInfo clearQuick() { + public PlayerOutfitInfo clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - bonusInfo.clear(); + outfitIdList.clear(); return this; } @@ -151,20 +151,20 @@ public final class RogueBonusSelectInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueBonusSelectInfo)) { + if (!(o instanceof PlayerOutfitInfo)) { return false; } - RogueBonusSelectInfo other = (RogueBonusSelectInfo) o; + PlayerOutfitInfo other = (PlayerOutfitInfo) o; return bitField0_ == other.bitField0_ - && (!hasBonusInfo() || bonusInfo.equals(other.bonusInfo)); + && (!hasOutfitIdList() || outfitIdList.equals(other.outfitIdList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < bonusInfo.length(); i++) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(bonusInfo.array()[i]); + for (int i = 0; i < outfitIdList.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(outfitIdList.array()[i]); } } } @@ -173,21 +173,21 @@ public final class RogueBonusSelectInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += (1 * bonusInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(bonusInfo); + size += (1 * outfitIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(outfitIdList); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueBonusSelectInfo mergeFrom(final ProtoSource input) throws IOException { + public PlayerOutfitInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 34: { - // bonusInfo [packed=true] - input.readPackedUInt32(bonusInfo, tag); + case 10: { + // outfitIdList [packed=true] + input.readPackedUInt32(outfitIdList, tag); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -204,9 +204,9 @@ public final class RogueBonusSelectInfoOuterClass { tag = input.readTag(); break; } - case 32: { - // bonusInfo [packed=false] - tag = input.readRepeatedUInt32(bonusInfo, tag); + case 8: { + // outfitIdList [packed=false] + tag = input.readRepeatedUInt32(outfitIdList, tag); bitField0_ |= 0x00000001; break; } @@ -218,23 +218,23 @@ public final class RogueBonusSelectInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.bonusInfo, bonusInfo); + output.writeRepeatedUInt32(FieldNames.outfitIdList, outfitIdList); } output.endObject(); } @Override - public RogueBonusSelectInfo mergeFrom(final JsonSource input) throws IOException { + public PlayerOutfitInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1440797037: - case 1735211214: { - if (input.isAtField(FieldNames.bonusInfo)) { + case 1023228988: + case 282868486: { + if (input.isAtField(FieldNames.outfitIdList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(bonusInfo); + input.readRepeatedUInt32(outfitIdList); bitField0_ |= 0x00000001; } } else { @@ -253,8 +253,8 @@ public final class RogueBonusSelectInfoOuterClass { } @Override - public RogueBonusSelectInfo clone() { - return new RogueBonusSelectInfo().copyFrom(this); + public PlayerOutfitInfo clone() { + return new PlayerOutfitInfo().copyFrom(this); } @Override @@ -262,32 +262,32 @@ public final class RogueBonusSelectInfoOuterClass { return ((bitField0_) == 0); } - public static RogueBonusSelectInfo parseFrom(final byte[] data) throws + public static PlayerOutfitInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBonusSelectInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new PlayerOutfitInfo(), data).checkInitialized(); } - public static RogueBonusSelectInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBonusSelectInfo(), input).checkInitialized(); + public static PlayerOutfitInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerOutfitInfo(), input).checkInitialized(); } - public static RogueBonusSelectInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBonusSelectInfo(), input).checkInitialized(); + public static PlayerOutfitInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerOutfitInfo(), input).checkInitialized(); } /** - * @return factory for creating RogueBonusSelectInfo messages + * @return factory for creating PlayerOutfitInfo messages */ - public static MessageFactory getFactory() { - return RogueBonusSelectInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return PlayerOutfitInfoFactory.INSTANCE; } - private enum RogueBonusSelectInfoFactory implements MessageFactory { + private enum PlayerOutfitInfoFactory implements MessageFactory { INSTANCE; @Override - public RogueBonusSelectInfo create() { - return RogueBonusSelectInfo.newInstance(); + public PlayerOutfitInfo create() { + return PlayerOutfitInfo.newInstance(); } } @@ -295,7 +295,7 @@ public final class RogueBonusSelectInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName bonusInfo = FieldName.forField("bonusInfo", "bonus_info"); + static final FieldName outfitIdList = FieldName.forField("outfitIdList", "outfit_id_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerRecordInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerRecordInfoOuterClass.java index d78e3f6..6b77e3b 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerRecordInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerRecordInfoOuterClass.java @@ -19,47 +19,47 @@ public final class PlayerRecordInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 CPIKKMDOKHA = 3; + * optional uint32 MMFGIPPNEEF = 3; */ - private int cPIKKMDOKHA; + private int mMFGIPPNEEF; /** - * optional uint32 MGDIMDLPOGA = 4; + * optional uint32 LCEEKBAJPHA = 4; */ - private int mGDIMDLPOGA; + private int lCEEKBAJPHA; /** - * optional uint32 DKPLJPHGDMB = 7; + * optional uint32 KEBOJOIBOKE = 6; */ - private int dKPLJPHGDMB; + private int kEBOJOIBOKE; /** - * optional uint32 INMEAGINKPN = 8; + * optional uint32 LBKCIEBGMAJ = 9; */ - private int iNMEAGINKPN; + private int lBKCIEBGMAJ; /** - * optional uint32 BIOJHIBFELK = 10; + * optional uint32 GPJGLLANPIF = 11; */ - private int bIOJHIBFELK; + private int gPJGLLANPIF; /** - * optional uint32 MFMOAJONBBF = 12; + * optional uint32 KHDJDCELNPF = 12; */ - private int mFMOAJONBBF; + private int kHDJDCELNPF; /** - * optional uint32 HNICFKBEKJO = 14; + * optional uint32 MIMIPDMIPNO = 13; */ - private int hNICFKBEKJO; + private int mIMIPDMIPNO; /** - * optional uint32 OOIOMMKOIAE = 15; + * optional uint32 MPNIKBAFPEM = 14; */ - private int oOIOMMKOIAE; + private int mPNIKBAFPEM; /** - * optional .PlayerCollectionInfo collection_info = 2; + * optional .PlayerCollectionInfo collection_info = 10; */ private final PlayerCollectionInfoOuterClass.PlayerCollectionInfo collectionInfo = PlayerCollectionInfoOuterClass.PlayerCollectionInfo.newInstance(); @@ -74,303 +74,303 @@ public final class PlayerRecordInfoOuterClass { } /** - * optional uint32 CPIKKMDOKHA = 3; - * @return whether the cPIKKMDOKHA field is set + * optional uint32 MMFGIPPNEEF = 3; + * @return whether the mMFGIPPNEEF field is set */ - public boolean hasCPIKKMDOKHA() { + public boolean hasMMFGIPPNEEF() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 CPIKKMDOKHA = 3; + * optional uint32 MMFGIPPNEEF = 3; * @return this */ - public PlayerRecordInfo clearCPIKKMDOKHA() { + public PlayerRecordInfo clearMMFGIPPNEEF() { bitField0_ &= ~0x00000001; - cPIKKMDOKHA = 0; + mMFGIPPNEEF = 0; return this; } /** - * optional uint32 CPIKKMDOKHA = 3; - * @return the cPIKKMDOKHA + * optional uint32 MMFGIPPNEEF = 3; + * @return the mMFGIPPNEEF */ - public int getCPIKKMDOKHA() { - return cPIKKMDOKHA; + public int getMMFGIPPNEEF() { + return mMFGIPPNEEF; } /** - * optional uint32 CPIKKMDOKHA = 3; - * @param value the cPIKKMDOKHA to set + * optional uint32 MMFGIPPNEEF = 3; + * @param value the mMFGIPPNEEF to set * @return this */ - public PlayerRecordInfo setCPIKKMDOKHA(final int value) { + public PlayerRecordInfo setMMFGIPPNEEF(final int value) { bitField0_ |= 0x00000001; - cPIKKMDOKHA = value; + mMFGIPPNEEF = value; return this; } /** - * optional uint32 MGDIMDLPOGA = 4; - * @return whether the mGDIMDLPOGA field is set + * optional uint32 LCEEKBAJPHA = 4; + * @return whether the lCEEKBAJPHA field is set */ - public boolean hasMGDIMDLPOGA() { + public boolean hasLCEEKBAJPHA() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 MGDIMDLPOGA = 4; + * optional uint32 LCEEKBAJPHA = 4; * @return this */ - public PlayerRecordInfo clearMGDIMDLPOGA() { + public PlayerRecordInfo clearLCEEKBAJPHA() { bitField0_ &= ~0x00000002; - mGDIMDLPOGA = 0; + lCEEKBAJPHA = 0; return this; } /** - * optional uint32 MGDIMDLPOGA = 4; - * @return the mGDIMDLPOGA + * optional uint32 LCEEKBAJPHA = 4; + * @return the lCEEKBAJPHA */ - public int getMGDIMDLPOGA() { - return mGDIMDLPOGA; + public int getLCEEKBAJPHA() { + return lCEEKBAJPHA; } /** - * optional uint32 MGDIMDLPOGA = 4; - * @param value the mGDIMDLPOGA to set + * optional uint32 LCEEKBAJPHA = 4; + * @param value the lCEEKBAJPHA to set * @return this */ - public PlayerRecordInfo setMGDIMDLPOGA(final int value) { + public PlayerRecordInfo setLCEEKBAJPHA(final int value) { bitField0_ |= 0x00000002; - mGDIMDLPOGA = value; + lCEEKBAJPHA = value; return this; } /** - * optional uint32 DKPLJPHGDMB = 7; - * @return whether the dKPLJPHGDMB field is set + * optional uint32 KEBOJOIBOKE = 6; + * @return whether the kEBOJOIBOKE field is set */ - public boolean hasDKPLJPHGDMB() { + public boolean hasKEBOJOIBOKE() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 DKPLJPHGDMB = 7; + * optional uint32 KEBOJOIBOKE = 6; * @return this */ - public PlayerRecordInfo clearDKPLJPHGDMB() { + public PlayerRecordInfo clearKEBOJOIBOKE() { bitField0_ &= ~0x00000004; - dKPLJPHGDMB = 0; + kEBOJOIBOKE = 0; return this; } /** - * optional uint32 DKPLJPHGDMB = 7; - * @return the dKPLJPHGDMB + * optional uint32 KEBOJOIBOKE = 6; + * @return the kEBOJOIBOKE */ - public int getDKPLJPHGDMB() { - return dKPLJPHGDMB; + public int getKEBOJOIBOKE() { + return kEBOJOIBOKE; } /** - * optional uint32 DKPLJPHGDMB = 7; - * @param value the dKPLJPHGDMB to set + * optional uint32 KEBOJOIBOKE = 6; + * @param value the kEBOJOIBOKE to set * @return this */ - public PlayerRecordInfo setDKPLJPHGDMB(final int value) { + public PlayerRecordInfo setKEBOJOIBOKE(final int value) { bitField0_ |= 0x00000004; - dKPLJPHGDMB = value; + kEBOJOIBOKE = value; return this; } /** - * optional uint32 INMEAGINKPN = 8; - * @return whether the iNMEAGINKPN field is set + * optional uint32 LBKCIEBGMAJ = 9; + * @return whether the lBKCIEBGMAJ field is set */ - public boolean hasINMEAGINKPN() { + public boolean hasLBKCIEBGMAJ() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 INMEAGINKPN = 8; + * optional uint32 LBKCIEBGMAJ = 9; * @return this */ - public PlayerRecordInfo clearINMEAGINKPN() { + public PlayerRecordInfo clearLBKCIEBGMAJ() { bitField0_ &= ~0x00000008; - iNMEAGINKPN = 0; + lBKCIEBGMAJ = 0; return this; } /** - * optional uint32 INMEAGINKPN = 8; - * @return the iNMEAGINKPN + * optional uint32 LBKCIEBGMAJ = 9; + * @return the lBKCIEBGMAJ */ - public int getINMEAGINKPN() { - return iNMEAGINKPN; + public int getLBKCIEBGMAJ() { + return lBKCIEBGMAJ; } /** - * optional uint32 INMEAGINKPN = 8; - * @param value the iNMEAGINKPN to set + * optional uint32 LBKCIEBGMAJ = 9; + * @param value the lBKCIEBGMAJ to set * @return this */ - public PlayerRecordInfo setINMEAGINKPN(final int value) { + public PlayerRecordInfo setLBKCIEBGMAJ(final int value) { bitField0_ |= 0x00000008; - iNMEAGINKPN = value; + lBKCIEBGMAJ = value; return this; } /** - * optional uint32 BIOJHIBFELK = 10; - * @return whether the bIOJHIBFELK field is set + * optional uint32 GPJGLLANPIF = 11; + * @return whether the gPJGLLANPIF field is set */ - public boolean hasBIOJHIBFELK() { + public boolean hasGPJGLLANPIF() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 BIOJHIBFELK = 10; + * optional uint32 GPJGLLANPIF = 11; * @return this */ - public PlayerRecordInfo clearBIOJHIBFELK() { + public PlayerRecordInfo clearGPJGLLANPIF() { bitField0_ &= ~0x00000010; - bIOJHIBFELK = 0; + gPJGLLANPIF = 0; return this; } /** - * optional uint32 BIOJHIBFELK = 10; - * @return the bIOJHIBFELK + * optional uint32 GPJGLLANPIF = 11; + * @return the gPJGLLANPIF */ - public int getBIOJHIBFELK() { - return bIOJHIBFELK; + public int getGPJGLLANPIF() { + return gPJGLLANPIF; } /** - * optional uint32 BIOJHIBFELK = 10; - * @param value the bIOJHIBFELK to set + * optional uint32 GPJGLLANPIF = 11; + * @param value the gPJGLLANPIF to set * @return this */ - public PlayerRecordInfo setBIOJHIBFELK(final int value) { + public PlayerRecordInfo setGPJGLLANPIF(final int value) { bitField0_ |= 0x00000010; - bIOJHIBFELK = value; + gPJGLLANPIF = value; return this; } /** - * optional uint32 MFMOAJONBBF = 12; - * @return whether the mFMOAJONBBF field is set + * optional uint32 KHDJDCELNPF = 12; + * @return whether the kHDJDCELNPF field is set */ - public boolean hasMFMOAJONBBF() { + public boolean hasKHDJDCELNPF() { return (bitField0_ & 0x00000020) != 0; } /** - * optional uint32 MFMOAJONBBF = 12; + * optional uint32 KHDJDCELNPF = 12; * @return this */ - public PlayerRecordInfo clearMFMOAJONBBF() { + public PlayerRecordInfo clearKHDJDCELNPF() { bitField0_ &= ~0x00000020; - mFMOAJONBBF = 0; + kHDJDCELNPF = 0; return this; } /** - * optional uint32 MFMOAJONBBF = 12; - * @return the mFMOAJONBBF + * optional uint32 KHDJDCELNPF = 12; + * @return the kHDJDCELNPF */ - public int getMFMOAJONBBF() { - return mFMOAJONBBF; + public int getKHDJDCELNPF() { + return kHDJDCELNPF; } /** - * optional uint32 MFMOAJONBBF = 12; - * @param value the mFMOAJONBBF to set + * optional uint32 KHDJDCELNPF = 12; + * @param value the kHDJDCELNPF to set * @return this */ - public PlayerRecordInfo setMFMOAJONBBF(final int value) { + public PlayerRecordInfo setKHDJDCELNPF(final int value) { bitField0_ |= 0x00000020; - mFMOAJONBBF = value; + kHDJDCELNPF = value; return this; } /** - * optional uint32 HNICFKBEKJO = 14; - * @return whether the hNICFKBEKJO field is set + * optional uint32 MIMIPDMIPNO = 13; + * @return whether the mIMIPDMIPNO field is set */ - public boolean hasHNICFKBEKJO() { + public boolean hasMIMIPDMIPNO() { return (bitField0_ & 0x00000040) != 0; } /** - * optional uint32 HNICFKBEKJO = 14; + * optional uint32 MIMIPDMIPNO = 13; * @return this */ - public PlayerRecordInfo clearHNICFKBEKJO() { + public PlayerRecordInfo clearMIMIPDMIPNO() { bitField0_ &= ~0x00000040; - hNICFKBEKJO = 0; + mIMIPDMIPNO = 0; return this; } /** - * optional uint32 HNICFKBEKJO = 14; - * @return the hNICFKBEKJO + * optional uint32 MIMIPDMIPNO = 13; + * @return the mIMIPDMIPNO */ - public int getHNICFKBEKJO() { - return hNICFKBEKJO; + public int getMIMIPDMIPNO() { + return mIMIPDMIPNO; } /** - * optional uint32 HNICFKBEKJO = 14; - * @param value the hNICFKBEKJO to set + * optional uint32 MIMIPDMIPNO = 13; + * @param value the mIMIPDMIPNO to set * @return this */ - public PlayerRecordInfo setHNICFKBEKJO(final int value) { + public PlayerRecordInfo setMIMIPDMIPNO(final int value) { bitField0_ |= 0x00000040; - hNICFKBEKJO = value; + mIMIPDMIPNO = value; return this; } /** - * optional uint32 OOIOMMKOIAE = 15; - * @return whether the oOIOMMKOIAE field is set + * optional uint32 MPNIKBAFPEM = 14; + * @return whether the mPNIKBAFPEM field is set */ - public boolean hasOOIOMMKOIAE() { + public boolean hasMPNIKBAFPEM() { return (bitField0_ & 0x00000080) != 0; } /** - * optional uint32 OOIOMMKOIAE = 15; + * optional uint32 MPNIKBAFPEM = 14; * @return this */ - public PlayerRecordInfo clearOOIOMMKOIAE() { + public PlayerRecordInfo clearMPNIKBAFPEM() { bitField0_ &= ~0x00000080; - oOIOMMKOIAE = 0; + mPNIKBAFPEM = 0; return this; } /** - * optional uint32 OOIOMMKOIAE = 15; - * @return the oOIOMMKOIAE + * optional uint32 MPNIKBAFPEM = 14; + * @return the mPNIKBAFPEM */ - public int getOOIOMMKOIAE() { - return oOIOMMKOIAE; + public int getMPNIKBAFPEM() { + return mPNIKBAFPEM; } /** - * optional uint32 OOIOMMKOIAE = 15; - * @param value the oOIOMMKOIAE to set + * optional uint32 MPNIKBAFPEM = 14; + * @param value the mPNIKBAFPEM to set * @return this */ - public PlayerRecordInfo setOOIOMMKOIAE(final int value) { + public PlayerRecordInfo setMPNIKBAFPEM(final int value) { bitField0_ |= 0x00000080; - oOIOMMKOIAE = value; + mPNIKBAFPEM = value; return this; } /** - * optional .PlayerCollectionInfo collection_info = 2; + * optional .PlayerCollectionInfo collection_info = 10; * @return whether the collectionInfo field is set */ public boolean hasCollectionInfo() { @@ -378,7 +378,7 @@ public final class PlayerRecordInfoOuterClass { } /** - * optional .PlayerCollectionInfo collection_info = 2; + * optional .PlayerCollectionInfo collection_info = 10; * @return this */ public PlayerRecordInfo clearCollectionInfo() { @@ -388,7 +388,7 @@ public final class PlayerRecordInfoOuterClass { } /** - * optional .PlayerCollectionInfo collection_info = 2; + * optional .PlayerCollectionInfo collection_info = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -402,7 +402,7 @@ public final class PlayerRecordInfoOuterClass { } /** - * optional .PlayerCollectionInfo collection_info = 2; + * optional .PlayerCollectionInfo collection_info = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -416,7 +416,7 @@ public final class PlayerRecordInfoOuterClass { } /** - * optional .PlayerCollectionInfo collection_info = 2; + * optional .PlayerCollectionInfo collection_info = 10; * @param value the collectionInfo to set * @return this */ @@ -432,14 +432,14 @@ public final class PlayerRecordInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - cPIKKMDOKHA = other.cPIKKMDOKHA; - mGDIMDLPOGA = other.mGDIMDLPOGA; - dKPLJPHGDMB = other.dKPLJPHGDMB; - iNMEAGINKPN = other.iNMEAGINKPN; - bIOJHIBFELK = other.bIOJHIBFELK; - mFMOAJONBBF = other.mFMOAJONBBF; - hNICFKBEKJO = other.hNICFKBEKJO; - oOIOMMKOIAE = other.oOIOMMKOIAE; + mMFGIPPNEEF = other.mMFGIPPNEEF; + lCEEKBAJPHA = other.lCEEKBAJPHA; + kEBOJOIBOKE = other.kEBOJOIBOKE; + lBKCIEBGMAJ = other.lBKCIEBGMAJ; + gPJGLLANPIF = other.gPJGLLANPIF; + kHDJDCELNPF = other.kHDJDCELNPF; + mIMIPDMIPNO = other.mIMIPDMIPNO; + mPNIKBAFPEM = other.mPNIKBAFPEM; collectionInfo.copyFrom(other.collectionInfo); } return this; @@ -451,29 +451,29 @@ public final class PlayerRecordInfoOuterClass { return this; } cachedSize = -1; - if (other.hasCPIKKMDOKHA()) { - setCPIKKMDOKHA(other.cPIKKMDOKHA); + if (other.hasMMFGIPPNEEF()) { + setMMFGIPPNEEF(other.mMFGIPPNEEF); } - if (other.hasMGDIMDLPOGA()) { - setMGDIMDLPOGA(other.mGDIMDLPOGA); + if (other.hasLCEEKBAJPHA()) { + setLCEEKBAJPHA(other.lCEEKBAJPHA); } - if (other.hasDKPLJPHGDMB()) { - setDKPLJPHGDMB(other.dKPLJPHGDMB); + if (other.hasKEBOJOIBOKE()) { + setKEBOJOIBOKE(other.kEBOJOIBOKE); } - if (other.hasINMEAGINKPN()) { - setINMEAGINKPN(other.iNMEAGINKPN); + if (other.hasLBKCIEBGMAJ()) { + setLBKCIEBGMAJ(other.lBKCIEBGMAJ); } - if (other.hasBIOJHIBFELK()) { - setBIOJHIBFELK(other.bIOJHIBFELK); + if (other.hasGPJGLLANPIF()) { + setGPJGLLANPIF(other.gPJGLLANPIF); } - if (other.hasMFMOAJONBBF()) { - setMFMOAJONBBF(other.mFMOAJONBBF); + if (other.hasKHDJDCELNPF()) { + setKHDJDCELNPF(other.kHDJDCELNPF); } - if (other.hasHNICFKBEKJO()) { - setHNICFKBEKJO(other.hNICFKBEKJO); + if (other.hasMIMIPDMIPNO()) { + setMIMIPDMIPNO(other.mIMIPDMIPNO); } - if (other.hasOOIOMMKOIAE()) { - setOOIOMMKOIAE(other.oOIOMMKOIAE); + if (other.hasMPNIKBAFPEM()) { + setMPNIKBAFPEM(other.mPNIKBAFPEM); } if (other.hasCollectionInfo()) { getMutableCollectionInfo().mergeFrom(other.collectionInfo); @@ -488,14 +488,14 @@ public final class PlayerRecordInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - cPIKKMDOKHA = 0; - mGDIMDLPOGA = 0; - dKPLJPHGDMB = 0; - iNMEAGINKPN = 0; - bIOJHIBFELK = 0; - mFMOAJONBBF = 0; - hNICFKBEKJO = 0; - oOIOMMKOIAE = 0; + mMFGIPPNEEF = 0; + lCEEKBAJPHA = 0; + kEBOJOIBOKE = 0; + lBKCIEBGMAJ = 0; + gPJGLLANPIF = 0; + kHDJDCELNPF = 0; + mIMIPDMIPNO = 0; + mPNIKBAFPEM = 0; collectionInfo.clear(); return this; } @@ -521,14 +521,14 @@ public final class PlayerRecordInfoOuterClass { } PlayerRecordInfo other = (PlayerRecordInfo) o; return bitField0_ == other.bitField0_ - && (!hasCPIKKMDOKHA() || cPIKKMDOKHA == other.cPIKKMDOKHA) - && (!hasMGDIMDLPOGA() || mGDIMDLPOGA == other.mGDIMDLPOGA) - && (!hasDKPLJPHGDMB() || dKPLJPHGDMB == other.dKPLJPHGDMB) - && (!hasINMEAGINKPN() || iNMEAGINKPN == other.iNMEAGINKPN) - && (!hasBIOJHIBFELK() || bIOJHIBFELK == other.bIOJHIBFELK) - && (!hasMFMOAJONBBF() || mFMOAJONBBF == other.mFMOAJONBBF) - && (!hasHNICFKBEKJO() || hNICFKBEKJO == other.hNICFKBEKJO) - && (!hasOOIOMMKOIAE() || oOIOMMKOIAE == other.oOIOMMKOIAE) + && (!hasMMFGIPPNEEF() || mMFGIPPNEEF == other.mMFGIPPNEEF) + && (!hasLCEEKBAJPHA() || lCEEKBAJPHA == other.lCEEKBAJPHA) + && (!hasKEBOJOIBOKE() || kEBOJOIBOKE == other.kEBOJOIBOKE) + && (!hasLBKCIEBGMAJ() || lBKCIEBGMAJ == other.lBKCIEBGMAJ) + && (!hasGPJGLLANPIF() || gPJGLLANPIF == other.gPJGLLANPIF) + && (!hasKHDJDCELNPF() || kHDJDCELNPF == other.kHDJDCELNPF) + && (!hasMIMIPDMIPNO() || mIMIPDMIPNO == other.mIMIPDMIPNO) + && (!hasMPNIKBAFPEM() || mPNIKBAFPEM == other.mPNIKBAFPEM) && (!hasCollectionInfo() || collectionInfo.equals(other.collectionInfo)); } @@ -536,38 +536,38 @@ public final class PlayerRecordInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(cPIKKMDOKHA); + output.writeUInt32NoTag(mMFGIPPNEEF); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(mGDIMDLPOGA); + output.writeUInt32NoTag(lCEEKBAJPHA); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(dKPLJPHGDMB); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(kEBOJOIBOKE); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(iNMEAGINKPN); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(lBKCIEBGMAJ); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(bIOJHIBFELK); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(gPJGLLANPIF); } if ((bitField0_ & 0x00000020) != 0) { output.writeRawByte((byte) 96); - output.writeUInt32NoTag(mFMOAJONBBF); + output.writeUInt32NoTag(kHDJDCELNPF); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(hNICFKBEKJO); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(mIMIPDMIPNO); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(oOIOMMKOIAE); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(mPNIKBAFPEM); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 82); output.writeMessageNoTag(collectionInfo); } } @@ -576,28 +576,28 @@ public final class PlayerRecordInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cPIKKMDOKHA); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mMFGIPPNEEF); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mGDIMDLPOGA); + size += 1 + ProtoSink.computeUInt32SizeNoTag(lCEEKBAJPHA); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dKPLJPHGDMB); + size += 1 + ProtoSink.computeUInt32SizeNoTag(kEBOJOIBOKE); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(iNMEAGINKPN); + size += 1 + ProtoSink.computeUInt32SizeNoTag(lBKCIEBGMAJ); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bIOJHIBFELK); + size += 1 + ProtoSink.computeUInt32SizeNoTag(gPJGLLANPIF); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mFMOAJONBBF); + size += 1 + ProtoSink.computeUInt32SizeNoTag(kHDJDCELNPF); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(hNICFKBEKJO); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mIMIPDMIPNO); } if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(oOIOMMKOIAE); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mPNIKBAFPEM); } if ((bitField0_ & 0x00000100) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(collectionInfo); @@ -613,8 +613,8 @@ public final class PlayerRecordInfoOuterClass { while (true) { switch (tag) { case 24: { - // cPIKKMDOKHA - cPIKKMDOKHA = input.readUInt32(); + // mMFGIPPNEEF + mMFGIPPNEEF = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { @@ -622,35 +622,35 @@ public final class PlayerRecordInfoOuterClass { } } case 32: { - // mGDIMDLPOGA - mGDIMDLPOGA = input.readUInt32(); + // lCEEKBAJPHA + lCEEKBAJPHA = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 56) { + if (tag != 48) { break; } } - case 56: { - // dKPLJPHGDMB - dKPLJPHGDMB = input.readUInt32(); + case 48: { + // kEBOJOIBOKE + kEBOJOIBOKE = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 64) { + if (tag != 72) { break; } } - case 64: { - // iNMEAGINKPN - iNMEAGINKPN = input.readUInt32(); + case 72: { + // lBKCIEBGMAJ + lBKCIEBGMAJ = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 80) { + if (tag != 88) { break; } } - case 80: { - // bIOJHIBFELK - bIOJHIBFELK = input.readUInt32(); + case 88: { + // gPJGLLANPIF + gPJGLLANPIF = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 96) { @@ -658,33 +658,33 @@ public final class PlayerRecordInfoOuterClass { } } case 96: { - // mFMOAJONBBF - mFMOAJONBBF = input.readUInt32(); + // kHDJDCELNPF + kHDJDCELNPF = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // mIMIPDMIPNO + mIMIPDMIPNO = input.readUInt32(); + bitField0_ |= 0x00000040; + tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // hNICFKBEKJO - hNICFKBEKJO = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // oOIOMMKOIAE - oOIOMMKOIAE = input.readUInt32(); + // mPNIKBAFPEM + mPNIKBAFPEM = input.readUInt32(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 18) { + if (tag != 82) { break; } } - case 18: { + case 82: { // collectionInfo input.readMessage(collectionInfo); bitField0_ |= 0x00000100; @@ -711,28 +711,28 @@ public final class PlayerRecordInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.cPIKKMDOKHA, cPIKKMDOKHA); + output.writeUInt32(FieldNames.mMFGIPPNEEF, mMFGIPPNEEF); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.mGDIMDLPOGA, mGDIMDLPOGA); + output.writeUInt32(FieldNames.lCEEKBAJPHA, lCEEKBAJPHA); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.dKPLJPHGDMB, dKPLJPHGDMB); + output.writeUInt32(FieldNames.kEBOJOIBOKE, kEBOJOIBOKE); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.iNMEAGINKPN, iNMEAGINKPN); + output.writeUInt32(FieldNames.lBKCIEBGMAJ, lBKCIEBGMAJ); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.bIOJHIBFELK, bIOJHIBFELK); + output.writeUInt32(FieldNames.gPJGLLANPIF, gPJGLLANPIF); } if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.mFMOAJONBBF, mFMOAJONBBF); + output.writeUInt32(FieldNames.kHDJDCELNPF, kHDJDCELNPF); } if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.hNICFKBEKJO, hNICFKBEKJO); + output.writeUInt32(FieldNames.mIMIPDMIPNO, mIMIPDMIPNO); } if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.oOIOMMKOIAE, oOIOMMKOIAE); + output.writeUInt32(FieldNames.mPNIKBAFPEM, mPNIKBAFPEM); } if ((bitField0_ & 0x00000100) != 0) { output.writeMessage(FieldNames.collectionInfo, collectionInfo); @@ -747,10 +747,10 @@ public final class PlayerRecordInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 201702600: { - if (input.isAtField(FieldNames.cPIKKMDOKHA)) { + case 1069614752: { + if (input.isAtField(FieldNames.mMFGIPPNEEF)) { if (!input.trySkipNullValue()) { - cPIKKMDOKHA = input.readUInt32(); + mMFGIPPNEEF = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -758,10 +758,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case -332836433: { - if (input.isAtField(FieldNames.mGDIMDLPOGA)) { + case 218805586: { + if (input.isAtField(FieldNames.lCEEKBAJPHA)) { if (!input.trySkipNullValue()) { - mGDIMDLPOGA = input.readUInt32(); + lCEEKBAJPHA = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -769,10 +769,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case 564682705: { - if (input.isAtField(FieldNames.dKPLJPHGDMB)) { + case -1804782844: { + if (input.isAtField(FieldNames.kEBOJOIBOKE)) { if (!input.trySkipNullValue()) { - dKPLJPHGDMB = input.readUInt32(); + kEBOJOIBOKE = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -780,10 +780,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case 1738823617: { - if (input.isAtField(FieldNames.iNMEAGINKPN)) { + case 1576551975: { + if (input.isAtField(FieldNames.lBKCIEBGMAJ)) { if (!input.trySkipNullValue()) { - iNMEAGINKPN = input.readUInt32(); + lBKCIEBGMAJ = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -791,10 +791,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case 892464829: { - if (input.isAtField(FieldNames.bIOJHIBFELK)) { + case -2023817734: { + if (input.isAtField(FieldNames.gPJGLLANPIF)) { if (!input.trySkipNullValue()) { - bIOJHIBFELK = input.readUInt32(); + gPJGLLANPIF = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -802,10 +802,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case 757747171: { - if (input.isAtField(FieldNames.mFMOAJONBBF)) { + case 1079583643: { + if (input.isAtField(FieldNames.kHDJDCELNPF)) { if (!input.trySkipNullValue()) { - mFMOAJONBBF = input.readUInt32(); + kHDJDCELNPF = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -813,10 +813,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case -1059627672: { - if (input.isAtField(FieldNames.hNICFKBEKJO)) { + case -1444824503: { + if (input.isAtField(FieldNames.mIMIPDMIPNO)) { if (!input.trySkipNullValue()) { - hNICFKBEKJO = input.readUInt32(); + mIMIPDMIPNO = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -824,10 +824,10 @@ public final class PlayerRecordInfoOuterClass { } break; } - case 472412899: { - if (input.isAtField(FieldNames.oOIOMMKOIAE)) { + case -543887522: { + if (input.isAtField(FieldNames.mPNIKBAFPEM)) { if (!input.trySkipNullValue()) { - oOIOMMKOIAE = input.readUInt32(); + mPNIKBAFPEM = input.readUInt32(); bitField0_ |= 0x00000080; } } else { @@ -900,21 +900,21 @@ public final class PlayerRecordInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName cPIKKMDOKHA = FieldName.forField("CPIKKMDOKHA"); + static final FieldName mMFGIPPNEEF = FieldName.forField("MMFGIPPNEEF"); - static final FieldName mGDIMDLPOGA = FieldName.forField("MGDIMDLPOGA"); + static final FieldName lCEEKBAJPHA = FieldName.forField("LCEEKBAJPHA"); - static final FieldName dKPLJPHGDMB = FieldName.forField("DKPLJPHGDMB"); + static final FieldName kEBOJOIBOKE = FieldName.forField("KEBOJOIBOKE"); - static final FieldName iNMEAGINKPN = FieldName.forField("INMEAGINKPN"); + static final FieldName lBKCIEBGMAJ = FieldName.forField("LBKCIEBGMAJ"); - static final FieldName bIOJHIBFELK = FieldName.forField("BIOJHIBFELK"); + static final FieldName gPJGLLANPIF = FieldName.forField("GPJGLLANPIF"); - static final FieldName mFMOAJONBBF = FieldName.forField("MFMOAJONBBF"); + static final FieldName kHDJDCELNPF = FieldName.forField("KHDJDCELNPF"); - static final FieldName hNICFKBEKJO = FieldName.forField("HNICFKBEKJO"); + static final FieldName mIMIPDMIPNO = FieldName.forField("MIMIPDMIPNO"); - static final FieldName oOIOMMKOIAE = FieldName.forField("OOIOMMKOIAE"); + static final FieldName mPNIKBAFPEM = FieldName.forField("MPNIKBAFPEM"); static final FieldName collectionInfo = FieldName.forField("collectionInfo", "collection_info"); } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java index 128bd1d..e78d690 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSettingInfoOuterClass.java @@ -19,39 +19,84 @@ public final class PlayerSettingInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .DisplayRecordType display_record_type = 12; + * optional bool COIGOCJHBOP = 2; */ - private int displayRecordType; + private boolean cOIGOCJHBOP; /** - * optional bool b1 = 2; + * optional bool CHCNEDNCIDJ = 4; */ - private boolean b1; + private boolean cHCNEDNCIDJ; /** - * optional bool b4 = 3; + * optional bool LPEPIDNJDEM = 7; */ - private boolean b4; + private boolean lPEPIDNJDEM; /** - * optional bool b3 = 4; + * optional bool BKDCFBDMNIJ = 8; */ - private boolean b3; + private boolean bKDCFBDMNIJ; /** - * optional bool b6 = 5; + * optional bool PFJMEECGJMM = 9; */ - private boolean b6; + private boolean pFJMEECGJMM; /** - * optional bool b2 = 8; + * optional bool MFCPDJGGCMO = 10; */ - private boolean b2; + private boolean mFCPDJGGCMO; /** - * optional bool b5 = 13; + * optional bool CCNGHBADHBL = 11; */ - private boolean b5; + private boolean cCNGHBADHBL; + + /** + * optional bool FIJNAPNICJF = 12; + */ + private boolean fIJNAPNICJF; + + /** + * optional bool NHLKFBOBDOM = 13; + */ + private boolean nHLKFBOBDOM; + + /** + * optional bool CPOGDKALGOM = 14; + */ + private boolean cPOGDKALGOM; + + /** + * optional bool LENKIEBIIHP = 151; + */ + private boolean lENKIEBIIHP; + + /** + * optional bool EJDGNLEOBCN = 197; + */ + private boolean eJDGNLEOBCN; + + /** + * optional bool KFBLHCCGEPO = 1219; + */ + private boolean kFBLHCCGEPO; + + /** + * optional bool BMEHFMDNKLE = 1557; + */ + private boolean bMEHFMDNKLE; + + /** + * optional .PlayerSettingInfo.OEEEAEJBENB unk2 = 5; + */ + private final OEEEAEJBENB unk2 = OEEEAEJBENB.newInstance(); + + /** + * optional .PlayerSettingInfo.NECGMCGFANN unk1 = 524; + */ + private final NECGMCGFANN unk1 = NECGMCGFANN.newInstance(); private PlayerSettingInfo() { } @@ -64,287 +109,634 @@ public final class PlayerSettingInfoOuterClass { } /** - * optional .DisplayRecordType display_record_type = 12; - * @return whether the displayRecordType field is set + * optional bool COIGOCJHBOP = 2; + * @return whether the cOIGOCJHBOP field is set */ - public boolean hasDisplayRecordType() { + public boolean hasCOIGOCJHBOP() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .DisplayRecordType display_record_type = 12; + * optional bool COIGOCJHBOP = 2; * @return this */ - public PlayerSettingInfo clearDisplayRecordType() { + public PlayerSettingInfo clearCOIGOCJHBOP() { bitField0_ &= ~0x00000001; - displayRecordType = 0; + cOIGOCJHBOP = false; return this; } /** - * optional .DisplayRecordType display_record_type = 12; - * @return the displayRecordType + * optional bool COIGOCJHBOP = 2; + * @return the cOIGOCJHBOP */ - public DisplayRecordTypeOuterClass.DisplayRecordType getDisplayRecordType() { - return DisplayRecordTypeOuterClass.DisplayRecordType.forNumber(displayRecordType); + public boolean getCOIGOCJHBOP() { + return cOIGOCJHBOP; } /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link PlayerSettingInfo#getDisplayRecordType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getDisplayRecordTypeValue() { - return displayRecordType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link DisplayRecordTypeOuterClass.DisplayRecordType}. Setting an invalid value - * can cause {@link PlayerSettingInfo#getDisplayRecordType()} to return null - * - * @param value the numeric wire value to set + * optional bool COIGOCJHBOP = 2; + * @param value the cOIGOCJHBOP to set * @return this */ - public PlayerSettingInfo setDisplayRecordTypeValue(final int value) { + public PlayerSettingInfo setCOIGOCJHBOP(final boolean value) { bitField0_ |= 0x00000001; - displayRecordType = value; + cOIGOCJHBOP = value; return this; } /** - * optional .DisplayRecordType display_record_type = 12; - * @param value the displayRecordType to set - * @return this + * optional bool CHCNEDNCIDJ = 4; + * @return whether the cHCNEDNCIDJ field is set */ - public PlayerSettingInfo setDisplayRecordType( - final DisplayRecordTypeOuterClass.DisplayRecordType value) { - bitField0_ |= 0x00000001; - displayRecordType = value.getNumber(); - return this; - } - - /** - * optional bool b1 = 2; - * @return whether the b1 field is set - */ - public boolean hasB1() { + public boolean hasCHCNEDNCIDJ() { return (bitField0_ & 0x00000002) != 0; } /** - * optional bool b1 = 2; + * optional bool CHCNEDNCIDJ = 4; * @return this */ - public PlayerSettingInfo clearB1() { + public PlayerSettingInfo clearCHCNEDNCIDJ() { bitField0_ &= ~0x00000002; - b1 = false; + cHCNEDNCIDJ = false; return this; } /** - * optional bool b1 = 2; - * @return the b1 + * optional bool CHCNEDNCIDJ = 4; + * @return the cHCNEDNCIDJ */ - public boolean getB1() { - return b1; + public boolean getCHCNEDNCIDJ() { + return cHCNEDNCIDJ; } /** - * optional bool b1 = 2; - * @param value the b1 to set + * optional bool CHCNEDNCIDJ = 4; + * @param value the cHCNEDNCIDJ to set * @return this */ - public PlayerSettingInfo setB1(final boolean value) { + public PlayerSettingInfo setCHCNEDNCIDJ(final boolean value) { bitField0_ |= 0x00000002; - b1 = value; + cHCNEDNCIDJ = value; return this; } /** - * optional bool b4 = 3; - * @return whether the b4 field is set + * optional bool LPEPIDNJDEM = 7; + * @return whether the lPEPIDNJDEM field is set */ - public boolean hasB4() { + public boolean hasLPEPIDNJDEM() { return (bitField0_ & 0x00000004) != 0; } /** - * optional bool b4 = 3; + * optional bool LPEPIDNJDEM = 7; * @return this */ - public PlayerSettingInfo clearB4() { + public PlayerSettingInfo clearLPEPIDNJDEM() { bitField0_ &= ~0x00000004; - b4 = false; + lPEPIDNJDEM = false; return this; } /** - * optional bool b4 = 3; - * @return the b4 + * optional bool LPEPIDNJDEM = 7; + * @return the lPEPIDNJDEM */ - public boolean getB4() { - return b4; + public boolean getLPEPIDNJDEM() { + return lPEPIDNJDEM; } /** - * optional bool b4 = 3; - * @param value the b4 to set + * optional bool LPEPIDNJDEM = 7; + * @param value the lPEPIDNJDEM to set * @return this */ - public PlayerSettingInfo setB4(final boolean value) { + public PlayerSettingInfo setLPEPIDNJDEM(final boolean value) { bitField0_ |= 0x00000004; - b4 = value; + lPEPIDNJDEM = value; return this; } /** - * optional bool b3 = 4; - * @return whether the b3 field is set + * optional bool BKDCFBDMNIJ = 8; + * @return whether the bKDCFBDMNIJ field is set */ - public boolean hasB3() { + public boolean hasBKDCFBDMNIJ() { return (bitField0_ & 0x00000008) != 0; } /** - * optional bool b3 = 4; + * optional bool BKDCFBDMNIJ = 8; * @return this */ - public PlayerSettingInfo clearB3() { + public PlayerSettingInfo clearBKDCFBDMNIJ() { bitField0_ &= ~0x00000008; - b3 = false; + bKDCFBDMNIJ = false; return this; } /** - * optional bool b3 = 4; - * @return the b3 + * optional bool BKDCFBDMNIJ = 8; + * @return the bKDCFBDMNIJ */ - public boolean getB3() { - return b3; + public boolean getBKDCFBDMNIJ() { + return bKDCFBDMNIJ; } /** - * optional bool b3 = 4; - * @param value the b3 to set + * optional bool BKDCFBDMNIJ = 8; + * @param value the bKDCFBDMNIJ to set * @return this */ - public PlayerSettingInfo setB3(final boolean value) { + public PlayerSettingInfo setBKDCFBDMNIJ(final boolean value) { bitField0_ |= 0x00000008; - b3 = value; + bKDCFBDMNIJ = value; return this; } /** - * optional bool b6 = 5; - * @return whether the b6 field is set + * optional bool PFJMEECGJMM = 9; + * @return whether the pFJMEECGJMM field is set */ - public boolean hasB6() { + public boolean hasPFJMEECGJMM() { return (bitField0_ & 0x00000010) != 0; } /** - * optional bool b6 = 5; + * optional bool PFJMEECGJMM = 9; * @return this */ - public PlayerSettingInfo clearB6() { + public PlayerSettingInfo clearPFJMEECGJMM() { bitField0_ &= ~0x00000010; - b6 = false; + pFJMEECGJMM = false; return this; } /** - * optional bool b6 = 5; - * @return the b6 + * optional bool PFJMEECGJMM = 9; + * @return the pFJMEECGJMM */ - public boolean getB6() { - return b6; + public boolean getPFJMEECGJMM() { + return pFJMEECGJMM; } /** - * optional bool b6 = 5; - * @param value the b6 to set + * optional bool PFJMEECGJMM = 9; + * @param value the pFJMEECGJMM to set * @return this */ - public PlayerSettingInfo setB6(final boolean value) { + public PlayerSettingInfo setPFJMEECGJMM(final boolean value) { bitField0_ |= 0x00000010; - b6 = value; + pFJMEECGJMM = value; return this; } /** - * optional bool b2 = 8; - * @return whether the b2 field is set + * optional bool MFCPDJGGCMO = 10; + * @return whether the mFCPDJGGCMO field is set */ - public boolean hasB2() { + public boolean hasMFCPDJGGCMO() { return (bitField0_ & 0x00000020) != 0; } /** - * optional bool b2 = 8; + * optional bool MFCPDJGGCMO = 10; * @return this */ - public PlayerSettingInfo clearB2() { + public PlayerSettingInfo clearMFCPDJGGCMO() { bitField0_ &= ~0x00000020; - b2 = false; + mFCPDJGGCMO = false; return this; } /** - * optional bool b2 = 8; - * @return the b2 + * optional bool MFCPDJGGCMO = 10; + * @return the mFCPDJGGCMO */ - public boolean getB2() { - return b2; + public boolean getMFCPDJGGCMO() { + return mFCPDJGGCMO; } /** - * optional bool b2 = 8; - * @param value the b2 to set + * optional bool MFCPDJGGCMO = 10; + * @param value the mFCPDJGGCMO to set * @return this */ - public PlayerSettingInfo setB2(final boolean value) { + public PlayerSettingInfo setMFCPDJGGCMO(final boolean value) { bitField0_ |= 0x00000020; - b2 = value; + mFCPDJGGCMO = value; return this; } /** - * optional bool b5 = 13; - * @return whether the b5 field is set + * optional bool CCNGHBADHBL = 11; + * @return whether the cCNGHBADHBL field is set */ - public boolean hasB5() { + public boolean hasCCNGHBADHBL() { return (bitField0_ & 0x00000040) != 0; } /** - * optional bool b5 = 13; + * optional bool CCNGHBADHBL = 11; * @return this */ - public PlayerSettingInfo clearB5() { + public PlayerSettingInfo clearCCNGHBADHBL() { bitField0_ &= ~0x00000040; - b5 = false; + cCNGHBADHBL = false; return this; } /** - * optional bool b5 = 13; - * @return the b5 + * optional bool CCNGHBADHBL = 11; + * @return the cCNGHBADHBL */ - public boolean getB5() { - return b5; + public boolean getCCNGHBADHBL() { + return cCNGHBADHBL; } /** - * optional bool b5 = 13; - * @param value the b5 to set + * optional bool CCNGHBADHBL = 11; + * @param value the cCNGHBADHBL to set * @return this */ - public PlayerSettingInfo setB5(final boolean value) { + public PlayerSettingInfo setCCNGHBADHBL(final boolean value) { bitField0_ |= 0x00000040; - b5 = value; + cCNGHBADHBL = value; + return this; + } + + /** + * optional bool FIJNAPNICJF = 12; + * @return whether the fIJNAPNICJF field is set + */ + public boolean hasFIJNAPNICJF() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional bool FIJNAPNICJF = 12; + * @return this + */ + public PlayerSettingInfo clearFIJNAPNICJF() { + bitField0_ &= ~0x00000080; + fIJNAPNICJF = false; + return this; + } + + /** + * optional bool FIJNAPNICJF = 12; + * @return the fIJNAPNICJF + */ + public boolean getFIJNAPNICJF() { + return fIJNAPNICJF; + } + + /** + * optional bool FIJNAPNICJF = 12; + * @param value the fIJNAPNICJF to set + * @return this + */ + public PlayerSettingInfo setFIJNAPNICJF(final boolean value) { + bitField0_ |= 0x00000080; + fIJNAPNICJF = value; + return this; + } + + /** + * optional bool NHLKFBOBDOM = 13; + * @return whether the nHLKFBOBDOM field is set + */ + public boolean hasNHLKFBOBDOM() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional bool NHLKFBOBDOM = 13; + * @return this + */ + public PlayerSettingInfo clearNHLKFBOBDOM() { + bitField0_ &= ~0x00000100; + nHLKFBOBDOM = false; + return this; + } + + /** + * optional bool NHLKFBOBDOM = 13; + * @return the nHLKFBOBDOM + */ + public boolean getNHLKFBOBDOM() { + return nHLKFBOBDOM; + } + + /** + * optional bool NHLKFBOBDOM = 13; + * @param value the nHLKFBOBDOM to set + * @return this + */ + public PlayerSettingInfo setNHLKFBOBDOM(final boolean value) { + bitField0_ |= 0x00000100; + nHLKFBOBDOM = value; + return this; + } + + /** + * optional bool CPOGDKALGOM = 14; + * @return whether the cPOGDKALGOM field is set + */ + public boolean hasCPOGDKALGOM() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * optional bool CPOGDKALGOM = 14; + * @return this + */ + public PlayerSettingInfo clearCPOGDKALGOM() { + bitField0_ &= ~0x00000200; + cPOGDKALGOM = false; + return this; + } + + /** + * optional bool CPOGDKALGOM = 14; + * @return the cPOGDKALGOM + */ + public boolean getCPOGDKALGOM() { + return cPOGDKALGOM; + } + + /** + * optional bool CPOGDKALGOM = 14; + * @param value the cPOGDKALGOM to set + * @return this + */ + public PlayerSettingInfo setCPOGDKALGOM(final boolean value) { + bitField0_ |= 0x00000200; + cPOGDKALGOM = value; + return this; + } + + /** + * optional bool LENKIEBIIHP = 151; + * @return whether the lENKIEBIIHP field is set + */ + public boolean hasLENKIEBIIHP() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * optional bool LENKIEBIIHP = 151; + * @return this + */ + public PlayerSettingInfo clearLENKIEBIIHP() { + bitField0_ &= ~0x00000400; + lENKIEBIIHP = false; + return this; + } + + /** + * optional bool LENKIEBIIHP = 151; + * @return the lENKIEBIIHP + */ + public boolean getLENKIEBIIHP() { + return lENKIEBIIHP; + } + + /** + * optional bool LENKIEBIIHP = 151; + * @param value the lENKIEBIIHP to set + * @return this + */ + public PlayerSettingInfo setLENKIEBIIHP(final boolean value) { + bitField0_ |= 0x00000400; + lENKIEBIIHP = value; + return this; + } + + /** + * optional bool EJDGNLEOBCN = 197; + * @return whether the eJDGNLEOBCN field is set + */ + public boolean hasEJDGNLEOBCN() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional bool EJDGNLEOBCN = 197; + * @return this + */ + public PlayerSettingInfo clearEJDGNLEOBCN() { + bitField0_ &= ~0x00000800; + eJDGNLEOBCN = false; + return this; + } + + /** + * optional bool EJDGNLEOBCN = 197; + * @return the eJDGNLEOBCN + */ + public boolean getEJDGNLEOBCN() { + return eJDGNLEOBCN; + } + + /** + * optional bool EJDGNLEOBCN = 197; + * @param value the eJDGNLEOBCN to set + * @return this + */ + public PlayerSettingInfo setEJDGNLEOBCN(final boolean value) { + bitField0_ |= 0x00000800; + eJDGNLEOBCN = value; + return this; + } + + /** + * optional bool KFBLHCCGEPO = 1219; + * @return whether the kFBLHCCGEPO field is set + */ + public boolean hasKFBLHCCGEPO() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional bool KFBLHCCGEPO = 1219; + * @return this + */ + public PlayerSettingInfo clearKFBLHCCGEPO() { + bitField0_ &= ~0x00001000; + kFBLHCCGEPO = false; + return this; + } + + /** + * optional bool KFBLHCCGEPO = 1219; + * @return the kFBLHCCGEPO + */ + public boolean getKFBLHCCGEPO() { + return kFBLHCCGEPO; + } + + /** + * optional bool KFBLHCCGEPO = 1219; + * @param value the kFBLHCCGEPO to set + * @return this + */ + public PlayerSettingInfo setKFBLHCCGEPO(final boolean value) { + bitField0_ |= 0x00001000; + kFBLHCCGEPO = value; + return this; + } + + /** + * optional bool BMEHFMDNKLE = 1557; + * @return whether the bMEHFMDNKLE field is set + */ + public boolean hasBMEHFMDNKLE() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * optional bool BMEHFMDNKLE = 1557; + * @return this + */ + public PlayerSettingInfo clearBMEHFMDNKLE() { + bitField0_ &= ~0x00002000; + bMEHFMDNKLE = false; + return this; + } + + /** + * optional bool BMEHFMDNKLE = 1557; + * @return the bMEHFMDNKLE + */ + public boolean getBMEHFMDNKLE() { + return bMEHFMDNKLE; + } + + /** + * optional bool BMEHFMDNKLE = 1557; + * @param value the bMEHFMDNKLE to set + * @return this + */ + public PlayerSettingInfo setBMEHFMDNKLE(final boolean value) { + bitField0_ |= 0x00002000; + bMEHFMDNKLE = value; + return this; + } + + /** + * optional .PlayerSettingInfo.OEEEAEJBENB unk2 = 5; + * @return whether the unk2 field is set + */ + public boolean hasUnk2() { + return (bitField0_ & 0x00004000) != 0; + } + + /** + * optional .PlayerSettingInfo.OEEEAEJBENB unk2 = 5; + * @return this + */ + public PlayerSettingInfo clearUnk2() { + bitField0_ &= ~0x00004000; + unk2.clear(); + return this; + } + + /** + * optional .PlayerSettingInfo.OEEEAEJBENB unk2 = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnk2()} if you want to modify it. + * + * @return internal storage object for reading + */ + public OEEEAEJBENB getUnk2() { + return unk2; + } + + /** + * optional .PlayerSettingInfo.OEEEAEJBENB unk2 = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public OEEEAEJBENB getMutableUnk2() { + bitField0_ |= 0x00004000; + return unk2; + } + + /** + * optional .PlayerSettingInfo.OEEEAEJBENB unk2 = 5; + * @param value the unk2 to set + * @return this + */ + public PlayerSettingInfo setUnk2(final OEEEAEJBENB value) { + bitField0_ |= 0x00004000; + unk2.copyFrom(value); + return this; + } + + /** + * optional .PlayerSettingInfo.NECGMCGFANN unk1 = 524; + * @return whether the unk1 field is set + */ + public boolean hasUnk1() { + return (bitField0_ & 0x00008000) != 0; + } + + /** + * optional .PlayerSettingInfo.NECGMCGFANN unk1 = 524; + * @return this + */ + public PlayerSettingInfo clearUnk1() { + bitField0_ &= ~0x00008000; + unk1.clear(); + return this; + } + + /** + * optional .PlayerSettingInfo.NECGMCGFANN unk1 = 524; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnk1()} if you want to modify it. + * + * @return internal storage object for reading + */ + public NECGMCGFANN getUnk1() { + return unk1; + } + + /** + * optional .PlayerSettingInfo.NECGMCGFANN unk1 = 524; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public NECGMCGFANN getMutableUnk1() { + bitField0_ |= 0x00008000; + return unk1; + } + + /** + * optional .PlayerSettingInfo.NECGMCGFANN unk1 = 524; + * @param value the unk1 to set + * @return this + */ + public PlayerSettingInfo setUnk1(final NECGMCGFANN value) { + bitField0_ |= 0x00008000; + unk1.copyFrom(value); return this; } @@ -353,13 +745,22 @@ public final class PlayerSettingInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - displayRecordType = other.displayRecordType; - b1 = other.b1; - b4 = other.b4; - b3 = other.b3; - b6 = other.b6; - b2 = other.b2; - b5 = other.b5; + cOIGOCJHBOP = other.cOIGOCJHBOP; + cHCNEDNCIDJ = other.cHCNEDNCIDJ; + lPEPIDNJDEM = other.lPEPIDNJDEM; + bKDCFBDMNIJ = other.bKDCFBDMNIJ; + pFJMEECGJMM = other.pFJMEECGJMM; + mFCPDJGGCMO = other.mFCPDJGGCMO; + cCNGHBADHBL = other.cCNGHBADHBL; + fIJNAPNICJF = other.fIJNAPNICJF; + nHLKFBOBDOM = other.nHLKFBOBDOM; + cPOGDKALGOM = other.cPOGDKALGOM; + lENKIEBIIHP = other.lENKIEBIIHP; + eJDGNLEOBCN = other.eJDGNLEOBCN; + kFBLHCCGEPO = other.kFBLHCCGEPO; + bMEHFMDNKLE = other.bMEHFMDNKLE; + unk2.copyFrom(other.unk2); + unk1.copyFrom(other.unk1); } return this; } @@ -370,26 +771,53 @@ public final class PlayerSettingInfoOuterClass { return this; } cachedSize = -1; - if (other.hasDisplayRecordType()) { - setDisplayRecordTypeValue(other.displayRecordType); + if (other.hasCOIGOCJHBOP()) { + setCOIGOCJHBOP(other.cOIGOCJHBOP); } - if (other.hasB1()) { - setB1(other.b1); + if (other.hasCHCNEDNCIDJ()) { + setCHCNEDNCIDJ(other.cHCNEDNCIDJ); } - if (other.hasB4()) { - setB4(other.b4); + if (other.hasLPEPIDNJDEM()) { + setLPEPIDNJDEM(other.lPEPIDNJDEM); } - if (other.hasB3()) { - setB3(other.b3); + if (other.hasBKDCFBDMNIJ()) { + setBKDCFBDMNIJ(other.bKDCFBDMNIJ); } - if (other.hasB6()) { - setB6(other.b6); + if (other.hasPFJMEECGJMM()) { + setPFJMEECGJMM(other.pFJMEECGJMM); } - if (other.hasB2()) { - setB2(other.b2); + if (other.hasMFCPDJGGCMO()) { + setMFCPDJGGCMO(other.mFCPDJGGCMO); } - if (other.hasB5()) { - setB5(other.b5); + if (other.hasCCNGHBADHBL()) { + setCCNGHBADHBL(other.cCNGHBADHBL); + } + if (other.hasFIJNAPNICJF()) { + setFIJNAPNICJF(other.fIJNAPNICJF); + } + if (other.hasNHLKFBOBDOM()) { + setNHLKFBOBDOM(other.nHLKFBOBDOM); + } + if (other.hasCPOGDKALGOM()) { + setCPOGDKALGOM(other.cPOGDKALGOM); + } + if (other.hasLENKIEBIIHP()) { + setLENKIEBIIHP(other.lENKIEBIIHP); + } + if (other.hasEJDGNLEOBCN()) { + setEJDGNLEOBCN(other.eJDGNLEOBCN); + } + if (other.hasKFBLHCCGEPO()) { + setKFBLHCCGEPO(other.kFBLHCCGEPO); + } + if (other.hasBMEHFMDNKLE()) { + setBMEHFMDNKLE(other.bMEHFMDNKLE); + } + if (other.hasUnk2()) { + getMutableUnk2().mergeFrom(other.unk2); + } + if (other.hasUnk1()) { + getMutableUnk1().mergeFrom(other.unk1); } return this; } @@ -401,13 +829,22 @@ public final class PlayerSettingInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - displayRecordType = 0; - b1 = false; - b4 = false; - b3 = false; - b6 = false; - b2 = false; - b5 = false; + cOIGOCJHBOP = false; + cHCNEDNCIDJ = false; + lPEPIDNJDEM = false; + bKDCFBDMNIJ = false; + pFJMEECGJMM = false; + mFCPDJGGCMO = false; + cCNGHBADHBL = false; + fIJNAPNICJF = false; + nHLKFBOBDOM = false; + cPOGDKALGOM = false; + lENKIEBIIHP = false; + eJDGNLEOBCN = false; + kFBLHCCGEPO = false; + bMEHFMDNKLE = false; + unk2.clear(); + unk1.clear(); return this; } @@ -418,6 +855,8 @@ public final class PlayerSettingInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + unk2.clearQuick(); + unk1.clearQuick(); return this; } @@ -431,44 +870,89 @@ public final class PlayerSettingInfoOuterClass { } PlayerSettingInfo other = (PlayerSettingInfo) o; return bitField0_ == other.bitField0_ - && (!hasDisplayRecordType() || displayRecordType == other.displayRecordType) - && (!hasB1() || b1 == other.b1) - && (!hasB4() || b4 == other.b4) - && (!hasB3() || b3 == other.b3) - && (!hasB6() || b6 == other.b6) - && (!hasB2() || b2 == other.b2) - && (!hasB5() || b5 == other.b5); + && (!hasCOIGOCJHBOP() || cOIGOCJHBOP == other.cOIGOCJHBOP) + && (!hasCHCNEDNCIDJ() || cHCNEDNCIDJ == other.cHCNEDNCIDJ) + && (!hasLPEPIDNJDEM() || lPEPIDNJDEM == other.lPEPIDNJDEM) + && (!hasBKDCFBDMNIJ() || bKDCFBDMNIJ == other.bKDCFBDMNIJ) + && (!hasPFJMEECGJMM() || pFJMEECGJMM == other.pFJMEECGJMM) + && (!hasMFCPDJGGCMO() || mFCPDJGGCMO == other.mFCPDJGGCMO) + && (!hasCCNGHBADHBL() || cCNGHBADHBL == other.cCNGHBADHBL) + && (!hasFIJNAPNICJF() || fIJNAPNICJF == other.fIJNAPNICJF) + && (!hasNHLKFBOBDOM() || nHLKFBOBDOM == other.nHLKFBOBDOM) + && (!hasCPOGDKALGOM() || cPOGDKALGOM == other.cPOGDKALGOM) + && (!hasLENKIEBIIHP() || lENKIEBIIHP == other.lENKIEBIIHP) + && (!hasEJDGNLEOBCN() || eJDGNLEOBCN == other.eJDGNLEOBCN) + && (!hasKFBLHCCGEPO() || kFBLHCCGEPO == other.kFBLHCCGEPO) + && (!hasBMEHFMDNKLE() || bMEHFMDNKLE == other.bMEHFMDNKLE) + && (!hasUnk2() || unk2.equals(other.unk2)) + && (!hasUnk1() || unk1.equals(other.unk1)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeEnumNoTag(displayRecordType); + output.writeRawByte((byte) 16); + output.writeBoolNoTag(cOIGOCJHBOP); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeBoolNoTag(b1); + output.writeRawByte((byte) 32); + output.writeBoolNoTag(cHCNEDNCIDJ); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeBoolNoTag(b4); + output.writeRawByte((byte) 56); + output.writeBoolNoTag(lPEPIDNJDEM); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); - output.writeBoolNoTag(b3); + output.writeRawByte((byte) 64); + output.writeBoolNoTag(bKDCFBDMNIJ); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); - output.writeBoolNoTag(b6); + output.writeRawByte((byte) 72); + output.writeBoolNoTag(pFJMEECGJMM); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 64); - output.writeBoolNoTag(b2); + output.writeRawByte((byte) 80); + output.writeBoolNoTag(mFCPDJGGCMO); } if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 88); + output.writeBoolNoTag(cCNGHBADHBL); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 96); + output.writeBoolNoTag(fIJNAPNICJF); + } + if ((bitField0_ & 0x00000100) != 0) { output.writeRawByte((byte) 104); - output.writeBoolNoTag(b5); + output.writeBoolNoTag(nHLKFBOBDOM); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(cPOGDKALGOM); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRawLittleEndian16((short) 2488); + output.writeBoolNoTag(lENKIEBIIHP); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawLittleEndian16((short) 3240); + output.writeBoolNoTag(eJDGNLEOBCN); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawLittleEndian16((short) 19608); + output.writeBoolNoTag(kFBLHCCGEPO); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRawLittleEndian16((short) 25000); + output.writeBoolNoTag(bMEHFMDNKLE); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(unk2); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeRawLittleEndian16((short) 8418); + output.writeMessageNoTag(unk1); } } @@ -476,7 +960,7 @@ public final class PlayerSettingInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(displayRecordType); + size += 2; } if ((bitField0_ & 0x00000002) != 0) { size += 2; @@ -496,6 +980,33 @@ public final class PlayerSettingInfoOuterClass { if ((bitField0_ & 0x00000040) != 0) { size += 2; } + if ((bitField0_ & 0x00000080) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000400) != 0) { + size += 3; + } + if ((bitField0_ & 0x00000800) != 0) { + size += 3; + } + if ((bitField0_ & 0x00001000) != 0) { + size += 3; + } + if ((bitField0_ & 0x00002000) != 0) { + size += 3; + } + if ((bitField0_ & 0x00004000) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(unk2); + } + if ((bitField0_ & 0x00008000) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(unk1); + } return size; } @@ -506,67 +1017,145 @@ public final class PlayerSettingInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { - // displayRecordType - final int value = input.readInt32(); - if (DisplayRecordTypeOuterClass.DisplayRecordType.forNumber(value) != null) { - displayRecordType = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 16) { - break; - } - } case 16: { - // b1 - b1 = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // b4 - b4 = input.readBool(); - bitField0_ |= 0x00000004; + // cOIGOCJHBOP + cOIGOCJHBOP = input.readBool(); + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 32) { break; } } case 32: { - // b3 - b3 = input.readBool(); - bitField0_ |= 0x00000008; + // cHCNEDNCIDJ + cHCNEDNCIDJ = input.readBool(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 40) { + if (tag != 56) { break; } } - case 40: { - // b6 - b6 = input.readBool(); - bitField0_ |= 0x00000010; + case 56: { + // lPEPIDNJDEM + lPEPIDNJDEM = input.readBool(); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // b2 - b2 = input.readBool(); + // bKDCFBDMNIJ + bKDCFBDMNIJ = input.readBool(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // pFJMEECGJMM + pFJMEECGJMM = input.readBool(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // mFCPDJGGCMO + mFCPDJGGCMO = input.readBool(); bitField0_ |= 0x00000020; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // cCNGHBADHBL + cCNGHBADHBL = input.readBool(); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // fIJNAPNICJF + fIJNAPNICJF = input.readBool(); + bitField0_ |= 0x00000080; + tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // b5 - b5 = input.readBool(); - bitField0_ |= 0x00000040; + // nHLKFBOBDOM + nHLKFBOBDOM = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // cPOGDKALGOM + cPOGDKALGOM = input.readBool(); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 1208) { + break; + } + } + case 1208: { + // lENKIEBIIHP + lENKIEBIIHP = input.readBool(); + bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 1576) { + break; + } + } + case 1576: { + // eJDGNLEOBCN + eJDGNLEOBCN = input.readBool(); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 9752) { + break; + } + } + case 9752: { + // kFBLHCCGEPO + kFBLHCCGEPO = input.readBool(); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 12456) { + break; + } + } + case 12456: { + // bMEHFMDNKLE + bMEHFMDNKLE = input.readBool(); + bitField0_ |= 0x00002000; + tag = input.readTag(); + if (tag != 42) { + break; + } + } + case 42: { + // unk2 + input.readMessage(unk2); + bitField0_ |= 0x00004000; + tag = input.readTag(); + if (tag != 4194) { + break; + } + } + case 4194: { + // unk1 + input.readMessage(unk1); + bitField0_ |= 0x00008000; tag = input.readTag(); if (tag != 0) { break; @@ -590,25 +1179,52 @@ public final class PlayerSettingInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.displayRecordType, displayRecordType, DisplayRecordTypeOuterClass.DisplayRecordType.converter()); + output.writeBool(FieldNames.cOIGOCJHBOP, cOIGOCJHBOP); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.b1, b1); + output.writeBool(FieldNames.cHCNEDNCIDJ, cHCNEDNCIDJ); } if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.b4, b4); + output.writeBool(FieldNames.lPEPIDNJDEM, lPEPIDNJDEM); } if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.b3, b3); + output.writeBool(FieldNames.bKDCFBDMNIJ, bKDCFBDMNIJ); } if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.b6, b6); + output.writeBool(FieldNames.pFJMEECGJMM, pFJMEECGJMM); } if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.b2, b2); + output.writeBool(FieldNames.mFCPDJGGCMO, mFCPDJGGCMO); } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.b5, b5); + output.writeBool(FieldNames.cCNGHBADHBL, cCNGHBADHBL); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeBool(FieldNames.fIJNAPNICJF, fIJNAPNICJF); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.nHLKFBOBDOM, nHLKFBOBDOM); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeBool(FieldNames.cPOGDKALGOM, cPOGDKALGOM); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeBool(FieldNames.lENKIEBIIHP, lENKIEBIIHP); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeBool(FieldNames.eJDGNLEOBCN, eJDGNLEOBCN); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeBool(FieldNames.kFBLHCCGEPO, kFBLHCCGEPO); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeBool(FieldNames.bMEHFMDNKLE, bMEHFMDNKLE); + } + if ((bitField0_ & 0x00004000) != 0) { + output.writeMessage(FieldNames.unk2, unk2); + } + if ((bitField0_ & 0x00008000) != 0) { + output.writeMessage(FieldNames.unk1, unk1); } output.endObject(); } @@ -620,27 +1236,21 @@ public final class PlayerSettingInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1038726771: - case 1165970027: { - if (input.isAtField(FieldNames.displayRecordType)) { + case 990989447: { + if (input.isAtField(FieldNames.cOIGOCJHBOP)) { if (!input.trySkipNullValue()) { - final DisplayRecordTypeOuterClass.DisplayRecordType value = input.readEnum(DisplayRecordTypeOuterClass.DisplayRecordType.converter()); - if (value != null) { - displayRecordType = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } + cOIGOCJHBOP = input.readBool(); + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); } break; } - case 3087: { - if (input.isAtField(FieldNames.b1)) { + case -611742229: { + if (input.isAtField(FieldNames.cHCNEDNCIDJ)) { if (!input.trySkipNullValue()) { - b1 = input.readBool(); + cHCNEDNCIDJ = input.readBool(); bitField0_ |= 0x00000002; } } else { @@ -648,10 +1258,10 @@ public final class PlayerSettingInfoOuterClass { } break; } - case 3090: { - if (input.isAtField(FieldNames.b4)) { + case -2050580378: { + if (input.isAtField(FieldNames.lPEPIDNJDEM)) { if (!input.trySkipNullValue()) { - b4 = input.readBool(); + lPEPIDNJDEM = input.readBool(); bitField0_ |= 0x00000004; } } else { @@ -659,10 +1269,10 @@ public final class PlayerSettingInfoOuterClass { } break; } - case 3089: { - if (input.isAtField(FieldNames.b3)) { + case 1913449986: { + if (input.isAtField(FieldNames.bKDCFBDMNIJ)) { if (!input.trySkipNullValue()) { - b3 = input.readBool(); + bKDCFBDMNIJ = input.readBool(); bitField0_ |= 0x00000008; } } else { @@ -670,10 +1280,10 @@ public final class PlayerSettingInfoOuterClass { } break; } - case 3092: { - if (input.isAtField(FieldNames.b6)) { + case 699222029: { + if (input.isAtField(FieldNames.pFJMEECGJMM)) { if (!input.trySkipNullValue()) { - b6 = input.readBool(); + pFJMEECGJMM = input.readBool(); bitField0_ |= 0x00000010; } } else { @@ -681,10 +1291,10 @@ public final class PlayerSettingInfoOuterClass { } break; } - case 3088: { - if (input.isAtField(FieldNames.b2)) { + case 1755181305: { + if (input.isAtField(FieldNames.mFCPDJGGCMO)) { if (!input.trySkipNullValue()) { - b2 = input.readBool(); + mFCPDJGGCMO = input.readBool(); bitField0_ |= 0x00000020; } } else { @@ -692,10 +1302,10 @@ public final class PlayerSettingInfoOuterClass { } break; } - case 3091: { - if (input.isAtField(FieldNames.b5)) { + case 947200668: { + if (input.isAtField(FieldNames.cCNGHBADHBL)) { if (!input.trySkipNullValue()) { - b5 = input.readBool(); + cCNGHBADHBL = input.readBool(); bitField0_ |= 0x00000040; } } else { @@ -703,6 +1313,105 @@ public final class PlayerSettingInfoOuterClass { } break; } + case -582746322: { + if (input.isAtField(FieldNames.fIJNAPNICJF)) { + if (!input.trySkipNullValue()) { + fIJNAPNICJF = input.readBool(); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1907079258: { + if (input.isAtField(FieldNames.nHLKFBOBDOM)) { + if (!input.trySkipNullValue()) { + nHLKFBOBDOM = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1882890638: { + if (input.isAtField(FieldNames.cPOGDKALGOM)) { + if (!input.trySkipNullValue()) { + cPOGDKALGOM = input.readBool(); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case 917252120: { + if (input.isAtField(FieldNames.lENKIEBIIHP)) { + if (!input.trySkipNullValue()) { + lENKIEBIIHP = input.readBool(); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1807258787: { + if (input.isAtField(FieldNames.eJDGNLEOBCN)) { + if (!input.trySkipNullValue()) { + eJDGNLEOBCN = input.readBool(); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case -763751552: { + if (input.isAtField(FieldNames.kFBLHCCGEPO)) { + if (!input.trySkipNullValue()) { + kFBLHCCGEPO = input.readBool(); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 152033253: { + if (input.isAtField(FieldNames.bMEHFMDNKLE)) { + if (!input.trySkipNullValue()) { + bMEHFMDNKLE = input.readBool(); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594624: { + if (input.isAtField(FieldNames.unk2)) { + if (!input.trySkipNullValue()) { + input.readMessage(unk2); + bitField0_ |= 0x00004000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3594623: { + if (input.isAtField(FieldNames.unk1)) { + if (!input.trySkipNullValue()) { + input.readMessage(unk1); + bitField0_ |= 0x00008000; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -743,6 +1452,814 @@ public final class PlayerSettingInfoOuterClass { return PlayerSettingInfoFactory.INSTANCE; } + /** + * Protobuf type {@code NECGMCGFANN} + */ + public static final class NECGMCGFANN extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool INAHILAHIIJ = 1; + */ + private boolean iNAHILAHIIJ; + + /** + * optional bool LDHNPCIMLCJ = 2; + */ + private boolean lDHNPCIMLCJ; + + /** + * optional bool FCNGHNPFJLN = 3; + */ + private boolean fCNGHNPFJLN; + + private NECGMCGFANN() { + } + + /** + * @return a new empty instance of {@code NECGMCGFANN} + */ + public static NECGMCGFANN newInstance() { + return new NECGMCGFANN(); + } + + /** + * optional bool INAHILAHIIJ = 1; + * @return whether the iNAHILAHIIJ field is set + */ + public boolean hasINAHILAHIIJ() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool INAHILAHIIJ = 1; + * @return this + */ + public NECGMCGFANN clearINAHILAHIIJ() { + bitField0_ &= ~0x00000001; + iNAHILAHIIJ = false; + return this; + } + + /** + * optional bool INAHILAHIIJ = 1; + * @return the iNAHILAHIIJ + */ + public boolean getINAHILAHIIJ() { + return iNAHILAHIIJ; + } + + /** + * optional bool INAHILAHIIJ = 1; + * @param value the iNAHILAHIIJ to set + * @return this + */ + public NECGMCGFANN setINAHILAHIIJ(final boolean value) { + bitField0_ |= 0x00000001; + iNAHILAHIIJ = value; + return this; + } + + /** + * optional bool LDHNPCIMLCJ = 2; + * @return whether the lDHNPCIMLCJ field is set + */ + public boolean hasLDHNPCIMLCJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool LDHNPCIMLCJ = 2; + * @return this + */ + public NECGMCGFANN clearLDHNPCIMLCJ() { + bitField0_ &= ~0x00000002; + lDHNPCIMLCJ = false; + return this; + } + + /** + * optional bool LDHNPCIMLCJ = 2; + * @return the lDHNPCIMLCJ + */ + public boolean getLDHNPCIMLCJ() { + return lDHNPCIMLCJ; + } + + /** + * optional bool LDHNPCIMLCJ = 2; + * @param value the lDHNPCIMLCJ to set + * @return this + */ + public NECGMCGFANN setLDHNPCIMLCJ(final boolean value) { + bitField0_ |= 0x00000002; + lDHNPCIMLCJ = value; + return this; + } + + /** + * optional bool FCNGHNPFJLN = 3; + * @return whether the fCNGHNPFJLN field is set + */ + public boolean hasFCNGHNPFJLN() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool FCNGHNPFJLN = 3; + * @return this + */ + public NECGMCGFANN clearFCNGHNPFJLN() { + bitField0_ &= ~0x00000004; + fCNGHNPFJLN = false; + return this; + } + + /** + * optional bool FCNGHNPFJLN = 3; + * @return the fCNGHNPFJLN + */ + public boolean getFCNGHNPFJLN() { + return fCNGHNPFJLN; + } + + /** + * optional bool FCNGHNPFJLN = 3; + * @param value the fCNGHNPFJLN to set + * @return this + */ + public NECGMCGFANN setFCNGHNPFJLN(final boolean value) { + bitField0_ |= 0x00000004; + fCNGHNPFJLN = value; + return this; + } + + @Override + public NECGMCGFANN copyFrom(final NECGMCGFANN other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + iNAHILAHIIJ = other.iNAHILAHIIJ; + lDHNPCIMLCJ = other.lDHNPCIMLCJ; + fCNGHNPFJLN = other.fCNGHNPFJLN; + } + return this; + } + + @Override + public NECGMCGFANN mergeFrom(final NECGMCGFANN other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasINAHILAHIIJ()) { + setINAHILAHIIJ(other.iNAHILAHIIJ); + } + if (other.hasLDHNPCIMLCJ()) { + setLDHNPCIMLCJ(other.lDHNPCIMLCJ); + } + if (other.hasFCNGHNPFJLN()) { + setFCNGHNPFJLN(other.fCNGHNPFJLN); + } + return this; + } + + @Override + public NECGMCGFANN clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + iNAHILAHIIJ = false; + lDHNPCIMLCJ = false; + fCNGHNPFJLN = false; + return this; + } + + @Override + public NECGMCGFANN clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof NECGMCGFANN)) { + return false; + } + NECGMCGFANN other = (NECGMCGFANN) o; + return bitField0_ == other.bitField0_ + && (!hasINAHILAHIIJ() || iNAHILAHIIJ == other.iNAHILAHIIJ) + && (!hasLDHNPCIMLCJ() || lDHNPCIMLCJ == other.lDHNPCIMLCJ) + && (!hasFCNGHNPFJLN() || fCNGHNPFJLN == other.fCNGHNPFJLN); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeBoolNoTag(iNAHILAHIIJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(lDHNPCIMLCJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(fCNGHNPFJLN); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public NECGMCGFANN mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // iNAHILAHIIJ + iNAHILAHIIJ = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // lDHNPCIMLCJ + lDHNPCIMLCJ = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // fCNGHNPFJLN + fCNGHNPFJLN = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.iNAHILAHIIJ, iNAHILAHIIJ); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.lDHNPCIMLCJ, lDHNPCIMLCJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.fCNGHNPFJLN, fCNGHNPFJLN); + } + output.endObject(); + } + + @Override + public NECGMCGFANN mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1532575956: { + if (input.isAtField(FieldNames.iNAHILAHIIJ)) { + if (!input.trySkipNullValue()) { + iNAHILAHIIJ = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1873940926: { + if (input.isAtField(FieldNames.lDHNPCIMLCJ)) { + if (!input.trySkipNullValue()) { + lDHNPCIMLCJ = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 208778330: { + if (input.isAtField(FieldNames.fCNGHNPFJLN)) { + if (!input.trySkipNullValue()) { + fCNGHNPFJLN = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public NECGMCGFANN clone() { + return new NECGMCGFANN().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static NECGMCGFANN parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new NECGMCGFANN(), data).checkInitialized(); + } + + public static NECGMCGFANN parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new NECGMCGFANN(), input).checkInitialized(); + } + + public static NECGMCGFANN parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new NECGMCGFANN(), input).checkInitialized(); + } + + /** + * @return factory for creating NECGMCGFANN messages + */ + public static MessageFactory getFactory() { + return NECGMCGFANNFactory.INSTANCE; + } + + private enum NECGMCGFANNFactory implements MessageFactory { + INSTANCE; + + @Override + public NECGMCGFANN create() { + return NECGMCGFANN.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName iNAHILAHIIJ = FieldName.forField("INAHILAHIIJ"); + + static final FieldName lDHNPCIMLCJ = FieldName.forField("LDHNPCIMLCJ"); + + static final FieldName fCNGHNPFJLN = FieldName.forField("FCNGHNPFJLN"); + } + } + + /** + * Protobuf type {@code OEEEAEJBENB} + */ + public static final class OEEEAEJBENB extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 APOFJCCELFM = 8; + */ + private int aPOFJCCELFM; + + /** + * optional bool JLPHFLLOEAJ = 2; + */ + private boolean jLPHFLLOEAJ; + + /** + * optional bool ODEJNPJBJAJ = 6; + */ + private boolean oDEJNPJBJAJ; + + private OEEEAEJBENB() { + } + + /** + * @return a new empty instance of {@code OEEEAEJBENB} + */ + public static OEEEAEJBENB newInstance() { + return new OEEEAEJBENB(); + } + + /** + * optional uint32 APOFJCCELFM = 8; + * @return whether the aPOFJCCELFM field is set + */ + public boolean hasAPOFJCCELFM() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 APOFJCCELFM = 8; + * @return this + */ + public OEEEAEJBENB clearAPOFJCCELFM() { + bitField0_ &= ~0x00000001; + aPOFJCCELFM = 0; + return this; + } + + /** + * optional uint32 APOFJCCELFM = 8; + * @return the aPOFJCCELFM + */ + public int getAPOFJCCELFM() { + return aPOFJCCELFM; + } + + /** + * optional uint32 APOFJCCELFM = 8; + * @param value the aPOFJCCELFM to set + * @return this + */ + public OEEEAEJBENB setAPOFJCCELFM(final int value) { + bitField0_ |= 0x00000001; + aPOFJCCELFM = value; + return this; + } + + /** + * optional bool JLPHFLLOEAJ = 2; + * @return whether the jLPHFLLOEAJ field is set + */ + public boolean hasJLPHFLLOEAJ() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool JLPHFLLOEAJ = 2; + * @return this + */ + public OEEEAEJBENB clearJLPHFLLOEAJ() { + bitField0_ &= ~0x00000002; + jLPHFLLOEAJ = false; + return this; + } + + /** + * optional bool JLPHFLLOEAJ = 2; + * @return the jLPHFLLOEAJ + */ + public boolean getJLPHFLLOEAJ() { + return jLPHFLLOEAJ; + } + + /** + * optional bool JLPHFLLOEAJ = 2; + * @param value the jLPHFLLOEAJ to set + * @return this + */ + public OEEEAEJBENB setJLPHFLLOEAJ(final boolean value) { + bitField0_ |= 0x00000002; + jLPHFLLOEAJ = value; + return this; + } + + /** + * optional bool ODEJNPJBJAJ = 6; + * @return whether the oDEJNPJBJAJ field is set + */ + public boolean hasODEJNPJBJAJ() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool ODEJNPJBJAJ = 6; + * @return this + */ + public OEEEAEJBENB clearODEJNPJBJAJ() { + bitField0_ &= ~0x00000004; + oDEJNPJBJAJ = false; + return this; + } + + /** + * optional bool ODEJNPJBJAJ = 6; + * @return the oDEJNPJBJAJ + */ + public boolean getODEJNPJBJAJ() { + return oDEJNPJBJAJ; + } + + /** + * optional bool ODEJNPJBJAJ = 6; + * @param value the oDEJNPJBJAJ to set + * @return this + */ + public OEEEAEJBENB setODEJNPJBJAJ(final boolean value) { + bitField0_ |= 0x00000004; + oDEJNPJBJAJ = value; + return this; + } + + @Override + public OEEEAEJBENB copyFrom(final OEEEAEJBENB other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + aPOFJCCELFM = other.aPOFJCCELFM; + jLPHFLLOEAJ = other.jLPHFLLOEAJ; + oDEJNPJBJAJ = other.oDEJNPJBJAJ; + } + return this; + } + + @Override + public OEEEAEJBENB mergeFrom(final OEEEAEJBENB other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAPOFJCCELFM()) { + setAPOFJCCELFM(other.aPOFJCCELFM); + } + if (other.hasJLPHFLLOEAJ()) { + setJLPHFLLOEAJ(other.jLPHFLLOEAJ); + } + if (other.hasODEJNPJBJAJ()) { + setODEJNPJBJAJ(other.oDEJNPJBJAJ); + } + return this; + } + + @Override + public OEEEAEJBENB clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + aPOFJCCELFM = 0; + jLPHFLLOEAJ = false; + oDEJNPJBJAJ = false; + return this; + } + + @Override + public OEEEAEJBENB clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof OEEEAEJBENB)) { + return false; + } + OEEEAEJBENB other = (OEEEAEJBENB) o; + return bitField0_ == other.bitField0_ + && (!hasAPOFJCCELFM() || aPOFJCCELFM == other.aPOFJCCELFM) + && (!hasJLPHFLLOEAJ() || jLPHFLLOEAJ == other.jLPHFLLOEAJ) + && (!hasODEJNPJBJAJ() || oDEJNPJBJAJ == other.oDEJNPJBJAJ); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(aPOFJCCELFM); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(jLPHFLLOEAJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(oDEJNPJBJAJ); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(aPOFJCCELFM); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public OEEEAEJBENB mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // aPOFJCCELFM + aPOFJCCELFM = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // jLPHFLLOEAJ + jLPHFLLOEAJ = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // oDEJNPJBJAJ + oDEJNPJBJAJ = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.aPOFJCCELFM, aPOFJCCELFM); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.jLPHFLLOEAJ, jLPHFLLOEAJ); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.oDEJNPJBJAJ, oDEJNPJBJAJ); + } + output.endObject(); + } + + @Override + public OEEEAEJBENB mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 241680338: { + if (input.isAtField(FieldNames.aPOFJCCELFM)) { + if (!input.trySkipNullValue()) { + aPOFJCCELFM = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 429457867: { + if (input.isAtField(FieldNames.jLPHFLLOEAJ)) { + if (!input.trySkipNullValue()) { + jLPHFLLOEAJ = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2121908927: { + if (input.isAtField(FieldNames.oDEJNPJBJAJ)) { + if (!input.trySkipNullValue()) { + oDEJNPJBJAJ = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public OEEEAEJBENB clone() { + return new OEEEAEJBENB().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static OEEEAEJBENB parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new OEEEAEJBENB(), data).checkInitialized(); + } + + public static OEEEAEJBENB parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new OEEEAEJBENB(), input).checkInitialized(); + } + + public static OEEEAEJBENB parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new OEEEAEJBENB(), input).checkInitialized(); + } + + /** + * @return factory for creating OEEEAEJBENB messages + */ + public static MessageFactory getFactory() { + return OEEEAEJBENBFactory.INSTANCE; + } + + private enum OEEEAEJBENBFactory implements MessageFactory { + INSTANCE; + + @Override + public OEEEAEJBENB create() { + return OEEEAEJBENB.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName aPOFJCCELFM = FieldName.forField("APOFJCCELFM"); + + static final FieldName jLPHFLLOEAJ = FieldName.forField("JLPHFLLOEAJ"); + + static final FieldName oDEJNPJBJAJ = FieldName.forField("ODEJNPJBJAJ"); + } + } + private enum PlayerSettingInfoFactory implements MessageFactory { INSTANCE; @@ -756,19 +2273,37 @@ public final class PlayerSettingInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName displayRecordType = FieldName.forField("displayRecordType", "display_record_type"); + static final FieldName cOIGOCJHBOP = FieldName.forField("COIGOCJHBOP"); - static final FieldName b1 = FieldName.forField("b1"); + static final FieldName cHCNEDNCIDJ = FieldName.forField("CHCNEDNCIDJ"); - static final FieldName b4 = FieldName.forField("b4"); + static final FieldName lPEPIDNJDEM = FieldName.forField("LPEPIDNJDEM"); - static final FieldName b3 = FieldName.forField("b3"); + static final FieldName bKDCFBDMNIJ = FieldName.forField("BKDCFBDMNIJ"); - static final FieldName b6 = FieldName.forField("b6"); + static final FieldName pFJMEECGJMM = FieldName.forField("PFJMEECGJMM"); - static final FieldName b2 = FieldName.forField("b2"); + static final FieldName mFCPDJGGCMO = FieldName.forField("MFCPDJGGCMO"); - static final FieldName b5 = FieldName.forField("b5"); + static final FieldName cCNGHBADHBL = FieldName.forField("CCNGHBADHBL"); + + static final FieldName fIJNAPNICJF = FieldName.forField("FIJNAPNICJF"); + + static final FieldName nHLKFBOBDOM = FieldName.forField("NHLKFBOBDOM"); + + static final FieldName cPOGDKALGOM = FieldName.forField("CPOGDKALGOM"); + + static final FieldName lENKIEBIIHP = FieldName.forField("LENKIEBIIHP"); + + static final FieldName eJDGNLEOBCN = FieldName.forField("EJDGNLEOBCN"); + + static final FieldName kFBLHCCGEPO = FieldName.forField("KFBLHCCGEPO"); + + static final FieldName bMEHFMDNKLE = FieldName.forField("BMEHFMDNKLE"); + + static final FieldName unk2 = FieldName.forField("unk2"); + + static final FieldName unk1 = FieldName.forField("unk1"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSimpleInfoOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/PlayerSimpleInfoOuterClass.java index 3053839..2a1f94e 100644 --- a/src/generated/main/emu/lunarcore/proto/SimpleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSimpleInfoOuterClass.java @@ -13,246 +13,150 @@ import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedMessage; import us.hebi.quickbuf.Utf8String; -public final class SimpleInfoOuterClass { +public final class PlayerSimpleInfoOuterClass { /** - * Protobuf type {@code SimpleInfo} + * Protobuf type {@code PlayerSimpleInfo} */ - public static final class SimpleInfo extends ProtoMessage implements Cloneable { + public static final class PlayerSimpleInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional int64 last_active_time = 11; + * optional int64 logout_time = 9; */ - private long lastActiveTime; + private long logoutTime; /** - * optional uint32 chat_bubble_id = 5; - */ - private int chatBubbleId; - - /** - * optional uint32 head_icon = 8; - */ - private int headIcon; - - /** - * optional uint32 level = 12; - */ - private int level; - - /** - * optional uint32 uid = 15; + * optional uint32 uid = 5; */ private int uid; /** - * optional .PlatformType platform_type = 3; + * optional uint32 personal_card = 8; */ - private int platformType; + private int personalCard; /** - * optional .FriendOnlineStatus online_status = 14; + * optional uint32 chat_bubble = 11; + */ + private int chatBubble; + + /** + * optional uint32 head_icon = 12; + */ + private int headIcon; + + /** + * optional uint32 level = 14; + */ + private int level; + + /** + * optional .PlatformType platform = 7; + */ + private int platform; + + /** + * optional .FriendOnlineStatus online_status = 10; */ private int onlineStatus; /** - * optional bool is_banned = 4; + * optional bool is_banned = 13; */ private boolean isBanned; /** - * optional string signature = 6; - */ - private final Utf8String signature = Utf8String.newEmptyInstance(); - - /** - * optional string nickname = 7; + * optional string nickname = 1; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); /** - * repeated .AssistSimpleInfo assist_simple_info = 1; + * optional string signature = 2; */ - private final RepeatedMessage assistSimpleInfo = RepeatedMessage.newEmptyInstance(AssistSimpleInfoOuterClass.AssistSimpleInfo.getFactory()); + private final Utf8String signature = Utf8String.newEmptyInstance(); - private SimpleInfo() { + /** + * optional string platform_uuid = 3; + */ + private final Utf8String platformUuid = Utf8String.newEmptyInstance(); + + /** + * optional string platform_nick = 6; + */ + private final Utf8String platformNick = Utf8String.newEmptyInstance(); + + /** + * repeated .AssistSimpleInfo assist_info_list = 15; + */ + private final RepeatedMessage assistInfoList = RepeatedMessage.newEmptyInstance(AssistSimpleInfoOuterClass.AssistSimpleInfo.getFactory()); + + private PlayerSimpleInfo() { } /** - * @return a new empty instance of {@code SimpleInfo} + * @return a new empty instance of {@code PlayerSimpleInfo} */ - public static SimpleInfo newInstance() { - return new SimpleInfo(); + public static PlayerSimpleInfo newInstance() { + return new PlayerSimpleInfo(); } /** - * optional int64 last_active_time = 11; - * @return whether the lastActiveTime field is set + * optional int64 logout_time = 9; + * @return whether the logoutTime field is set */ - public boolean hasLastActiveTime() { + public boolean hasLogoutTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 last_active_time = 11; + * optional int64 logout_time = 9; * @return this */ - public SimpleInfo clearLastActiveTime() { + public PlayerSimpleInfo clearLogoutTime() { bitField0_ &= ~0x00000001; - lastActiveTime = 0L; + logoutTime = 0L; return this; } /** - * optional int64 last_active_time = 11; - * @return the lastActiveTime + * optional int64 logout_time = 9; + * @return the logoutTime */ - public long getLastActiveTime() { - return lastActiveTime; + public long getLogoutTime() { + return logoutTime; } /** - * optional int64 last_active_time = 11; - * @param value the lastActiveTime to set + * optional int64 logout_time = 9; + * @param value the logoutTime to set * @return this */ - public SimpleInfo setLastActiveTime(final long value) { + public PlayerSimpleInfo setLogoutTime(final long value) { bitField0_ |= 0x00000001; - lastActiveTime = value; + logoutTime = value; return this; } /** - * optional uint32 chat_bubble_id = 5; - * @return whether the chatBubbleId field is set + * optional uint32 uid = 5; + * @return whether the uid field is set */ - public boolean hasChatBubbleId() { + public boolean hasUid() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 chat_bubble_id = 5; + * optional uint32 uid = 5; * @return this */ - public SimpleInfo clearChatBubbleId() { + public PlayerSimpleInfo clearUid() { bitField0_ &= ~0x00000002; - chatBubbleId = 0; - return this; - } - - /** - * optional uint32 chat_bubble_id = 5; - * @return the chatBubbleId - */ - public int getChatBubbleId() { - return chatBubbleId; - } - - /** - * optional uint32 chat_bubble_id = 5; - * @param value the chatBubbleId to set - * @return this - */ - public SimpleInfo setChatBubbleId(final int value) { - bitField0_ |= 0x00000002; - chatBubbleId = value; - return this; - } - - /** - * optional uint32 head_icon = 8; - * @return whether the headIcon field is set - */ - public boolean hasHeadIcon() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 head_icon = 8; - * @return this - */ - public SimpleInfo clearHeadIcon() { - bitField0_ &= ~0x00000004; - headIcon = 0; - return this; - } - - /** - * optional uint32 head_icon = 8; - * @return the headIcon - */ - public int getHeadIcon() { - return headIcon; - } - - /** - * optional uint32 head_icon = 8; - * @param value the headIcon to set - * @return this - */ - public SimpleInfo setHeadIcon(final int value) { - bitField0_ |= 0x00000004; - headIcon = value; - return this; - } - - /** - * optional uint32 level = 12; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 level = 12; - * @return this - */ - public SimpleInfo clearLevel() { - bitField0_ &= ~0x00000008; - level = 0; - return this; - } - - /** - * optional uint32 level = 12; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 12; - * @param value the level to set - * @return this - */ - public SimpleInfo setLevel(final int value) { - bitField0_ |= 0x00000008; - level = value; - return this; - } - - /** - * optional uint32 uid = 15; - * @return whether the uid field is set - */ - public boolean hasUid() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 uid = 15; - * @return this - */ - public SimpleInfo clearUid() { - bitField0_ &= ~0x00000010; uid = 0; return this; } /** - * optional uint32 uid = 15; + * optional uint32 uid = 5; * @return the uid */ public int getUid() { @@ -260,98 +164,246 @@ public final class SimpleInfoOuterClass { } /** - * optional uint32 uid = 15; + * optional uint32 uid = 5; * @param value the uid to set * @return this */ - public SimpleInfo setUid(final int value) { - bitField0_ |= 0x00000010; + public PlayerSimpleInfo setUid(final int value) { + bitField0_ |= 0x00000002; uid = value; return this; } /** - * optional .PlatformType platform_type = 3; - * @return whether the platformType field is set + * optional uint32 personal_card = 8; + * @return whether the personalCard field is set */ - public boolean hasPlatformType() { - return (bitField0_ & 0x00000020) != 0; + public boolean hasPersonalCard() { + return (bitField0_ & 0x00000004) != 0; } /** - * optional .PlatformType platform_type = 3; + * optional uint32 personal_card = 8; * @return this */ - public SimpleInfo clearPlatformType() { - bitField0_ &= ~0x00000020; - platformType = 0; + public PlayerSimpleInfo clearPersonalCard() { + bitField0_ &= ~0x00000004; + personalCard = 0; return this; } /** - * optional .PlatformType platform_type = 3; - * @return the platformType + * optional uint32 personal_card = 8; + * @return the personalCard */ - public PlatformTypeOuterClass.PlatformType getPlatformType() { - return PlatformTypeOuterClass.PlatformType.forNumber(platformType); + public int getPersonalCard() { + return personalCard; + } + + /** + * optional uint32 personal_card = 8; + * @param value the personalCard to set + * @return this + */ + public PlayerSimpleInfo setPersonalCard(final int value) { + bitField0_ |= 0x00000004; + personalCard = value; + return this; + } + + /** + * optional uint32 chat_bubble = 11; + * @return whether the chatBubble field is set + */ + public boolean hasChatBubble() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 chat_bubble = 11; + * @return this + */ + public PlayerSimpleInfo clearChatBubble() { + bitField0_ &= ~0x00000008; + chatBubble = 0; + return this; + } + + /** + * optional uint32 chat_bubble = 11; + * @return the chatBubble + */ + public int getChatBubble() { + return chatBubble; + } + + /** + * optional uint32 chat_bubble = 11; + * @param value the chatBubble to set + * @return this + */ + public PlayerSimpleInfo setChatBubble(final int value) { + bitField0_ |= 0x00000008; + chatBubble = value; + return this; + } + + /** + * optional uint32 head_icon = 12; + * @return whether the headIcon field is set + */ + public boolean hasHeadIcon() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 head_icon = 12; + * @return this + */ + public PlayerSimpleInfo clearHeadIcon() { + bitField0_ &= ~0x00000010; + headIcon = 0; + return this; + } + + /** + * optional uint32 head_icon = 12; + * @return the headIcon + */ + public int getHeadIcon() { + return headIcon; + } + + /** + * optional uint32 head_icon = 12; + * @param value the headIcon to set + * @return this + */ + public PlayerSimpleInfo setHeadIcon(final int value) { + bitField0_ |= 0x00000010; + headIcon = value; + return this; + } + + /** + * optional uint32 level = 14; + * @return whether the level field is set + */ + public boolean hasLevel() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 level = 14; + * @return this + */ + public PlayerSimpleInfo clearLevel() { + bitField0_ &= ~0x00000020; + level = 0; + return this; + } + + /** + * optional uint32 level = 14; + * @return the level + */ + public int getLevel() { + return level; + } + + /** + * optional uint32 level = 14; + * @param value the level to set + * @return this + */ + public PlayerSimpleInfo setLevel(final int value) { + bitField0_ |= 0x00000020; + level = value; + return this; + } + + /** + * optional .PlatformType platform = 7; + * @return whether the platform field is set + */ + public boolean hasPlatform() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional .PlatformType platform = 7; + * @return this + */ + public PlayerSimpleInfo clearPlatform() { + bitField0_ &= ~0x00000040; + platform = 0; + return this; + } + + /** + * optional .PlatformType platform = 7; + * @return the platform + */ + public PlatformTypeOuterClass.PlatformType getPlatform() { + return PlatformTypeOuterClass.PlatformType.forNumber(platform); } /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SimpleInfo#getPlatformType()}.getNumber(). + * equivalent to {@link PlayerSimpleInfo#getPlatform()}.getNumber(). * * @return numeric wire representation */ - public int getPlatformTypeValue() { - return platformType; + public int getPlatformValue() { + return platform; } /** * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value * constants from {@link PlatformTypeOuterClass.PlatformType}. Setting an invalid value - * can cause {@link SimpleInfo#getPlatformType()} to return null + * can cause {@link PlayerSimpleInfo#getPlatform()} to return null * * @param value the numeric wire value to set * @return this */ - public SimpleInfo setPlatformTypeValue(final int value) { - bitField0_ |= 0x00000020; - platformType = value; + public PlayerSimpleInfo setPlatformValue(final int value) { + bitField0_ |= 0x00000040; + platform = value; return this; } /** - * optional .PlatformType platform_type = 3; - * @param value the platformType to set + * optional .PlatformType platform = 7; + * @param value the platform to set * @return this */ - public SimpleInfo setPlatformType(final PlatformTypeOuterClass.PlatformType value) { - bitField0_ |= 0x00000020; - platformType = value.getNumber(); + public PlayerSimpleInfo setPlatform(final PlatformTypeOuterClass.PlatformType value) { + bitField0_ |= 0x00000040; + platform = value.getNumber(); return this; } /** - * optional .FriendOnlineStatus online_status = 14; + * optional .FriendOnlineStatus online_status = 10; * @return whether the onlineStatus field is set */ public boolean hasOnlineStatus() { - return (bitField0_ & 0x00000040) != 0; + return (bitField0_ & 0x00000080) != 0; } /** - * optional .FriendOnlineStatus online_status = 14; + * optional .FriendOnlineStatus online_status = 10; * @return this */ - public SimpleInfo clearOnlineStatus() { - bitField0_ &= ~0x00000040; + public PlayerSimpleInfo clearOnlineStatus() { + bitField0_ &= ~0x00000080; onlineStatus = 0; return this; } /** - * optional .FriendOnlineStatus online_status = 14; + * optional .FriendOnlineStatus online_status = 10; * @return the onlineStatus */ public FriendOnlineStatusOuterClass.FriendOnlineStatus getOnlineStatus() { @@ -360,7 +412,7 @@ public final class SimpleInfoOuterClass { /** * Gets the value of the internal enum store. The result is - * equivalent to {@link SimpleInfo#getOnlineStatus()}.getNumber(). + * equivalent to {@link PlayerSimpleInfo#getOnlineStatus()}.getNumber(). * * @return numeric wire representation */ @@ -372,48 +424,49 @@ public final class SimpleInfoOuterClass { * Sets the value of the internal enum store. This does not * do any validity checks, so be sure to use appropriate value * constants from {@link FriendOnlineStatusOuterClass.FriendOnlineStatus}. Setting an invalid value - * can cause {@link SimpleInfo#getOnlineStatus()} to return null + * can cause {@link PlayerSimpleInfo#getOnlineStatus()} to return null * * @param value the numeric wire value to set * @return this */ - public SimpleInfo setOnlineStatusValue(final int value) { - bitField0_ |= 0x00000040; + public PlayerSimpleInfo setOnlineStatusValue(final int value) { + bitField0_ |= 0x00000080; onlineStatus = value; return this; } /** - * optional .FriendOnlineStatus online_status = 14; + * optional .FriendOnlineStatus online_status = 10; * @param value the onlineStatus to set * @return this */ - public SimpleInfo setOnlineStatus(final FriendOnlineStatusOuterClass.FriendOnlineStatus value) { - bitField0_ |= 0x00000040; + public PlayerSimpleInfo setOnlineStatus( + final FriendOnlineStatusOuterClass.FriendOnlineStatus value) { + bitField0_ |= 0x00000080; onlineStatus = value.getNumber(); return this; } /** - * optional bool is_banned = 4; + * optional bool is_banned = 13; * @return whether the isBanned field is set */ public boolean hasIsBanned() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000100) != 0; } /** - * optional bool is_banned = 4; + * optional bool is_banned = 13; * @return this */ - public SimpleInfo clearIsBanned() { - bitField0_ &= ~0x00000080; + public PlayerSimpleInfo clearIsBanned() { + bitField0_ &= ~0x00000100; isBanned = false; return this; } /** - * optional bool is_banned = 4; + * optional bool is_banned = 13; * @return the isBanned */ public boolean getIsBanned() { @@ -421,83 +474,18 @@ public final class SimpleInfoOuterClass { } /** - * optional bool is_banned = 4; + * optional bool is_banned = 13; * @param value the isBanned to set * @return this */ - public SimpleInfo setIsBanned(final boolean value) { - bitField0_ |= 0x00000080; + public PlayerSimpleInfo setIsBanned(final boolean value) { + bitField0_ |= 0x00000100; isBanned = value; return this; } /** - * optional string signature = 6; - * @return whether the signature field is set - */ - public boolean hasSignature() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * optional string signature = 6; - * @return this - */ - public SimpleInfo clearSignature() { - bitField0_ &= ~0x00000100; - signature.clear(); - return this; - } - - /** - * optional string signature = 6; - * @return the signature - */ - public String getSignature() { - return signature.getString(); - } - - /** - * optional string signature = 6; - * @return internal {@code Utf8String} representation of signature for reading - */ - public Utf8String getSignatureBytes() { - return this.signature; - } - - /** - * optional string signature = 6; - * @return internal {@code Utf8String} representation of signature for modifications - */ - public Utf8String getMutableSignatureBytes() { - bitField0_ |= 0x00000100; - return this.signature; - } - - /** - * optional string signature = 6; - * @param value the signature to set - * @return this - */ - public SimpleInfo setSignature(final CharSequence value) { - bitField0_ |= 0x00000100; - signature.copyFrom(value); - return this; - } - - /** - * optional string signature = 6; - * @param value the signature to set - * @return this - */ - public SimpleInfo setSignature(final Utf8String value) { - bitField0_ |= 0x00000100; - signature.copyFrom(value); - return this; - } - - /** - * optional string nickname = 7; + * optional string nickname = 1; * @return whether the nickname field is set */ public boolean hasNickname() { @@ -505,17 +493,17 @@ public final class SimpleInfoOuterClass { } /** - * optional string nickname = 7; + * optional string nickname = 1; * @return this */ - public SimpleInfo clearNickname() { + public PlayerSimpleInfo clearNickname() { bitField0_ &= ~0x00000200; nickname.clear(); return this; } /** - * optional string nickname = 7; + * optional string nickname = 1; * @return the nickname */ public String getNickname() { @@ -523,7 +511,7 @@ public final class SimpleInfoOuterClass { } /** - * optional string nickname = 7; + * optional string nickname = 1; * @return internal {@code Utf8String} representation of nickname for reading */ public Utf8String getNicknameBytes() { @@ -531,7 +519,7 @@ public final class SimpleInfoOuterClass { } /** - * optional string nickname = 7; + * optional string nickname = 1; * @return internal {@code Utf8String} representation of nickname for modifications */ public Utf8String getMutableNicknameBytes() { @@ -540,61 +528,256 @@ public final class SimpleInfoOuterClass { } /** - * optional string nickname = 7; + * optional string nickname = 1; * @param value the nickname to set * @return this */ - public SimpleInfo setNickname(final CharSequence value) { + public PlayerSimpleInfo setNickname(final CharSequence value) { bitField0_ |= 0x00000200; nickname.copyFrom(value); return this; } /** - * optional string nickname = 7; + * optional string nickname = 1; * @param value the nickname to set * @return this */ - public SimpleInfo setNickname(final Utf8String value) { + public PlayerSimpleInfo setNickname(final Utf8String value) { bitField0_ |= 0x00000200; nickname.copyFrom(value); return this; } /** - * repeated .AssistSimpleInfo assist_simple_info = 1; - * @return whether the assistSimpleInfo field is set + * optional string signature = 2; + * @return whether the signature field is set */ - public boolean hasAssistSimpleInfo() { + public boolean hasSignature() { return (bitField0_ & 0x00000400) != 0; } /** - * repeated .AssistSimpleInfo assist_simple_info = 1; + * optional string signature = 2; * @return this */ - public SimpleInfo clearAssistSimpleInfo() { + public PlayerSimpleInfo clearSignature() { bitField0_ &= ~0x00000400; - assistSimpleInfo.clear(); + signature.clear(); return this; } /** - * repeated .AssistSimpleInfo assist_simple_info = 1; + * optional string signature = 2; + * @return the signature + */ + public String getSignature() { + return signature.getString(); + } + + /** + * optional string signature = 2; + * @return internal {@code Utf8String} representation of signature for reading + */ + public Utf8String getSignatureBytes() { + return this.signature; + } + + /** + * optional string signature = 2; + * @return internal {@code Utf8String} representation of signature for modifications + */ + public Utf8String getMutableSignatureBytes() { + bitField0_ |= 0x00000400; + return this.signature; + } + + /** + * optional string signature = 2; + * @param value the signature to set + * @return this + */ + public PlayerSimpleInfo setSignature(final CharSequence value) { + bitField0_ |= 0x00000400; + signature.copyFrom(value); + return this; + } + + /** + * optional string signature = 2; + * @param value the signature to set + * @return this + */ + public PlayerSimpleInfo setSignature(final Utf8String value) { + bitField0_ |= 0x00000400; + signature.copyFrom(value); + return this; + } + + /** + * optional string platform_uuid = 3; + * @return whether the platformUuid field is set + */ + public boolean hasPlatformUuid() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * optional string platform_uuid = 3; + * @return this + */ + public PlayerSimpleInfo clearPlatformUuid() { + bitField0_ &= ~0x00000800; + platformUuid.clear(); + return this; + } + + /** + * optional string platform_uuid = 3; + * @return the platformUuid + */ + public String getPlatformUuid() { + return platformUuid.getString(); + } + + /** + * optional string platform_uuid = 3; + * @return internal {@code Utf8String} representation of platformUuid for reading + */ + public Utf8String getPlatformUuidBytes() { + return this.platformUuid; + } + + /** + * optional string platform_uuid = 3; + * @return internal {@code Utf8String} representation of platformUuid for modifications + */ + public Utf8String getMutablePlatformUuidBytes() { + bitField0_ |= 0x00000800; + return this.platformUuid; + } + + /** + * optional string platform_uuid = 3; + * @param value the platformUuid to set + * @return this + */ + public PlayerSimpleInfo setPlatformUuid(final CharSequence value) { + bitField0_ |= 0x00000800; + platformUuid.copyFrom(value); + return this; + } + + /** + * optional string platform_uuid = 3; + * @param value the platformUuid to set + * @return this + */ + public PlayerSimpleInfo setPlatformUuid(final Utf8String value) { + bitField0_ |= 0x00000800; + platformUuid.copyFrom(value); + return this; + } + + /** + * optional string platform_nick = 6; + * @return whether the platformNick field is set + */ + public boolean hasPlatformNick() { + return (bitField0_ & 0x00001000) != 0; + } + + /** + * optional string platform_nick = 6; + * @return this + */ + public PlayerSimpleInfo clearPlatformNick() { + bitField0_ &= ~0x00001000; + platformNick.clear(); + return this; + } + + /** + * optional string platform_nick = 6; + * @return the platformNick + */ + public String getPlatformNick() { + return platformNick.getString(); + } + + /** + * optional string platform_nick = 6; + * @return internal {@code Utf8String} representation of platformNick for reading + */ + public Utf8String getPlatformNickBytes() { + return this.platformNick; + } + + /** + * optional string platform_nick = 6; + * @return internal {@code Utf8String} representation of platformNick for modifications + */ + public Utf8String getMutablePlatformNickBytes() { + bitField0_ |= 0x00001000; + return this.platformNick; + } + + /** + * optional string platform_nick = 6; + * @param value the platformNick to set + * @return this + */ + public PlayerSimpleInfo setPlatformNick(final CharSequence value) { + bitField0_ |= 0x00001000; + platformNick.copyFrom(value); + return this; + } + + /** + * optional string platform_nick = 6; + * @param value the platformNick to set + * @return this + */ + public PlayerSimpleInfo setPlatformNick(final Utf8String value) { + bitField0_ |= 0x00001000; + platformNick.copyFrom(value); + return this; + } + + /** + * repeated .AssistSimpleInfo assist_info_list = 15; + * @return whether the assistInfoList field is set + */ + public boolean hasAssistInfoList() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * repeated .AssistSimpleInfo assist_info_list = 15; + * @return this + */ + public PlayerSimpleInfo clearAssistInfoList() { + bitField0_ &= ~0x00002000; + assistInfoList.clear(); + return this; + } + + /** + * repeated .AssistSimpleInfo assist_info_list = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableAssistSimpleInfo()} if you want to modify it. + * Use {@link #getMutableAssistInfoList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getAssistSimpleInfo() { - return assistSimpleInfo; + public RepeatedMessage getAssistInfoList() { + return assistInfoList; } /** - * repeated .AssistSimpleInfo assist_simple_info = 1; + * repeated .AssistSimpleInfo assist_info_list = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -602,66 +785,75 @@ public final class SimpleInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableAssistSimpleInfo( - ) { - bitField0_ |= 0x00000400; - return assistSimpleInfo; + public RepeatedMessage getMutableAssistInfoList() { + bitField0_ |= 0x00002000; + return assistInfoList; } /** - * repeated .AssistSimpleInfo assist_simple_info = 1; - * @param value the assistSimpleInfo to add + * repeated .AssistSimpleInfo assist_info_list = 15; + * @param value the assistInfoList to add * @return this */ - public SimpleInfo addAssistSimpleInfo(final AssistSimpleInfoOuterClass.AssistSimpleInfo value) { - bitField0_ |= 0x00000400; - assistSimpleInfo.add(value); + public PlayerSimpleInfo addAssistInfoList( + final AssistSimpleInfoOuterClass.AssistSimpleInfo value) { + bitField0_ |= 0x00002000; + assistInfoList.add(value); return this; } /** - * repeated .AssistSimpleInfo assist_simple_info = 1; - * @param values the assistSimpleInfo to add + * repeated .AssistSimpleInfo assist_info_list = 15; + * @param values the assistInfoList to add * @return this */ - public SimpleInfo addAllAssistSimpleInfo( + public PlayerSimpleInfo addAllAssistInfoList( final AssistSimpleInfoOuterClass.AssistSimpleInfo... values) { - bitField0_ |= 0x00000400; - assistSimpleInfo.addAll(values); + bitField0_ |= 0x00002000; + assistInfoList.addAll(values); return this; } @Override - public SimpleInfo copyFrom(final SimpleInfo other) { + public PlayerSimpleInfo copyFrom(final PlayerSimpleInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - lastActiveTime = other.lastActiveTime; - chatBubbleId = other.chatBubbleId; + logoutTime = other.logoutTime; + uid = other.uid; + personalCard = other.personalCard; + chatBubble = other.chatBubble; headIcon = other.headIcon; level = other.level; - uid = other.uid; - platformType = other.platformType; + platform = other.platform; onlineStatus = other.onlineStatus; isBanned = other.isBanned; - signature.copyFrom(other.signature); nickname.copyFrom(other.nickname); - assistSimpleInfo.copyFrom(other.assistSimpleInfo); + signature.copyFrom(other.signature); + platformUuid.copyFrom(other.platformUuid); + platformNick.copyFrom(other.platformNick); + assistInfoList.copyFrom(other.assistInfoList); } return this; } @Override - public SimpleInfo mergeFrom(final SimpleInfo other) { + public PlayerSimpleInfo mergeFrom(final PlayerSimpleInfo other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasLastActiveTime()) { - setLastActiveTime(other.lastActiveTime); + if (other.hasLogoutTime()) { + setLogoutTime(other.logoutTime); } - if (other.hasChatBubbleId()) { - setChatBubbleId(other.chatBubbleId); + if (other.hasUid()) { + setUid(other.uid); + } + if (other.hasPersonalCard()) { + setPersonalCard(other.personalCard); + } + if (other.hasChatBubble()) { + setChatBubble(other.chatBubble); } if (other.hasHeadIcon()) { setHeadIcon(other.headIcon); @@ -669,11 +861,8 @@ public final class SimpleInfoOuterClass { if (other.hasLevel()) { setLevel(other.level); } - if (other.hasUid()) { - setUid(other.uid); - } - if (other.hasPlatformType()) { - setPlatformTypeValue(other.platformType); + if (other.hasPlatform()) { + setPlatformValue(other.platform); } if (other.hasOnlineStatus()) { setOnlineStatusValue(other.onlineStatus); @@ -681,49 +870,60 @@ public final class SimpleInfoOuterClass { if (other.hasIsBanned()) { setIsBanned(other.isBanned); } - if (other.hasSignature()) { - getMutableSignatureBytes().copyFrom(other.signature); - } if (other.hasNickname()) { getMutableNicknameBytes().copyFrom(other.nickname); } - if (other.hasAssistSimpleInfo()) { - getMutableAssistSimpleInfo().addAll(other.assistSimpleInfo); + if (other.hasSignature()) { + getMutableSignatureBytes().copyFrom(other.signature); + } + if (other.hasPlatformUuid()) { + getMutablePlatformUuidBytes().copyFrom(other.platformUuid); + } + if (other.hasPlatformNick()) { + getMutablePlatformNickBytes().copyFrom(other.platformNick); + } + if (other.hasAssistInfoList()) { + getMutableAssistInfoList().addAll(other.assistInfoList); } return this; } @Override - public SimpleInfo clear() { + public PlayerSimpleInfo clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - lastActiveTime = 0L; - chatBubbleId = 0; + logoutTime = 0L; + uid = 0; + personalCard = 0; + chatBubble = 0; headIcon = 0; level = 0; - uid = 0; - platformType = 0; + platform = 0; onlineStatus = 0; isBanned = false; - signature.clear(); nickname.clear(); - assistSimpleInfo.clear(); + signature.clear(); + platformUuid.clear(); + platformNick.clear(); + assistInfoList.clear(); return this; } @Override - public SimpleInfo clearQuick() { + public PlayerSimpleInfo clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - signature.clear(); nickname.clear(); - assistSimpleInfo.clearQuick(); + signature.clear(); + platformUuid.clear(); + platformNick.clear(); + assistInfoList.clearQuick(); return this; } @@ -732,70 +932,85 @@ public final class SimpleInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof SimpleInfo)) { + if (!(o instanceof PlayerSimpleInfo)) { return false; } - SimpleInfo other = (SimpleInfo) o; + PlayerSimpleInfo other = (PlayerSimpleInfo) o; return bitField0_ == other.bitField0_ - && (!hasLastActiveTime() || lastActiveTime == other.lastActiveTime) - && (!hasChatBubbleId() || chatBubbleId == other.chatBubbleId) + && (!hasLogoutTime() || logoutTime == other.logoutTime) + && (!hasUid() || uid == other.uid) + && (!hasPersonalCard() || personalCard == other.personalCard) + && (!hasChatBubble() || chatBubble == other.chatBubble) && (!hasHeadIcon() || headIcon == other.headIcon) && (!hasLevel() || level == other.level) - && (!hasUid() || uid == other.uid) - && (!hasPlatformType() || platformType == other.platformType) + && (!hasPlatform() || platform == other.platform) && (!hasOnlineStatus() || onlineStatus == other.onlineStatus) && (!hasIsBanned() || isBanned == other.isBanned) - && (!hasSignature() || signature.equals(other.signature)) && (!hasNickname() || nickname.equals(other.nickname)) - && (!hasAssistSimpleInfo() || assistSimpleInfo.equals(other.assistSimpleInfo)); + && (!hasSignature() || signature.equals(other.signature)) + && (!hasPlatformUuid() || platformUuid.equals(other.platformUuid)) + && (!hasPlatformNick() || platformNick.equals(other.platformNick)) + && (!hasAssistInfoList() || assistInfoList.equals(other.assistInfoList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeInt64NoTag(lastActiveTime); + output.writeRawByte((byte) 72); + output.writeInt64NoTag(logoutTime); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); - output.writeUInt32NoTag(chatBubbleId); + output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 64); - output.writeUInt32NoTag(headIcon); + output.writeUInt32NoTag(personalCard); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(level); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(chatBubble); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(uid); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(headIcon); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 24); - output.writeEnumNoTag(platformType); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 112); - output.writeEnumNoTag(onlineStatus); + output.writeRawByte((byte) 56); + output.writeEnumNoTag(platform); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 32); - output.writeBoolNoTag(isBanned); + output.writeRawByte((byte) 80); + output.writeEnumNoTag(onlineStatus); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 50); - output.writeStringNoTag(signature); + output.writeRawByte((byte) 104); + output.writeBoolNoTag(isBanned); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 10); output.writeStringNoTag(nickname); } if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < assistSimpleInfo.length(); i++) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(assistSimpleInfo.get(i)); + output.writeRawByte((byte) 18); + output.writeStringNoTag(signature); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRawByte((byte) 26); + output.writeStringNoTag(platformUuid); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeRawByte((byte) 50); + output.writeStringNoTag(platformNick); + } + if ((bitField0_ & 0x00002000) != 0) { + for (int i = 0; i < assistInfoList.length(); i++) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(assistInfoList.get(i)); } } } @@ -804,51 +1019,60 @@ public final class SimpleInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(lastActiveTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(logoutTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(chatBubbleId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(personalCard); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chatBubble); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(headIcon); + } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(platformType); + size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus); + size += 1 + ProtoSink.computeEnumSizeNoTag(platform); } if ((bitField0_ & 0x00000080) != 0) { - size += 2; + size += 1 + ProtoSink.computeEnumSizeNoTag(onlineStatus); } if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(signature); + size += 2; } if ((bitField0_ & 0x00000200) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(nickname); } if ((bitField0_ & 0x00000400) != 0) { - size += (1 * assistSimpleInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assistSimpleInfo); + size += 1 + ProtoSink.computeStringSizeNoTag(signature); + } + if ((bitField0_ & 0x00000800) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(platformUuid); + } + if ((bitField0_ & 0x00001000) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(platformNick); + } + if ((bitField0_ & 0x00002000) != 0) { + size += (1 * assistInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(assistInfoList); } return size; } @Override @SuppressWarnings("fallthrough") - public SimpleInfo mergeFrom(final ProtoSource input) throws IOException { + public PlayerSimpleInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // lastActiveTime - lastActiveTime = input.readInt64(); + case 72: { + // logoutTime + logoutTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 40) { @@ -856,8 +1080,8 @@ public final class SimpleInfoOuterClass { } } case 40: { - // chatBubbleId - chatBubbleId = input.readUInt32(); + // uid + uid = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 64) { @@ -865,87 +1089,114 @@ public final class SimpleInfoOuterClass { } } case 64: { - // headIcon - headIcon = input.readUInt32(); + // personalCard + personalCard = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // chatBubble + chatBubble = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // uid - uid = input.readUInt32(); + // headIcon + headIcon = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // platformType - final int value = input.readInt32(); - if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { - platformType = value; - bitField0_ |= 0x00000020; - } - tag = input.readTag(); if (tag != 112) { break; } } case 112: { + // level + level = input.readUInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // platform + final int value = input.readInt32(); + if (PlatformTypeOuterClass.PlatformType.forNumber(value) != null) { + platform = value; + bitField0_ |= 0x00000040; + } + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { // onlineStatus final int value = input.readInt32(); if (FriendOnlineStatusOuterClass.FriendOnlineStatus.forNumber(value) != null) { onlineStatus = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } tag = input.readTag(); - if (tag != 32) { + if (tag != 104) { break; } } - case 32: { + case 104: { // isBanned isBanned = input.readBool(); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // signature - input.readString(signature); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // nickname - input.readString(nickname); - bitField0_ |= 0x00000200; - tag = input.readTag(); if (tag != 10) { break; } } case 10: { - // assistSimpleInfo - tag = input.readRepeatedMessage(assistSimpleInfo, tag); + // nickname + input.readString(nickname); + bitField0_ |= 0x00000200; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // signature + input.readString(signature); bitField0_ |= 0x00000400; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // platformUuid + input.readString(platformUuid); + bitField0_ |= 0x00000800; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { + // platformNick + input.readString(platformNick); + bitField0_ |= 0x00001000; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // assistInfoList + tag = input.readRepeatedMessage(assistInfoList, tag); + bitField0_ |= 0x00002000; if (tag != 0) { break; } @@ -968,53 +1219,62 @@ public final class SimpleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.lastActiveTime, lastActiveTime); + output.writeInt64(FieldNames.logoutTime, logoutTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.chatBubbleId, chatBubbleId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.headIcon, headIcon); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.level, level); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.uid, uid); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.personalCard, personalCard); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.chatBubble, chatBubble); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.headIcon, headIcon); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.platformType, platformType, PlatformTypeOuterClass.PlatformType.converter()); + output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000040) != 0) { - output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); + output.writeEnum(FieldNames.platform, platform, PlatformTypeOuterClass.PlatformType.converter()); } if ((bitField0_ & 0x00000080) != 0) { - output.writeBool(FieldNames.isBanned, isBanned); + output.writeEnum(FieldNames.onlineStatus, onlineStatus, FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); } if ((bitField0_ & 0x00000100) != 0) { - output.writeString(FieldNames.signature, signature); + output.writeBool(FieldNames.isBanned, isBanned); } if ((bitField0_ & 0x00000200) != 0) { output.writeString(FieldNames.nickname, nickname); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.assistSimpleInfo, assistSimpleInfo); + output.writeString(FieldNames.signature, signature); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeString(FieldNames.platformUuid, platformUuid); + } + if ((bitField0_ & 0x00001000) != 0) { + output.writeString(FieldNames.platformNick, platformNick); + } + if ((bitField0_ & 0x00002000) != 0) { + output.writeRepeatedMessage(FieldNames.assistInfoList, assistInfoList); } output.endObject(); } @Override - public SimpleInfo mergeFrom(final JsonSource input) throws IOException { + public PlayerSimpleInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2041905623: - case 1542438973: { - if (input.isAtField(FieldNames.lastActiveTime)) { + case -498727049: + case 1729813602: { + if (input.isAtField(FieldNames.logoutTime)) { if (!input.trySkipNullValue()) { - lastActiveTime = input.readInt64(); + logoutTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -1022,11 +1282,10 @@ public final class SimpleInfoOuterClass { } break; } - case -678761921: - case 1892426119: { - if (input.isAtField(FieldNames.chatBubbleId)) { + case 115792: { + if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { - chatBubbleId = input.readUInt32(); + uid = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -1034,12 +1293,36 @@ public final class SimpleInfoOuterClass { } break; } + case -259197584: + case 580711855: { + if (input.isAtField(FieldNames.personalCard)) { + if (!input.trySkipNullValue()) { + personalCard = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2145955324: + case 1636248403: { + if (input.isAtField(FieldNames.chatBubble)) { + if (!input.trySkipNullValue()) { + chatBubble = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case -1116107143: case -219098248: { if (input.isAtField(FieldNames.headIcon)) { if (!input.trySkipNullValue()) { headIcon = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -1050,32 +1333,20 @@ public final class SimpleInfoOuterClass { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); } break; } - case 115792: { - if (input.isAtField(FieldNames.uid)) { - if (!input.trySkipNullValue()) { - uid = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 155581005: - case 538062726: { - if (input.isAtField(FieldNames.platformType)) { + case 1874684019: { + if (input.isAtField(FieldNames.platform)) { if (!input.trySkipNullValue()) { final PlatformTypeOuterClass.PlatformType value = input.readEnum(PlatformTypeOuterClass.PlatformType.converter()); if (value != null) { - platformType = value.getNumber(); - bitField0_ |= 0x00000020; + platform = value.getNumber(); + bitField0_ |= 0x00000040; } else { input.skipUnknownEnumValue(); } @@ -1092,7 +1363,7 @@ public final class SimpleInfoOuterClass { final FriendOnlineStatusOuterClass.FriendOnlineStatus value = input.readEnum(FriendOnlineStatusOuterClass.FriendOnlineStatus.converter()); if (value != null) { onlineStatus = value.getNumber(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } else { input.skipUnknownEnumValue(); } @@ -1107,17 +1378,6 @@ public final class SimpleInfoOuterClass { if (input.isAtField(FieldNames.isBanned)) { if (!input.trySkipNullValue()) { isBanned = input.readBool(); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1073584312: { - if (input.isAtField(FieldNames.signature)) { - if (!input.trySkipNullValue()) { - input.readString(signature); bitField0_ |= 0x00000100; } } else { @@ -1136,11 +1396,10 @@ public final class SimpleInfoOuterClass { } break; } - case 773591241: - case -143608251: { - if (input.isAtField(FieldNames.assistSimpleInfo)) { + case 1073584312: { + if (input.isAtField(FieldNames.signature)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(assistSimpleInfo); + input.readString(signature); bitField0_ |= 0x00000400; } } else { @@ -1148,6 +1407,42 @@ public final class SimpleInfoOuterClass { } break; } + case 155606734: + case 538088455: { + if (input.isAtField(FieldNames.platformUuid)) { + if (!input.trySkipNullValue()) { + input.readString(platformUuid); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + case 155386486: + case 537868207: { + if (input.isAtField(FieldNames.platformNick)) { + if (!input.trySkipNullValue()) { + input.readString(platformNick); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 988934133: + case -45478087: { + if (input.isAtField(FieldNames.assistInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(assistInfoList); + bitField0_ |= 0x00002000; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -1159,8 +1454,8 @@ public final class SimpleInfoOuterClass { } @Override - public SimpleInfo clone() { - return new SimpleInfo().copyFrom(this); + public PlayerSimpleInfo clone() { + return new PlayerSimpleInfo().copyFrom(this); } @Override @@ -1168,31 +1463,32 @@ public final class SimpleInfoOuterClass { return ((bitField0_) == 0); } - public static SimpleInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SimpleInfo(), data).checkInitialized(); + public static PlayerSimpleInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PlayerSimpleInfo(), data).checkInitialized(); } - public static SimpleInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SimpleInfo(), input).checkInitialized(); + public static PlayerSimpleInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSimpleInfo(), input).checkInitialized(); } - public static SimpleInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SimpleInfo(), input).checkInitialized(); + public static PlayerSimpleInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PlayerSimpleInfo(), input).checkInitialized(); } /** - * @return factory for creating SimpleInfo messages + * @return factory for creating PlayerSimpleInfo messages */ - public static MessageFactory getFactory() { - return SimpleInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return PlayerSimpleInfoFactory.INSTANCE; } - private enum SimpleInfoFactory implements MessageFactory { + private enum PlayerSimpleInfoFactory implements MessageFactory { INSTANCE; @Override - public SimpleInfo create() { - return SimpleInfo.newInstance(); + public PlayerSimpleInfo create() { + return PlayerSimpleInfo.newInstance(); } } @@ -1200,27 +1496,33 @@ public final class SimpleInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName lastActiveTime = FieldName.forField("lastActiveTime", "last_active_time"); + static final FieldName logoutTime = FieldName.forField("logoutTime", "logout_time"); - static final FieldName chatBubbleId = FieldName.forField("chatBubbleId", "chat_bubble_id"); + static final FieldName uid = FieldName.forField("uid"); + + static final FieldName personalCard = FieldName.forField("personalCard", "personal_card"); + + static final FieldName chatBubble = FieldName.forField("chatBubble", "chat_bubble"); static final FieldName headIcon = FieldName.forField("headIcon", "head_icon"); static final FieldName level = FieldName.forField("level"); - static final FieldName uid = FieldName.forField("uid"); - - static final FieldName platformType = FieldName.forField("platformType", "platform_type"); + static final FieldName platform = FieldName.forField("platform"); static final FieldName onlineStatus = FieldName.forField("onlineStatus", "online_status"); static final FieldName isBanned = FieldName.forField("isBanned", "is_banned"); - static final FieldName signature = FieldName.forField("signature"); - static final FieldName nickname = FieldName.forField("nickname"); - static final FieldName assistSimpleInfo = FieldName.forField("assistSimpleInfo", "assist_simple_info"); + static final FieldName signature = FieldName.forField("signature"); + + static final FieldName platformUuid = FieldName.forField("platformUuid", "platform_uuid"); + + static final FieldName platformNick = FieldName.forField("platformNick", "platform_nick"); + + static final FieldName assistInfoList = FieldName.forField("assistInfoList", "assist_info_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java index a8aca86..9579fef 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayerSyncScNotifyOuterClass.java @@ -21,59 +21,59 @@ public final class PlayerSyncScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 total_achievement_exp = 1522; + * optional uint32 total_achievement_exp = 1013; */ private int totalAchievementExp; /** - * optional .PlayerBasicInfo basic_info = 4; - */ - private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); - - /** - * optional .MissionSync mission_sync = 9; - */ - private final MissionSyncOuterClass.MissionSync missionSync = MissionSyncOuterClass.MissionSync.newInstance(); - - /** - * optional .AvatarSync avatar_sync = 10; + * optional .AvatarSync avatar_sync = 1; */ private final AvatarSyncOuterClass.AvatarSync avatarSync = AvatarSyncOuterClass.AvatarSync.newInstance(); /** - * optional .BoardDataSync board_data_sync = 1273; + * optional .PlayerBasicInfo basic_info = 14; + */ + private final PlayerBasicInfoOuterClass.PlayerBasicInfo basicInfo = PlayerBasicInfoOuterClass.PlayerBasicInfo.newInstance(); + + /** + * optional .MissionSync mission_sync = 220; + */ + private final MissionSyncOuterClass.MissionSync missionSync = MissionSyncOuterClass.MissionSync.newInstance(); + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1170; + */ + private final PlayerOutfitInfoOuterClass.PlayerOutfitInfo playerOutfitData = PlayerOutfitInfoOuterClass.PlayerOutfitInfo.newInstance(); + + /** + * optional .BoardDataSync board_data_sync = 1335; */ private final BoardDataSyncOuterClass.BoardDataSync boardDataSync = BoardDataSyncOuterClass.BoardDataSync.newInstance(); /** - * repeated uint32 del_relic_list = 8; - */ - private final RepeatedInt delRelicList = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; */ private final RepeatedInt delEquipmentList = RepeatedInt.newEmptyInstance(); /** - * repeated .Equipment equipment_list = 5; + * repeated uint32 del_relic_list = 10; */ - private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); + private final RepeatedInt delRelicList = RepeatedInt.newEmptyInstance(); /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; */ private final RepeatedMessage relicList = RepeatedMessage.newEmptyInstance(RelicOuterClass.Relic.getFactory()); /** - * repeated .Material material_list = 14; + * repeated .Equipment equipment_list = 6; */ - private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); + private final RepeatedMessage equipmentList = RepeatedMessage.newEmptyInstance(EquipmentOuterClass.Equipment.getFactory()); /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; + * repeated .Material material_list = 12; */ - private final RepeatedMessage multiPathAvatarInfoList = RepeatedMessage.newEmptyInstance(MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo.getFactory()); + private final RepeatedMessage materialList = RepeatedMessage.newEmptyInstance(MaterialOuterClass.Material.getFactory()); private PlayerSyncScNotify() { } @@ -86,7 +86,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional uint32 total_achievement_exp = 1522; + * optional uint32 total_achievement_exp = 1013; * @return whether the totalAchievementExp field is set */ public boolean hasTotalAchievementExp() { @@ -94,7 +94,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional uint32 total_achievement_exp = 1522; + * optional uint32 total_achievement_exp = 1013; * @return this */ public PlayerSyncScNotify clearTotalAchievementExp() { @@ -104,7 +104,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional uint32 total_achievement_exp = 1522; + * optional uint32 total_achievement_exp = 1013; * @return the totalAchievementExp */ public int getTotalAchievementExp() { @@ -112,7 +112,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional uint32 total_achievement_exp = 1522; + * optional uint32 total_achievement_exp = 1013; * @param value the totalAchievementExp to set * @return this */ @@ -123,139 +123,25 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .PlayerBasicInfo basic_info = 4; - * @return whether the basicInfo field is set + * optional .AvatarSync avatar_sync = 1; + * @return whether the avatarSync field is set */ - public boolean hasBasicInfo() { + public boolean hasAvatarSync() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .PlayerBasicInfo basic_info = 4; - * @return this - */ - public PlayerSyncScNotify clearBasicInfo() { - bitField0_ &= ~0x00000002; - basicInfo.clear(); - return this; - } - - /** - * optional .PlayerBasicInfo basic_info = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBasicInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { - return basicInfo; - } - - /** - * optional .PlayerBasicInfo basic_info = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { - bitField0_ |= 0x00000002; - return basicInfo; - } - - /** - * optional .PlayerBasicInfo basic_info = 4; - * @param value the basicInfo to set - * @return this - */ - public PlayerSyncScNotify setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) { - bitField0_ |= 0x00000002; - basicInfo.copyFrom(value); - return this; - } - - /** - * optional .MissionSync mission_sync = 9; - * @return whether the missionSync field is set - */ - public boolean hasMissionSync() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .MissionSync mission_sync = 9; - * @return this - */ - public PlayerSyncScNotify clearMissionSync() { - bitField0_ &= ~0x00000004; - missionSync.clear(); - return this; - } - - /** - * optional .MissionSync mission_sync = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMissionSync()} if you want to modify it. - * - * @return internal storage object for reading - */ - public MissionSyncOuterClass.MissionSync getMissionSync() { - return missionSync; - } - - /** - * optional .MissionSync mission_sync = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public MissionSyncOuterClass.MissionSync getMutableMissionSync() { - bitField0_ |= 0x00000004; - return missionSync; - } - - /** - * optional .MissionSync mission_sync = 9; - * @param value the missionSync to set - * @return this - */ - public PlayerSyncScNotify setMissionSync(final MissionSyncOuterClass.MissionSync value) { - bitField0_ |= 0x00000004; - missionSync.copyFrom(value); - return this; - } - - /** - * optional .AvatarSync avatar_sync = 10; - * @return whether the avatarSync field is set - */ - public boolean hasAvatarSync() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .AvatarSync avatar_sync = 10; + * optional .AvatarSync avatar_sync = 1; * @return this */ public PlayerSyncScNotify clearAvatarSync() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000002; avatarSync.clear(); return this; } /** - * optional .AvatarSync avatar_sync = 10; + * optional .AvatarSync avatar_sync = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -269,7 +155,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .AvatarSync avatar_sync = 10; + * optional .AvatarSync avatar_sync = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -278,41 +164,213 @@ public final class PlayerSyncScNotifyOuterClass { * @return internal storage object for modifications */ public AvatarSyncOuterClass.AvatarSync getMutableAvatarSync() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; return avatarSync; } /** - * optional .AvatarSync avatar_sync = 10; + * optional .AvatarSync avatar_sync = 1; * @param value the avatarSync to set * @return this */ public PlayerSyncScNotify setAvatarSync(final AvatarSyncOuterClass.AvatarSync value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; avatarSync.copyFrom(value); return this; } /** - * optional .BoardDataSync board_data_sync = 1273; - * @return whether the boardDataSync field is set + * optional .PlayerBasicInfo basic_info = 14; + * @return whether the basicInfo field is set */ - public boolean hasBoardDataSync() { + public boolean hasBasicInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .PlayerBasicInfo basic_info = 14; + * @return this + */ + public PlayerSyncScNotify clearBasicInfo() { + bitField0_ &= ~0x00000004; + basicInfo.clear(); + return this; + } + + /** + * optional .PlayerBasicInfo basic_info = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBasicInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerBasicInfoOuterClass.PlayerBasicInfo getBasicInfo() { + return basicInfo; + } + + /** + * optional .PlayerBasicInfo basic_info = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerBasicInfoOuterClass.PlayerBasicInfo getMutableBasicInfo() { + bitField0_ |= 0x00000004; + return basicInfo; + } + + /** + * optional .PlayerBasicInfo basic_info = 14; + * @param value the basicInfo to set + * @return this + */ + public PlayerSyncScNotify setBasicInfo(final PlayerBasicInfoOuterClass.PlayerBasicInfo value) { + bitField0_ |= 0x00000004; + basicInfo.copyFrom(value); + return this; + } + + /** + * optional .MissionSync mission_sync = 220; + * @return whether the missionSync field is set + */ + public boolean hasMissionSync() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .MissionSync mission_sync = 220; + * @return this + */ + public PlayerSyncScNotify clearMissionSync() { + bitField0_ &= ~0x00000008; + missionSync.clear(); + return this; + } + + /** + * optional .MissionSync mission_sync = 220; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMissionSync()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MissionSyncOuterClass.MissionSync getMissionSync() { + return missionSync; + } + + /** + * optional .MissionSync mission_sync = 220; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MissionSyncOuterClass.MissionSync getMutableMissionSync() { + bitField0_ |= 0x00000008; + return missionSync; + } + + /** + * optional .MissionSync mission_sync = 220; + * @param value the missionSync to set + * @return this + */ + public PlayerSyncScNotify setMissionSync(final MissionSyncOuterClass.MissionSync value) { + bitField0_ |= 0x00000008; + missionSync.copyFrom(value); + return this; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1170; + * @return whether the playerOutfitData field is set + */ + public boolean hasPlayerOutfitData() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .BoardDataSync board_data_sync = 1273; + * optional .PlayerOutfitInfo player_outfit_data = 1170; + * @return this + */ + public PlayerSyncScNotify clearPlayerOutfitData() { + bitField0_ &= ~0x00000010; + playerOutfitData.clear(); + return this; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1170; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePlayerOutfitData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getPlayerOutfitData() { + return playerOutfitData; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1170; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getMutablePlayerOutfitData() { + bitField0_ |= 0x00000010; + return playerOutfitData; + } + + /** + * optional .PlayerOutfitInfo player_outfit_data = 1170; + * @param value the playerOutfitData to set + * @return this + */ + public PlayerSyncScNotify setPlayerOutfitData( + final PlayerOutfitInfoOuterClass.PlayerOutfitInfo value) { + bitField0_ |= 0x00000010; + playerOutfitData.copyFrom(value); + return this; + } + + /** + * optional .BoardDataSync board_data_sync = 1335; + * @return whether the boardDataSync field is set + */ + public boolean hasBoardDataSync() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .BoardDataSync board_data_sync = 1335; * @return this */ public PlayerSyncScNotify clearBoardDataSync() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000020; boardDataSync.clear(); return this; } /** - * optional .BoardDataSync board_data_sync = 1273; + * optional .BoardDataSync board_data_sync = 1335; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -326,7 +384,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * optional .BoardDataSync board_data_sync = 1273; + * optional .BoardDataSync board_data_sync = 1335; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -335,91 +393,23 @@ public final class PlayerSyncScNotifyOuterClass { * @return internal storage object for modifications */ public BoardDataSyncOuterClass.BoardDataSync getMutableBoardDataSync() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; return boardDataSync; } /** - * optional .BoardDataSync board_data_sync = 1273; + * optional .BoardDataSync board_data_sync = 1335; * @param value the boardDataSync to set * @return this */ public PlayerSyncScNotify setBoardDataSync(final BoardDataSyncOuterClass.BoardDataSync value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; boardDataSync.copyFrom(value); return this; } /** - * repeated uint32 del_relic_list = 8; - * @return whether the delRelicList field is set - */ - public boolean hasDelRelicList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated uint32 del_relic_list = 8; - * @return this - */ - public PlayerSyncScNotify clearDelRelicList() { - bitField0_ &= ~0x00000020; - delRelicList.clear(); - return this; - } - - /** - * repeated uint32 del_relic_list = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDelRelicList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getDelRelicList() { - return delRelicList; - } - - /** - * repeated uint32 del_relic_list = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableDelRelicList() { - bitField0_ |= 0x00000020; - return delRelicList; - } - - /** - * repeated uint32 del_relic_list = 8; - * @param value the delRelicList to add - * @return this - */ - public PlayerSyncScNotify addDelRelicList(final int value) { - bitField0_ |= 0x00000020; - delRelicList.add(value); - return this; - } - - /** - * repeated uint32 del_relic_list = 8; - * @param values the delRelicList to add - * @return this - */ - public PlayerSyncScNotify addAllDelRelicList(final int... values) { - bitField0_ |= 0x00000020; - delRelicList.addAll(values); - return this; - } - - /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; * @return whether the delEquipmentList field is set */ public boolean hasDelEquipmentList() { @@ -427,7 +417,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; * @return this */ public PlayerSyncScNotify clearDelEquipmentList() { @@ -437,7 +427,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -451,7 +441,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -465,7 +455,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; * @param value the delEquipmentList to add * @return this */ @@ -476,7 +466,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated uint32 del_equipment_list = 12; + * repeated uint32 del_equipment_list = 7; * @param values the delEquipmentList to add * @return this */ @@ -487,39 +477,39 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Equipment equipment_list = 5; - * @return whether the equipmentList field is set + * repeated uint32 del_relic_list = 10; + * @return whether the delRelicList field is set */ - public boolean hasEquipmentList() { + public boolean hasDelRelicList() { return (bitField0_ & 0x00000080) != 0; } /** - * repeated .Equipment equipment_list = 5; + * repeated uint32 del_relic_list = 10; * @return this */ - public PlayerSyncScNotify clearEquipmentList() { + public PlayerSyncScNotify clearDelRelicList() { bitField0_ &= ~0x00000080; - equipmentList.clear(); + delRelicList.clear(); return this; } /** - * repeated .Equipment equipment_list = 5; + * repeated uint32 del_relic_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableEquipmentList()} if you want to modify it. + * Use {@link #getMutableDelRelicList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getEquipmentList() { - return equipmentList; + public RepeatedInt getDelRelicList() { + return delRelicList; } /** - * repeated .Equipment equipment_list = 5; + * repeated uint32 del_relic_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -527,35 +517,35 @@ public final class PlayerSyncScNotifyOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableEquipmentList() { + public RepeatedInt getMutableDelRelicList() { bitField0_ |= 0x00000080; - return equipmentList; + return delRelicList; } /** - * repeated .Equipment equipment_list = 5; - * @param value the equipmentList to add + * repeated uint32 del_relic_list = 10; + * @param value the delRelicList to add * @return this */ - public PlayerSyncScNotify addEquipmentList(final EquipmentOuterClass.Equipment value) { + public PlayerSyncScNotify addDelRelicList(final int value) { bitField0_ |= 0x00000080; - equipmentList.add(value); + delRelicList.add(value); return this; } /** - * repeated .Equipment equipment_list = 5; - * @param values the equipmentList to add + * repeated uint32 del_relic_list = 10; + * @param values the delRelicList to add * @return this */ - public PlayerSyncScNotify addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { + public PlayerSyncScNotify addAllDelRelicList(final int... values) { bitField0_ |= 0x00000080; - equipmentList.addAll(values); + delRelicList.addAll(values); return this; } /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; * @return whether the relicList field is set */ public boolean hasRelicList() { @@ -563,7 +553,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; * @return this */ public PlayerSyncScNotify clearRelicList() { @@ -573,7 +563,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -587,7 +577,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -601,7 +591,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; * @param value the relicList to add * @return this */ @@ -612,7 +602,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Relic relic_list = 7; + * repeated .Relic relic_list = 5; * @param values the relicList to add * @return this */ @@ -623,25 +613,93 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Material material_list = 14; - * @return whether the materialList field is set + * repeated .Equipment equipment_list = 6; + * @return whether the equipmentList field is set */ - public boolean hasMaterialList() { + public boolean hasEquipmentList() { return (bitField0_ & 0x00000200) != 0; } /** - * repeated .Material material_list = 14; + * repeated .Equipment equipment_list = 6; + * @return this + */ + public PlayerSyncScNotify clearEquipmentList() { + bitField0_ &= ~0x00000200; + equipmentList.clear(); + return this; + } + + /** + * repeated .Equipment equipment_list = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEquipmentList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getEquipmentList() { + return equipmentList; + } + + /** + * repeated .Equipment equipment_list = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableEquipmentList() { + bitField0_ |= 0x00000200; + return equipmentList; + } + + /** + * repeated .Equipment equipment_list = 6; + * @param value the equipmentList to add + * @return this + */ + public PlayerSyncScNotify addEquipmentList(final EquipmentOuterClass.Equipment value) { + bitField0_ |= 0x00000200; + equipmentList.add(value); + return this; + } + + /** + * repeated .Equipment equipment_list = 6; + * @param values the equipmentList to add + * @return this + */ + public PlayerSyncScNotify addAllEquipmentList(final EquipmentOuterClass.Equipment... values) { + bitField0_ |= 0x00000200; + equipmentList.addAll(values); + return this; + } + + /** + * repeated .Material material_list = 12; + * @return whether the materialList field is set + */ + public boolean hasMaterialList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .Material material_list = 12; * @return this */ public PlayerSyncScNotify clearMaterialList() { - bitField0_ &= ~0x00000200; + bitField0_ &= ~0x00000400; materialList.clear(); return this; } /** - * repeated .Material material_list = 14; + * repeated .Material material_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -655,7 +713,7 @@ public final class PlayerSyncScNotifyOuterClass { } /** - * repeated .Material material_list = 14; + * repeated .Material material_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -664,120 +722,48 @@ public final class PlayerSyncScNotifyOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMaterialList() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; return materialList; } /** - * repeated .Material material_list = 14; + * repeated .Material material_list = 12; * @param value the materialList to add * @return this */ public PlayerSyncScNotify addMaterialList(final MaterialOuterClass.Material value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; materialList.add(value); return this; } /** - * repeated .Material material_list = 14; + * repeated .Material material_list = 12; * @param values the materialList to add * @return this */ public PlayerSyncScNotify addAllMaterialList(final MaterialOuterClass.Material... values) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; materialList.addAll(values); return this; } - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; - * @return whether the multiPathAvatarInfoList field is set - */ - public boolean hasMultiPathAvatarInfoList() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; - * @return this - */ - public PlayerSyncScNotify clearMultiPathAvatarInfoList() { - bitField0_ &= ~0x00000400; - multiPathAvatarInfoList.clear(); - return this; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMultiPathAvatarInfoList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMultiPathAvatarInfoList( - ) { - return multiPathAvatarInfoList; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMultiPathAvatarInfoList( - ) { - bitField0_ |= 0x00000400; - return multiPathAvatarInfoList; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; - * @param value the multiPathAvatarInfoList to add - * @return this - */ - public PlayerSyncScNotify addMultiPathAvatarInfoList( - final MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo value) { - bitField0_ |= 0x00000400; - multiPathAvatarInfoList.add(value); - return this; - } - - /** - * repeated .MultiPathAvatarInfo multi_path_avatar_info_list = 1834; - * @param values the multiPathAvatarInfoList to add - * @return this - */ - public PlayerSyncScNotify addAllMultiPathAvatarInfoList( - final MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo... values) { - bitField0_ |= 0x00000400; - multiPathAvatarInfoList.addAll(values); - return this; - } - @Override public PlayerSyncScNotify copyFrom(final PlayerSyncScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; totalAchievementExp = other.totalAchievementExp; + avatarSync.copyFrom(other.avatarSync); basicInfo.copyFrom(other.basicInfo); missionSync.copyFrom(other.missionSync); - avatarSync.copyFrom(other.avatarSync); + playerOutfitData.copyFrom(other.playerOutfitData); boardDataSync.copyFrom(other.boardDataSync); - delRelicList.copyFrom(other.delRelicList); delEquipmentList.copyFrom(other.delEquipmentList); - equipmentList.copyFrom(other.equipmentList); + delRelicList.copyFrom(other.delRelicList); relicList.copyFrom(other.relicList); + equipmentList.copyFrom(other.equipmentList); materialList.copyFrom(other.materialList); - multiPathAvatarInfoList.copyFrom(other.multiPathAvatarInfoList); } return this; } @@ -791,36 +777,36 @@ public final class PlayerSyncScNotifyOuterClass { if (other.hasTotalAchievementExp()) { setTotalAchievementExp(other.totalAchievementExp); } + if (other.hasAvatarSync()) { + getMutableAvatarSync().mergeFrom(other.avatarSync); + } if (other.hasBasicInfo()) { getMutableBasicInfo().mergeFrom(other.basicInfo); } if (other.hasMissionSync()) { getMutableMissionSync().mergeFrom(other.missionSync); } - if (other.hasAvatarSync()) { - getMutableAvatarSync().mergeFrom(other.avatarSync); + if (other.hasPlayerOutfitData()) { + getMutablePlayerOutfitData().mergeFrom(other.playerOutfitData); } if (other.hasBoardDataSync()) { getMutableBoardDataSync().mergeFrom(other.boardDataSync); } - if (other.hasDelRelicList()) { - getMutableDelRelicList().addAll(other.delRelicList); - } if (other.hasDelEquipmentList()) { getMutableDelEquipmentList().addAll(other.delEquipmentList); } - if (other.hasEquipmentList()) { - getMutableEquipmentList().addAll(other.equipmentList); + if (other.hasDelRelicList()) { + getMutableDelRelicList().addAll(other.delRelicList); } if (other.hasRelicList()) { getMutableRelicList().addAll(other.relicList); } + if (other.hasEquipmentList()) { + getMutableEquipmentList().addAll(other.equipmentList); + } if (other.hasMaterialList()) { getMutableMaterialList().addAll(other.materialList); } - if (other.hasMultiPathAvatarInfoList()) { - getMutableMultiPathAvatarInfoList().addAll(other.multiPathAvatarInfoList); - } return this; } @@ -832,16 +818,16 @@ public final class PlayerSyncScNotifyOuterClass { cachedSize = -1; bitField0_ = 0; totalAchievementExp = 0; + avatarSync.clear(); basicInfo.clear(); missionSync.clear(); - avatarSync.clear(); + playerOutfitData.clear(); boardDataSync.clear(); - delRelicList.clear(); delEquipmentList.clear(); - equipmentList.clear(); + delRelicList.clear(); relicList.clear(); + equipmentList.clear(); materialList.clear(); - multiPathAvatarInfoList.clear(); return this; } @@ -852,16 +838,16 @@ public final class PlayerSyncScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; + avatarSync.clearQuick(); basicInfo.clearQuick(); missionSync.clearQuick(); - avatarSync.clearQuick(); + playerOutfitData.clearQuick(); boardDataSync.clearQuick(); - delRelicList.clear(); delEquipmentList.clear(); - equipmentList.clearQuick(); + delRelicList.clear(); relicList.clearQuick(); + equipmentList.clearQuick(); materialList.clearQuick(); - multiPathAvatarInfoList.clearQuick(); return this; } @@ -876,74 +862,72 @@ public final class PlayerSyncScNotifyOuterClass { PlayerSyncScNotify other = (PlayerSyncScNotify) o; return bitField0_ == other.bitField0_ && (!hasTotalAchievementExp() || totalAchievementExp == other.totalAchievementExp) + && (!hasAvatarSync() || avatarSync.equals(other.avatarSync)) && (!hasBasicInfo() || basicInfo.equals(other.basicInfo)) && (!hasMissionSync() || missionSync.equals(other.missionSync)) - && (!hasAvatarSync() || avatarSync.equals(other.avatarSync)) + && (!hasPlayerOutfitData() || playerOutfitData.equals(other.playerOutfitData)) && (!hasBoardDataSync() || boardDataSync.equals(other.boardDataSync)) - && (!hasDelRelicList() || delRelicList.equals(other.delRelicList)) && (!hasDelEquipmentList() || delEquipmentList.equals(other.delEquipmentList)) - && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) + && (!hasDelRelicList() || delRelicList.equals(other.delRelicList)) && (!hasRelicList() || relicList.equals(other.relicList)) - && (!hasMaterialList() || materialList.equals(other.materialList)) - && (!hasMultiPathAvatarInfoList() || multiPathAvatarInfoList.equals(other.multiPathAvatarInfoList)); + && (!hasEquipmentList() || equipmentList.equals(other.equipmentList)) + && (!hasMaterialList() || materialList.equals(other.materialList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawLittleEndian16((short) 24464); + output.writeRawLittleEndian16((short) 16296); output.writeUInt32NoTag(totalAchievementExp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(basicInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(missionSync); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 10); output.writeMessageNoTag(avatarSync); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(basicInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawLittleEndian16((short) 3554); + output.writeMessageNoTag(missionSync); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 20426); - output.writeMessageNoTag(boardDataSync); + output.writeRawLittleEndian16((short) 18834); + output.writeMessageNoTag(playerOutfitData); } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < delRelicList.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(delRelicList.array()[i]); - } + output.writeRawLittleEndian16((short) 21434); + output.writeMessageNoTag(boardDataSync); } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < delEquipmentList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(delEquipmentList.array()[i]); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < equipmentList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(equipmentList.get(i)); + for (int i = 0; i < delRelicList.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(delRelicList.array()[i]); } } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < relicList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 42); output.writeMessageNoTag(relicList.get(i)); } } if ((bitField0_ & 0x00000200) != 0) { - for (int i = 0; i < materialList.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(materialList.get(i)); + for (int i = 0; i < equipmentList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(equipmentList.get(i)); } } if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < multiPathAvatarInfoList.length(); i++) { - output.writeRawLittleEndian16((short) 29394); - output.writeMessageNoTag(multiPathAvatarInfoList.get(i)); + for (int i = 0; i < materialList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(materialList.get(i)); } } } @@ -955,34 +939,34 @@ public final class PlayerSyncScNotifyOuterClass { size += 2 + ProtoSink.computeUInt32SizeNoTag(totalAchievementExp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(missionSync); - } - if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(avatarSync); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(basicInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(missionSync); + } if ((bitField0_ & 0x00000010) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync); + size += 2 + ProtoSink.computeMessageSizeNoTag(playerOutfitData); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList); + size += 2 + ProtoSink.computeMessageSizeNoTag(boardDataSync); } if ((bitField0_ & 0x00000040) != 0) { size += (1 * delEquipmentList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delEquipmentList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); + size += (1 * delRelicList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(delRelicList); } if ((bitField0_ & 0x00000100) != 0) { size += (1 * relicList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(relicList); } if ((bitField0_ & 0x00000200) != 0) { - size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); + size += (1 * equipmentList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(equipmentList); } if ((bitField0_ & 0x00000400) != 0) { - size += (2 * multiPathAvatarInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(multiPathAvatarInfoList); + size += (1 * materialList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(materialList); } return size; } @@ -994,96 +978,97 @@ public final class PlayerSyncScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 12176: { + case 8104: { // totalAchievementExp totalAchievementExp = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 10) { break; } } - case 34: { - // basicInfo - input.readMessage(basicInfo); + case 10: { + // avatarSync + input.readMessage(avatarSync); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 74) { + if (tag != 114) { break; } } - case 74: { + case 114: { + // basicInfo + input.readMessage(basicInfo); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 1762) { + break; + } + } + case 1762: { // missionSync input.readMessage(missionSync); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 9362) { + break; + } + } + case 9362: { + // playerOutfitData + input.readMessage(playerOutfitData); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 10682) { + break; + } + } + case 10682: { + // boardDataSync + input.readMessage(boardDataSync); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // delEquipmentList [packed=true] + input.readPackedUInt32(delEquipmentList, tag); + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 82) { break; } } case 82: { - // avatarSync - input.readMessage(avatarSync); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 10186) { - break; - } - } - case 10186: { - // boardDataSync - input.readMessage(boardDataSync); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { // delRelicList [packed=true] input.readPackedUInt32(delRelicList, tag); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // delEquipmentList [packed=true] - input.readPackedUInt32(delEquipmentList, tag); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; tag = input.readTag(); if (tag != 42) { break; } } case 42: { - // equipmentList - tag = input.readRepeatedMessage(equipmentList, tag); - bitField0_ |= 0x00000080; - if (tag != 58) { - break; - } - } - case 58: { // relicList tag = input.readRepeatedMessage(relicList, tag); bitField0_ |= 0x00000100; - if (tag != 114) { + if (tag != 50) { break; } } - case 114: { + case 50: { + // equipmentList + tag = input.readRepeatedMessage(equipmentList, tag); + bitField0_ |= 0x00000200; + if (tag != 98) { + break; + } + } + case 98: { // materialList tag = input.readRepeatedMessage(materialList, tag); - bitField0_ |= 0x00000200; - if (tag != 14674) { - break; - } - } - case 14674: { - // multiPathAvatarInfoList - tag = input.readRepeatedMessage(multiPathAvatarInfoList, tag); bitField0_ |= 0x00000400; if (tag != 0) { break; @@ -1099,18 +1084,18 @@ public final class PlayerSyncScNotifyOuterClass { tag = input.readTag(); break; } - case 64: { - // delRelicList [packed=false] - tag = input.readRepeatedUInt32(delRelicList, tag); - bitField0_ |= 0x00000020; - break; - } - case 96: { + case 56: { // delEquipmentList [packed=false] tag = input.readRepeatedUInt32(delEquipmentList, tag); bitField0_ |= 0x00000040; break; } + case 80: { + // delRelicList [packed=false] + tag = input.readRepeatedUInt32(delRelicList, tag); + bitField0_ |= 0x00000080; + break; + } } } } @@ -1122,34 +1107,34 @@ public final class PlayerSyncScNotifyOuterClass { output.writeUInt32(FieldNames.totalAchievementExp, totalAchievementExp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.basicInfo, basicInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.missionSync, missionSync); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.avatarSync, avatarSync); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.basicInfo, basicInfo); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.missionSync, missionSync); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.boardDataSync, boardDataSync); + output.writeMessage(FieldNames.playerOutfitData, playerOutfitData); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList); + output.writeMessage(FieldNames.boardDataSync, boardDataSync); } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedUInt32(FieldNames.delEquipmentList, delEquipmentList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); + output.writeRepeatedUInt32(FieldNames.delRelicList, delRelicList); } if ((bitField0_ & 0x00000100) != 0) { output.writeRepeatedMessage(FieldNames.relicList, relicList); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.materialList, materialList); + output.writeRepeatedMessage(FieldNames.equipmentList, equipmentList); } if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedMessage(FieldNames.multiPathAvatarInfoList, multiPathAvatarInfoList); + output.writeRepeatedMessage(FieldNames.materialList, materialList); } output.endObject(); } @@ -1173,12 +1158,24 @@ public final class PlayerSyncScNotifyOuterClass { } break; } + case -403178604: + case 397279681: { + if (input.isAtField(FieldNames.avatarSync)) { + if (!input.trySkipNullValue()) { + input.readMessage(avatarSync); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -1699486212: case -1124288993: { if (input.isAtField(FieldNames.basicInfo)) { if (!input.trySkipNullValue()) { input.readMessage(basicInfo); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -1190,19 +1187,19 @@ public final class PlayerSyncScNotifyOuterClass { if (input.isAtField(FieldNames.missionSync)) { if (!input.trySkipNullValue()) { input.readMessage(missionSync); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); } break; } - case -403178604: - case 397279681: { - if (input.isAtField(FieldNames.avatarSync)) { + case 1168879118: + case 1803235336: { + if (input.isAtField(FieldNames.playerOutfitData)) { if (!input.trySkipNullValue()) { - input.readMessage(avatarSync); - bitField0_ |= 0x00000008; + input.readMessage(playerOutfitData); + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -1214,18 +1211,6 @@ public final class PlayerSyncScNotifyOuterClass { if (input.isAtField(FieldNames.boardDataSync)) { if (!input.trySkipNullValue()) { input.readMessage(boardDataSync); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1380069094: - case 1336083102: { - if (input.isAtField(FieldNames.delRelicList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(delRelicList); bitField0_ |= 0x00000020; } } else { @@ -1245,11 +1230,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case 2007143244: - case 2109525167: { - if (input.isAtField(FieldNames.equipmentList)) { + case 1380069094: + case 1336083102: { + if (input.isAtField(FieldNames.delRelicList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(equipmentList); + input.readRepeatedUInt32(delRelicList); bitField0_ |= 0x00000080; } } else { @@ -1269,11 +1254,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case -2115854747: - case -1149360970: { - if (input.isAtField(FieldNames.materialList)) { + case 2007143244: + case 2109525167: { + if (input.isAtField(FieldNames.equipmentList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(materialList); + input.readRepeatedMessage(equipmentList); bitField0_ |= 0x00000200; } } else { @@ -1281,11 +1266,11 @@ public final class PlayerSyncScNotifyOuterClass { } break; } - case -1198530685: - case -2042493827: { - if (input.isAtField(FieldNames.multiPathAvatarInfoList)) { + case -2115854747: + case -1149360970: { + if (input.isAtField(FieldNames.materialList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(multiPathAvatarInfoList); + input.readRepeatedMessage(materialList); bitField0_ |= 0x00000400; } } else { @@ -1348,25 +1333,25 @@ public final class PlayerSyncScNotifyOuterClass { static class FieldNames { static final FieldName totalAchievementExp = FieldName.forField("totalAchievementExp", "total_achievement_exp"); + static final FieldName avatarSync = FieldName.forField("avatarSync", "avatar_sync"); + static final FieldName basicInfo = FieldName.forField("basicInfo", "basic_info"); static final FieldName missionSync = FieldName.forField("missionSync", "mission_sync"); - static final FieldName avatarSync = FieldName.forField("avatarSync", "avatar_sync"); + static final FieldName playerOutfitData = FieldName.forField("playerOutfitData", "player_outfit_data"); static final FieldName boardDataSync = FieldName.forField("boardDataSync", "board_data_sync"); - static final FieldName delRelicList = FieldName.forField("delRelicList", "del_relic_list"); - static final FieldName delEquipmentList = FieldName.forField("delEquipmentList", "del_equipment_list"); - static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); + static final FieldName delRelicList = FieldName.forField("delRelicList", "del_relic_list"); static final FieldName relicList = FieldName.forField("relicList", "relic_list"); - static final FieldName materialList = FieldName.forField("materialList", "material_list"); + static final FieldName equipmentList = FieldName.forField("equipmentList", "equipment_list"); - static final FieldName multiPathAvatarInfoList = FieldName.forField("multiPathAvatarInfoList", "multi_path_avatar_info_list"); + static final FieldName materialList = FieldName.forField("materialList", "material_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java b/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java index c3ef7c4..a8e4e75 100644 --- a/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PlayingStateOuterClass.java @@ -47,7 +47,12 @@ public final class PlayingStateOuterClass { /** * PLAYING_ROGUE_TOURN = 7; */ - PLAYING_ROGUE_TOURN("PLAYING_ROGUE_TOURN", 7); + PLAYING_ROGUE_TOURN("PLAYING_ROGUE_TOURN", 7), + + /** + * PLAYING_ROGUE_MAGIC = 8; + */ + PLAYING_ROGUE_MAGIC("PLAYING_ROGUE_MAGIC", 8); /** * PLAYING_STATE_NONE = 0; @@ -89,6 +94,11 @@ public final class PlayingStateOuterClass { */ public static final int PLAYING_ROGUE_TOURN_VALUE = 7; + /** + * PLAYING_ROGUE_MAGIC = 8; + */ + public static final int PLAYING_ROGUE_MAGIC_VALUE = 8; + private final String name; private final int number; @@ -142,7 +152,7 @@ public final class PlayingStateOuterClass { enum PlayingStateConverter implements ProtoEnum.EnumConverter { INSTANCE; - private static final PlayingState[] lookup = new PlayingState[8]; + private static final PlayingState[] lookup = new PlayingState[9]; static { lookup[0] = PLAYING_STATE_NONE; @@ -153,6 +163,7 @@ public final class PlayingStateOuterClass { lookup[5] = PLAYING_CHALLENGE_STORY; lookup[6] = PLAYING_CHALLENGE_BOSS; lookup[7] = PLAYING_ROGUE_TOURN; + lookup[8] = PLAYING_ROGUE_MAGIC; } @Override @@ -179,6 +190,9 @@ public final class PlayingStateOuterClass { if (ProtoUtil.isEqual("PLAYING_ROGUE_TOURN", value)) { return PLAYING_ROGUE_TOURN; } + if (ProtoUtil.isEqual("PLAYING_ROGUE_MAGIC", value)) { + return PLAYING_ROGUE_MAGIC; + } break; } case 20: { diff --git a/src/generated/main/emu/lunarcore/proto/ProductOuterClass.java b/src/generated/main/emu/lunarcore/proto/ProductOuterClass.java new file mode 100644 index 0000000..8df97ce --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ProductOuterClass.java @@ -0,0 +1,1363 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.ProtoUtil; +import us.hebi.quickbuf.Utf8String; + +public final class ProductOuterClass { + /** + * Protobuf type {@code Product} + */ + public static final class Product extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 begin_time = 3; + */ + private long beginTime; + + /** + * optional int64 end_time = 6; + */ + private long endTime; + + /** + * optional uint32 max_buy_times = 4; + */ + private int maxBuyTimes; + + /** + * optional uint32 buy_times = 7; + */ + private int buyTimes; + + /** + * optional .Product.ProductGiftType product_gift_type = 13; + */ + private int productGiftType; + + /** + * optional bool is_first_recharge = 14; + */ + private boolean isFirstRecharge; + + /** + * optional string product_id = 2; + */ + private final Utf8String productId = Utf8String.newEmptyInstance(); + + /** + * optional string price_tier = 11; + */ + private final Utf8String priceTier = Utf8String.newEmptyInstance(); + + private Product() { + } + + /** + * @return a new empty instance of {@code Product} + */ + public static Product newInstance() { + return new Product(); + } + + /** + * optional int64 begin_time = 3; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 begin_time = 3; + * @return this + */ + public Product clearBeginTime() { + bitField0_ &= ~0x00000001; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 3; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 3; + * @param value the beginTime to set + * @return this + */ + public Product setBeginTime(final long value) { + bitField0_ |= 0x00000001; + beginTime = value; + return this; + } + + /** + * optional int64 end_time = 6; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 end_time = 6; + * @return this + */ + public Product clearEndTime() { + bitField0_ &= ~0x00000002; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 6; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 6; + * @param value the endTime to set + * @return this + */ + public Product setEndTime(final long value) { + bitField0_ |= 0x00000002; + endTime = value; + return this; + } + + /** + * optional uint32 max_buy_times = 4; + * @return whether the maxBuyTimes field is set + */ + public boolean hasMaxBuyTimes() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 max_buy_times = 4; + * @return this + */ + public Product clearMaxBuyTimes() { + bitField0_ &= ~0x00000004; + maxBuyTimes = 0; + return this; + } + + /** + * optional uint32 max_buy_times = 4; + * @return the maxBuyTimes + */ + public int getMaxBuyTimes() { + return maxBuyTimes; + } + + /** + * optional uint32 max_buy_times = 4; + * @param value the maxBuyTimes to set + * @return this + */ + public Product setMaxBuyTimes(final int value) { + bitField0_ |= 0x00000004; + maxBuyTimes = value; + return this; + } + + /** + * optional uint32 buy_times = 7; + * @return whether the buyTimes field is set + */ + public boolean hasBuyTimes() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 buy_times = 7; + * @return this + */ + public Product clearBuyTimes() { + bitField0_ &= ~0x00000008; + buyTimes = 0; + return this; + } + + /** + * optional uint32 buy_times = 7; + * @return the buyTimes + */ + public int getBuyTimes() { + return buyTimes; + } + + /** + * optional uint32 buy_times = 7; + * @param value the buyTimes to set + * @return this + */ + public Product setBuyTimes(final int value) { + bitField0_ |= 0x00000008; + buyTimes = value; + return this; + } + + /** + * optional .Product.ProductGiftType product_gift_type = 13; + * @return whether the productGiftType field is set + */ + public boolean hasProductGiftType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .Product.ProductGiftType product_gift_type = 13; + * @return this + */ + public Product clearProductGiftType() { + bitField0_ &= ~0x00000010; + productGiftType = 0; + return this; + } + + /** + * optional .Product.ProductGiftType product_gift_type = 13; + * @return the productGiftType + */ + public ProductGiftType getProductGiftType() { + return ProductGiftType.forNumber(productGiftType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link Product#getProductGiftType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getProductGiftTypeValue() { + return productGiftType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link ProductGiftType}. Setting an invalid value + * can cause {@link Product#getProductGiftType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public Product setProductGiftTypeValue(final int value) { + bitField0_ |= 0x00000010; + productGiftType = value; + return this; + } + + /** + * optional .Product.ProductGiftType product_gift_type = 13; + * @param value the productGiftType to set + * @return this + */ + public Product setProductGiftType(final ProductGiftType value) { + bitField0_ |= 0x00000010; + productGiftType = value.getNumber(); + return this; + } + + /** + * optional bool is_first_recharge = 14; + * @return whether the isFirstRecharge field is set + */ + public boolean hasIsFirstRecharge() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool is_first_recharge = 14; + * @return this + */ + public Product clearIsFirstRecharge() { + bitField0_ &= ~0x00000020; + isFirstRecharge = false; + return this; + } + + /** + * optional bool is_first_recharge = 14; + * @return the isFirstRecharge + */ + public boolean getIsFirstRecharge() { + return isFirstRecharge; + } + + /** + * optional bool is_first_recharge = 14; + * @param value the isFirstRecharge to set + * @return this + */ + public Product setIsFirstRecharge(final boolean value) { + bitField0_ |= 0x00000020; + isFirstRecharge = value; + return this; + } + + /** + * optional string product_id = 2; + * @return whether the productId field is set + */ + public boolean hasProductId() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string product_id = 2; + * @return this + */ + public Product clearProductId() { + bitField0_ &= ~0x00000040; + productId.clear(); + return this; + } + + /** + * optional string product_id = 2; + * @return the productId + */ + public String getProductId() { + return productId.getString(); + } + + /** + * optional string product_id = 2; + * @return internal {@code Utf8String} representation of productId for reading + */ + public Utf8String getProductIdBytes() { + return this.productId; + } + + /** + * optional string product_id = 2; + * @return internal {@code Utf8String} representation of productId for modifications + */ + public Utf8String getMutableProductIdBytes() { + bitField0_ |= 0x00000040; + return this.productId; + } + + /** + * optional string product_id = 2; + * @param value the productId to set + * @return this + */ + public Product setProductId(final CharSequence value) { + bitField0_ |= 0x00000040; + productId.copyFrom(value); + return this; + } + + /** + * optional string product_id = 2; + * @param value the productId to set + * @return this + */ + public Product setProductId(final Utf8String value) { + bitField0_ |= 0x00000040; + productId.copyFrom(value); + return this; + } + + /** + * optional string price_tier = 11; + * @return whether the priceTier field is set + */ + public boolean hasPriceTier() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string price_tier = 11; + * @return this + */ + public Product clearPriceTier() { + bitField0_ &= ~0x00000080; + priceTier.clear(); + return this; + } + + /** + * optional string price_tier = 11; + * @return the priceTier + */ + public String getPriceTier() { + return priceTier.getString(); + } + + /** + * optional string price_tier = 11; + * @return internal {@code Utf8String} representation of priceTier for reading + */ + public Utf8String getPriceTierBytes() { + return this.priceTier; + } + + /** + * optional string price_tier = 11; + * @return internal {@code Utf8String} representation of priceTier for modifications + */ + public Utf8String getMutablePriceTierBytes() { + bitField0_ |= 0x00000080; + return this.priceTier; + } + + /** + * optional string price_tier = 11; + * @param value the priceTier to set + * @return this + */ + public Product setPriceTier(final CharSequence value) { + bitField0_ |= 0x00000080; + priceTier.copyFrom(value); + return this; + } + + /** + * optional string price_tier = 11; + * @param value the priceTier to set + * @return this + */ + public Product setPriceTier(final Utf8String value) { + bitField0_ |= 0x00000080; + priceTier.copyFrom(value); + return this; + } + + @Override + public Product copyFrom(final Product other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + beginTime = other.beginTime; + endTime = other.endTime; + maxBuyTimes = other.maxBuyTimes; + buyTimes = other.buyTimes; + productGiftType = other.productGiftType; + isFirstRecharge = other.isFirstRecharge; + productId.copyFrom(other.productId); + priceTier.copyFrom(other.priceTier); + } + return this; + } + + @Override + public Product mergeFrom(final Product other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasMaxBuyTimes()) { + setMaxBuyTimes(other.maxBuyTimes); + } + if (other.hasBuyTimes()) { + setBuyTimes(other.buyTimes); + } + if (other.hasProductGiftType()) { + setProductGiftTypeValue(other.productGiftType); + } + if (other.hasIsFirstRecharge()) { + setIsFirstRecharge(other.isFirstRecharge); + } + if (other.hasProductId()) { + getMutableProductIdBytes().copyFrom(other.productId); + } + if (other.hasPriceTier()) { + getMutablePriceTierBytes().copyFrom(other.priceTier); + } + return this; + } + + @Override + public Product clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + beginTime = 0L; + endTime = 0L; + maxBuyTimes = 0; + buyTimes = 0; + productGiftType = 0; + isFirstRecharge = false; + productId.clear(); + priceTier.clear(); + return this; + } + + @Override + public Product clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + productId.clear(); + priceTier.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Product)) { + return false; + } + Product other = (Product) o; + return bitField0_ == other.bitField0_ + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasEndTime() || endTime == other.endTime) + && (!hasMaxBuyTimes() || maxBuyTimes == other.maxBuyTimes) + && (!hasBuyTimes() || buyTimes == other.buyTimes) + && (!hasProductGiftType() || productGiftType == other.productGiftType) + && (!hasIsFirstRecharge() || isFirstRecharge == other.isFirstRecharge) + && (!hasProductId() || productId.equals(other.productId)) + && (!hasPriceTier() || priceTier.equals(other.priceTier)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(maxBuyTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(buyTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(productGiftType); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 112); + output.writeBoolNoTag(isFirstRecharge); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 18); + output.writeStringNoTag(productId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 90); + output.writeStringNoTag(priceTier); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxBuyTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(buyTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(productGiftType); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(productId); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(priceTier); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Product mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // maxBuyTimes + maxBuyTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // buyTimes + buyTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // productGiftType + final int value = input.readInt32(); + if (ProductGiftType.forNumber(value) != null) { + productGiftType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // isFirstRecharge + isFirstRecharge = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // productId + input.readString(productId); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // priceTier + input.readString(priceTier); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.maxBuyTimes, maxBuyTimes); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.buyTimes, buyTimes); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeEnum(FieldNames.productGiftType, productGiftType, ProductGiftType.converter()); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.isFirstRecharge, isFirstRecharge); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.productId, productId); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.priceTier, priceTier); + } + output.endObject(); + } + + @Override + public Product mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1037705700: + case -802382030: { + if (input.isAtField(FieldNames.maxBuyTimes)) { + if (!input.trySkipNullValue()) { + maxBuyTimes = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -994591648: + case -442602419: { + if (input.isAtField(FieldNames.buyTimes)) { + if (!input.trySkipNullValue()) { + buyTimes = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 996157081: + case 713409945: { + if (input.isAtField(FieldNames.productGiftType)) { + if (!input.trySkipNullValue()) { + final ProductGiftType value = input.readEnum(ProductGiftType.converter()); + if (value != null) { + productGiftType = value.getNumber(); + bitField0_ |= 0x00000010; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -1091216275: + case 1798441739: { + if (input.isAtField(FieldNames.isFirstRecharge)) { + if (!input.trySkipNullValue()) { + isFirstRecharge = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1051830678: + case 1753008747: { + if (input.isAtField(FieldNames.productId)) { + if (!input.trySkipNullValue()) { + input.readString(productId); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -2125747509: + case -1463173352: { + if (input.isAtField(FieldNames.priceTier)) { + if (!input.trySkipNullValue()) { + input.readString(priceTier); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Product clone() { + return new Product().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Product parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Product(), data).checkInitialized(); + } + + public static Product parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Product(), input).checkInitialized(); + } + + public static Product parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Product(), input).checkInitialized(); + } + + /** + * @return factory for creating Product messages + */ + public static MessageFactory getFactory() { + return ProductFactory.INSTANCE; + } + + /** + * Protobuf enum {@code ProductGiftType} + */ + public enum ProductGiftType implements ProtoEnum { + /** + * PRODUCT_GIFT_NONE = 0; + */ + PRODUCT_GIFT_NONE("PRODUCT_GIFT_NONE", 0), + + /** + * PRODUCT_GIFT_COIN = 1; + */ + PRODUCT_GIFT_COIN("PRODUCT_GIFT_COIN", 1), + + /** + * PRODUCT_GIFT_MONTH_CARD = 2; + */ + PRODUCT_GIFT_MONTH_CARD("PRODUCT_GIFT_MONTH_CARD", 2), + + /** + * PRODUCT_GIFT_BP_68 = 3; + */ + PRODUCT_GIFT_BP_68("PRODUCT_GIFT_BP_68", 3), + + /** + * PRODUCT_GIFT_BP_128 = 4; + */ + PRODUCT_GIFT_BP_128("PRODUCT_GIFT_BP_128", 4), + + /** + * PRODUCT_GIFT_BP68_UPGRADE_128 = 5; + */ + PRODUCT_GIFT_BP68_UPGRADE_128("PRODUCT_GIFT_BP68_UPGRADE_128", 5), + + /** + * PRODUCT_GIFT_POINT_CARD = 6; + */ + PRODUCT_GIFT_POINT_CARD("PRODUCT_GIFT_POINT_CARD", 6), + + /** + * PRODUCT_GIFT_PS_PRE_ORDER_1 = 7; + */ + PRODUCT_GIFT_PS_PRE_ORDER_1("PRODUCT_GIFT_PS_PRE_ORDER_1", 7), + + /** + * PRODUCT_GIFT_PS_PRE_ORDER_2 = 8; + */ + PRODUCT_GIFT_PS_PRE_ORDER_2("PRODUCT_GIFT_PS_PRE_ORDER_2", 8), + + /** + * PRODUCT_GIFT_GOOGLE_POINTS_100 = 9; + */ + PRODUCT_GIFT_GOOGLE_POINTS_100("PRODUCT_GIFT_GOOGLE_POINTS_100", 9), + + /** + * PRODUCT_GIFT_GOOGLE_POINTS_150 = 10; + */ + PRODUCT_GIFT_GOOGLE_POINTS_150("PRODUCT_GIFT_GOOGLE_POINTS_150", 10), + + /** + * PRODUCT_GIFT_PS_POINT_CARD_030 = 11; + */ + PRODUCT_GIFT_PS_POINT_CARD_030("PRODUCT_GIFT_PS_POINT_CARD_030", 11), + + /** + * PRODUCT_GIFT_PS_POINT_CARD_050 = 12; + */ + PRODUCT_GIFT_PS_POINT_CARD_050("PRODUCT_GIFT_PS_POINT_CARD_050", 12), + + /** + * PRODUCT_GIFT_PS_POINT_CARD_100 = 13; + */ + PRODUCT_GIFT_PS_POINT_CARD_100("PRODUCT_GIFT_PS_POINT_CARD_100", 13), + + /** + * PRODUCT_GIFT_PSN_PLUS = 14; + */ + PRODUCT_GIFT_PSN_PLUS("PRODUCT_GIFT_PSN_PLUS", 14), + + /** + * PRODUCT_GIFT_SINGLE_6 = 15; + */ + PRODUCT_GIFT_SINGLE_6("PRODUCT_GIFT_SINGLE_6", 15), + + /** + * PRODUCT_GIFT_DAILY_LOGIN_30 = 16; + */ + PRODUCT_GIFT_DAILY_LOGIN_30("PRODUCT_GIFT_DAILY_LOGIN_30", 16), + + /** + * PRODUCT_GIFT_APPLE_GIFT_CARD = 17; + */ + PRODUCT_GIFT_APPLE_GIFT_CARD("PRODUCT_GIFT_APPLE_GIFT_CARD", 17), + + /** + * PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1 = 18; + */ + PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1("PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1", 18), + + /** + * PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10 = 19; + */ + PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10("PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10", 19), + + /** + * PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1 = 20; + */ + PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1("PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1", 20), + + /** + * PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10 = 21; + */ + PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10("PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10", 21), + + /** + * PRODUCT_GIFT_TICKET_10 = 22; + */ + PRODUCT_GIFT_TICKET_10("PRODUCT_GIFT_TICKET_10", 22); + + /** + * PRODUCT_GIFT_NONE = 0; + */ + public static final int PRODUCT_GIFT_NONE_VALUE = 0; + + /** + * PRODUCT_GIFT_COIN = 1; + */ + public static final int PRODUCT_GIFT_COIN_VALUE = 1; + + /** + * PRODUCT_GIFT_MONTH_CARD = 2; + */ + public static final int PRODUCT_GIFT_MONTH_CARD_VALUE = 2; + + /** + * PRODUCT_GIFT_BP_68 = 3; + */ + public static final int PRODUCT_GIFT_BP_68_VALUE = 3; + + /** + * PRODUCT_GIFT_BP_128 = 4; + */ + public static final int PRODUCT_GIFT_BP_128_VALUE = 4; + + /** + * PRODUCT_GIFT_BP68_UPGRADE_128 = 5; + */ + public static final int PRODUCT_GIFT_BP68_UPGRADE_128_VALUE = 5; + + /** + * PRODUCT_GIFT_POINT_CARD = 6; + */ + public static final int PRODUCT_GIFT_POINT_CARD_VALUE = 6; + + /** + * PRODUCT_GIFT_PS_PRE_ORDER_1 = 7; + */ + public static final int PRODUCT_GIFT_PS_PRE_ORDER_1_VALUE = 7; + + /** + * PRODUCT_GIFT_PS_PRE_ORDER_2 = 8; + */ + public static final int PRODUCT_GIFT_PS_PRE_ORDER_2_VALUE = 8; + + /** + * PRODUCT_GIFT_GOOGLE_POINTS_100 = 9; + */ + public static final int PRODUCT_GIFT_GOOGLE_POINTS_100_VALUE = 9; + + /** + * PRODUCT_GIFT_GOOGLE_POINTS_150 = 10; + */ + public static final int PRODUCT_GIFT_GOOGLE_POINTS_150_VALUE = 10; + + /** + * PRODUCT_GIFT_PS_POINT_CARD_030 = 11; + */ + public static final int PRODUCT_GIFT_PS_POINT_CARD_030_VALUE = 11; + + /** + * PRODUCT_GIFT_PS_POINT_CARD_050 = 12; + */ + public static final int PRODUCT_GIFT_PS_POINT_CARD_050_VALUE = 12; + + /** + * PRODUCT_GIFT_PS_POINT_CARD_100 = 13; + */ + public static final int PRODUCT_GIFT_PS_POINT_CARD_100_VALUE = 13; + + /** + * PRODUCT_GIFT_PSN_PLUS = 14; + */ + public static final int PRODUCT_GIFT_PSN_PLUS_VALUE = 14; + + /** + * PRODUCT_GIFT_SINGLE_6 = 15; + */ + public static final int PRODUCT_GIFT_SINGLE_6_VALUE = 15; + + /** + * PRODUCT_GIFT_DAILY_LOGIN_30 = 16; + */ + public static final int PRODUCT_GIFT_DAILY_LOGIN_30_VALUE = 16; + + /** + * PRODUCT_GIFT_APPLE_GIFT_CARD = 17; + */ + public static final int PRODUCT_GIFT_APPLE_GIFT_CARD_VALUE = 17; + + /** + * PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1 = 18; + */ + public static final int PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1_VALUE = 18; + + /** + * PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10 = 19; + */ + public static final int PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10_VALUE = 19; + + /** + * PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1 = 20; + */ + public static final int PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1_VALUE = 20; + + /** + * PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10 = 21; + */ + public static final int PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10_VALUE = 21; + + /** + * PRODUCT_GIFT_TICKET_10 = 22; + */ + public static final int PRODUCT_GIFT_TICKET_10_VALUE = 22; + + private final String name; + + private final int number; + + private ProductGiftType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return ProductGiftTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static ProductGiftType forNumber(int value) { + return ProductGiftTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static ProductGiftType forNumberOr(int number, ProductGiftType other) { + ProductGiftType value = forNumber(number); + return value == null ? other : value; + } + + enum ProductGiftTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final ProductGiftType[] lookup = new ProductGiftType[23]; + + static { + lookup[0] = PRODUCT_GIFT_NONE; + lookup[1] = PRODUCT_GIFT_COIN; + lookup[2] = PRODUCT_GIFT_MONTH_CARD; + lookup[3] = PRODUCT_GIFT_BP_68; + lookup[4] = PRODUCT_GIFT_BP_128; + lookup[5] = PRODUCT_GIFT_BP68_UPGRADE_128; + lookup[6] = PRODUCT_GIFT_POINT_CARD; + lookup[7] = PRODUCT_GIFT_PS_PRE_ORDER_1; + lookup[8] = PRODUCT_GIFT_PS_PRE_ORDER_2; + lookup[9] = PRODUCT_GIFT_GOOGLE_POINTS_100; + lookup[10] = PRODUCT_GIFT_GOOGLE_POINTS_150; + lookup[11] = PRODUCT_GIFT_PS_POINT_CARD_030; + lookup[12] = PRODUCT_GIFT_PS_POINT_CARD_050; + lookup[13] = PRODUCT_GIFT_PS_POINT_CARD_100; + lookup[14] = PRODUCT_GIFT_PSN_PLUS; + lookup[15] = PRODUCT_GIFT_SINGLE_6; + lookup[16] = PRODUCT_GIFT_DAILY_LOGIN_30; + lookup[17] = PRODUCT_GIFT_APPLE_GIFT_CARD; + lookup[18] = PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1; + lookup[19] = PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10; + lookup[20] = PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1; + lookup[21] = PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10; + lookup[22] = PRODUCT_GIFT_TICKET_10; + } + + @Override + public final ProductGiftType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final ProductGiftType forName(final CharSequence value) { + switch (value.length()) { + case 17: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_NONE", value)) { + return PRODUCT_GIFT_NONE; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_COIN", value)) { + return PRODUCT_GIFT_COIN; + } + break; + } + case 18: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_BP_68", value)) { + return PRODUCT_GIFT_BP_68; + } + break; + } + case 19: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_BP_128", value)) { + return PRODUCT_GIFT_BP_128; + } + break; + } + case 21: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_PSN_PLUS", value)) { + return PRODUCT_GIFT_PSN_PLUS; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_SINGLE_6", value)) { + return PRODUCT_GIFT_SINGLE_6; + } + break; + } + case 22: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_TICKET_10", value)) { + return PRODUCT_GIFT_TICKET_10; + } + break; + } + case 23: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_MONTH_CARD", value)) { + return PRODUCT_GIFT_MONTH_CARD; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_POINT_CARD", value)) { + return PRODUCT_GIFT_POINT_CARD; + } + break; + } + case 27: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_PS_PRE_ORDER_1", value)) { + return PRODUCT_GIFT_PS_PRE_ORDER_1; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_PS_PRE_ORDER_2", value)) { + return PRODUCT_GIFT_PS_PRE_ORDER_2; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_DAILY_LOGIN_30", value)) { + return PRODUCT_GIFT_DAILY_LOGIN_30; + } + break; + } + case 28: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_APPLE_GIFT_CARD", value)) { + return PRODUCT_GIFT_APPLE_GIFT_CARD; + } + break; + } + case 29: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_BP68_UPGRADE_128", value)) { + return PRODUCT_GIFT_BP68_UPGRADE_128; + } + break; + } + case 30: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_GOOGLE_POINTS_100", value)) { + return PRODUCT_GIFT_GOOGLE_POINTS_100; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_GOOGLE_POINTS_150", value)) { + return PRODUCT_GIFT_GOOGLE_POINTS_150; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_PS_POINT_CARD_030", value)) { + return PRODUCT_GIFT_PS_POINT_CARD_030; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_PS_POINT_CARD_050", value)) { + return PRODUCT_GIFT_PS_POINT_CARD_050; + } + if (ProtoUtil.isEqual("PRODUCT_GIFT_PS_POINT_CARD_100", value)) { + return PRODUCT_GIFT_PS_POINT_CARD_100; + } + break; + } + case 34: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1", value)) { + return PRODUCT_GIFT_FTC_UP_GACHA_TICKET_1; + } + break; + } + case 35: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10", value)) { + return PRODUCT_GIFT_FTC_UP_GACHA_TICKET_10; + } + break; + } + case 38: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1", value)) { + return PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_1; + } + break; + } + case 39: { + if (ProtoUtil.isEqual("PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10", value)) { + return PRODUCT_GIFT_FTC_NORMAL_GACHA_TICKET_10; + } + break; + } + } + return null; + } + } + } + + private enum ProductFactory implements MessageFactory { + INSTANCE; + + @Override + public Product create() { + return Product.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + + static final FieldName maxBuyTimes = FieldName.forField("maxBuyTimes", "max_buy_times"); + + static final FieldName buyTimes = FieldName.forField("buyTimes", "buy_times"); + + static final FieldName productGiftType = FieldName.forField("productGiftType", "product_gift_type"); + + static final FieldName isFirstRecharge = FieldName.forField("isFirstRecharge", "is_first_recharge"); + + static final FieldName productId = FieldName.forField("productId", "product_id"); + + static final FieldName priceTier = FieldName.forField("priceTier", "price_tier"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java index 27e8dd3..8aebc7e 100644 --- a/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PromoteAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class PromoteAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 15; */ private int baseAvatarId; /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -40,7 +40,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 15; * @return whether the baseAvatarId field is set */ public boolean hasBaseAvatarId() { @@ -48,7 +48,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 15; * @return this */ public PromoteAvatarCsReq clearBaseAvatarId() { @@ -58,7 +58,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 15; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -66,7 +66,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 1; + * optional uint32 base_avatar_id = 15; * @param value the baseAvatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -85,7 +85,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; * @return this */ public PromoteAvatarCsReq clearItemList() { @@ -95,7 +95,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; * @param value the itemList to add * @return this */ @@ -134,7 +134,7 @@ public final class PromoteAvatarCsReqOuterClass { } /** - * repeated .ItemCost item_list = 6; + * repeated .ItemCost item_list = 1; * @param values the itemList to add * @return this */ @@ -210,12 +210,12 @@ public final class PromoteAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 10); output.writeMessageNoTag(itemList.get(i)); } } @@ -240,16 +240,16 @@ public final class PromoteAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 120: { // baseAvatarId baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 10) { break; } } - case 50: { + case 10: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java index 44eaae2..5549139 100644 --- a/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PromoteEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class PromoteEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 13; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 5; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 13; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 13; * @return this */ public PromoteEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 13; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 11; + * optional uint32 equipment_unique_id = 13; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 5; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 5; * @return this */ public PromoteEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class PromoteEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 15; + * optional .ItemCostList item_cost_list = 5; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class PromoteEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 42); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class PromoteEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 104: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 42) { break; } } - case 122: { + case 42: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.java deleted file mode 100644 index f367a34..0000000 --- a/src/generated/main/emu/lunarcore/proto/PropAeonInfoOuterClass.java +++ /dev/null @@ -1,421 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class PropAeonInfoOuterClass { - /** - * Protobuf type {@code PropAeonInfo} - */ - public static final class PropAeonInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 aeon_id = 3; - */ - private int aeonId; - - /** - * optional uint32 dialogue_group_id = 10; - */ - private int dialogueGroupId; - - /** - * optional uint32 add_exp = 14; - */ - private int addExp; - - private PropAeonInfo() { - } - - /** - * @return a new empty instance of {@code PropAeonInfo} - */ - public static PropAeonInfo newInstance() { - return new PropAeonInfo(); - } - - /** - * optional uint32 aeon_id = 3; - * @return whether the aeonId field is set - */ - public boolean hasAeonId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 aeon_id = 3; - * @return this - */ - public PropAeonInfo clearAeonId() { - bitField0_ &= ~0x00000001; - aeonId = 0; - return this; - } - - /** - * optional uint32 aeon_id = 3; - * @return the aeonId - */ - public int getAeonId() { - return aeonId; - } - - /** - * optional uint32 aeon_id = 3; - * @param value the aeonId to set - * @return this - */ - public PropAeonInfo setAeonId(final int value) { - bitField0_ |= 0x00000001; - aeonId = value; - return this; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @return whether the dialogueGroupId field is set - */ - public boolean hasDialogueGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @return this - */ - public PropAeonInfo clearDialogueGroupId() { - bitField0_ &= ~0x00000002; - dialogueGroupId = 0; - return this; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @return the dialogueGroupId - */ - public int getDialogueGroupId() { - return dialogueGroupId; - } - - /** - * optional uint32 dialogue_group_id = 10; - * @param value the dialogueGroupId to set - * @return this - */ - public PropAeonInfo setDialogueGroupId(final int value) { - bitField0_ |= 0x00000002; - dialogueGroupId = value; - return this; - } - - /** - * optional uint32 add_exp = 14; - * @return whether the addExp field is set - */ - public boolean hasAddExp() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 add_exp = 14; - * @return this - */ - public PropAeonInfo clearAddExp() { - bitField0_ &= ~0x00000004; - addExp = 0; - return this; - } - - /** - * optional uint32 add_exp = 14; - * @return the addExp - */ - public int getAddExp() { - return addExp; - } - - /** - * optional uint32 add_exp = 14; - * @param value the addExp to set - * @return this - */ - public PropAeonInfo setAddExp(final int value) { - bitField0_ |= 0x00000004; - addExp = value; - return this; - } - - @Override - public PropAeonInfo copyFrom(final PropAeonInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - aeonId = other.aeonId; - dialogueGroupId = other.dialogueGroupId; - addExp = other.addExp; - } - return this; - } - - @Override - public PropAeonInfo mergeFrom(final PropAeonInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasAeonId()) { - setAeonId(other.aeonId); - } - if (other.hasDialogueGroupId()) { - setDialogueGroupId(other.dialogueGroupId); - } - if (other.hasAddExp()) { - setAddExp(other.addExp); - } - return this; - } - - @Override - public PropAeonInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - aeonId = 0; - dialogueGroupId = 0; - addExp = 0; - return this; - } - - @Override - public PropAeonInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof PropAeonInfo)) { - return false; - } - PropAeonInfo other = (PropAeonInfo) o; - return bitField0_ == other.bitField0_ - && (!hasAeonId() || aeonId == other.aeonId) - && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId) - && (!hasAddExp() || addExp == other.addExp); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(aeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(dialogueGroupId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(addExp); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(addExp); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public PropAeonInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // aeonId - aeonId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // dialogueGroupId - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // addExp - addExp = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.aeonId, aeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.addExp, addExp); - } - output.endObject(); - } - - @Override - public PropAeonInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1421249154: - case -1109029417: { - if (input.isAtField(FieldNames.aeonId)) { - if (!input.trySkipNullValue()) { - aeonId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1758320386: - case 1899979106: { - if (input.isAtField(FieldNames.dialogueGroupId)) { - if (!input.trySkipNullValue()) { - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1422538308: - case -1148257921: { - if (input.isAtField(FieldNames.addExp)) { - if (!input.trySkipNullValue()) { - addExp = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public PropAeonInfo clone() { - return new PropAeonInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static PropAeonInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PropAeonInfo(), data).checkInitialized(); - } - - public static PropAeonInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PropAeonInfo(), input).checkInitialized(); - } - - public static PropAeonInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PropAeonInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating PropAeonInfo messages - */ - public static MessageFactory getFactory() { - return PropAeonInfoFactory.INSTANCE; - } - - private enum PropAeonInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public PropAeonInfo create() { - return PropAeonInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); - - static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); - - static final FieldName addExp = FieldName.forField("addExp", "add_exp"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java index 06bcf08..69db15c 100644 --- a/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/PropExtraInfoOuterClass.java @@ -19,14 +19,9 @@ public final class PropExtraInfoOuterClass { private static final long serialVersionUID = 0L; /** - *
-     *  PropAeonInfo aeon_info = 7;
-     *  PropChessInfo chess_rogue_info = 8;
-     * 
- * - * optional .PropRogueInfo rogue_info = 10; + * optional .PropTimelineInfo prop_timeline_info = 12; */ - private final PropRogueInfoOuterClass.PropRogueInfo rogueInfo = PropRogueInfoOuterClass.PropRogueInfo.newInstance(); + private final PropTimelineInfoOuterClass.PropTimelineInfo propTimelineInfo = PropTimelineInfoOuterClass.PropTimelineInfo.newInstance(); private PropExtraInfo() { } @@ -38,71 +33,40 @@ public final class PropExtraInfoOuterClass { return new PropExtraInfo(); } - public boolean hasInfo() { - return (((bitField0_ & 0x00000001)) != 0); - } - - public PropExtraInfo clearInfo() { - if (hasInfo()) { - clearRogueInfo(); - } - return this; - } - /** - *
-     *  PropAeonInfo aeon_info = 7;
-     *  PropChessInfo chess_rogue_info = 8;
-     * 
- * - * optional .PropRogueInfo rogue_info = 10; - * @return whether the rogueInfo field is set + * optional .PropTimelineInfo prop_timeline_info = 12; + * @return whether the propTimelineInfo field is set */ - public boolean hasRogueInfo() { + public boolean hasPropTimelineInfo() { return (bitField0_ & 0x00000001) != 0; } /** - *
-     *  PropAeonInfo aeon_info = 7;
-     *  PropChessInfo chess_rogue_info = 8;
-     * 
- * - * optional .PropRogueInfo rogue_info = 10; + * optional .PropTimelineInfo prop_timeline_info = 12; * @return this */ - public PropExtraInfo clearRogueInfo() { + public PropExtraInfo clearPropTimelineInfo() { bitField0_ &= ~0x00000001; - rogueInfo.clear(); + propTimelineInfo.clear(); return this; } /** - *
-     *  PropAeonInfo aeon_info = 7;
-     *  PropChessInfo chess_rogue_info = 8;
-     * 
- * - * optional .PropRogueInfo rogue_info = 10; + * optional .PropTimelineInfo prop_timeline_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRogueInfo()} if you want to modify it. + * Use {@link #getMutablePropTimelineInfo()} if you want to modify it. * * @return internal storage object for reading */ - public PropRogueInfoOuterClass.PropRogueInfo getRogueInfo() { - return rogueInfo; + public PropTimelineInfoOuterClass.PropTimelineInfo getPropTimelineInfo() { + return propTimelineInfo; } /** - *
-     *  PropAeonInfo aeon_info = 7;
-     *  PropChessInfo chess_rogue_info = 8;
-     * 
- * - * optional .PropRogueInfo rogue_info = 10; + * optional .PropTimelineInfo prop_timeline_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -110,24 +74,20 @@ public final class PropExtraInfoOuterClass { * * @return internal storage object for modifications */ - public PropRogueInfoOuterClass.PropRogueInfo getMutableRogueInfo() { + public PropTimelineInfoOuterClass.PropTimelineInfo getMutablePropTimelineInfo() { bitField0_ |= 0x00000001; - return rogueInfo; + return propTimelineInfo; } /** - *
-     *  PropAeonInfo aeon_info = 7;
-     *  PropChessInfo chess_rogue_info = 8;
-     * 
- * - * optional .PropRogueInfo rogue_info = 10; - * @param value the rogueInfo to set + * optional .PropTimelineInfo prop_timeline_info = 12; + * @param value the propTimelineInfo to set * @return this */ - public PropExtraInfo setRogueInfo(final PropRogueInfoOuterClass.PropRogueInfo value) { + public PropExtraInfo setPropTimelineInfo( + final PropTimelineInfoOuterClass.PropTimelineInfo value) { bitField0_ |= 0x00000001; - rogueInfo.copyFrom(value); + propTimelineInfo.copyFrom(value); return this; } @@ -136,7 +96,7 @@ public final class PropExtraInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rogueInfo.copyFrom(other.rogueInfo); + propTimelineInfo.copyFrom(other.propTimelineInfo); } return this; } @@ -147,8 +107,8 @@ public final class PropExtraInfoOuterClass { return this; } cachedSize = -1; - if (other.hasRogueInfo()) { - getMutableRogueInfo().mergeFrom(other.rogueInfo); + if (other.hasPropTimelineInfo()) { + getMutablePropTimelineInfo().mergeFrom(other.propTimelineInfo); } return this; } @@ -160,7 +120,7 @@ public final class PropExtraInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueInfo.clear(); + propTimelineInfo.clear(); return this; } @@ -171,7 +131,7 @@ public final class PropExtraInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - rogueInfo.clearQuick(); + propTimelineInfo.clearQuick(); return this; } @@ -185,14 +145,14 @@ public final class PropExtraInfoOuterClass { } PropExtraInfo other = (PropExtraInfo) o; return bitField0_ == other.bitField0_ - && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)); + && (!hasPropTimelineInfo() || propTimelineInfo.equals(other.propTimelineInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rogueInfo); + output.writeRawByte((byte) 98); + output.writeMessageNoTag(propTimelineInfo); } } @@ -200,7 +160,7 @@ public final class PropExtraInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(propTimelineInfo); } return size; } @@ -212,9 +172,9 @@ public final class PropExtraInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { - // rogueInfo - input.readMessage(rogueInfo); + case 98: { + // propTimelineInfo + input.readMessage(propTimelineInfo); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -239,7 +199,7 @@ public final class PropExtraInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueInfo, rogueInfo); + output.writeMessage(FieldNames.propTimelineInfo, propTimelineInfo); } output.endObject(); } @@ -251,11 +211,11 @@ public final class PropExtraInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 655808936: - case -1124583437: { - if (input.isAtField(FieldNames.rogueInfo)) { + case 1563729810: + case 1904612880: { + if (input.isAtField(FieldNames.propTimelineInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueInfo); + input.readMessage(propTimelineInfo); bitField0_ |= 0x00000001; } } else { @@ -315,7 +275,7 @@ public final class PropExtraInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); + static final FieldName propTimelineInfo = FieldName.forField("propTimelineInfo", "prop_timeline_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java deleted file mode 100644 index 79daf2c..0000000 --- a/src/generated/main/emu/lunarcore/proto/PropRogueInfoOuterClass.java +++ /dev/null @@ -1,340 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class PropRogueInfoOuterClass { - /** - * Protobuf type {@code PropRogueInfo} - */ - public static final class PropRogueInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 site_id = 4; - */ - private int siteId; - - /** - * optional uint32 room_id = 7; - */ - private int roomId; - - private PropRogueInfo() { - } - - /** - * @return a new empty instance of {@code PropRogueInfo} - */ - public static PropRogueInfo newInstance() { - return new PropRogueInfo(); - } - - /** - * optional uint32 site_id = 4; - * @return whether the siteId field is set - */ - public boolean hasSiteId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 site_id = 4; - * @return this - */ - public PropRogueInfo clearSiteId() { - bitField0_ &= ~0x00000001; - siteId = 0; - return this; - } - - /** - * optional uint32 site_id = 4; - * @return the siteId - */ - public int getSiteId() { - return siteId; - } - - /** - * optional uint32 site_id = 4; - * @param value the siteId to set - * @return this - */ - public PropRogueInfo setSiteId(final int value) { - bitField0_ |= 0x00000001; - siteId = value; - return this; - } - - /** - * optional uint32 room_id = 7; - * @return whether the roomId field is set - */ - public boolean hasRoomId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 room_id = 7; - * @return this - */ - public PropRogueInfo clearRoomId() { - bitField0_ &= ~0x00000002; - roomId = 0; - return this; - } - - /** - * optional uint32 room_id = 7; - * @return the roomId - */ - public int getRoomId() { - return roomId; - } - - /** - * optional uint32 room_id = 7; - * @param value the roomId to set - * @return this - */ - public PropRogueInfo setRoomId(final int value) { - bitField0_ |= 0x00000002; - roomId = value; - return this; - } - - @Override - public PropRogueInfo copyFrom(final PropRogueInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - siteId = other.siteId; - roomId = other.roomId; - } - return this; - } - - @Override - public PropRogueInfo mergeFrom(final PropRogueInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSiteId()) { - setSiteId(other.siteId); - } - if (other.hasRoomId()) { - setRoomId(other.roomId); - } - return this; - } - - @Override - public PropRogueInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - siteId = 0; - roomId = 0; - return this; - } - - @Override - public PropRogueInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof PropRogueInfo)) { - return false; - } - PropRogueInfo other = (PropRogueInfo) o; - return bitField0_ == other.bitField0_ - && (!hasSiteId() || siteId == other.siteId) - && (!hasRoomId() || roomId == other.roomId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(roomId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public PropRogueInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // siteId - siteId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // roomId - roomId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.siteId, siteId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); - } - output.endObject(); - } - - @Override - public PropRogueInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { - if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { - if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public PropRogueInfo clone() { - return new PropRogueInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static PropRogueInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new PropRogueInfo(), data).checkInitialized(); - } - - public static PropRogueInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new PropRogueInfo(), input).checkInitialized(); - } - - public static PropRogueInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new PropRogueInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating PropRogueInfo messages - */ - public static MessageFactory getFactory() { - return PropRogueInfoFactory.INSTANCE; - } - - private enum PropRogueInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public PropRogueInfo create() { - return PropRogueInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName siteId = FieldName.forField("siteId", "site_id"); - - static final FieldName roomId = FieldName.forField("roomId", "room_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/PropTimelineInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/PropTimelineInfoOuterClass.java new file mode 100644 index 0000000..b0ec688 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/PropTimelineInfoOuterClass.java @@ -0,0 +1,383 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class PropTimelineInfoOuterClass { + /** + * Protobuf type {@code PropTimelineInfo} + */ + public static final class PropTimelineInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional bool KBFLIKKFOEG = 3; + */ + private boolean kBFLIKKFOEG; + + /** + * optional bytes COOGIPJIPIA = 12; + */ + private final RepeatedByte cOOGIPJIPIA = RepeatedByte.newEmptyInstance(); + + private PropTimelineInfo() { + } + + /** + * @return a new empty instance of {@code PropTimelineInfo} + */ + public static PropTimelineInfo newInstance() { + return new PropTimelineInfo(); + } + + /** + * optional bool KBFLIKKFOEG = 3; + * @return whether the kBFLIKKFOEG field is set + */ + public boolean hasKBFLIKKFOEG() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional bool KBFLIKKFOEG = 3; + * @return this + */ + public PropTimelineInfo clearKBFLIKKFOEG() { + bitField0_ &= ~0x00000001; + kBFLIKKFOEG = false; + return this; + } + + /** + * optional bool KBFLIKKFOEG = 3; + * @return the kBFLIKKFOEG + */ + public boolean getKBFLIKKFOEG() { + return kBFLIKKFOEG; + } + + /** + * optional bool KBFLIKKFOEG = 3; + * @param value the kBFLIKKFOEG to set + * @return this + */ + public PropTimelineInfo setKBFLIKKFOEG(final boolean value) { + bitField0_ |= 0x00000001; + kBFLIKKFOEG = value; + return this; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * @return whether the cOOGIPJIPIA field is set + */ + public boolean hasCOOGIPJIPIA() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * @return this + */ + public PropTimelineInfo clearCOOGIPJIPIA() { + bitField0_ &= ~0x00000002; + cOOGIPJIPIA.clear(); + return this; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableCOOGIPJIPIA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getCOOGIPJIPIA() { + return cOOGIPJIPIA; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableCOOGIPJIPIA() { + bitField0_ |= 0x00000002; + return cOOGIPJIPIA; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * @param value the cOOGIPJIPIA to add + * @return this + */ + public PropTimelineInfo addCOOGIPJIPIA(final byte value) { + bitField0_ |= 0x00000002; + cOOGIPJIPIA.add(value); + return this; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * @param values the cOOGIPJIPIA to add + * @return this + */ + public PropTimelineInfo addAllCOOGIPJIPIA(final byte... values) { + bitField0_ |= 0x00000002; + cOOGIPJIPIA.addAll(values); + return this; + } + + /** + * optional bytes COOGIPJIPIA = 12; + * @param values the cOOGIPJIPIA to set + * @return this + */ + public PropTimelineInfo setCOOGIPJIPIA(final byte... values) { + bitField0_ |= 0x00000002; + cOOGIPJIPIA.copyFrom(values); + return this; + } + + @Override + public PropTimelineInfo copyFrom(final PropTimelineInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + kBFLIKKFOEG = other.kBFLIKKFOEG; + cOOGIPJIPIA.copyFrom(other.cOOGIPJIPIA); + } + return this; + } + + @Override + public PropTimelineInfo mergeFrom(final PropTimelineInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasKBFLIKKFOEG()) { + setKBFLIKKFOEG(other.kBFLIKKFOEG); + } + if (other.hasCOOGIPJIPIA()) { + getMutableCOOGIPJIPIA().copyFrom(other.cOOGIPJIPIA); + } + return this; + } + + @Override + public PropTimelineInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + kBFLIKKFOEG = false; + cOOGIPJIPIA.clear(); + return this; + } + + @Override + public PropTimelineInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + cOOGIPJIPIA.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof PropTimelineInfo)) { + return false; + } + PropTimelineInfo other = (PropTimelineInfo) o; + return bitField0_ == other.bitField0_ + && (!hasKBFLIKKFOEG() || kBFLIKKFOEG == other.kBFLIKKFOEG) + && (!hasCOOGIPJIPIA() || cOOGIPJIPIA.equals(other.cOOGIPJIPIA)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeBoolNoTag(kBFLIKKFOEG); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 98); + output.writeBytesNoTag(cOOGIPJIPIA); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(cOOGIPJIPIA); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public PropTimelineInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // kBFLIKKFOEG + kBFLIKKFOEG = input.readBool(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // cOOGIPJIPIA + input.readBytes(cOOGIPJIPIA); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeBool(FieldNames.kBFLIKKFOEG, kBFLIKKFOEG); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBytes(FieldNames.cOOGIPJIPIA, cOOGIPJIPIA); + } + output.endObject(); + } + + @Override + public PropTimelineInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1788643561: { + if (input.isAtField(FieldNames.kBFLIKKFOEG)) { + if (!input.trySkipNullValue()) { + kBFLIKKFOEG = input.readBool(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1921635522: { + if (input.isAtField(FieldNames.cOOGIPJIPIA)) { + if (!input.trySkipNullValue()) { + input.readBytes(cOOGIPJIPIA); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public PropTimelineInfo clone() { + return new PropTimelineInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static PropTimelineInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new PropTimelineInfo(), data).checkInitialized(); + } + + public static PropTimelineInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new PropTimelineInfo(), input).checkInitialized(); + } + + public static PropTimelineInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new PropTimelineInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating PropTimelineInfo messages + */ + public static MessageFactory getFactory() { + return PropTimelineInfoFactory.INSTANCE; + } + + private enum PropTimelineInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public PropTimelineInfo create() { + return PropTimelineInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName kBFLIKKFOEG = FieldName.forField("KBFLIKKFOEG"); + + static final FieldName cOOGIPJIPIA = FieldName.forField("COOGIPJIPIA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/QueryProductInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/QueryProductInfoScRspOuterClass.java new file mode 100644 index 0000000..b722ae3 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/QueryProductInfoScRspOuterClass.java @@ -0,0 +1,617 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class QueryProductInfoScRspOuterClass { + /** + * Protobuf type {@code QueryProductInfoScRsp} + */ + public static final class QueryProductInfoScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint64 month_card_outdate_time = 11; + */ + private long monthCardOutdateTime; + + /** + * optional uint32 retcode = 6; + */ + private int retcode; + + /** + * optional uint32 gift_coin_bought_history_version = 7; + */ + private int giftCoinBoughtHistoryVersion; + + /** + * optional uint32 gift_coin_cur_version = 12; + */ + private int giftCoinCurVersion; + + /** + * repeated .Product product_list = 10; + */ + private final RepeatedMessage productList = RepeatedMessage.newEmptyInstance(ProductOuterClass.Product.getFactory()); + + private QueryProductInfoScRsp() { + } + + /** + * @return a new empty instance of {@code QueryProductInfoScRsp} + */ + public static QueryProductInfoScRsp newInstance() { + return new QueryProductInfoScRsp(); + } + + /** + * optional uint64 month_card_outdate_time = 11; + * @return whether the monthCardOutdateTime field is set + */ + public boolean hasMonthCardOutdateTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint64 month_card_outdate_time = 11; + * @return this + */ + public QueryProductInfoScRsp clearMonthCardOutdateTime() { + bitField0_ &= ~0x00000001; + monthCardOutdateTime = 0L; + return this; + } + + /** + * optional uint64 month_card_outdate_time = 11; + * @return the monthCardOutdateTime + */ + public long getMonthCardOutdateTime() { + return monthCardOutdateTime; + } + + /** + * optional uint64 month_card_outdate_time = 11; + * @param value the monthCardOutdateTime to set + * @return this + */ + public QueryProductInfoScRsp setMonthCardOutdateTime(final long value) { + bitField0_ |= 0x00000001; + monthCardOutdateTime = value; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 6; + * @return this + */ + public QueryProductInfoScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 6; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 6; + * @param value the retcode to set + * @return this + */ + public QueryProductInfoScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 gift_coin_bought_history_version = 7; + * @return whether the giftCoinBoughtHistoryVersion field is set + */ + public boolean hasGiftCoinBoughtHistoryVersion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 gift_coin_bought_history_version = 7; + * @return this + */ + public QueryProductInfoScRsp clearGiftCoinBoughtHistoryVersion() { + bitField0_ &= ~0x00000004; + giftCoinBoughtHistoryVersion = 0; + return this; + } + + /** + * optional uint32 gift_coin_bought_history_version = 7; + * @return the giftCoinBoughtHistoryVersion + */ + public int getGiftCoinBoughtHistoryVersion() { + return giftCoinBoughtHistoryVersion; + } + + /** + * optional uint32 gift_coin_bought_history_version = 7; + * @param value the giftCoinBoughtHistoryVersion to set + * @return this + */ + public QueryProductInfoScRsp setGiftCoinBoughtHistoryVersion(final int value) { + bitField0_ |= 0x00000004; + giftCoinBoughtHistoryVersion = value; + return this; + } + + /** + * optional uint32 gift_coin_cur_version = 12; + * @return whether the giftCoinCurVersion field is set + */ + public boolean hasGiftCoinCurVersion() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 gift_coin_cur_version = 12; + * @return this + */ + public QueryProductInfoScRsp clearGiftCoinCurVersion() { + bitField0_ &= ~0x00000008; + giftCoinCurVersion = 0; + return this; + } + + /** + * optional uint32 gift_coin_cur_version = 12; + * @return the giftCoinCurVersion + */ + public int getGiftCoinCurVersion() { + return giftCoinCurVersion; + } + + /** + * optional uint32 gift_coin_cur_version = 12; + * @param value the giftCoinCurVersion to set + * @return this + */ + public QueryProductInfoScRsp setGiftCoinCurVersion(final int value) { + bitField0_ |= 0x00000008; + giftCoinCurVersion = value; + return this; + } + + /** + * repeated .Product product_list = 10; + * @return whether the productList field is set + */ + public boolean hasProductList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .Product product_list = 10; + * @return this + */ + public QueryProductInfoScRsp clearProductList() { + bitField0_ &= ~0x00000010; + productList.clear(); + return this; + } + + /** + * repeated .Product product_list = 10; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableProductList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getProductList() { + return productList; + } + + /** + * repeated .Product product_list = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableProductList() { + bitField0_ |= 0x00000010; + return productList; + } + + /** + * repeated .Product product_list = 10; + * @param value the productList to add + * @return this + */ + public QueryProductInfoScRsp addProductList(final ProductOuterClass.Product value) { + bitField0_ |= 0x00000010; + productList.add(value); + return this; + } + + /** + * repeated .Product product_list = 10; + * @param values the productList to add + * @return this + */ + public QueryProductInfoScRsp addAllProductList(final ProductOuterClass.Product... values) { + bitField0_ |= 0x00000010; + productList.addAll(values); + return this; + } + + @Override + public QueryProductInfoScRsp copyFrom(final QueryProductInfoScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + monthCardOutdateTime = other.monthCardOutdateTime; + retcode = other.retcode; + giftCoinBoughtHistoryVersion = other.giftCoinBoughtHistoryVersion; + giftCoinCurVersion = other.giftCoinCurVersion; + productList.copyFrom(other.productList); + } + return this; + } + + @Override + public QueryProductInfoScRsp mergeFrom(final QueryProductInfoScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMonthCardOutdateTime()) { + setMonthCardOutdateTime(other.monthCardOutdateTime); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasGiftCoinBoughtHistoryVersion()) { + setGiftCoinBoughtHistoryVersion(other.giftCoinBoughtHistoryVersion); + } + if (other.hasGiftCoinCurVersion()) { + setGiftCoinCurVersion(other.giftCoinCurVersion); + } + if (other.hasProductList()) { + getMutableProductList().addAll(other.productList); + } + return this; + } + + @Override + public QueryProductInfoScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + monthCardOutdateTime = 0L; + retcode = 0; + giftCoinBoughtHistoryVersion = 0; + giftCoinCurVersion = 0; + productList.clear(); + return this; + } + + @Override + public QueryProductInfoScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + productList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof QueryProductInfoScRsp)) { + return false; + } + QueryProductInfoScRsp other = (QueryProductInfoScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasMonthCardOutdateTime() || monthCardOutdateTime == other.monthCardOutdateTime) + && (!hasRetcode() || retcode == other.retcode) + && (!hasGiftCoinBoughtHistoryVersion() || giftCoinBoughtHistoryVersion == other.giftCoinBoughtHistoryVersion) + && (!hasGiftCoinCurVersion() || giftCoinCurVersion == other.giftCoinCurVersion) + && (!hasProductList() || productList.equals(other.productList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt64NoTag(monthCardOutdateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(giftCoinBoughtHistoryVersion); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(giftCoinCurVersion); + } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < productList.length(); i++) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(productList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt64SizeNoTag(monthCardOutdateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(giftCoinBoughtHistoryVersion); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(giftCoinCurVersion); + } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * productList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(productList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public QueryProductInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // monthCardOutdateTime + monthCardOutdateTime = input.readUInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // giftCoinBoughtHistoryVersion + giftCoinBoughtHistoryVersion = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // giftCoinCurVersion + giftCoinCurVersion = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { + // productList + tag = input.readRepeatedMessage(productList, tag); + bitField0_ |= 0x00000010; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt64(FieldNames.monthCardOutdateTime, monthCardOutdateTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.giftCoinBoughtHistoryVersion, giftCoinBoughtHistoryVersion); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.giftCoinCurVersion, giftCoinCurVersion); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedMessage(FieldNames.productList, productList); + } + output.endObject(); + } + + @Override + public QueryProductInfoScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -152594151: + case 963589632: { + if (input.isAtField(FieldNames.monthCardOutdateTime)) { + if (!input.trySkipNullValue()) { + monthCardOutdateTime = input.readUInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 337076464: + case 1032039352: { + if (input.isAtField(FieldNames.giftCoinBoughtHistoryVersion)) { + if (!input.trySkipNullValue()) { + giftCoinBoughtHistoryVersion = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -623323847: + case 347029594: { + if (input.isAtField(FieldNames.giftCoinCurVersion)) { + if (!input.trySkipNullValue()) { + giftCoinCurVersion = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1491869139: + case 1014323694: { + if (input.isAtField(FieldNames.productList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(productList); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public QueryProductInfoScRsp clone() { + return new QueryProductInfoScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static QueryProductInfoScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new QueryProductInfoScRsp(), data).checkInitialized(); + } + + public static QueryProductInfoScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QueryProductInfoScRsp(), input).checkInitialized(); + } + + public static QueryProductInfoScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QueryProductInfoScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating QueryProductInfoScRsp messages + */ + public static MessageFactory getFactory() { + return QueryProductInfoScRspFactory.INSTANCE; + } + + private enum QueryProductInfoScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public QueryProductInfoScRsp create() { + return QueryProductInfoScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName monthCardOutdateTime = FieldName.forField("monthCardOutdateTime", "month_card_outdate_time"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName giftCoinBoughtHistoryVersion = FieldName.forField("giftCoinBoughtHistoryVersion", "gift_coin_bought_history_version"); + + static final FieldName giftCoinCurVersion = FieldName.forField("giftCoinCurVersion", "gift_coin_cur_version"); + + static final FieldName productList = FieldName.forField("productList", "product_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java index adec78d..21cb6dc 100644 --- a/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuestOuterClass.java @@ -10,6 +10,7 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; public final class QuestOuterClass { /** @@ -19,25 +20,30 @@ public final class QuestOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 finish_time = 13; + * optional int64 finish_time = 3; */ private long finishTime; /** - * optional uint32 progress = 6; + * optional uint32 progress = 2; */ private int progress; /** - * optional uint32 id = 10; + * optional uint32 id = 13; */ private int id; /** - * optional .QuestStatus status = 15; + * optional .QuestStatus status = 8; */ private int status; + /** + * repeated uint32 params = 1; + */ + private final RepeatedInt params = RepeatedInt.newEmptyInstance(); + private Quest() { } @@ -49,7 +55,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 13; + * optional int64 finish_time = 3; * @return whether the finishTime field is set */ public boolean hasFinishTime() { @@ -57,7 +63,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 13; + * optional int64 finish_time = 3; * @return this */ public Quest clearFinishTime() { @@ -67,7 +73,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 13; + * optional int64 finish_time = 3; * @return the finishTime */ public long getFinishTime() { @@ -75,7 +81,7 @@ public final class QuestOuterClass { } /** - * optional int64 finish_time = 13; + * optional int64 finish_time = 3; * @param value the finishTime to set * @return this */ @@ -86,7 +92,7 @@ public final class QuestOuterClass { } /** - * optional uint32 progress = 6; + * optional uint32 progress = 2; * @return whether the progress field is set */ public boolean hasProgress() { @@ -94,7 +100,7 @@ public final class QuestOuterClass { } /** - * optional uint32 progress = 6; + * optional uint32 progress = 2; * @return this */ public Quest clearProgress() { @@ -104,7 +110,7 @@ public final class QuestOuterClass { } /** - * optional uint32 progress = 6; + * optional uint32 progress = 2; * @return the progress */ public int getProgress() { @@ -112,7 +118,7 @@ public final class QuestOuterClass { } /** - * optional uint32 progress = 6; + * optional uint32 progress = 2; * @param value the progress to set * @return this */ @@ -123,7 +129,7 @@ public final class QuestOuterClass { } /** - * optional uint32 id = 10; + * optional uint32 id = 13; * @return whether the id field is set */ public boolean hasId() { @@ -131,7 +137,7 @@ public final class QuestOuterClass { } /** - * optional uint32 id = 10; + * optional uint32 id = 13; * @return this */ public Quest clearId() { @@ -141,7 +147,7 @@ public final class QuestOuterClass { } /** - * optional uint32 id = 10; + * optional uint32 id = 13; * @return the id */ public int getId() { @@ -149,7 +155,7 @@ public final class QuestOuterClass { } /** - * optional uint32 id = 10; + * optional uint32 id = 13; * @param value the id to set * @return this */ @@ -160,7 +166,7 @@ public final class QuestOuterClass { } /** - * optional .QuestStatus status = 15; + * optional .QuestStatus status = 8; * @return whether the status field is set */ public boolean hasStatus() { @@ -168,7 +174,7 @@ public final class QuestOuterClass { } /** - * optional .QuestStatus status = 15; + * optional .QuestStatus status = 8; * @return this */ public Quest clearStatus() { @@ -178,7 +184,7 @@ public final class QuestOuterClass { } /** - * optional .QuestStatus status = 15; + * optional .QuestStatus status = 8; * @return the status */ public QuestStatusOuterClass.QuestStatus getStatus() { @@ -211,7 +217,7 @@ public final class QuestOuterClass { } /** - * optional .QuestStatus status = 15; + * optional .QuestStatus status = 8; * @param value the status to set * @return this */ @@ -221,6 +227,74 @@ public final class QuestOuterClass { return this; } + /** + * repeated uint32 params = 1; + * @return whether the params field is set + */ + public boolean hasParams() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated uint32 params = 1; + * @return this + */ + public Quest clearParams() { + bitField0_ &= ~0x00000010; + params.clear(); + return this; + } + + /** + * repeated uint32 params = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableParams()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getParams() { + return params; + } + + /** + * repeated uint32 params = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableParams() { + bitField0_ |= 0x00000010; + return params; + } + + /** + * repeated uint32 params = 1; + * @param value the params to add + * @return this + */ + public Quest addParams(final int value) { + bitField0_ |= 0x00000010; + params.add(value); + return this; + } + + /** + * repeated uint32 params = 1; + * @param values the params to add + * @return this + */ + public Quest addAllParams(final int... values) { + bitField0_ |= 0x00000010; + params.addAll(values); + return this; + } + @Override public Quest copyFrom(final Quest other) { cachedSize = other.cachedSize; @@ -230,6 +304,7 @@ public final class QuestOuterClass { progress = other.progress; id = other.id; status = other.status; + params.copyFrom(other.params); } return this; } @@ -252,6 +327,9 @@ public final class QuestOuterClass { if (other.hasStatus()) { setStatusValue(other.status); } + if (other.hasParams()) { + getMutableParams().addAll(other.params); + } return this; } @@ -266,6 +344,7 @@ public final class QuestOuterClass { progress = 0; id = 0; status = 0; + params.clear(); return this; } @@ -276,6 +355,7 @@ public final class QuestOuterClass { } cachedSize = -1; bitField0_ = 0; + params.clear(); return this; } @@ -292,27 +372,34 @@ public final class QuestOuterClass { && (!hasFinishTime() || finishTime == other.finishTime) && (!hasProgress() || progress == other.progress) && (!hasId() || id == other.id) - && (!hasStatus() || status == other.status); + && (!hasStatus() || status == other.status) + && (!hasParams() || params.equals(other.params)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 24); output.writeInt64NoTag(finishTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(progress); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 64); output.writeEnumNoTag(status); } + if ((bitField0_ & 0x00000010) != 0) { + for (int i = 0; i < params.length(); i++) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(params.array()[i]); + } + } } @Override @@ -330,6 +417,9 @@ public final class QuestOuterClass { if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(status); } + if ((bitField0_ & 0x00000010) != 0) { + size += (1 * params.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(params); + } return size; } @@ -340,34 +430,34 @@ public final class QuestOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 24: { // finishTime finishTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 16) { break; } } - case 48: { + case 16: { // progress progress = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 104) { break; } } - case 80: { + case 104: { // id id = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 64) { break; } } - case 120: { + case 64: { // status final int value = input.readInt32(); if (QuestStatusOuterClass.QuestStatus.forNumber(value) != null) { @@ -375,6 +465,15 @@ public final class QuestOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // params [packed=true] + input.readPackedUInt32(params, tag); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 0) { break; } @@ -389,6 +488,12 @@ public final class QuestOuterClass { tag = input.readTag(); break; } + case 8: { + // params [packed=false] + tag = input.readRepeatedUInt32(params, tag); + bitField0_ |= 0x00000010; + break; + } } } } @@ -408,6 +513,9 @@ public final class QuestOuterClass { if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.status, status, QuestStatusOuterClass.QuestStatus.converter()); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRepeatedUInt32(FieldNames.params, params); + } output.endObject(); } @@ -468,6 +576,17 @@ public final class QuestOuterClass { } break; } + case -995427962: { + if (input.isAtField(FieldNames.params)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(params); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -527,6 +646,8 @@ public final class QuestOuterClass { static final FieldName id = FieldName.forField("id"); static final FieldName status = FieldName.forField("status"); + + static final FieldName params = FieldName.forField("params"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageCsReqOuterClass.java new file mode 100644 index 0000000..e633d70 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageCsReqOuterClass.java @@ -0,0 +1,502 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class QuickStartCocoonStageCsReqOuterClass { + /** + * Protobuf type {@code QuickStartCocoonStageCsReq} + */ + public static final class QuickStartCocoonStageCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 world_level = 2; + */ + private int worldLevel; + + /** + * optional uint32 wave = 4; + */ + private int wave; + + /** + * optional uint32 wave_count = 5; + */ + private int waveCount; + + /** + * optional uint32 cocoon_id = 12; + */ + private int cocoonId; + + private QuickStartCocoonStageCsReq() { + } + + /** + * @return a new empty instance of {@code QuickStartCocoonStageCsReq} + */ + public static QuickStartCocoonStageCsReq newInstance() { + return new QuickStartCocoonStageCsReq(); + } + + /** + * optional uint32 world_level = 2; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 world_level = 2; + * @return this + */ + public QuickStartCocoonStageCsReq clearWorldLevel() { + bitField0_ &= ~0x00000001; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 2; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 2; + * @param value the worldLevel to set + * @return this + */ + public QuickStartCocoonStageCsReq setWorldLevel(final int value) { + bitField0_ |= 0x00000001; + worldLevel = value; + return this; + } + + /** + * optional uint32 wave = 4; + * @return whether the wave field is set + */ + public boolean hasWave() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 wave = 4; + * @return this + */ + public QuickStartCocoonStageCsReq clearWave() { + bitField0_ &= ~0x00000002; + wave = 0; + return this; + } + + /** + * optional uint32 wave = 4; + * @return the wave + */ + public int getWave() { + return wave; + } + + /** + * optional uint32 wave = 4; + * @param value the wave to set + * @return this + */ + public QuickStartCocoonStageCsReq setWave(final int value) { + bitField0_ |= 0x00000002; + wave = value; + return this; + } + + /** + * optional uint32 wave_count = 5; + * @return whether the waveCount field is set + */ + public boolean hasWaveCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 wave_count = 5; + * @return this + */ + public QuickStartCocoonStageCsReq clearWaveCount() { + bitField0_ &= ~0x00000004; + waveCount = 0; + return this; + } + + /** + * optional uint32 wave_count = 5; + * @return the waveCount + */ + public int getWaveCount() { + return waveCount; + } + + /** + * optional uint32 wave_count = 5; + * @param value the waveCount to set + * @return this + */ + public QuickStartCocoonStageCsReq setWaveCount(final int value) { + bitField0_ |= 0x00000004; + waveCount = value; + return this; + } + + /** + * optional uint32 cocoon_id = 12; + * @return whether the cocoonId field is set + */ + public boolean hasCocoonId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 cocoon_id = 12; + * @return this + */ + public QuickStartCocoonStageCsReq clearCocoonId() { + bitField0_ &= ~0x00000008; + cocoonId = 0; + return this; + } + + /** + * optional uint32 cocoon_id = 12; + * @return the cocoonId + */ + public int getCocoonId() { + return cocoonId; + } + + /** + * optional uint32 cocoon_id = 12; + * @param value the cocoonId to set + * @return this + */ + public QuickStartCocoonStageCsReq setCocoonId(final int value) { + bitField0_ |= 0x00000008; + cocoonId = value; + return this; + } + + @Override + public QuickStartCocoonStageCsReq copyFrom(final QuickStartCocoonStageCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + worldLevel = other.worldLevel; + wave = other.wave; + waveCount = other.waveCount; + cocoonId = other.cocoonId; + } + return this; + } + + @Override + public QuickStartCocoonStageCsReq mergeFrom(final QuickStartCocoonStageCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasWave()) { + setWave(other.wave); + } + if (other.hasWaveCount()) { + setWaveCount(other.waveCount); + } + if (other.hasCocoonId()) { + setCocoonId(other.cocoonId); + } + return this; + } + + @Override + public QuickStartCocoonStageCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + worldLevel = 0; + wave = 0; + waveCount = 0; + cocoonId = 0; + return this; + } + + @Override + public QuickStartCocoonStageCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof QuickStartCocoonStageCsReq)) { + return false; + } + QuickStartCocoonStageCsReq other = (QuickStartCocoonStageCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasWave() || wave == other.wave) + && (!hasWaveCount() || waveCount == other.waveCount) + && (!hasCocoonId() || cocoonId == other.cocoonId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(wave); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(waveCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(cocoonId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveCount); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public QuickStartCocoonStageCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // wave + wave = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // waveCount + waveCount = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // cocoonId + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.wave, wave); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.waveCount, waveCount); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cocoonId, cocoonId); + } + output.endObject(); + } + + @Override + public QuickStartCocoonStageCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3642105: { + if (input.isAtField(FieldNames.wave)) { + if (!input.trySkipNullValue()) { + wave = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1518256534: + case 611674185: { + if (input.isAtField(FieldNames.waveCount)) { + if (!input.trySkipNullValue()) { + waveCount = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { + if (!input.trySkipNullValue()) { + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public QuickStartCocoonStageCsReq clone() { + return new QuickStartCocoonStageCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static QuickStartCocoonStageCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new QuickStartCocoonStageCsReq(), data).checkInitialized(); + } + + public static QuickStartCocoonStageCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartCocoonStageCsReq(), input).checkInitialized(); + } + + public static QuickStartCocoonStageCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartCocoonStageCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating QuickStartCocoonStageCsReq messages + */ + public static MessageFactory getFactory() { + return QuickStartCocoonStageCsReqFactory.INSTANCE; + } + + private enum QuickStartCocoonStageCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public QuickStartCocoonStageCsReq create() { + return QuickStartCocoonStageCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName wave = FieldName.forField("wave"); + + static final FieldName waveCount = FieldName.forField("waveCount", "wave_count"); + + static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageScRspOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageScRspOuterClass.java index 0ce3aab..1449acf 100644 --- a/src/generated/main/emu/lunarcore/proto/DoGachaInRollShopScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuickStartCocoonStageScRspOuterClass.java @@ -11,68 +11,179 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class DoGachaInRollShopScRspOuterClass { +public final class QuickStartCocoonStageScRspOuterClass { /** - * Protobuf type {@code DoGachaInRollShopScRsp} + * Protobuf type {@code QuickStartCocoonStageScRsp} */ - public static final class DoGachaInRollShopScRsp extends ProtoMessage implements Cloneable { + public static final class QuickStartCocoonStageScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 3; + * optional uint32 cocoon_id = 3; + */ + private int cocoonId; + + /** + * optional uint32 wave = 4; + */ + private int wave; + + /** + * optional uint32 wave_count = 7; + */ + private int waveCount; + + /** + * optional uint32 retcode = 14; */ private int retcode; /** - * optional uint32 AFMPDBBHCHM = 6; + * optional .SceneBattleInfo battle_info = 5; */ - private int aFMPDBBHCHM; + private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); - /** - * optional uint32 roll_shop_id = 7; - */ - private int rollShopId; - - /** - * optional uint32 LEJJOJGNIHK = 14; - */ - private int lEJJOJGNIHK; - - /** - * optional .ItemList reward = 11; - */ - private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); - - private DoGachaInRollShopScRsp() { + private QuickStartCocoonStageScRsp() { } /** - * @return a new empty instance of {@code DoGachaInRollShopScRsp} + * @return a new empty instance of {@code QuickStartCocoonStageScRsp} */ - public static DoGachaInRollShopScRsp newInstance() { - return new DoGachaInRollShopScRsp(); + public static QuickStartCocoonStageScRsp newInstance() { + return new QuickStartCocoonStageScRsp(); } /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set + * optional uint32 cocoon_id = 3; + * @return whether the cocoonId field is set */ - public boolean hasRetcode() { + public boolean hasCocoonId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 3; + * optional uint32 cocoon_id = 3; * @return this */ - public DoGachaInRollShopScRsp clearRetcode() { + public QuickStartCocoonStageScRsp clearCocoonId() { bitField0_ &= ~0x00000001; + cocoonId = 0; + return this; + } + + /** + * optional uint32 cocoon_id = 3; + * @return the cocoonId + */ + public int getCocoonId() { + return cocoonId; + } + + /** + * optional uint32 cocoon_id = 3; + * @param value the cocoonId to set + * @return this + */ + public QuickStartCocoonStageScRsp setCocoonId(final int value) { + bitField0_ |= 0x00000001; + cocoonId = value; + return this; + } + + /** + * optional uint32 wave = 4; + * @return whether the wave field is set + */ + public boolean hasWave() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 wave = 4; + * @return this + */ + public QuickStartCocoonStageScRsp clearWave() { + bitField0_ &= ~0x00000002; + wave = 0; + return this; + } + + /** + * optional uint32 wave = 4; + * @return the wave + */ + public int getWave() { + return wave; + } + + /** + * optional uint32 wave = 4; + * @param value the wave to set + * @return this + */ + public QuickStartCocoonStageScRsp setWave(final int value) { + bitField0_ |= 0x00000002; + wave = value; + return this; + } + + /** + * optional uint32 wave_count = 7; + * @return whether the waveCount field is set + */ + public boolean hasWaveCount() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 wave_count = 7; + * @return this + */ + public QuickStartCocoonStageScRsp clearWaveCount() { + bitField0_ &= ~0x00000004; + waveCount = 0; + return this; + } + + /** + * optional uint32 wave_count = 7; + * @return the waveCount + */ + public int getWaveCount() { + return waveCount; + } + + /** + * optional uint32 wave_count = 7; + * @param value the waveCount to set + * @return this + */ + public QuickStartCocoonStageScRsp setWaveCount(final int value) { + bitField0_ |= 0x00000004; + waveCount = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public QuickStartCocoonStageScRsp clearRetcode() { + bitField0_ &= ~0x00000008; retcode = 0; return this; } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -80,161 +191,50 @@ public final class DoGachaInRollShopScRspOuterClass { } /** - * optional uint32 retcode = 3; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ - public DoGachaInRollShopScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; + public QuickStartCocoonStageScRsp setRetcode(final int value) { + bitField0_ |= 0x00000008; retcode = value; return this; } /** - * optional uint32 AFMPDBBHCHM = 6; - * @return whether the aFMPDBBHCHM field is set + * optional .SceneBattleInfo battle_info = 5; + * @return whether the battleInfo field is set */ - public boolean hasAFMPDBBHCHM() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 AFMPDBBHCHM = 6; - * @return this - */ - public DoGachaInRollShopScRsp clearAFMPDBBHCHM() { - bitField0_ &= ~0x00000002; - aFMPDBBHCHM = 0; - return this; - } - - /** - * optional uint32 AFMPDBBHCHM = 6; - * @return the aFMPDBBHCHM - */ - public int getAFMPDBBHCHM() { - return aFMPDBBHCHM; - } - - /** - * optional uint32 AFMPDBBHCHM = 6; - * @param value the aFMPDBBHCHM to set - * @return this - */ - public DoGachaInRollShopScRsp setAFMPDBBHCHM(final int value) { - bitField0_ |= 0x00000002; - aFMPDBBHCHM = value; - return this; - } - - /** - * optional uint32 roll_shop_id = 7; - * @return whether the rollShopId field is set - */ - public boolean hasRollShopId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 roll_shop_id = 7; - * @return this - */ - public DoGachaInRollShopScRsp clearRollShopId() { - bitField0_ &= ~0x00000004; - rollShopId = 0; - return this; - } - - /** - * optional uint32 roll_shop_id = 7; - * @return the rollShopId - */ - public int getRollShopId() { - return rollShopId; - } - - /** - * optional uint32 roll_shop_id = 7; - * @param value the rollShopId to set - * @return this - */ - public DoGachaInRollShopScRsp setRollShopId(final int value) { - bitField0_ |= 0x00000004; - rollShopId = value; - return this; - } - - /** - * optional uint32 LEJJOJGNIHK = 14; - * @return whether the lEJJOJGNIHK field is set - */ - public boolean hasLEJJOJGNIHK() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 LEJJOJGNIHK = 14; - * @return this - */ - public DoGachaInRollShopScRsp clearLEJJOJGNIHK() { - bitField0_ &= ~0x00000008; - lEJJOJGNIHK = 0; - return this; - } - - /** - * optional uint32 LEJJOJGNIHK = 14; - * @return the lEJJOJGNIHK - */ - public int getLEJJOJGNIHK() { - return lEJJOJGNIHK; - } - - /** - * optional uint32 LEJJOJGNIHK = 14; - * @param value the lEJJOJGNIHK to set - * @return this - */ - public DoGachaInRollShopScRsp setLEJJOJGNIHK(final int value) { - bitField0_ |= 0x00000008; - lEJJOJGNIHK = value; - return this; - } - - /** - * optional .ItemList reward = 11; - * @return whether the reward field is set - */ - public boolean hasReward() { + public boolean hasBattleInfo() { return (bitField0_ & 0x00000010) != 0; } /** - * optional .ItemList reward = 11; + * optional .SceneBattleInfo battle_info = 5; * @return this */ - public DoGachaInRollShopScRsp clearReward() { + public QuickStartCocoonStageScRsp clearBattleInfo() { bitField0_ &= ~0x00000010; - reward.clear(); + battleInfo.clear(); return this; } /** - * optional .ItemList reward = 11; + * optional .SceneBattleInfo battle_info = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableReward()} if you want to modify it. + * Use {@link #getMutableBattleInfo()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getReward() { - return reward; + public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { + return battleInfo; } /** - * optional .ItemList reward = 11; + * optional .SceneBattleInfo battle_info = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -242,83 +242,84 @@ public final class DoGachaInRollShopScRspOuterClass { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableReward() { + public SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { bitField0_ |= 0x00000010; - return reward; + return battleInfo; } /** - * optional .ItemList reward = 11; - * @param value the reward to set + * optional .SceneBattleInfo battle_info = 5; + * @param value the battleInfo to set * @return this */ - public DoGachaInRollShopScRsp setReward(final ItemListOuterClass.ItemList value) { + public QuickStartCocoonStageScRsp setBattleInfo( + final SceneBattleInfoOuterClass.SceneBattleInfo value) { bitField0_ |= 0x00000010; - reward.copyFrom(value); + battleInfo.copyFrom(value); return this; } @Override - public DoGachaInRollShopScRsp copyFrom(final DoGachaInRollShopScRsp other) { + public QuickStartCocoonStageScRsp copyFrom(final QuickStartCocoonStageScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + cocoonId = other.cocoonId; + wave = other.wave; + waveCount = other.waveCount; retcode = other.retcode; - aFMPDBBHCHM = other.aFMPDBBHCHM; - rollShopId = other.rollShopId; - lEJJOJGNIHK = other.lEJJOJGNIHK; - reward.copyFrom(other.reward); + battleInfo.copyFrom(other.battleInfo); } return this; } @Override - public DoGachaInRollShopScRsp mergeFrom(final DoGachaInRollShopScRsp other) { + public QuickStartCocoonStageScRsp mergeFrom(final QuickStartCocoonStageScRsp other) { if (other.isEmpty()) { return this; } cachedSize = -1; + if (other.hasCocoonId()) { + setCocoonId(other.cocoonId); + } + if (other.hasWave()) { + setWave(other.wave); + } + if (other.hasWaveCount()) { + setWaveCount(other.waveCount); + } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasAFMPDBBHCHM()) { - setAFMPDBBHCHM(other.aFMPDBBHCHM); - } - if (other.hasRollShopId()) { - setRollShopId(other.rollShopId); - } - if (other.hasLEJJOJGNIHK()) { - setLEJJOJGNIHK(other.lEJJOJGNIHK); - } - if (other.hasReward()) { - getMutableReward().mergeFrom(other.reward); + if (other.hasBattleInfo()) { + getMutableBattleInfo().mergeFrom(other.battleInfo); } return this; } @Override - public DoGachaInRollShopScRsp clear() { + public QuickStartCocoonStageScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; + cocoonId = 0; + wave = 0; + waveCount = 0; retcode = 0; - aFMPDBBHCHM = 0; - rollShopId = 0; - lEJJOJGNIHK = 0; - reward.clear(); + battleInfo.clear(); return this; } @Override - public DoGachaInRollShopScRsp clearQuick() { + public QuickStartCocoonStageScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - reward.clearQuick(); + battleInfo.clearQuick(); return this; } @@ -327,39 +328,39 @@ public final class DoGachaInRollShopScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof DoGachaInRollShopScRsp)) { + if (!(o instanceof QuickStartCocoonStageScRsp)) { return false; } - DoGachaInRollShopScRsp other = (DoGachaInRollShopScRsp) o; + QuickStartCocoonStageScRsp other = (QuickStartCocoonStageScRsp) o; return bitField0_ == other.bitField0_ + && (!hasCocoonId() || cocoonId == other.cocoonId) + && (!hasWave() || wave == other.wave) + && (!hasWaveCount() || waveCount == other.waveCount) && (!hasRetcode() || retcode == other.retcode) - && (!hasAFMPDBBHCHM() || aFMPDBBHCHM == other.aFMPDBBHCHM) - && (!hasRollShopId() || rollShopId == other.rollShopId) - && (!hasLEJJOJGNIHK() || lEJJOJGNIHK == other.lEJJOJGNIHK) - && (!hasReward() || reward.equals(other.reward)); + && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(aFMPDBBHCHM); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(wave); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rollShopId); + output.writeUInt32NoTag(waveCount); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(lEJJOJGNIHK); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(reward); + output.writeRawByte((byte) 42); + output.writeMessageNoTag(battleInfo); } } @@ -367,42 +368,42 @@ public final class DoGachaInRollShopScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aFMPDBBHCHM); + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveCount); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(lEJJOJGNIHK); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); } return size; } @Override @SuppressWarnings("fallthrough") - public DoGachaInRollShopScRsp mergeFrom(final ProtoSource input) throws IOException { + public QuickStartCocoonStageScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 24: { - // retcode - retcode = input.readUInt32(); + // cocoonId + cocoonId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 32) { break; } } - case 48: { - // aFMPDBBHCHM - aFMPDBBHCHM = input.readUInt32(); + case 32: { + // wave + wave = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 56) { @@ -410,8 +411,8 @@ public final class DoGachaInRollShopScRspOuterClass { } } case 56: { - // rollShopId - rollShopId = input.readUInt32(); + // waveCount + waveCount = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 112) { @@ -419,17 +420,17 @@ public final class DoGachaInRollShopScRspOuterClass { } } case 112: { - // lEJJOJGNIHK - lEJJOJGNIHK = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 90) { + if (tag != 42) { break; } } - case 90: { - // reward - input.readMessage(reward); + case 42: { + // battleInfo + input.readMessage(battleInfo); bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { @@ -454,34 +455,35 @@ public final class DoGachaInRollShopScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.cocoonId, cocoonId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.aFMPDBBHCHM, aFMPDBBHCHM); + output.writeUInt32(FieldNames.wave, wave); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rollShopId, rollShopId); + output.writeUInt32(FieldNames.waveCount, waveCount); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.lEJJOJGNIHK, lEJJOJGNIHK); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.reward, reward); + output.writeMessage(FieldNames.battleInfo, battleInfo); } output.endObject(); } @Override - public DoGachaInRollShopScRsp mergeFrom(final JsonSource input) throws IOException { + public QuickStartCocoonStageScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + cocoonId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -489,10 +491,10 @@ public final class DoGachaInRollShopScRspOuterClass { } break; } - case 715464508: { - if (input.isAtField(FieldNames.aFMPDBBHCHM)) { + case 3642105: { + if (input.isAtField(FieldNames.wave)) { if (!input.trySkipNullValue()) { - aFMPDBBHCHM = input.readUInt32(); + wave = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -500,11 +502,11 @@ public final class DoGachaInRollShopScRspOuterClass { } break; } - case -904898162: - case -1612413630: { - if (input.isAtField(FieldNames.rollShopId)) { + case 1518256534: + case 611674185: { + if (input.isAtField(FieldNames.waveCount)) { if (!input.trySkipNullValue()) { - rollShopId = input.readUInt32(); + waveCount = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -512,10 +514,10 @@ public final class DoGachaInRollShopScRspOuterClass { } break; } - case -1007707855: { - if (input.isAtField(FieldNames.lEJJOJGNIHK)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - lEJJOJGNIHK = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -523,10 +525,11 @@ public final class DoGachaInRollShopScRspOuterClass { } break; } - case -934326481: { - if (input.isAtField(FieldNames.reward)) { + case 2053377414: + case -749633579: { + if (input.isAtField(FieldNames.battleInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(reward); + input.readMessage(battleInfo); bitField0_ |= 0x00000010; } } else { @@ -545,8 +548,8 @@ public final class DoGachaInRollShopScRspOuterClass { } @Override - public DoGachaInRollShopScRsp clone() { - return new DoGachaInRollShopScRsp().copyFrom(this); + public QuickStartCocoonStageScRsp clone() { + return new QuickStartCocoonStageScRsp().copyFrom(this); } @Override @@ -554,32 +557,32 @@ public final class DoGachaInRollShopScRspOuterClass { return ((bitField0_) == 0); } - public static DoGachaInRollShopScRsp parseFrom(final byte[] data) throws + public static QuickStartCocoonStageScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new DoGachaInRollShopScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new QuickStartCocoonStageScRsp(), data).checkInitialized(); } - public static DoGachaInRollShopScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new DoGachaInRollShopScRsp(), input).checkInitialized(); + public static QuickStartCocoonStageScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartCocoonStageScRsp(), input).checkInitialized(); } - public static DoGachaInRollShopScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new DoGachaInRollShopScRsp(), input).checkInitialized(); + public static QuickStartCocoonStageScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartCocoonStageScRsp(), input).checkInitialized(); } /** - * @return factory for creating DoGachaInRollShopScRsp messages + * @return factory for creating QuickStartCocoonStageScRsp messages */ - public static MessageFactory getFactory() { - return DoGachaInRollShopScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return QuickStartCocoonStageScRspFactory.INSTANCE; } - private enum DoGachaInRollShopScRspFactory implements MessageFactory { + private enum QuickStartCocoonStageScRspFactory implements MessageFactory { INSTANCE; @Override - public DoGachaInRollShopScRsp create() { - return DoGachaInRollShopScRsp.newInstance(); + public QuickStartCocoonStageScRsp create() { + return QuickStartCocoonStageScRsp.newInstance(); } } @@ -587,15 +590,15 @@ public final class DoGachaInRollShopScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); + + static final FieldName wave = FieldName.forField("wave"); + + static final FieldName waveCount = FieldName.forField("waveCount", "wave_count"); + static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName aFMPDBBHCHM = FieldName.forField("AFMPDBBHCHM"); - - static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); - - static final FieldName lEJJOJGNIHK = FieldName.forField("LEJJOJGNIHK"); - - static final FieldName reward = FieldName.forField("reward"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/QuickStartFarmElementCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuickStartFarmElementCsReqOuterClass.java new file mode 100644 index 0000000..683a713 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/QuickStartFarmElementCsReqOuterClass.java @@ -0,0 +1,422 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class QuickStartFarmElementCsReqOuterClass { + /** + * Protobuf type {@code QuickStartFarmElementCsReq} + */ + public static final class QuickStartFarmElementCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 wave_count = 2; + */ + private int waveCount; + + /** + * optional uint32 world_level = 9; + */ + private int worldLevel; + + /** + * optional uint32 farm_element_id = 15; + */ + private int farmElementId; + + private QuickStartFarmElementCsReq() { + } + + /** + * @return a new empty instance of {@code QuickStartFarmElementCsReq} + */ + public static QuickStartFarmElementCsReq newInstance() { + return new QuickStartFarmElementCsReq(); + } + + /** + * optional uint32 wave_count = 2; + * @return whether the waveCount field is set + */ + public boolean hasWaveCount() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 wave_count = 2; + * @return this + */ + public QuickStartFarmElementCsReq clearWaveCount() { + bitField0_ &= ~0x00000001; + waveCount = 0; + return this; + } + + /** + * optional uint32 wave_count = 2; + * @return the waveCount + */ + public int getWaveCount() { + return waveCount; + } + + /** + * optional uint32 wave_count = 2; + * @param value the waveCount to set + * @return this + */ + public QuickStartFarmElementCsReq setWaveCount(final int value) { + bitField0_ |= 0x00000001; + waveCount = value; + return this; + } + + /** + * optional uint32 world_level = 9; + * @return whether the worldLevel field is set + */ + public boolean hasWorldLevel() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 world_level = 9; + * @return this + */ + public QuickStartFarmElementCsReq clearWorldLevel() { + bitField0_ &= ~0x00000002; + worldLevel = 0; + return this; + } + + /** + * optional uint32 world_level = 9; + * @return the worldLevel + */ + public int getWorldLevel() { + return worldLevel; + } + + /** + * optional uint32 world_level = 9; + * @param value the worldLevel to set + * @return this + */ + public QuickStartFarmElementCsReq setWorldLevel(final int value) { + bitField0_ |= 0x00000002; + worldLevel = value; + return this; + } + + /** + * optional uint32 farm_element_id = 15; + * @return whether the farmElementId field is set + */ + public boolean hasFarmElementId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 farm_element_id = 15; + * @return this + */ + public QuickStartFarmElementCsReq clearFarmElementId() { + bitField0_ &= ~0x00000004; + farmElementId = 0; + return this; + } + + /** + * optional uint32 farm_element_id = 15; + * @return the farmElementId + */ + public int getFarmElementId() { + return farmElementId; + } + + /** + * optional uint32 farm_element_id = 15; + * @param value the farmElementId to set + * @return this + */ + public QuickStartFarmElementCsReq setFarmElementId(final int value) { + bitField0_ |= 0x00000004; + farmElementId = value; + return this; + } + + @Override + public QuickStartFarmElementCsReq copyFrom(final QuickStartFarmElementCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + waveCount = other.waveCount; + worldLevel = other.worldLevel; + farmElementId = other.farmElementId; + } + return this; + } + + @Override + public QuickStartFarmElementCsReq mergeFrom(final QuickStartFarmElementCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasWaveCount()) { + setWaveCount(other.waveCount); + } + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasFarmElementId()) { + setFarmElementId(other.farmElementId); + } + return this; + } + + @Override + public QuickStartFarmElementCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + waveCount = 0; + worldLevel = 0; + farmElementId = 0; + return this; + } + + @Override + public QuickStartFarmElementCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof QuickStartFarmElementCsReq)) { + return false; + } + QuickStartFarmElementCsReq other = (QuickStartFarmElementCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasWaveCount() || waveCount == other.waveCount) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasFarmElementId() || farmElementId == other.farmElementId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(waveCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(farmElementId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveCount); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(farmElementId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public QuickStartFarmElementCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // waveCount + waveCount = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // farmElementId + farmElementId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.waveCount, waveCount); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.worldLevel, worldLevel); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.farmElementId, farmElementId); + } + output.endObject(); + } + + @Override + public QuickStartFarmElementCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1518256534: + case 611674185: { + if (input.isAtField(FieldNames.waveCount)) { + if (!input.trySkipNullValue()) { + waveCount = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1414890079: + case 1118077159: { + if (input.isAtField(FieldNames.farmElementId)) { + if (!input.trySkipNullValue()) { + farmElementId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public QuickStartFarmElementCsReq clone() { + return new QuickStartFarmElementCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static QuickStartFarmElementCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new QuickStartFarmElementCsReq(), data).checkInitialized(); + } + + public static QuickStartFarmElementCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartFarmElementCsReq(), input).checkInitialized(); + } + + public static QuickStartFarmElementCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartFarmElementCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating QuickStartFarmElementCsReq messages + */ + public static MessageFactory getFactory() { + return QuickStartFarmElementCsReqFactory.INSTANCE; + } + + private enum QuickStartFarmElementCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public QuickStartFarmElementCsReq create() { + return QuickStartFarmElementCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName waveCount = FieldName.forField("waveCount", "wave_count"); + + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName farmElementId = FieldName.forField("farmElementId", "farm_element_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueBuffScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuickStartFarmElementScRspOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/SelectRogueBuffScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/QuickStartFarmElementScRspOuterClass.java index 599edde..836a30d 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueBuffScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuickStartFarmElementScRspOuterClass.java @@ -11,100 +11,137 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class SelectRogueBuffScRspOuterClass { +public final class QuickStartFarmElementScRspOuterClass { /** - * Protobuf type {@code SelectRogueBuffScRsp} + * Protobuf type {@code QuickStartFarmElementScRsp} */ - public static final class SelectRogueBuffScRsp extends ProtoMessage implements Cloneable { + public static final class QuickStartFarmElementScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 maze_buff_id = 4; + * optional uint32 world_level = 6; */ - private int mazeBuffId; + private int worldLevel; /** - * optional uint32 retcode = 7; + * optional uint32 farm_element_id = 7; + */ + private int farmElementId; + + /** + * optional uint32 retcode = 14; */ private int retcode; /** - * optional uint32 maze_buff_level = 14; + * optional .SceneBattleInfo battle_info = 9; */ - private int mazeBuffLevel; + private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); - /** - * optional .RogueBuffSelectInfo buff_select_info = 6; - */ - private final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo buffSelectInfo = RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo.newInstance(); - - private SelectRogueBuffScRsp() { + private QuickStartFarmElementScRsp() { } /** - * @return a new empty instance of {@code SelectRogueBuffScRsp} + * @return a new empty instance of {@code QuickStartFarmElementScRsp} */ - public static SelectRogueBuffScRsp newInstance() { - return new SelectRogueBuffScRsp(); + public static QuickStartFarmElementScRsp newInstance() { + return new QuickStartFarmElementScRsp(); } /** - * optional uint32 maze_buff_id = 4; - * @return whether the mazeBuffId field is set + * optional uint32 world_level = 6; + * @return whether the worldLevel field is set */ - public boolean hasMazeBuffId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 maze_buff_id = 4; + * optional uint32 world_level = 6; * @return this */ - public SelectRogueBuffScRsp clearMazeBuffId() { + public QuickStartFarmElementScRsp clearWorldLevel() { bitField0_ &= ~0x00000001; - mazeBuffId = 0; + worldLevel = 0; return this; } /** - * optional uint32 maze_buff_id = 4; - * @return the mazeBuffId + * optional uint32 world_level = 6; + * @return the worldLevel */ - public int getMazeBuffId() { - return mazeBuffId; + public int getWorldLevel() { + return worldLevel; } /** - * optional uint32 maze_buff_id = 4; - * @param value the mazeBuffId to set + * optional uint32 world_level = 6; + * @param value the worldLevel to set * @return this */ - public SelectRogueBuffScRsp setMazeBuffId(final int value) { + public QuickStartFarmElementScRsp setWorldLevel(final int value) { bitField0_ |= 0x00000001; - mazeBuffId = value; + worldLevel = value; return this; } /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set + * optional uint32 farm_element_id = 7; + * @return whether the farmElementId field is set */ - public boolean hasRetcode() { + public boolean hasFarmElementId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 7; + * optional uint32 farm_element_id = 7; * @return this */ - public SelectRogueBuffScRsp clearRetcode() { + public QuickStartFarmElementScRsp clearFarmElementId() { bitField0_ &= ~0x00000002; + farmElementId = 0; + return this; + } + + /** + * optional uint32 farm_element_id = 7; + * @return the farmElementId + */ + public int getFarmElementId() { + return farmElementId; + } + + /** + * optional uint32 farm_element_id = 7; + * @param value the farmElementId to set + * @return this + */ + public QuickStartFarmElementScRsp setFarmElementId(final int value) { + bitField0_ |= 0x00000002; + farmElementId = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public QuickStartFarmElementScRsp clearRetcode() { + bitField0_ &= ~0x00000004; retcode = 0; return this; } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -112,87 +149,50 @@ public final class SelectRogueBuffScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ - public SelectRogueBuffScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + public QuickStartFarmElementScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; retcode = value; return this; } /** - * optional uint32 maze_buff_level = 14; - * @return whether the mazeBuffLevel field is set + * optional .SceneBattleInfo battle_info = 9; + * @return whether the battleInfo field is set */ - public boolean hasMazeBuffLevel() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 maze_buff_level = 14; - * @return this - */ - public SelectRogueBuffScRsp clearMazeBuffLevel() { - bitField0_ &= ~0x00000004; - mazeBuffLevel = 0; - return this; - } - - /** - * optional uint32 maze_buff_level = 14; - * @return the mazeBuffLevel - */ - public int getMazeBuffLevel() { - return mazeBuffLevel; - } - - /** - * optional uint32 maze_buff_level = 14; - * @param value the mazeBuffLevel to set - * @return this - */ - public SelectRogueBuffScRsp setMazeBuffLevel(final int value) { - bitField0_ |= 0x00000004; - mazeBuffLevel = value; - return this; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 6; - * @return whether the buffSelectInfo field is set - */ - public boolean hasBuffSelectInfo() { + public boolean hasBattleInfo() { return (bitField0_ & 0x00000008) != 0; } /** - * optional .RogueBuffSelectInfo buff_select_info = 6; + * optional .SceneBattleInfo battle_info = 9; * @return this */ - public SelectRogueBuffScRsp clearBuffSelectInfo() { + public QuickStartFarmElementScRsp clearBattleInfo() { bitField0_ &= ~0x00000008; - buffSelectInfo.clear(); + battleInfo.clear(); return this; } /** - * optional .RogueBuffSelectInfo buff_select_info = 6; + * optional .SceneBattleInfo battle_info = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableBuffSelectInfo()} if you want to modify it. + * Use {@link #getMutableBattleInfo()} if you want to modify it. * * @return internal storage object for reading */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getBuffSelectInfo() { - return buffSelectInfo; + public SceneBattleInfoOuterClass.SceneBattleInfo getBattleInfo() { + return battleInfo; } /** - * optional .RogueBuffSelectInfo buff_select_info = 6; + * optional .SceneBattleInfo battle_info = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -200,79 +200,79 @@ public final class SelectRogueBuffScRspOuterClass { * * @return internal storage object for modifications */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getMutableBuffSelectInfo() { + public SceneBattleInfoOuterClass.SceneBattleInfo getMutableBattleInfo() { bitField0_ |= 0x00000008; - return buffSelectInfo; + return battleInfo; } /** - * optional .RogueBuffSelectInfo buff_select_info = 6; - * @param value the buffSelectInfo to set + * optional .SceneBattleInfo battle_info = 9; + * @param value the battleInfo to set * @return this */ - public SelectRogueBuffScRsp setBuffSelectInfo( - final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo value) { + public QuickStartFarmElementScRsp setBattleInfo( + final SceneBattleInfoOuterClass.SceneBattleInfo value) { bitField0_ |= 0x00000008; - buffSelectInfo.copyFrom(value); + battleInfo.copyFrom(value); return this; } @Override - public SelectRogueBuffScRsp copyFrom(final SelectRogueBuffScRsp other) { + public QuickStartFarmElementScRsp copyFrom(final QuickStartFarmElementScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mazeBuffId = other.mazeBuffId; + worldLevel = other.worldLevel; + farmElementId = other.farmElementId; retcode = other.retcode; - mazeBuffLevel = other.mazeBuffLevel; - buffSelectInfo.copyFrom(other.buffSelectInfo); + battleInfo.copyFrom(other.battleInfo); } return this; } @Override - public SelectRogueBuffScRsp mergeFrom(final SelectRogueBuffScRsp other) { + public QuickStartFarmElementScRsp mergeFrom(final QuickStartFarmElementScRsp other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasMazeBuffId()) { - setMazeBuffId(other.mazeBuffId); + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasFarmElementId()) { + setFarmElementId(other.farmElementId); } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasMazeBuffLevel()) { - setMazeBuffLevel(other.mazeBuffLevel); - } - if (other.hasBuffSelectInfo()) { - getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); + if (other.hasBattleInfo()) { + getMutableBattleInfo().mergeFrom(other.battleInfo); } return this; } @Override - public SelectRogueBuffScRsp clear() { + public QuickStartFarmElementScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - mazeBuffId = 0; + worldLevel = 0; + farmElementId = 0; retcode = 0; - mazeBuffLevel = 0; - buffSelectInfo.clear(); + battleInfo.clear(); return this; } @Override - public SelectRogueBuffScRsp clearQuick() { + public QuickStartFarmElementScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - buffSelectInfo.clearQuick(); + battleInfo.clearQuick(); return this; } @@ -281,34 +281,34 @@ public final class SelectRogueBuffScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof SelectRogueBuffScRsp)) { + if (!(o instanceof QuickStartFarmElementScRsp)) { return false; } - SelectRogueBuffScRsp other = (SelectRogueBuffScRsp) o; + QuickStartFarmElementScRsp other = (QuickStartFarmElementScRsp) o; return bitField0_ == other.bitField0_ - && (!hasMazeBuffId() || mazeBuffId == other.mazeBuffId) + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasFarmElementId() || farmElementId == other.farmElementId) && (!hasRetcode() || retcode == other.retcode) - && (!hasMazeBuffLevel() || mazeBuffLevel == other.mazeBuffLevel) - && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)); + && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(mazeBuffId); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(farmElementId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(mazeBuffLevel); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(buffSelectInfo); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(battleInfo); } } @@ -316,30 +316,30 @@ public final class SelectRogueBuffScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mazeBuffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(farmElementId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mazeBuffLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); } return size; } @Override @SuppressWarnings("fallthrough") - public SelectRogueBuffScRsp mergeFrom(final ProtoSource input) throws IOException { + public QuickStartFarmElementScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // mazeBuffId - mazeBuffId = input.readUInt32(); + case 48: { + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 56) { @@ -347,8 +347,8 @@ public final class SelectRogueBuffScRspOuterClass { } } case 56: { - // retcode - retcode = input.readUInt32(); + // farmElementId + farmElementId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 112) { @@ -356,17 +356,17 @@ public final class SelectRogueBuffScRspOuterClass { } } case 112: { - // mazeBuffLevel - mazeBuffLevel = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 50) { + if (tag != 74) { break; } } - case 50: { - // buffSelectInfo - input.readMessage(buffSelectInfo); + case 74: { + // battleInfo + input.readMessage(battleInfo); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -391,32 +391,32 @@ public final class SelectRogueBuffScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mazeBuffId, mazeBuffId); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.farmElementId, farmElementId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mazeBuffLevel, mazeBuffLevel); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); + output.writeMessage(FieldNames.battleInfo, battleInfo); } output.endObject(); } @Override - public SelectRogueBuffScRsp mergeFrom(final JsonSource input) throws IOException { + public QuickStartFarmElementScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 144210285: - case 896621575: { - if (input.isAtField(FieldNames.mazeBuffId)) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { - mazeBuffId = input.readUInt32(); + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -424,22 +424,22 @@ public final class SelectRogueBuffScRspOuterClass { } break; } + case -1414890079: + case 1118077159: { + if (input.isAtField(FieldNames.farmElementId)) { + if (!input.trySkipNullValue()) { + farmElementId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case 1097936398: { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1204221426: - case 854643992: { - if (input.isAtField(FieldNames.mazeBuffLevel)) { - if (!input.trySkipNullValue()) { - mazeBuffLevel = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -447,11 +447,11 @@ public final class SelectRogueBuffScRspOuterClass { } break; } - case -255242115: - case 1500540965: { - if (input.isAtField(FieldNames.buffSelectInfo)) { + case 2053377414: + case -749633579: { + if (input.isAtField(FieldNames.battleInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(buffSelectInfo); + input.readMessage(battleInfo); bitField0_ |= 0x00000008; } } else { @@ -470,8 +470,8 @@ public final class SelectRogueBuffScRspOuterClass { } @Override - public SelectRogueBuffScRsp clone() { - return new SelectRogueBuffScRsp().copyFrom(this); + public QuickStartFarmElementScRsp clone() { + return new QuickStartFarmElementScRsp().copyFrom(this); } @Override @@ -479,32 +479,32 @@ public final class SelectRogueBuffScRspOuterClass { return ((bitField0_) == 0); } - public static SelectRogueBuffScRsp parseFrom(final byte[] data) throws + public static QuickStartFarmElementScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueBuffScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new QuickStartFarmElementScRsp(), data).checkInitialized(); } - public static SelectRogueBuffScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueBuffScRsp(), input).checkInitialized(); + public static QuickStartFarmElementScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartFarmElementScRsp(), input).checkInitialized(); } - public static SelectRogueBuffScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueBuffScRsp(), input).checkInitialized(); + public static QuickStartFarmElementScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new QuickStartFarmElementScRsp(), input).checkInitialized(); } /** - * @return factory for creating SelectRogueBuffScRsp messages + * @return factory for creating QuickStartFarmElementScRsp messages */ - public static MessageFactory getFactory() { - return SelectRogueBuffScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return QuickStartFarmElementScRspFactory.INSTANCE; } - private enum SelectRogueBuffScRspFactory implements MessageFactory { + private enum QuickStartFarmElementScRspFactory implements MessageFactory { INSTANCE; @Override - public SelectRogueBuffScRsp create() { - return SelectRogueBuffScRsp.newInstance(); + public QuickStartFarmElementScRsp create() { + return QuickStartFarmElementScRsp.newInstance(); } } @@ -512,13 +512,13 @@ public final class SelectRogueBuffScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mazeBuffId = FieldName.forField("mazeBuffId", "maze_buff_id"); + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName farmElementId = FieldName.forField("farmElementId", "farm_element_id"); static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName mazeBuffLevel = FieldName.forField("mazeBuffLevel", "maze_buff_level"); - - static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java index 437b4c9..1e5ffc4 100644 --- a/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/QuitLineupCsReqOuterClass.java @@ -19,32 +19,32 @@ public final class QuitLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 3; */ private int planeId; /** - * optional uint32 base_avatar_id = 8; - */ - private int baseAvatarId; - - /** - * optional uint32 index = 14; + * optional uint32 index = 6; */ private int index; /** - * optional .AvatarType avatar_type = 10; + * optional uint32 base_avatar_id = 9; */ - private int avatarType; + private int baseAvatarId; /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 8; */ private int extraLineupType; /** - * optional bool is_virtual = 7; + * optional .AvatarType avatar_type = 13; + */ + private int avatarType; + + /** + * optional bool is_virtual = 4; */ private boolean isVirtual; @@ -59,7 +59,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 3; * @return whether the planeId field is set */ public boolean hasPlaneId() { @@ -67,7 +67,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 3; * @return this */ public QuitLineupCsReq clearPlaneId() { @@ -77,7 +77,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 3; * @return the planeId */ public int getPlaneId() { @@ -85,7 +85,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 4; + * optional uint32 plane_id = 3; * @param value the planeId to set * @return this */ @@ -96,62 +96,25 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 8; - * @return whether the baseAvatarId field is set + * optional uint32 index = 6; + * @return whether the index field is set */ - public boolean hasBaseAvatarId() { + public boolean hasIndex() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 base_avatar_id = 8; - * @return this - */ - public QuitLineupCsReq clearBaseAvatarId() { - bitField0_ &= ~0x00000002; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 8; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 8; - * @param value the baseAvatarId to set - * @return this - */ - public QuitLineupCsReq setBaseAvatarId(final int value) { - bitField0_ |= 0x00000002; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 index = 14; - * @return whether the index field is set - */ - public boolean hasIndex() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 index = 14; + * optional uint32 index = 6; * @return this */ public QuitLineupCsReq clearIndex() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; index = 0; return this; } /** - * optional uint32 index = 14; + * optional uint32 index = 6; * @return the index */ public int getIndex() { @@ -159,98 +122,73 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional uint32 index = 14; + * optional uint32 index = 6; * @param value the index to set * @return this */ public QuitLineupCsReq setIndex(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; index = value; return this; } /** - * optional .AvatarType avatar_type = 10; - * @return whether the avatarType field is set + * optional uint32 base_avatar_id = 9; + * @return whether the baseAvatarId field is set */ - public boolean hasAvatarType() { + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return this + */ + public QuitLineupCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 9; + * @param value the baseAvatarId to set + * @return this + */ + public QuitLineupCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional .ExtraLineupType extra_lineup_type = 8; + * @return whether the extraLineupType field is set + */ + public boolean hasExtraLineupType() { return (bitField0_ & 0x00000008) != 0; } /** - * optional .AvatarType avatar_type = 10; - * @return this - */ - public QuitLineupCsReq clearAvatarType() { - bitField0_ &= ~0x00000008; - avatarType = 0; - return this; - } - - /** - * optional .AvatarType avatar_type = 10; - * @return the avatarType - */ - public AvatarTypeOuterClass.AvatarType getAvatarType() { - return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link QuitLineupCsReq#getAvatarType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getAvatarTypeValue() { - return avatarType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value - * can cause {@link QuitLineupCsReq#getAvatarType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public QuitLineupCsReq setAvatarTypeValue(final int value) { - bitField0_ |= 0x00000008; - avatarType = value; - return this; - } - - /** - * optional .AvatarType avatar_type = 10; - * @param value the avatarType to set - * @return this - */ - public QuitLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { - bitField0_ |= 0x00000008; - avatarType = value.getNumber(); - return this; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 11; - * @return whether the extraLineupType field is set - */ - public boolean hasExtraLineupType() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 8; * @return this */ public QuitLineupCsReq clearExtraLineupType() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; extraLineupType = 0; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 8; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -277,25 +215,87 @@ public final class QuitLineupCsReqOuterClass { * @return this */ public QuitLineupCsReq setExtraLineupTypeValue(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; extraLineupType = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 8; * @param value the extraLineupType to set * @return this */ public QuitLineupCsReq setExtraLineupType( final ExtraLineupTypeOuterClass.ExtraLineupType value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; extraLineupType = value.getNumber(); return this; } /** - * optional bool is_virtual = 7; + * optional .AvatarType avatar_type = 13; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return this + */ + public QuitLineupCsReq clearAvatarType() { + bitField0_ &= ~0x00000010; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link QuitLineupCsReq#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link QuitLineupCsReq#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public QuitLineupCsReq setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000010; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 13; + * @param value the avatarType to set + * @return this + */ + public QuitLineupCsReq setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000010; + avatarType = value.getNumber(); + return this; + } + + /** + * optional bool is_virtual = 4; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -303,7 +303,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 4; * @return this */ public QuitLineupCsReq clearIsVirtual() { @@ -313,7 +313,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 4; * @return the isVirtual */ public boolean getIsVirtual() { @@ -321,7 +321,7 @@ public final class QuitLineupCsReqOuterClass { } /** - * optional bool is_virtual = 7; + * optional bool is_virtual = 4; * @param value the isVirtual to set * @return this */ @@ -337,10 +337,10 @@ public final class QuitLineupCsReqOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; planeId = other.planeId; - baseAvatarId = other.baseAvatarId; index = other.index; - avatarType = other.avatarType; + baseAvatarId = other.baseAvatarId; extraLineupType = other.extraLineupType; + avatarType = other.avatarType; isVirtual = other.isVirtual; } return this; @@ -355,18 +355,18 @@ public final class QuitLineupCsReqOuterClass { if (other.hasPlaneId()) { setPlaneId(other.planeId); } - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); - } if (other.hasIndex()) { setIndex(other.index); } - if (other.hasAvatarType()) { - setAvatarTypeValue(other.avatarType); + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } if (other.hasIsVirtual()) { setIsVirtual(other.isVirtual); } @@ -381,10 +381,10 @@ public final class QuitLineupCsReqOuterClass { cachedSize = -1; bitField0_ = 0; planeId = 0; - baseAvatarId = 0; index = 0; - avatarType = 0; + baseAvatarId = 0; extraLineupType = 0; + avatarType = 0; isVirtual = false; return this; } @@ -410,37 +410,37 @@ public final class QuitLineupCsReqOuterClass { QuitLineupCsReq other = (QuitLineupCsReq) o; return bitField0_ == other.bitField0_ && (!hasPlaneId() || planeId == other.planeId) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasIndex() || index == other.index) - && (!hasAvatarType() || avatarType == other.avatarType) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) + && (!hasAvatarType() || avatarType == other.avatarType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(index); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeEnumNoTag(avatarType); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(baseAvatarId); } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 64); output.writeEnumNoTag(extraLineupType); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 104); + output.writeEnumNoTag(avatarType); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 32); output.writeBoolNoTag(isVirtual); } } @@ -452,16 +452,16 @@ public final class QuitLineupCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); } if ((bitField0_ & 0x00000020) != 0) { size += 2; @@ -476,58 +476,58 @@ public final class QuitLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 24: { // planeId planeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // baseAvatarId + baseAvatarId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // baseAvatarId - baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // avatarType - final int value = input.readInt32(); - if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { - avatarType = value; - bitField0_ |= 0x00000008; - } - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { extraLineupType = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 56) { + if (tag != 104) { break; } } - case 56: { + case 104: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000010; + } + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000020; @@ -557,16 +557,16 @@ public final class QuitLineupCsReqOuterClass { output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.index, index); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); } if ((bitField0_ & 0x00000010) != 0) { - output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); } if ((bitField0_ & 0x00000020) != 0) { output.writeBool(FieldNames.isVirtual, isVirtual); @@ -593,11 +593,10 @@ public final class QuitLineupCsReqOuterClass { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -605,10 +604,11 @@ public final class QuitLineupCsReqOuterClass { } break; } - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -616,23 +616,6 @@ public final class QuitLineupCsReqOuterClass { } break; } - case -403148749: - case 397309536: { - if (input.isAtField(FieldNames.avatarType)) { - if (!input.trySkipNullValue()) { - final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); - if (value != null) { - avatarType = value.getNumber(); - bitField0_ |= 0x00000008; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } case -468135527: case -1144475077: { if (input.isAtField(FieldNames.extraLineupType)) { @@ -640,6 +623,23 @@ public final class QuitLineupCsReqOuterClass { final ExtraLineupTypeOuterClass.ExtraLineupType value = input.readEnum(ExtraLineupTypeOuterClass.ExtraLineupType.converter()); if (value != null) { extraLineupType = value.getNumber(); + bitField0_ |= 0x00000008; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); bitField0_ |= 0x00000010; } else { input.skipUnknownEnumValue(); @@ -717,14 +717,14 @@ public final class QuitLineupCsReqOuterClass { static class FieldNames { static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName index = FieldName.forField("index"); - static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + static final FieldName isVirtual = FieldName.forField("isVirtual", "is_virtual"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java index 2c369a9..f64250d 100644 --- a/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RankUpAvatarCsReqOuterClass.java @@ -19,17 +19,17 @@ public final class RankUpAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 rank = 6; - */ - private int rank; - - /** - * optional uint32 avatar_id = 14; + * optional uint32 avatar_id = 2; */ private int avatarId; /** - * optional .ItemCostList item_cost_list = 8; + * optional uint32 rank = 3; + */ + private int rank; + + /** + * optional .ItemCostList item_cost_list = 4; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -44,62 +44,25 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 rank = 6; - * @return whether the rank field is set + * optional uint32 avatar_id = 2; + * @return whether the avatarId field is set */ - public boolean hasRank() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 rank = 6; - * @return this - */ - public RankUpAvatarCsReq clearRank() { - bitField0_ &= ~0x00000001; - rank = 0; - return this; - } - - /** - * optional uint32 rank = 6; - * @return the rank - */ - public int getRank() { - return rank; - } - - /** - * optional uint32 rank = 6; - * @param value the rank to set - * @return this - */ - public RankUpAvatarCsReq setRank(final int value) { - bitField0_ |= 0x00000001; - rank = value; - return this; - } - - /** - * optional uint32 avatar_id = 14; - * @return whether the avatarId field is set - */ - public boolean hasAvatarId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 avatar_id = 14; + * optional uint32 avatar_id = 2; * @return this */ public RankUpAvatarCsReq clearAvatarId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; avatarId = 0; return this; } /** - * optional uint32 avatar_id = 14; + * optional uint32 avatar_id = 2; * @return the avatarId */ public int getAvatarId() { @@ -107,18 +70,55 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 14; + * optional uint32 avatar_id = 2; * @param value the avatarId to set * @return this */ public RankUpAvatarCsReq setAvatarId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; avatarId = value; return this; } /** - * optional .ItemCostList item_cost_list = 8; + * optional uint32 rank = 3; + * @return whether the rank field is set + */ + public boolean hasRank() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 rank = 3; + * @return this + */ + public RankUpAvatarCsReq clearRank() { + bitField0_ &= ~0x00000002; + rank = 0; + return this; + } + + /** + * optional uint32 rank = 3; + * @return the rank + */ + public int getRank() { + return rank; + } + + /** + * optional uint32 rank = 3; + * @param value the rank to set + * @return this + */ + public RankUpAvatarCsReq setRank(final int value) { + bitField0_ |= 0x00000002; + rank = value; + return this; + } + + /** + * optional .ItemCostList item_cost_list = 4; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -126,7 +126,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * @return this */ public RankUpAvatarCsReq clearItemCostList() { @@ -136,7 +136,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class RankUpAvatarCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 4; * @param value the itemCostList to set * @return this */ @@ -179,8 +179,8 @@ public final class RankUpAvatarCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - rank = other.rank; avatarId = other.avatarId; + rank = other.rank; itemCostList.copyFrom(other.itemCostList); } return this; @@ -192,12 +192,12 @@ public final class RankUpAvatarCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasRank()) { - setRank(other.rank); - } if (other.hasAvatarId()) { setAvatarId(other.avatarId); } + if (other.hasRank()) { + setRank(other.rank); + } if (other.hasItemCostList()) { getMutableItemCostList().mergeFrom(other.itemCostList); } @@ -211,8 +211,8 @@ public final class RankUpAvatarCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - rank = 0; avatarId = 0; + rank = 0; itemCostList.clear(); return this; } @@ -238,23 +238,23 @@ public final class RankUpAvatarCsReqOuterClass { } RankUpAvatarCsReq other = (RankUpAvatarCsReq) o; return bitField0_ == other.bitField0_ - && (!hasRank() || rank == other.rank) && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasRank() || rank == other.rank) && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(rank); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(avatarId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(rank); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 34); output.writeMessageNoTag(itemCostList); } } @@ -263,10 +263,10 @@ public final class RankUpAvatarCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(rank); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); @@ -281,25 +281,25 @@ public final class RankUpAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // rank - rank = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 16: { // avatarId avatarId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 24) { break; } } - case 66: { + case 24: { + // rank + rank = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class RankUpAvatarCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rank, rank); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.rank, rank); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.itemCostList, itemCostList); @@ -344,10 +344,11 @@ public final class RankUpAvatarCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 3492908: { - if (input.isAtField(FieldNames.rank)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - rank = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -355,11 +356,10 @@ public final class RankUpAvatarCsReqOuterClass { } break; } - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case 3492908: { + if (input.isAtField(FieldNames.rank)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + rank = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -432,10 +432,10 @@ public final class RankUpAvatarCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName rank = FieldName.forField("rank"); - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + static final FieldName rank = FieldName.forField("rank"); + static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java index fe3aa8b..20c078d 100644 --- a/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RankUpEquipmentCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class RankUpEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 15; */ private int equipmentUniqueId; /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 12; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 15; * @return whether the equipmentUniqueId field is set */ public boolean hasEquipmentUniqueId() { @@ -47,7 +47,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 15; * @return this */ public RankUpEquipmentCsReq clearEquipmentUniqueId() { @@ -57,7 +57,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 15; * @return the equipmentUniqueId */ public int getEquipmentUniqueId() { @@ -65,7 +65,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional uint32 equipment_unique_id = 7; + * optional uint32 equipment_unique_id = 15; * @param value the equipmentUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 12; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 12; * @return this */ public RankUpEquipmentCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class RankUpEquipmentCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 8; + * optional .ItemCostList item_cost_list = 12; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class RankUpEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(equipmentUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 98); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class RankUpEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 120: { // equipmentUniqueId equipmentUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 98) { break; } } - case 66: { + case 98: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java index 67d5311..13ffd38 100644 --- a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 15; */ private int stageId; @@ -34,7 +34,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 15; * @return whether the stageId field is set */ public boolean hasStageId() { @@ -42,7 +42,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 15; * @return this */ public ReEnterLastElementStageCsReq clearStageId() { @@ -52,7 +52,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 15; * @return the stageId */ public int getStageId() { @@ -60,7 +60,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { } /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 15; * @param value the stageId to set * @return this */ @@ -129,7 +129,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(stageId); } } @@ -150,7 +150,7 @@ public final class ReEnterLastElementStageCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 120: { // stageId stageId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java index aa99bd8..1ab1c70 100644 --- a/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReEnterLastElementStageScRspOuterClass.java @@ -19,17 +19,17 @@ public final class ReEnterLastElementStageScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; - */ - private int retcode; - - /** - * optional uint32 stage_id = 6; + * optional uint32 stage_id = 13; */ private int stageId; /** - * optional .SceneBattleInfo battle_info = 13; + * optional uint32 retcode = 15; + */ + private int retcode; + + /** + * optional .SceneBattleInfo battle_info = 3; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -44,62 +44,25 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional uint32 retcode = 5; - * @return whether the retcode field is set + * optional uint32 stage_id = 13; + * @return whether the stageId field is set */ - public boolean hasRetcode() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 5; - * @return this - */ - public ReEnterLastElementStageScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 5; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 5; - * @param value the retcode to set - * @return this - */ - public ReEnterLastElementStageScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 stage_id = 6; - * @return whether the stageId field is set - */ - public boolean hasStageId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 stage_id = 6; + * optional uint32 stage_id = 13; * @return this */ public ReEnterLastElementStageScRsp clearStageId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; stageId = 0; return this; } /** - * optional uint32 stage_id = 6; + * optional uint32 stage_id = 13; * @return the stageId */ public int getStageId() { @@ -107,18 +70,55 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional uint32 stage_id = 6; + * optional uint32 stage_id = 13; * @param value the stageId to set * @return this */ public ReEnterLastElementStageScRsp setStageId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; stageId = value; return this; } /** - * optional .SceneBattleInfo battle_info = 13; + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public ReEnterLastElementStageScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public ReEnterLastElementStageScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 3; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -126,7 +126,7 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 3; * @return this */ public ReEnterLastElementStageScRsp clearBattleInfo() { @@ -136,7 +136,7 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class ReEnterLastElementStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 3; * @param value the battleInfo to set * @return this */ @@ -180,8 +180,8 @@ public final class ReEnterLastElementStageScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; stageId = other.stageId; + retcode = other.retcode; battleInfo.copyFrom(other.battleInfo); } return this; @@ -193,12 +193,12 @@ public final class ReEnterLastElementStageScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasStageId()) { setStageId(other.stageId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasBattleInfo()) { getMutableBattleInfo().mergeFrom(other.battleInfo); } @@ -212,8 +212,8 @@ public final class ReEnterLastElementStageScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; stageId = 0; + retcode = 0; battleInfo.clear(); return this; } @@ -239,23 +239,23 @@ public final class ReEnterLastElementStageScRspOuterClass { } ReEnterLastElementStageScRsp other = (ReEnterLastElementStageScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasStageId() || stageId == other.stageId) + && (!hasRetcode() || retcode == other.retcode) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(stageId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 26); output.writeMessageNoTag(battleInfo); } } @@ -264,10 +264,10 @@ public final class ReEnterLastElementStageScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); @@ -282,25 +282,25 @@ public final class ReEnterLastElementStageScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { + case 104: { // stageId stageId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 120) { break; } } - case 106: { + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000004; @@ -327,10 +327,10 @@ public final class ReEnterLastElementStageScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.battleInfo, battleInfo); @@ -345,10 +345,11 @@ public final class ReEnterLastElementStageScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,11 +357,10 @@ public final class ReEnterLastElementStageScRspOuterClass { } break; } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -435,10 +435,10 @@ public final class ReEnterLastElementStageScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RecallPetCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RecallPetCsReqOuterClass.java index 3b9ec72..55473d9 100644 --- a/src/generated/main/emu/lunarcore/proto/RecallPetCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RecallPetCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class RecallPetCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 summoned_pet_id = 8; + * optional uint32 summoned_pet_id = 5; */ private int summonedPetId; @@ -34,7 +34,7 @@ public final class RecallPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 8; + * optional uint32 summoned_pet_id = 5; * @return whether the summonedPetId field is set */ public boolean hasSummonedPetId() { @@ -42,7 +42,7 @@ public final class RecallPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 8; + * optional uint32 summoned_pet_id = 5; * @return this */ public RecallPetCsReq clearSummonedPetId() { @@ -52,7 +52,7 @@ public final class RecallPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 8; + * optional uint32 summoned_pet_id = 5; * @return the summonedPetId */ public int getSummonedPetId() { @@ -60,7 +60,7 @@ public final class RecallPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 8; + * optional uint32 summoned_pet_id = 5; * @param value the summonedPetId to set * @return this */ @@ -129,7 +129,7 @@ public final class RecallPetCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(summonedPetId); } } @@ -150,7 +150,7 @@ public final class RecallPetCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 40: { // summonedPetId summonedPetId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/RecallPetScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RecallPetScRspOuterClass.java index ec04358..964a2f9 100644 --- a/src/generated/main/emu/lunarcore/proto/RecallPetScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RecallPetScRspOuterClass.java @@ -19,20 +19,20 @@ public final class RecallPetScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 BMCOIJCMNNC = 7; - */ - private int bMCOIJCMNNC; - - /** - * optional uint32 cur_pet_id = 13; + * optional uint32 cur_pet_id = 4; */ private int curPetId; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 9; */ private int retcode; + /** + * optional uint32 new_pet_id = 10; + */ + private int newPetId; + private RecallPetScRsp() { } @@ -44,62 +44,25 @@ public final class RecallPetScRspOuterClass { } /** - * optional uint32 BMCOIJCMNNC = 7; - * @return whether the bMCOIJCMNNC field is set + * optional uint32 cur_pet_id = 4; + * @return whether the curPetId field is set */ - public boolean hasBMCOIJCMNNC() { + public boolean hasCurPetId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 BMCOIJCMNNC = 7; - * @return this - */ - public RecallPetScRsp clearBMCOIJCMNNC() { - bitField0_ &= ~0x00000001; - bMCOIJCMNNC = 0; - return this; - } - - /** - * optional uint32 BMCOIJCMNNC = 7; - * @return the bMCOIJCMNNC - */ - public int getBMCOIJCMNNC() { - return bMCOIJCMNNC; - } - - /** - * optional uint32 BMCOIJCMNNC = 7; - * @param value the bMCOIJCMNNC to set - * @return this - */ - public RecallPetScRsp setBMCOIJCMNNC(final int value) { - bitField0_ |= 0x00000001; - bMCOIJCMNNC = value; - return this; - } - - /** - * optional uint32 cur_pet_id = 13; - * @return whether the curPetId field is set - */ - public boolean hasCurPetId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cur_pet_id = 13; + * optional uint32 cur_pet_id = 4; * @return this */ public RecallPetScRsp clearCurPetId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; curPetId = 0; return this; } /** - * optional uint32 cur_pet_id = 13; + * optional uint32 cur_pet_id = 4; * @return the curPetId */ public int getCurPetId() { @@ -107,36 +70,36 @@ public final class RecallPetScRspOuterClass { } /** - * optional uint32 cur_pet_id = 13; + * optional uint32 cur_pet_id = 4; * @param value the curPetId to set * @return this */ public RecallPetScRsp setCurPetId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; curPetId = value; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 9; * @return this */ public RecallPetScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -144,24 +107,61 @@ public final class RecallPetScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ public RecallPetScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } + /** + * optional uint32 new_pet_id = 10; + * @return whether the newPetId field is set + */ + public boolean hasNewPetId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 new_pet_id = 10; + * @return this + */ + public RecallPetScRsp clearNewPetId() { + bitField0_ &= ~0x00000004; + newPetId = 0; + return this; + } + + /** + * optional uint32 new_pet_id = 10; + * @return the newPetId + */ + public int getNewPetId() { + return newPetId; + } + + /** + * optional uint32 new_pet_id = 10; + * @param value the newPetId to set + * @return this + */ + public RecallPetScRsp setNewPetId(final int value) { + bitField0_ |= 0x00000004; + newPetId = value; + return this; + } + @Override public RecallPetScRsp copyFrom(final RecallPetScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - bMCOIJCMNNC = other.bMCOIJCMNNC; curPetId = other.curPetId; retcode = other.retcode; + newPetId = other.newPetId; } return this; } @@ -172,15 +172,15 @@ public final class RecallPetScRspOuterClass { return this; } cachedSize = -1; - if (other.hasBMCOIJCMNNC()) { - setBMCOIJCMNNC(other.bMCOIJCMNNC); - } if (other.hasCurPetId()) { setCurPetId(other.curPetId); } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasNewPetId()) { + setNewPetId(other.newPetId); + } return this; } @@ -191,9 +191,9 @@ public final class RecallPetScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - bMCOIJCMNNC = 0; curPetId = 0; retcode = 0; + newPetId = 0; return this; } @@ -217,39 +217,39 @@ public final class RecallPetScRspOuterClass { } RecallPetScRsp other = (RecallPetScRsp) o; return bitField0_ == other.bitField0_ - && (!hasBMCOIJCMNNC() || bMCOIJCMNNC == other.bMCOIJCMNNC) && (!hasCurPetId() || curPetId == other.curPetId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasNewPetId() || newPetId == other.newPetId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(bMCOIJCMNNC); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(curPetId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(newPetId); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bMCOIJCMNNC); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curPetId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(newPetId); + } return size; } @@ -260,27 +260,27 @@ public final class RecallPetScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // bMCOIJCMNNC - bMCOIJCMNNC = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 32: { // curPetId curPetId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 72) { break; } } - case 112: { + case 72: { // retcode retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // newPetId + newPetId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,14 +305,14 @@ public final class RecallPetScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.bMCOIJCMNNC, bMCOIJCMNNC); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.curPetId, curPetId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.newPetId, newPetId); + } output.endObject(); } @@ -323,23 +323,12 @@ public final class RecallPetScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1362418561: { - if (input.isAtField(FieldNames.bMCOIJCMNNC)) { - if (!input.trySkipNullValue()) { - bMCOIJCMNNC = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 544007226: case -465065190: { if (input.isAtField(FieldNames.curPetId)) { if (!input.trySkipNullValue()) { curPetId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -350,6 +339,18 @@ public final class RecallPetScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1363040474: + case 646870970: { + if (input.isAtField(FieldNames.newPetId)) { + if (!input.trySkipNullValue()) { + newPetId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -410,11 +411,11 @@ public final class RecallPetScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName bMCOIJCMNNC = FieldName.forField("BMCOIJCMNNC"); - static final FieldName curPetId = FieldName.forField("curPetId", "cur_pet_id"); static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName newPetId = FieldName.forField("newPetId", "new_pet_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java index 0a9c18b..4a8224b 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientCsReqOuterClass.java @@ -21,12 +21,12 @@ public final class RefreshTriggerByClientCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 trigger_entity_id = 11; + * optional uint32 trigger_entity_id = 7; */ private int triggerEntityId; /** - * optional .MotionInfo trigger_motion = 14; + * optional .MotionInfo trigger_motion = 13; */ private final MotionInfoOuterClass.MotionInfo triggerMotion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -36,7 +36,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { private final Utf8String triggerName = Utf8String.newEmptyInstance(); /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; */ private final RepeatedInt triggerTargetIdList = RepeatedInt.newEmptyInstance(); @@ -51,7 +51,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 11; + * optional uint32 trigger_entity_id = 7; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -59,7 +59,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 11; + * optional uint32 trigger_entity_id = 7; * @return this */ public RefreshTriggerByClientCsReq clearTriggerEntityId() { @@ -69,7 +69,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 11; + * optional uint32 trigger_entity_id = 7; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -77,7 +77,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional uint32 trigger_entity_id = 11; + * optional uint32 trigger_entity_id = 7; * @param value the triggerEntityId to set * @return this */ @@ -88,7 +88,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional .MotionInfo trigger_motion = 14; + * optional .MotionInfo trigger_motion = 13; * @return whether the triggerMotion field is set */ public boolean hasTriggerMotion() { @@ -96,7 +96,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional .MotionInfo trigger_motion = 14; + * optional .MotionInfo trigger_motion = 13; * @return this */ public RefreshTriggerByClientCsReq clearTriggerMotion() { @@ -106,7 +106,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional .MotionInfo trigger_motion = 14; + * optional .MotionInfo trigger_motion = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -120,7 +120,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional .MotionInfo trigger_motion = 14; + * optional .MotionInfo trigger_motion = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -134,7 +134,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * optional .MotionInfo trigger_motion = 14; + * optional .MotionInfo trigger_motion = 13; * @param value the triggerMotion to set * @return this */ @@ -211,7 +211,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; * @return whether the triggerTargetIdList field is set */ public boolean hasTriggerTargetIdList() { @@ -219,7 +219,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; * @return this */ public RefreshTriggerByClientCsReq clearTriggerTargetIdList() { @@ -229,7 +229,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -243,7 +243,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -257,7 +257,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; * @param value the triggerTargetIdList to add * @return this */ @@ -268,7 +268,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } /** - * repeated uint32 trigger_target_id_list = 15; + * repeated uint32 trigger_target_id_list = 2; * @param values the triggerTargetIdList to add * @return this */ @@ -358,11 +358,11 @@ public final class RefreshTriggerByClientCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 106); output.writeMessageNoTag(triggerMotion); } if ((bitField0_ & 0x00000004) != 0) { @@ -371,7 +371,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { } if ((bitField0_ & 0x00000008) != 0) { for (int i = 0; i < triggerTargetIdList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(triggerTargetIdList.array()[i]); } } @@ -402,16 +402,16 @@ public final class RefreshTriggerByClientCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 56: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 106) { break; } } - case 114: { + case 106: { // triggerMotion input.readMessage(triggerMotion); bitField0_ |= 0x00000002; @@ -425,11 +425,11 @@ public final class RefreshTriggerByClientCsReqOuterClass { input.readString(triggerName); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 122) { + if (tag != 18) { break; } } - case 122: { + case 18: { // triggerTargetIdList [packed=true] input.readPackedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000008; @@ -448,7 +448,7 @@ public final class RefreshTriggerByClientCsReqOuterClass { tag = input.readTag(); break; } - case 120: { + case 16: { // triggerTargetIdList [packed=false] tag = input.readRepeatedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java index 47b21dc..5507053 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScNotifyOuterClass.java @@ -21,17 +21,17 @@ public final class RefreshTriggerByClientScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 5; */ private int triggerEntityId; /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; */ private final RepeatedInt triggerTargetIdList = RepeatedInt.newEmptyInstance(); @@ -46,7 +46,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 5; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -54,7 +54,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 5; * @return this */ public RefreshTriggerByClientScNotify clearTriggerEntityId() { @@ -64,7 +64,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 5; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -72,7 +72,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional uint32 trigger_entity_id = 6; + * optional uint32 trigger_entity_id = 5; * @param value the triggerEntityId to set * @return this */ @@ -83,7 +83,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -91,7 +91,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @return this */ public RefreshTriggerByClientScNotify clearTriggerName() { @@ -101,7 +101,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @return the triggerName */ public String getTriggerName() { @@ -109,7 +109,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -117,7 +117,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -126,7 +126,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @param value the triggerName to set * @return this */ @@ -137,7 +137,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * optional string trigger_name = 8; + * optional string trigger_name = 1; * @param value the triggerName to set * @return this */ @@ -148,7 +148,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; * @return whether the triggerTargetIdList field is set */ public boolean hasTriggerTargetIdList() { @@ -156,7 +156,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; * @return this */ public RefreshTriggerByClientScNotify clearTriggerTargetIdList() { @@ -166,7 +166,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -180,7 +180,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -194,7 +194,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; * @param value the triggerTargetIdList to add * @return this */ @@ -205,7 +205,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { } /** - * repeated uint32 trigger_target_id_list = 1; + * repeated uint32 trigger_target_id_list = 3; * @param values the triggerTargetIdList to add * @return this */ @@ -288,16 +288,16 @@ public final class RefreshTriggerByClientScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 10); output.writeStringNoTag(triggerName); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < triggerTargetIdList.length(); i++) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(triggerTargetIdList.array()[i]); } } @@ -325,25 +325,25 @@ public final class RefreshTriggerByClientScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 40: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // triggerName - input.readString(triggerName); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 10) { break; } } case 10: { + // triggerName + input.readString(triggerName); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // triggerTargetIdList [packed=true] input.readPackedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000004; @@ -362,7 +362,7 @@ public final class RefreshTriggerByClientScNotifyOuterClass { tag = input.readTag(); break; } - case 8: { + case 24: { // triggerTargetIdList [packed=false] tag = input.readRepeatedUInt32(triggerTargetIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java index 308197e..06a028f 100644 --- a/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RefreshTriggerByClientScRspOuterClass.java @@ -20,22 +20,22 @@ public final class RefreshTriggerByClientScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional uint32 trigger_entity_id = 12; + * optional uint32 trigger_entity_id = 10; */ private int triggerEntityId; /** - * optional bool refresh_trigger = 2; + * optional bool refresh_trigger = 13; */ private boolean refreshTrigger; /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; */ private final Utf8String triggerName = Utf8String.newEmptyInstance(); @@ -50,7 +50,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -58,7 +58,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @return this */ public RefreshTriggerByClientScRsp clearRetcode() { @@ -68,7 +68,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -76,7 +76,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -87,7 +87,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 trigger_entity_id = 12; + * optional uint32 trigger_entity_id = 10; * @return whether the triggerEntityId field is set */ public boolean hasTriggerEntityId() { @@ -95,7 +95,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 trigger_entity_id = 12; + * optional uint32 trigger_entity_id = 10; * @return this */ public RefreshTriggerByClientScRsp clearTriggerEntityId() { @@ -105,7 +105,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 trigger_entity_id = 12; + * optional uint32 trigger_entity_id = 10; * @return the triggerEntityId */ public int getTriggerEntityId() { @@ -113,7 +113,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional uint32 trigger_entity_id = 12; + * optional uint32 trigger_entity_id = 10; * @param value the triggerEntityId to set * @return this */ @@ -124,7 +124,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 2; + * optional bool refresh_trigger = 13; * @return whether the refreshTrigger field is set */ public boolean hasRefreshTrigger() { @@ -132,7 +132,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 2; + * optional bool refresh_trigger = 13; * @return this */ public RefreshTriggerByClientScRsp clearRefreshTrigger() { @@ -142,7 +142,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 2; + * optional bool refresh_trigger = 13; * @return the refreshTrigger */ public boolean getRefreshTrigger() { @@ -150,7 +150,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional bool refresh_trigger = 2; + * optional bool refresh_trigger = 13; * @param value the refreshTrigger to set * @return this */ @@ -161,7 +161,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @return whether the triggerName field is set */ public boolean hasTriggerName() { @@ -169,7 +169,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @return this */ public RefreshTriggerByClientScRsp clearTriggerName() { @@ -179,7 +179,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @return the triggerName */ public String getTriggerName() { @@ -187,7 +187,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @return internal {@code Utf8String} representation of triggerName for reading */ public Utf8String getTriggerNameBytes() { @@ -195,7 +195,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @return internal {@code Utf8String} representation of triggerName for modifications */ public Utf8String getMutableTriggerNameBytes() { @@ -204,7 +204,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @param value the triggerName to set * @return this */ @@ -215,7 +215,7 @@ public final class RefreshTriggerByClientScRspOuterClass { } /** - * optional string trigger_name = 4; + * optional string trigger_name = 9; * @param value the triggerName to set * @return this */ @@ -303,19 +303,19 @@ public final class RefreshTriggerByClientScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(triggerEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeBoolNoTag(refreshTrigger); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 74); output.writeStringNoTag(triggerName); } } @@ -345,34 +345,34 @@ public final class RefreshTriggerByClientScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 80) { break; } } - case 96: { + case 80: { // triggerEntityId triggerEntityId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 104) { break; } } - case 16: { + case 104: { // refreshTrigger refreshTrigger = input.readBool(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 34) { + if (tag != 74) { break; } } - case 34: { + case 74: { // triggerName input.readString(triggerName); bitField0_ |= 0x00000008; diff --git a/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java index 25563fe..7b71600 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicArchiveOuterClass.java @@ -19,12 +19,12 @@ public final class RelicArchiveOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 relic_id = 3; + * optional uint32 relic_id = 9; */ private int relicId; /** - * optional uint32 slot = 8; + * optional uint32 slot = 12; */ private int slot; @@ -39,7 +39,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 3; + * optional uint32 relic_id = 9; * @return whether the relicId field is set */ public boolean hasRelicId() { @@ -47,7 +47,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 3; + * optional uint32 relic_id = 9; * @return this */ public RelicArchive clearRelicId() { @@ -57,7 +57,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 3; + * optional uint32 relic_id = 9; * @return the relicId */ public int getRelicId() { @@ -65,7 +65,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 relic_id = 3; + * optional uint32 relic_id = 9; * @param value the relicId to set * @return this */ @@ -76,7 +76,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 12; * @return whether the slot field is set */ public boolean hasSlot() { @@ -84,7 +84,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 12; * @return this */ public RelicArchive clearSlot() { @@ -94,7 +94,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 12; * @return the slot */ public int getSlot() { @@ -102,7 +102,7 @@ public final class RelicArchiveOuterClass { } /** - * optional uint32 slot = 8; + * optional uint32 slot = 12; * @param value the slot to set * @return this */ @@ -177,11 +177,11 @@ public final class RelicArchiveOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(relicId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(slot); } } @@ -205,16 +205,16 @@ public final class RelicArchiveOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 72: { // relicId relicId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 64) { + if (tag != 96) { break; } } - case 64: { + case 96: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendScRspOuterClass.java deleted file mode 100644 index 367dc3a..0000000 --- a/src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendScRspOuterClass.java +++ /dev/null @@ -1,543 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class RelicAvatarRecommendScRspOuterClass { - /** - * Protobuf type {@code RelicAvatarRecommendScRsp} - */ - public static final class RelicAvatarRecommendScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 set_id = 5; - */ - private int setId; - - /** - * optional uint32 retcode = 8; - */ - private int retcode; - - /** - * optional bool is_fetch_avatar_list = 7; - */ - private boolean isFetchAvatarList; - - /** - * repeated uint32 avatar_id_list = 14; - */ - private final RepeatedInt avatarIdList = RepeatedInt.newEmptyInstance(); - - private RelicAvatarRecommendScRsp() { - } - - /** - * @return a new empty instance of {@code RelicAvatarRecommendScRsp} - */ - public static RelicAvatarRecommendScRsp newInstance() { - return new RelicAvatarRecommendScRsp(); - } - - /** - * optional uint32 set_id = 5; - * @return whether the setId field is set - */ - public boolean hasSetId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 set_id = 5; - * @return this - */ - public RelicAvatarRecommendScRsp clearSetId() { - bitField0_ &= ~0x00000001; - setId = 0; - return this; - } - - /** - * optional uint32 set_id = 5; - * @return the setId - */ - public int getSetId() { - return setId; - } - - /** - * optional uint32 set_id = 5; - * @param value the setId to set - * @return this - */ - public RelicAvatarRecommendScRsp setSetId(final int value) { - bitField0_ |= 0x00000001; - setId = value; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 8; - * @return this - */ - public RelicAvatarRecommendScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 8; - * @param value the retcode to set - * @return this - */ - public RelicAvatarRecommendScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - - /** - * optional bool is_fetch_avatar_list = 7; - * @return whether the isFetchAvatarList field is set - */ - public boolean hasIsFetchAvatarList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool is_fetch_avatar_list = 7; - * @return this - */ - public RelicAvatarRecommendScRsp clearIsFetchAvatarList() { - bitField0_ &= ~0x00000004; - isFetchAvatarList = false; - return this; - } - - /** - * optional bool is_fetch_avatar_list = 7; - * @return the isFetchAvatarList - */ - public boolean getIsFetchAvatarList() { - return isFetchAvatarList; - } - - /** - * optional bool is_fetch_avatar_list = 7; - * @param value the isFetchAvatarList to set - * @return this - */ - public RelicAvatarRecommendScRsp setIsFetchAvatarList(final boolean value) { - bitField0_ |= 0x00000004; - isFetchAvatarList = value; - return this; - } - - /** - * repeated uint32 avatar_id_list = 14; - * @return whether the avatarIdList field is set - */ - public boolean hasAvatarIdList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 avatar_id_list = 14; - * @return this - */ - public RelicAvatarRecommendScRsp clearAvatarIdList() { - bitField0_ &= ~0x00000008; - avatarIdList.clear(); - return this; - } - - /** - * repeated uint32 avatar_id_list = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAvatarIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getAvatarIdList() { - return avatarIdList; - } - - /** - * repeated uint32 avatar_id_list = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableAvatarIdList() { - bitField0_ |= 0x00000008; - return avatarIdList; - } - - /** - * repeated uint32 avatar_id_list = 14; - * @param value the avatarIdList to add - * @return this - */ - public RelicAvatarRecommendScRsp addAvatarIdList(final int value) { - bitField0_ |= 0x00000008; - avatarIdList.add(value); - return this; - } - - /** - * repeated uint32 avatar_id_list = 14; - * @param values the avatarIdList to add - * @return this - */ - public RelicAvatarRecommendScRsp addAllAvatarIdList(final int... values) { - bitField0_ |= 0x00000008; - avatarIdList.addAll(values); - return this; - } - - @Override - public RelicAvatarRecommendScRsp copyFrom(final RelicAvatarRecommendScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - setId = other.setId; - retcode = other.retcode; - isFetchAvatarList = other.isFetchAvatarList; - avatarIdList.copyFrom(other.avatarIdList); - } - return this; - } - - @Override - public RelicAvatarRecommendScRsp mergeFrom(final RelicAvatarRecommendScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSetId()) { - setSetId(other.setId); - } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasIsFetchAvatarList()) { - setIsFetchAvatarList(other.isFetchAvatarList); - } - if (other.hasAvatarIdList()) { - getMutableAvatarIdList().addAll(other.avatarIdList); - } - return this; - } - - @Override - public RelicAvatarRecommendScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - setId = 0; - retcode = 0; - isFetchAvatarList = false; - avatarIdList.clear(); - return this; - } - - @Override - public RelicAvatarRecommendScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - avatarIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RelicAvatarRecommendScRsp)) { - return false; - } - RelicAvatarRecommendScRsp other = (RelicAvatarRecommendScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasSetId() || setId == other.setId) - && (!hasRetcode() || retcode == other.retcode) - && (!hasIsFetchAvatarList() || isFetchAvatarList == other.isFetchAvatarList) - && (!hasAvatarIdList() || avatarIdList.equals(other.avatarIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(setId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(isFetchAvatarList); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < avatarIdList.length(); i++) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(avatarIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(setId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * avatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(avatarIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RelicAvatarRecommendScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // setId - setId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // isFetchAvatarList - isFetchAvatarList = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // avatarIdList [packed=true] - input.readPackedUInt32(avatarIdList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 112: { - // avatarIdList [packed=false] - tag = input.readRepeatedUInt32(avatarIdList, tag); - bitField0_ |= 0x00000008; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.setId, setId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.isFetchAvatarList, isFetchAvatarList); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.avatarIdList, avatarIdList); - } - output.endObject(); - } - - @Override - public RelicAvatarRecommendScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 109327645: - case -905788904: { - if (input.isAtField(FieldNames.setId)) { - if (!input.trySkipNullValue()) { - setId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 24331623: - case 1632335338: { - if (input.isAtField(FieldNames.isFetchAvatarList)) { - if (!input.trySkipNullValue()) { - isFetchAvatarList = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1214270702: - case 1824281692: { - if (input.isAtField(FieldNames.avatarIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(avatarIdList); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RelicAvatarRecommendScRsp clone() { - return new RelicAvatarRecommendScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RelicAvatarRecommendScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RelicAvatarRecommendScRsp(), data).checkInitialized(); - } - - public static RelicAvatarRecommendScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicAvatarRecommendScRsp(), input).checkInitialized(); - } - - public static RelicAvatarRecommendScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicAvatarRecommendScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating RelicAvatarRecommendScRsp messages - */ - public static MessageFactory getFactory() { - return RelicAvatarRecommendScRspFactory.INSTANCE; - } - - private enum RelicAvatarRecommendScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public RelicAvatarRecommendScRsp create() { - return RelicAvatarRecommendScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName setId = FieldName.forField("setId", "set_id"); - - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName isFetchAvatarList = FieldName.forField("isFetchAvatarList", "is_fetch_avatar_list"); - - static final FieldName avatarIdList = FieldName.forField("avatarIdList", "avatar_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java index 801501c..e70daab 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicOuterClass.java @@ -20,50 +20,65 @@ public final class RelicOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 unique_id = 1; - */ - private int uniqueId; - - /** - * optional uint32 level = 2; - */ - private int level; - - /** - * optional uint32 exp = 6; - */ - private int exp; - - /** - * optional uint32 equip_avatar_id = 8; + * optional uint32 equip_avatar_id = 5; */ private int equipAvatarId; /** - * optional uint32 tid = 12; + * optional uint32 level = 7; + */ + private int level; + + /** + * optional uint32 tid = 8; */ private int tid; /** - * optional uint32 main_affix_id = 15; + * optional uint32 main_affix_id = 9; */ private int mainAffixId; /** - * optional bool is_protected = 4; + * optional uint32 unique_id = 10; */ - private boolean isProtected; + private int uniqueId; /** - * optional bool is_discarded = 11; + * optional uint32 reforge_block_sub_affix_id = 12; + */ + private int reforgeBlockSubAffixId; + + /** + * optional uint32 exp = 13; + */ + private int exp; + + /** + * optional bool is_discarded = 2; */ private boolean isDiscarded; /** - * repeated .RelicAffix sub_affix_list = 10; + * optional bool is_protected = 6; + */ + private boolean isProtected; + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + */ + private final RepeatedMessage reforgeSubAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); + + /** + * repeated .RelicAffix sub_affix_list = 3; */ private final RepeatedMessage subAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + */ + private final RepeatedMessage previewSubAffixList = RepeatedMessage.newEmptyInstance(RelicAffixOuterClass.RelicAffix.getFactory()); + private Relic() { } @@ -75,44 +90,44 @@ public final class RelicOuterClass { } /** - * optional uint32 unique_id = 1; - * @return whether the uniqueId field is set + * optional uint32 equip_avatar_id = 5; + * @return whether the equipAvatarId field is set */ - public boolean hasUniqueId() { + public boolean hasEquipAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 unique_id = 1; + * optional uint32 equip_avatar_id = 5; * @return this */ - public Relic clearUniqueId() { + public Relic clearEquipAvatarId() { bitField0_ &= ~0x00000001; - uniqueId = 0; + equipAvatarId = 0; return this; } /** - * optional uint32 unique_id = 1; - * @return the uniqueId + * optional uint32 equip_avatar_id = 5; + * @return the equipAvatarId */ - public int getUniqueId() { - return uniqueId; + public int getEquipAvatarId() { + return equipAvatarId; } /** - * optional uint32 unique_id = 1; - * @param value the uniqueId to set + * optional uint32 equip_avatar_id = 5; + * @param value the equipAvatarId to set * @return this */ - public Relic setUniqueId(final int value) { + public Relic setEquipAvatarId(final int value) { bitField0_ |= 0x00000001; - uniqueId = value; + equipAvatarId = value; return this; } /** - * optional uint32 level = 2; + * optional uint32 level = 7; * @return whether the level field is set */ public boolean hasLevel() { @@ -120,7 +135,7 @@ public final class RelicOuterClass { } /** - * optional uint32 level = 2; + * optional uint32 level = 7; * @return this */ public Relic clearLevel() { @@ -130,7 +145,7 @@ public final class RelicOuterClass { } /** - * optional uint32 level = 2; + * optional uint32 level = 7; * @return the level */ public int getLevel() { @@ -138,7 +153,7 @@ public final class RelicOuterClass { } /** - * optional uint32 level = 2; + * optional uint32 level = 7; * @param value the level to set * @return this */ @@ -149,99 +164,25 @@ public final class RelicOuterClass { } /** - * optional uint32 exp = 6; - * @return whether the exp field is set + * optional uint32 tid = 8; + * @return whether the tid field is set */ - public boolean hasExp() { + public boolean hasTid() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 exp = 6; - * @return this - */ - public Relic clearExp() { - bitField0_ &= ~0x00000004; - exp = 0; - return this; - } - - /** - * optional uint32 exp = 6; - * @return the exp - */ - public int getExp() { - return exp; - } - - /** - * optional uint32 exp = 6; - * @param value the exp to set - * @return this - */ - public Relic setExp(final int value) { - bitField0_ |= 0x00000004; - exp = value; - return this; - } - - /** - * optional uint32 equip_avatar_id = 8; - * @return whether the equipAvatarId field is set - */ - public boolean hasEquipAvatarId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 equip_avatar_id = 8; - * @return this - */ - public Relic clearEquipAvatarId() { - bitField0_ &= ~0x00000008; - equipAvatarId = 0; - return this; - } - - /** - * optional uint32 equip_avatar_id = 8; - * @return the equipAvatarId - */ - public int getEquipAvatarId() { - return equipAvatarId; - } - - /** - * optional uint32 equip_avatar_id = 8; - * @param value the equipAvatarId to set - * @return this - */ - public Relic setEquipAvatarId(final int value) { - bitField0_ |= 0x00000008; - equipAvatarId = value; - return this; - } - - /** - * optional uint32 tid = 12; - * @return whether the tid field is set - */ - public boolean hasTid() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 tid = 12; + * optional uint32 tid = 8; * @return this */ public Relic clearTid() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000004; tid = 0; return this; } /** - * optional uint32 tid = 12; + * optional uint32 tid = 8; * @return the tid */ public int getTid() { @@ -249,36 +190,36 @@ public final class RelicOuterClass { } /** - * optional uint32 tid = 12; + * optional uint32 tid = 8; * @param value the tid to set * @return this */ public Relic setTid(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; tid = value; return this; } /** - * optional uint32 main_affix_id = 15; + * optional uint32 main_affix_id = 9; * @return whether the mainAffixId field is set */ public boolean hasMainAffixId() { - return (bitField0_ & 0x00000020) != 0; + return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 main_affix_id = 15; + * optional uint32 main_affix_id = 9; * @return this */ public Relic clearMainAffixId() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000008; mainAffixId = 0; return this; } /** - * optional uint32 main_affix_id = 15; + * optional uint32 main_affix_id = 9; * @return the mainAffixId */ public int getMainAffixId() { @@ -286,55 +227,129 @@ public final class RelicOuterClass { } /** - * optional uint32 main_affix_id = 15; + * optional uint32 main_affix_id = 9; * @param value the mainAffixId to set * @return this */ public Relic setMainAffixId(final int value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; mainAffixId = value; return this; } /** - * optional bool is_protected = 4; - * @return whether the isProtected field is set + * optional uint32 unique_id = 10; + * @return whether the uniqueId field is set */ - public boolean hasIsProtected() { + public boolean hasUniqueId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 unique_id = 10; + * @return this + */ + public Relic clearUniqueId() { + bitField0_ &= ~0x00000010; + uniqueId = 0; + return this; + } + + /** + * optional uint32 unique_id = 10; + * @return the uniqueId + */ + public int getUniqueId() { + return uniqueId; + } + + /** + * optional uint32 unique_id = 10; + * @param value the uniqueId to set + * @return this + */ + public Relic setUniqueId(final int value) { + bitField0_ |= 0x00000010; + uniqueId = value; + return this; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 12; + * @return whether the reforgeBlockSubAffixId field is set + */ + public boolean hasReforgeBlockSubAffixId() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 12; + * @return this + */ + public Relic clearReforgeBlockSubAffixId() { + bitField0_ &= ~0x00000020; + reforgeBlockSubAffixId = 0; + return this; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 12; + * @return the reforgeBlockSubAffixId + */ + public int getReforgeBlockSubAffixId() { + return reforgeBlockSubAffixId; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 12; + * @param value the reforgeBlockSubAffixId to set + * @return this + */ + public Relic setReforgeBlockSubAffixId(final int value) { + bitField0_ |= 0x00000020; + reforgeBlockSubAffixId = value; + return this; + } + + /** + * optional uint32 exp = 13; + * @return whether the exp field is set + */ + public boolean hasExp() { return (bitField0_ & 0x00000040) != 0; } /** - * optional bool is_protected = 4; + * optional uint32 exp = 13; * @return this */ - public Relic clearIsProtected() { + public Relic clearExp() { bitField0_ &= ~0x00000040; - isProtected = false; + exp = 0; return this; } /** - * optional bool is_protected = 4; - * @return the isProtected + * optional uint32 exp = 13; + * @return the exp */ - public boolean getIsProtected() { - return isProtected; + public int getExp() { + return exp; } /** - * optional bool is_protected = 4; - * @param value the isProtected to set + * optional uint32 exp = 13; + * @param value the exp to set * @return this */ - public Relic setIsProtected(final boolean value) { + public Relic setExp(final int value) { bitField0_ |= 0x00000040; - isProtected = value; + exp = value; return this; } /** - * optional bool is_discarded = 11; + * optional bool is_discarded = 2; * @return whether the isDiscarded field is set */ public boolean hasIsDiscarded() { @@ -342,7 +357,7 @@ public final class RelicOuterClass { } /** - * optional bool is_discarded = 11; + * optional bool is_discarded = 2; * @return this */ public Relic clearIsDiscarded() { @@ -352,7 +367,7 @@ public final class RelicOuterClass { } /** - * optional bool is_discarded = 11; + * optional bool is_discarded = 2; * @return the isDiscarded */ public boolean getIsDiscarded() { @@ -360,7 +375,7 @@ public final class RelicOuterClass { } /** - * optional bool is_discarded = 11; + * optional bool is_discarded = 2; * @param value the isDiscarded to set * @return this */ @@ -371,25 +386,130 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; - * @return whether the subAffixList field is set + * optional bool is_protected = 6; + * @return whether the isProtected field is set */ - public boolean hasSubAffixList() { + public boolean hasIsProtected() { return (bitField0_ & 0x00000100) != 0; } /** - * repeated .RelicAffix sub_affix_list = 10; + * optional bool is_protected = 6; + * @return this + */ + public Relic clearIsProtected() { + bitField0_ &= ~0x00000100; + isProtected = false; + return this; + } + + /** + * optional bool is_protected = 6; + * @return the isProtected + */ + public boolean getIsProtected() { + return isProtected; + } + + /** + * optional bool is_protected = 6; + * @param value the isProtected to set + * @return this + */ + public Relic setIsProtected(final boolean value) { + bitField0_ |= 0x00000100; + isProtected = value; + return this; + } + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + * @return whether the reforgeSubAffixList field is set + */ + public boolean hasReforgeSubAffixList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + * @return this + */ + public Relic clearReforgeSubAffixList() { + bitField0_ &= ~0x00000200; + reforgeSubAffixList.clear(); + return this; + } + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableReforgeSubAffixList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getReforgeSubAffixList() { + return reforgeSubAffixList; + } + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableReforgeSubAffixList() { + bitField0_ |= 0x00000200; + return reforgeSubAffixList; + } + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + * @param value the reforgeSubAffixList to add + * @return this + */ + public Relic addReforgeSubAffixList(final RelicAffixOuterClass.RelicAffix value) { + bitField0_ |= 0x00000200; + reforgeSubAffixList.add(value); + return this; + } + + /** + * repeated .RelicAffix reforge_sub_affix_list = 1; + * @param values the reforgeSubAffixList to add + * @return this + */ + public Relic addAllReforgeSubAffixList(final RelicAffixOuterClass.RelicAffix... values) { + bitField0_ |= 0x00000200; + reforgeSubAffixList.addAll(values); + return this; + } + + /** + * repeated .RelicAffix sub_affix_list = 3; + * @return whether the subAffixList field is set + */ + public boolean hasSubAffixList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .RelicAffix sub_affix_list = 3; * @return this */ public Relic clearSubAffixList() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000400; subAffixList.clear(); return this; } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -403,7 +523,7 @@ public final class RelicOuterClass { } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -412,46 +532,117 @@ public final class RelicOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableSubAffixList() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; return subAffixList; } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 3; * @param value the subAffixList to add * @return this */ public Relic addSubAffixList(final RelicAffixOuterClass.RelicAffix value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; subAffixList.add(value); return this; } /** - * repeated .RelicAffix sub_affix_list = 10; + * repeated .RelicAffix sub_affix_list = 3; * @param values the subAffixList to add * @return this */ public Relic addAllSubAffixList(final RelicAffixOuterClass.RelicAffix... values) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; subAffixList.addAll(values); return this; } + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + * @return whether the previewSubAffixList field is set + */ + public boolean hasPreviewSubAffixList() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + * @return this + */ + public Relic clearPreviewSubAffixList() { + bitField0_ &= ~0x00000800; + previewSubAffixList.clear(); + return this; + } + + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePreviewSubAffixList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPreviewSubAffixList() { + return previewSubAffixList; + } + + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutablePreviewSubAffixList() { + bitField0_ |= 0x00000800; + return previewSubAffixList; + } + + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + * @param value the previewSubAffixList to add + * @return this + */ + public Relic addPreviewSubAffixList(final RelicAffixOuterClass.RelicAffix value) { + bitField0_ |= 0x00000800; + previewSubAffixList.add(value); + return this; + } + + /** + * repeated .RelicAffix preview_sub_affix_list = 4; + * @param values the previewSubAffixList to add + * @return this + */ + public Relic addAllPreviewSubAffixList(final RelicAffixOuterClass.RelicAffix... values) { + bitField0_ |= 0x00000800; + previewSubAffixList.addAll(values); + return this; + } + @Override public Relic copyFrom(final Relic other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - uniqueId = other.uniqueId; - level = other.level; - exp = other.exp; equipAvatarId = other.equipAvatarId; + level = other.level; tid = other.tid; mainAffixId = other.mainAffixId; - isProtected = other.isProtected; + uniqueId = other.uniqueId; + reforgeBlockSubAffixId = other.reforgeBlockSubAffixId; + exp = other.exp; isDiscarded = other.isDiscarded; + isProtected = other.isProtected; + reforgeSubAffixList.copyFrom(other.reforgeSubAffixList); subAffixList.copyFrom(other.subAffixList); + previewSubAffixList.copyFrom(other.previewSubAffixList); } return this; } @@ -462,33 +653,42 @@ public final class RelicOuterClass { return this; } cachedSize = -1; - if (other.hasUniqueId()) { - setUniqueId(other.uniqueId); + if (other.hasEquipAvatarId()) { + setEquipAvatarId(other.equipAvatarId); } if (other.hasLevel()) { setLevel(other.level); } - if (other.hasExp()) { - setExp(other.exp); - } - if (other.hasEquipAvatarId()) { - setEquipAvatarId(other.equipAvatarId); - } if (other.hasTid()) { setTid(other.tid); } if (other.hasMainAffixId()) { setMainAffixId(other.mainAffixId); } - if (other.hasIsProtected()) { - setIsProtected(other.isProtected); + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); + } + if (other.hasReforgeBlockSubAffixId()) { + setReforgeBlockSubAffixId(other.reforgeBlockSubAffixId); + } + if (other.hasExp()) { + setExp(other.exp); } if (other.hasIsDiscarded()) { setIsDiscarded(other.isDiscarded); } + if (other.hasIsProtected()) { + setIsProtected(other.isProtected); + } + if (other.hasReforgeSubAffixList()) { + getMutableReforgeSubAffixList().addAll(other.reforgeSubAffixList); + } if (other.hasSubAffixList()) { getMutableSubAffixList().addAll(other.subAffixList); } + if (other.hasPreviewSubAffixList()) { + getMutablePreviewSubAffixList().addAll(other.previewSubAffixList); + } return this; } @@ -499,15 +699,18 @@ public final class RelicOuterClass { } cachedSize = -1; bitField0_ = 0; - uniqueId = 0; - level = 0; - exp = 0; equipAvatarId = 0; + level = 0; tid = 0; mainAffixId = 0; - isProtected = false; + uniqueId = 0; + reforgeBlockSubAffixId = 0; + exp = 0; isDiscarded = false; + isProtected = false; + reforgeSubAffixList.clear(); subAffixList.clear(); + previewSubAffixList.clear(); return this; } @@ -518,7 +721,9 @@ public final class RelicOuterClass { } cachedSize = -1; bitField0_ = 0; + reforgeSubAffixList.clearQuick(); subAffixList.clearQuick(); + previewSubAffixList.clearQuick(); return this; } @@ -532,89 +737,117 @@ public final class RelicOuterClass { } Relic other = (Relic) o; return bitField0_ == other.bitField0_ - && (!hasUniqueId() || uniqueId == other.uniqueId) - && (!hasLevel() || level == other.level) - && (!hasExp() || exp == other.exp) && (!hasEquipAvatarId() || equipAvatarId == other.equipAvatarId) + && (!hasLevel() || level == other.level) && (!hasTid() || tid == other.tid) && (!hasMainAffixId() || mainAffixId == other.mainAffixId) - && (!hasIsProtected() || isProtected == other.isProtected) + && (!hasUniqueId() || uniqueId == other.uniqueId) + && (!hasReforgeBlockSubAffixId() || reforgeBlockSubAffixId == other.reforgeBlockSubAffixId) + && (!hasExp() || exp == other.exp) && (!hasIsDiscarded() || isDiscarded == other.isDiscarded) - && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)); + && (!hasIsProtected() || isProtected == other.isProtected) + && (!hasReforgeSubAffixList() || reforgeSubAffixList.equals(other.reforgeSubAffixList)) + && (!hasSubAffixList() || subAffixList.equals(other.subAffixList)) + && (!hasPreviewSubAffixList() || previewSubAffixList.equals(other.previewSubAffixList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(uniqueId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(equipAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(exp); - } - if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 64); - output.writeUInt32NoTag(equipAvatarId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); output.writeUInt32NoTag(tid); } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); output.writeUInt32NoTag(mainAffixId); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(uniqueId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(reforgeBlockSubAffixId); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 32); - output.writeBoolNoTag(isProtected); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(exp); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 16); output.writeBoolNoTag(isDiscarded); } if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(isProtected); + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < reforgeSubAffixList.length(); i++) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(reforgeSubAffixList.get(i)); + } + } + if ((bitField0_ & 0x00000400) != 0) { for (int i = 0; i < subAffixList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 26); output.writeMessageNoTag(subAffixList.get(i)); } } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < previewSubAffixList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(previewSubAffixList.get(i)); + } + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(equipAvatarId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(equipAvatarId); - } - if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(tid); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(mainAffixId); } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(reforgeBlockSubAffixId); + } if ((bitField0_ & 0x00000040) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); } if ((bitField0_ & 0x00000080) != 0) { size += 2; } if ((bitField0_ & 0x00000100) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * reforgeSubAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(reforgeSubAffixList); + } + if ((bitField0_ & 0x00000400) != 0) { size += (1 * subAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(subAffixList); } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * previewSubAffixList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(previewSubAffixList); + } return size; } @@ -625,82 +858,107 @@ public final class RelicOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // uniqueId - uniqueId = input.readUInt32(); + case 40: { + // equipAvatarId + equipAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 56) { break; } } - case 16: { + case 56: { // level level = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // exp - exp = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // equipAvatarId - equipAvatarId = input.readUInt32(); + // tid + tid = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // mainAffixId + mainAffixId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // uniqueId + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 96) { break; } } case 96: { - // tid - tid = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // mainAffixId - mainAffixId = input.readUInt32(); + // reforgeBlockSubAffixId + reforgeBlockSubAffixId = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 32) { + if (tag != 104) { break; } } - case 32: { - // isProtected - isProtected = input.readBool(); + case 104: { + // exp + exp = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 88) { + if (tag != 16) { break; } } - case 88: { + case 16: { // isDiscarded isDiscarded = input.readBool(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 82) { + if (tag != 48) { break; } } - case 82: { + case 48: { + // isProtected + isProtected = input.readBool(); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // reforgeSubAffixList + tag = input.readRepeatedMessage(reforgeSubAffixList, tag); + bitField0_ |= 0x00000200; + if (tag != 26) { + break; + } + } + case 26: { // subAffixList tag = input.readRepeatedMessage(subAffixList, tag); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; + if (tag != 34) { + break; + } + } + case 34: { + // previewSubAffixList + tag = input.readRepeatedMessage(previewSubAffixList, tag); + bitField0_ |= 0x00000800; if (tag != 0) { break; } @@ -723,32 +981,41 @@ public final class RelicOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); + output.writeUInt32(FieldNames.equipAvatarId, equipAvatarId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.exp, exp); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.equipAvatarId, equipAvatarId); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.tid, tid); } - if ((bitField0_ & 0x00000020) != 0) { + if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.mainAffixId, mainAffixId); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.uniqueId, uniqueId); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeUInt32(FieldNames.reforgeBlockSubAffixId, reforgeBlockSubAffixId); + } if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.isProtected, isProtected); + output.writeUInt32(FieldNames.exp, exp); } if ((bitField0_ & 0x00000080) != 0) { output.writeBool(FieldNames.isDiscarded, isDiscarded); } if ((bitField0_ & 0x00000100) != 0) { + output.writeBool(FieldNames.isProtected, isProtected); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.reforgeSubAffixList, reforgeSubAffixList); + } + if ((bitField0_ & 0x00000400) != 0) { output.writeRepeatedMessage(FieldNames.subAffixList, subAffixList); } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.previewSubAffixList, previewSubAffixList); + } output.endObject(); } @@ -759,11 +1026,11 @@ public final class RelicOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -294460212: - case -538310583: { - if (input.isAtField(FieldNames.uniqueId)) { + case 169047204: + case 33057906: { + if (input.isAtField(FieldNames.equipAvatarId)) { if (!input.trySkipNullValue()) { - uniqueId = input.readUInt32(); + equipAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -782,34 +1049,11 @@ public final class RelicOuterClass { } break; } - case 100893: { - if (input.isAtField(FieldNames.exp)) { - if (!input.trySkipNullValue()) { - exp = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 169047204: - case 33057906: { - if (input.isAtField(FieldNames.equipAvatarId)) { - if (!input.trySkipNullValue()) { - equipAvatarId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } case 114831: { if (input.isAtField(FieldNames.tid)) { if (!input.trySkipNullValue()) { tid = input.readUInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -821,6 +1065,30 @@ public final class RelicOuterClass { if (input.isAtField(FieldNames.mainAffixId)) { if (!input.trySkipNullValue()) { mainAffixId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { + if (!input.trySkipNullValue()) { + uniqueId = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1156912484: + case 721468550: { + if (input.isAtField(FieldNames.reforgeBlockSubAffixId)) { + if (!input.trySkipNullValue()) { + reforgeBlockSubAffixId = input.readUInt32(); bitField0_ |= 0x00000020; } } else { @@ -828,11 +1096,10 @@ public final class RelicOuterClass { } break; } - case 569879972: - case -1919645991: { - if (input.isAtField(FieldNames.isProtected)) { + case 100893: { + if (input.isAtField(FieldNames.exp)) { if (!input.trySkipNullValue()) { - isProtected = input.readBool(); + exp = input.readUInt32(); bitField0_ |= 0x00000040; } } else { @@ -852,12 +1119,48 @@ public final class RelicOuterClass { } break; } + case 569879972: + case -1919645991: { + if (input.isAtField(FieldNames.isProtected)) { + if (!input.trySkipNullValue()) { + isProtected = input.readBool(); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -117853342: + case -497145961: { + if (input.isAtField(FieldNames.reforgeSubAffixList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(reforgeSubAffixList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } case -600836050: case 919890188: { if (input.isAtField(FieldNames.subAffixList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(subAffixList); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 203736086: + case -2098533789: { + if (input.isAtField(FieldNames.previewSubAffixList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(previewSubAffixList); + bitField0_ |= 0x00000800; } } else { input.skipUnknownField(); @@ -916,23 +1219,29 @@ public final class RelicOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + static final FieldName equipAvatarId = FieldName.forField("equipAvatarId", "equip_avatar_id"); static final FieldName level = FieldName.forField("level"); - static final FieldName exp = FieldName.forField("exp"); - - static final FieldName equipAvatarId = FieldName.forField("equipAvatarId", "equip_avatar_id"); - static final FieldName tid = FieldName.forField("tid"); static final FieldName mainAffixId = FieldName.forField("mainAffixId", "main_affix_id"); - static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); + + static final FieldName reforgeBlockSubAffixId = FieldName.forField("reforgeBlockSubAffixId", "reforge_block_sub_affix_id"); + + static final FieldName exp = FieldName.forField("exp"); static final FieldName isDiscarded = FieldName.forField("isDiscarded", "is_discarded"); + static final FieldName isProtected = FieldName.forField("isProtected", "is_protected"); + + static final FieldName reforgeSubAffixList = FieldName.forField("reforgeSubAffixList", "reforge_sub_affix_list"); + static final FieldName subAffixList = FieldName.forField("subAffixList", "sub_affix_list"); + + static final FieldName previewSubAffixList = FieldName.forField("previewSubAffixList", "preview_sub_affix_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java index 6bcb29a..2866ccc 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicParamOuterClass.java @@ -19,12 +19,12 @@ public final class RelicParamOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 2; */ private int relicUniqueId; /** - * optional uint32 slot = 6; + * optional uint32 slot = 11; */ private int slot; @@ -39,7 +39,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 2; * @return whether the relicUniqueId field is set */ public boolean hasRelicUniqueId() { @@ -47,7 +47,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 2; * @return this */ public RelicParam clearRelicUniqueId() { @@ -57,7 +57,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 2; * @return the relicUniqueId */ public int getRelicUniqueId() { @@ -65,7 +65,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 relic_unique_id = 5; + * optional uint32 relic_unique_id = 2; * @param value the relicUniqueId to set * @return this */ @@ -76,7 +76,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 6; + * optional uint32 slot = 11; * @return whether the slot field is set */ public boolean hasSlot() { @@ -84,7 +84,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 6; + * optional uint32 slot = 11; * @return this */ public RelicParam clearSlot() { @@ -94,7 +94,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 6; + * optional uint32 slot = 11; * @return the slot */ public int getSlot() { @@ -102,7 +102,7 @@ public final class RelicParamOuterClass { } /** - * optional uint32 slot = 6; + * optional uint32 slot = 11; * @param value the slot to set * @return this */ @@ -177,11 +177,11 @@ public final class RelicParamOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(relicUniqueId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(slot); } } @@ -205,16 +205,16 @@ public final class RelicParamOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 16: { // relicUniqueId relicUniqueId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 88) { break; } } - case 48: { + case 88: { // slot slot = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicReccomendDataOuterClass.java similarity index 59% rename from src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java rename to src/generated/main/emu/lunarcore/proto/RelicReccomendDataOuterClass.java index 938003b..d60c89e 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicReccomendDataOuterClass.java @@ -10,31 +10,39 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueMiracleSelectOuterClass { +public final class RelicReccomendDataOuterClass { /** - * Protobuf type {@code RogueMiracleSelect} + *
+   * repeated OFNGPLJKLOJ BFDMGINBOIB = 14;
+   * 
+ * + * Protobuf type {@code RelicReccomendData} */ - public static final class RogueMiracleSelect extends ProtoMessage implements Cloneable { + public static final class RelicReccomendData extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - private RogueMiracleSelect() { + private RelicReccomendData() { } /** - * @return a new empty instance of {@code RogueMiracleSelect} + *
+     * repeated OFNGPLJKLOJ BFDMGINBOIB = 14;
+     * 
+ * + * @return a new empty instance of {@code RelicReccomendData} */ - public static RogueMiracleSelect newInstance() { - return new RogueMiracleSelect(); + public static RelicReccomendData newInstance() { + return new RelicReccomendData(); } @Override - public RogueMiracleSelect copyFrom(final RogueMiracleSelect other) { + public RelicReccomendData copyFrom(final RelicReccomendData other) { cachedSize = other.cachedSize; return this; } @Override - public RogueMiracleSelect mergeFrom(final RogueMiracleSelect other) { + public RelicReccomendData mergeFrom(final RelicReccomendData other) { if (other.isEmpty()) { return this; } @@ -43,7 +51,7 @@ public final class RogueMiracleSelectOuterClass { } @Override - public RogueMiracleSelect clear() { + public RelicReccomendData clear() { if (isEmpty()) { return this; } @@ -52,7 +60,7 @@ public final class RogueMiracleSelectOuterClass { } @Override - public RogueMiracleSelect clearQuick() { + public RelicReccomendData clearQuick() { if (isEmpty()) { return this; } @@ -65,10 +73,10 @@ public final class RogueMiracleSelectOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueMiracleSelect)) { + if (!(o instanceof RelicReccomendData)) { return false; } - RogueMiracleSelect other = (RogueMiracleSelect) o; + RelicReccomendData other = (RelicReccomendData) o; return true; } @@ -84,7 +92,7 @@ public final class RogueMiracleSelectOuterClass { @Override @SuppressWarnings("fallthrough") - public RogueMiracleSelect mergeFrom(final ProtoSource input) throws IOException { + public RelicReccomendData mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -110,7 +118,7 @@ public final class RogueMiracleSelectOuterClass { } @Override - public RogueMiracleSelect mergeFrom(final JsonSource input) throws IOException { + public RelicReccomendData mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -127,8 +135,8 @@ public final class RogueMiracleSelectOuterClass { } @Override - public RogueMiracleSelect clone() { - return new RogueMiracleSelect().copyFrom(this); + public RelicReccomendData clone() { + return new RelicReccomendData().copyFrom(this); } @Override @@ -136,32 +144,32 @@ public final class RogueMiracleSelectOuterClass { return ((bitField0_) == 0); } - public static RogueMiracleSelect parseFrom(final byte[] data) throws + public static RelicReccomendData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleSelect(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new RelicReccomendData(), data).checkInitialized(); } - public static RogueMiracleSelect parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleSelect(), input).checkInitialized(); + public static RelicReccomendData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicReccomendData(), input).checkInitialized(); } - public static RogueMiracleSelect parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleSelect(), input).checkInitialized(); + public static RelicReccomendData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicReccomendData(), input).checkInitialized(); } /** - * @return factory for creating RogueMiracleSelect messages + * @return factory for creating RelicReccomendData messages */ - public static MessageFactory getFactory() { - return RogueMiracleSelectFactory.INSTANCE; + public static MessageFactory getFactory() { + return RelicReccomendDataFactory.INSTANCE; } - private enum RogueMiracleSelectFactory implements MessageFactory { + private enum RelicReccomendDataFactory implements MessageFactory { INSTANCE; @Override - public RogueMiracleSelect create() { - return RogueMiracleSelect.newInstance(); + public RelicReccomendData create() { + return RelicReccomendData.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/RelicReforgeConfirmCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicReforgeConfirmCsReqOuterClass.java new file mode 100644 index 0000000..de8d9a2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicReforgeConfirmCsReqOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RelicReforgeConfirmCsReqOuterClass { + /** + * Protobuf type {@code RelicReforgeConfirmCsReq} + */ + public static final class RelicReforgeConfirmCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 relic_unique_id = 11; + */ + private int relicUniqueId; + + /** + * optional bool keep_old_affixes = 9; + */ + private boolean keepOldAffixes; + + private RelicReforgeConfirmCsReq() { + } + + /** + * @return a new empty instance of {@code RelicReforgeConfirmCsReq} + */ + public static RelicReforgeConfirmCsReq newInstance() { + return new RelicReforgeConfirmCsReq(); + } + + /** + * optional uint32 relic_unique_id = 11; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 relic_unique_id = 11; + * @return this + */ + public RelicReforgeConfirmCsReq clearRelicUniqueId() { + bitField0_ &= ~0x00000001; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 11; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 11; + * @param value the relicUniqueId to set + * @return this + */ + public RelicReforgeConfirmCsReq setRelicUniqueId(final int value) { + bitField0_ |= 0x00000001; + relicUniqueId = value; + return this; + } + + /** + * optional bool keep_old_affixes = 9; + * @return whether the keepOldAffixes field is set + */ + public boolean hasKeepOldAffixes() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool keep_old_affixes = 9; + * @return this + */ + public RelicReforgeConfirmCsReq clearKeepOldAffixes() { + bitField0_ &= ~0x00000002; + keepOldAffixes = false; + return this; + } + + /** + * optional bool keep_old_affixes = 9; + * @return the keepOldAffixes + */ + public boolean getKeepOldAffixes() { + return keepOldAffixes; + } + + /** + * optional bool keep_old_affixes = 9; + * @param value the keepOldAffixes to set + * @return this + */ + public RelicReforgeConfirmCsReq setKeepOldAffixes(final boolean value) { + bitField0_ |= 0x00000002; + keepOldAffixes = value; + return this; + } + + @Override + public RelicReforgeConfirmCsReq copyFrom(final RelicReforgeConfirmCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + relicUniqueId = other.relicUniqueId; + keepOldAffixes = other.keepOldAffixes; + } + return this; + } + + @Override + public RelicReforgeConfirmCsReq mergeFrom(final RelicReforgeConfirmCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + if (other.hasKeepOldAffixes()) { + setKeepOldAffixes(other.keepOldAffixes); + } + return this; + } + + @Override + public RelicReforgeConfirmCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + relicUniqueId = 0; + keepOldAffixes = false; + return this; + } + + @Override + public RelicReforgeConfirmCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RelicReforgeConfirmCsReq)) { + return false; + } + RelicReforgeConfirmCsReq other = (RelicReforgeConfirmCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId) + && (!hasKeepOldAffixes() || keepOldAffixes == other.keepOldAffixes); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeBoolNoTag(keepOldAffixes); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RelicReforgeConfirmCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // relicUniqueId + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // keepOldAffixes + keepOldAffixes = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.keepOldAffixes, keepOldAffixes); + } + output.endObject(); + } + + @Override + public RelicReforgeConfirmCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1415172028: + case -523087188: { + if (input.isAtField(FieldNames.keepOldAffixes)) { + if (!input.trySkipNullValue()) { + keepOldAffixes = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RelicReforgeConfirmCsReq clone() { + return new RelicReforgeConfirmCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RelicReforgeConfirmCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RelicReforgeConfirmCsReq(), data).checkInitialized(); + } + + public static RelicReforgeConfirmCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicReforgeConfirmCsReq(), input).checkInitialized(); + } + + public static RelicReforgeConfirmCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicReforgeConfirmCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating RelicReforgeConfirmCsReq messages + */ + public static MessageFactory getFactory() { + return RelicReforgeConfirmCsReqFactory.INSTANCE; + } + + private enum RelicReforgeConfirmCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public RelicReforgeConfirmCsReq create() { + return RelicReforgeConfirmCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + + static final FieldName keepOldAffixes = FieldName.forField("keepOldAffixes", "keep_old_affixes"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RelicReforgeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicReforgeCsReqOuterClass.java new file mode 100644 index 0000000..2189961 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicReforgeCsReqOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class RelicReforgeCsReqOuterClass { + /** + * Protobuf type {@code RelicReforgeCsReq} + */ + public static final class RelicReforgeCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 reforge_block_sub_affix_id = 6; + */ + private int reforgeBlockSubAffixId; + + /** + * optional uint32 relic_unique_id = 15; + */ + private int relicUniqueId; + + private RelicReforgeCsReq() { + } + + /** + * @return a new empty instance of {@code RelicReforgeCsReq} + */ + public static RelicReforgeCsReq newInstance() { + return new RelicReforgeCsReq(); + } + + /** + * optional uint32 reforge_block_sub_affix_id = 6; + * @return whether the reforgeBlockSubAffixId field is set + */ + public boolean hasReforgeBlockSubAffixId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 6; + * @return this + */ + public RelicReforgeCsReq clearReforgeBlockSubAffixId() { + bitField0_ &= ~0x00000001; + reforgeBlockSubAffixId = 0; + return this; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 6; + * @return the reforgeBlockSubAffixId + */ + public int getReforgeBlockSubAffixId() { + return reforgeBlockSubAffixId; + } + + /** + * optional uint32 reforge_block_sub_affix_id = 6; + * @param value the reforgeBlockSubAffixId to set + * @return this + */ + public RelicReforgeCsReq setReforgeBlockSubAffixId(final int value) { + bitField0_ |= 0x00000001; + reforgeBlockSubAffixId = value; + return this; + } + + /** + * optional uint32 relic_unique_id = 15; + * @return whether the relicUniqueId field is set + */ + public boolean hasRelicUniqueId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 relic_unique_id = 15; + * @return this + */ + public RelicReforgeCsReq clearRelicUniqueId() { + bitField0_ &= ~0x00000002; + relicUniqueId = 0; + return this; + } + + /** + * optional uint32 relic_unique_id = 15; + * @return the relicUniqueId + */ + public int getRelicUniqueId() { + return relicUniqueId; + } + + /** + * optional uint32 relic_unique_id = 15; + * @param value the relicUniqueId to set + * @return this + */ + public RelicReforgeCsReq setRelicUniqueId(final int value) { + bitField0_ |= 0x00000002; + relicUniqueId = value; + return this; + } + + @Override + public RelicReforgeCsReq copyFrom(final RelicReforgeCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + reforgeBlockSubAffixId = other.reforgeBlockSubAffixId; + relicUniqueId = other.relicUniqueId; + } + return this; + } + + @Override + public RelicReforgeCsReq mergeFrom(final RelicReforgeCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasReforgeBlockSubAffixId()) { + setReforgeBlockSubAffixId(other.reforgeBlockSubAffixId); + } + if (other.hasRelicUniqueId()) { + setRelicUniqueId(other.relicUniqueId); + } + return this; + } + + @Override + public RelicReforgeCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + reforgeBlockSubAffixId = 0; + relicUniqueId = 0; + return this; + } + + @Override + public RelicReforgeCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RelicReforgeCsReq)) { + return false; + } + RelicReforgeCsReq other = (RelicReforgeCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasReforgeBlockSubAffixId() || reforgeBlockSubAffixId == other.reforgeBlockSubAffixId) + && (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(reforgeBlockSubAffixId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(relicUniqueId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(reforgeBlockSubAffixId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RelicReforgeCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // reforgeBlockSubAffixId + reforgeBlockSubAffixId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // relicUniqueId + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.reforgeBlockSubAffixId, reforgeBlockSubAffixId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId); + } + output.endObject(); + } + + @Override + public RelicReforgeCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1156912484: + case 721468550: { + if (input.isAtField(FieldNames.reforgeBlockSubAffixId)) { + if (!input.trySkipNullValue()) { + reforgeBlockSubAffixId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1966200481: + case 49648253: { + if (input.isAtField(FieldNames.relicUniqueId)) { + if (!input.trySkipNullValue()) { + relicUniqueId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RelicReforgeCsReq clone() { + return new RelicReforgeCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RelicReforgeCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RelicReforgeCsReq(), data).checkInitialized(); + } + + public static RelicReforgeCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicReforgeCsReq(), input).checkInitialized(); + } + + public static RelicReforgeCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicReforgeCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating RelicReforgeCsReq messages + */ + public static MessageFactory getFactory() { + return RelicReforgeCsReqFactory.INSTANCE; + } + + private enum RelicReforgeCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public RelicReforgeCsReq create() { + return RelicReforgeCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName reforgeBlockSubAffixId = FieldName.forField("reforgeBlockSubAffixId", "reforge_block_sub_affix_id"); + + static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicSmartSuitPlanOuterClass.java similarity index 51% rename from src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.java rename to src/generated/main/emu/lunarcore/proto/RelicSmartSuitPlanOuterClass.java index fb41e31..d8d5183 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookEventOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicSmartSuitPlanOuterClass.java @@ -11,147 +11,147 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueHandbookEventOuterClass { +public final class RelicSmartSuitPlanOuterClass { /** - * Protobuf type {@code RogueHandbookEvent} + * Protobuf type {@code RelicSmartSuitPlan} */ - public static final class RogueHandbookEvent extends ProtoMessage implements Cloneable { + public static final class RelicSmartSuitPlan extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 event_id = 14; + * optional uint32 avatar_id = 7; */ - private int eventId; + private int avatarId; /** - * optional bool is_unlocked = 6; + * optional uint32 unique_id = 14; */ - private boolean isUnlocked; + private int uniqueId; - private RogueHandbookEvent() { + private RelicSmartSuitPlan() { } /** - * @return a new empty instance of {@code RogueHandbookEvent} + * @return a new empty instance of {@code RelicSmartSuitPlan} */ - public static RogueHandbookEvent newInstance() { - return new RogueHandbookEvent(); + public static RelicSmartSuitPlan newInstance() { + return new RelicSmartSuitPlan(); } /** - * optional uint32 event_id = 14; - * @return whether the eventId field is set + * optional uint32 avatar_id = 7; + * @return whether the avatarId field is set */ - public boolean hasEventId() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 event_id = 14; + * optional uint32 avatar_id = 7; * @return this */ - public RogueHandbookEvent clearEventId() { + public RelicSmartSuitPlan clearAvatarId() { bitField0_ &= ~0x00000001; - eventId = 0; + avatarId = 0; return this; } /** - * optional uint32 event_id = 14; - * @return the eventId + * optional uint32 avatar_id = 7; + * @return the avatarId */ - public int getEventId() { - return eventId; + public int getAvatarId() { + return avatarId; } /** - * optional uint32 event_id = 14; - * @param value the eventId to set + * optional uint32 avatar_id = 7; + * @param value the avatarId to set * @return this */ - public RogueHandbookEvent setEventId(final int value) { + public RelicSmartSuitPlan setAvatarId(final int value) { bitField0_ |= 0x00000001; - eventId = value; + avatarId = value; return this; } /** - * optional bool is_unlocked = 6; - * @return whether the isUnlocked field is set + * optional uint32 unique_id = 14; + * @return whether the uniqueId field is set */ - public boolean hasIsUnlocked() { + public boolean hasUniqueId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional bool is_unlocked = 6; + * optional uint32 unique_id = 14; * @return this */ - public RogueHandbookEvent clearIsUnlocked() { + public RelicSmartSuitPlan clearUniqueId() { bitField0_ &= ~0x00000002; - isUnlocked = false; + uniqueId = 0; return this; } /** - * optional bool is_unlocked = 6; - * @return the isUnlocked + * optional uint32 unique_id = 14; + * @return the uniqueId */ - public boolean getIsUnlocked() { - return isUnlocked; + public int getUniqueId() { + return uniqueId; } /** - * optional bool is_unlocked = 6; - * @param value the isUnlocked to set + * optional uint32 unique_id = 14; + * @param value the uniqueId to set * @return this */ - public RogueHandbookEvent setIsUnlocked(final boolean value) { + public RelicSmartSuitPlan setUniqueId(final int value) { bitField0_ |= 0x00000002; - isUnlocked = value; + uniqueId = value; return this; } @Override - public RogueHandbookEvent copyFrom(final RogueHandbookEvent other) { + public RelicSmartSuitPlan copyFrom(final RelicSmartSuitPlan other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - eventId = other.eventId; - isUnlocked = other.isUnlocked; + avatarId = other.avatarId; + uniqueId = other.uniqueId; } return this; } @Override - public RogueHandbookEvent mergeFrom(final RogueHandbookEvent other) { + public RelicSmartSuitPlan mergeFrom(final RelicSmartSuitPlan other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasEventId()) { - setEventId(other.eventId); + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); } - if (other.hasIsUnlocked()) { - setIsUnlocked(other.isUnlocked); + if (other.hasUniqueId()) { + setUniqueId(other.uniqueId); } return this; } @Override - public RogueHandbookEvent clear() { + public RelicSmartSuitPlan clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - eventId = 0; - isUnlocked = false; + avatarId = 0; + uniqueId = 0; return this; } @Override - public RogueHandbookEvent clearQuick() { + public RelicSmartSuitPlan clearQuick() { if (isEmpty()) { return this; } @@ -165,24 +165,24 @@ public final class RogueHandbookEventOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueHandbookEvent)) { + if (!(o instanceof RelicSmartSuitPlan)) { return false; } - RogueHandbookEvent other = (RogueHandbookEvent) o; + RelicSmartSuitPlan other = (RelicSmartSuitPlan) o; return bitField0_ == other.bitField0_ - && (!hasEventId() || eventId == other.eventId) - && (!hasIsUnlocked() || isUnlocked == other.isUnlocked); + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasUniqueId() || uniqueId == other.uniqueId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(eventId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeBoolNoTag(isUnlocked); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(uniqueId); } } @@ -190,33 +190,33 @@ public final class RogueHandbookEventOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 2; + size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); } return size; } @Override @SuppressWarnings("fallthrough") - public RogueHandbookEvent mergeFrom(final ProtoSource input) throws IOException { + public RelicSmartSuitPlan mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 112: { - // eventId - eventId = input.readUInt32(); + case 56: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 112) { break; } } - case 48: { - // isUnlocked - isUnlocked = input.readBool(); + case 112: { + // uniqueId + uniqueId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,26 +241,26 @@ public final class RogueHandbookEventOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.eventId, eventId); + output.writeUInt32(FieldNames.avatarId, avatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.isUnlocked, isUnlocked); + output.writeUInt32(FieldNames.uniqueId, uniqueId); } output.endObject(); } @Override - public RogueHandbookEvent mergeFrom(final JsonSource input) throws IOException { + public RelicSmartSuitPlan mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1376502443: - case 278118624: { - if (input.isAtField(FieldNames.eventId)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - eventId = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class RogueHandbookEventOuterClass { } break; } - case -1004219859: - case -945979816: { - if (input.isAtField(FieldNames.isUnlocked)) { + case -294460212: + case -538310583: { + if (input.isAtField(FieldNames.uniqueId)) { if (!input.trySkipNullValue()) { - isUnlocked = input.readBool(); + uniqueId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -291,8 +291,8 @@ public final class RogueHandbookEventOuterClass { } @Override - public RogueHandbookEvent clone() { - return new RogueHandbookEvent().copyFrom(this); + public RelicSmartSuitPlan clone() { + return new RelicSmartSuitPlan().copyFrom(this); } @Override @@ -300,32 +300,32 @@ public final class RogueHandbookEventOuterClass { return ((bitField0_) == 0); } - public static RogueHandbookEvent parseFrom(final byte[] data) throws + public static RelicSmartSuitPlan parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueHandbookEvent(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new RelicSmartSuitPlan(), data).checkInitialized(); } - public static RogueHandbookEvent parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookEvent(), input).checkInitialized(); + public static RelicSmartSuitPlan parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicSmartSuitPlan(), input).checkInitialized(); } - public static RogueHandbookEvent parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookEvent(), input).checkInitialized(); + public static RelicSmartSuitPlan parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicSmartSuitPlan(), input).checkInitialized(); } /** - * @return factory for creating RogueHandbookEvent messages + * @return factory for creating RelicSmartSuitPlan messages */ - public static MessageFactory getFactory() { - return RogueHandbookEventFactory.INSTANCE; + public static MessageFactory getFactory() { + return RelicSmartSuitPlanFactory.INSTANCE; } - private enum RogueHandbookEventFactory implements MessageFactory { + private enum RelicSmartSuitPlanFactory implements MessageFactory { INSTANCE; @Override - public RogueHandbookEvent create() { - return RogueHandbookEvent.newInstance(); + public RelicSmartSuitPlan create() { + return RelicSmartSuitPlan.newInstance(); } } @@ -333,9 +333,9 @@ public final class RogueHandbookEventOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName eventId = FieldName.forField("eventId", "event_id"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); - static final FieldName isUnlocked = FieldName.forField("isUnlocked", "is_unlocked"); + static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicCsReqOuterClass.java index cd144f7..897b74c 100644 --- a/src/generated/main/emu/lunarcore/proto/FinishRogueCommonDialogueCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class FinishRogueCommonDialogueCsReqOuterClass { +public final class RelicSmartWearGetPinRelicCsReqOuterClass { /** - * Protobuf type {@code FinishRogueCommonDialogueCsReq} + * Protobuf type {@code RelicSmartWearGetPinRelicCsReq} */ - public static final class FinishRogueCommonDialogueCsReq extends ProtoMessage implements Cloneable { + public static final class RelicSmartWearGetPinRelicCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 event_unique_id = 3; + * optional uint32 avatar_id = 10; */ - private int eventUniqueId; + private int avatarId; - private FinishRogueCommonDialogueCsReq() { + private RelicSmartWearGetPinRelicCsReq() { } /** - * @return a new empty instance of {@code FinishRogueCommonDialogueCsReq} + * @return a new empty instance of {@code RelicSmartWearGetPinRelicCsReq} */ - public static FinishRogueCommonDialogueCsReq newInstance() { - return new FinishRogueCommonDialogueCsReq(); + public static RelicSmartWearGetPinRelicCsReq newInstance() { + return new RelicSmartWearGetPinRelicCsReq(); } /** - * optional uint32 event_unique_id = 3; - * @return whether the eventUniqueId field is set + * optional uint32 avatar_id = 10; + * @return whether the avatarId field is set */ - public boolean hasEventUniqueId() { + public boolean hasAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 event_unique_id = 3; + * optional uint32 avatar_id = 10; * @return this */ - public FinishRogueCommonDialogueCsReq clearEventUniqueId() { + public RelicSmartWearGetPinRelicCsReq clearAvatarId() { bitField0_ &= ~0x00000001; - eventUniqueId = 0; + avatarId = 0; return this; } /** - * optional uint32 event_unique_id = 3; - * @return the eventUniqueId + * optional uint32 avatar_id = 10; + * @return the avatarId */ - public int getEventUniqueId() { - return eventUniqueId; + public int getAvatarId() { + return avatarId; } /** - * optional uint32 event_unique_id = 3; - * @param value the eventUniqueId to set + * optional uint32 avatar_id = 10; + * @param value the avatarId to set * @return this */ - public FinishRogueCommonDialogueCsReq setEventUniqueId(final int value) { + public RelicSmartWearGetPinRelicCsReq setAvatarId(final int value) { bitField0_ |= 0x00000001; - eventUniqueId = value; + avatarId = value; return this; } @Override - public FinishRogueCommonDialogueCsReq copyFrom(final FinishRogueCommonDialogueCsReq other) { + public RelicSmartWearGetPinRelicCsReq copyFrom(final RelicSmartWearGetPinRelicCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - eventUniqueId = other.eventUniqueId; + avatarId = other.avatarId; } return this; } @Override - public FinishRogueCommonDialogueCsReq mergeFrom(final FinishRogueCommonDialogueCsReq other) { + public RelicSmartWearGetPinRelicCsReq mergeFrom(final RelicSmartWearGetPinRelicCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); } return this; } @Override - public FinishRogueCommonDialogueCsReq clear() { + public RelicSmartWearGetPinRelicCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - eventUniqueId = 0; + avatarId = 0; return this; } @Override - public FinishRogueCommonDialogueCsReq clearQuick() { + public RelicSmartWearGetPinRelicCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class FinishRogueCommonDialogueCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof FinishRogueCommonDialogueCsReq)) { + if (!(o instanceof RelicSmartWearGetPinRelicCsReq)) { return false; } - FinishRogueCommonDialogueCsReq other = (FinishRogueCommonDialogueCsReq) o; + RelicSmartWearGetPinRelicCsReq other = (RelicSmartWearGetPinRelicCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId); + && (!hasAvatarId() || avatarId == other.avatarId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(eventUniqueId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(avatarId); } } @@ -138,21 +138,21 @@ public final class FinishRogueCommonDialogueCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); } return size; } @Override @SuppressWarnings("fallthrough") - public FinishRogueCommonDialogueCsReq mergeFrom(final ProtoSource input) throws IOException { + public RelicSmartWearGetPinRelicCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // eventUniqueId - eventUniqueId = input.readUInt32(); + case 80: { + // avatarId + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class FinishRogueCommonDialogueCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); + output.writeUInt32(FieldNames.avatarId, avatarId); } output.endObject(); } @Override - public FinishRogueCommonDialogueCsReq mergeFrom(final JsonSource input) throws IOException { + public RelicSmartWearGetPinRelicCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); + avatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class FinishRogueCommonDialogueCsReqOuterClass { } @Override - public FinishRogueCommonDialogueCsReq clone() { - return new FinishRogueCommonDialogueCsReq().copyFrom(this); + public RelicSmartWearGetPinRelicCsReq clone() { + return new RelicSmartWearGetPinRelicCsReq().copyFrom(this); } @Override @@ -221,34 +221,34 @@ public final class FinishRogueCommonDialogueCsReqOuterClass { return ((bitField0_) == 0); } - public static FinishRogueCommonDialogueCsReq parseFrom(final byte[] data) throws + public static RelicSmartWearGetPinRelicCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new RelicSmartWearGetPinRelicCsReq(), data).checkInitialized(); } - public static FinishRogueCommonDialogueCsReq parseFrom(final ProtoSource input) throws + public static RelicSmartWearGetPinRelicCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), input).checkInitialized(); + return ProtoMessage.mergeFrom(new RelicSmartWearGetPinRelicCsReq(), input).checkInitialized(); } - public static FinishRogueCommonDialogueCsReq parseFrom(final JsonSource input) throws + public static RelicSmartWearGetPinRelicCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new FinishRogueCommonDialogueCsReq(), input).checkInitialized(); + return ProtoMessage.mergeFrom(new RelicSmartWearGetPinRelicCsReq(), input).checkInitialized(); } /** - * @return factory for creating FinishRogueCommonDialogueCsReq messages + * @return factory for creating RelicSmartWearGetPinRelicCsReq messages */ - public static MessageFactory getFactory() { - return FinishRogueCommonDialogueCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return RelicSmartWearGetPinRelicCsReqFactory.INSTANCE; } - private enum FinishRogueCommonDialogueCsReqFactory implements MessageFactory { + private enum RelicSmartWearGetPinRelicCsReqFactory implements MessageFactory { INSTANCE; @Override - public FinishRogueCommonDialogueCsReq create() { - return FinishRogueCommonDialogueCsReq.newInstance(); + public RelicSmartWearGetPinRelicCsReq create() { + return RelicSmartWearGetPinRelicCsReq.newInstance(); } } @@ -256,7 +256,7 @@ public final class FinishRogueCommonDialogueCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicScRspOuterClass.java new file mode 100644 index 0000000..c0e7a5e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPinRelicScRspOuterClass.java @@ -0,0 +1,492 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class RelicSmartWearGetPinRelicScRspOuterClass { + /** + * Protobuf type {@code RelicSmartWearGetPinRelicScRsp} + */ + public static final class RelicSmartWearGetPinRelicScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 8; + */ + private int retcode; + + /** + * optional uint32 avatar_id = 15; + */ + private int avatarId; + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + */ + private final RepeatedInt planIds = RepeatedInt.newEmptyInstance(); + + private RelicSmartWearGetPinRelicScRsp() { + } + + /** + * @return a new empty instance of {@code RelicSmartWearGetPinRelicScRsp} + */ + public static RelicSmartWearGetPinRelicScRsp newInstance() { + return new RelicSmartWearGetPinRelicScRsp(); + } + + /** + * optional uint32 retcode = 8; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 8; + * @return this + */ + public RelicSmartWearGetPinRelicScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 8; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 8; + * @param value the retcode to set + * @return this + */ + public RelicSmartWearGetPinRelicScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 avatar_id = 15; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 15; + * @return this + */ + public RelicSmartWearGetPinRelicScRsp clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 15; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 15; + * @param value the avatarId to set + * @return this + */ + public RelicSmartWearGetPinRelicScRsp setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + * @return whether the planIds field is set + */ + public boolean hasPlanIds() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + * @return this + */ + public RelicSmartWearGetPinRelicScRsp clearPlanIds() { + bitField0_ &= ~0x00000004; + planIds.clear(); + return this; + } + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePlanIds()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getPlanIds() { + return planIds; + } + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutablePlanIds() { + bitField0_ |= 0x00000004; + return planIds; + } + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + * @param value the planIds to add + * @return this + */ + public RelicSmartWearGetPinRelicScRsp addPlanIds(final int value) { + bitField0_ |= 0x00000004; + planIds.add(value); + return this; + } + + /** + *
+     *  ???
+     * 
+ * + * repeated uint32 plan_ids = 12; + * @param values the planIds to add + * @return this + */ + public RelicSmartWearGetPinRelicScRsp addAllPlanIds(final int... values) { + bitField0_ |= 0x00000004; + planIds.addAll(values); + return this; + } + + @Override + public RelicSmartWearGetPinRelicScRsp copyFrom(final RelicSmartWearGetPinRelicScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + avatarId = other.avatarId; + planIds.copyFrom(other.planIds); + } + return this; + } + + @Override + public RelicSmartWearGetPinRelicScRsp mergeFrom(final RelicSmartWearGetPinRelicScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasPlanIds()) { + getMutablePlanIds().addAll(other.planIds); + } + return this; + } + + @Override + public RelicSmartWearGetPinRelicScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + avatarId = 0; + planIds.clear(); + return this; + } + + @Override + public RelicSmartWearGetPinRelicScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + planIds.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RelicSmartWearGetPinRelicScRsp)) { + return false; + } + RelicSmartWearGetPinRelicScRsp other = (RelicSmartWearGetPinRelicScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasPlanIds() || planIds.equals(other.planIds)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < planIds.length(); i++) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(planIds.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * planIds.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(planIds); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RelicSmartWearGetPinRelicScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // planIds [packed=true] + input.readPackedUInt32(planIds, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 96: { + // planIds [packed=false] + tag = input.readRepeatedUInt32(planIds, tag); + bitField0_ |= 0x00000004; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedUInt32(FieldNames.planIds, planIds); + } + output.endObject(); + } + + @Override + public RelicSmartWearGetPinRelicScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493922609: + case 1868928162: { + if (input.isAtField(FieldNames.planIds)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(planIds); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RelicSmartWearGetPinRelicScRsp clone() { + return new RelicSmartWearGetPinRelicScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RelicSmartWearGetPinRelicScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPinRelicScRsp(), data).checkInitialized(); + } + + public static RelicSmartWearGetPinRelicScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPinRelicScRsp(), input).checkInitialized(); + } + + public static RelicSmartWearGetPinRelicScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPinRelicScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating RelicSmartWearGetPinRelicScRsp messages + */ + public static MessageFactory getFactory() { + return RelicSmartWearGetPinRelicScRspFactory.INSTANCE; + } + + private enum RelicSmartWearGetPinRelicScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public RelicSmartWearGetPinRelicScRsp create() { + return RelicSmartWearGetPinRelicScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName planIds = FieldName.forField("planIds", "plan_ids"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RelicRecommendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanCsReqOuterClass.java similarity index 64% rename from src/generated/main/emu/lunarcore/proto/RelicRecommendCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanCsReqOuterClass.java index 271b630..a816843 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicRecommendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanCsReqOuterClass.java @@ -11,30 +11,30 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RelicRecommendCsReqOuterClass { +public final class RelicSmartWearGetPlanCsReqOuterClass { /** - * Protobuf type {@code RelicRecommendCsReq} + * Protobuf type {@code RelicSmartWearGetPlanCsReq} */ - public static final class RelicRecommendCsReq extends ProtoMessage implements Cloneable { + public static final class RelicSmartWearGetPlanCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 9; + * optional uint32 avatar_id = 4; */ private int avatarId; - private RelicRecommendCsReq() { + private RelicSmartWearGetPlanCsReq() { } /** - * @return a new empty instance of {@code RelicRecommendCsReq} + * @return a new empty instance of {@code RelicSmartWearGetPlanCsReq} */ - public static RelicRecommendCsReq newInstance() { - return new RelicRecommendCsReq(); + public static RelicSmartWearGetPlanCsReq newInstance() { + return new RelicSmartWearGetPlanCsReq(); } /** - * optional uint32 avatar_id = 9; + * optional uint32 avatar_id = 4; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -42,17 +42,17 @@ public final class RelicRecommendCsReqOuterClass { } /** - * optional uint32 avatar_id = 9; + * optional uint32 avatar_id = 4; * @return this */ - public RelicRecommendCsReq clearAvatarId() { + public RelicSmartWearGetPlanCsReq clearAvatarId() { bitField0_ &= ~0x00000001; avatarId = 0; return this; } /** - * optional uint32 avatar_id = 9; + * optional uint32 avatar_id = 4; * @return the avatarId */ public int getAvatarId() { @@ -60,18 +60,18 @@ public final class RelicRecommendCsReqOuterClass { } /** - * optional uint32 avatar_id = 9; + * optional uint32 avatar_id = 4; * @param value the avatarId to set * @return this */ - public RelicRecommendCsReq setAvatarId(final int value) { + public RelicSmartWearGetPlanCsReq setAvatarId(final int value) { bitField0_ |= 0x00000001; avatarId = value; return this; } @Override - public RelicRecommendCsReq copyFrom(final RelicRecommendCsReq other) { + public RelicSmartWearGetPlanCsReq copyFrom(final RelicSmartWearGetPlanCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -81,7 +81,7 @@ public final class RelicRecommendCsReqOuterClass { } @Override - public RelicRecommendCsReq mergeFrom(final RelicRecommendCsReq other) { + public RelicSmartWearGetPlanCsReq mergeFrom(final RelicSmartWearGetPlanCsReq other) { if (other.isEmpty()) { return this; } @@ -93,7 +93,7 @@ public final class RelicRecommendCsReqOuterClass { } @Override - public RelicRecommendCsReq clear() { + public RelicSmartWearGetPlanCsReq clear() { if (isEmpty()) { return this; } @@ -104,7 +104,7 @@ public final class RelicRecommendCsReqOuterClass { } @Override - public RelicRecommendCsReq clearQuick() { + public RelicSmartWearGetPlanCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,10 +118,10 @@ public final class RelicRecommendCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof RelicRecommendCsReq)) { + if (!(o instanceof RelicSmartWearGetPlanCsReq)) { return false; } - RelicRecommendCsReq other = (RelicRecommendCsReq) o; + RelicSmartWearGetPlanCsReq other = (RelicSmartWearGetPlanCsReq) o; return bitField0_ == other.bitField0_ && (!hasAvatarId() || avatarId == other.avatarId); } @@ -129,7 +129,7 @@ public final class RelicRecommendCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(avatarId); } } @@ -145,12 +145,12 @@ public final class RelicRecommendCsReqOuterClass { @Override @SuppressWarnings("fallthrough") - public RelicRecommendCsReq mergeFrom(final ProtoSource input) throws IOException { + public RelicSmartWearGetPlanCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 32: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; @@ -183,7 +183,7 @@ public final class RelicRecommendCsReqOuterClass { } @Override - public RelicRecommendCsReq mergeFrom(final JsonSource input) throws IOException { + public RelicSmartWearGetPlanCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -212,8 +212,8 @@ public final class RelicRecommendCsReqOuterClass { } @Override - public RelicRecommendCsReq clone() { - return new RelicRecommendCsReq().copyFrom(this); + public RelicSmartWearGetPlanCsReq clone() { + return new RelicSmartWearGetPlanCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class RelicRecommendCsReqOuterClass { return ((bitField0_) == 0); } - public static RelicRecommendCsReq parseFrom(final byte[] data) throws + public static RelicSmartWearGetPlanCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RelicRecommendCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new RelicSmartWearGetPlanCsReq(), data).checkInitialized(); } - public static RelicRecommendCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicRecommendCsReq(), input).checkInitialized(); + public static RelicSmartWearGetPlanCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPlanCsReq(), input).checkInitialized(); } - public static RelicRecommendCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicRecommendCsReq(), input).checkInitialized(); + public static RelicSmartWearGetPlanCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPlanCsReq(), input).checkInitialized(); } /** - * @return factory for creating RelicRecommendCsReq messages + * @return factory for creating RelicSmartWearGetPlanCsReq messages */ - public static MessageFactory getFactory() { - return RelicRecommendCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return RelicSmartWearGetPlanCsReqFactory.INSTANCE; } - private enum RelicRecommendCsReqFactory implements MessageFactory { + private enum RelicSmartWearGetPlanCsReqFactory implements MessageFactory { INSTANCE; @Override - public RelicRecommendCsReq create() { - return RelicRecommendCsReq.newInstance(); + public RelicSmartWearGetPlanCsReq create() { + return RelicSmartWearGetPlanCsReq.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanScRspOuterClass.java new file mode 100644 index 0000000..ac7733f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/RelicSmartWearGetPlanScRspOuterClass.java @@ -0,0 +1,457 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class RelicSmartWearGetPlanScRspOuterClass { + /** + * Protobuf type {@code RelicSmartWearGetPlanScRsp} + */ + public static final class RelicSmartWearGetPlanScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 avatar_id = 3; + */ + private int avatarId; + + /** + * optional uint32 retcode = 4; + */ + private int retcode; + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + */ + private final RepeatedMessage planList = RepeatedMessage.newEmptyInstance(RelicSmartSuitPlanOuterClass.RelicSmartSuitPlan.getFactory()); + + private RelicSmartWearGetPlanScRsp() { + } + + /** + * @return a new empty instance of {@code RelicSmartWearGetPlanScRsp} + */ + public static RelicSmartWearGetPlanScRsp newInstance() { + return new RelicSmartWearGetPlanScRsp(); + } + + /** + * optional uint32 avatar_id = 3; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 avatar_id = 3; + * @return this + */ + public RelicSmartWearGetPlanScRsp clearAvatarId() { + bitField0_ &= ~0x00000001; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 3; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 3; + * @param value the avatarId to set + * @return this + */ + public RelicSmartWearGetPlanScRsp setAvatarId(final int value) { + bitField0_ |= 0x00000001; + avatarId = value; + return this; + } + + /** + * optional uint32 retcode = 4; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 4; + * @return this + */ + public RelicSmartWearGetPlanScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 4; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 4; + * @param value the retcode to set + * @return this + */ + public RelicSmartWearGetPlanScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + * @return whether the planList field is set + */ + public boolean hasPlanList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + * @return this + */ + public RelicSmartWearGetPlanScRsp clearPlanList() { + bitField0_ &= ~0x00000004; + planList.clear(); + return this; + } + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutablePlanList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getPlanList() { + return planList; + } + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutablePlanList() { + bitField0_ |= 0x00000004; + return planList; + } + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + * @param value the planList to add + * @return this + */ + public RelicSmartWearGetPlanScRsp addPlanList( + final RelicSmartSuitPlanOuterClass.RelicSmartSuitPlan value) { + bitField0_ |= 0x00000004; + planList.add(value); + return this; + } + + /** + * repeated .RelicSmartSuitPlan plan_list = 11; + * @param values the planList to add + * @return this + */ + public RelicSmartWearGetPlanScRsp addAllPlanList( + final RelicSmartSuitPlanOuterClass.RelicSmartSuitPlan... values) { + bitField0_ |= 0x00000004; + planList.addAll(values); + return this; + } + + @Override + public RelicSmartWearGetPlanScRsp copyFrom(final RelicSmartWearGetPlanScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarId = other.avatarId; + retcode = other.retcode; + planList.copyFrom(other.planList); + } + return this; + } + + @Override + public RelicSmartWearGetPlanScRsp mergeFrom(final RelicSmartWearGetPlanScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasPlanList()) { + getMutablePlanList().addAll(other.planList); + } + return this; + } + + @Override + public RelicSmartWearGetPlanScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarId = 0; + retcode = 0; + planList.clear(); + return this; + } + + @Override + public RelicSmartWearGetPlanScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + planList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof RelicSmartWearGetPlanScRsp)) { + return false; + } + RelicSmartWearGetPlanScRsp other = (RelicSmartWearGetPlanScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasPlanList() || planList.equals(other.planList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < planList.length(); i++) { + output.writeRawByte((byte) 90); + output.writeMessageNoTag(planList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * planList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(planList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public RelicSmartWearGetPlanScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // planList + tag = input.readRepeatedMessage(planList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.planList, planList); + } + output.endObject(); + } + + @Override + public RelicSmartWearGetPlanScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1868362599: + case 2102292468: { + if (input.isAtField(FieldNames.planList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(planList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public RelicSmartWearGetPlanScRsp clone() { + return new RelicSmartWearGetPlanScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static RelicSmartWearGetPlanScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPlanScRsp(), data).checkInitialized(); + } + + public static RelicSmartWearGetPlanScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPlanScRsp(), input).checkInitialized(); + } + + public static RelicSmartWearGetPlanScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new RelicSmartWearGetPlanScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating RelicSmartWearGetPlanScRsp messages + */ + public static MessageFactory getFactory() { + return RelicSmartWearGetPlanScRspFactory.INSTANCE; + } + + private enum RelicSmartWearGetPlanScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public RelicSmartWearGetPlanScRsp create() { + return RelicSmartWearGetPlanScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName planList = FieldName.forField("planList", "plan_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RemoveRotaterCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RemoveRotaterCsReqOuterClass.java index d0745fe..bdd7dd4 100644 --- a/src/generated/main/emu/lunarcore/proto/RemoveRotaterCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RemoveRotaterCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class RemoveRotaterCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RotaterData rotater_data = 12; + * optional .RotaterData rotater_data = 2; */ private final RotaterDataOuterClass.RotaterData rotaterData = RotaterDataOuterClass.RotaterData.newInstance(); @@ -34,7 +34,7 @@ public final class RemoveRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 12; + * optional .RotaterData rotater_data = 2; * @return whether the rotaterData field is set */ public boolean hasRotaterData() { @@ -42,7 +42,7 @@ public final class RemoveRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 12; + * optional .RotaterData rotater_data = 2; * @return this */ public RemoveRotaterCsReq clearRotaterData() { @@ -52,7 +52,7 @@ public final class RemoveRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 12; + * optional .RotaterData rotater_data = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class RemoveRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 12; + * optional .RotaterData rotater_data = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class RemoveRotaterCsReqOuterClass { } /** - * optional .RotaterData rotater_data = 12; + * optional .RotaterData rotater_data = 2; * @param value the rotaterData to set * @return this */ @@ -150,7 +150,7 @@ public final class RemoveRotaterCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 18); output.writeMessageNoTag(rotaterData); } } @@ -171,7 +171,7 @@ public final class RemoveRotaterCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { + case 18: { // rotaterData input.readMessage(rotaterData); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/RemoveRotaterScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RemoveRotaterScRspOuterClass.java index 7365325..09ba3be 100644 --- a/src/generated/main/emu/lunarcore/proto/RemoveRotaterScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RemoveRotaterScRspOuterClass.java @@ -19,20 +19,20 @@ public final class RemoveRotaterScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional .RotatorEnergyInfo energy_info = 6; - */ - private final RotatorEnergyInfoOuterClass.RotatorEnergyInfo energyInfo = RotatorEnergyInfoOuterClass.RotatorEnergyInfo.newInstance(); - - /** - * optional .RotaterData rotater_data = 7; + * optional .RotaterData rotater_data = 6; */ private final RotaterDataOuterClass.RotaterData rotaterData = RotaterDataOuterClass.RotaterData.newInstance(); + /** + * optional .RotatorEnergyInfo energy_info = 9; + */ + private final RotatorEnergyInfoOuterClass.RotatorEnergyInfo energyInfo = RotatorEnergyInfoOuterClass.RotatorEnergyInfo.newInstance(); + private RemoveRotaterScRsp() { } @@ -44,7 +44,7 @@ public final class RemoveRotaterScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -52,7 +52,7 @@ public final class RemoveRotaterScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @return this */ public RemoveRotaterScRsp clearRetcode() { @@ -62,7 +62,7 @@ public final class RemoveRotaterScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -70,7 +70,7 @@ public final class RemoveRotaterScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ @@ -81,83 +81,25 @@ public final class RemoveRotaterScRspOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 6; - * @return whether the energyInfo field is set + * optional .RotaterData rotater_data = 6; + * @return whether the rotaterData field is set */ - public boolean hasEnergyInfo() { + public boolean hasRotaterData() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RotatorEnergyInfo energy_info = 6; - * @return this - */ - public RemoveRotaterScRsp clearEnergyInfo() { - bitField0_ &= ~0x00000002; - energyInfo.clear(); - return this; - } - - /** - * optional .RotatorEnergyInfo energy_info = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableEnergyInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getEnergyInfo() { - return energyInfo; - } - - /** - * optional .RotatorEnergyInfo energy_info = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getMutableEnergyInfo() { - bitField0_ |= 0x00000002; - return energyInfo; - } - - /** - * optional .RotatorEnergyInfo energy_info = 6; - * @param value the energyInfo to set - * @return this - */ - public RemoveRotaterScRsp setEnergyInfo( - final RotatorEnergyInfoOuterClass.RotatorEnergyInfo value) { - bitField0_ |= 0x00000002; - energyInfo.copyFrom(value); - return this; - } - - /** - * optional .RotaterData rotater_data = 7; - * @return whether the rotaterData field is set - */ - public boolean hasRotaterData() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RotaterData rotater_data = 7; + * optional .RotaterData rotater_data = 6; * @return this */ public RemoveRotaterScRsp clearRotaterData() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; rotaterData.clear(); return this; } /** - * optional .RotaterData rotater_data = 7; + * optional .RotaterData rotater_data = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -171,7 +113,7 @@ public final class RemoveRotaterScRspOuterClass { } /** - * optional .RotaterData rotater_data = 7; + * optional .RotaterData rotater_data = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -180,29 +122,87 @@ public final class RemoveRotaterScRspOuterClass { * @return internal storage object for modifications */ public RotaterDataOuterClass.RotaterData getMutableRotaterData() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; return rotaterData; } /** - * optional .RotaterData rotater_data = 7; + * optional .RotaterData rotater_data = 6; * @param value the rotaterData to set * @return this */ public RemoveRotaterScRsp setRotaterData(final RotaterDataOuterClass.RotaterData value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; rotaterData.copyFrom(value); return this; } + /** + * optional .RotatorEnergyInfo energy_info = 9; + * @return whether the energyInfo field is set + */ + public boolean hasEnergyInfo() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .RotatorEnergyInfo energy_info = 9; + * @return this + */ + public RemoveRotaterScRsp clearEnergyInfo() { + bitField0_ &= ~0x00000004; + energyInfo.clear(); + return this; + } + + /** + * optional .RotatorEnergyInfo energy_info = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEnergyInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getEnergyInfo() { + return energyInfo; + } + + /** + * optional .RotatorEnergyInfo energy_info = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RotatorEnergyInfoOuterClass.RotatorEnergyInfo getMutableEnergyInfo() { + bitField0_ |= 0x00000004; + return energyInfo; + } + + /** + * optional .RotatorEnergyInfo energy_info = 9; + * @param value the energyInfo to set + * @return this + */ + public RemoveRotaterScRsp setEnergyInfo( + final RotatorEnergyInfoOuterClass.RotatorEnergyInfo value) { + bitField0_ |= 0x00000004; + energyInfo.copyFrom(value); + return this; + } + @Override public RemoveRotaterScRsp copyFrom(final RemoveRotaterScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - energyInfo.copyFrom(other.energyInfo); rotaterData.copyFrom(other.rotaterData); + energyInfo.copyFrom(other.energyInfo); } return this; } @@ -216,12 +216,12 @@ public final class RemoveRotaterScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasEnergyInfo()) { - getMutableEnergyInfo().mergeFrom(other.energyInfo); - } if (other.hasRotaterData()) { getMutableRotaterData().mergeFrom(other.rotaterData); } + if (other.hasEnergyInfo()) { + getMutableEnergyInfo().mergeFrom(other.energyInfo); + } return this; } @@ -233,8 +233,8 @@ public final class RemoveRotaterScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - energyInfo.clear(); rotaterData.clear(); + energyInfo.clear(); return this; } @@ -245,8 +245,8 @@ public final class RemoveRotaterScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - energyInfo.clearQuick(); rotaterData.clearQuick(); + energyInfo.clearQuick(); return this; } @@ -261,23 +261,23 @@ public final class RemoveRotaterScRspOuterClass { RemoveRotaterScRsp other = (RemoveRotaterScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)) - && (!hasRotaterData() || rotaterData.equals(other.rotaterData)); + && (!hasRotaterData() || rotaterData.equals(other.rotaterData)) + && (!hasEnergyInfo() || energyInfo.equals(other.energyInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 50); - output.writeMessageNoTag(energyInfo); + output.writeMessageNoTag(rotaterData); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(rotaterData); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(energyInfo); } } @@ -288,10 +288,10 @@ public final class RemoveRotaterScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(rotaterData); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rotaterData); + size += 1 + ProtoSink.computeMessageSizeNoTag(energyInfo); } return size; } @@ -303,7 +303,7 @@ public final class RemoveRotaterScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 24: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; @@ -313,17 +313,17 @@ public final class RemoveRotaterScRspOuterClass { } } case 50: { - // energyInfo - input.readMessage(energyInfo); + // rotaterData + input.readMessage(rotaterData); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 58) { + if (tag != 74) { break; } } - case 58: { - // rotaterData - input.readMessage(rotaterData); + case 74: { + // energyInfo + input.readMessage(energyInfo); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -351,10 +351,10 @@ public final class RemoveRotaterScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.energyInfo, energyInfo); + output.writeMessage(FieldNames.rotaterData, rotaterData); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rotaterData, rotaterData); + output.writeMessage(FieldNames.energyInfo, energyInfo); } output.endObject(); } @@ -377,11 +377,11 @@ public final class RemoveRotaterScRspOuterClass { } break; } - case 1464698710: - case -1818804219: { - if (input.isAtField(FieldNames.energyInfo)) { + case 1880563393: + case -1807070094: { + if (input.isAtField(FieldNames.rotaterData)) { if (!input.trySkipNullValue()) { - input.readMessage(energyInfo); + input.readMessage(rotaterData); bitField0_ |= 0x00000002; } } else { @@ -389,11 +389,11 @@ public final class RemoveRotaterScRspOuterClass { } break; } - case 1880563393: - case -1807070094: { - if (input.isAtField(FieldNames.rotaterData)) { + case 1464698710: + case -1818804219: { + if (input.isAtField(FieldNames.energyInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(rotaterData); + input.readMessage(energyInfo); bitField0_ |= 0x00000004; } } else { @@ -456,9 +456,9 @@ public final class RemoveRotaterScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); - static final FieldName rotaterData = FieldName.forField("rotaterData", "rotater_data"); + + static final FieldName energyInfo = FieldName.forField("energyInfo", "energy_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java index e19d8a7..29729da 100644 --- a/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReplaceLineupCsReqOuterClass.java @@ -20,32 +20,32 @@ public final class ReplaceLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 2; - */ - private int index; - - /** - * optional uint32 leader_slot = 3; + * optional uint32 leader_slot = 1; */ private int leaderSlot; /** - * optional uint32 plane_id = 7; + * optional uint32 index = 8; + */ + private int index; + + /** + * optional uint32 plane_id = 14; */ private int planeId; /** - * optional .ExtraLineupType extra_lineup_type = 12; + * optional .ExtraLineupType extra_lineup_type = 15; */ private int extraLineupType; /** - * optional bool is_virtual = 10; + * optional bool is_virtual = 9; */ private boolean isVirtual; /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; */ private final RepeatedMessage slots = RepeatedMessage.newEmptyInstance(LineupSlotDataOuterClass.LineupSlotData.getFactory()); @@ -60,62 +60,25 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 index = 2; - * @return whether the index field is set + * optional uint32 leader_slot = 1; + * @return whether the leaderSlot field is set */ - public boolean hasIndex() { + public boolean hasLeaderSlot() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 index = 2; - * @return this - */ - public ReplaceLineupCsReq clearIndex() { - bitField0_ &= ~0x00000001; - index = 0; - return this; - } - - /** - * optional uint32 index = 2; - * @return the index - */ - public int getIndex() { - return index; - } - - /** - * optional uint32 index = 2; - * @param value the index to set - * @return this - */ - public ReplaceLineupCsReq setIndex(final int value) { - bitField0_ |= 0x00000001; - index = value; - return this; - } - - /** - * optional uint32 leader_slot = 3; - * @return whether the leaderSlot field is set - */ - public boolean hasLeaderSlot() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 leader_slot = 3; + * optional uint32 leader_slot = 1; * @return this */ public ReplaceLineupCsReq clearLeaderSlot() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; leaderSlot = 0; return this; } /** - * optional uint32 leader_slot = 3; + * optional uint32 leader_slot = 1; * @return the leaderSlot */ public int getLeaderSlot() { @@ -123,18 +86,55 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 leader_slot = 3; + * optional uint32 leader_slot = 1; * @param value the leaderSlot to set * @return this */ public ReplaceLineupCsReq setLeaderSlot(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; leaderSlot = value; return this; } /** - * optional uint32 plane_id = 7; + * optional uint32 index = 8; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 8; + * @return this + */ + public ReplaceLineupCsReq clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 8; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 8; + * @param value the index to set + * @return this + */ + public ReplaceLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional uint32 plane_id = 14; * @return whether the planeId field is set */ public boolean hasPlaneId() { @@ -142,7 +142,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 7; + * optional uint32 plane_id = 14; * @return this */ public ReplaceLineupCsReq clearPlaneId() { @@ -152,7 +152,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 7; + * optional uint32 plane_id = 14; * @return the planeId */ public int getPlaneId() { @@ -160,7 +160,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 7; + * optional uint32 plane_id = 14; * @param value the planeId to set * @return this */ @@ -171,7 +171,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 12; + * optional .ExtraLineupType extra_lineup_type = 15; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -179,7 +179,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 12; + * optional .ExtraLineupType extra_lineup_type = 15; * @return this */ public ReplaceLineupCsReq clearExtraLineupType() { @@ -189,7 +189,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 12; + * optional .ExtraLineupType extra_lineup_type = 15; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -222,7 +222,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 12; + * optional .ExtraLineupType extra_lineup_type = 15; * @param value the extraLineupType to set * @return this */ @@ -234,7 +234,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 10; + * optional bool is_virtual = 9; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -242,7 +242,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 10; + * optional bool is_virtual = 9; * @return this */ public ReplaceLineupCsReq clearIsVirtual() { @@ -252,7 +252,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 10; + * optional bool is_virtual = 9; * @return the isVirtual */ public boolean getIsVirtual() { @@ -260,7 +260,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * optional bool is_virtual = 10; + * optional bool is_virtual = 9; * @param value the isVirtual to set * @return this */ @@ -271,7 +271,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; * @return whether the slots field is set */ public boolean hasSlots() { @@ -279,7 +279,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; * @return this */ public ReplaceLineupCsReq clearSlots() { @@ -289,7 +289,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -303,7 +303,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -317,7 +317,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; * @param value the slots to add * @return this */ @@ -328,7 +328,7 @@ public final class ReplaceLineupCsReqOuterClass { } /** - * repeated .LineupSlotData slots = 9; + * repeated .LineupSlotData slots = 11; * @param values the slots to add * @return this */ @@ -343,8 +343,8 @@ public final class ReplaceLineupCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - index = other.index; leaderSlot = other.leaderSlot; + index = other.index; planeId = other.planeId; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; @@ -359,12 +359,12 @@ public final class ReplaceLineupCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasIndex()) { - setIndex(other.index); - } if (other.hasLeaderSlot()) { setLeaderSlot(other.leaderSlot); } + if (other.hasIndex()) { + setIndex(other.index); + } if (other.hasPlaneId()) { setPlaneId(other.planeId); } @@ -387,8 +387,8 @@ public final class ReplaceLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - index = 0; leaderSlot = 0; + index = 0; planeId = 0; extraLineupType = 0; isVirtual = false; @@ -417,8 +417,8 @@ public final class ReplaceLineupCsReqOuterClass { } ReplaceLineupCsReq other = (ReplaceLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasIndex() || index == other.index) && (!hasLeaderSlot() || leaderSlot == other.leaderSlot) + && (!hasIndex() || index == other.index) && (!hasPlaneId() || planeId == other.planeId) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual) @@ -428,28 +428,28 @@ public final class ReplaceLineupCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(index); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(leaderSlot); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(index); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 120); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 72); output.writeBoolNoTag(isVirtual); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < slots.length(); i++) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 90); output.writeMessageNoTag(slots.get(i)); } } @@ -459,10 +459,10 @@ public final class ReplaceLineupCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(leaderSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); @@ -486,34 +486,34 @@ public final class ReplaceLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { + case 8: { // leaderSlot leaderSlot = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { + case 64: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { // planeId planeId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 96) { + if (tag != 120) { break; } } - case 96: { + case 120: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -521,20 +521,20 @@ public final class ReplaceLineupCsReqOuterClass { bitField0_ |= 0x00000008; } tag = input.readTag(); - if (tag != 80) { + if (tag != 72) { break; } } - case 80: { + case 72: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 74) { + if (tag != 90) { break; } } - case 74: { + case 90: { // slots tag = input.readRepeatedMessage(slots, tag); bitField0_ |= 0x00000020; @@ -560,10 +560,10 @@ public final class ReplaceLineupCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.leaderSlot, leaderSlot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.leaderSlot, leaderSlot); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.planeId, planeId); @@ -587,10 +587,11 @@ public final class ReplaceLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 1191442087: + case -1708713100: { + if (input.isAtField(FieldNames.leaderSlot)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + leaderSlot = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -598,11 +599,10 @@ public final class ReplaceLineupCsReqOuterClass { } break; } - case 1191442087: - case -1708713100: { - if (input.isAtField(FieldNames.leaderSlot)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - leaderSlot = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -715,10 +715,10 @@ public final class ReplaceLineupCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName index = FieldName.forField("index"); - static final FieldName leaderSlot = FieldName.forField("leaderSlot", "leader_slot"); + static final FieldName index = FieldName.forField("index"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); diff --git a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java index 74ddf9a..a759c95 100644 --- a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 1; + * optional uint32 num = 12; */ private int num; @@ -34,7 +34,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 1; + * optional uint32 num = 12; * @return whether the num field is set */ public boolean hasNum() { @@ -42,7 +42,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 1; + * optional uint32 num = 12; * @return this */ public ReserveStaminaExchangeCsReq clearNum() { @@ -52,7 +52,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 1; + * optional uint32 num = 12; * @return the num */ public int getNum() { @@ -60,7 +60,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { } /** - * optional uint32 num = 1; + * optional uint32 num = 12; * @param value the num to set * @return this */ @@ -129,7 +129,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(num); } } @@ -150,7 +150,7 @@ public final class ReserveStaminaExchangeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 96: { // num num = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java index 09003e3..f47e845 100644 --- a/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ReserveStaminaExchangeScRspOuterClass.java @@ -19,12 +19,12 @@ public final class ReserveStaminaExchangeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 num = 2; + * optional uint32 num = 3; */ private int num; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; */ private int retcode; @@ -39,7 +39,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 2; + * optional uint32 num = 3; * @return whether the num field is set */ public boolean hasNum() { @@ -47,7 +47,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 2; + * optional uint32 num = 3; * @return this */ public ReserveStaminaExchangeScRsp clearNum() { @@ -57,7 +57,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 2; + * optional uint32 num = 3; * @return the num */ public int getNum() { @@ -65,7 +65,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 num = 2; + * optional uint32 num = 3; * @param value the num to set * @return this */ @@ -76,7 +76,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return this */ public ReserveStaminaExchangeScRsp clearRetcode() { @@ -94,7 +94,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public final class ReserveStaminaExchangeScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -177,11 +177,11 @@ public final class ReserveStaminaExchangeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(num); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } } @@ -205,16 +205,16 @@ public final class ReserveStaminaExchangeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 24: { // num num = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 48) { break; } } - case 112: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java index c20bbf0..e88f3f6 100644 --- a/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RevcMsgScNotifyOuterClass.java @@ -10,7 +10,6 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.Utf8String; public final class RevcMsgScNotifyOuterClass { /** @@ -20,34 +19,19 @@ public final class RevcMsgScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 from_uid = 9; - */ - private int fromUid; - - /** - * optional uint32 emote = 11; - */ - private int emote; - - /** - * optional uint32 to_uid = 12; + * optional uint32 to_uid = 9; */ private int toUid; /** - * optional .MsgType msg_type = 1; - */ - private int msgType; - - /** - * optional .ChatType chat_type = 10; + * optional .ChatType chat_type = 5; */ private int chatType; /** - * optional string text = 7; + * optional .ChatInfo msg = 15; */ - private final Utf8String text = Utf8String.newEmptyInstance(); + private final ChatInfoOuterClass.ChatInfo msg = ChatInfoOuterClass.ChatInfo.newInstance(); private RevcMsgScNotify() { } @@ -60,99 +44,25 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional uint32 from_uid = 9; - * @return whether the fromUid field is set + * optional uint32 to_uid = 9; + * @return whether the toUid field is set */ - public boolean hasFromUid() { + public boolean hasToUid() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 from_uid = 9; - * @return this - */ - public RevcMsgScNotify clearFromUid() { - bitField0_ &= ~0x00000001; - fromUid = 0; - return this; - } - - /** - * optional uint32 from_uid = 9; - * @return the fromUid - */ - public int getFromUid() { - return fromUid; - } - - /** - * optional uint32 from_uid = 9; - * @param value the fromUid to set - * @return this - */ - public RevcMsgScNotify setFromUid(final int value) { - bitField0_ |= 0x00000001; - fromUid = value; - return this; - } - - /** - * optional uint32 emote = 11; - * @return whether the emote field is set - */ - public boolean hasEmote() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 emote = 11; - * @return this - */ - public RevcMsgScNotify clearEmote() { - bitField0_ &= ~0x00000002; - emote = 0; - return this; - } - - /** - * optional uint32 emote = 11; - * @return the emote - */ - public int getEmote() { - return emote; - } - - /** - * optional uint32 emote = 11; - * @param value the emote to set - * @return this - */ - public RevcMsgScNotify setEmote(final int value) { - bitField0_ |= 0x00000002; - emote = value; - return this; - } - - /** - * optional uint32 to_uid = 12; - * @return whether the toUid field is set - */ - public boolean hasToUid() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 to_uid = 12; + * optional uint32 to_uid = 9; * @return this */ public RevcMsgScNotify clearToUid() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; toUid = 0; return this; } /** - * optional uint32 to_uid = 12; + * optional uint32 to_uid = 9; * @return the toUid */ public int getToUid() { @@ -160,98 +70,36 @@ public final class RevcMsgScNotifyOuterClass { } /** - * optional uint32 to_uid = 12; + * optional uint32 to_uid = 9; * @param value the toUid to set * @return this */ public RevcMsgScNotify setToUid(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; toUid = value; return this; } /** - * optional .MsgType msg_type = 1; - * @return whether the msgType field is set - */ - public boolean hasMsgType() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .MsgType msg_type = 1; - * @return this - */ - public RevcMsgScNotify clearMsgType() { - bitField0_ &= ~0x00000008; - msgType = 0; - return this; - } - - /** - * optional .MsgType msg_type = 1; - * @return the msgType - */ - public MsgTypeOuterClass.MsgType getMsgType() { - return MsgTypeOuterClass.MsgType.forNumber(msgType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RevcMsgScNotify#getMsgType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getMsgTypeValue() { - return msgType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value - * can cause {@link RevcMsgScNotify#getMsgType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RevcMsgScNotify setMsgTypeValue(final int value) { - bitField0_ |= 0x00000008; - msgType = value; - return this; - } - - /** - * optional .MsgType msg_type = 1; - * @param value the msgType to set - * @return this - */ - public RevcMsgScNotify setMsgType(final MsgTypeOuterClass.MsgType value) { - bitField0_ |= 0x00000008; - msgType = value.getNumber(); - return this; - } - - /** - * optional .ChatType chat_type = 10; + * optional .ChatType chat_type = 5; * @return whether the chatType field is set */ public boolean hasChatType() { - return (bitField0_ & 0x00000010) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional .ChatType chat_type = 10; + * optional .ChatType chat_type = 5; * @return this */ public RevcMsgScNotify clearChatType() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000002; chatType = 0; return this; } /** - * optional .ChatType chat_type = 10; + * optional .ChatType chat_type = 5; * @return the chatType */ public ChatTypeOuterClass.ChatType getChatType() { @@ -278,84 +126,76 @@ public final class RevcMsgScNotifyOuterClass { * @return this */ public RevcMsgScNotify setChatTypeValue(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000002; chatType = value; return this; } /** - * optional .ChatType chat_type = 10; + * optional .ChatType chat_type = 5; * @param value the chatType to set * @return this */ public RevcMsgScNotify setChatType(final ChatTypeOuterClass.ChatType value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000002; chatType = value.getNumber(); return this; } /** - * optional string text = 7; - * @return whether the text field is set + * optional .ChatInfo msg = 15; + * @return whether the msg field is set */ - public boolean hasText() { - return (bitField0_ & 0x00000020) != 0; + public boolean hasMsg() { + return (bitField0_ & 0x00000004) != 0; } /** - * optional string text = 7; + * optional .ChatInfo msg = 15; * @return this */ - public RevcMsgScNotify clearText() { - bitField0_ &= ~0x00000020; - text.clear(); + public RevcMsgScNotify clearMsg() { + bitField0_ &= ~0x00000004; + msg.clear(); return this; } /** - * optional string text = 7; - * @return the text + * optional .ChatInfo msg = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMsg()} if you want to modify it. + * + * @return internal storage object for reading */ - public String getText() { - return text.getString(); + public ChatInfoOuterClass.ChatInfo getMsg() { + return msg; } /** - * optional string text = 7; - * @return internal {@code Utf8String} representation of text for reading + * optional .ChatInfo msg = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications */ - public Utf8String getTextBytes() { - return this.text; + public ChatInfoOuterClass.ChatInfo getMutableMsg() { + bitField0_ |= 0x00000004; + return msg; } /** - * optional string text = 7; - * @return internal {@code Utf8String} representation of text for modifications - */ - public Utf8String getMutableTextBytes() { - bitField0_ |= 0x00000020; - return this.text; - } - - /** - * optional string text = 7; - * @param value the text to set + * optional .ChatInfo msg = 15; + * @param value the msg to set * @return this */ - public RevcMsgScNotify setText(final CharSequence value) { - bitField0_ |= 0x00000020; - text.copyFrom(value); - return this; - } - - /** - * optional string text = 7; - * @param value the text to set - * @return this - */ - public RevcMsgScNotify setText(final Utf8String value) { - bitField0_ |= 0x00000020; - text.copyFrom(value); + public RevcMsgScNotify setMsg(final ChatInfoOuterClass.ChatInfo value) { + bitField0_ |= 0x00000004; + msg.copyFrom(value); return this; } @@ -364,12 +204,9 @@ public final class RevcMsgScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - fromUid = other.fromUid; - emote = other.emote; toUid = other.toUid; - msgType = other.msgType; chatType = other.chatType; - text.copyFrom(other.text); + msg.copyFrom(other.msg); } return this; } @@ -380,23 +217,14 @@ public final class RevcMsgScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasFromUid()) { - setFromUid(other.fromUid); - } - if (other.hasEmote()) { - setEmote(other.emote); - } if (other.hasToUid()) { setToUid(other.toUid); } - if (other.hasMsgType()) { - setMsgTypeValue(other.msgType); - } if (other.hasChatType()) { setChatTypeValue(other.chatType); } - if (other.hasText()) { - getMutableTextBytes().copyFrom(other.text); + if (other.hasMsg()) { + getMutableMsg().mergeFrom(other.msg); } return this; } @@ -408,12 +236,9 @@ public final class RevcMsgScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - fromUid = 0; - emote = 0; toUid = 0; - msgType = 0; chatType = 0; - text.clear(); + msg.clear(); return this; } @@ -424,7 +249,7 @@ public final class RevcMsgScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - text.clear(); + msg.clearQuick(); return this; } @@ -438,39 +263,24 @@ public final class RevcMsgScNotifyOuterClass { } RevcMsgScNotify other = (RevcMsgScNotify) o; return bitField0_ == other.bitField0_ - && (!hasFromUid() || fromUid == other.fromUid) - && (!hasEmote() || emote == other.emote) && (!hasToUid() || toUid == other.toUid) - && (!hasMsgType() || msgType == other.msgType) && (!hasChatType() || chatType == other.chatType) - && (!hasText() || text.equals(other.text)); + && (!hasMsg() || msg.equals(other.msg)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(fromUid); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(emote); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); output.writeUInt32NoTag(toUid); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 8); - output.writeEnumNoTag(msgType); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); output.writeEnumNoTag(chatType); } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 58); - output.writeStringNoTag(text); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 122); + output.writeMessageNoTag(msg); } } @@ -478,22 +288,13 @@ public final class RevcMsgScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(fromUid); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(toUid); } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); - } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(text); + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(msg); } return size; } @@ -506,60 +307,30 @@ public final class RevcMsgScNotifyOuterClass { while (true) { switch (tag) { case 72: { - // fromUid - fromUid = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // emote - emote = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { // toUid toUid = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 8) { + if (tag != 40) { break; } } - case 8: { - // msgType - final int value = input.readInt32(); - if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { - msgType = value; - bitField0_ |= 0x00000008; - } - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 40: { // chatType final int value = input.readInt32(); if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { chatType = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000002; } tag = input.readTag(); - if (tag != 58) { + if (tag != 122) { break; } } - case 58: { - // text - input.readString(text); - bitField0_ |= 0x00000020; + case 122: { + // msg + input.readMessage(msg); + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -583,22 +354,13 @@ public final class RevcMsgScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.fromUid, fromUid); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.emote, emote); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.toUid, toUid); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); - } - if ((bitField0_ & 0x00000010) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); } - if ((bitField0_ & 0x00000020) != 0) { - output.writeString(FieldNames.text, text); + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.msg, msg); } output.endObject(); } @@ -610,52 +372,12 @@ public final class RevcMsgScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -594338746: - case -1244322245: { - if (input.isAtField(FieldNames.fromUid)) { - if (!input.trySkipNullValue()) { - fromUid = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 96633208: { - if (input.isAtField(FieldNames.emote)) { - if (!input.trySkipNullValue()) { - emote = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case 110520277: case -868529012: { if (input.isAtField(FieldNames.toUid)) { if (!input.trySkipNullValue()) { toUid = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1343750747: - case -1283380936: { - if (input.isAtField(FieldNames.msgType)) { - if (!input.trySkipNullValue()) { - final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); - if (value != null) { - msgType = value.getNumber(); - bitField0_ |= 0x00000008; - } else { - input.skipUnknownEnumValue(); - } + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -669,7 +391,7 @@ public final class RevcMsgScNotifyOuterClass { final ChatTypeOuterClass.ChatType value = input.readEnum(ChatTypeOuterClass.ChatType.converter()); if (value != null) { chatType = value.getNumber(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000002; } else { input.skipUnknownEnumValue(); } @@ -679,11 +401,11 @@ public final class RevcMsgScNotifyOuterClass { } break; } - case 3556653: { - if (input.isAtField(FieldNames.text)) { + case 108417: { + if (input.isAtField(FieldNames.msg)) { if (!input.trySkipNullValue()) { - input.readString(text); - bitField0_ |= 0x00000020; + input.readMessage(msg); + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -743,17 +465,11 @@ public final class RevcMsgScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName fromUid = FieldName.forField("fromUid", "from_uid"); - - static final FieldName emote = FieldName.forField("emote"); - static final FieldName toUid = FieldName.forField("toUid", "to_uid"); - static final FieldName msgType = FieldName.forField("msgType", "msg_type"); - static final FieldName chatType = FieldName.forField("chatType", "chat_type"); - static final FieldName text = FieldName.forField("text"); + static final FieldName msg = FieldName.forField("msg"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java deleted file mode 100644 index 0abce79..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAchivedMiracleInfoOuterClass.java +++ /dev/null @@ -1,457 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueAchivedMiracleInfoOuterClass { - /** - * Protobuf type {@code RogueAchivedMiracleInfo} - */ - public static final class RogueAchivedMiracleInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 unlock_slot_count = 9; - */ - private int unlockSlotCount; - - /** - * optional uint32 total_slot_count = 10; - */ - private int totalSlotCount; - - /** - * repeated .RogueMiracle miracle_list = 14; - */ - private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(RogueMiracleOuterClass.RogueMiracle.getFactory()); - - private RogueAchivedMiracleInfo() { - } - - /** - * @return a new empty instance of {@code RogueAchivedMiracleInfo} - */ - public static RogueAchivedMiracleInfo newInstance() { - return new RogueAchivedMiracleInfo(); - } - - /** - * optional uint32 unlock_slot_count = 9; - * @return whether the unlockSlotCount field is set - */ - public boolean hasUnlockSlotCount() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 unlock_slot_count = 9; - * @return this - */ - public RogueAchivedMiracleInfo clearUnlockSlotCount() { - bitField0_ &= ~0x00000001; - unlockSlotCount = 0; - return this; - } - - /** - * optional uint32 unlock_slot_count = 9; - * @return the unlockSlotCount - */ - public int getUnlockSlotCount() { - return unlockSlotCount; - } - - /** - * optional uint32 unlock_slot_count = 9; - * @param value the unlockSlotCount to set - * @return this - */ - public RogueAchivedMiracleInfo setUnlockSlotCount(final int value) { - bitField0_ |= 0x00000001; - unlockSlotCount = value; - return this; - } - - /** - * optional uint32 total_slot_count = 10; - * @return whether the totalSlotCount field is set - */ - public boolean hasTotalSlotCount() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 total_slot_count = 10; - * @return this - */ - public RogueAchivedMiracleInfo clearTotalSlotCount() { - bitField0_ &= ~0x00000002; - totalSlotCount = 0; - return this; - } - - /** - * optional uint32 total_slot_count = 10; - * @return the totalSlotCount - */ - public int getTotalSlotCount() { - return totalSlotCount; - } - - /** - * optional uint32 total_slot_count = 10; - * @param value the totalSlotCount to set - * @return this - */ - public RogueAchivedMiracleInfo setTotalSlotCount(final int value) { - bitField0_ |= 0x00000002; - totalSlotCount = value; - return this; - } - - /** - * repeated .RogueMiracle miracle_list = 14; - * @return whether the miracleList field is set - */ - public boolean hasMiracleList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueMiracle miracle_list = 14; - * @return this - */ - public RogueAchivedMiracleInfo clearMiracleList() { - bitField0_ &= ~0x00000004; - miracleList.clear(); - return this; - } - - /** - * repeated .RogueMiracle miracle_list = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMiracleList() { - return miracleList; - } - - /** - * repeated .RogueMiracle miracle_list = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMiracleList() { - bitField0_ |= 0x00000004; - return miracleList; - } - - /** - * repeated .RogueMiracle miracle_list = 14; - * @param value the miracleList to add - * @return this - */ - public RogueAchivedMiracleInfo addMiracleList(final RogueMiracleOuterClass.RogueMiracle value) { - bitField0_ |= 0x00000004; - miracleList.add(value); - return this; - } - - /** - * repeated .RogueMiracle miracle_list = 14; - * @param values the miracleList to add - * @return this - */ - public RogueAchivedMiracleInfo addAllMiracleList( - final RogueMiracleOuterClass.RogueMiracle... values) { - bitField0_ |= 0x00000004; - miracleList.addAll(values); - return this; - } - - @Override - public RogueAchivedMiracleInfo copyFrom(final RogueAchivedMiracleInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - unlockSlotCount = other.unlockSlotCount; - totalSlotCount = other.totalSlotCount; - miracleList.copyFrom(other.miracleList); - } - return this; - } - - @Override - public RogueAchivedMiracleInfo mergeFrom(final RogueAchivedMiracleInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUnlockSlotCount()) { - setUnlockSlotCount(other.unlockSlotCount); - } - if (other.hasTotalSlotCount()) { - setTotalSlotCount(other.totalSlotCount); - } - if (other.hasMiracleList()) { - getMutableMiracleList().addAll(other.miracleList); - } - return this; - } - - @Override - public RogueAchivedMiracleInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unlockSlotCount = 0; - totalSlotCount = 0; - miracleList.clear(); - return this; - } - - @Override - public RogueAchivedMiracleInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAchivedMiracleInfo)) { - return false; - } - RogueAchivedMiracleInfo other = (RogueAchivedMiracleInfo) o; - return bitField0_ == other.bitField0_ - && (!hasUnlockSlotCount() || unlockSlotCount == other.unlockSlotCount) - && (!hasTotalSlotCount() || totalSlotCount == other.totalSlotCount) - && (!hasMiracleList() || miracleList.equals(other.miracleList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(unlockSlotCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(totalSlotCount); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < miracleList.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(miracleList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockSlotCount); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(totalSlotCount); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAchivedMiracleInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 72: { - // unlockSlotCount - unlockSlotCount = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // totalSlotCount - totalSlotCount = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // miracleList - tag = input.readRepeatedMessage(miracleList, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockSlotCount, unlockSlotCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.totalSlotCount, totalSlotCount); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.miracleList, miracleList); - } - output.endObject(); - } - - @Override - public RogueAchivedMiracleInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1641951949: - case 1265281897: { - if (input.isAtField(FieldNames.unlockSlotCount)) { - if (!input.trySkipNullValue()) { - unlockSlotCount = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1481291469: - case 1489383273: { - if (input.isAtField(FieldNames.totalSlotCount)) { - if (!input.trySkipNullValue()) { - totalSlotCount = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 760391855: - case 2114937772: { - if (input.isAtField(FieldNames.miracleList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(miracleList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAchivedMiracleInfo clone() { - return new RogueAchivedMiracleInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAchivedMiracleInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAchivedMiracleInfo(), data).checkInitialized(); - } - - public static RogueAchivedMiracleInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAchivedMiracleInfo(), input).checkInitialized(); - } - - public static RogueAchivedMiracleInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAchivedMiracleInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAchivedMiracleInfo messages - */ - public static MessageFactory getFactory() { - return RogueAchivedMiracleInfoFactory.INSTANCE; - } - - private enum RogueAchivedMiracleInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAchivedMiracleInfo create() { - return RogueAchivedMiracleInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName unlockSlotCount = FieldName.forField("unlockSlotCount", "unlock_slot_count"); - - static final FieldName totalSlotCount = FieldName.forField("totalSlotCount", "total_slot_count"); - - static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java deleted file mode 100644 index e2f737c..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueActionOuterClass.java +++ /dev/null @@ -1,558 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueActionOuterClass { - /** - * Protobuf type {@code RogueAction} - */ - public static final class RogueAction extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  REMOVED???
-     * 
- * - * optional .RogueMiracleSelectInfo miracle_select_info = 338; - */ - private final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo miracleSelectInfo = RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo.newInstance(); - - /** - * optional .RogueBonusSelectInfo bonus_select_info = 1035; - */ - private final RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo bonusSelectInfo = RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo.newInstance(); - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 1903; - */ - private final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo buffSelectInfo = RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo.newInstance(); - - private RogueAction() { - } - - /** - * @return a new empty instance of {@code RogueAction} - */ - public static RogueAction newInstance() { - return new RogueAction(); - } - - public boolean hasAction() { - return (((bitField0_ & 0x00000007)) != 0); - } - - public RogueAction clearAction() { - if (hasAction()) { - clearMiracleSelectInfo(); - clearBonusSelectInfo(); - clearBuffSelectInfo(); - } - return this; - } - - private void clearActionOtherMiracleSelectInfo() { - if ((((bitField0_ & 0x00000006)) != 0)) { - clearBonusSelectInfo(); - clearBuffSelectInfo(); - } - } - - private void clearActionOtherBonusSelectInfo() { - if ((((bitField0_ & 0x00000005)) != 0)) { - clearMiracleSelectInfo(); - clearBuffSelectInfo(); - } - } - - private void clearActionOtherBuffSelectInfo() { - if ((((bitField0_ & 0x00000003)) != 0)) { - clearMiracleSelectInfo(); - clearBonusSelectInfo(); - } - } - - /** - *
-     *  REMOVED???
-     * 
- * - * optional .RogueMiracleSelectInfo miracle_select_info = 338; - * @return whether the miracleSelectInfo field is set - */ - public boolean hasMiracleSelectInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  REMOVED???
-     * 
- * - * optional .RogueMiracleSelectInfo miracle_select_info = 338; - * @return this - */ - public RogueAction clearMiracleSelectInfo() { - bitField0_ &= ~0x00000001; - miracleSelectInfo.clear(); - return this; - } - - /** - *
-     *  REMOVED???
-     * 
- * - * optional .RogueMiracleSelectInfo miracle_select_info = 338; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMiracleSelectInfo() { - return miracleSelectInfo; - } - - /** - *
-     *  REMOVED???
-     * 
- * - * optional .RogueMiracleSelectInfo miracle_select_info = 338; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMutableMiracleSelectInfo() { - clearActionOtherMiracleSelectInfo(); - bitField0_ |= 0x00000001; - return miracleSelectInfo; - } - - /** - *
-     *  REMOVED???
-     * 
- * - * optional .RogueMiracleSelectInfo miracle_select_info = 338; - * @param value the miracleSelectInfo to set - * @return this - */ - public RogueAction setMiracleSelectInfo( - final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo value) { - clearActionOtherMiracleSelectInfo(); - bitField0_ |= 0x00000001; - miracleSelectInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueBonusSelectInfo bonus_select_info = 1035; - * @return whether the bonusSelectInfo field is set - */ - public boolean hasBonusSelectInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueBonusSelectInfo bonus_select_info = 1035; - * @return this - */ - public RogueAction clearBonusSelectInfo() { - bitField0_ &= ~0x00000002; - bonusSelectInfo.clear(); - return this; - } - - /** - * optional .RogueBonusSelectInfo bonus_select_info = 1035; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBonusSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo getBonusSelectInfo() { - return bonusSelectInfo; - } - - /** - * optional .RogueBonusSelectInfo bonus_select_info = 1035; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo getMutableBonusSelectInfo() { - clearActionOtherBonusSelectInfo(); - bitField0_ |= 0x00000002; - return bonusSelectInfo; - } - - /** - * optional .RogueBonusSelectInfo bonus_select_info = 1035; - * @param value the bonusSelectInfo to set - * @return this - */ - public RogueAction setBonusSelectInfo( - final RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo value) { - clearActionOtherBonusSelectInfo(); - bitField0_ |= 0x00000002; - bonusSelectInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 1903; - * @return whether the buffSelectInfo field is set - */ - public boolean hasBuffSelectInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 1903; - * @return this - */ - public RogueAction clearBuffSelectInfo() { - bitField0_ &= ~0x00000004; - buffSelectInfo.clear(); - return this; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 1903; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getBuffSelectInfo() { - return buffSelectInfo; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 1903; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getMutableBuffSelectInfo( - ) { - clearActionOtherBuffSelectInfo(); - bitField0_ |= 0x00000004; - return buffSelectInfo; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 1903; - * @param value the buffSelectInfo to set - * @return this - */ - public RogueAction setBuffSelectInfo( - final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo value) { - clearActionOtherBuffSelectInfo(); - bitField0_ |= 0x00000004; - buffSelectInfo.copyFrom(value); - return this; - } - - @Override - public RogueAction copyFrom(final RogueAction other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - miracleSelectInfo.copyFrom(other.miracleSelectInfo); - bonusSelectInfo.copyFrom(other.bonusSelectInfo); - buffSelectInfo.copyFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public RogueAction mergeFrom(final RogueAction other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMiracleSelectInfo()) { - getMutableMiracleSelectInfo().mergeFrom(other.miracleSelectInfo); - } - if (other.hasBonusSelectInfo()) { - getMutableBonusSelectInfo().mergeFrom(other.bonusSelectInfo); - } - if (other.hasBuffSelectInfo()) { - getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public RogueAction clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleSelectInfo.clear(); - bonusSelectInfo.clear(); - buffSelectInfo.clear(); - return this; - } - - @Override - public RogueAction clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleSelectInfo.clearQuick(); - bonusSelectInfo.clearQuick(); - buffSelectInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAction)) { - return false; - } - RogueAction other = (RogueAction) o; - return bitField0_ == other.bitField0_ - && (!hasMiracleSelectInfo() || miracleSelectInfo.equals(other.miracleSelectInfo)) - && (!hasBonusSelectInfo() || bonusSelectInfo.equals(other.bonusSelectInfo)) - && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawLittleEndian16((short) 5522); - output.writeMessageNoTag(miracleSelectInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawLittleEndian16((short) 16602); - output.writeMessageNoTag(bonusSelectInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawLittleEndian16((short) 30458); - output.writeMessageNoTag(buffSelectInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(miracleSelectInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(bonusSelectInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAction mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 2706: { - // miracleSelectInfo - clearActionOtherMiracleSelectInfo(); - input.readMessage(miracleSelectInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8282) { - break; - } - } - case 8282: { - // bonusSelectInfo - clearActionOtherBonusSelectInfo(); - input.readMessage(bonusSelectInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 15226) { - break; - } - } - case 15226: { - // buffSelectInfo - clearActionOtherBuffSelectInfo(); - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.miracleSelectInfo, miracleSelectInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.bonusSelectInfo, bonusSelectInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); - } - output.endObject(); - } - - @Override - public RogueAction mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1009314021: - case -1608054973: { - if (input.isAtField(FieldNames.miracleSelectInfo)) { - if (!input.trySkipNullValue()) { - clearActionOtherMiracleSelectInfo(); - input.readMessage(miracleSelectInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1283182921: - case -1836716559: { - if (input.isAtField(FieldNames.bonusSelectInfo)) { - if (!input.trySkipNullValue()) { - clearActionOtherBonusSelectInfo(); - input.readMessage(bonusSelectInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -255242115: - case 1500540965: { - if (input.isAtField(FieldNames.buffSelectInfo)) { - if (!input.trySkipNullValue()) { - clearActionOtherBuffSelectInfo(); - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAction clone() { - return new RogueAction().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAction parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAction(), data).checkInitialized(); - } - - public static RogueAction parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAction(), input).checkInitialized(); - } - - public static RogueAction parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAction(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAction messages - */ - public static MessageFactory getFactory() { - return RogueActionFactory.INSTANCE; - } - - private enum RogueActionFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAction create() { - return RogueAction.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName miracleSelectInfo = FieldName.forField("miracleSelectInfo", "miracle_select_info"); - - static final FieldName bonusSelectInfo = FieldName.forField("bonusSelectInfo", "bonus_select_info"); - - static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java deleted file mode 100644 index 74c4d04..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueActionResultDataOuterClass.java +++ /dev/null @@ -1,797 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueActionResultDataOuterClass { - /** - * Protobuf type {@code RogueActionResultData} - */ - public static final class RogueActionResultData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueVirtualItemData add_item_list = 4; - */ - private final RogueVirtualItemDataOuterClass.RogueVirtualItemData addItemList = RogueVirtualItemDataOuterClass.RogueVirtualItemData.newInstance(); - - /** - * optional .RogueVirtualItemData remove_item_list = 10; - */ - private final RogueVirtualItemDataOuterClass.RogueVirtualItemData removeItemList = RogueVirtualItemDataOuterClass.RogueVirtualItemData.newInstance(); - - /** - *
-     *  idk
-     * 
- * - * optional .RogueMiracleData add_miracle_list = 11; - */ - private final RogueMiracleDataOuterClass.RogueMiracleData addMiracleList = RogueMiracleDataOuterClass.RogueMiracleData.newInstance(); - - /** - * optional .RogueBuffData remove_buff_list = 1544; - */ - private final RogueBuffDataOuterClass.RogueBuffData removeBuffList = RogueBuffDataOuterClass.RogueBuffData.newInstance(); - - /** - * optional .RogueBuffData add_buff_list = 1884; - */ - private final RogueBuffDataOuterClass.RogueBuffData addBuffList = RogueBuffDataOuterClass.RogueBuffData.newInstance(); - - private RogueActionResultData() { - } - - /** - * @return a new empty instance of {@code RogueActionResultData} - */ - public static RogueActionResultData newInstance() { - return new RogueActionResultData(); - } - - public boolean hasResultAction() { - return (((bitField0_ & 0x0000001f)) != 0); - } - - public RogueActionResultData clearResultAction() { - if (hasResultAction()) { - clearAddItemList(); - clearRemoveItemList(); - clearAddMiracleList(); - clearRemoveBuffList(); - clearAddBuffList(); - } - return this; - } - - private void clearResultActionOtherAddItemList() { - if ((((bitField0_ & 0x0000001e)) != 0)) { - clearRemoveItemList(); - clearAddMiracleList(); - clearRemoveBuffList(); - clearAddBuffList(); - } - } - - private void clearResultActionOtherRemoveItemList() { - if ((((bitField0_ & 0x0000001d)) != 0)) { - clearAddItemList(); - clearAddMiracleList(); - clearRemoveBuffList(); - clearAddBuffList(); - } - } - - private void clearResultActionOtherAddMiracleList() { - if ((((bitField0_ & 0x0000001b)) != 0)) { - clearAddItemList(); - clearRemoveItemList(); - clearRemoveBuffList(); - clearAddBuffList(); - } - } - - private void clearResultActionOtherRemoveBuffList() { - if ((((bitField0_ & 0x00000017)) != 0)) { - clearAddItemList(); - clearRemoveItemList(); - clearAddMiracleList(); - clearAddBuffList(); - } - } - - private void clearResultActionOtherAddBuffList() { - if ((((bitField0_ & 0x0000000f)) != 0)) { - clearAddItemList(); - clearRemoveItemList(); - clearAddMiracleList(); - clearRemoveBuffList(); - } - } - - /** - * optional .RogueVirtualItemData add_item_list = 4; - * @return whether the addItemList field is set - */ - public boolean hasAddItemList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueVirtualItemData add_item_list = 4; - * @return this - */ - public RogueActionResultData clearAddItemList() { - bitField0_ &= ~0x00000001; - addItemList.clear(); - return this; - } - - /** - * optional .RogueVirtualItemData add_item_list = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAddItemList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueVirtualItemDataOuterClass.RogueVirtualItemData getAddItemList() { - return addItemList; - } - - /** - * optional .RogueVirtualItemData add_item_list = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueVirtualItemDataOuterClass.RogueVirtualItemData getMutableAddItemList() { - clearResultActionOtherAddItemList(); - bitField0_ |= 0x00000001; - return addItemList; - } - - /** - * optional .RogueVirtualItemData add_item_list = 4; - * @param value the addItemList to set - * @return this - */ - public RogueActionResultData setAddItemList( - final RogueVirtualItemDataOuterClass.RogueVirtualItemData value) { - clearResultActionOtherAddItemList(); - bitField0_ |= 0x00000001; - addItemList.copyFrom(value); - return this; - } - - /** - * optional .RogueVirtualItemData remove_item_list = 10; - * @return whether the removeItemList field is set - */ - public boolean hasRemoveItemList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueVirtualItemData remove_item_list = 10; - * @return this - */ - public RogueActionResultData clearRemoveItemList() { - bitField0_ &= ~0x00000002; - removeItemList.clear(); - return this; - } - - /** - * optional .RogueVirtualItemData remove_item_list = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRemoveItemList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueVirtualItemDataOuterClass.RogueVirtualItemData getRemoveItemList() { - return removeItemList; - } - - /** - * optional .RogueVirtualItemData remove_item_list = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueVirtualItemDataOuterClass.RogueVirtualItemData getMutableRemoveItemList() { - clearResultActionOtherRemoveItemList(); - bitField0_ |= 0x00000002; - return removeItemList; - } - - /** - * optional .RogueVirtualItemData remove_item_list = 10; - * @param value the removeItemList to set - * @return this - */ - public RogueActionResultData setRemoveItemList( - final RogueVirtualItemDataOuterClass.RogueVirtualItemData value) { - clearResultActionOtherRemoveItemList(); - bitField0_ |= 0x00000002; - removeItemList.copyFrom(value); - return this; - } - - /** - *
-     *  idk
-     * 
- * - * optional .RogueMiracleData add_miracle_list = 11; - * @return whether the addMiracleList field is set - */ - public boolean hasAddMiracleList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  idk
-     * 
- * - * optional .RogueMiracleData add_miracle_list = 11; - * @return this - */ - public RogueActionResultData clearAddMiracleList() { - bitField0_ &= ~0x00000004; - addMiracleList.clear(); - return this; - } - - /** - *
-     *  idk
-     * 
- * - * optional .RogueMiracleData add_miracle_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAddMiracleList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleDataOuterClass.RogueMiracleData getAddMiracleList() { - return addMiracleList; - } - - /** - *
-     *  idk
-     * 
- * - * optional .RogueMiracleData add_miracle_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleDataOuterClass.RogueMiracleData getMutableAddMiracleList() { - clearResultActionOtherAddMiracleList(); - bitField0_ |= 0x00000004; - return addMiracleList; - } - - /** - *
-     *  idk
-     * 
- * - * optional .RogueMiracleData add_miracle_list = 11; - * @param value the addMiracleList to set - * @return this - */ - public RogueActionResultData setAddMiracleList( - final RogueMiracleDataOuterClass.RogueMiracleData value) { - clearResultActionOtherAddMiracleList(); - bitField0_ |= 0x00000004; - addMiracleList.copyFrom(value); - return this; - } - - /** - * optional .RogueBuffData remove_buff_list = 1544; - * @return whether the removeBuffList field is set - */ - public boolean hasRemoveBuffList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RogueBuffData remove_buff_list = 1544; - * @return this - */ - public RogueActionResultData clearRemoveBuffList() { - bitField0_ &= ~0x00000008; - removeBuffList.clear(); - return this; - } - - /** - * optional .RogueBuffData remove_buff_list = 1544; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRemoveBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffDataOuterClass.RogueBuffData getRemoveBuffList() { - return removeBuffList; - } - - /** - * optional .RogueBuffData remove_buff_list = 1544; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffDataOuterClass.RogueBuffData getMutableRemoveBuffList() { - clearResultActionOtherRemoveBuffList(); - bitField0_ |= 0x00000008; - return removeBuffList; - } - - /** - * optional .RogueBuffData remove_buff_list = 1544; - * @param value the removeBuffList to set - * @return this - */ - public RogueActionResultData setRemoveBuffList( - final RogueBuffDataOuterClass.RogueBuffData value) { - clearResultActionOtherRemoveBuffList(); - bitField0_ |= 0x00000008; - removeBuffList.copyFrom(value); - return this; - } - - /** - * optional .RogueBuffData add_buff_list = 1884; - * @return whether the addBuffList field is set - */ - public boolean hasAddBuffList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueBuffData add_buff_list = 1884; - * @return this - */ - public RogueActionResultData clearAddBuffList() { - bitField0_ &= ~0x00000010; - addBuffList.clear(); - return this; - } - - /** - * optional .RogueBuffData add_buff_list = 1884; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAddBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffDataOuterClass.RogueBuffData getAddBuffList() { - return addBuffList; - } - - /** - * optional .RogueBuffData add_buff_list = 1884; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffDataOuterClass.RogueBuffData getMutableAddBuffList() { - clearResultActionOtherAddBuffList(); - bitField0_ |= 0x00000010; - return addBuffList; - } - - /** - * optional .RogueBuffData add_buff_list = 1884; - * @param value the addBuffList to set - * @return this - */ - public RogueActionResultData setAddBuffList(final RogueBuffDataOuterClass.RogueBuffData value) { - clearResultActionOtherAddBuffList(); - bitField0_ |= 0x00000010; - addBuffList.copyFrom(value); - return this; - } - - @Override - public RogueActionResultData copyFrom(final RogueActionResultData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - addItemList.copyFrom(other.addItemList); - removeItemList.copyFrom(other.removeItemList); - addMiracleList.copyFrom(other.addMiracleList); - removeBuffList.copyFrom(other.removeBuffList); - addBuffList.copyFrom(other.addBuffList); - } - return this; - } - - @Override - public RogueActionResultData mergeFrom(final RogueActionResultData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasAddItemList()) { - getMutableAddItemList().mergeFrom(other.addItemList); - } - if (other.hasRemoveItemList()) { - getMutableRemoveItemList().mergeFrom(other.removeItemList); - } - if (other.hasAddMiracleList()) { - getMutableAddMiracleList().mergeFrom(other.addMiracleList); - } - if (other.hasRemoveBuffList()) { - getMutableRemoveBuffList().mergeFrom(other.removeBuffList); - } - if (other.hasAddBuffList()) { - getMutableAddBuffList().mergeFrom(other.addBuffList); - } - return this; - } - - @Override - public RogueActionResultData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - addItemList.clear(); - removeItemList.clear(); - addMiracleList.clear(); - removeBuffList.clear(); - addBuffList.clear(); - return this; - } - - @Override - public RogueActionResultData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - addItemList.clearQuick(); - removeItemList.clearQuick(); - addMiracleList.clearQuick(); - removeBuffList.clearQuick(); - addBuffList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueActionResultData)) { - return false; - } - RogueActionResultData other = (RogueActionResultData) o; - return bitField0_ == other.bitField0_ - && (!hasAddItemList() || addItemList.equals(other.addItemList)) - && (!hasRemoveItemList() || removeItemList.equals(other.removeItemList)) - && (!hasAddMiracleList() || addMiracleList.equals(other.addMiracleList)) - && (!hasRemoveBuffList() || removeBuffList.equals(other.removeBuffList)) - && (!hasAddBuffList() || addBuffList.equals(other.addBuffList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(addItemList); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(removeItemList); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(addMiracleList); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 24770); - output.writeMessageNoTag(removeBuffList); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 30178); - output.writeMessageNoTag(addBuffList); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(addItemList); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(removeItemList); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(addMiracleList); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(removeBuffList); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(addBuffList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueActionResultData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 34: { - // addItemList - clearResultActionOtherAddItemList(); - input.readMessage(addItemList); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // removeItemList - clearResultActionOtherRemoveItemList(); - input.readMessage(removeItemList); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // addMiracleList - clearResultActionOtherAddMiracleList(); - input.readMessage(addMiracleList); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 12354) { - break; - } - } - case 12354: { - // removeBuffList - clearResultActionOtherRemoveBuffList(); - input.readMessage(removeBuffList); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 15074) { - break; - } - } - case 15074: { - // addBuffList - clearResultActionOtherAddBuffList(); - input.readMessage(addBuffList); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.addItemList, addItemList); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.removeItemList, removeItemList); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.addMiracleList, addMiracleList); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.removeBuffList, removeBuffList); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.addBuffList, addBuffList); - } - output.endObject(); - } - - @Override - public RogueActionResultData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 203000338: - case -1308770260: { - if (input.isAtField(FieldNames.addItemList)) { - if (!input.trySkipNullValue()) { - clearResultActionOtherAddItemList(); - input.readMessage(addItemList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -417171723: - case -293666737: { - if (input.isAtField(FieldNames.removeItemList)) { - if (!input.trySkipNullValue()) { - clearResultActionOtherRemoveItemList(); - input.readMessage(removeItemList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1381554510: - case -850648438: { - if (input.isAtField(FieldNames.addMiracleList)) { - if (!input.trySkipNullValue()) { - clearResultActionOtherAddMiracleList(); - input.readMessage(addMiracleList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1177726005: - case 1903522575: { - if (input.isAtField(FieldNames.removeBuffList)) { - if (!input.trySkipNullValue()) { - clearResultActionOtherRemoveBuffList(); - input.readMessage(removeBuffList); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1797898066: - case 888419052: { - if (input.isAtField(FieldNames.addBuffList)) { - if (!input.trySkipNullValue()) { - clearResultActionOtherAddBuffList(); - input.readMessage(addBuffList); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueActionResultData clone() { - return new RogueActionResultData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueActionResultData parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueActionResultData(), data).checkInitialized(); - } - - public static RogueActionResultData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueActionResultData(), input).checkInitialized(); - } - - public static RogueActionResultData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueActionResultData(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueActionResultData messages - */ - public static MessageFactory getFactory() { - return RogueActionResultDataFactory.INSTANCE; - } - - private enum RogueActionResultDataFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueActionResultData create() { - return RogueActionResultData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName addItemList = FieldName.forField("addItemList", "add_item_list"); - - static final FieldName removeItemList = FieldName.forField("removeItemList", "remove_item_list"); - - static final FieldName addMiracleList = FieldName.forField("addMiracleList", "add_miracle_list"); - - static final FieldName removeBuffList = FieldName.forField("removeBuffList", "remove_buff_list"); - - static final FieldName addBuffList = FieldName.forField("addBuffList", "add_buff_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java deleted file mode 100644 index 459b869..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueActionResultOuterClass.java +++ /dev/null @@ -1,395 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueActionResultOuterClass { - /** - * Protobuf type {@code RogueActionResult} - */ - public static final class RogueActionResult extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueBuffSource source = 2; - */ - private int source; - - /** - * optional .RogueActionResultData rogue_action = 7; - */ - private final RogueActionResultDataOuterClass.RogueActionResultData rogueAction = RogueActionResultDataOuterClass.RogueActionResultData.newInstance(); - - private RogueActionResult() { - } - - /** - * @return a new empty instance of {@code RogueActionResult} - */ - public static RogueActionResult newInstance() { - return new RogueActionResult(); - } - - /** - * optional .RogueBuffSource source = 2; - * @return whether the source field is set - */ - public boolean hasSource() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueBuffSource source = 2; - * @return this - */ - public RogueActionResult clearSource() { - bitField0_ &= ~0x00000001; - source = 0; - return this; - } - - /** - * optional .RogueBuffSource source = 2; - * @return the source - */ - public RogueBuffSourceOuterClass.RogueBuffSource getSource() { - return RogueBuffSourceOuterClass.RogueBuffSource.forNumber(source); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueActionResult#getSource()}.getNumber(). - * - * @return numeric wire representation - */ - public int getSourceValue() { - return source; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueBuffSourceOuterClass.RogueBuffSource}. Setting an invalid value - * can cause {@link RogueActionResult#getSource()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueActionResult setSourceValue(final int value) { - bitField0_ |= 0x00000001; - source = value; - return this; - } - - /** - * optional .RogueBuffSource source = 2; - * @param value the source to set - * @return this - */ - public RogueActionResult setSource(final RogueBuffSourceOuterClass.RogueBuffSource value) { - bitField0_ |= 0x00000001; - source = value.getNumber(); - return this; - } - - /** - * optional .RogueActionResultData rogue_action = 7; - * @return whether the rogueAction field is set - */ - public boolean hasRogueAction() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueActionResultData rogue_action = 7; - * @return this - */ - public RogueActionResult clearRogueAction() { - bitField0_ &= ~0x00000002; - rogueAction.clear(); - return this; - } - - /** - * optional .RogueActionResultData rogue_action = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAction()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueActionResultDataOuterClass.RogueActionResultData getRogueAction() { - return rogueAction; - } - - /** - * optional .RogueActionResultData rogue_action = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueActionResultDataOuterClass.RogueActionResultData getMutableRogueAction() { - bitField0_ |= 0x00000002; - return rogueAction; - } - - /** - * optional .RogueActionResultData rogue_action = 7; - * @param value the rogueAction to set - * @return this - */ - public RogueActionResult setRogueAction( - final RogueActionResultDataOuterClass.RogueActionResultData value) { - bitField0_ |= 0x00000002; - rogueAction.copyFrom(value); - return this; - } - - @Override - public RogueActionResult copyFrom(final RogueActionResult other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - source = other.source; - rogueAction.copyFrom(other.rogueAction); - } - return this; - } - - @Override - public RogueActionResult mergeFrom(final RogueActionResult other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSource()) { - setSourceValue(other.source); - } - if (other.hasRogueAction()) { - getMutableRogueAction().mergeFrom(other.rogueAction); - } - return this; - } - - @Override - public RogueActionResult clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - source = 0; - rogueAction.clear(); - return this; - } - - @Override - public RogueActionResult clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueAction.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueActionResult)) { - return false; - } - RogueActionResult other = (RogueActionResult) o; - return bitField0_ == other.bitField0_ - && (!hasSource() || source == other.source) - && (!hasRogueAction() || rogueAction.equals(other.rogueAction)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeEnumNoTag(source); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(rogueAction); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(source); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAction); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueActionResult mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // source - final int value = input.readInt32(); - if (RogueBuffSourceOuterClass.RogueBuffSource.forNumber(value) != null) { - source = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // rogueAction - input.readMessage(rogueAction); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.source, source, RogueBuffSourceOuterClass.RogueBuffSource.converter()); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueAction, rogueAction); - } - output.endObject(); - } - - @Override - public RogueActionResult mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -896505829: { - if (input.isAtField(FieldNames.source)) { - if (!input.trySkipNullValue()) { - final RogueBuffSourceOuterClass.RogueBuffSource value = input.readEnum(RogueBuffSourceOuterClass.RogueBuffSource.converter()); - if (value != null) { - source = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -1366582096: - case 1368298555: { - if (input.isAtField(FieldNames.rogueAction)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAction); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueActionResult clone() { - return new RogueActionResult().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueActionResult parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueActionResult(), data).checkInitialized(); - } - - public static RogueActionResult parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueActionResult(), input).checkInitialized(); - } - - public static RogueActionResult parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueActionResult(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueActionResult messages - */ - public static MessageFactory getFactory() { - return RogueActionResultFactory.INSTANCE; - } - - private enum RogueActionResultFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueActionResult create() { - return RogueActionResult.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName source = FieldName.forField("source"); - - static final FieldName rogueAction = FieldName.forField("rogueAction", "rogue_action"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java deleted file mode 100644 index 5717dd7..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAeonInfoOuterClass.java +++ /dev/null @@ -1,543 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class RogueAeonInfoOuterClass { - /** - * Protobuf type {@code RogueAeonInfo} - */ - public static final class RogueAeonInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 unlock_aeon_enhance_num = 4; - */ - private int unlockAeonEnhanceNum; - - /** - * optional uint32 unlock_aeon_num = 15; - */ - private int unlockAeonNum; - - /** - * optional bool is_unlocked = 7; - */ - private boolean isUnlocked; - - /** - * repeated uint32 aeon_id_list = 13; - */ - private final RepeatedInt aeonIdList = RepeatedInt.newEmptyInstance(); - - private RogueAeonInfo() { - } - - /** - * @return a new empty instance of {@code RogueAeonInfo} - */ - public static RogueAeonInfo newInstance() { - return new RogueAeonInfo(); - } - - /** - * optional uint32 unlock_aeon_enhance_num = 4; - * @return whether the unlockAeonEnhanceNum field is set - */ - public boolean hasUnlockAeonEnhanceNum() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 4; - * @return this - */ - public RogueAeonInfo clearUnlockAeonEnhanceNum() { - bitField0_ &= ~0x00000001; - unlockAeonEnhanceNum = 0; - return this; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 4; - * @return the unlockAeonEnhanceNum - */ - public int getUnlockAeonEnhanceNum() { - return unlockAeonEnhanceNum; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 4; - * @param value the unlockAeonEnhanceNum to set - * @return this - */ - public RogueAeonInfo setUnlockAeonEnhanceNum(final int value) { - bitField0_ |= 0x00000001; - unlockAeonEnhanceNum = value; - return this; - } - - /** - * optional uint32 unlock_aeon_num = 15; - * @return whether the unlockAeonNum field is set - */ - public boolean hasUnlockAeonNum() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 unlock_aeon_num = 15; - * @return this - */ - public RogueAeonInfo clearUnlockAeonNum() { - bitField0_ &= ~0x00000002; - unlockAeonNum = 0; - return this; - } - - /** - * optional uint32 unlock_aeon_num = 15; - * @return the unlockAeonNum - */ - public int getUnlockAeonNum() { - return unlockAeonNum; - } - - /** - * optional uint32 unlock_aeon_num = 15; - * @param value the unlockAeonNum to set - * @return this - */ - public RogueAeonInfo setUnlockAeonNum(final int value) { - bitField0_ |= 0x00000002; - unlockAeonNum = value; - return this; - } - - /** - * optional bool is_unlocked = 7; - * @return whether the isUnlocked field is set - */ - public boolean hasIsUnlocked() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool is_unlocked = 7; - * @return this - */ - public RogueAeonInfo clearIsUnlocked() { - bitField0_ &= ~0x00000004; - isUnlocked = false; - return this; - } - - /** - * optional bool is_unlocked = 7; - * @return the isUnlocked - */ - public boolean getIsUnlocked() { - return isUnlocked; - } - - /** - * optional bool is_unlocked = 7; - * @param value the isUnlocked to set - * @return this - */ - public RogueAeonInfo setIsUnlocked(final boolean value) { - bitField0_ |= 0x00000004; - isUnlocked = value; - return this; - } - - /** - * repeated uint32 aeon_id_list = 13; - * @return whether the aeonIdList field is set - */ - public boolean hasAeonIdList() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 aeon_id_list = 13; - * @return this - */ - public RogueAeonInfo clearAeonIdList() { - bitField0_ &= ~0x00000008; - aeonIdList.clear(); - return this; - } - - /** - * repeated uint32 aeon_id_list = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAeonIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getAeonIdList() { - return aeonIdList; - } - - /** - * repeated uint32 aeon_id_list = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableAeonIdList() { - bitField0_ |= 0x00000008; - return aeonIdList; - } - - /** - * repeated uint32 aeon_id_list = 13; - * @param value the aeonIdList to add - * @return this - */ - public RogueAeonInfo addAeonIdList(final int value) { - bitField0_ |= 0x00000008; - aeonIdList.add(value); - return this; - } - - /** - * repeated uint32 aeon_id_list = 13; - * @param values the aeonIdList to add - * @return this - */ - public RogueAeonInfo addAllAeonIdList(final int... values) { - bitField0_ |= 0x00000008; - aeonIdList.addAll(values); - return this; - } - - @Override - public RogueAeonInfo copyFrom(final RogueAeonInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - unlockAeonEnhanceNum = other.unlockAeonEnhanceNum; - unlockAeonNum = other.unlockAeonNum; - isUnlocked = other.isUnlocked; - aeonIdList.copyFrom(other.aeonIdList); - } - return this; - } - - @Override - public RogueAeonInfo mergeFrom(final RogueAeonInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUnlockAeonEnhanceNum()) { - setUnlockAeonEnhanceNum(other.unlockAeonEnhanceNum); - } - if (other.hasUnlockAeonNum()) { - setUnlockAeonNum(other.unlockAeonNum); - } - if (other.hasIsUnlocked()) { - setIsUnlocked(other.isUnlocked); - } - if (other.hasAeonIdList()) { - getMutableAeonIdList().addAll(other.aeonIdList); - } - return this; - } - - @Override - public RogueAeonInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unlockAeonEnhanceNum = 0; - unlockAeonNum = 0; - isUnlocked = false; - aeonIdList.clear(); - return this; - } - - @Override - public RogueAeonInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - aeonIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAeonInfo)) { - return false; - } - RogueAeonInfo other = (RogueAeonInfo) o; - return bitField0_ == other.bitField0_ - && (!hasUnlockAeonEnhanceNum() || unlockAeonEnhanceNum == other.unlockAeonEnhanceNum) - && (!hasUnlockAeonNum() || unlockAeonNum == other.unlockAeonNum) - && (!hasIsUnlocked() || isUnlocked == other.isUnlocked) - && (!hasAeonIdList() || aeonIdList.equals(other.aeonIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(unlockAeonEnhanceNum); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(unlockAeonNum); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(isUnlocked); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < aeonIdList.length(); i++) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(aeonIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonEnhanceNum); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonNum); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * aeonIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(aeonIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAeonInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // unlockAeonEnhanceNum - unlockAeonEnhanceNum = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // unlockAeonNum - unlockAeonNum = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // isUnlocked - isUnlocked = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // aeonIdList [packed=true] - input.readPackedUInt32(aeonIdList, tag); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 104: { - // aeonIdList [packed=false] - tag = input.readRepeatedUInt32(aeonIdList, tag); - bitField0_ |= 0x00000008; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockAeonEnhanceNum, unlockAeonEnhanceNum); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.unlockAeonNum, unlockAeonNum); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.isUnlocked, isUnlocked); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.aeonIdList, aeonIdList); - } - output.endObject(); - } - - @Override - public RogueAeonInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1040991167: - case 7773396: { - if (input.isAtField(FieldNames.unlockAeonEnhanceNum)) { - if (!input.trySkipNullValue()) { - unlockAeonEnhanceNum = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -281209953: - case -952729371: { - if (input.isAtField(FieldNames.unlockAeonNum)) { - if (!input.trySkipNullValue()) { - unlockAeonNum = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1004219859: - case -945979816: { - if (input.isAtField(FieldNames.isUnlocked)) { - if (!input.trySkipNullValue()) { - isUnlocked = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1452976956: - case 953805318: { - if (input.isAtField(FieldNames.aeonIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(aeonIdList); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAeonInfo clone() { - return new RogueAeonInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAeonInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAeonInfo(), data).checkInitialized(); - } - - public static RogueAeonInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAeonInfo(), input).checkInitialized(); - } - - public static RogueAeonInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAeonInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAeonInfo messages - */ - public static MessageFactory getFactory() { - return RogueAeonInfoFactory.INSTANCE; - } - - private enum RogueAeonInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAeonInfo create() { - return RogueAeonInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName unlockAeonEnhanceNum = FieldName.forField("unlockAeonEnhanceNum", "unlock_aeon_enhance_num"); - - static final FieldName unlockAeonNum = FieldName.forField("unlockAeonNum", "unlock_aeon_num"); - - static final FieldName isUnlocked = FieldName.forField("isUnlocked", "is_unlocked"); - - static final FieldName aeonIdList = FieldName.forField("aeonIdList", "aeon_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java deleted file mode 100644 index 8a83e2b..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAeonOuterClass.java +++ /dev/null @@ -1,421 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueAeonOuterClass { - /** - * Protobuf type {@code RogueAeon} - */ - public static final class RogueAeon extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 unlock_aeon_enhance_num = 3; - */ - private int unlockAeonEnhanceNum; - - /** - * optional uint32 aeon_id = 15; - */ - private int aeonId; - - /** - * optional bool is_unlock_enhance_buff = 10; - */ - private boolean isUnlockEnhanceBuff; - - private RogueAeon() { - } - - /** - * @return a new empty instance of {@code RogueAeon} - */ - public static RogueAeon newInstance() { - return new RogueAeon(); - } - - /** - * optional uint32 unlock_aeon_enhance_num = 3; - * @return whether the unlockAeonEnhanceNum field is set - */ - public boolean hasUnlockAeonEnhanceNum() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 3; - * @return this - */ - public RogueAeon clearUnlockAeonEnhanceNum() { - bitField0_ &= ~0x00000001; - unlockAeonEnhanceNum = 0; - return this; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 3; - * @return the unlockAeonEnhanceNum - */ - public int getUnlockAeonEnhanceNum() { - return unlockAeonEnhanceNum; - } - - /** - * optional uint32 unlock_aeon_enhance_num = 3; - * @param value the unlockAeonEnhanceNum to set - * @return this - */ - public RogueAeon setUnlockAeonEnhanceNum(final int value) { - bitField0_ |= 0x00000001; - unlockAeonEnhanceNum = value; - return this; - } - - /** - * optional uint32 aeon_id = 15; - * @return whether the aeonId field is set - */ - public boolean hasAeonId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 aeon_id = 15; - * @return this - */ - public RogueAeon clearAeonId() { - bitField0_ &= ~0x00000002; - aeonId = 0; - return this; - } - - /** - * optional uint32 aeon_id = 15; - * @return the aeonId - */ - public int getAeonId() { - return aeonId; - } - - /** - * optional uint32 aeon_id = 15; - * @param value the aeonId to set - * @return this - */ - public RogueAeon setAeonId(final int value) { - bitField0_ |= 0x00000002; - aeonId = value; - return this; - } - - /** - * optional bool is_unlock_enhance_buff = 10; - * @return whether the isUnlockEnhanceBuff field is set - */ - public boolean hasIsUnlockEnhanceBuff() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool is_unlock_enhance_buff = 10; - * @return this - */ - public RogueAeon clearIsUnlockEnhanceBuff() { - bitField0_ &= ~0x00000004; - isUnlockEnhanceBuff = false; - return this; - } - - /** - * optional bool is_unlock_enhance_buff = 10; - * @return the isUnlockEnhanceBuff - */ - public boolean getIsUnlockEnhanceBuff() { - return isUnlockEnhanceBuff; - } - - /** - * optional bool is_unlock_enhance_buff = 10; - * @param value the isUnlockEnhanceBuff to set - * @return this - */ - public RogueAeon setIsUnlockEnhanceBuff(final boolean value) { - bitField0_ |= 0x00000004; - isUnlockEnhanceBuff = value; - return this; - } - - @Override - public RogueAeon copyFrom(final RogueAeon other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - unlockAeonEnhanceNum = other.unlockAeonEnhanceNum; - aeonId = other.aeonId; - isUnlockEnhanceBuff = other.isUnlockEnhanceBuff; - } - return this; - } - - @Override - public RogueAeon mergeFrom(final RogueAeon other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUnlockAeonEnhanceNum()) { - setUnlockAeonEnhanceNum(other.unlockAeonEnhanceNum); - } - if (other.hasAeonId()) { - setAeonId(other.aeonId); - } - if (other.hasIsUnlockEnhanceBuff()) { - setIsUnlockEnhanceBuff(other.isUnlockEnhanceBuff); - } - return this; - } - - @Override - public RogueAeon clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unlockAeonEnhanceNum = 0; - aeonId = 0; - isUnlockEnhanceBuff = false; - return this; - } - - @Override - public RogueAeon clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAeon)) { - return false; - } - RogueAeon other = (RogueAeon) o; - return bitField0_ == other.bitField0_ - && (!hasUnlockAeonEnhanceNum() || unlockAeonEnhanceNum == other.unlockAeonEnhanceNum) - && (!hasAeonId() || aeonId == other.aeonId) - && (!hasIsUnlockEnhanceBuff() || isUnlockEnhanceBuff == other.isUnlockEnhanceBuff); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(unlockAeonEnhanceNum); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(aeonId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); - output.writeBoolNoTag(isUnlockEnhanceBuff); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockAeonEnhanceNum); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAeon mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // unlockAeonEnhanceNum - unlockAeonEnhanceNum = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // aeonId - aeonId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // isUnlockEnhanceBuff - isUnlockEnhanceBuff = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockAeonEnhanceNum, unlockAeonEnhanceNum); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.aeonId, aeonId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.isUnlockEnhanceBuff, isUnlockEnhanceBuff); - } - output.endObject(); - } - - @Override - public RogueAeon mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1040991167: - case 7773396: { - if (input.isAtField(FieldNames.unlockAeonEnhanceNum)) { - if (!input.trySkipNullValue()) { - unlockAeonEnhanceNum = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1421249154: - case -1109029417: { - if (input.isAtField(FieldNames.aeonId)) { - if (!input.trySkipNullValue()) { - aeonId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1006386637: - case -118645302: { - if (input.isAtField(FieldNames.isUnlockEnhanceBuff)) { - if (!input.trySkipNullValue()) { - isUnlockEnhanceBuff = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAeon clone() { - return new RogueAeon().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAeon parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAeon(), data).checkInitialized(); - } - - public static RogueAeon parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAeon(), input).checkInitialized(); - } - - public static RogueAeon parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAeon(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAeon messages - */ - public static MessageFactory getFactory() { - return RogueAeonFactory.INSTANCE; - } - - private enum RogueAeonFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAeon create() { - return RogueAeon.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName unlockAeonEnhanceNum = FieldName.forField("unlockAeonEnhanceNum", "unlock_aeon_enhance_num"); - - static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); - - static final FieldName isUnlockEnhanceBuff = FieldName.forField("isUnlockEnhanceBuff", "is_unlock_enhance_buff"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java deleted file mode 100644 index e4b0e13..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAreaInfoOuterClass.java +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueAreaInfoOuterClass { - /** - * Protobuf type {@code RogueAreaInfo} - */ - public static final class RogueAreaInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueArea rogue_area = 2; - */ - private final RepeatedMessage rogueArea = RepeatedMessage.newEmptyInstance(RogueAreaOuterClass.RogueArea.getFactory()); - - private RogueAreaInfo() { - } - - /** - * @return a new empty instance of {@code RogueAreaInfo} - */ - public static RogueAreaInfo newInstance() { - return new RogueAreaInfo(); - } - - /** - * repeated .RogueArea rogue_area = 2; - * @return whether the rogueArea field is set - */ - public boolean hasRogueArea() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueArea rogue_area = 2; - * @return this - */ - public RogueAreaInfo clearRogueArea() { - bitField0_ &= ~0x00000001; - rogueArea.clear(); - return this; - } - - /** - * repeated .RogueArea rogue_area = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueArea()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueArea() { - return rogueArea; - } - - /** - * repeated .RogueArea rogue_area = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueArea() { - bitField0_ |= 0x00000001; - return rogueArea; - } - - /** - * repeated .RogueArea rogue_area = 2; - * @param value the rogueArea to add - * @return this - */ - public RogueAreaInfo addRogueArea(final RogueAreaOuterClass.RogueArea value) { - bitField0_ |= 0x00000001; - rogueArea.add(value); - return this; - } - - /** - * repeated .RogueArea rogue_area = 2; - * @param values the rogueArea to add - * @return this - */ - public RogueAreaInfo addAllRogueArea(final RogueAreaOuterClass.RogueArea... values) { - bitField0_ |= 0x00000001; - rogueArea.addAll(values); - return this; - } - - @Override - public RogueAreaInfo copyFrom(final RogueAreaInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueArea.copyFrom(other.rogueArea); - } - return this; - } - - @Override - public RogueAreaInfo mergeFrom(final RogueAreaInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueArea()) { - getMutableRogueArea().addAll(other.rogueArea); - } - return this; - } - - @Override - public RogueAreaInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueArea.clear(); - return this; - } - - @Override - public RogueAreaInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueArea.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAreaInfo)) { - return false; - } - RogueAreaInfo other = (RogueAreaInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueArea() || rogueArea.equals(other.rogueArea)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < rogueArea.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(rogueArea.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * rogueArea.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueArea); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAreaInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 18: { - // rogueArea - tag = input.readRepeatedMessage(rogueArea, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.rogueArea, rogueArea); - } - output.endObject(); - } - - @Override - public RogueAreaInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 655574407: - case -1124817966: { - if (input.isAtField(FieldNames.rogueArea)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueArea); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAreaInfo clone() { - return new RogueAreaInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAreaInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAreaInfo(), data).checkInitialized(); - } - - public static RogueAreaInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAreaInfo(), input).checkInitialized(); - } - - public static RogueAreaInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAreaInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAreaInfo messages - */ - public static MessageFactory getFactory() { - return RogueAreaInfoFactory.INSTANCE; - } - - private enum RogueAreaInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAreaInfo create() { - return RogueAreaInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueArea = FieldName.forField("rogueArea", "rogue_area"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAreaOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAreaOuterClass.java deleted file mode 100644 index 83e1ece..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAreaOuterClass.java +++ /dev/null @@ -1,664 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueAreaOuterClass { - /** - * Protobuf type {@code RogueArea} - */ - public static final class RogueArea extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 rogue_status = 2; - */ - private int rogueStatus; - - /** - * optional uint32 area_id = 3; - */ - private int areaId; - - /** - * optional uint32 map_id = 5; - */ - private int mapId; - - /** - * optional uint32 rogue_area_status = 9; - */ - private int rogueAreaStatus; - - /** - * optional uint32 cur_reach_room_num = 10; - */ - private int curReachRoomNum; - - /** - * optional bool has_taken_rewards = 13; - */ - private boolean hasTakenRewards; - - private RogueArea() { - } - - /** - * @return a new empty instance of {@code RogueArea} - */ - public static RogueArea newInstance() { - return new RogueArea(); - } - - /** - * optional uint32 rogue_status = 2; - * @return whether the rogueStatus field is set - */ - public boolean hasRogueStatus() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 rogue_status = 2; - * @return this - */ - public RogueArea clearRogueStatus() { - bitField0_ &= ~0x00000001; - rogueStatus = 0; - return this; - } - - /** - * optional uint32 rogue_status = 2; - * @return the rogueStatus - */ - public int getRogueStatus() { - return rogueStatus; - } - - /** - * optional uint32 rogue_status = 2; - * @param value the rogueStatus to set - * @return this - */ - public RogueArea setRogueStatus(final int value) { - bitField0_ |= 0x00000001; - rogueStatus = value; - return this; - } - - /** - * optional uint32 area_id = 3; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 area_id = 3; - * @return this - */ - public RogueArea clearAreaId() { - bitField0_ &= ~0x00000002; - areaId = 0; - return this; - } - - /** - * optional uint32 area_id = 3; - * @return the areaId - */ - public int getAreaId() { - return areaId; - } - - /** - * optional uint32 area_id = 3; - * @param value the areaId to set - * @return this - */ - public RogueArea setAreaId(final int value) { - bitField0_ |= 0x00000002; - areaId = value; - return this; - } - - /** - * optional uint32 map_id = 5; - * @return whether the mapId field is set - */ - public boolean hasMapId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 map_id = 5; - * @return this - */ - public RogueArea clearMapId() { - bitField0_ &= ~0x00000004; - mapId = 0; - return this; - } - - /** - * optional uint32 map_id = 5; - * @return the mapId - */ - public int getMapId() { - return mapId; - } - - /** - * optional uint32 map_id = 5; - * @param value the mapId to set - * @return this - */ - public RogueArea setMapId(final int value) { - bitField0_ |= 0x00000004; - mapId = value; - return this; - } - - /** - * optional uint32 rogue_area_status = 9; - * @return whether the rogueAreaStatus field is set - */ - public boolean hasRogueAreaStatus() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 rogue_area_status = 9; - * @return this - */ - public RogueArea clearRogueAreaStatus() { - bitField0_ &= ~0x00000008; - rogueAreaStatus = 0; - return this; - } - - /** - * optional uint32 rogue_area_status = 9; - * @return the rogueAreaStatus - */ - public int getRogueAreaStatus() { - return rogueAreaStatus; - } - - /** - * optional uint32 rogue_area_status = 9; - * @param value the rogueAreaStatus to set - * @return this - */ - public RogueArea setRogueAreaStatus(final int value) { - bitField0_ |= 0x00000008; - rogueAreaStatus = value; - return this; - } - - /** - * optional uint32 cur_reach_room_num = 10; - * @return whether the curReachRoomNum field is set - */ - public boolean hasCurReachRoomNum() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 cur_reach_room_num = 10; - * @return this - */ - public RogueArea clearCurReachRoomNum() { - bitField0_ &= ~0x00000010; - curReachRoomNum = 0; - return this; - } - - /** - * optional uint32 cur_reach_room_num = 10; - * @return the curReachRoomNum - */ - public int getCurReachRoomNum() { - return curReachRoomNum; - } - - /** - * optional uint32 cur_reach_room_num = 10; - * @param value the curReachRoomNum to set - * @return this - */ - public RogueArea setCurReachRoomNum(final int value) { - bitField0_ |= 0x00000010; - curReachRoomNum = value; - return this; - } - - /** - * optional bool has_taken_rewards = 13; - * @return whether the hasTakenRewards field is set - */ - public boolean hasHasTakenRewards() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional bool has_taken_rewards = 13; - * @return this - */ - public RogueArea clearHasTakenRewards() { - bitField0_ &= ~0x00000020; - hasTakenRewards = false; - return this; - } - - /** - * optional bool has_taken_rewards = 13; - * @return the hasTakenRewards - */ - public boolean getHasTakenRewards() { - return hasTakenRewards; - } - - /** - * optional bool has_taken_rewards = 13; - * @param value the hasTakenRewards to set - * @return this - */ - public RogueArea setHasTakenRewards(final boolean value) { - bitField0_ |= 0x00000020; - hasTakenRewards = value; - return this; - } - - @Override - public RogueArea copyFrom(final RogueArea other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueStatus = other.rogueStatus; - areaId = other.areaId; - mapId = other.mapId; - rogueAreaStatus = other.rogueAreaStatus; - curReachRoomNum = other.curReachRoomNum; - hasTakenRewards = other.hasTakenRewards; - } - return this; - } - - @Override - public RogueArea mergeFrom(final RogueArea other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueStatus()) { - setRogueStatus(other.rogueStatus); - } - if (other.hasAreaId()) { - setAreaId(other.areaId); - } - if (other.hasMapId()) { - setMapId(other.mapId); - } - if (other.hasRogueAreaStatus()) { - setRogueAreaStatus(other.rogueAreaStatus); - } - if (other.hasCurReachRoomNum()) { - setCurReachRoomNum(other.curReachRoomNum); - } - if (other.hasHasTakenRewards()) { - setHasTakenRewards(other.hasTakenRewards); - } - return this; - } - - @Override - public RogueArea clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueStatus = 0; - areaId = 0; - mapId = 0; - rogueAreaStatus = 0; - curReachRoomNum = 0; - hasTakenRewards = false; - return this; - } - - @Override - public RogueArea clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueArea)) { - return false; - } - RogueArea other = (RogueArea) o; - return bitField0_ == other.bitField0_ - && (!hasRogueStatus() || rogueStatus == other.rogueStatus) - && (!hasAreaId() || areaId == other.areaId) - && (!hasMapId() || mapId == other.mapId) - && (!hasRogueAreaStatus() || rogueAreaStatus == other.rogueAreaStatus) - && (!hasCurReachRoomNum() || curReachRoomNum == other.curReachRoomNum) - && (!hasHasTakenRewards() || hasTakenRewards == other.hasTakenRewards); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(rogueStatus); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(mapId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(rogueAreaStatus); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(curReachRoomNum); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeBoolNoTag(hasTakenRewards); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueStatus); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueAreaStatus); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curReachRoomNum); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueArea mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // rogueStatus - rogueStatus = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // areaId - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // mapId - mapId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // rogueAreaStatus - rogueAreaStatus = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // curReachRoomNum - curReachRoomNum = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // hasTakenRewards - hasTakenRewards = input.readBool(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueStatus, rogueStatus); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.areaId, areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mapId, mapId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.rogueAreaStatus, rogueAreaStatus); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.curReachRoomNum, curReachRoomNum); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.hasTakenRewards, hasTakenRewards); - } - output.endObject(); - } - - @Override - public RogueArea mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -836112788: - case 1898767863: { - if (input.isAtField(FieldNames.rogueStatus)) { - if (!input.trySkipNullValue()) { - rogueStatus = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { - if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 103663511: - case -1081377058: { - if (input.isAtField(FieldNames.mapId)) { - if (!input.trySkipNullValue()) { - mapId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -731414439: - case -1961715457: { - if (input.isAtField(FieldNames.rogueAreaStatus)) { - if (!input.trySkipNullValue()) { - rogueAreaStatus = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 888045080: - case 328196941: { - if (input.isAtField(FieldNames.curReachRoomNum)) { - if (!input.trySkipNullValue()) { - curReachRoomNum = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 222364695: - case -1980321081: { - if (input.isAtField(FieldNames.hasTakenRewards)) { - if (!input.trySkipNullValue()) { - hasTakenRewards = input.readBool(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueArea clone() { - return new RogueArea().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueArea parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueArea(), data).checkInitialized(); - } - - public static RogueArea parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueArea(), input).checkInitialized(); - } - - public static RogueArea parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueArea(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueArea messages - */ - public static MessageFactory getFactory() { - return RogueAreaFactory.INSTANCE; - } - - private enum RogueAreaFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueArea create() { - return RogueArea.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueStatus = FieldName.forField("rogueStatus", "rogue_status"); - - static final FieldName areaId = FieldName.forField("areaId", "area_id"); - - static final FieldName mapId = FieldName.forField("mapId", "map_id"); - - static final FieldName rogueAreaStatus = FieldName.forField("rogueAreaStatus", "rogue_area_status"); - - static final FieldName curReachRoomNum = FieldName.forField("curReachRoomNum", "cur_reach_room_num"); - - static final FieldName hasTakenRewards = FieldName.forField("hasTakenRewards", "has_taken_rewards"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java deleted file mode 100644 index 58bf4aa..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAreaStatusOuterClass.java +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueAreaStatusOuterClass { - /** - * Protobuf enum {@code RogueAreaStatus} - */ - public enum RogueAreaStatus implements ProtoEnum { - /** - * ROGUE_AREA_STATUS_LOCK = 0; - */ - ROGUE_AREA_STATUS_LOCK("ROGUE_AREA_STATUS_LOCK", 0), - - /** - * ROGUE_AREA_STATUS_UNLOCK = 1; - */ - ROGUE_AREA_STATUS_UNLOCK("ROGUE_AREA_STATUS_UNLOCK", 1), - - /** - * ROGUE_AREA_STATUS_FIRST_PASS = 2; - */ - ROGUE_AREA_STATUS_FIRST_PASS("ROGUE_AREA_STATUS_FIRST_PASS", 2), - - /** - * ROGUE_AREA_STATUS_CLOSE = 3; - */ - ROGUE_AREA_STATUS_CLOSE("ROGUE_AREA_STATUS_CLOSE", 3); - - /** - * ROGUE_AREA_STATUS_LOCK = 0; - */ - public static final int ROGUE_AREA_STATUS_LOCK_VALUE = 0; - - /** - * ROGUE_AREA_STATUS_UNLOCK = 1; - */ - public static final int ROGUE_AREA_STATUS_UNLOCK_VALUE = 1; - - /** - * ROGUE_AREA_STATUS_FIRST_PASS = 2; - */ - public static final int ROGUE_AREA_STATUS_FIRST_PASS_VALUE = 2; - - /** - * ROGUE_AREA_STATUS_CLOSE = 3; - */ - public static final int ROGUE_AREA_STATUS_CLOSE_VALUE = 3; - - private final String name; - - private final int number; - - private RogueAreaStatus(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueAreaStatusConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueAreaStatus forNumber(int value) { - return RogueAreaStatusConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueAreaStatus forNumberOr(int number, RogueAreaStatus other) { - RogueAreaStatus value = forNumber(number); - return value == null ? other : value; - } - - enum RogueAreaStatusConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueAreaStatus[] lookup = new RogueAreaStatus[4]; - - static { - lookup[0] = ROGUE_AREA_STATUS_LOCK; - lookup[1] = ROGUE_AREA_STATUS_UNLOCK; - lookup[2] = ROGUE_AREA_STATUS_FIRST_PASS; - lookup[3] = ROGUE_AREA_STATUS_CLOSE; - } - - @Override - public final RogueAreaStatus forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueAreaStatus forName(final CharSequence value) { - switch (value.length()) { - case 22: { - if (ProtoUtil.isEqual("ROGUE_AREA_STATUS_LOCK", value)) { - return ROGUE_AREA_STATUS_LOCK; - } - break; - } - case 23: { - if (ProtoUtil.isEqual("ROGUE_AREA_STATUS_CLOSE", value)) { - return ROGUE_AREA_STATUS_CLOSE; - } - break; - } - case 24: { - if (ProtoUtil.isEqual("ROGUE_AREA_STATUS_UNLOCK", value)) { - return ROGUE_AREA_STATUS_UNLOCK; - } - break; - } - case 28: { - if (ProtoUtil.isEqual("ROGUE_AREA_STATUS_FIRST_PASS", value)) { - return ROGUE_AREA_STATUS_FIRST_PASS; - } - break; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java deleted file mode 100644 index 1f5b12c..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAvatarInfoOuterClass.java +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class RogueAvatarInfoOuterClass { - /** - * Protobuf type {@code RogueAvatarInfo} - */ - public static final class RogueAvatarInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated uint32 base_avatar_id_list = 2; - */ - private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); - - private RogueAvatarInfo() { - } - - /** - * @return a new empty instance of {@code RogueAvatarInfo} - */ - public static RogueAvatarInfo newInstance() { - return new RogueAvatarInfo(); - } - - /** - * repeated uint32 base_avatar_id_list = 2; - * @return whether the baseAvatarIdList field is set - */ - public boolean hasBaseAvatarIdList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated uint32 base_avatar_id_list = 2; - * @return this - */ - public RogueAvatarInfo clearBaseAvatarIdList() { - bitField0_ &= ~0x00000001; - baseAvatarIdList.clear(); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBaseAvatarIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBaseAvatarIdList() { - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000001; - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 2; - * @param value the baseAvatarIdList to add - * @return this - */ - public RogueAvatarInfo addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000001; - baseAvatarIdList.add(value); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 2; - * @param values the baseAvatarIdList to add - * @return this - */ - public RogueAvatarInfo addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000001; - baseAvatarIdList.addAll(values); - return this; - } - - @Override - public RogueAvatarInfo copyFrom(final RogueAvatarInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - baseAvatarIdList.copyFrom(other.baseAvatarIdList); - } - return this; - } - - @Override - public RogueAvatarInfo mergeFrom(final RogueAvatarInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBaseAvatarIdList()) { - getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); - } - return this; - } - - @Override - public RogueAvatarInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - baseAvatarIdList.clear(); - return this; - } - - @Override - public RogueAvatarInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - baseAvatarIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAvatarInfo)) { - return false; - } - RogueAvatarInfo other = (RogueAvatarInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(baseAvatarIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAvatarInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 18: { - // baseAvatarIdList [packed=true] - input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 16: { - // baseAvatarIdList [packed=false] - tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000001; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); - } - output.endObject(); - } - - @Override - public RogueAvatarInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1212654461: - case 914628490: { - if (input.isAtField(FieldNames.baseAvatarIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAvatarInfo clone() { - return new RogueAvatarInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAvatarInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAvatarInfo(), data).checkInitialized(); - } - - public static RogueAvatarInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAvatarInfo(), input).checkInitialized(); - } - - public static RogueAvatarInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAvatarInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAvatarInfo messages - */ - public static MessageFactory getFactory() { - return RogueAvatarInfoFactory.INSTANCE; - } - - private enum RogueAvatarInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAvatarInfo create() { - return RogueAvatarInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueAvatarReviveCostOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueAvatarReviveCostOuterClass.java deleted file mode 100644 index 152c314..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueAvatarReviveCostOuterClass.java +++ /dev/null @@ -1,281 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueAvatarReviveCostOuterClass { - /** - * Protobuf type {@code RogueAvatarReviveCost} - */ - public static final class RogueAvatarReviveCost extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ItemCostList revive_cost = 6; - */ - private final ItemCostListOuterClass.ItemCostList reviveCost = ItemCostListOuterClass.ItemCostList.newInstance(); - - private RogueAvatarReviveCost() { - } - - /** - * @return a new empty instance of {@code RogueAvatarReviveCost} - */ - public static RogueAvatarReviveCost newInstance() { - return new RogueAvatarReviveCost(); - } - - /** - * optional .ItemCostList revive_cost = 6; - * @return whether the reviveCost field is set - */ - public boolean hasReviveCost() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ItemCostList revive_cost = 6; - * @return this - */ - public RogueAvatarReviveCost clearReviveCost() { - bitField0_ &= ~0x00000001; - reviveCost.clear(); - return this; - } - - /** - * optional .ItemCostList revive_cost = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableReviveCost()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemCostListOuterClass.ItemCostList getReviveCost() { - return reviveCost; - } - - /** - * optional .ItemCostList revive_cost = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemCostListOuterClass.ItemCostList getMutableReviveCost() { - bitField0_ |= 0x00000001; - return reviveCost; - } - - /** - * optional .ItemCostList revive_cost = 6; - * @param value the reviveCost to set - * @return this - */ - public RogueAvatarReviveCost setReviveCost(final ItemCostListOuterClass.ItemCostList value) { - bitField0_ |= 0x00000001; - reviveCost.copyFrom(value); - return this; - } - - @Override - public RogueAvatarReviveCost copyFrom(final RogueAvatarReviveCost other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - reviveCost.copyFrom(other.reviveCost); - } - return this; - } - - @Override - public RogueAvatarReviveCost mergeFrom(final RogueAvatarReviveCost other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasReviveCost()) { - getMutableReviveCost().mergeFrom(other.reviveCost); - } - return this; - } - - @Override - public RogueAvatarReviveCost clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - reviveCost.clear(); - return this; - } - - @Override - public RogueAvatarReviveCost clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - reviveCost.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueAvatarReviveCost)) { - return false; - } - RogueAvatarReviveCost other = (RogueAvatarReviveCost) o; - return bitField0_ == other.bitField0_ - && (!hasReviveCost() || reviveCost.equals(other.reviveCost)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(reviveCost); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(reviveCost); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueAvatarReviveCost mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 50: { - // reviveCost - input.readMessage(reviveCost); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.reviveCost, reviveCost); - } - output.endObject(); - } - - @Override - public RogueAvatarReviveCost mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1426560318: - case -1248199561: { - if (input.isAtField(FieldNames.reviveCost)) { - if (!input.trySkipNullValue()) { - input.readMessage(reviveCost); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueAvatarReviveCost clone() { - return new RogueAvatarReviveCost().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueAvatarReviveCost parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueAvatarReviveCost(), data).checkInitialized(); - } - - public static RogueAvatarReviveCost parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAvatarReviveCost(), input).checkInitialized(); - } - - public static RogueAvatarReviveCost parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueAvatarReviveCost(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueAvatarReviveCost messages - */ - public static MessageFactory getFactory() { - return RogueAvatarReviveCostFactory.INSTANCE; - } - - private enum RogueAvatarReviveCostFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueAvatarReviveCost create() { - return RogueAvatarReviveCost.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName reviveCost = FieldName.forField("reviveCost", "revive_cost"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java deleted file mode 100644 index 70d9bb2..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueBonusSelectOuterClass.java +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueBonusSelectOuterClass { - /** - * Protobuf type {@code RogueBonusSelect} - */ - public static final class RogueBonusSelect extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - private RogueBonusSelect() { - } - - /** - * @return a new empty instance of {@code RogueBonusSelect} - */ - public static RogueBonusSelect newInstance() { - return new RogueBonusSelect(); - } - - @Override - public RogueBonusSelect copyFrom(final RogueBonusSelect other) { - cachedSize = other.cachedSize; - return this; - } - - @Override - public RogueBonusSelect mergeFrom(final RogueBonusSelect other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - return this; - } - - @Override - public RogueBonusSelect clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - return this; - } - - @Override - public RogueBonusSelect clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueBonusSelect)) { - return false; - } - RogueBonusSelect other = (RogueBonusSelect) o; - return true; - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - } - - @Override - protected int computeSerializedSize() { - int size = 0; - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueBonusSelect mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - output.endObject(); - } - - @Override - public RogueBonusSelect mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueBonusSelect clone() { - return new RogueBonusSelect().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueBonusSelect parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBonusSelect(), data).checkInitialized(); - } - - public static RogueBonusSelect parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBonusSelect(), input).checkInitialized(); - } - - public static RogueBonusSelect parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBonusSelect(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueBonusSelect messages - */ - public static MessageFactory getFactory() { - return RogueBonusSelectFactory.INSTANCE; - } - - private enum RogueBonusSelectFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueBonusSelect create() { - return RogueBonusSelect.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java deleted file mode 100644 index 22c5f81..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffDataOuterClass.java +++ /dev/null @@ -1,339 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueBuffDataOuterClass { - /** - * Protobuf type {@code RogueBuffData} - */ - public static final class RogueBuffData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 level = 8; - */ - private int level; - - /** - * optional uint32 buff_id = 11; - */ - private int buffId; - - private RogueBuffData() { - } - - /** - * @return a new empty instance of {@code RogueBuffData} - */ - public static RogueBuffData newInstance() { - return new RogueBuffData(); - } - - /** - * optional uint32 level = 8; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 level = 8; - * @return this - */ - public RogueBuffData clearLevel() { - bitField0_ &= ~0x00000001; - level = 0; - return this; - } - - /** - * optional uint32 level = 8; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 8; - * @param value the level to set - * @return this - */ - public RogueBuffData setLevel(final int value) { - bitField0_ |= 0x00000001; - level = value; - return this; - } - - /** - * optional uint32 buff_id = 11; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 buff_id = 11; - * @return this - */ - public RogueBuffData clearBuffId() { - bitField0_ &= ~0x00000002; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 11; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 11; - * @param value the buffId to set - * @return this - */ - public RogueBuffData setBuffId(final int value) { - bitField0_ |= 0x00000002; - buffId = value; - return this; - } - - @Override - public RogueBuffData copyFrom(final RogueBuffData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - level = other.level; - buffId = other.buffId; - } - return this; - } - - @Override - public RogueBuffData mergeFrom(final RogueBuffData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasLevel()) { - setLevel(other.level); - } - if (other.hasBuffId()) { - setBuffId(other.buffId); - } - return this; - } - - @Override - public RogueBuffData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - level = 0; - buffId = 0; - return this; - } - - @Override - public RogueBuffData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueBuffData)) { - return false; - } - RogueBuffData other = (RogueBuffData) o; - return bitField0_ == other.bitField0_ - && (!hasLevel() || level == other.level) - && (!hasBuffId() || buffId == other.buffId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(level); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(buffId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueBuffData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 64: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // buffId - buffId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.level, level); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); - } - output.endObject(); - } - - @Override - public RogueBuffData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 102865796: { - if (input.isAtField(FieldNames.level)) { - if (!input.trySkipNullValue()) { - level = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { - if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueBuffData clone() { - return new RogueBuffData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueBuffData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffData(), data).checkInitialized(); - } - - public static RogueBuffData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffData(), input).checkInitialized(); - } - - public static RogueBuffData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffData(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueBuffData messages - */ - public static MessageFactory getFactory() { - return RogueBuffDataFactory.INSTANCE; - } - - private enum RogueBuffDataFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueBuffData create() { - return RogueBuffData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName level = FieldName.forField("level"); - - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoOuterClass.java deleted file mode 100644 index d12f3a6..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffEnhanceInfoOuterClass.java +++ /dev/null @@ -1,444 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueBuffEnhanceInfoOuterClass { - /** - * Protobuf type {@code RogueBuffEnhanceInfo} - */ - public static final class RogueBuffEnhanceInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional float unk_float = 8; - */ - private float unkFloat; - - /** - * optional uint32 buff_id = 5; - */ - private int buffId; - - /** - * optional .ItemCostList item_cost_list = 7; - */ - private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); - - private RogueBuffEnhanceInfo() { - } - - /** - * @return a new empty instance of {@code RogueBuffEnhanceInfo} - */ - public static RogueBuffEnhanceInfo newInstance() { - return new RogueBuffEnhanceInfo(); - } - - /** - * optional float unk_float = 8; - * @return whether the unkFloat field is set - */ - public boolean hasUnkFloat() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional float unk_float = 8; - * @return this - */ - public RogueBuffEnhanceInfo clearUnkFloat() { - bitField0_ &= ~0x00000001; - unkFloat = 0F; - return this; - } - - /** - * optional float unk_float = 8; - * @return the unkFloat - */ - public float getUnkFloat() { - return unkFloat; - } - - /** - * optional float unk_float = 8; - * @param value the unkFloat to set - * @return this - */ - public RogueBuffEnhanceInfo setUnkFloat(final float value) { - bitField0_ |= 0x00000001; - unkFloat = value; - return this; - } - - /** - * optional uint32 buff_id = 5; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 buff_id = 5; - * @return this - */ - public RogueBuffEnhanceInfo clearBuffId() { - bitField0_ &= ~0x00000002; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 5; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 5; - * @param value the buffId to set - * @return this - */ - public RogueBuffEnhanceInfo setBuffId(final int value) { - bitField0_ |= 0x00000002; - buffId = value; - return this; - } - - /** - * optional .ItemCostList item_cost_list = 7; - * @return whether the itemCostList field is set - */ - public boolean hasItemCostList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .ItemCostList item_cost_list = 7; - * @return this - */ - public RogueBuffEnhanceInfo clearItemCostList() { - bitField0_ &= ~0x00000004; - itemCostList.clear(); - return this; - } - - /** - * optional .ItemCostList item_cost_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableItemCostList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemCostListOuterClass.ItemCostList getItemCostList() { - return itemCostList; - } - - /** - * optional .ItemCostList item_cost_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemCostListOuterClass.ItemCostList getMutableItemCostList() { - bitField0_ |= 0x00000004; - return itemCostList; - } - - /** - * optional .ItemCostList item_cost_list = 7; - * @param value the itemCostList to set - * @return this - */ - public RogueBuffEnhanceInfo setItemCostList(final ItemCostListOuterClass.ItemCostList value) { - bitField0_ |= 0x00000004; - itemCostList.copyFrom(value); - return this; - } - - @Override - public RogueBuffEnhanceInfo copyFrom(final RogueBuffEnhanceInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - unkFloat = other.unkFloat; - buffId = other.buffId; - itemCostList.copyFrom(other.itemCostList); - } - return this; - } - - @Override - public RogueBuffEnhanceInfo mergeFrom(final RogueBuffEnhanceInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUnkFloat()) { - setUnkFloat(other.unkFloat); - } - if (other.hasBuffId()) { - setBuffId(other.buffId); - } - if (other.hasItemCostList()) { - getMutableItemCostList().mergeFrom(other.itemCostList); - } - return this; - } - - @Override - public RogueBuffEnhanceInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unkFloat = 0F; - buffId = 0; - itemCostList.clear(); - return this; - } - - @Override - public RogueBuffEnhanceInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - itemCostList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueBuffEnhanceInfo)) { - return false; - } - RogueBuffEnhanceInfo other = (RogueBuffEnhanceInfo) o; - return bitField0_ == other.bitField0_ - && (!hasUnkFloat() || ProtoUtil.isEqual(unkFloat, other.unkFloat)) - && (!hasBuffId() || buffId == other.buffId) - && (!hasItemCostList() || itemCostList.equals(other.itemCostList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 69); - output.writeFloatNoTag(unkFloat); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(buffId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(itemCostList); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 5; - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(itemCostList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueBuffEnhanceInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 69: { - // unkFloat - unkFloat = input.readFloat(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // buffId - buffId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // itemCostList - input.readMessage(itemCostList); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeFloat(FieldNames.unkFloat, unkFloat); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.itemCostList, itemCostList); - } - output.endObject(); - } - - @Override - public RogueBuffEnhanceInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -277171062: - case 707742927: { - if (input.isAtField(FieldNames.unkFloat)) { - if (!input.trySkipNullValue()) { - unkFloat = input.readFloat(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { - if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 203506238: - case -1124889692: { - if (input.isAtField(FieldNames.itemCostList)) { - if (!input.trySkipNullValue()) { - input.readMessage(itemCostList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueBuffEnhanceInfo clone() { - return new RogueBuffEnhanceInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueBuffEnhanceInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffEnhanceInfo(), data).checkInitialized(); - } - - public static RogueBuffEnhanceInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffEnhanceInfo(), input).checkInitialized(); - } - - public static RogueBuffEnhanceInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffEnhanceInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueBuffEnhanceInfo messages - */ - public static MessageFactory getFactory() { - return RogueBuffEnhanceInfoFactory.INSTANCE; - } - - private enum RogueBuffEnhanceInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueBuffEnhanceInfo create() { - return RogueBuffEnhanceInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName unkFloat = FieldName.forField("unkFloat", "unk_float"); - - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - - static final FieldName itemCostList = FieldName.forField("itemCostList", "item_cost_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java deleted file mode 100644 index 7293fac..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffInfoOuterClass.java +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueBuffInfoOuterClass { - /** - * Protobuf type {@code RogueBuffInfo} - */ - public static final class RogueBuffInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueBuff maze_buff_list = 8; - */ - private final RepeatedMessage mazeBuffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); - - private RogueBuffInfo() { - } - - /** - * @return a new empty instance of {@code RogueBuffInfo} - */ - public static RogueBuffInfo newInstance() { - return new RogueBuffInfo(); - } - - /** - * repeated .RogueBuff maze_buff_list = 8; - * @return whether the mazeBuffList field is set - */ - public boolean hasMazeBuffList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueBuff maze_buff_list = 8; - * @return this - */ - public RogueBuffInfo clearMazeBuffList() { - bitField0_ &= ~0x00000001; - mazeBuffList.clear(); - return this; - } - - /** - * repeated .RogueBuff maze_buff_list = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMazeBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazeBuffList() { - return mazeBuffList; - } - - /** - * repeated .RogueBuff maze_buff_list = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazeBuffList() { - bitField0_ |= 0x00000001; - return mazeBuffList; - } - - /** - * repeated .RogueBuff maze_buff_list = 8; - * @param value the mazeBuffList to add - * @return this - */ - public RogueBuffInfo addMazeBuffList(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000001; - mazeBuffList.add(value); - return this; - } - - /** - * repeated .RogueBuff maze_buff_list = 8; - * @param values the mazeBuffList to add - * @return this - */ - public RogueBuffInfo addAllMazeBuffList(final RogueBuffOuterClass.RogueBuff... values) { - bitField0_ |= 0x00000001; - mazeBuffList.addAll(values); - return this; - } - - @Override - public RogueBuffInfo copyFrom(final RogueBuffInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - mazeBuffList.copyFrom(other.mazeBuffList); - } - return this; - } - - @Override - public RogueBuffInfo mergeFrom(final RogueBuffInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMazeBuffList()) { - getMutableMazeBuffList().addAll(other.mazeBuffList); - } - return this; - } - - @Override - public RogueBuffInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mazeBuffList.clear(); - return this; - } - - @Override - public RogueBuffInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mazeBuffList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueBuffInfo)) { - return false; - } - RogueBuffInfo other = (RogueBuffInfo) o; - return bitField0_ == other.bitField0_ - && (!hasMazeBuffList() || mazeBuffList.equals(other.mazeBuffList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < mazeBuffList.length(); i++) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(mazeBuffList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * mazeBuffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeBuffList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueBuffInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 66: { - // mazeBuffList - tag = input.readRepeatedMessage(mazeBuffList, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.mazeBuffList, mazeBuffList); - } - output.endObject(); - } - - @Override - public RogueBuffInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1147228272: - case -1634995062: { - if (input.isAtField(FieldNames.mazeBuffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeBuffList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueBuffInfo clone() { - return new RogueBuffInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueBuffInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffInfo(), data).checkInitialized(); - } - - public static RogueBuffInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffInfo(), input).checkInitialized(); - } - - public static RogueBuffInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueBuffInfo messages - */ - public static MessageFactory getFactory() { - return RogueBuffInfoFactory.INSTANCE; - } - - private enum RogueBuffInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueBuffInfo create() { - return RogueBuffInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName mazeBuffList = FieldName.forField("mazeBuffList", "maze_buff_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java deleted file mode 100644 index fa9f34b..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffSelectInfoOuterClass.java +++ /dev/null @@ -1,1138 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueBuffSelectInfoOuterClass { - /** - * Protobuf type {@code RogueBuffSelectInfo} - */ - public static final class RogueBuffSelectInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 select_buff_source_hint = 1; - */ - private int selectBuffSourceHint; - - /** - * optional uint32 select_buff_source_total_count = 2; - */ - private int selectBuffSourceTotalCount; - - /** - *
-     *  bool show_handbook_hint = 8; removed???
-     * 
- * - * optional uint32 roll_buff_times = 7; - */ - private int rollBuffTimes; - - /** - * optional uint32 roll_buff_max_times = 10; - */ - private int rollBuffMaxTimes; - - /** - * optional uint32 select_buff_source_cur_count = 15; - */ - private int selectBuffSourceCurCount; - - /** - * optional .RogueCommonBuffSelectSource source = 6; - */ - private int source; - - /** - * optional bool can_roll = 13; - */ - private boolean canRoll; - - /** - * optional .ItemCostList roll_buffs_cost = 9; - */ - private final ItemCostListOuterClass.ItemCostList rollBuffsCost = ItemCostListOuterClass.ItemCostList.newInstance(); - - /** - * repeated uint32 select_first_buff_list = 5; - */ - private final RepeatedInt selectFirstBuffList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .RogueBuff maze_buff_list = 12; - */ - private final RepeatedMessage mazeBuffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); - - private RogueBuffSelectInfo() { - } - - /** - * @return a new empty instance of {@code RogueBuffSelectInfo} - */ - public static RogueBuffSelectInfo newInstance() { - return new RogueBuffSelectInfo(); - } - - /** - * optional uint32 select_buff_source_hint = 1; - * @return whether the selectBuffSourceHint field is set - */ - public boolean hasSelectBuffSourceHint() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 select_buff_source_hint = 1; - * @return this - */ - public RogueBuffSelectInfo clearSelectBuffSourceHint() { - bitField0_ &= ~0x00000001; - selectBuffSourceHint = 0; - return this; - } - - /** - * optional uint32 select_buff_source_hint = 1; - * @return the selectBuffSourceHint - */ - public int getSelectBuffSourceHint() { - return selectBuffSourceHint; - } - - /** - * optional uint32 select_buff_source_hint = 1; - * @param value the selectBuffSourceHint to set - * @return this - */ - public RogueBuffSelectInfo setSelectBuffSourceHint(final int value) { - bitField0_ |= 0x00000001; - selectBuffSourceHint = value; - return this; - } - - /** - * optional uint32 select_buff_source_total_count = 2; - * @return whether the selectBuffSourceTotalCount field is set - */ - public boolean hasSelectBuffSourceTotalCount() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 select_buff_source_total_count = 2; - * @return this - */ - public RogueBuffSelectInfo clearSelectBuffSourceTotalCount() { - bitField0_ &= ~0x00000002; - selectBuffSourceTotalCount = 0; - return this; - } - - /** - * optional uint32 select_buff_source_total_count = 2; - * @return the selectBuffSourceTotalCount - */ - public int getSelectBuffSourceTotalCount() { - return selectBuffSourceTotalCount; - } - - /** - * optional uint32 select_buff_source_total_count = 2; - * @param value the selectBuffSourceTotalCount to set - * @return this - */ - public RogueBuffSelectInfo setSelectBuffSourceTotalCount(final int value) { - bitField0_ |= 0x00000002; - selectBuffSourceTotalCount = value; - return this; - } - - /** - *
-     *  bool show_handbook_hint = 8; removed???
-     * 
- * - * optional uint32 roll_buff_times = 7; - * @return whether the rollBuffTimes field is set - */ - public boolean hasRollBuffTimes() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  bool show_handbook_hint = 8; removed???
-     * 
- * - * optional uint32 roll_buff_times = 7; - * @return this - */ - public RogueBuffSelectInfo clearRollBuffTimes() { - bitField0_ &= ~0x00000004; - rollBuffTimes = 0; - return this; - } - - /** - *
-     *  bool show_handbook_hint = 8; removed???
-     * 
- * - * optional uint32 roll_buff_times = 7; - * @return the rollBuffTimes - */ - public int getRollBuffTimes() { - return rollBuffTimes; - } - - /** - *
-     *  bool show_handbook_hint = 8; removed???
-     * 
- * - * optional uint32 roll_buff_times = 7; - * @param value the rollBuffTimes to set - * @return this - */ - public RogueBuffSelectInfo setRollBuffTimes(final int value) { - bitField0_ |= 0x00000004; - rollBuffTimes = value; - return this; - } - - /** - * optional uint32 roll_buff_max_times = 10; - * @return whether the rollBuffMaxTimes field is set - */ - public boolean hasRollBuffMaxTimes() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 roll_buff_max_times = 10; - * @return this - */ - public RogueBuffSelectInfo clearRollBuffMaxTimes() { - bitField0_ &= ~0x00000008; - rollBuffMaxTimes = 0; - return this; - } - - /** - * optional uint32 roll_buff_max_times = 10; - * @return the rollBuffMaxTimes - */ - public int getRollBuffMaxTimes() { - return rollBuffMaxTimes; - } - - /** - * optional uint32 roll_buff_max_times = 10; - * @param value the rollBuffMaxTimes to set - * @return this - */ - public RogueBuffSelectInfo setRollBuffMaxTimes(final int value) { - bitField0_ |= 0x00000008; - rollBuffMaxTimes = value; - return this; - } - - /** - * optional uint32 select_buff_source_cur_count = 15; - * @return whether the selectBuffSourceCurCount field is set - */ - public boolean hasSelectBuffSourceCurCount() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 select_buff_source_cur_count = 15; - * @return this - */ - public RogueBuffSelectInfo clearSelectBuffSourceCurCount() { - bitField0_ &= ~0x00000010; - selectBuffSourceCurCount = 0; - return this; - } - - /** - * optional uint32 select_buff_source_cur_count = 15; - * @return the selectBuffSourceCurCount - */ - public int getSelectBuffSourceCurCount() { - return selectBuffSourceCurCount; - } - - /** - * optional uint32 select_buff_source_cur_count = 15; - * @param value the selectBuffSourceCurCount to set - * @return this - */ - public RogueBuffSelectInfo setSelectBuffSourceCurCount(final int value) { - bitField0_ |= 0x00000010; - selectBuffSourceCurCount = value; - return this; - } - - /** - * optional .RogueCommonBuffSelectSource source = 6; - * @return whether the source field is set - */ - public boolean hasSource() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .RogueCommonBuffSelectSource source = 6; - * @return this - */ - public RogueBuffSelectInfo clearSource() { - bitField0_ &= ~0x00000020; - source = 0; - return this; - } - - /** - * optional .RogueCommonBuffSelectSource source = 6; - * @return the source - */ - public RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource getSource() { - return RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.forNumber(source); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueBuffSelectInfo#getSource()}.getNumber(). - * - * @return numeric wire representation - */ - public int getSourceValue() { - return source; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource}. Setting an invalid value - * can cause {@link RogueBuffSelectInfo#getSource()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueBuffSelectInfo setSourceValue(final int value) { - bitField0_ |= 0x00000020; - source = value; - return this; - } - - /** - * optional .RogueCommonBuffSelectSource source = 6; - * @param value the source to set - * @return this - */ - public RogueBuffSelectInfo setSource( - final RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource value) { - bitField0_ |= 0x00000020; - source = value.getNumber(); - return this; - } - - /** - * optional bool can_roll = 13; - * @return whether the canRoll field is set - */ - public boolean hasCanRoll() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional bool can_roll = 13; - * @return this - */ - public RogueBuffSelectInfo clearCanRoll() { - bitField0_ &= ~0x00000040; - canRoll = false; - return this; - } - - /** - * optional bool can_roll = 13; - * @return the canRoll - */ - public boolean getCanRoll() { - return canRoll; - } - - /** - * optional bool can_roll = 13; - * @param value the canRoll to set - * @return this - */ - public RogueBuffSelectInfo setCanRoll(final boolean value) { - bitField0_ |= 0x00000040; - canRoll = value; - return this; - } - - /** - * optional .ItemCostList roll_buffs_cost = 9; - * @return whether the rollBuffsCost field is set - */ - public boolean hasRollBuffsCost() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .ItemCostList roll_buffs_cost = 9; - * @return this - */ - public RogueBuffSelectInfo clearRollBuffsCost() { - bitField0_ &= ~0x00000080; - rollBuffsCost.clear(); - return this; - } - - /** - * optional .ItemCostList roll_buffs_cost = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRollBuffsCost()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemCostListOuterClass.ItemCostList getRollBuffsCost() { - return rollBuffsCost; - } - - /** - * optional .ItemCostList roll_buffs_cost = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemCostListOuterClass.ItemCostList getMutableRollBuffsCost() { - bitField0_ |= 0x00000080; - return rollBuffsCost; - } - - /** - * optional .ItemCostList roll_buffs_cost = 9; - * @param value the rollBuffsCost to set - * @return this - */ - public RogueBuffSelectInfo setRollBuffsCost(final ItemCostListOuterClass.ItemCostList value) { - bitField0_ |= 0x00000080; - rollBuffsCost.copyFrom(value); - return this; - } - - /** - * repeated uint32 select_first_buff_list = 5; - * @return whether the selectFirstBuffList field is set - */ - public boolean hasSelectFirstBuffList() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * repeated uint32 select_first_buff_list = 5; - * @return this - */ - public RogueBuffSelectInfo clearSelectFirstBuffList() { - bitField0_ &= ~0x00000100; - selectFirstBuffList.clear(); - return this; - } - - /** - * repeated uint32 select_first_buff_list = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableSelectFirstBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getSelectFirstBuffList() { - return selectFirstBuffList; - } - - /** - * repeated uint32 select_first_buff_list = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableSelectFirstBuffList() { - bitField0_ |= 0x00000100; - return selectFirstBuffList; - } - - /** - * repeated uint32 select_first_buff_list = 5; - * @param value the selectFirstBuffList to add - * @return this - */ - public RogueBuffSelectInfo addSelectFirstBuffList(final int value) { - bitField0_ |= 0x00000100; - selectFirstBuffList.add(value); - return this; - } - - /** - * repeated uint32 select_first_buff_list = 5; - * @param values the selectFirstBuffList to add - * @return this - */ - public RogueBuffSelectInfo addAllSelectFirstBuffList(final int... values) { - bitField0_ |= 0x00000100; - selectFirstBuffList.addAll(values); - return this; - } - - /** - * repeated .RogueBuff maze_buff_list = 12; - * @return whether the mazeBuffList field is set - */ - public boolean hasMazeBuffList() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * repeated .RogueBuff maze_buff_list = 12; - * @return this - */ - public RogueBuffSelectInfo clearMazeBuffList() { - bitField0_ &= ~0x00000200; - mazeBuffList.clear(); - return this; - } - - /** - * repeated .RogueBuff maze_buff_list = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMazeBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazeBuffList() { - return mazeBuffList; - } - - /** - * repeated .RogueBuff maze_buff_list = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazeBuffList() { - bitField0_ |= 0x00000200; - return mazeBuffList; - } - - /** - * repeated .RogueBuff maze_buff_list = 12; - * @param value the mazeBuffList to add - * @return this - */ - public RogueBuffSelectInfo addMazeBuffList(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000200; - mazeBuffList.add(value); - return this; - } - - /** - * repeated .RogueBuff maze_buff_list = 12; - * @param values the mazeBuffList to add - * @return this - */ - public RogueBuffSelectInfo addAllMazeBuffList(final RogueBuffOuterClass.RogueBuff... values) { - bitField0_ |= 0x00000200; - mazeBuffList.addAll(values); - return this; - } - - @Override - public RogueBuffSelectInfo copyFrom(final RogueBuffSelectInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - selectBuffSourceHint = other.selectBuffSourceHint; - selectBuffSourceTotalCount = other.selectBuffSourceTotalCount; - rollBuffTimes = other.rollBuffTimes; - rollBuffMaxTimes = other.rollBuffMaxTimes; - selectBuffSourceCurCount = other.selectBuffSourceCurCount; - source = other.source; - canRoll = other.canRoll; - rollBuffsCost.copyFrom(other.rollBuffsCost); - selectFirstBuffList.copyFrom(other.selectFirstBuffList); - mazeBuffList.copyFrom(other.mazeBuffList); - } - return this; - } - - @Override - public RogueBuffSelectInfo mergeFrom(final RogueBuffSelectInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSelectBuffSourceHint()) { - setSelectBuffSourceHint(other.selectBuffSourceHint); - } - if (other.hasSelectBuffSourceTotalCount()) { - setSelectBuffSourceTotalCount(other.selectBuffSourceTotalCount); - } - if (other.hasRollBuffTimes()) { - setRollBuffTimes(other.rollBuffTimes); - } - if (other.hasRollBuffMaxTimes()) { - setRollBuffMaxTimes(other.rollBuffMaxTimes); - } - if (other.hasSelectBuffSourceCurCount()) { - setSelectBuffSourceCurCount(other.selectBuffSourceCurCount); - } - if (other.hasSource()) { - setSourceValue(other.source); - } - if (other.hasCanRoll()) { - setCanRoll(other.canRoll); - } - if (other.hasRollBuffsCost()) { - getMutableRollBuffsCost().mergeFrom(other.rollBuffsCost); - } - if (other.hasSelectFirstBuffList()) { - getMutableSelectFirstBuffList().addAll(other.selectFirstBuffList); - } - if (other.hasMazeBuffList()) { - getMutableMazeBuffList().addAll(other.mazeBuffList); - } - return this; - } - - @Override - public RogueBuffSelectInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - selectBuffSourceHint = 0; - selectBuffSourceTotalCount = 0; - rollBuffTimes = 0; - rollBuffMaxTimes = 0; - selectBuffSourceCurCount = 0; - source = 0; - canRoll = false; - rollBuffsCost.clear(); - selectFirstBuffList.clear(); - mazeBuffList.clear(); - return this; - } - - @Override - public RogueBuffSelectInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rollBuffsCost.clearQuick(); - selectFirstBuffList.clear(); - mazeBuffList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueBuffSelectInfo)) { - return false; - } - RogueBuffSelectInfo other = (RogueBuffSelectInfo) o; - return bitField0_ == other.bitField0_ - && (!hasSelectBuffSourceHint() || selectBuffSourceHint == other.selectBuffSourceHint) - && (!hasSelectBuffSourceTotalCount() || selectBuffSourceTotalCount == other.selectBuffSourceTotalCount) - && (!hasRollBuffTimes() || rollBuffTimes == other.rollBuffTimes) - && (!hasRollBuffMaxTimes() || rollBuffMaxTimes == other.rollBuffMaxTimes) - && (!hasSelectBuffSourceCurCount() || selectBuffSourceCurCount == other.selectBuffSourceCurCount) - && (!hasSource() || source == other.source) - && (!hasCanRoll() || canRoll == other.canRoll) - && (!hasRollBuffsCost() || rollBuffsCost.equals(other.rollBuffsCost)) - && (!hasSelectFirstBuffList() || selectFirstBuffList.equals(other.selectFirstBuffList)) - && (!hasMazeBuffList() || mazeBuffList.equals(other.mazeBuffList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(selectBuffSourceHint); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(selectBuffSourceTotalCount); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rollBuffTimes); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(rollBuffMaxTimes); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(selectBuffSourceCurCount); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 48); - output.writeEnumNoTag(source); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 104); - output.writeBoolNoTag(canRoll); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rollBuffsCost); - } - if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < selectFirstBuffList.length(); i++) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(selectFirstBuffList.array()[i]); - } - } - if ((bitField0_ & 0x00000200) != 0) { - for (int i = 0; i < mazeBuffList.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(mazeBuffList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceHint); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceTotalCount); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffTimes); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffMaxTimes); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceCurCount); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(source); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rollBuffsCost); - } - if ((bitField0_ & 0x00000100) != 0) { - size += (1 * selectFirstBuffList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(selectFirstBuffList); - } - if ((bitField0_ & 0x00000200) != 0) { - size += (1 * mazeBuffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeBuffList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueBuffSelectInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // selectBuffSourceHint - selectBuffSourceHint = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // selectBuffSourceTotalCount - selectBuffSourceTotalCount = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // rollBuffTimes - rollBuffTimes = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // rollBuffMaxTimes - rollBuffMaxTimes = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // selectBuffSourceCurCount - selectBuffSourceCurCount = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // source - final int value = input.readInt32(); - if (RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.forNumber(value) != null) { - source = value; - bitField0_ |= 0x00000020; - } - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // canRoll - canRoll = input.readBool(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rollBuffsCost - input.readMessage(rollBuffsCost); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // selectFirstBuffList [packed=true] - input.readPackedUInt32(selectFirstBuffList, tag); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // mazeBuffList - tag = input.readRepeatedMessage(mazeBuffList, tag); - bitField0_ |= 0x00000200; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 40: { - // selectFirstBuffList [packed=false] - tag = input.readRepeatedUInt32(selectFirstBuffList, tag); - bitField0_ |= 0x00000100; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.selectBuffSourceHint, selectBuffSourceHint); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.selectBuffSourceTotalCount, selectBuffSourceTotalCount); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rollBuffTimes, rollBuffTimes); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.rollBuffMaxTimes, rollBuffMaxTimes); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.selectBuffSourceCurCount, selectBuffSourceCurCount); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeEnum(FieldNames.source, source, RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.converter()); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeBool(FieldNames.canRoll, canRoll); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.rollBuffsCost, rollBuffsCost); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedUInt32(FieldNames.selectFirstBuffList, selectFirstBuffList); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedMessage(FieldNames.mazeBuffList, mazeBuffList); - } - output.endObject(); - } - - @Override - public RogueBuffSelectInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1160450543: - case -335538398: { - if (input.isAtField(FieldNames.selectBuffSourceHint)) { - if (!input.trySkipNullValue()) { - selectBuffSourceHint = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 94416949: - case 204078937: { - if (input.isAtField(FieldNames.selectBuffSourceTotalCount)) { - if (!input.trySkipNullValue()) { - selectBuffSourceTotalCount = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -436216138: - case 2038334812: { - if (input.isAtField(FieldNames.rollBuffTimes)) { - if (!input.trySkipNullValue()) { - rollBuffTimes = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -564731182: - case -792528959: { - if (input.isAtField(FieldNames.rollBuffMaxTimes)) { - if (!input.trySkipNullValue()) { - rollBuffMaxTimes = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1017675463: - case -1138919787: { - if (input.isAtField(FieldNames.selectBuffSourceCurCount)) { - if (!input.trySkipNullValue()) { - selectBuffSourceCurCount = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -896505829: { - if (input.isAtField(FieldNames.source)) { - if (!input.trySkipNullValue()) { - final RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource value = input.readEnum(RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.converter()); - if (value != null) { - source = value.getNumber(); - bitField0_ |= 0x00000020; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 549719149: - case -126477428: { - if (input.isAtField(FieldNames.canRoll)) { - if (!input.trySkipNullValue()) { - canRoll = input.readBool(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -408716688: - case -1703619794: { - if (input.isAtField(FieldNames.rollBuffsCost)) { - if (!input.trySkipNullValue()) { - input.readMessage(rollBuffsCost); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1380355781: - case -936470280: { - if (input.isAtField(FieldNames.selectFirstBuffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(selectFirstBuffList); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1147228272: - case -1634995062: { - if (input.isAtField(FieldNames.mazeBuffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeBuffList); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueBuffSelectInfo clone() { - return new RogueBuffSelectInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueBuffSelectInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffSelectInfo(), data).checkInitialized(); - } - - public static RogueBuffSelectInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffSelectInfo(), input).checkInitialized(); - } - - public static RogueBuffSelectInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffSelectInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueBuffSelectInfo messages - */ - public static MessageFactory getFactory() { - return RogueBuffSelectInfoFactory.INSTANCE; - } - - private enum RogueBuffSelectInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueBuffSelectInfo create() { - return RogueBuffSelectInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName selectBuffSourceHint = FieldName.forField("selectBuffSourceHint", "select_buff_source_hint"); - - static final FieldName selectBuffSourceTotalCount = FieldName.forField("selectBuffSourceTotalCount", "select_buff_source_total_count"); - - static final FieldName rollBuffTimes = FieldName.forField("rollBuffTimes", "roll_buff_times"); - - static final FieldName rollBuffMaxTimes = FieldName.forField("rollBuffMaxTimes", "roll_buff_max_times"); - - static final FieldName selectBuffSourceCurCount = FieldName.forField("selectBuffSourceCurCount", "select_buff_source_cur_count"); - - static final FieldName source = FieldName.forField("source"); - - static final FieldName canRoll = FieldName.forField("canRoll", "can_roll"); - - static final FieldName rollBuffsCost = FieldName.forField("rollBuffsCost", "roll_buffs_cost"); - - static final FieldName selectFirstBuffList = FieldName.forField("selectFirstBuffList", "select_first_buff_list"); - - static final FieldName mazeBuffList = FieldName.forField("mazeBuffList", "maze_buff_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java deleted file mode 100644 index 9b1e15f..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffSourceOuterClass.java +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueBuffSourceOuterClass { - /** - * Protobuf enum {@code RogueBuffSource} - */ - public enum RogueBuffSource implements ProtoEnum { - /** - * ROGUE_BUFF_SOURCE_TYPE_NONE = 0; - */ - ROGUE_BUFF_SOURCE_TYPE_NONE("ROGUE_BUFF_SOURCE_TYPE_NONE", 0), - - /** - * ROGUE_BUFF_SOURCE_TYPE_SELECT = 1; - */ - ROGUE_BUFF_SOURCE_TYPE_SELECT("ROGUE_BUFF_SOURCE_TYPE_SELECT", 1), - - /** - * ROGUE_BUFF_SOURCE_TYPE_ENHANCE = 2; - */ - ROGUE_BUFF_SOURCE_TYPE_ENHANCE("ROGUE_BUFF_SOURCE_TYPE_ENHANCE", 2), - - /** - * ROGUE_BUFF_SOURCE_TYPE_MIRACLE = 3; - */ - ROGUE_BUFF_SOURCE_TYPE_MIRACLE("ROGUE_BUFF_SOURCE_TYPE_MIRACLE", 3), - - /** - * ROGUE_BUFF_SOURCE_TYPE_DIALOGUE = 4; - */ - ROGUE_BUFF_SOURCE_TYPE_DIALOGUE("ROGUE_BUFF_SOURCE_TYPE_DIALOGUE", 4), - - /** - * ROGUE_BUFF_SOURCE_TYPE_BONUS = 5; - */ - ROGUE_BUFF_SOURCE_TYPE_BONUS("ROGUE_BUFF_SOURCE_TYPE_BONUS", 5), - - /** - * ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL = 6; - */ - ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL("ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL", 6), - - /** - * ROGUE_BUFF_SOURCE_TYPE_SHOP = 7; - */ - ROGUE_BUFF_SOURCE_TYPE_SHOP("ROGUE_BUFF_SOURCE_TYPE_SHOP", 7), - - /** - * ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM = 8; - */ - ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM("ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM", 8), - - /** - * ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START = 9; - */ - ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START("ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START", 9); - - /** - * ROGUE_BUFF_SOURCE_TYPE_NONE = 0; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_NONE_VALUE = 0; - - /** - * ROGUE_BUFF_SOURCE_TYPE_SELECT = 1; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_SELECT_VALUE = 1; - - /** - * ROGUE_BUFF_SOURCE_TYPE_ENHANCE = 2; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_ENHANCE_VALUE = 2; - - /** - * ROGUE_BUFF_SOURCE_TYPE_MIRACLE = 3; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_MIRACLE_VALUE = 3; - - /** - * ROGUE_BUFF_SOURCE_TYPE_DIALOGUE = 4; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_DIALOGUE_VALUE = 4; - - /** - * ROGUE_BUFF_SOURCE_TYPE_BONUS = 5; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_BONUS_VALUE = 5; - - /** - * ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL = 6; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL_VALUE = 6; - - /** - * ROGUE_BUFF_SOURCE_TYPE_SHOP = 7; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_SHOP_VALUE = 7; - - /** - * ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM = 8; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM_VALUE = 8; - - /** - * ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START = 9; - */ - public static final int ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START_VALUE = 9; - - private final String name; - - private final int number; - - private RogueBuffSource(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueBuffSourceConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueBuffSource forNumber(int value) { - return RogueBuffSourceConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueBuffSource forNumberOr(int number, RogueBuffSource other) { - RogueBuffSource value = forNumber(number); - return value == null ? other : value; - } - - enum RogueBuffSourceConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueBuffSource[] lookup = new RogueBuffSource[10]; - - static { - lookup[0] = ROGUE_BUFF_SOURCE_TYPE_NONE; - lookup[1] = ROGUE_BUFF_SOURCE_TYPE_SELECT; - lookup[2] = ROGUE_BUFF_SOURCE_TYPE_ENHANCE; - lookup[3] = ROGUE_BUFF_SOURCE_TYPE_MIRACLE; - lookup[4] = ROGUE_BUFF_SOURCE_TYPE_DIALOGUE; - lookup[5] = ROGUE_BUFF_SOURCE_TYPE_BONUS; - lookup[6] = ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL; - lookup[7] = ROGUE_BUFF_SOURCE_TYPE_SHOP; - lookup[8] = ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM; - lookup[9] = ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START; - } - - @Override - public final RogueBuffSource forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueBuffSource forName(final CharSequence value) { - switch (value.length()) { - case 27: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_NONE", value)) { - return ROGUE_BUFF_SOURCE_TYPE_NONE; - } - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_SHOP", value)) { - return ROGUE_BUFF_SOURCE_TYPE_SHOP; - } - break; - } - case 28: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_BONUS", value)) { - return ROGUE_BUFF_SOURCE_TYPE_BONUS; - } - break; - } - case 29: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_SELECT", value)) { - return ROGUE_BUFF_SOURCE_TYPE_SELECT; - } - break; - } - case 30: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_ENHANCE", value)) { - return ROGUE_BUFF_SOURCE_TYPE_ENHANCE; - } - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_MIRACLE", value)) { - return ROGUE_BUFF_SOURCE_TYPE_MIRACLE; - } - break; - } - case 31: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_DIALOGUE", value)) { - return ROGUE_BUFF_SOURCE_TYPE_DIALOGUE; - } - break; - } - case 33: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL", value)) { - return ROGUE_BUFF_SOURCE_TYPE_MAZE_SKILL; - } - break; - } - case 38: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM", value)) { - return ROGUE_BUFF_SOURCE_TYPE_LEVEL_MECHANISM; - } - break; - } - case 42: { - if (ProtoUtil.isEqual("ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START", value)) { - return ROGUE_BUFF_SOURCE_TYPE_ENDLESS_LEVEL_START; - } - break; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java deleted file mode 100644 index 15d3664..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonActionResultDisplayTypeOuterClass.java +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueCommonActionResultDisplayTypeOuterClass { - /** - * Protobuf enum {@code RogueCommonActionResultDisplayType} - */ - public enum RogueCommonActionResultDisplayType implements ProtoEnum { - /** - * ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE = 0; - */ - ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE("ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE", 0), - - /** - * ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE = 1; - */ - ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE("ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE", 1), - - /** - * ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI = 2; - */ - ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI("ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI", 2); - - /** - * ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE = 0; - */ - public static final int ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE_VALUE = 0; - - /** - * ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE = 1; - */ - public static final int ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE_VALUE = 1; - - /** - * ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI = 2; - */ - public static final int ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI_VALUE = 2; - - private final String name; - - private final int number; - - private RogueCommonActionResultDisplayType(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueCommonActionResultDisplayTypeConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueCommonActionResultDisplayType forNumber(int value) { - return RogueCommonActionResultDisplayTypeConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueCommonActionResultDisplayType forNumberOr(int number, - RogueCommonActionResultDisplayType other) { - RogueCommonActionResultDisplayType value = forNumber(number); - return value == null ? other : value; - } - - enum RogueCommonActionResultDisplayTypeConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueCommonActionResultDisplayType[] lookup = new RogueCommonActionResultDisplayType[3]; - - static { - lookup[0] = ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE; - lookup[1] = ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE; - lookup[2] = ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI; - } - - @Override - public final RogueCommonActionResultDisplayType forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueCommonActionResultDisplayType forName(final CharSequence value) { - if (value.length() == 44) { - if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE", value)) { - return ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_NONE; - } - } - if (value.length() == 45) { - if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI", value)) { - return ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_MULTI; - } - } - if (value.length() == 46) { - if (ProtoUtil.isEqual("ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE", value)) { - return ROGUE_COMMON_ACTION_RESULT_DISPLAY_TYPE_SINGLE; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java deleted file mode 100644 index a412fd7..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffOuterClass.java +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonBuffOuterClass { - /** - * Protobuf type {@code RogueCommonBuff} - */ - public static final class RogueCommonBuff extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 buff_level = 8; - */ - private int buffLevel; - - /** - * optional uint32 buff_id = 11; - */ - private int buffId; - - private RogueCommonBuff() { - } - - /** - * @return a new empty instance of {@code RogueCommonBuff} - */ - public static RogueCommonBuff newInstance() { - return new RogueCommonBuff(); - } - - /** - * optional uint32 buff_level = 8; - * @return whether the buffLevel field is set - */ - public boolean hasBuffLevel() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 buff_level = 8; - * @return this - */ - public RogueCommonBuff clearBuffLevel() { - bitField0_ &= ~0x00000001; - buffLevel = 0; - return this; - } - - /** - * optional uint32 buff_level = 8; - * @return the buffLevel - */ - public int getBuffLevel() { - return buffLevel; - } - - /** - * optional uint32 buff_level = 8; - * @param value the buffLevel to set - * @return this - */ - public RogueCommonBuff setBuffLevel(final int value) { - bitField0_ |= 0x00000001; - buffLevel = value; - return this; - } - - /** - * optional uint32 buff_id = 11; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 buff_id = 11; - * @return this - */ - public RogueCommonBuff clearBuffId() { - bitField0_ &= ~0x00000002; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 11; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 11; - * @param value the buffId to set - * @return this - */ - public RogueCommonBuff setBuffId(final int value) { - bitField0_ |= 0x00000002; - buffId = value; - return this; - } - - @Override - public RogueCommonBuff copyFrom(final RogueCommonBuff other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffLevel = other.buffLevel; - buffId = other.buffId; - } - return this; - } - - @Override - public RogueCommonBuff mergeFrom(final RogueCommonBuff other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffLevel()) { - setBuffLevel(other.buffLevel); - } - if (other.hasBuffId()) { - setBuffId(other.buffId); - } - return this; - } - - @Override - public RogueCommonBuff clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffLevel = 0; - buffId = 0; - return this; - } - - @Override - public RogueCommonBuff clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonBuff)) { - return false; - } - RogueCommonBuff other = (RogueCommonBuff) o; - return bitField0_ == other.bitField0_ - && (!hasBuffLevel() || buffLevel == other.buffLevel) - && (!hasBuffId() || buffId == other.buffId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(buffLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(buffId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonBuff mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 64: { - // buffLevel - buffLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // buffId - buffId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buffLevel, buffLevel); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); - } - output.endObject(); - } - - @Override - public RogueCommonBuff mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 38049521: - case 1729463448: { - if (input.isAtField(FieldNames.buffLevel)) { - if (!input.trySkipNullValue()) { - buffLevel = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { - if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonBuff clone() { - return new RogueCommonBuff().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonBuff parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonBuff(), data).checkInitialized(); - } - - public static RogueCommonBuff parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonBuff(), input).checkInitialized(); - } - - public static RogueCommonBuff parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonBuff(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonBuff messages - */ - public static MessageFactory getFactory() { - return RogueCommonBuffFactory.INSTANCE; - } - - private enum RogueCommonBuffFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonBuff create() { - return RogueCommonBuff.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffLevel = FieldName.forField("buffLevel", "buff_level"); - - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java deleted file mode 100644 index 9cf8cc6..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectInfoOuterClass.java +++ /dev/null @@ -1,1405 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueCommonBuffSelectInfoOuterClass { - /** - * Protobuf type {@code RogueCommonBuffSelectInfo} - */ - public static final class RogueCommonBuffSelectInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 source_cur_count = 4; - */ - private int sourceCurCount; - - /** - * optional uint32 roll_buff_max_times = 6; - */ - private int rollBuffMaxTimes; - - /** - * optional uint32 roll_buff_free_count = 9; - */ - private int rollBuffFreeCount; - - /** - * optional uint32 select_buff_source_hint = 11; - */ - private int selectBuffSourceHint; - - /** - * optional uint32 roll_buff_times = 12; - */ - private int rollBuffTimes; - - /** - * optional uint32 certain_select_buff_id = 13; - */ - private int certainSelectBuffId; - - /** - * optional uint32 source_total_count = 15; - */ - private int sourceTotalCount; - - /** - * optional .RogueCommonBuffSelectSource source_type = 8; - */ - private int sourceType; - - /** - * optional bool can_roll = 1; - */ - private boolean canRoll; - - /** - * optional .ItemCostList roll_buffs_cost = 5; - */ - private final ItemCostListOuterClass.ItemCostList rollBuffsCost = ItemCostListOuterClass.ItemCostList.newInstance(); - - /** - * repeated uint32 first_buff_type_list = 2; - */ - private final RepeatedInt firstBuffTypeList = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - */ - private final RepeatedInt handbookUnlockBuffIdList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - */ - private final RepeatedMessage mazeBuffList = RepeatedMessage.newEmptyInstance(RogueCommonBuffOuterClass.RogueCommonBuff.getFactory()); - - private RogueCommonBuffSelectInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonBuffSelectInfo} - */ - public static RogueCommonBuffSelectInfo newInstance() { - return new RogueCommonBuffSelectInfo(); - } - - /** - * optional uint32 source_cur_count = 4; - * @return whether the sourceCurCount field is set - */ - public boolean hasSourceCurCount() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 source_cur_count = 4; - * @return this - */ - public RogueCommonBuffSelectInfo clearSourceCurCount() { - bitField0_ &= ~0x00000001; - sourceCurCount = 0; - return this; - } - - /** - * optional uint32 source_cur_count = 4; - * @return the sourceCurCount - */ - public int getSourceCurCount() { - return sourceCurCount; - } - - /** - * optional uint32 source_cur_count = 4; - * @param value the sourceCurCount to set - * @return this - */ - public RogueCommonBuffSelectInfo setSourceCurCount(final int value) { - bitField0_ |= 0x00000001; - sourceCurCount = value; - return this; - } - - /** - * optional uint32 roll_buff_max_times = 6; - * @return whether the rollBuffMaxTimes field is set - */ - public boolean hasRollBuffMaxTimes() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 roll_buff_max_times = 6; - * @return this - */ - public RogueCommonBuffSelectInfo clearRollBuffMaxTimes() { - bitField0_ &= ~0x00000002; - rollBuffMaxTimes = 0; - return this; - } - - /** - * optional uint32 roll_buff_max_times = 6; - * @return the rollBuffMaxTimes - */ - public int getRollBuffMaxTimes() { - return rollBuffMaxTimes; - } - - /** - * optional uint32 roll_buff_max_times = 6; - * @param value the rollBuffMaxTimes to set - * @return this - */ - public RogueCommonBuffSelectInfo setRollBuffMaxTimes(final int value) { - bitField0_ |= 0x00000002; - rollBuffMaxTimes = value; - return this; - } - - /** - * optional uint32 roll_buff_free_count = 9; - * @return whether the rollBuffFreeCount field is set - */ - public boolean hasRollBuffFreeCount() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 roll_buff_free_count = 9; - * @return this - */ - public RogueCommonBuffSelectInfo clearRollBuffFreeCount() { - bitField0_ &= ~0x00000004; - rollBuffFreeCount = 0; - return this; - } - - /** - * optional uint32 roll_buff_free_count = 9; - * @return the rollBuffFreeCount - */ - public int getRollBuffFreeCount() { - return rollBuffFreeCount; - } - - /** - * optional uint32 roll_buff_free_count = 9; - * @param value the rollBuffFreeCount to set - * @return this - */ - public RogueCommonBuffSelectInfo setRollBuffFreeCount(final int value) { - bitField0_ |= 0x00000004; - rollBuffFreeCount = value; - return this; - } - - /** - * optional uint32 select_buff_source_hint = 11; - * @return whether the selectBuffSourceHint field is set - */ - public boolean hasSelectBuffSourceHint() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 select_buff_source_hint = 11; - * @return this - */ - public RogueCommonBuffSelectInfo clearSelectBuffSourceHint() { - bitField0_ &= ~0x00000008; - selectBuffSourceHint = 0; - return this; - } - - /** - * optional uint32 select_buff_source_hint = 11; - * @return the selectBuffSourceHint - */ - public int getSelectBuffSourceHint() { - return selectBuffSourceHint; - } - - /** - * optional uint32 select_buff_source_hint = 11; - * @param value the selectBuffSourceHint to set - * @return this - */ - public RogueCommonBuffSelectInfo setSelectBuffSourceHint(final int value) { - bitField0_ |= 0x00000008; - selectBuffSourceHint = value; - return this; - } - - /** - * optional uint32 roll_buff_times = 12; - * @return whether the rollBuffTimes field is set - */ - public boolean hasRollBuffTimes() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 roll_buff_times = 12; - * @return this - */ - public RogueCommonBuffSelectInfo clearRollBuffTimes() { - bitField0_ &= ~0x00000010; - rollBuffTimes = 0; - return this; - } - - /** - * optional uint32 roll_buff_times = 12; - * @return the rollBuffTimes - */ - public int getRollBuffTimes() { - return rollBuffTimes; - } - - /** - * optional uint32 roll_buff_times = 12; - * @param value the rollBuffTimes to set - * @return this - */ - public RogueCommonBuffSelectInfo setRollBuffTimes(final int value) { - bitField0_ |= 0x00000010; - rollBuffTimes = value; - return this; - } - - /** - * optional uint32 certain_select_buff_id = 13; - * @return whether the certainSelectBuffId field is set - */ - public boolean hasCertainSelectBuffId() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional uint32 certain_select_buff_id = 13; - * @return this - */ - public RogueCommonBuffSelectInfo clearCertainSelectBuffId() { - bitField0_ &= ~0x00000020; - certainSelectBuffId = 0; - return this; - } - - /** - * optional uint32 certain_select_buff_id = 13; - * @return the certainSelectBuffId - */ - public int getCertainSelectBuffId() { - return certainSelectBuffId; - } - - /** - * optional uint32 certain_select_buff_id = 13; - * @param value the certainSelectBuffId to set - * @return this - */ - public RogueCommonBuffSelectInfo setCertainSelectBuffId(final int value) { - bitField0_ |= 0x00000020; - certainSelectBuffId = value; - return this; - } - - /** - * optional uint32 source_total_count = 15; - * @return whether the sourceTotalCount field is set - */ - public boolean hasSourceTotalCount() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * optional uint32 source_total_count = 15; - * @return this - */ - public RogueCommonBuffSelectInfo clearSourceTotalCount() { - bitField0_ &= ~0x00000040; - sourceTotalCount = 0; - return this; - } - - /** - * optional uint32 source_total_count = 15; - * @return the sourceTotalCount - */ - public int getSourceTotalCount() { - return sourceTotalCount; - } - - /** - * optional uint32 source_total_count = 15; - * @param value the sourceTotalCount to set - * @return this - */ - public RogueCommonBuffSelectInfo setSourceTotalCount(final int value) { - bitField0_ |= 0x00000040; - sourceTotalCount = value; - return this; - } - - /** - * optional .RogueCommonBuffSelectSource source_type = 8; - * @return whether the sourceType field is set - */ - public boolean hasSourceType() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .RogueCommonBuffSelectSource source_type = 8; - * @return this - */ - public RogueCommonBuffSelectInfo clearSourceType() { - bitField0_ &= ~0x00000080; - sourceType = 0; - return this; - } - - /** - * optional .RogueCommonBuffSelectSource source_type = 8; - * @return the sourceType - */ - public RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource getSourceType() { - return RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.forNumber(sourceType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueCommonBuffSelectInfo#getSourceType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getSourceTypeValue() { - return sourceType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource}. Setting an invalid value - * can cause {@link RogueCommonBuffSelectInfo#getSourceType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueCommonBuffSelectInfo setSourceTypeValue(final int value) { - bitField0_ |= 0x00000080; - sourceType = value; - return this; - } - - /** - * optional .RogueCommonBuffSelectSource source_type = 8; - * @param value the sourceType to set - * @return this - */ - public RogueCommonBuffSelectInfo setSourceType( - final RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource value) { - bitField0_ |= 0x00000080; - sourceType = value.getNumber(); - return this; - } - - /** - * optional bool can_roll = 1; - * @return whether the canRoll field is set - */ - public boolean hasCanRoll() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * optional bool can_roll = 1; - * @return this - */ - public RogueCommonBuffSelectInfo clearCanRoll() { - bitField0_ &= ~0x00000100; - canRoll = false; - return this; - } - - /** - * optional bool can_roll = 1; - * @return the canRoll - */ - public boolean getCanRoll() { - return canRoll; - } - - /** - * optional bool can_roll = 1; - * @param value the canRoll to set - * @return this - */ - public RogueCommonBuffSelectInfo setCanRoll(final boolean value) { - bitField0_ |= 0x00000100; - canRoll = value; - return this; - } - - /** - * optional .ItemCostList roll_buffs_cost = 5; - * @return whether the rollBuffsCost field is set - */ - public boolean hasRollBuffsCost() { - return (bitField0_ & 0x00000200) != 0; - } - - /** - * optional .ItemCostList roll_buffs_cost = 5; - * @return this - */ - public RogueCommonBuffSelectInfo clearRollBuffsCost() { - bitField0_ &= ~0x00000200; - rollBuffsCost.clear(); - return this; - } - - /** - * optional .ItemCostList roll_buffs_cost = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRollBuffsCost()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ItemCostListOuterClass.ItemCostList getRollBuffsCost() { - return rollBuffsCost; - } - - /** - * optional .ItemCostList roll_buffs_cost = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ItemCostListOuterClass.ItemCostList getMutableRollBuffsCost() { - bitField0_ |= 0x00000200; - return rollBuffsCost; - } - - /** - * optional .ItemCostList roll_buffs_cost = 5; - * @param value the rollBuffsCost to set - * @return this - */ - public RogueCommonBuffSelectInfo setRollBuffsCost( - final ItemCostListOuterClass.ItemCostList value) { - bitField0_ |= 0x00000200; - rollBuffsCost.copyFrom(value); - return this; - } - - /** - * repeated uint32 first_buff_type_list = 2; - * @return whether the firstBuffTypeList field is set - */ - public boolean hasFirstBuffTypeList() { - return (bitField0_ & 0x00000400) != 0; - } - - /** - * repeated uint32 first_buff_type_list = 2; - * @return this - */ - public RogueCommonBuffSelectInfo clearFirstBuffTypeList() { - bitField0_ &= ~0x00000400; - firstBuffTypeList.clear(); - return this; - } - - /** - * repeated uint32 first_buff_type_list = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableFirstBuffTypeList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getFirstBuffTypeList() { - return firstBuffTypeList; - } - - /** - * repeated uint32 first_buff_type_list = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableFirstBuffTypeList() { - bitField0_ |= 0x00000400; - return firstBuffTypeList; - } - - /** - * repeated uint32 first_buff_type_list = 2; - * @param value the firstBuffTypeList to add - * @return this - */ - public RogueCommonBuffSelectInfo addFirstBuffTypeList(final int value) { - bitField0_ |= 0x00000400; - firstBuffTypeList.add(value); - return this; - } - - /** - * repeated uint32 first_buff_type_list = 2; - * @param values the firstBuffTypeList to add - * @return this - */ - public RogueCommonBuffSelectInfo addAllFirstBuffTypeList(final int... values) { - bitField0_ |= 0x00000400; - firstBuffTypeList.addAll(values); - return this; - } - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - * @return whether the handbookUnlockBuffIdList field is set - */ - public boolean hasHandbookUnlockBuffIdList() { - return (bitField0_ & 0x00000800) != 0; - } - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - * @return this - */ - public RogueCommonBuffSelectInfo clearHandbookUnlockBuffIdList() { - bitField0_ &= ~0x00000800; - handbookUnlockBuffIdList.clear(); - return this; - } - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableHandbookUnlockBuffIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getHandbookUnlockBuffIdList() { - return handbookUnlockBuffIdList; - } - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableHandbookUnlockBuffIdList() { - bitField0_ |= 0x00000800; - return handbookUnlockBuffIdList; - } - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - * @param value the handbookUnlockBuffIdList to add - * @return this - */ - public RogueCommonBuffSelectInfo addHandbookUnlockBuffIdList(final int value) { - bitField0_ |= 0x00000800; - handbookUnlockBuffIdList.add(value); - return this; - } - - /** - * repeated uint32 handbook_unlock_buff_id_list = 3; - * @param values the handbookUnlockBuffIdList to add - * @return this - */ - public RogueCommonBuffSelectInfo addAllHandbookUnlockBuffIdList(final int... values) { - bitField0_ |= 0x00000800; - handbookUnlockBuffIdList.addAll(values); - return this; - } - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - * @return whether the mazeBuffList field is set - */ - public boolean hasMazeBuffList() { - return (bitField0_ & 0x00001000) != 0; - } - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - * @return this - */ - public RogueCommonBuffSelectInfo clearMazeBuffList() { - bitField0_ &= ~0x00001000; - mazeBuffList.clear(); - return this; - } - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMazeBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMazeBuffList() { - return mazeBuffList; - } - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMazeBuffList() { - bitField0_ |= 0x00001000; - return mazeBuffList; - } - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - * @param value the mazeBuffList to add - * @return this - */ - public RogueCommonBuffSelectInfo addMazeBuffList( - final RogueCommonBuffOuterClass.RogueCommonBuff value) { - bitField0_ |= 0x00001000; - mazeBuffList.add(value); - return this; - } - - /** - * repeated .RogueCommonBuff maze_buff_list = 7; - * @param values the mazeBuffList to add - * @return this - */ - public RogueCommonBuffSelectInfo addAllMazeBuffList( - final RogueCommonBuffOuterClass.RogueCommonBuff... values) { - bitField0_ |= 0x00001000; - mazeBuffList.addAll(values); - return this; - } - - @Override - public RogueCommonBuffSelectInfo copyFrom(final RogueCommonBuffSelectInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - sourceCurCount = other.sourceCurCount; - rollBuffMaxTimes = other.rollBuffMaxTimes; - rollBuffFreeCount = other.rollBuffFreeCount; - selectBuffSourceHint = other.selectBuffSourceHint; - rollBuffTimes = other.rollBuffTimes; - certainSelectBuffId = other.certainSelectBuffId; - sourceTotalCount = other.sourceTotalCount; - sourceType = other.sourceType; - canRoll = other.canRoll; - rollBuffsCost.copyFrom(other.rollBuffsCost); - firstBuffTypeList.copyFrom(other.firstBuffTypeList); - handbookUnlockBuffIdList.copyFrom(other.handbookUnlockBuffIdList); - mazeBuffList.copyFrom(other.mazeBuffList); - } - return this; - } - - @Override - public RogueCommonBuffSelectInfo mergeFrom(final RogueCommonBuffSelectInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasSourceCurCount()) { - setSourceCurCount(other.sourceCurCount); - } - if (other.hasRollBuffMaxTimes()) { - setRollBuffMaxTimes(other.rollBuffMaxTimes); - } - if (other.hasRollBuffFreeCount()) { - setRollBuffFreeCount(other.rollBuffFreeCount); - } - if (other.hasSelectBuffSourceHint()) { - setSelectBuffSourceHint(other.selectBuffSourceHint); - } - if (other.hasRollBuffTimes()) { - setRollBuffTimes(other.rollBuffTimes); - } - if (other.hasCertainSelectBuffId()) { - setCertainSelectBuffId(other.certainSelectBuffId); - } - if (other.hasSourceTotalCount()) { - setSourceTotalCount(other.sourceTotalCount); - } - if (other.hasSourceType()) { - setSourceTypeValue(other.sourceType); - } - if (other.hasCanRoll()) { - setCanRoll(other.canRoll); - } - if (other.hasRollBuffsCost()) { - getMutableRollBuffsCost().mergeFrom(other.rollBuffsCost); - } - if (other.hasFirstBuffTypeList()) { - getMutableFirstBuffTypeList().addAll(other.firstBuffTypeList); - } - if (other.hasHandbookUnlockBuffIdList()) { - getMutableHandbookUnlockBuffIdList().addAll(other.handbookUnlockBuffIdList); - } - if (other.hasMazeBuffList()) { - getMutableMazeBuffList().addAll(other.mazeBuffList); - } - return this; - } - - @Override - public RogueCommonBuffSelectInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - sourceCurCount = 0; - rollBuffMaxTimes = 0; - rollBuffFreeCount = 0; - selectBuffSourceHint = 0; - rollBuffTimes = 0; - certainSelectBuffId = 0; - sourceTotalCount = 0; - sourceType = 0; - canRoll = false; - rollBuffsCost.clear(); - firstBuffTypeList.clear(); - handbookUnlockBuffIdList.clear(); - mazeBuffList.clear(); - return this; - } - - @Override - public RogueCommonBuffSelectInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rollBuffsCost.clearQuick(); - firstBuffTypeList.clear(); - handbookUnlockBuffIdList.clear(); - mazeBuffList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonBuffSelectInfo)) { - return false; - } - RogueCommonBuffSelectInfo other = (RogueCommonBuffSelectInfo) o; - return bitField0_ == other.bitField0_ - && (!hasSourceCurCount() || sourceCurCount == other.sourceCurCount) - && (!hasRollBuffMaxTimes() || rollBuffMaxTimes == other.rollBuffMaxTimes) - && (!hasRollBuffFreeCount() || rollBuffFreeCount == other.rollBuffFreeCount) - && (!hasSelectBuffSourceHint() || selectBuffSourceHint == other.selectBuffSourceHint) - && (!hasRollBuffTimes() || rollBuffTimes == other.rollBuffTimes) - && (!hasCertainSelectBuffId() || certainSelectBuffId == other.certainSelectBuffId) - && (!hasSourceTotalCount() || sourceTotalCount == other.sourceTotalCount) - && (!hasSourceType() || sourceType == other.sourceType) - && (!hasCanRoll() || canRoll == other.canRoll) - && (!hasRollBuffsCost() || rollBuffsCost.equals(other.rollBuffsCost)) - && (!hasFirstBuffTypeList() || firstBuffTypeList.equals(other.firstBuffTypeList)) - && (!hasHandbookUnlockBuffIdList() || handbookUnlockBuffIdList.equals(other.handbookUnlockBuffIdList)) - && (!hasMazeBuffList() || mazeBuffList.equals(other.mazeBuffList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(sourceCurCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(rollBuffMaxTimes); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(rollBuffFreeCount); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(selectBuffSourceHint); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(rollBuffTimes); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(certainSelectBuffId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(sourceTotalCount); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 64); - output.writeEnumNoTag(sourceType); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 8); - output.writeBoolNoTag(canRoll); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(rollBuffsCost); - } - if ((bitField0_ & 0x00000400) != 0) { - for (int i = 0; i < firstBuffTypeList.length(); i++) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(firstBuffTypeList.array()[i]); - } - } - if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < handbookUnlockBuffIdList.length(); i++) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(handbookUnlockBuffIdList.array()[i]); - } - } - if ((bitField0_ & 0x00001000) != 0) { - for (int i = 0; i < mazeBuffList.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(mazeBuffList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(sourceCurCount); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffMaxTimes); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffFreeCount); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(selectBuffSourceHint); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollBuffTimes); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(certainSelectBuffId); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(sourceTotalCount); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(sourceType); - } - if ((bitField0_ & 0x00000100) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000200) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rollBuffsCost); - } - if ((bitField0_ & 0x00000400) != 0) { - size += (1 * firstBuffTypeList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(firstBuffTypeList); - } - if ((bitField0_ & 0x00000800) != 0) { - size += (1 * handbookUnlockBuffIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(handbookUnlockBuffIdList); - } - if ((bitField0_ & 0x00001000) != 0) { - size += (1 * mazeBuffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mazeBuffList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonBuffSelectInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // sourceCurCount - sourceCurCount = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // rollBuffMaxTimes - rollBuffMaxTimes = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // rollBuffFreeCount - rollBuffFreeCount = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // selectBuffSourceHint - selectBuffSourceHint = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // rollBuffTimes - rollBuffTimes = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // certainSelectBuffId - certainSelectBuffId = input.readUInt32(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // sourceTotalCount - sourceTotalCount = input.readUInt32(); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // sourceType - final int value = input.readInt32(); - if (RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.forNumber(value) != null) { - sourceType = value; - bitField0_ |= 0x00000080; - } - tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // canRoll - canRoll = input.readBool(); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // rollBuffsCost - input.readMessage(rollBuffsCost); - bitField0_ |= 0x00000200; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // firstBuffTypeList [packed=true] - input.readPackedUInt32(firstBuffTypeList, tag); - bitField0_ |= 0x00000400; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // handbookUnlockBuffIdList [packed=true] - input.readPackedUInt32(handbookUnlockBuffIdList, tag); - bitField0_ |= 0x00000800; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // mazeBuffList - tag = input.readRepeatedMessage(mazeBuffList, tag); - bitField0_ |= 0x00001000; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 16: { - // firstBuffTypeList [packed=false] - tag = input.readRepeatedUInt32(firstBuffTypeList, tag); - bitField0_ |= 0x00000400; - break; - } - case 24: { - // handbookUnlockBuffIdList [packed=false] - tag = input.readRepeatedUInt32(handbookUnlockBuffIdList, tag); - bitField0_ |= 0x00000800; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.sourceCurCount, sourceCurCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rollBuffMaxTimes, rollBuffMaxTimes); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rollBuffFreeCount, rollBuffFreeCount); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.selectBuffSourceHint, selectBuffSourceHint); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.rollBuffTimes, rollBuffTimes); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeUInt32(FieldNames.certainSelectBuffId, certainSelectBuffId); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeUInt32(FieldNames.sourceTotalCount, sourceTotalCount); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeEnum(FieldNames.sourceType, sourceType, RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.converter()); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeBool(FieldNames.canRoll, canRoll); - } - if ((bitField0_ & 0x00000200) != 0) { - output.writeMessage(FieldNames.rollBuffsCost, rollBuffsCost); - } - if ((bitField0_ & 0x00000400) != 0) { - output.writeRepeatedUInt32(FieldNames.firstBuffTypeList, firstBuffTypeList); - } - if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedUInt32(FieldNames.handbookUnlockBuffIdList, handbookUnlockBuffIdList); - } - if ((bitField0_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.mazeBuffList, mazeBuffList); - } - output.endObject(); - } - - @Override - public RogueCommonBuffSelectInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -831207446: - case 557368108: { - if (input.isAtField(FieldNames.sourceCurCount)) { - if (!input.trySkipNullValue()) { - sourceCurCount = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -564731182: - case -792528959: { - if (input.isAtField(FieldNames.rollBuffMaxTimes)) { - if (!input.trySkipNullValue()) { - rollBuffMaxTimes = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -227537549: - case -710203098: { - if (input.isAtField(FieldNames.rollBuffFreeCount)) { - if (!input.trySkipNullValue()) { - rollBuffFreeCount = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1160450543: - case -335538398: { - if (input.isAtField(FieldNames.selectBuffSourceHint)) { - if (!input.trySkipNullValue()) { - selectBuffSourceHint = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -436216138: - case 2038334812: { - if (input.isAtField(FieldNames.rollBuffTimes)) { - if (!input.trySkipNullValue()) { - rollBuffTimes = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -888307028: - case -93239935: { - if (input.isAtField(FieldNames.certainSelectBuffId)) { - if (!input.trySkipNullValue()) { - certainSelectBuffId = input.readUInt32(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1098445146: - case -1750826448: { - if (input.isAtField(FieldNames.sourceTotalCount)) { - if (!input.trySkipNullValue()) { - sourceTotalCount = input.readUInt32(); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1111431691: - case -84625186: { - if (input.isAtField(FieldNames.sourceType)) { - if (!input.trySkipNullValue()) { - final RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource value = input.readEnum(RogueCommonBuffSelectSourceOuterClass.RogueCommonBuffSelectSource.converter()); - if (value != null) { - sourceType = value.getNumber(); - bitField0_ |= 0x00000080; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 549719149: - case -126477428: { - if (input.isAtField(FieldNames.canRoll)) { - if (!input.trySkipNullValue()) { - canRoll = input.readBool(); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - case -408716688: - case -1703619794: { - if (input.isAtField(FieldNames.rollBuffsCost)) { - if (!input.trySkipNullValue()) { - input.readMessage(rollBuffsCost); - bitField0_ |= 0x00000200; - } - } else { - input.skipUnknownField(); - } - break; - } - case -2103912645: - case -1677036794: { - if (input.isAtField(FieldNames.firstBuffTypeList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(firstBuffTypeList); - bitField0_ |= 0x00000400; - } - } else { - input.skipUnknownField(); - } - break; - } - case 620352744: - case 2008489866: { - if (input.isAtField(FieldNames.handbookUnlockBuffIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(handbookUnlockBuffIdList); - bitField0_ |= 0x00000800; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1147228272: - case -1634995062: { - if (input.isAtField(FieldNames.mazeBuffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(mazeBuffList); - bitField0_ |= 0x00001000; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonBuffSelectInfo clone() { - return new RogueCommonBuffSelectInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonBuffSelectInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonBuffSelectInfo(), data).checkInitialized(); - } - - public static RogueCommonBuffSelectInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonBuffSelectInfo(), input).checkInitialized(); - } - - public static RogueCommonBuffSelectInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonBuffSelectInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonBuffSelectInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonBuffSelectInfoFactory.INSTANCE; - } - - private enum RogueCommonBuffSelectInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonBuffSelectInfo create() { - return RogueCommonBuffSelectInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName sourceCurCount = FieldName.forField("sourceCurCount", "source_cur_count"); - - static final FieldName rollBuffMaxTimes = FieldName.forField("rollBuffMaxTimes", "roll_buff_max_times"); - - static final FieldName rollBuffFreeCount = FieldName.forField("rollBuffFreeCount", "roll_buff_free_count"); - - static final FieldName selectBuffSourceHint = FieldName.forField("selectBuffSourceHint", "select_buff_source_hint"); - - static final FieldName rollBuffTimes = FieldName.forField("rollBuffTimes", "roll_buff_times"); - - static final FieldName certainSelectBuffId = FieldName.forField("certainSelectBuffId", "certain_select_buff_id"); - - static final FieldName sourceTotalCount = FieldName.forField("sourceTotalCount", "source_total_count"); - - static final FieldName sourceType = FieldName.forField("sourceType", "source_type"); - - static final FieldName canRoll = FieldName.forField("canRoll", "can_roll"); - - static final FieldName rollBuffsCost = FieldName.forField("rollBuffsCost", "roll_buffs_cost"); - - static final FieldName firstBuffTypeList = FieldName.forField("firstBuffTypeList", "first_buff_type_list"); - - static final FieldName handbookUnlockBuffIdList = FieldName.forField("handbookUnlockBuffIdList", "handbook_unlock_buff_id_list"); - - static final FieldName mazeBuffList = FieldName.forField("mazeBuffList", "maze_buff_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectResultOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectResultOuterClass.java deleted file mode 100644 index 7ccb6b7..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectResultOuterClass.java +++ /dev/null @@ -1,261 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonBuffSelectResultOuterClass { - /** - * Protobuf type {@code RogueCommonBuffSelectResult} - */ - public static final class RogueCommonBuffSelectResult extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 buff_id = 4; - */ - private int buffId; - - private RogueCommonBuffSelectResult() { - } - - /** - * @return a new empty instance of {@code RogueCommonBuffSelectResult} - */ - public static RogueCommonBuffSelectResult newInstance() { - return new RogueCommonBuffSelectResult(); - } - - /** - * optional uint32 buff_id = 4; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 buff_id = 4; - * @return this - */ - public RogueCommonBuffSelectResult clearBuffId() { - bitField0_ &= ~0x00000001; - buffId = 0; - return this; - } - - /** - * optional uint32 buff_id = 4; - * @return the buffId - */ - public int getBuffId() { - return buffId; - } - - /** - * optional uint32 buff_id = 4; - * @param value the buffId to set - * @return this - */ - public RogueCommonBuffSelectResult setBuffId(final int value) { - bitField0_ |= 0x00000001; - buffId = value; - return this; - } - - @Override - public RogueCommonBuffSelectResult copyFrom(final RogueCommonBuffSelectResult other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffId = other.buffId; - } - return this; - } - - @Override - public RogueCommonBuffSelectResult mergeFrom(final RogueCommonBuffSelectResult other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffId()) { - setBuffId(other.buffId); - } - return this; - } - - @Override - public RogueCommonBuffSelectResult clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffId = 0; - return this; - } - - @Override - public RogueCommonBuffSelectResult clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonBuffSelectResult)) { - return false; - } - RogueCommonBuffSelectResult other = (RogueCommonBuffSelectResult) o; - return bitField0_ == other.bitField0_ - && (!hasBuffId() || buffId == other.buffId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(buffId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonBuffSelectResult mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // buffId - buffId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); - } - output.endObject(); - } - - @Override - public RogueCommonBuffSelectResult mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { - if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonBuffSelectResult clone() { - return new RogueCommonBuffSelectResult().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonBuffSelectResult parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonBuffSelectResult(), data).checkInitialized(); - } - - public static RogueCommonBuffSelectResult parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonBuffSelectResult(), input).checkInitialized(); - } - - public static RogueCommonBuffSelectResult parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonBuffSelectResult(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonBuffSelectResult messages - */ - public static MessageFactory getFactory() { - return RogueCommonBuffSelectResultFactory.INSTANCE; - } - - private enum RogueCommonBuffSelectResultFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonBuffSelectResult create() { - return RogueCommonBuffSelectResult.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java deleted file mode 100644 index ed117d8..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonBuffSelectSourceOuterClass.java +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueCommonBuffSelectSourceOuterClass { - /** - * Protobuf enum {@code RogueCommonBuffSelectSource} - */ - public enum RogueCommonBuffSelectSource implements ProtoEnum { - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE = 0; - */ - ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE", 0), - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL = 1; - */ - ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL", 1), - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON = 2; - */ - ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON", 2), - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT = 3; - */ - ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT", 3), - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM = 4; - */ - ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM", 4); - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE = 0; - */ - public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE_VALUE = 0; - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL = 1; - */ - public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL_VALUE = 1; - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON = 2; - */ - public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON_VALUE = 2; - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT = 3; - */ - public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT_VALUE = 3; - - /** - * ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM = 4; - */ - public static final int ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM_VALUE = 4; - - private final String name; - - private final int number; - - private RogueCommonBuffSelectSource(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueCommonBuffSelectSourceConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueCommonBuffSelectSource forNumber(int value) { - return RogueCommonBuffSelectSourceConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueCommonBuffSelectSource forNumberOr(int number, - RogueCommonBuffSelectSource other) { - RogueCommonBuffSelectSource value = forNumber(number); - return value == null ? other : value; - } - - enum RogueCommonBuffSelectSourceConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueCommonBuffSelectSource[] lookup = new RogueCommonBuffSelectSource[5]; - - static { - lookup[0] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE; - lookup[1] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL; - lookup[2] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON; - lookup[3] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT; - lookup[4] = ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM; - } - - @Override - public final RogueCommonBuffSelectSource forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueCommonBuffSelectSource forName(final CharSequence value) { - switch (value.length()) { - case 41: { - if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE", value)) { - return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_NONE; - } - if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON", value)) { - return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_AEON; - } - break; - } - case 46: { - if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL", value)) { - return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_DICE_ROLL; - } - break; - } - case 48: { - if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT", value)) { - return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_BOARD_EVENT; - } - break; - } - case 52: { - if (ProtoUtil.isEqual("ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM", value)) { - return ROGUE_COMMON_BUFF_SELECT_SOURCE_TYPE_LEVEL_MECHANISM; - } - break; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java deleted file mode 100644 index 9fb84ea..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueBasicInfoOuterClass.java +++ /dev/null @@ -1,343 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonDialogueBasicInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueBasicInfo} - */ - public static final class RogueCommonDialogueBasicInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 dialogue_id = 5; - */ - private int dialogueId; - - /** - * optional uint32 rogue_npc_id = 7; - */ - private int rogueNpcId; - - private RogueCommonDialogueBasicInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueBasicInfo} - */ - public static RogueCommonDialogueBasicInfo newInstance() { - return new RogueCommonDialogueBasicInfo(); - } - - /** - * optional uint32 dialogue_id = 5; - * @return whether the dialogueId field is set - */ - public boolean hasDialogueId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 dialogue_id = 5; - * @return this - */ - public RogueCommonDialogueBasicInfo clearDialogueId() { - bitField0_ &= ~0x00000001; - dialogueId = 0; - return this; - } - - /** - * optional uint32 dialogue_id = 5; - * @return the dialogueId - */ - public int getDialogueId() { - return dialogueId; - } - - /** - * optional uint32 dialogue_id = 5; - * @param value the dialogueId to set - * @return this - */ - public RogueCommonDialogueBasicInfo setDialogueId(final int value) { - bitField0_ |= 0x00000001; - dialogueId = value; - return this; - } - - /** - * optional uint32 rogue_npc_id = 7; - * @return whether the rogueNpcId field is set - */ - public boolean hasRogueNpcId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 rogue_npc_id = 7; - * @return this - */ - public RogueCommonDialogueBasicInfo clearRogueNpcId() { - bitField0_ &= ~0x00000002; - rogueNpcId = 0; - return this; - } - - /** - * optional uint32 rogue_npc_id = 7; - * @return the rogueNpcId - */ - public int getRogueNpcId() { - return rogueNpcId; - } - - /** - * optional uint32 rogue_npc_id = 7; - * @param value the rogueNpcId to set - * @return this - */ - public RogueCommonDialogueBasicInfo setRogueNpcId(final int value) { - bitField0_ |= 0x00000002; - rogueNpcId = value; - return this; - } - - @Override - public RogueCommonDialogueBasicInfo copyFrom(final RogueCommonDialogueBasicInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - dialogueId = other.dialogueId; - rogueNpcId = other.rogueNpcId; - } - return this; - } - - @Override - public RogueCommonDialogueBasicInfo mergeFrom(final RogueCommonDialogueBasicInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDialogueId()) { - setDialogueId(other.dialogueId); - } - if (other.hasRogueNpcId()) { - setRogueNpcId(other.rogueNpcId); - } - return this; - } - - @Override - public RogueCommonDialogueBasicInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueId = 0; - rogueNpcId = 0; - return this; - } - - @Override - public RogueCommonDialogueBasicInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueBasicInfo)) { - return false; - } - RogueCommonDialogueBasicInfo other = (RogueCommonDialogueBasicInfo) o; - return bitField0_ == other.bitField0_ - && (!hasDialogueId() || dialogueId == other.dialogueId) - && (!hasRogueNpcId() || rogueNpcId == other.rogueNpcId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(dialogueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(rogueNpcId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueNpcId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueBasicInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // dialogueId - dialogueId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // rogueNpcId - rogueNpcId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.dialogueId, dialogueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.rogueNpcId, rogueNpcId); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueBasicInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1384067821: - case 43591906: { - if (input.isAtField(FieldNames.dialogueId)) { - if (!input.trySkipNullValue()) { - dialogueId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1140086238: - case 1751967038: { - if (input.isAtField(FieldNames.rogueNpcId)) { - if (!input.trySkipNullValue()) { - rogueNpcId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueBasicInfo clone() { - return new RogueCommonDialogueBasicInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueBasicInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueBasicInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueBasicInfo parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueBasicInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueBasicInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueBasicInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueBasicInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueBasicInfo create() { - return RogueCommonDialogueBasicInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName dialogueId = FieldName.forField("dialogueId", "dialogue_id"); - - static final FieldName rogueNpcId = FieldName.forField("rogueNpcId", "rogue_npc_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java deleted file mode 100644 index bade774..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueDataInfoOuterClass.java +++ /dev/null @@ -1,483 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueCommonDialogueDataInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueDataInfo} - */ - public static final class RogueCommonDialogueDataInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 event_unique_id = 8; - */ - private int eventUniqueId; - - /** - * optional .RogueCommonDialogueInfo dialogue_info = 1; - */ - private final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo dialogueInfo = RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo.newInstance(); - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - */ - private final RepeatedMessage optionList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.getFactory()); - - private RogueCommonDialogueDataInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueDataInfo} - */ - public static RogueCommonDialogueDataInfo newInstance() { - return new RogueCommonDialogueDataInfo(); - } - - /** - * optional uint32 event_unique_id = 8; - * @return whether the eventUniqueId field is set - */ - public boolean hasEventUniqueId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 event_unique_id = 8; - * @return this - */ - public RogueCommonDialogueDataInfo clearEventUniqueId() { - bitField0_ &= ~0x00000001; - eventUniqueId = 0; - return this; - } - - /** - * optional uint32 event_unique_id = 8; - * @return the eventUniqueId - */ - public int getEventUniqueId() { - return eventUniqueId; - } - - /** - * optional uint32 event_unique_id = 8; - * @param value the eventUniqueId to set - * @return this - */ - public RogueCommonDialogueDataInfo setEventUniqueId(final int value) { - bitField0_ |= 0x00000001; - eventUniqueId = value; - return this; - } - - /** - * optional .RogueCommonDialogueInfo dialogue_info = 1; - * @return whether the dialogueInfo field is set - */ - public boolean hasDialogueInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueCommonDialogueInfo dialogue_info = 1; - * @return this - */ - public RogueCommonDialogueDataInfo clearDialogueInfo() { - bitField0_ &= ~0x00000002; - dialogueInfo.clear(); - return this; - } - - /** - * optional .RogueCommonDialogueInfo dialogue_info = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo getDialogueInfo() { - return dialogueInfo; - } - - /** - * optional .RogueCommonDialogueInfo dialogue_info = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo getMutableDialogueInfo() { - bitField0_ |= 0x00000002; - return dialogueInfo; - } - - /** - * optional .RogueCommonDialogueInfo dialogue_info = 1; - * @param value the dialogueInfo to set - * @return this - */ - public RogueCommonDialogueDataInfo setDialogueInfo( - final RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo value) { - bitField0_ |= 0x00000002; - dialogueInfo.copyFrom(value); - return this; - } - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - * @return whether the optionList field is set - */ - public boolean hasOptionList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - * @return this - */ - public RogueCommonDialogueDataInfo clearOptionList() { - bitField0_ &= ~0x00000004; - optionList.clear(); - return this; - } - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableOptionList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getOptionList( - ) { - return optionList; - } - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableOptionList( - ) { - bitField0_ |= 0x00000004; - return optionList; - } - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - * @param value the optionList to add - * @return this - */ - public RogueCommonDialogueDataInfo addOptionList( - final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) { - bitField0_ |= 0x00000004; - optionList.add(value); - return this; - } - - /** - * repeated .RogueCommonDialogueOptionInfo option_list = 2; - * @param values the optionList to add - * @return this - */ - public RogueCommonDialogueDataInfo addAllOptionList( - final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo... values) { - bitField0_ |= 0x00000004; - optionList.addAll(values); - return this; - } - - @Override - public RogueCommonDialogueDataInfo copyFrom(final RogueCommonDialogueDataInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - eventUniqueId = other.eventUniqueId; - dialogueInfo.copyFrom(other.dialogueInfo); - optionList.copyFrom(other.optionList); - } - return this; - } - - @Override - public RogueCommonDialogueDataInfo mergeFrom(final RogueCommonDialogueDataInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); - } - if (other.hasDialogueInfo()) { - getMutableDialogueInfo().mergeFrom(other.dialogueInfo); - } - if (other.hasOptionList()) { - getMutableOptionList().addAll(other.optionList); - } - return this; - } - - @Override - public RogueCommonDialogueDataInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - eventUniqueId = 0; - dialogueInfo.clear(); - optionList.clear(); - return this; - } - - @Override - public RogueCommonDialogueDataInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueInfo.clearQuick(); - optionList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueDataInfo)) { - return false; - } - RogueCommonDialogueDataInfo other = (RogueCommonDialogueDataInfo) o; - return bitField0_ == other.bitField0_ - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) - && (!hasDialogueInfo() || dialogueInfo.equals(other.dialogueInfo)) - && (!hasOptionList() || optionList.equals(other.optionList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(dialogueInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < optionList.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(optionList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * optionList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(optionList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueDataInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 64: { - // eventUniqueId - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // dialogueInfo - input.readMessage(dialogueInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // optionList - tag = input.readRepeatedMessage(optionList, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.dialogueInfo, dialogueInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.optionList, optionList); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueDataInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { - if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1350698662: - case -1057838411: { - if (input.isAtField(FieldNames.dialogueInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(dialogueInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1373334195: - case -358686168: { - if (input.isAtField(FieldNames.optionList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(optionList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueDataInfo clone() { - return new RogueCommonDialogueDataInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueDataInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueDataInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueDataInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueDataInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueDataInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueDataInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueDataInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueDataInfo create() { - return RogueCommonDialogueDataInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); - - static final FieldName dialogueInfo = FieldName.forField("dialogueInfo", "dialogue_info"); - - static final FieldName optionList = FieldName.forField("optionList", "option_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java deleted file mode 100644 index 0c0b0f8..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueInfoOuterClass.java +++ /dev/null @@ -1,331 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonDialogueInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueInfo} - */ - public static final class RogueCommonDialogueInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  JHFNBCAKNAP KNHAHDLIAPF = 5;
-     *  AGICBCNPMBF AOLAFEPHJFE = 12;
-     *  LMFCCGILDOH CJFHHFCGDDA = 15;
-     * 
- * - * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 4; - */ - private final RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo dialogueBasicInfo = RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo.newInstance(); - - private RogueCommonDialogueInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueInfo} - */ - public static RogueCommonDialogueInfo newInstance() { - return new RogueCommonDialogueInfo(); - } - - public boolean hasDialogueInfo() { - return (((bitField0_ & 0x00000001)) != 0); - } - - public RogueCommonDialogueInfo clearDialogueInfo() { - if (hasDialogueInfo()) { - clearDialogueBasicInfo(); - } - return this; - } - - /** - *
-     *  JHFNBCAKNAP KNHAHDLIAPF = 5;
-     *  AGICBCNPMBF AOLAFEPHJFE = 12;
-     *  LMFCCGILDOH CJFHHFCGDDA = 15;
-     * 
- * - * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 4; - * @return whether the dialogueBasicInfo field is set - */ - public boolean hasDialogueBasicInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  JHFNBCAKNAP KNHAHDLIAPF = 5;
-     *  AGICBCNPMBF AOLAFEPHJFE = 12;
-     *  LMFCCGILDOH CJFHHFCGDDA = 15;
-     * 
- * - * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 4; - * @return this - */ - public RogueCommonDialogueInfo clearDialogueBasicInfo() { - bitField0_ &= ~0x00000001; - dialogueBasicInfo.clear(); - return this; - } - - /** - *
-     *  JHFNBCAKNAP KNHAHDLIAPF = 5;
-     *  AGICBCNPMBF AOLAFEPHJFE = 12;
-     *  LMFCCGILDOH CJFHHFCGDDA = 15;
-     * 
- * - * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueBasicInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo getDialogueBasicInfo( - ) { - return dialogueBasicInfo; - } - - /** - *
-     *  JHFNBCAKNAP KNHAHDLIAPF = 5;
-     *  AGICBCNPMBF AOLAFEPHJFE = 12;
-     *  LMFCCGILDOH CJFHHFCGDDA = 15;
-     * 
- * - * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo getMutableDialogueBasicInfo( - ) { - bitField0_ |= 0x00000001; - return dialogueBasicInfo; - } - - /** - *
-     *  JHFNBCAKNAP KNHAHDLIAPF = 5;
-     *  AGICBCNPMBF AOLAFEPHJFE = 12;
-     *  LMFCCGILDOH CJFHHFCGDDA = 15;
-     * 
- * - * optional .RogueCommonDialogueBasicInfo dialogue_basic_info = 4; - * @param value the dialogueBasicInfo to set - * @return this - */ - public RogueCommonDialogueInfo setDialogueBasicInfo( - final RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo value) { - bitField0_ |= 0x00000001; - dialogueBasicInfo.copyFrom(value); - return this; - } - - @Override - public RogueCommonDialogueInfo copyFrom(final RogueCommonDialogueInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - dialogueBasicInfo.copyFrom(other.dialogueBasicInfo); - } - return this; - } - - @Override - public RogueCommonDialogueInfo mergeFrom(final RogueCommonDialogueInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDialogueBasicInfo()) { - getMutableDialogueBasicInfo().mergeFrom(other.dialogueBasicInfo); - } - return this; - } - - @Override - public RogueCommonDialogueInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueBasicInfo.clear(); - return this; - } - - @Override - public RogueCommonDialogueInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueBasicInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueInfo)) { - return false; - } - RogueCommonDialogueInfo other = (RogueCommonDialogueInfo) o; - return bitField0_ == other.bitField0_ - && (!hasDialogueBasicInfo() || dialogueBasicInfo.equals(other.dialogueBasicInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(dialogueBasicInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueBasicInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 34: { - // dialogueBasicInfo - input.readMessage(dialogueBasicInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.dialogueBasicInfo, dialogueBasicInfo); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1607581444: - case -1887626522: { - if (input.isAtField(FieldNames.dialogueBasicInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(dialogueBasicInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueInfo clone() { - return new RogueCommonDialogueInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueInfo create() { - return RogueCommonDialogueInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName dialogueBasicInfo = FieldName.forField("dialogueBasicInfo", "dialogue_basic_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java deleted file mode 100644 index 81986f3..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionBattleResultInfoOuterClass.java +++ /dev/null @@ -1,266 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonDialogueOptionBattleResultInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueOptionBattleResultInfo} - */ - public static final class RogueCommonDialogueOptionBattleResultInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 battle_event_id = 6; - */ - private int battleEventId; - - private RogueCommonDialogueOptionBattleResultInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueOptionBattleResultInfo} - */ - public static RogueCommonDialogueOptionBattleResultInfo newInstance() { - return new RogueCommonDialogueOptionBattleResultInfo(); - } - - /** - * optional uint32 battle_event_id = 6; - * @return whether the battleEventId field is set - */ - public boolean hasBattleEventId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 battle_event_id = 6; - * @return this - */ - public RogueCommonDialogueOptionBattleResultInfo clearBattleEventId() { - bitField0_ &= ~0x00000001; - battleEventId = 0; - return this; - } - - /** - * optional uint32 battle_event_id = 6; - * @return the battleEventId - */ - public int getBattleEventId() { - return battleEventId; - } - - /** - * optional uint32 battle_event_id = 6; - * @param value the battleEventId to set - * @return this - */ - public RogueCommonDialogueOptionBattleResultInfo setBattleEventId(final int value) { - bitField0_ |= 0x00000001; - battleEventId = value; - return this; - } - - @Override - public RogueCommonDialogueOptionBattleResultInfo copyFrom( - final RogueCommonDialogueOptionBattleResultInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - battleEventId = other.battleEventId; - } - return this; - } - - @Override - public RogueCommonDialogueOptionBattleResultInfo mergeFrom( - final RogueCommonDialogueOptionBattleResultInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBattleEventId()) { - setBattleEventId(other.battleEventId); - } - return this; - } - - @Override - public RogueCommonDialogueOptionBattleResultInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - battleEventId = 0; - return this; - } - - @Override - public RogueCommonDialogueOptionBattleResultInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueOptionBattleResultInfo)) { - return false; - } - RogueCommonDialogueOptionBattleResultInfo other = (RogueCommonDialogueOptionBattleResultInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBattleEventId() || battleEventId == other.battleEventId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(battleEventId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleEventId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueOptionBattleResultInfo mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // battleEventId - battleEventId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.battleEventId, battleEventId); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueOptionBattleResultInfo mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -79510147: - case -766250873: { - if (input.isAtField(FieldNames.battleEventId)) { - if (!input.trySkipNullValue()) { - battleEventId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueOptionBattleResultInfo clone() { - return new RogueCommonDialogueOptionBattleResultInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final ProtoSource input) - throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueOptionBattleResultInfo parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionBattleResultInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueOptionBattleResultInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueOptionBattleResultInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueOptionBattleResultInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueOptionBattleResultInfo create() { - return RogueCommonDialogueOptionBattleResultInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName battleEventId = FieldName.forField("battleEventId", "battle_event_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java deleted file mode 100644 index 5bd6311..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionDisplayInfoOuterClass.java +++ /dev/null @@ -1,348 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueCommonDialogueOptionDisplayInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueOptionDisplayInfo} - */ - public static final class RogueCommonDialogueOptionDisplayInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional float display_float_value = 7; - */ - private float displayFloatValue; - - /** - * optional int32 display_int_value = 3; - */ - private int displayIntValue; - - private RogueCommonDialogueOptionDisplayInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueOptionDisplayInfo} - */ - public static RogueCommonDialogueOptionDisplayInfo newInstance() { - return new RogueCommonDialogueOptionDisplayInfo(); - } - - /** - * optional float display_float_value = 7; - * @return whether the displayFloatValue field is set - */ - public boolean hasDisplayFloatValue() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional float display_float_value = 7; - * @return this - */ - public RogueCommonDialogueOptionDisplayInfo clearDisplayFloatValue() { - bitField0_ &= ~0x00000001; - displayFloatValue = 0F; - return this; - } - - /** - * optional float display_float_value = 7; - * @return the displayFloatValue - */ - public float getDisplayFloatValue() { - return displayFloatValue; - } - - /** - * optional float display_float_value = 7; - * @param value the displayFloatValue to set - * @return this - */ - public RogueCommonDialogueOptionDisplayInfo setDisplayFloatValue(final float value) { - bitField0_ |= 0x00000001; - displayFloatValue = value; - return this; - } - - /** - * optional int32 display_int_value = 3; - * @return whether the displayIntValue field is set - */ - public boolean hasDisplayIntValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int32 display_int_value = 3; - * @return this - */ - public RogueCommonDialogueOptionDisplayInfo clearDisplayIntValue() { - bitField0_ &= ~0x00000002; - displayIntValue = 0; - return this; - } - - /** - * optional int32 display_int_value = 3; - * @return the displayIntValue - */ - public int getDisplayIntValue() { - return displayIntValue; - } - - /** - * optional int32 display_int_value = 3; - * @param value the displayIntValue to set - * @return this - */ - public RogueCommonDialogueOptionDisplayInfo setDisplayIntValue(final int value) { - bitField0_ |= 0x00000002; - displayIntValue = value; - return this; - } - - @Override - public RogueCommonDialogueOptionDisplayInfo copyFrom( - final RogueCommonDialogueOptionDisplayInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - displayFloatValue = other.displayFloatValue; - displayIntValue = other.displayIntValue; - } - return this; - } - - @Override - public RogueCommonDialogueOptionDisplayInfo mergeFrom( - final RogueCommonDialogueOptionDisplayInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDisplayFloatValue()) { - setDisplayFloatValue(other.displayFloatValue); - } - if (other.hasDisplayIntValue()) { - setDisplayIntValue(other.displayIntValue); - } - return this; - } - - @Override - public RogueCommonDialogueOptionDisplayInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - displayFloatValue = 0F; - displayIntValue = 0; - return this; - } - - @Override - public RogueCommonDialogueOptionDisplayInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueOptionDisplayInfo)) { - return false; - } - RogueCommonDialogueOptionDisplayInfo other = (RogueCommonDialogueOptionDisplayInfo) o; - return bitField0_ == other.bitField0_ - && (!hasDisplayFloatValue() || ProtoUtil.isEqual(displayFloatValue, other.displayFloatValue)) - && (!hasDisplayIntValue() || displayIntValue == other.displayIntValue); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 61); - output.writeFloatNoTag(displayFloatValue); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeInt32NoTag(displayIntValue); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 5; - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt32SizeNoTag(displayIntValue); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueOptionDisplayInfo mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 61: { - // displayFloatValue - displayFloatValue = input.readFloat(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // displayIntValue - displayIntValue = input.readInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeFloat(FieldNames.displayFloatValue, displayFloatValue); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeInt32(FieldNames.displayIntValue, displayIntValue); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueOptionDisplayInfo mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1495597783: - case -1607645743: { - if (input.isAtField(FieldNames.displayFloatValue)) { - if (!input.trySkipNullValue()) { - displayFloatValue = input.readFloat(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -639090268: - case -626645532: { - if (input.isAtField(FieldNames.displayIntValue)) { - if (!input.trySkipNullValue()) { - displayIntValue = input.readInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueOptionDisplayInfo clone() { - return new RogueCommonDialogueOptionDisplayInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueOptionDisplayInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueOptionDisplayInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueOptionDisplayInfo parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionDisplayInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueOptionDisplayInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueOptionDisplayInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueOptionDisplayInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueOptionDisplayInfo create() { - return RogueCommonDialogueOptionDisplayInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName displayFloatValue = FieldName.forField("displayFloatValue", "display_float_value"); - - static final FieldName displayIntValue = FieldName.forField("displayIntValue", "display_int_value"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java deleted file mode 100644 index 89a2798..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionInfoOuterClass.java +++ /dev/null @@ -1,728 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueCommonDialogueOptionInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueOptionInfo} - */ - public static final class RogueCommonDialogueOptionInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 arg_id = 1; - */ - private int argId; - - /** - * optional uint32 option_id = 6; - */ - private int optionId; - - /** - * optional bool is_valid = 5; - */ - private boolean isValid; - - /** - * optional bool confirm = 7; - */ - private boolean confirm; - - /** - * optional .RogueCommonDialogueOptionDisplayInfo display_value = 11; - */ - private final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo displayValue = RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo.newInstance(); - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - */ - private final RepeatedMessage optionResultInfo = RepeatedMessage.newEmptyInstance(RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.getFactory()); - - private RogueCommonDialogueOptionInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueOptionInfo} - */ - public static RogueCommonDialogueOptionInfo newInstance() { - return new RogueCommonDialogueOptionInfo(); - } - - /** - * optional uint32 arg_id = 1; - * @return whether the argId field is set - */ - public boolean hasArgId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 arg_id = 1; - * @return this - */ - public RogueCommonDialogueOptionInfo clearArgId() { - bitField0_ &= ~0x00000001; - argId = 0; - return this; - } - - /** - * optional uint32 arg_id = 1; - * @return the argId - */ - public int getArgId() { - return argId; - } - - /** - * optional uint32 arg_id = 1; - * @param value the argId to set - * @return this - */ - public RogueCommonDialogueOptionInfo setArgId(final int value) { - bitField0_ |= 0x00000001; - argId = value; - return this; - } - - /** - * optional uint32 option_id = 6; - * @return whether the optionId field is set - */ - public boolean hasOptionId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 option_id = 6; - * @return this - */ - public RogueCommonDialogueOptionInfo clearOptionId() { - bitField0_ &= ~0x00000002; - optionId = 0; - return this; - } - - /** - * optional uint32 option_id = 6; - * @return the optionId - */ - public int getOptionId() { - return optionId; - } - - /** - * optional uint32 option_id = 6; - * @param value the optionId to set - * @return this - */ - public RogueCommonDialogueOptionInfo setOptionId(final int value) { - bitField0_ |= 0x00000002; - optionId = value; - return this; - } - - /** - * optional bool is_valid = 5; - * @return whether the isValid field is set - */ - public boolean hasIsValid() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool is_valid = 5; - * @return this - */ - public RogueCommonDialogueOptionInfo clearIsValid() { - bitField0_ &= ~0x00000004; - isValid = false; - return this; - } - - /** - * optional bool is_valid = 5; - * @return the isValid - */ - public boolean getIsValid() { - return isValid; - } - - /** - * optional bool is_valid = 5; - * @param value the isValid to set - * @return this - */ - public RogueCommonDialogueOptionInfo setIsValid(final boolean value) { - bitField0_ |= 0x00000004; - isValid = value; - return this; - } - - /** - * optional bool confirm = 7; - * @return whether the confirm field is set - */ - public boolean hasConfirm() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional bool confirm = 7; - * @return this - */ - public RogueCommonDialogueOptionInfo clearConfirm() { - bitField0_ &= ~0x00000008; - confirm = false; - return this; - } - - /** - * optional bool confirm = 7; - * @return the confirm - */ - public boolean getConfirm() { - return confirm; - } - - /** - * optional bool confirm = 7; - * @param value the confirm to set - * @return this - */ - public RogueCommonDialogueOptionInfo setConfirm(final boolean value) { - bitField0_ |= 0x00000008; - confirm = value; - return this; - } - - /** - * optional .RogueCommonDialogueOptionDisplayInfo display_value = 11; - * @return whether the displayValue field is set - */ - public boolean hasDisplayValue() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueCommonDialogueOptionDisplayInfo display_value = 11; - * @return this - */ - public RogueCommonDialogueOptionInfo clearDisplayValue() { - bitField0_ &= ~0x00000010; - displayValue.clear(); - return this; - } - - /** - * optional .RogueCommonDialogueOptionDisplayInfo display_value = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDisplayValue()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo getDisplayValue( - ) { - return displayValue; - } - - /** - * optional .RogueCommonDialogueOptionDisplayInfo display_value = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo getMutableDisplayValue( - ) { - bitField0_ |= 0x00000010; - return displayValue; - } - - /** - * optional .RogueCommonDialogueOptionDisplayInfo display_value = 11; - * @param value the displayValue to set - * @return this - */ - public RogueCommonDialogueOptionInfo setDisplayValue( - final RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo value) { - bitField0_ |= 0x00000010; - displayValue.copyFrom(value); - return this; - } - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - * @return whether the optionResultInfo field is set - */ - public boolean hasOptionResultInfo() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - * @return this - */ - public RogueCommonDialogueOptionInfo clearOptionResultInfo() { - bitField0_ &= ~0x00000020; - optionResultInfo.clear(); - return this; - } - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableOptionResultInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getOptionResultInfo( - ) { - return optionResultInfo; - } - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableOptionResultInfo( - ) { - bitField0_ |= 0x00000020; - return optionResultInfo; - } - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - * @param value the optionResultInfo to add - * @return this - */ - public RogueCommonDialogueOptionInfo addOptionResultInfo( - final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo value) { - bitField0_ |= 0x00000020; - optionResultInfo.add(value); - return this; - } - - /** - * repeated .RogueCommonDialogueOptionResultInfo option_result_info = 12; - * @param values the optionResultInfo to add - * @return this - */ - public RogueCommonDialogueOptionInfo addAllOptionResultInfo( - final RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo... values) { - bitField0_ |= 0x00000020; - optionResultInfo.addAll(values); - return this; - } - - @Override - public RogueCommonDialogueOptionInfo copyFrom(final RogueCommonDialogueOptionInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - argId = other.argId; - optionId = other.optionId; - isValid = other.isValid; - confirm = other.confirm; - displayValue.copyFrom(other.displayValue); - optionResultInfo.copyFrom(other.optionResultInfo); - } - return this; - } - - @Override - public RogueCommonDialogueOptionInfo mergeFrom(final RogueCommonDialogueOptionInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasArgId()) { - setArgId(other.argId); - } - if (other.hasOptionId()) { - setOptionId(other.optionId); - } - if (other.hasIsValid()) { - setIsValid(other.isValid); - } - if (other.hasConfirm()) { - setConfirm(other.confirm); - } - if (other.hasDisplayValue()) { - getMutableDisplayValue().mergeFrom(other.displayValue); - } - if (other.hasOptionResultInfo()) { - getMutableOptionResultInfo().addAll(other.optionResultInfo); - } - return this; - } - - @Override - public RogueCommonDialogueOptionInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - argId = 0; - optionId = 0; - isValid = false; - confirm = false; - displayValue.clear(); - optionResultInfo.clear(); - return this; - } - - @Override - public RogueCommonDialogueOptionInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - displayValue.clearQuick(); - optionResultInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueOptionInfo)) { - return false; - } - RogueCommonDialogueOptionInfo other = (RogueCommonDialogueOptionInfo) o; - return bitField0_ == other.bitField0_ - && (!hasArgId() || argId == other.argId) - && (!hasOptionId() || optionId == other.optionId) - && (!hasIsValid() || isValid == other.isValid) - && (!hasConfirm() || confirm == other.confirm) - && (!hasDisplayValue() || displayValue.equals(other.displayValue)) - && (!hasOptionResultInfo() || optionResultInfo.equals(other.optionResultInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(argId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(optionId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); - output.writeBoolNoTag(isValid); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); - output.writeBoolNoTag(confirm); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(displayValue); - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < optionResultInfo.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(optionResultInfo.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(displayValue); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * optionResultInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(optionResultInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueOptionInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // argId - argId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // optionId - optionId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // isValid - isValid = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // confirm - confirm = input.readBool(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // displayValue - input.readMessage(displayValue); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // optionResultInfo - tag = input.readRepeatedMessage(optionResultInfo, tag); - bitField0_ |= 0x00000020; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.argId, argId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.optionId, optionId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.isValid, isValid); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.confirm, confirm); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.displayValue, displayValue); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.optionResultInfo, optionResultInfo); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueOptionInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 93079057: - case -1409495132: { - if (input.isAtField(FieldNames.argId)) { - if (!input.trySkipNullValue()) { - argId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -79017872: - case 1845434661: { - if (input.isAtField(FieldNames.optionId)) { - if (!input.trySkipNullValue()) { - optionId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2073378034: - case 126941351: { - if (input.isAtField(FieldNames.isValid)) { - if (!input.trySkipNullValue()) { - isValid = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 951117504: { - if (input.isAtField(FieldNames.confirm)) { - if (!input.trySkipNullValue()) { - confirm = input.readBool(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1606398415: - case -1464536140: { - if (input.isAtField(FieldNames.displayValue)) { - if (!input.trySkipNullValue()) { - input.readMessage(displayValue); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -276995904: - case -1123762490: { - if (input.isAtField(FieldNames.optionResultInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(optionResultInfo); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueOptionInfo clone() { - return new RogueCommonDialogueOptionInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueOptionInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueOptionInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueOptionInfo parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueOptionInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueOptionInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueOptionInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueOptionInfo create() { - return RogueCommonDialogueOptionInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName argId = FieldName.forField("argId", "arg_id"); - - static final FieldName optionId = FieldName.forField("optionId", "option_id"); - - static final FieldName isValid = FieldName.forField("isValid", "is_valid"); - - static final FieldName confirm = FieldName.forField("confirm"); - - static final FieldName displayValue = FieldName.forField("displayValue", "display_value"); - - static final FieldName optionResultInfo = FieldName.forField("optionResultInfo", "option_result_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java deleted file mode 100644 index ef452d1..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonDialogueOptionResultInfoOuterClass.java +++ /dev/null @@ -1,325 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonDialogueOptionResultInfoOuterClass { - /** - * Protobuf type {@code RogueCommonDialogueOptionResultInfo} - */ - public static final class RogueCommonDialogueOptionResultInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     * ILNKLKJEIKF NJFNJKJPNAP = 2; // 0x18 -> 24 -> RogueOptionEffectNousValueInfo, nous_result_info
-     * 
- * - * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 14; - */ - private final RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo battleResultInfo = RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo.newInstance(); - - private RogueCommonDialogueOptionResultInfo() { - } - - /** - * @return a new empty instance of {@code RogueCommonDialogueOptionResultInfo} - */ - public static RogueCommonDialogueOptionResultInfo newInstance() { - return new RogueCommonDialogueOptionResultInfo(); - } - - public boolean hasOptionResult() { - return (((bitField0_ & 0x00000001)) != 0); - } - - public RogueCommonDialogueOptionResultInfo clearOptionResult() { - if (hasOptionResult()) { - clearBattleResultInfo(); - } - return this; - } - - /** - *
-     * ILNKLKJEIKF NJFNJKJPNAP = 2; // 0x18 -> 24 -> RogueOptionEffectNousValueInfo, nous_result_info
-     * 
- * - * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 14; - * @return whether the battleResultInfo field is set - */ - public boolean hasBattleResultInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     * ILNKLKJEIKF NJFNJKJPNAP = 2; // 0x18 -> 24 -> RogueOptionEffectNousValueInfo, nous_result_info
-     * 
- * - * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 14; - * @return this - */ - public RogueCommonDialogueOptionResultInfo clearBattleResultInfo() { - bitField0_ &= ~0x00000001; - battleResultInfo.clear(); - return this; - } - - /** - *
-     * ILNKLKJEIKF NJFNJKJPNAP = 2; // 0x18 -> 24 -> RogueOptionEffectNousValueInfo, nous_result_info
-     * 
- * - * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBattleResultInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo getBattleResultInfo( - ) { - return battleResultInfo; - } - - /** - *
-     * ILNKLKJEIKF NJFNJKJPNAP = 2; // 0x18 -> 24 -> RogueOptionEffectNousValueInfo, nous_result_info
-     * 
- * - * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo getMutableBattleResultInfo( - ) { - bitField0_ |= 0x00000001; - return battleResultInfo; - } - - /** - *
-     * ILNKLKJEIKF NJFNJKJPNAP = 2; // 0x18 -> 24 -> RogueOptionEffectNousValueInfo, nous_result_info
-     * 
- * - * optional .RogueCommonDialogueOptionBattleResultInfo battle_result_info = 14; - * @param value the battleResultInfo to set - * @return this - */ - public RogueCommonDialogueOptionResultInfo setBattleResultInfo( - final RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo value) { - bitField0_ |= 0x00000001; - battleResultInfo.copyFrom(value); - return this; - } - - @Override - public RogueCommonDialogueOptionResultInfo copyFrom( - final RogueCommonDialogueOptionResultInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - battleResultInfo.copyFrom(other.battleResultInfo); - } - return this; - } - - @Override - public RogueCommonDialogueOptionResultInfo mergeFrom( - final RogueCommonDialogueOptionResultInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBattleResultInfo()) { - getMutableBattleResultInfo().mergeFrom(other.battleResultInfo); - } - return this; - } - - @Override - public RogueCommonDialogueOptionResultInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - battleResultInfo.clear(); - return this; - } - - @Override - public RogueCommonDialogueOptionResultInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - battleResultInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonDialogueOptionResultInfo)) { - return false; - } - RogueCommonDialogueOptionResultInfo other = (RogueCommonDialogueOptionResultInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBattleResultInfo() || battleResultInfo.equals(other.battleResultInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(battleResultInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(battleResultInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonDialogueOptionResultInfo mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 114: { - // battleResultInfo - input.readMessage(battleResultInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.battleResultInfo, battleResultInfo); - } - output.endObject(); - } - - @Override - public RogueCommonDialogueOptionResultInfo mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 599519555: - case -605996407: { - if (input.isAtField(FieldNames.battleResultInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(battleResultInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonDialogueOptionResultInfo clone() { - return new RogueCommonDialogueOptionResultInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonDialogueOptionResultInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), data).checkInitialized(); - } - - public static RogueCommonDialogueOptionResultInfo parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), input).checkInitialized(); - } - - public static RogueCommonDialogueOptionResultInfo parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new RogueCommonDialogueOptionResultInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonDialogueOptionResultInfo messages - */ - public static MessageFactory getFactory() { - return RogueCommonDialogueOptionResultInfoFactory.INSTANCE; - } - - private enum RogueCommonDialogueOptionResultInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonDialogueOptionResultInfo create() { - return RogueCommonDialogueOptionResultInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName battleResultInfo = FieldName.forField("battleResultInfo", "battle_result_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java deleted file mode 100644 index 65f177e..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCommonPendingActionOuterClass.java +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCommonPendingActionOuterClass { - /** - * Protobuf type {@code RogueCommonPendingAction} - */ - public static final class RogueCommonPendingAction extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 unique_id = 15; - */ - private int uniqueId; - - /** - * optional .RogueAction rogue_action = 9; - */ - private final RogueActionOuterClass.RogueAction rogueAction = RogueActionOuterClass.RogueAction.newInstance(); - - private RogueCommonPendingAction() { - } - - /** - * @return a new empty instance of {@code RogueCommonPendingAction} - */ - public static RogueCommonPendingAction newInstance() { - return new RogueCommonPendingAction(); - } - - /** - * optional uint32 unique_id = 15; - * @return whether the uniqueId field is set - */ - public boolean hasUniqueId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 unique_id = 15; - * @return this - */ - public RogueCommonPendingAction clearUniqueId() { - bitField0_ &= ~0x00000001; - uniqueId = 0; - return this; - } - - /** - * optional uint32 unique_id = 15; - * @return the uniqueId - */ - public int getUniqueId() { - return uniqueId; - } - - /** - * optional uint32 unique_id = 15; - * @param value the uniqueId to set - * @return this - */ - public RogueCommonPendingAction setUniqueId(final int value) { - bitField0_ |= 0x00000001; - uniqueId = value; - return this; - } - - /** - * optional .RogueAction rogue_action = 9; - * @return whether the rogueAction field is set - */ - public boolean hasRogueAction() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueAction rogue_action = 9; - * @return this - */ - public RogueCommonPendingAction clearRogueAction() { - bitField0_ &= ~0x00000002; - rogueAction.clear(); - return this; - } - - /** - * optional .RogueAction rogue_action = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAction()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueActionOuterClass.RogueAction getRogueAction() { - return rogueAction; - } - - /** - * optional .RogueAction rogue_action = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueActionOuterClass.RogueAction getMutableRogueAction() { - bitField0_ |= 0x00000002; - return rogueAction; - } - - /** - * optional .RogueAction rogue_action = 9; - * @param value the rogueAction to set - * @return this - */ - public RogueCommonPendingAction setRogueAction(final RogueActionOuterClass.RogueAction value) { - bitField0_ |= 0x00000002; - rogueAction.copyFrom(value); - return this; - } - - @Override - public RogueCommonPendingAction copyFrom(final RogueCommonPendingAction other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - uniqueId = other.uniqueId; - rogueAction.copyFrom(other.rogueAction); - } - return this; - } - - @Override - public RogueCommonPendingAction mergeFrom(final RogueCommonPendingAction other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUniqueId()) { - setUniqueId(other.uniqueId); - } - if (other.hasRogueAction()) { - getMutableRogueAction().mergeFrom(other.rogueAction); - } - return this; - } - - @Override - public RogueCommonPendingAction clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - uniqueId = 0; - rogueAction.clear(); - return this; - } - - @Override - public RogueCommonPendingAction clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueAction.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCommonPendingAction)) { - return false; - } - RogueCommonPendingAction other = (RogueCommonPendingAction) o; - return bitField0_ == other.bitField0_ - && (!hasUniqueId() || uniqueId == other.uniqueId) - && (!hasRogueAction() || rogueAction.equals(other.rogueAction)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(uniqueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rogueAction); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uniqueId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAction); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCommonPendingAction mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 120: { - // uniqueId - uniqueId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rogueAction - input.readMessage(rogueAction); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.uniqueId, uniqueId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueAction, rogueAction); - } - output.endObject(); - } - - @Override - public RogueCommonPendingAction mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -294460212: - case -538310583: { - if (input.isAtField(FieldNames.uniqueId)) { - if (!input.trySkipNullValue()) { - uniqueId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1366582096: - case 1368298555: { - if (input.isAtField(FieldNames.rogueAction)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAction); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCommonPendingAction clone() { - return new RogueCommonPendingAction().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCommonPendingAction parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCommonPendingAction(), data).checkInitialized(); - } - - public static RogueCommonPendingAction parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonPendingAction(), input).checkInitialized(); - } - - public static RogueCommonPendingAction parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCommonPendingAction(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCommonPendingAction messages - */ - public static MessageFactory getFactory() { - return RogueCommonPendingActionFactory.INSTANCE; - } - - private enum RogueCommonPendingActionFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCommonPendingAction create() { - return RogueCommonPendingAction.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName uniqueId = FieldName.forField("uniqueId", "unique_id"); - - static final FieldName rogueAction = FieldName.forField("rogueAction", "rogue_action"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCurVirtualItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCurVirtualItemInfoOuterClass.java deleted file mode 100644 index 78b3909..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCurVirtualItemInfoOuterClass.java +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCurVirtualItemInfoOuterClass { - /** - * Protobuf type {@code RogueCurVirtualItemInfo} - */ - public static final class RogueCurVirtualItemInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 cur_rogue_coin = 6; - */ - private int curRogueCoin; - - /** - * optional uint32 cur_talent_coin = 10; - */ - private int curTalentCoin; - - private RogueCurVirtualItemInfo() { - } - - /** - * @return a new empty instance of {@code RogueCurVirtualItemInfo} - */ - public static RogueCurVirtualItemInfo newInstance() { - return new RogueCurVirtualItemInfo(); - } - - /** - * optional uint32 cur_rogue_coin = 6; - * @return whether the curRogueCoin field is set - */ - public boolean hasCurRogueCoin() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 cur_rogue_coin = 6; - * @return this - */ - public RogueCurVirtualItemInfo clearCurRogueCoin() { - bitField0_ &= ~0x00000001; - curRogueCoin = 0; - return this; - } - - /** - * optional uint32 cur_rogue_coin = 6; - * @return the curRogueCoin - */ - public int getCurRogueCoin() { - return curRogueCoin; - } - - /** - * optional uint32 cur_rogue_coin = 6; - * @param value the curRogueCoin to set - * @return this - */ - public RogueCurVirtualItemInfo setCurRogueCoin(final int value) { - bitField0_ |= 0x00000001; - curRogueCoin = value; - return this; - } - - /** - * optional uint32 cur_talent_coin = 10; - * @return whether the curTalentCoin field is set - */ - public boolean hasCurTalentCoin() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cur_talent_coin = 10; - * @return this - */ - public RogueCurVirtualItemInfo clearCurTalentCoin() { - bitField0_ &= ~0x00000002; - curTalentCoin = 0; - return this; - } - - /** - * optional uint32 cur_talent_coin = 10; - * @return the curTalentCoin - */ - public int getCurTalentCoin() { - return curTalentCoin; - } - - /** - * optional uint32 cur_talent_coin = 10; - * @param value the curTalentCoin to set - * @return this - */ - public RogueCurVirtualItemInfo setCurTalentCoin(final int value) { - bitField0_ |= 0x00000002; - curTalentCoin = value; - return this; - } - - @Override - public RogueCurVirtualItemInfo copyFrom(final RogueCurVirtualItemInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - curRogueCoin = other.curRogueCoin; - curTalentCoin = other.curTalentCoin; - } - return this; - } - - @Override - public RogueCurVirtualItemInfo mergeFrom(final RogueCurVirtualItemInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasCurRogueCoin()) { - setCurRogueCoin(other.curRogueCoin); - } - if (other.hasCurTalentCoin()) { - setCurTalentCoin(other.curTalentCoin); - } - return this; - } - - @Override - public RogueCurVirtualItemInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - curRogueCoin = 0; - curTalentCoin = 0; - return this; - } - - @Override - public RogueCurVirtualItemInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCurVirtualItemInfo)) { - return false; - } - RogueCurVirtualItemInfo other = (RogueCurVirtualItemInfo) o; - return bitField0_ == other.bitField0_ - && (!hasCurRogueCoin() || curRogueCoin == other.curRogueCoin) - && (!hasCurTalentCoin() || curTalentCoin == other.curTalentCoin); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(curRogueCoin); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(curTalentCoin); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curRogueCoin); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curTalentCoin); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCurVirtualItemInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // curRogueCoin - curRogueCoin = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // curTalentCoin - curTalentCoin = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curRogueCoin, curRogueCoin); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curTalentCoin, curTalentCoin); - } - output.endObject(); - } - - @Override - public RogueCurVirtualItemInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1836271915: - case -979997387: { - if (input.isAtField(FieldNames.curRogueCoin)) { - if (!input.trySkipNullValue()) { - curRogueCoin = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -658043907: - case 569371269: { - if (input.isAtField(FieldNames.curTalentCoin)) { - if (!input.trySkipNullValue()) { - curTalentCoin = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCurVirtualItemInfo clone() { - return new RogueCurVirtualItemInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCurVirtualItemInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCurVirtualItemInfo(), data).checkInitialized(); - } - - public static RogueCurVirtualItemInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCurVirtualItemInfo(), input).checkInitialized(); - } - - public static RogueCurVirtualItemInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCurVirtualItemInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCurVirtualItemInfo messages - */ - public static MessageFactory getFactory() { - return RogueCurVirtualItemInfoFactory.INSTANCE; - } - - private enum RogueCurVirtualItemInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCurVirtualItemInfo create() { - return RogueCurVirtualItemInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName curRogueCoin = FieldName.forField("curRogueCoin", "cur_rogue_coin"); - - static final FieldName curTalentCoin = FieldName.forField("curTalentCoin", "cur_talent_coin"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java deleted file mode 100644 index 49d7e3f..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueCurrentInfoOuterClass.java +++ /dev/null @@ -1,1054 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueCurrentInfoOuterClass { - /** - * Protobuf type {@code RogueCurrentInfo} - */ - public static final class RogueCurrentInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  PAOGLFPDNOA JGHAOFCGEMP = 3;
-     * 
- * - * optional .RogueStatus status = 7; - */ - private int status; - - /** - * optional .RogueCommonPendingAction pending_action = 2; - */ - private final RogueCommonPendingActionOuterClass.RogueCommonPendingAction pendingAction = RogueCommonPendingActionOuterClass.RogueCommonPendingAction.newInstance(); - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item = 6; - */ - private final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo rogueVirtualItem = RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo.newInstance(); - - /** - * optional .RogueAvatarInfo rogue_avatar_info = 8; - */ - private final RogueAvatarInfoOuterClass.RogueAvatarInfo rogueAvatarInfo = RogueAvatarInfoOuterClass.RogueAvatarInfo.newInstance(); - - /** - * optional .RogueMiracleInfo rogue_miracle_info = 9; - */ - private final RogueMiracleInfoOuterClass.RogueMiracleInfo rogueMiracleInfo = RogueMiracleInfoOuterClass.RogueMiracleInfo.newInstance(); - - /** - * optional .RogueAeon rogue_aeon_info = 10; - */ - private final RogueAeonOuterClass.RogueAeon rogueAeonInfo = RogueAeonOuterClass.RogueAeon.newInstance(); - - /** - *
-     *  bool GPOIMNADJOH = 5;
-     * 
- * - * optional .RogueMapInfo room_map = 13; - */ - private final RogueMapInfoOuterClass.RogueMapInfo roomMap = RogueMapInfoOuterClass.RogueMapInfo.newInstance(); - - /** - * optional .RogueBuffInfo rogue_buff_info = 15; - */ - private final RogueBuffInfoOuterClass.RogueBuffInfo rogueBuffInfo = RogueBuffInfoOuterClass.RogueBuffInfo.newInstance(); - - private RogueCurrentInfo() { - } - - /** - * @return a new empty instance of {@code RogueCurrentInfo} - */ - public static RogueCurrentInfo newInstance() { - return new RogueCurrentInfo(); - } - - /** - *
-     *  PAOGLFPDNOA JGHAOFCGEMP = 3;
-     * 
- * - * optional .RogueStatus status = 7; - * @return whether the status field is set - */ - public boolean hasStatus() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  PAOGLFPDNOA JGHAOFCGEMP = 3;
-     * 
- * - * optional .RogueStatus status = 7; - * @return this - */ - public RogueCurrentInfo clearStatus() { - bitField0_ &= ~0x00000001; - status = 0; - return this; - } - - /** - *
-     *  PAOGLFPDNOA JGHAOFCGEMP = 3;
-     * 
- * - * optional .RogueStatus status = 7; - * @return the status - */ - public RogueStatusOuterClass.RogueStatus getStatus() { - return RogueStatusOuterClass.RogueStatus.forNumber(status); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueCurrentInfo#getStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getStatusValue() { - return status; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueStatusOuterClass.RogueStatus}. Setting an invalid value - * can cause {@link RogueCurrentInfo#getStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueCurrentInfo setStatusValue(final int value) { - bitField0_ |= 0x00000001; - status = value; - return this; - } - - /** - *
-     *  PAOGLFPDNOA JGHAOFCGEMP = 3;
-     * 
- * - * optional .RogueStatus status = 7; - * @param value the status to set - * @return this - */ - public RogueCurrentInfo setStatus(final RogueStatusOuterClass.RogueStatus value) { - bitField0_ |= 0x00000001; - status = value.getNumber(); - return this; - } - - /** - * optional .RogueCommonPendingAction pending_action = 2; - * @return whether the pendingAction field is set - */ - public boolean hasPendingAction() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueCommonPendingAction pending_action = 2; - * @return this - */ - public RogueCurrentInfo clearPendingAction() { - bitField0_ &= ~0x00000002; - pendingAction.clear(); - return this; - } - - /** - * optional .RogueCommonPendingAction pending_action = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutablePendingAction()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getPendingAction() { - return pendingAction; - } - - /** - * optional .RogueCommonPendingAction pending_action = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getMutablePendingAction() { - bitField0_ |= 0x00000002; - return pendingAction; - } - - /** - * optional .RogueCommonPendingAction pending_action = 2; - * @param value the pendingAction to set - * @return this - */ - public RogueCurrentInfo setPendingAction( - final RogueCommonPendingActionOuterClass.RogueCommonPendingAction value) { - bitField0_ |= 0x00000002; - pendingAction.copyFrom(value); - return this; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item = 6; - * @return whether the rogueVirtualItem field is set - */ - public boolean hasRogueVirtualItem() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item = 6; - * @return this - */ - public RogueCurrentInfo clearRogueVirtualItem() { - bitField0_ &= ~0x00000004; - rogueVirtualItem.clear(); - return this; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueVirtualItem()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo getRogueVirtualItem() { - return rogueVirtualItem; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo getMutableRogueVirtualItem() { - bitField0_ |= 0x00000004; - return rogueVirtualItem; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item = 6; - * @param value the rogueVirtualItem to set - * @return this - */ - public RogueCurrentInfo setRogueVirtualItem( - final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo value) { - bitField0_ |= 0x00000004; - rogueVirtualItem.copyFrom(value); - return this; - } - - /** - * optional .RogueAvatarInfo rogue_avatar_info = 8; - * @return whether the rogueAvatarInfo field is set - */ - public boolean hasRogueAvatarInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RogueAvatarInfo rogue_avatar_info = 8; - * @return this - */ - public RogueCurrentInfo clearRogueAvatarInfo() { - bitField0_ &= ~0x00000008; - rogueAvatarInfo.clear(); - return this; - } - - /** - * optional .RogueAvatarInfo rogue_avatar_info = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAvatarInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueAvatarInfoOuterClass.RogueAvatarInfo getRogueAvatarInfo() { - return rogueAvatarInfo; - } - - /** - * optional .RogueAvatarInfo rogue_avatar_info = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueAvatarInfoOuterClass.RogueAvatarInfo getMutableRogueAvatarInfo() { - bitField0_ |= 0x00000008; - return rogueAvatarInfo; - } - - /** - * optional .RogueAvatarInfo rogue_avatar_info = 8; - * @param value the rogueAvatarInfo to set - * @return this - */ - public RogueCurrentInfo setRogueAvatarInfo( - final RogueAvatarInfoOuterClass.RogueAvatarInfo value) { - bitField0_ |= 0x00000008; - rogueAvatarInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueMiracleInfo rogue_miracle_info = 9; - * @return whether the rogueMiracleInfo field is set - */ - public boolean hasRogueMiracleInfo() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueMiracleInfo rogue_miracle_info = 9; - * @return this - */ - public RogueCurrentInfo clearRogueMiracleInfo() { - bitField0_ &= ~0x00000010; - rogueMiracleInfo.clear(); - return this; - } - - /** - * optional .RogueMiracleInfo rogue_miracle_info = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueMiracleInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleInfoOuterClass.RogueMiracleInfo getRogueMiracleInfo() { - return rogueMiracleInfo; - } - - /** - * optional .RogueMiracleInfo rogue_miracle_info = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleInfoOuterClass.RogueMiracleInfo getMutableRogueMiracleInfo() { - bitField0_ |= 0x00000010; - return rogueMiracleInfo; - } - - /** - * optional .RogueMiracleInfo rogue_miracle_info = 9; - * @param value the rogueMiracleInfo to set - * @return this - */ - public RogueCurrentInfo setRogueMiracleInfo( - final RogueMiracleInfoOuterClass.RogueMiracleInfo value) { - bitField0_ |= 0x00000010; - rogueMiracleInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueAeon rogue_aeon_info = 10; - * @return whether the rogueAeonInfo field is set - */ - public boolean hasRogueAeonInfo() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .RogueAeon rogue_aeon_info = 10; - * @return this - */ - public RogueCurrentInfo clearRogueAeonInfo() { - bitField0_ &= ~0x00000020; - rogueAeonInfo.clear(); - return this; - } - - /** - * optional .RogueAeon rogue_aeon_info = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAeonInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueAeonOuterClass.RogueAeon getRogueAeonInfo() { - return rogueAeonInfo; - } - - /** - * optional .RogueAeon rogue_aeon_info = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueAeonOuterClass.RogueAeon getMutableRogueAeonInfo() { - bitField0_ |= 0x00000020; - return rogueAeonInfo; - } - - /** - * optional .RogueAeon rogue_aeon_info = 10; - * @param value the rogueAeonInfo to set - * @return this - */ - public RogueCurrentInfo setRogueAeonInfo(final RogueAeonOuterClass.RogueAeon value) { - bitField0_ |= 0x00000020; - rogueAeonInfo.copyFrom(value); - return this; - } - - /** - *
-     *  bool GPOIMNADJOH = 5;
-     * 
- * - * optional .RogueMapInfo room_map = 13; - * @return whether the roomMap field is set - */ - public boolean hasRoomMap() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - *
-     *  bool GPOIMNADJOH = 5;
-     * 
- * - * optional .RogueMapInfo room_map = 13; - * @return this - */ - public RogueCurrentInfo clearRoomMap() { - bitField0_ &= ~0x00000040; - roomMap.clear(); - return this; - } - - /** - *
-     *  bool GPOIMNADJOH = 5;
-     * 
- * - * optional .RogueMapInfo room_map = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRoomMap()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMapInfoOuterClass.RogueMapInfo getRoomMap() { - return roomMap; - } - - /** - *
-     *  bool GPOIMNADJOH = 5;
-     * 
- * - * optional .RogueMapInfo room_map = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMapInfoOuterClass.RogueMapInfo getMutableRoomMap() { - bitField0_ |= 0x00000040; - return roomMap; - } - - /** - *
-     *  bool GPOIMNADJOH = 5;
-     * 
- * - * optional .RogueMapInfo room_map = 13; - * @param value the roomMap to set - * @return this - */ - public RogueCurrentInfo setRoomMap(final RogueMapInfoOuterClass.RogueMapInfo value) { - bitField0_ |= 0x00000040; - roomMap.copyFrom(value); - return this; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 15; - * @return whether the rogueBuffInfo field is set - */ - public boolean hasRogueBuffInfo() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 15; - * @return this - */ - public RogueCurrentInfo clearRogueBuffInfo() { - bitField0_ &= ~0x00000080; - rogueBuffInfo.clear(); - return this; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueBuffInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffInfoOuterClass.RogueBuffInfo getRogueBuffInfo() { - return rogueBuffInfo; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffInfoOuterClass.RogueBuffInfo getMutableRogueBuffInfo() { - bitField0_ |= 0x00000080; - return rogueBuffInfo; - } - - /** - * optional .RogueBuffInfo rogue_buff_info = 15; - * @param value the rogueBuffInfo to set - * @return this - */ - public RogueCurrentInfo setRogueBuffInfo(final RogueBuffInfoOuterClass.RogueBuffInfo value) { - bitField0_ |= 0x00000080; - rogueBuffInfo.copyFrom(value); - return this; - } - - @Override - public RogueCurrentInfo copyFrom(final RogueCurrentInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - status = other.status; - pendingAction.copyFrom(other.pendingAction); - rogueVirtualItem.copyFrom(other.rogueVirtualItem); - rogueAvatarInfo.copyFrom(other.rogueAvatarInfo); - rogueMiracleInfo.copyFrom(other.rogueMiracleInfo); - rogueAeonInfo.copyFrom(other.rogueAeonInfo); - roomMap.copyFrom(other.roomMap); - rogueBuffInfo.copyFrom(other.rogueBuffInfo); - } - return this; - } - - @Override - public RogueCurrentInfo mergeFrom(final RogueCurrentInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasStatus()) { - setStatusValue(other.status); - } - if (other.hasPendingAction()) { - getMutablePendingAction().mergeFrom(other.pendingAction); - } - if (other.hasRogueVirtualItem()) { - getMutableRogueVirtualItem().mergeFrom(other.rogueVirtualItem); - } - if (other.hasRogueAvatarInfo()) { - getMutableRogueAvatarInfo().mergeFrom(other.rogueAvatarInfo); - } - if (other.hasRogueMiracleInfo()) { - getMutableRogueMiracleInfo().mergeFrom(other.rogueMiracleInfo); - } - if (other.hasRogueAeonInfo()) { - getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); - } - if (other.hasRoomMap()) { - getMutableRoomMap().mergeFrom(other.roomMap); - } - if (other.hasRogueBuffInfo()) { - getMutableRogueBuffInfo().mergeFrom(other.rogueBuffInfo); - } - return this; - } - - @Override - public RogueCurrentInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - status = 0; - pendingAction.clear(); - rogueVirtualItem.clear(); - rogueAvatarInfo.clear(); - rogueMiracleInfo.clear(); - rogueAeonInfo.clear(); - roomMap.clear(); - rogueBuffInfo.clear(); - return this; - } - - @Override - public RogueCurrentInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - pendingAction.clearQuick(); - rogueVirtualItem.clearQuick(); - rogueAvatarInfo.clearQuick(); - rogueMiracleInfo.clearQuick(); - rogueAeonInfo.clearQuick(); - roomMap.clearQuick(); - rogueBuffInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueCurrentInfo)) { - return false; - } - RogueCurrentInfo other = (RogueCurrentInfo) o; - return bitField0_ == other.bitField0_ - && (!hasStatus() || status == other.status) - && (!hasPendingAction() || pendingAction.equals(other.pendingAction)) - && (!hasRogueVirtualItem() || rogueVirtualItem.equals(other.rogueVirtualItem)) - && (!hasRogueAvatarInfo() || rogueAvatarInfo.equals(other.rogueAvatarInfo)) - && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)) - && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)) - && (!hasRoomMap() || roomMap.equals(other.roomMap)) - && (!hasRogueBuffInfo() || rogueBuffInfo.equals(other.rogueBuffInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeEnumNoTag(status); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(pendingAction); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(rogueVirtualItem); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(rogueAvatarInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rogueMiracleInfo); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rogueAeonInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(roomMap); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(rogueBuffInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(pendingAction); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItem); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAvatarInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(roomMap); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueBuffInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueCurrentInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 56: { - // status - final int value = input.readInt32(); - if (RogueStatusOuterClass.RogueStatus.forNumber(value) != null) { - status = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 18) { - break; - } - } - case 18: { - // pendingAction - input.readMessage(pendingAction); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // rogueVirtualItem - input.readMessage(rogueVirtualItem); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // rogueAvatarInfo - input.readMessage(rogueAvatarInfo); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rogueMiracleInfo - input.readMessage(rogueMiracleInfo); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // rogueAeonInfo - input.readMessage(rogueAeonInfo); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // roomMap - input.readMessage(roomMap); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // rogueBuffInfo - input.readMessage(rogueBuffInfo); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.status, status, RogueStatusOuterClass.RogueStatus.converter()); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.pendingAction, pendingAction); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueVirtualItem, rogueVirtualItem); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.rogueAvatarInfo, rogueAvatarInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.roomMap, roomMap); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.rogueBuffInfo, rogueBuffInfo); - } - output.endObject(); - } - - @Override - public RogueCurrentInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -892481550: { - if (input.isAtField(FieldNames.status)) { - if (!input.trySkipNullValue()) { - final RogueStatusOuterClass.RogueStatus value = input.readEnum(RogueStatusOuterClass.RogueStatus.converter()); - if (value != null) { - status = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -110680403: - case 1646545374: { - if (input.isAtField(FieldNames.pendingAction)) { - if (!input.trySkipNullValue()) { - input.readMessage(pendingAction); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2090167940: - case -856063476: { - if (input.isAtField(FieldNames.rogueVirtualItem)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueVirtualItem); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1966631135: - case 667955439: { - if (input.isAtField(FieldNames.rogueAvatarInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAvatarInfo); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -452511099: - case 1925436929: { - if (input.isAtField(FieldNames.rogueMiracleInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracleInfo); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1685018549: - case -1375922619: { - if (input.isAtField(FieldNames.rogueAeonInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAeonInfo); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1379875457: - case -172986376: { - if (input.isAtField(FieldNames.roomMap)) { - if (!input.trySkipNullValue()) { - input.readMessage(roomMap); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1107898267: - case -694847243: { - if (input.isAtField(FieldNames.rogueBuffInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueBuffInfo); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueCurrentInfo clone() { - return new RogueCurrentInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueCurrentInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueCurrentInfo(), data).checkInitialized(); - } - - public static RogueCurrentInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCurrentInfo(), input).checkInitialized(); - } - - public static RogueCurrentInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueCurrentInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueCurrentInfo messages - */ - public static MessageFactory getFactory() { - return RogueCurrentInfoFactory.INSTANCE; - } - - private enum RogueCurrentInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueCurrentInfo create() { - return RogueCurrentInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName status = FieldName.forField("status"); - - static final FieldName pendingAction = FieldName.forField("pendingAction", "pending_action"); - - static final FieldName rogueVirtualItem = FieldName.forField("rogueVirtualItem", "rogue_virtual_item"); - - static final FieldName rogueAvatarInfo = FieldName.forField("rogueAvatarInfo", "rogue_avatar_info"); - - static final FieldName rogueMiracleInfo = FieldName.forField("rogueMiracleInfo", "rogue_miracle_info"); - - static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); - - static final FieldName roomMap = FieldName.forField("roomMap", "room_map"); - - static final FieldName rogueBuffInfo = FieldName.forField("rogueBuffInfo", "rogue_buff_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java deleted file mode 100644 index f896b1b..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventOuterClass.java +++ /dev/null @@ -1,743 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueDialogueEventOuterClass { - /** - * Protobuf type {@code RogueDialogueEvent} - */ - public static final class RogueDialogueEvent extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 npc_id = 1; - */ - private int npcId; - - /** - * optional uint32 dialogue_group_id = 5; - */ - private int dialogueGroupId; - - /** - * optional uint32 game_mode_type = 6; - */ - private int gameModeType; - - /** - * optional uint32 MBNBIEJIBFJ = 13; - */ - private int mBNBIEJIBFJ; - - /** - * repeated uint32 select_event_id = 11; - */ - private final RepeatedInt selectEventId = RepeatedInt.newEmptyInstance(); - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - */ - private final RepeatedMessage rogueDialogueEventParam = RepeatedMessage.newEmptyInstance(RogueDialogueEventParamOuterClass.RogueDialogueEventParam.getFactory()); - - private RogueDialogueEvent() { - } - - /** - * @return a new empty instance of {@code RogueDialogueEvent} - */ - public static RogueDialogueEvent newInstance() { - return new RogueDialogueEvent(); - } - - /** - * optional uint32 npc_id = 1; - * @return whether the npcId field is set - */ - public boolean hasNpcId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 npc_id = 1; - * @return this - */ - public RogueDialogueEvent clearNpcId() { - bitField0_ &= ~0x00000001; - npcId = 0; - return this; - } - - /** - * optional uint32 npc_id = 1; - * @return the npcId - */ - public int getNpcId() { - return npcId; - } - - /** - * optional uint32 npc_id = 1; - * @param value the npcId to set - * @return this - */ - public RogueDialogueEvent setNpcId(final int value) { - bitField0_ |= 0x00000001; - npcId = value; - return this; - } - - /** - * optional uint32 dialogue_group_id = 5; - * @return whether the dialogueGroupId field is set - */ - public boolean hasDialogueGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dialogue_group_id = 5; - * @return this - */ - public RogueDialogueEvent clearDialogueGroupId() { - bitField0_ &= ~0x00000002; - dialogueGroupId = 0; - return this; - } - - /** - * optional uint32 dialogue_group_id = 5; - * @return the dialogueGroupId - */ - public int getDialogueGroupId() { - return dialogueGroupId; - } - - /** - * optional uint32 dialogue_group_id = 5; - * @param value the dialogueGroupId to set - * @return this - */ - public RogueDialogueEvent setDialogueGroupId(final int value) { - bitField0_ |= 0x00000002; - dialogueGroupId = value; - return this; - } - - /** - * optional uint32 game_mode_type = 6; - * @return whether the gameModeType field is set - */ - public boolean hasGameModeType() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 game_mode_type = 6; - * @return this - */ - public RogueDialogueEvent clearGameModeType() { - bitField0_ &= ~0x00000004; - gameModeType = 0; - return this; - } - - /** - * optional uint32 game_mode_type = 6; - * @return the gameModeType - */ - public int getGameModeType() { - return gameModeType; - } - - /** - * optional uint32 game_mode_type = 6; - * @param value the gameModeType to set - * @return this - */ - public RogueDialogueEvent setGameModeType(final int value) { - bitField0_ |= 0x00000004; - gameModeType = value; - return this; - } - - /** - * optional uint32 MBNBIEJIBFJ = 13; - * @return whether the mBNBIEJIBFJ field is set - */ - public boolean hasMBNBIEJIBFJ() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 MBNBIEJIBFJ = 13; - * @return this - */ - public RogueDialogueEvent clearMBNBIEJIBFJ() { - bitField0_ &= ~0x00000008; - mBNBIEJIBFJ = 0; - return this; - } - - /** - * optional uint32 MBNBIEJIBFJ = 13; - * @return the mBNBIEJIBFJ - */ - public int getMBNBIEJIBFJ() { - return mBNBIEJIBFJ; - } - - /** - * optional uint32 MBNBIEJIBFJ = 13; - * @param value the mBNBIEJIBFJ to set - * @return this - */ - public RogueDialogueEvent setMBNBIEJIBFJ(final int value) { - bitField0_ |= 0x00000008; - mBNBIEJIBFJ = value; - return this; - } - - /** - * repeated uint32 select_event_id = 11; - * @return whether the selectEventId field is set - */ - public boolean hasSelectEventId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 select_event_id = 11; - * @return this - */ - public RogueDialogueEvent clearSelectEventId() { - bitField0_ &= ~0x00000010; - selectEventId.clear(); - return this; - } - - /** - * repeated uint32 select_event_id = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableSelectEventId()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getSelectEventId() { - return selectEventId; - } - - /** - * repeated uint32 select_event_id = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableSelectEventId() { - bitField0_ |= 0x00000010; - return selectEventId; - } - - /** - * repeated uint32 select_event_id = 11; - * @param value the selectEventId to add - * @return this - */ - public RogueDialogueEvent addSelectEventId(final int value) { - bitField0_ |= 0x00000010; - selectEventId.add(value); - return this; - } - - /** - * repeated uint32 select_event_id = 11; - * @param values the selectEventId to add - * @return this - */ - public RogueDialogueEvent addAllSelectEventId(final int... values) { - bitField0_ |= 0x00000010; - selectEventId.addAll(values); - return this; - } - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - * @return whether the rogueDialogueEventParam field is set - */ - public boolean hasRogueDialogueEventParam() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - * @return this - */ - public RogueDialogueEvent clearRogueDialogueEventParam() { - bitField0_ &= ~0x00000020; - rogueDialogueEventParam.clear(); - return this; - } - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueDialogueEventParam()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueDialogueEventParam( - ) { - return rogueDialogueEventParam; - } - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueDialogueEventParam( - ) { - bitField0_ |= 0x00000020; - return rogueDialogueEventParam; - } - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - * @param value the rogueDialogueEventParam to add - * @return this - */ - public RogueDialogueEvent addRogueDialogueEventParam( - final RogueDialogueEventParamOuterClass.RogueDialogueEventParam value) { - bitField0_ |= 0x00000020; - rogueDialogueEventParam.add(value); - return this; - } - - /** - * repeated .RogueDialogueEventParam rogue_dialogue_event_param = 9; - * @param values the rogueDialogueEventParam to add - * @return this - */ - public RogueDialogueEvent addAllRogueDialogueEventParam( - final RogueDialogueEventParamOuterClass.RogueDialogueEventParam... values) { - bitField0_ |= 0x00000020; - rogueDialogueEventParam.addAll(values); - return this; - } - - @Override - public RogueDialogueEvent copyFrom(final RogueDialogueEvent other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - npcId = other.npcId; - dialogueGroupId = other.dialogueGroupId; - gameModeType = other.gameModeType; - mBNBIEJIBFJ = other.mBNBIEJIBFJ; - selectEventId.copyFrom(other.selectEventId); - rogueDialogueEventParam.copyFrom(other.rogueDialogueEventParam); - } - return this; - } - - @Override - public RogueDialogueEvent mergeFrom(final RogueDialogueEvent other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasNpcId()) { - setNpcId(other.npcId); - } - if (other.hasDialogueGroupId()) { - setDialogueGroupId(other.dialogueGroupId); - } - if (other.hasGameModeType()) { - setGameModeType(other.gameModeType); - } - if (other.hasMBNBIEJIBFJ()) { - setMBNBIEJIBFJ(other.mBNBIEJIBFJ); - } - if (other.hasSelectEventId()) { - getMutableSelectEventId().addAll(other.selectEventId); - } - if (other.hasRogueDialogueEventParam()) { - getMutableRogueDialogueEventParam().addAll(other.rogueDialogueEventParam); - } - return this; - } - - @Override - public RogueDialogueEvent clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - npcId = 0; - dialogueGroupId = 0; - gameModeType = 0; - mBNBIEJIBFJ = 0; - selectEventId.clear(); - rogueDialogueEventParam.clear(); - return this; - } - - @Override - public RogueDialogueEvent clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - selectEventId.clear(); - rogueDialogueEventParam.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueDialogueEvent)) { - return false; - } - RogueDialogueEvent other = (RogueDialogueEvent) o; - return bitField0_ == other.bitField0_ - && (!hasNpcId() || npcId == other.npcId) - && (!hasDialogueGroupId() || dialogueGroupId == other.dialogueGroupId) - && (!hasGameModeType() || gameModeType == other.gameModeType) - && (!hasMBNBIEJIBFJ() || mBNBIEJIBFJ == other.mBNBIEJIBFJ) - && (!hasSelectEventId() || selectEventId.equals(other.selectEventId)) - && (!hasRogueDialogueEventParam() || rogueDialogueEventParam.equals(other.rogueDialogueEventParam)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(npcId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(dialogueGroupId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(gameModeType); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(mBNBIEJIBFJ); - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < selectEventId.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(selectEventId.array()[i]); - } - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < rogueDialogueEventParam.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rogueDialogueEventParam.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(npcId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueGroupId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mBNBIEJIBFJ); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * selectEventId.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(selectEventId); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * rogueDialogueEventParam.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueDialogueEventParam); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueDialogueEvent mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // npcId - npcId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // dialogueGroupId - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // gameModeType - gameModeType = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // mBNBIEJIBFJ - mBNBIEJIBFJ = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // selectEventId [packed=true] - input.readPackedUInt32(selectEventId, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rogueDialogueEventParam - tag = input.readRepeatedMessage(rogueDialogueEventParam, tag); - bitField0_ |= 0x00000020; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 88: { - // selectEventId [packed=false] - tag = input.readRepeatedUInt32(selectEventId, tag); - bitField0_ |= 0x00000010; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.npcId, npcId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueGroupId, dialogueGroupId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.gameModeType, gameModeType); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.mBNBIEJIBFJ, mBNBIEJIBFJ); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.selectEventId, selectEventId); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.rogueDialogueEventParam, rogueDialogueEventParam); - } - output.endObject(); - } - - @Override - public RogueDialogueEvent mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 105021404: - case -1039282375: { - if (input.isAtField(FieldNames.npcId)) { - if (!input.trySkipNullValue()) { - npcId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1758320386: - case 1899979106: { - if (input.isAtField(FieldNames.dialogueGroupId)) { - if (!input.trySkipNullValue()) { - dialogueGroupId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -464498289: - case 1937775689: { - if (input.isAtField(FieldNames.gameModeType)) { - if (!input.trySkipNullValue()) { - gameModeType = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1211798818: { - if (input.isAtField(FieldNames.mBNBIEJIBFJ)) { - if (!input.trySkipNullValue()) { - mBNBIEJIBFJ = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -653046599: - case 2115999939: { - if (input.isAtField(FieldNames.selectEventId)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(selectEventId); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -151140987: - case -927797242: { - if (input.isAtField(FieldNames.rogueDialogueEventParam)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueDialogueEventParam); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueDialogueEvent clone() { - return new RogueDialogueEvent().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueDialogueEvent parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueDialogueEvent(), data).checkInitialized(); - } - - public static RogueDialogueEvent parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueDialogueEvent(), input).checkInitialized(); - } - - public static RogueDialogueEvent parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueDialogueEvent(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueDialogueEvent messages - */ - public static MessageFactory getFactory() { - return RogueDialogueEventFactory.INSTANCE; - } - - private enum RogueDialogueEventFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueDialogueEvent create() { - return RogueDialogueEvent.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName npcId = FieldName.forField("npcId", "npc_id"); - - static final FieldName dialogueGroupId = FieldName.forField("dialogueGroupId", "dialogue_group_id"); - - static final FieldName gameModeType = FieldName.forField("gameModeType", "game_mode_type"); - - static final FieldName mBNBIEJIBFJ = FieldName.forField("MBNBIEJIBFJ"); - - static final FieldName selectEventId = FieldName.forField("selectEventId", "select_event_id"); - - static final FieldName rogueDialogueEventParam = FieldName.forField("rogueDialogueEventParam", "rogue_dialogue_event_param"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueDialogueEventParamOuterClass.java deleted file mode 100644 index 99d419b..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueDialogueEventParamOuterClass.java +++ /dev/null @@ -1,584 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueDialogueEventParamOuterClass { - /** - * Protobuf type {@code RogueDialogueEventParam} - */ - public static final class RogueDialogueEventParam extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional float ratio = 6; - */ - private float ratio; - - /** - * optional uint32 arg_id = 5; - */ - private int argId; - - /** - * optional uint32 dialogue_event_id = 13; - */ - private int dialogueEventId; - - /** - * optional sint32 int_value = 15; - */ - private int intValue; - - /** - * optional bool is_valid = 11; - */ - private boolean isValid; - - private RogueDialogueEventParam() { - } - - /** - * @return a new empty instance of {@code RogueDialogueEventParam} - */ - public static RogueDialogueEventParam newInstance() { - return new RogueDialogueEventParam(); - } - - /** - * optional float ratio = 6; - * @return whether the ratio field is set - */ - public boolean hasRatio() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional float ratio = 6; - * @return this - */ - public RogueDialogueEventParam clearRatio() { - bitField0_ &= ~0x00000001; - ratio = 0F; - return this; - } - - /** - * optional float ratio = 6; - * @return the ratio - */ - public float getRatio() { - return ratio; - } - - /** - * optional float ratio = 6; - * @param value the ratio to set - * @return this - */ - public RogueDialogueEventParam setRatio(final float value) { - bitField0_ |= 0x00000001; - ratio = value; - return this; - } - - /** - * optional uint32 arg_id = 5; - * @return whether the argId field is set - */ - public boolean hasArgId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 arg_id = 5; - * @return this - */ - public RogueDialogueEventParam clearArgId() { - bitField0_ &= ~0x00000002; - argId = 0; - return this; - } - - /** - * optional uint32 arg_id = 5; - * @return the argId - */ - public int getArgId() { - return argId; - } - - /** - * optional uint32 arg_id = 5; - * @param value the argId to set - * @return this - */ - public RogueDialogueEventParam setArgId(final int value) { - bitField0_ |= 0x00000002; - argId = value; - return this; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return whether the dialogueEventId field is set - */ - public boolean hasDialogueEventId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return this - */ - public RogueDialogueEventParam clearDialogueEventId() { - bitField0_ &= ~0x00000004; - dialogueEventId = 0; - return this; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return the dialogueEventId - */ - public int getDialogueEventId() { - return dialogueEventId; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @param value the dialogueEventId to set - * @return this - */ - public RogueDialogueEventParam setDialogueEventId(final int value) { - bitField0_ |= 0x00000004; - dialogueEventId = value; - return this; - } - - /** - * optional sint32 int_value = 15; - * @return whether the intValue field is set - */ - public boolean hasIntValue() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional sint32 int_value = 15; - * @return this - */ - public RogueDialogueEventParam clearIntValue() { - bitField0_ &= ~0x00000008; - intValue = 0; - return this; - } - - /** - * optional sint32 int_value = 15; - * @return the intValue - */ - public int getIntValue() { - return intValue; - } - - /** - * optional sint32 int_value = 15; - * @param value the intValue to set - * @return this - */ - public RogueDialogueEventParam setIntValue(final int value) { - bitField0_ |= 0x00000008; - intValue = value; - return this; - } - - /** - * optional bool is_valid = 11; - * @return whether the isValid field is set - */ - public boolean hasIsValid() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional bool is_valid = 11; - * @return this - */ - public RogueDialogueEventParam clearIsValid() { - bitField0_ &= ~0x00000010; - isValid = false; - return this; - } - - /** - * optional bool is_valid = 11; - * @return the isValid - */ - public boolean getIsValid() { - return isValid; - } - - /** - * optional bool is_valid = 11; - * @param value the isValid to set - * @return this - */ - public RogueDialogueEventParam setIsValid(final boolean value) { - bitField0_ |= 0x00000010; - isValid = value; - return this; - } - - @Override - public RogueDialogueEventParam copyFrom(final RogueDialogueEventParam other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - ratio = other.ratio; - argId = other.argId; - dialogueEventId = other.dialogueEventId; - intValue = other.intValue; - isValid = other.isValid; - } - return this; - } - - @Override - public RogueDialogueEventParam mergeFrom(final RogueDialogueEventParam other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRatio()) { - setRatio(other.ratio); - } - if (other.hasArgId()) { - setArgId(other.argId); - } - if (other.hasDialogueEventId()) { - setDialogueEventId(other.dialogueEventId); - } - if (other.hasIntValue()) { - setIntValue(other.intValue); - } - if (other.hasIsValid()) { - setIsValid(other.isValid); - } - return this; - } - - @Override - public RogueDialogueEventParam clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - ratio = 0F; - argId = 0; - dialogueEventId = 0; - intValue = 0; - isValid = false; - return this; - } - - @Override - public RogueDialogueEventParam clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueDialogueEventParam)) { - return false; - } - RogueDialogueEventParam other = (RogueDialogueEventParam) o; - return bitField0_ == other.bitField0_ - && (!hasRatio() || ProtoUtil.isEqual(ratio, other.ratio)) - && (!hasArgId() || argId == other.argId) - && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId) - && (!hasIntValue() || intValue == other.intValue) - && (!hasIsValid() || isValid == other.isValid); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 53); - output.writeFloatNoTag(ratio); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(argId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(dialogueEventId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); - output.writeSInt32NoTag(intValue); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); - output.writeBoolNoTag(isValid); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 5; - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(argId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeSInt32SizeNoTag(intValue); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueDialogueEventParam mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 53: { - // ratio - ratio = input.readFloat(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // argId - argId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // dialogueEventId - dialogueEventId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // intValue - intValue = input.readSInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // isValid - isValid = input.readBool(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeFloat(FieldNames.ratio, ratio); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.argId, argId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.dialogueEventId, dialogueEventId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeSInt32(FieldNames.intValue, intValue); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.isValid, isValid); - } - output.endObject(); - } - - @Override - public RogueDialogueEventParam mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 108285963: { - if (input.isAtField(FieldNames.ratio)) { - if (!input.trySkipNullValue()) { - ratio = input.readFloat(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 93079057: - case -1409495132: { - if (input.isAtField(FieldNames.argId)) { - if (!input.trySkipNullValue()) { - argId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 88389725: - case 1671736167: { - if (input.isAtField(FieldNames.dialogueEventId)) { - if (!input.trySkipNullValue()) { - dialogueEventId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 556050114: - case 334404897: { - if (input.isAtField(FieldNames.intValue)) { - if (!input.trySkipNullValue()) { - intValue = input.readSInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2073378034: - case 126941351: { - if (input.isAtField(FieldNames.isValid)) { - if (!input.trySkipNullValue()) { - isValid = input.readBool(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueDialogueEventParam clone() { - return new RogueDialogueEventParam().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueDialogueEventParam parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueDialogueEventParam(), data).checkInitialized(); - } - - public static RogueDialogueEventParam parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueDialogueEventParam(), input).checkInitialized(); - } - - public static RogueDialogueEventParam parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueDialogueEventParam(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueDialogueEventParam messages - */ - public static MessageFactory getFactory() { - return RogueDialogueEventParamFactory.INSTANCE; - } - - private enum RogueDialogueEventParamFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueDialogueEventParam create() { - return RogueDialogueEventParam.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName ratio = FieldName.forField("ratio"); - - static final FieldName argId = FieldName.forField("argId", "arg_id"); - - static final FieldName dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); - - static final FieldName intValue = FieldName.forField("intValue", "int_value"); - - static final FieldName isValid = FieldName.forField("isValid", "is_valid"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java deleted file mode 100644 index 03f7aa0..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueFinishInfoOuterClass.java +++ /dev/null @@ -1,1081 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueFinishInfoOuterClass { - /** - * Protobuf type {@code RogueFinishInfo} - */ - public static final class RogueFinishInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 pass_room_count = 2; - */ - private int passRoomCount; - - /** - *
-     *  uint32 CNIIIJODKJF = 10
-     * 
- * - * optional uint32 taken_score = 4; - */ - private int takenScore; - - /** - * optional uint32 total_score = 14; - */ - private int totalScore; - - /** - *
-     *  unfinished, idk those
-     * 
- * - * optional uint32 reach_room_count = 508; - */ - private int reachRoomCount; - - /** - * optional uint32 area_id = 859; - */ - private int areaId; - - /** - *
-     *  could be 12?
-     * 
- * - * optional bool is_win = 5; - */ - private boolean isWin; - - /** - *
-     *  may be 15
-     * 
- * - * optional .RogueScoreRewardInfo score_reward_info = 9; - */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); - - /** - * optional .RogueRecordInfo record_info = 11; - */ - private final RogueRecordInfoOuterClass.RogueRecordInfo recordInfo = RogueRecordInfoOuterClass.RogueRecordInfo.newInstance(); - - /** - *
-     *  may be 9
-     * 
- * - * optional .RogueScoreRewardInfo cur_score_reward_info = 15; - */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo curScoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); - - private RogueFinishInfo() { - } - - /** - * @return a new empty instance of {@code RogueFinishInfo} - */ - public static RogueFinishInfo newInstance() { - return new RogueFinishInfo(); - } - - /** - * optional uint32 pass_room_count = 2; - * @return whether the passRoomCount field is set - */ - public boolean hasPassRoomCount() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 pass_room_count = 2; - * @return this - */ - public RogueFinishInfo clearPassRoomCount() { - bitField0_ &= ~0x00000001; - passRoomCount = 0; - return this; - } - - /** - * optional uint32 pass_room_count = 2; - * @return the passRoomCount - */ - public int getPassRoomCount() { - return passRoomCount; - } - - /** - * optional uint32 pass_room_count = 2; - * @param value the passRoomCount to set - * @return this - */ - public RogueFinishInfo setPassRoomCount(final int value) { - bitField0_ |= 0x00000001; - passRoomCount = value; - return this; - } - - /** - *
-     *  uint32 CNIIIJODKJF = 10
-     * 
- * - * optional uint32 taken_score = 4; - * @return whether the takenScore field is set - */ - public boolean hasTakenScore() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  uint32 CNIIIJODKJF = 10
-     * 
- * - * optional uint32 taken_score = 4; - * @return this - */ - public RogueFinishInfo clearTakenScore() { - bitField0_ &= ~0x00000002; - takenScore = 0; - return this; - } - - /** - *
-     *  uint32 CNIIIJODKJF = 10
-     * 
- * - * optional uint32 taken_score = 4; - * @return the takenScore - */ - public int getTakenScore() { - return takenScore; - } - - /** - *
-     *  uint32 CNIIIJODKJF = 10
-     * 
- * - * optional uint32 taken_score = 4; - * @param value the takenScore to set - * @return this - */ - public RogueFinishInfo setTakenScore(final int value) { - bitField0_ |= 0x00000002; - takenScore = value; - return this; - } - - /** - * optional uint32 total_score = 14; - * @return whether the totalScore field is set - */ - public boolean hasTotalScore() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 total_score = 14; - * @return this - */ - public RogueFinishInfo clearTotalScore() { - bitField0_ &= ~0x00000004; - totalScore = 0; - return this; - } - - /** - * optional uint32 total_score = 14; - * @return the totalScore - */ - public int getTotalScore() { - return totalScore; - } - - /** - * optional uint32 total_score = 14; - * @param value the totalScore to set - * @return this - */ - public RogueFinishInfo setTotalScore(final int value) { - bitField0_ |= 0x00000004; - totalScore = value; - return this; - } - - /** - *
-     *  unfinished, idk those
-     * 
- * - * optional uint32 reach_room_count = 508; - * @return whether the reachRoomCount field is set - */ - public boolean hasReachRoomCount() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - *
-     *  unfinished, idk those
-     * 
- * - * optional uint32 reach_room_count = 508; - * @return this - */ - public RogueFinishInfo clearReachRoomCount() { - bitField0_ &= ~0x00000008; - reachRoomCount = 0; - return this; - } - - /** - *
-     *  unfinished, idk those
-     * 
- * - * optional uint32 reach_room_count = 508; - * @return the reachRoomCount - */ - public int getReachRoomCount() { - return reachRoomCount; - } - - /** - *
-     *  unfinished, idk those
-     * 
- * - * optional uint32 reach_room_count = 508; - * @param value the reachRoomCount to set - * @return this - */ - public RogueFinishInfo setReachRoomCount(final int value) { - bitField0_ |= 0x00000008; - reachRoomCount = value; - return this; - } - - /** - * optional uint32 area_id = 859; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 area_id = 859; - * @return this - */ - public RogueFinishInfo clearAreaId() { - bitField0_ &= ~0x00000010; - areaId = 0; - return this; - } - - /** - * optional uint32 area_id = 859; - * @return the areaId - */ - public int getAreaId() { - return areaId; - } - - /** - * optional uint32 area_id = 859; - * @param value the areaId to set - * @return this - */ - public RogueFinishInfo setAreaId(final int value) { - bitField0_ |= 0x00000010; - areaId = value; - return this; - } - - /** - *
-     *  could be 12?
-     * 
- * - * optional bool is_win = 5; - * @return whether the isWin field is set - */ - public boolean hasIsWin() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - *
-     *  could be 12?
-     * 
- * - * optional bool is_win = 5; - * @return this - */ - public RogueFinishInfo clearIsWin() { - bitField0_ &= ~0x00000020; - isWin = false; - return this; - } - - /** - *
-     *  could be 12?
-     * 
- * - * optional bool is_win = 5; - * @return the isWin - */ - public boolean getIsWin() { - return isWin; - } - - /** - *
-     *  could be 12?
-     * 
- * - * optional bool is_win = 5; - * @param value the isWin to set - * @return this - */ - public RogueFinishInfo setIsWin(final boolean value) { - bitField0_ |= 0x00000020; - isWin = value; - return this; - } - - /** - *
-     *  may be 15
-     * 
- * - * optional .RogueScoreRewardInfo score_reward_info = 9; - * @return whether the scoreRewardInfo field is set - */ - public boolean hasScoreRewardInfo() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - *
-     *  may be 15
-     * 
- * - * optional .RogueScoreRewardInfo score_reward_info = 9; - * @return this - */ - public RogueFinishInfo clearScoreRewardInfo() { - bitField0_ &= ~0x00000040; - scoreRewardInfo.clear(); - return this; - } - - /** - *
-     *  may be 15
-     * 
- * - * optional .RogueScoreRewardInfo score_reward_info = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScoreRewardInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() { - return scoreRewardInfo; - } - - /** - *
-     *  may be 15
-     * 
- * - * optional .RogueScoreRewardInfo score_reward_info = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreRewardInfo() { - bitField0_ |= 0x00000040; - return scoreRewardInfo; - } - - /** - *
-     *  may be 15
-     * 
- * - * optional .RogueScoreRewardInfo score_reward_info = 9; - * @param value the scoreRewardInfo to set - * @return this - */ - public RogueFinishInfo setScoreRewardInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - bitField0_ |= 0x00000040; - scoreRewardInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueRecordInfo record_info = 11; - * @return whether the recordInfo field is set - */ - public boolean hasRecordInfo() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * optional .RogueRecordInfo record_info = 11; - * @return this - */ - public RogueFinishInfo clearRecordInfo() { - bitField0_ &= ~0x00000080; - recordInfo.clear(); - return this; - } - - /** - * optional .RogueRecordInfo record_info = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRecordInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueRecordInfoOuterClass.RogueRecordInfo getRecordInfo() { - return recordInfo; - } - - /** - * optional .RogueRecordInfo record_info = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueRecordInfoOuterClass.RogueRecordInfo getMutableRecordInfo() { - bitField0_ |= 0x00000080; - return recordInfo; - } - - /** - * optional .RogueRecordInfo record_info = 11; - * @param value the recordInfo to set - * @return this - */ - public RogueFinishInfo setRecordInfo(final RogueRecordInfoOuterClass.RogueRecordInfo value) { - bitField0_ |= 0x00000080; - recordInfo.copyFrom(value); - return this; - } - - /** - *
-     *  may be 9
-     * 
- * - * optional .RogueScoreRewardInfo cur_score_reward_info = 15; - * @return whether the curScoreRewardInfo field is set - */ - public boolean hasCurScoreRewardInfo() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - *
-     *  may be 9
-     * 
- * - * optional .RogueScoreRewardInfo cur_score_reward_info = 15; - * @return this - */ - public RogueFinishInfo clearCurScoreRewardInfo() { - bitField0_ &= ~0x00000100; - curScoreRewardInfo.clear(); - return this; - } - - /** - *
-     *  may be 9
-     * 
- * - * optional .RogueScoreRewardInfo cur_score_reward_info = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCurScoreRewardInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getCurScoreRewardInfo() { - return curScoreRewardInfo; - } - - /** - *
-     *  may be 9
-     * 
- * - * optional .RogueScoreRewardInfo cur_score_reward_info = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableCurScoreRewardInfo() { - bitField0_ |= 0x00000100; - return curScoreRewardInfo; - } - - /** - *
-     *  may be 9
-     * 
- * - * optional .RogueScoreRewardInfo cur_score_reward_info = 15; - * @param value the curScoreRewardInfo to set - * @return this - */ - public RogueFinishInfo setCurScoreRewardInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - bitField0_ |= 0x00000100; - curScoreRewardInfo.copyFrom(value); - return this; - } - - @Override - public RogueFinishInfo copyFrom(final RogueFinishInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - passRoomCount = other.passRoomCount; - takenScore = other.takenScore; - totalScore = other.totalScore; - reachRoomCount = other.reachRoomCount; - areaId = other.areaId; - isWin = other.isWin; - scoreRewardInfo.copyFrom(other.scoreRewardInfo); - recordInfo.copyFrom(other.recordInfo); - curScoreRewardInfo.copyFrom(other.curScoreRewardInfo); - } - return this; - } - - @Override - public RogueFinishInfo mergeFrom(final RogueFinishInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasPassRoomCount()) { - setPassRoomCount(other.passRoomCount); - } - if (other.hasTakenScore()) { - setTakenScore(other.takenScore); - } - if (other.hasTotalScore()) { - setTotalScore(other.totalScore); - } - if (other.hasReachRoomCount()) { - setReachRoomCount(other.reachRoomCount); - } - if (other.hasAreaId()) { - setAreaId(other.areaId); - } - if (other.hasIsWin()) { - setIsWin(other.isWin); - } - if (other.hasScoreRewardInfo()) { - getMutableScoreRewardInfo().mergeFrom(other.scoreRewardInfo); - } - if (other.hasRecordInfo()) { - getMutableRecordInfo().mergeFrom(other.recordInfo); - } - if (other.hasCurScoreRewardInfo()) { - getMutableCurScoreRewardInfo().mergeFrom(other.curScoreRewardInfo); - } - return this; - } - - @Override - public RogueFinishInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - passRoomCount = 0; - takenScore = 0; - totalScore = 0; - reachRoomCount = 0; - areaId = 0; - isWin = false; - scoreRewardInfo.clear(); - recordInfo.clear(); - curScoreRewardInfo.clear(); - return this; - } - - @Override - public RogueFinishInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - scoreRewardInfo.clearQuick(); - recordInfo.clearQuick(); - curScoreRewardInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueFinishInfo)) { - return false; - } - RogueFinishInfo other = (RogueFinishInfo) o; - return bitField0_ == other.bitField0_ - && (!hasPassRoomCount() || passRoomCount == other.passRoomCount) - && (!hasTakenScore() || takenScore == other.takenScore) - && (!hasTotalScore() || totalScore == other.totalScore) - && (!hasReachRoomCount() || reachRoomCount == other.reachRoomCount) - && (!hasAreaId() || areaId == other.areaId) - && (!hasIsWin() || isWin == other.isWin) - && (!hasScoreRewardInfo() || scoreRewardInfo.equals(other.scoreRewardInfo)) - && (!hasRecordInfo() || recordInfo.equals(other.recordInfo)) - && (!hasCurScoreRewardInfo() || curScoreRewardInfo.equals(other.curScoreRewardInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(passRoomCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(takenScore); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(totalScore); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawLittleEndian16((short) 8160); - output.writeUInt32NoTag(reachRoomCount); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawLittleEndian16((short) 13784); - output.writeUInt32NoTag(areaId); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 40); - output.writeBoolNoTag(isWin); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(scoreRewardInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(recordInfo); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(curScoreRewardInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(passRoomCount); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(takenScore); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(totalScore); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(reachRoomCount); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(areaId); - } - if ((bitField0_ & 0x00000020) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000040) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scoreRewardInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(recordInfo); - } - if ((bitField0_ & 0x00000100) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(curScoreRewardInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueFinishInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // passRoomCount - passRoomCount = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // takenScore - takenScore = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // totalScore - totalScore = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 4064) { - break; - } - } - case 4064: { - // reachRoomCount - reachRoomCount = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 6872) { - break; - } - } - case 6872: { - // areaId - areaId = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // isWin - isWin = input.readBool(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // scoreRewardInfo - input.readMessage(scoreRewardInfo); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // recordInfo - input.readMessage(recordInfo); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // curScoreRewardInfo - input.readMessage(curScoreRewardInfo); - bitField0_ |= 0x00000100; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.passRoomCount, passRoomCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.takenScore, takenScore); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.totalScore, totalScore); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.reachRoomCount, reachRoomCount); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.areaId, areaId); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.isWin, isWin); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeMessage(FieldNames.scoreRewardInfo, scoreRewardInfo); - } - if ((bitField0_ & 0x00000080) != 0) { - output.writeMessage(FieldNames.recordInfo, recordInfo); - } - if ((bitField0_ & 0x00000100) != 0) { - output.writeMessage(FieldNames.curScoreRewardInfo, curScoreRewardInfo); - } - output.endObject(); - } - - @Override - public RogueFinishInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 430108643: - case 173887897: { - if (input.isAtField(FieldNames.passRoomCount)) { - if (!input.trySkipNullValue()) { - passRoomCount = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -375532021: - case 1601375514: { - if (input.isAtField(FieldNames.takenScore)) { - if (!input.trySkipNullValue()) { - takenScore = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -716972626: - case -393348649: { - if (input.isAtField(FieldNames.totalScore)) { - if (!input.trySkipNullValue()) { - totalScore = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1588434751: - case 1678904055: { - if (input.isAtField(FieldNames.reachRoomCount)) { - if (!input.trySkipNullValue()) { - reachRoomCount = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { - if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case 100482642: - case -1179753657: { - if (input.isAtField(FieldNames.isWin)) { - if (!input.trySkipNullValue()) { - isWin = input.readBool(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 672564399: - case 751191441: { - if (input.isAtField(FieldNames.scoreRewardInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(scoreRewardInfo); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - case 734573727: - case 1317125084: { - if (input.isAtField(FieldNames.recordInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(recordInfo); - bitField0_ |= 0x00000080; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1101722191: - case 1894162770: { - if (input.isAtField(FieldNames.curScoreRewardInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(curScoreRewardInfo); - bitField0_ |= 0x00000100; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueFinishInfo clone() { - return new RogueFinishInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueFinishInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueFinishInfo(), data).checkInitialized(); - } - - public static RogueFinishInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueFinishInfo(), input).checkInitialized(); - } - - public static RogueFinishInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueFinishInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueFinishInfo messages - */ - public static MessageFactory getFactory() { - return RogueFinishInfoFactory.INSTANCE; - } - - private enum RogueFinishInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueFinishInfo create() { - return RogueFinishInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName passRoomCount = FieldName.forField("passRoomCount", "pass_room_count"); - - static final FieldName takenScore = FieldName.forField("takenScore", "taken_score"); - - static final FieldName totalScore = FieldName.forField("totalScore", "total_score"); - - static final FieldName reachRoomCount = FieldName.forField("reachRoomCount", "reach_room_count"); - - static final FieldName areaId = FieldName.forField("areaId", "area_id"); - - static final FieldName isWin = FieldName.forField("isWin", "is_win"); - - static final FieldName scoreRewardInfo = FieldName.forField("scoreRewardInfo", "score_reward_info"); - - static final FieldName recordInfo = FieldName.forField("recordInfo", "record_info"); - - static final FieldName curScoreRewardInfo = FieldName.forField("curScoreRewardInfo", "cur_score_reward_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java deleted file mode 100644 index 0942f45..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookAeonOuterClass.java +++ /dev/null @@ -1,800 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class RogueHandbookAeonOuterClass { - /** - * Protobuf type {@code RogueHandbookAeon} - */ - public static final class RogueHandbookAeon extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 exp = 1; - */ - private int exp; - - /** - * optional uint32 level = 2; - */ - private int level; - - /** - * optional uint32 max_level = 3; - */ - private int maxLevel; - - /** - * optional uint32 aeon_id = 4; - */ - private int aeonId; - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - */ - private final RepeatedInt archiveUnlockList = RepeatedInt.newEmptyInstance(); - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - */ - private final RepeatedInt takenRewardList = RepeatedInt.newEmptyInstance(); - - private RogueHandbookAeon() { - } - - /** - * @return a new empty instance of {@code RogueHandbookAeon} - */ - public static RogueHandbookAeon newInstance() { - return new RogueHandbookAeon(); - } - - /** - * optional uint32 exp = 1; - * @return whether the exp field is set - */ - public boolean hasExp() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 exp = 1; - * @return this - */ - public RogueHandbookAeon clearExp() { - bitField0_ &= ~0x00000001; - exp = 0; - return this; - } - - /** - * optional uint32 exp = 1; - * @return the exp - */ - public int getExp() { - return exp; - } - - /** - * optional uint32 exp = 1; - * @param value the exp to set - * @return this - */ - public RogueHandbookAeon setExp(final int value) { - bitField0_ |= 0x00000001; - exp = value; - return this; - } - - /** - * optional uint32 level = 2; - * @return whether the level field is set - */ - public boolean hasLevel() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 level = 2; - * @return this - */ - public RogueHandbookAeon clearLevel() { - bitField0_ &= ~0x00000002; - level = 0; - return this; - } - - /** - * optional uint32 level = 2; - * @return the level - */ - public int getLevel() { - return level; - } - - /** - * optional uint32 level = 2; - * @param value the level to set - * @return this - */ - public RogueHandbookAeon setLevel(final int value) { - bitField0_ |= 0x00000002; - level = value; - return this; - } - - /** - * optional uint32 max_level = 3; - * @return whether the maxLevel field is set - */ - public boolean hasMaxLevel() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 max_level = 3; - * @return this - */ - public RogueHandbookAeon clearMaxLevel() { - bitField0_ &= ~0x00000004; - maxLevel = 0; - return this; - } - - /** - * optional uint32 max_level = 3; - * @return the maxLevel - */ - public int getMaxLevel() { - return maxLevel; - } - - /** - * optional uint32 max_level = 3; - * @param value the maxLevel to set - * @return this - */ - public RogueHandbookAeon setMaxLevel(final int value) { - bitField0_ |= 0x00000004; - maxLevel = value; - return this; - } - - /** - * optional uint32 aeon_id = 4; - * @return whether the aeonId field is set - */ - public boolean hasAeonId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 aeon_id = 4; - * @return this - */ - public RogueHandbookAeon clearAeonId() { - bitField0_ &= ~0x00000008; - aeonId = 0; - return this; - } - - /** - * optional uint32 aeon_id = 4; - * @return the aeonId - */ - public int getAeonId() { - return aeonId; - } - - /** - * optional uint32 aeon_id = 4; - * @param value the aeonId to set - * @return this - */ - public RogueHandbookAeon setAeonId(final int value) { - bitField0_ |= 0x00000008; - aeonId = value; - return this; - } - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - * @return whether the archiveUnlockList field is set - */ - public boolean hasArchiveUnlockList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - * @return this - */ - public RogueHandbookAeon clearArchiveUnlockList() { - bitField0_ &= ~0x00000010; - archiveUnlockList.clear(); - return this; - } - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableArchiveUnlockList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getArchiveUnlockList() { - return archiveUnlockList; - } - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableArchiveUnlockList() { - bitField0_ |= 0x00000010; - return archiveUnlockList; - } - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - * @param value the archiveUnlockList to add - * @return this - */ - public RogueHandbookAeon addArchiveUnlockList(final int value) { - bitField0_ |= 0x00000010; - archiveUnlockList.add(value); - return this; - } - - /** - *
-     *  CPKMMHENJOF
-     * 
- * - * repeated uint32 archive_unlock_list = 9; - * @param values the archiveUnlockList to add - * @return this - */ - public RogueHandbookAeon addAllArchiveUnlockList(final int... values) { - bitField0_ |= 0x00000010; - archiveUnlockList.addAll(values); - return this; - } - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - * @return whether the takenRewardList field is set - */ - public boolean hasTakenRewardList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - * @return this - */ - public RogueHandbookAeon clearTakenRewardList() { - bitField0_ &= ~0x00000020; - takenRewardList.clear(); - return this; - } - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableTakenRewardList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getTakenRewardList() { - return takenRewardList; - } - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableTakenRewardList() { - bitField0_ |= 0x00000020; - return takenRewardList; - } - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - * @param value the takenRewardList to add - * @return this - */ - public RogueHandbookAeon addTakenRewardList(final int value) { - bitField0_ |= 0x00000020; - takenRewardList.add(value); - return this; - } - - /** - *
-     *  JKONPKKIALG
-     * 
- * - * repeated uint32 taken_reward_list = 11; - * @param values the takenRewardList to add - * @return this - */ - public RogueHandbookAeon addAllTakenRewardList(final int... values) { - bitField0_ |= 0x00000020; - takenRewardList.addAll(values); - return this; - } - - @Override - public RogueHandbookAeon copyFrom(final RogueHandbookAeon other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - exp = other.exp; - level = other.level; - maxLevel = other.maxLevel; - aeonId = other.aeonId; - archiveUnlockList.copyFrom(other.archiveUnlockList); - takenRewardList.copyFrom(other.takenRewardList); - } - return this; - } - - @Override - public RogueHandbookAeon mergeFrom(final RogueHandbookAeon other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasExp()) { - setExp(other.exp); - } - if (other.hasLevel()) { - setLevel(other.level); - } - if (other.hasMaxLevel()) { - setMaxLevel(other.maxLevel); - } - if (other.hasAeonId()) { - setAeonId(other.aeonId); - } - if (other.hasArchiveUnlockList()) { - getMutableArchiveUnlockList().addAll(other.archiveUnlockList); - } - if (other.hasTakenRewardList()) { - getMutableTakenRewardList().addAll(other.takenRewardList); - } - return this; - } - - @Override - public RogueHandbookAeon clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - exp = 0; - level = 0; - maxLevel = 0; - aeonId = 0; - archiveUnlockList.clear(); - takenRewardList.clear(); - return this; - } - - @Override - public RogueHandbookAeon clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - archiveUnlockList.clear(); - takenRewardList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueHandbookAeon)) { - return false; - } - RogueHandbookAeon other = (RogueHandbookAeon) o; - return bitField0_ == other.bitField0_ - && (!hasExp() || exp == other.exp) - && (!hasLevel() || level == other.level) - && (!hasMaxLevel() || maxLevel == other.maxLevel) - && (!hasAeonId() || aeonId == other.aeonId) - && (!hasArchiveUnlockList() || archiveUnlockList.equals(other.archiveUnlockList)) - && (!hasTakenRewardList() || takenRewardList.equals(other.takenRewardList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(exp); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(level); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(maxLevel); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(aeonId); - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < archiveUnlockList.length(); i++) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(archiveUnlockList.array()[i]); - } - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < takenRewardList.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(takenRewardList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(exp); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(level); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxLevel); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(aeonId); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * archiveUnlockList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(archiveUnlockList); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * takenRewardList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(takenRewardList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueHandbookAeon mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // exp - exp = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // level - level = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // maxLevel - maxLevel = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // aeonId - aeonId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // archiveUnlockList [packed=true] - input.readPackedUInt32(archiveUnlockList, tag); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // takenRewardList [packed=true] - input.readPackedUInt32(takenRewardList, tag); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 72: { - // archiveUnlockList [packed=false] - tag = input.readRepeatedUInt32(archiveUnlockList, tag); - bitField0_ |= 0x00000010; - break; - } - case 88: { - // takenRewardList [packed=false] - tag = input.readRepeatedUInt32(takenRewardList, tag); - bitField0_ |= 0x00000020; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.exp, exp); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.level, level); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.maxLevel, maxLevel); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.aeonId, aeonId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedUInt32(FieldNames.archiveUnlockList, archiveUnlockList); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.takenRewardList, takenRewardList); - } - output.endObject(); - } - - @Override - public RogueHandbookAeon mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 100893: { - if (input.isAtField(FieldNames.exp)) { - if (!input.trySkipNullValue()) { - exp = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 102865796: { - if (input.isAtField(FieldNames.level)) { - if (!input.trySkipNullValue()) { - level = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 390120576: - case -241235735: { - if (input.isAtField(FieldNames.maxLevel)) { - if (!input.trySkipNullValue()) { - maxLevel = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1421249154: - case -1109029417: { - if (input.isAtField(FieldNames.aeonId)) { - if (!input.trySkipNullValue()) { - aeonId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -424348572: - case 66232508: { - if (input.isAtField(FieldNames.archiveUnlockList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(archiveUnlockList); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -600805228: - case 1027082294: { - if (input.isAtField(FieldNames.takenRewardList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(takenRewardList); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueHandbookAeon clone() { - return new RogueHandbookAeon().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueHandbookAeon parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueHandbookAeon(), data).checkInitialized(); - } - - public static RogueHandbookAeon parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookAeon(), input).checkInitialized(); - } - - public static RogueHandbookAeon parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookAeon(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueHandbookAeon messages - */ - public static MessageFactory getFactory() { - return RogueHandbookAeonFactory.INSTANCE; - } - - private enum RogueHandbookAeonFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueHandbookAeon create() { - return RogueHandbookAeon.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName exp = FieldName.forField("exp"); - - static final FieldName level = FieldName.forField("level"); - - static final FieldName maxLevel = FieldName.forField("maxLevel", "max_level"); - - static final FieldName aeonId = FieldName.forField("aeonId", "aeon_id"); - - static final FieldName archiveUnlockList = FieldName.forField("archiveUnlockList", "archive_unlock_list"); - - static final FieldName takenRewardList = FieldName.forField("takenRewardList", "taken_reward_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java deleted file mode 100644 index 5249989..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookDataOuterClass.java +++ /dev/null @@ -1,646 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueHandbookDataOuterClass { - /** - * Protobuf type {@code RogueHandbookData} - */ - public static final class RogueHandbookData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - */ - private final RepeatedMessage miracleList = RepeatedMessage.newEmptyInstance(RogueHandbookMiracleOuterClass.RogueHandbookMiracle.getFactory()); - - /** - * repeated .RogueHandbookBuff buff_list = 5; - */ - private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueHandbookBuffOuterClass.RogueHandbookBuff.getFactory()); - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - */ - private final RepeatedMessage rogueAeonList = RepeatedMessage.newEmptyInstance(RogueHandbookAeonOuterClass.RogueHandbookAeon.getFactory()); - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - */ - private final RepeatedMessage rogueEvent = RepeatedMessage.newEmptyInstance(RogueHandbookEventOuterClass.RogueHandbookEvent.getFactory()); - - private RogueHandbookData() { - } - - /** - * @return a new empty instance of {@code RogueHandbookData} - */ - public static RogueHandbookData newInstance() { - return new RogueHandbookData(); - } - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - * @return whether the miracleList field is set - */ - public boolean hasMiracleList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - * @return this - */ - public RogueHandbookData clearMiracleList() { - bitField0_ &= ~0x00000001; - miracleList.clear(); - return this; - } - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getMiracleList() { - return miracleList; - } - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableMiracleList( - ) { - bitField0_ |= 0x00000001; - return miracleList; - } - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - * @param value the miracleList to add - * @return this - */ - public RogueHandbookData addMiracleList( - final RogueHandbookMiracleOuterClass.RogueHandbookMiracle value) { - bitField0_ |= 0x00000001; - miracleList.add(value); - return this; - } - - /** - * repeated .RogueHandbookMiracle miracle_list = 2; - * @param values the miracleList to add - * @return this - */ - public RogueHandbookData addAllMiracleList( - final RogueHandbookMiracleOuterClass.RogueHandbookMiracle... values) { - bitField0_ |= 0x00000001; - miracleList.addAll(values); - return this; - } - - /** - * repeated .RogueHandbookBuff buff_list = 5; - * @return whether the buffList field is set - */ - public boolean hasBuffList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .RogueHandbookBuff buff_list = 5; - * @return this - */ - public RogueHandbookData clearBuffList() { - bitField0_ &= ~0x00000002; - buffList.clear(); - return this; - } - - /** - * repeated .RogueHandbookBuff buff_list = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBuffList() { - return buffList; - } - - /** - * repeated .RogueHandbookBuff buff_list = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableBuffList() { - bitField0_ |= 0x00000002; - return buffList; - } - - /** - * repeated .RogueHandbookBuff buff_list = 5; - * @param value the buffList to add - * @return this - */ - public RogueHandbookData addBuffList( - final RogueHandbookBuffOuterClass.RogueHandbookBuff value) { - bitField0_ |= 0x00000002; - buffList.add(value); - return this; - } - - /** - * repeated .RogueHandbookBuff buff_list = 5; - * @param values the buffList to add - * @return this - */ - public RogueHandbookData addAllBuffList( - final RogueHandbookBuffOuterClass.RogueHandbookBuff... values) { - bitField0_ |= 0x00000002; - buffList.addAll(values); - return this; - } - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - * @return whether the rogueAeonList field is set - */ - public boolean hasRogueAeonList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - * @return this - */ - public RogueHandbookData clearRogueAeonList() { - bitField0_ &= ~0x00000004; - rogueAeonList.clear(); - return this; - } - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAeonList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueAeonList() { - return rogueAeonList; - } - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueAeonList( - ) { - bitField0_ |= 0x00000004; - return rogueAeonList; - } - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - * @param value the rogueAeonList to add - * @return this - */ - public RogueHandbookData addRogueAeonList( - final RogueHandbookAeonOuterClass.RogueHandbookAeon value) { - bitField0_ |= 0x00000004; - rogueAeonList.add(value); - return this; - } - - /** - * repeated .RogueHandbookAeon rogue_aeon_list = 10; - * @param values the rogueAeonList to add - * @return this - */ - public RogueHandbookData addAllRogueAeonList( - final RogueHandbookAeonOuterClass.RogueHandbookAeon... values) { - bitField0_ |= 0x00000004; - rogueAeonList.addAll(values); - return this; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - * @return whether the rogueEvent field is set - */ - public boolean hasRogueEvent() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - * @return this - */ - public RogueHandbookData clearRogueEvent() { - bitField0_ &= ~0x00000008; - rogueEvent.clear(); - return this; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueEvent()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueEvent() { - return rogueEvent; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueEvent() { - bitField0_ |= 0x00000008; - return rogueEvent; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - * @param value the rogueEvent to add - * @return this - */ - public RogueHandbookData addRogueEvent( - final RogueHandbookEventOuterClass.RogueHandbookEvent value) { - bitField0_ |= 0x00000008; - rogueEvent.add(value); - return this; - } - - /** - * repeated .RogueHandbookEvent rogue_event = 14; - * @param values the rogueEvent to add - * @return this - */ - public RogueHandbookData addAllRogueEvent( - final RogueHandbookEventOuterClass.RogueHandbookEvent... values) { - bitField0_ |= 0x00000008; - rogueEvent.addAll(values); - return this; - } - - @Override - public RogueHandbookData copyFrom(final RogueHandbookData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - miracleList.copyFrom(other.miracleList); - buffList.copyFrom(other.buffList); - rogueAeonList.copyFrom(other.rogueAeonList); - rogueEvent.copyFrom(other.rogueEvent); - } - return this; - } - - @Override - public RogueHandbookData mergeFrom(final RogueHandbookData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMiracleList()) { - getMutableMiracleList().addAll(other.miracleList); - } - if (other.hasBuffList()) { - getMutableBuffList().addAll(other.buffList); - } - if (other.hasRogueAeonList()) { - getMutableRogueAeonList().addAll(other.rogueAeonList); - } - if (other.hasRogueEvent()) { - getMutableRogueEvent().addAll(other.rogueEvent); - } - return this; - } - - @Override - public RogueHandbookData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleList.clear(); - buffList.clear(); - rogueAeonList.clear(); - rogueEvent.clear(); - return this; - } - - @Override - public RogueHandbookData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleList.clearQuick(); - buffList.clearQuick(); - rogueAeonList.clearQuick(); - rogueEvent.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueHandbookData)) { - return false; - } - RogueHandbookData other = (RogueHandbookData) o; - return bitField0_ == other.bitField0_ - && (!hasMiracleList() || miracleList.equals(other.miracleList)) - && (!hasBuffList() || buffList.equals(other.buffList)) - && (!hasRogueAeonList() || rogueAeonList.equals(other.rogueAeonList)) - && (!hasRogueEvent() || rogueEvent.equals(other.rogueEvent)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < miracleList.length(); i++) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(miracleList.get(i)); - } - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(buffList.get(i)); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < rogueAeonList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rogueAeonList.get(i)); - } - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < rogueEvent.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(rogueEvent.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * miracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(miracleList); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * rogueAeonList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueAeonList); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * rogueEvent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueEvent); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueHandbookData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 18: { - // miracleList - tag = input.readRepeatedMessage(miracleList, tag); - bitField0_ |= 0x00000001; - if (tag != 42) { - break; - } - } - case 42: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); - bitField0_ |= 0x00000002; - if (tag != 82) { - break; - } - } - case 82: { - // rogueAeonList - tag = input.readRepeatedMessage(rogueAeonList, tag); - bitField0_ |= 0x00000004; - if (tag != 114) { - break; - } - } - case 114: { - // rogueEvent - tag = input.readRepeatedMessage(rogueEvent, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.miracleList, miracleList); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.rogueAeonList, rogueAeonList); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.rogueEvent, rogueEvent); - } - output.endObject(); - } - - @Override - public RogueHandbookData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 760391855: - case 2114937772: { - if (input.isAtField(FieldNames.miracleList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(miracleList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1684933573: - case -1375837643: { - if (input.isAtField(FieldNames.rogueAeonList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueAeonList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1148216096: - case -505804811: { - if (input.isAtField(FieldNames.rogueEvent)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueEvent); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueHandbookData clone() { - return new RogueHandbookData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueHandbookData parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueHandbookData(), data).checkInitialized(); - } - - public static RogueHandbookData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookData(), input).checkInitialized(); - } - - public static RogueHandbookData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookData(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueHandbookData messages - */ - public static MessageFactory getFactory() { - return RogueHandbookDataFactory.INSTANCE; - } - - private enum RogueHandbookDataFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueHandbookData create() { - return RogueHandbookData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName miracleList = FieldName.forField("miracleList", "miracle_list"); - - static final FieldName buffList = FieldName.forField("buffList", "buff_list"); - - static final FieldName rogueAeonList = FieldName.forField("rogueAeonList", "rogue_aeon_list"); - - static final FieldName rogueEvent = FieldName.forField("rogueEvent", "rogue_event"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java deleted file mode 100644 index 12b9ae8..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueHandbookMiracleOuterClass.java +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueHandbookMiracleOuterClass { - /** - * Protobuf type {@code RogueHandbookMiracle} - */ - public static final class RogueHandbookMiracle extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 miracle_id = 11; - */ - private int miracleId; - - /** - * optional bool is_unlocked = 12; - */ - private boolean isUnlocked; - - private RogueHandbookMiracle() { - } - - /** - * @return a new empty instance of {@code RogueHandbookMiracle} - */ - public static RogueHandbookMiracle newInstance() { - return new RogueHandbookMiracle(); - } - - /** - * optional uint32 miracle_id = 11; - * @return whether the miracleId field is set - */ - public boolean hasMiracleId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 miracle_id = 11; - * @return this - */ - public RogueHandbookMiracle clearMiracleId() { - bitField0_ &= ~0x00000001; - miracleId = 0; - return this; - } - - /** - * optional uint32 miracle_id = 11; - * @return the miracleId - */ - public int getMiracleId() { - return miracleId; - } - - /** - * optional uint32 miracle_id = 11; - * @param value the miracleId to set - * @return this - */ - public RogueHandbookMiracle setMiracleId(final int value) { - bitField0_ |= 0x00000001; - miracleId = value; - return this; - } - - /** - * optional bool is_unlocked = 12; - * @return whether the isUnlocked field is set - */ - public boolean hasIsUnlocked() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional bool is_unlocked = 12; - * @return this - */ - public RogueHandbookMiracle clearIsUnlocked() { - bitField0_ &= ~0x00000002; - isUnlocked = false; - return this; - } - - /** - * optional bool is_unlocked = 12; - * @return the isUnlocked - */ - public boolean getIsUnlocked() { - return isUnlocked; - } - - /** - * optional bool is_unlocked = 12; - * @param value the isUnlocked to set - * @return this - */ - public RogueHandbookMiracle setIsUnlocked(final boolean value) { - bitField0_ |= 0x00000002; - isUnlocked = value; - return this; - } - - @Override - public RogueHandbookMiracle copyFrom(final RogueHandbookMiracle other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - miracleId = other.miracleId; - isUnlocked = other.isUnlocked; - } - return this; - } - - @Override - public RogueHandbookMiracle mergeFrom(final RogueHandbookMiracle other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMiracleId()) { - setMiracleId(other.miracleId); - } - if (other.hasIsUnlocked()) { - setIsUnlocked(other.isUnlocked); - } - return this; - } - - @Override - public RogueHandbookMiracle clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleId = 0; - isUnlocked = false; - return this; - } - - @Override - public RogueHandbookMiracle clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueHandbookMiracle)) { - return false; - } - RogueHandbookMiracle other = (RogueHandbookMiracle) o; - return bitField0_ == other.bitField0_ - && (!hasMiracleId() || miracleId == other.miracleId) - && (!hasIsUnlocked() || isUnlocked == other.isUnlocked); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(miracleId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeBoolNoTag(isUnlocked); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueHandbookMiracle mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 88: { - // miracleId - miracleId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // isUnlocked - isUnlocked = input.readBool(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.miracleId, miracleId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeBool(FieldNames.isUnlocked, isUnlocked); - } - output.endObject(); - } - - @Override - public RogueHandbookMiracle mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -164571796: - case -806736983: { - if (input.isAtField(FieldNames.miracleId)) { - if (!input.trySkipNullValue()) { - miracleId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1004219859: - case -945979816: { - if (input.isAtField(FieldNames.isUnlocked)) { - if (!input.trySkipNullValue()) { - isUnlocked = input.readBool(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueHandbookMiracle clone() { - return new RogueHandbookMiracle().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueHandbookMiracle parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueHandbookMiracle(), data).checkInitialized(); - } - - public static RogueHandbookMiracle parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookMiracle(), input).checkInitialized(); - } - - public static RogueHandbookMiracle parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueHandbookMiracle(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueHandbookMiracle messages - */ - public static MessageFactory getFactory() { - return RogueHandbookMiracleFactory.INSTANCE; - } - - private enum RogueHandbookMiracleFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueHandbookMiracle create() { - return RogueHandbookMiracle.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); - - static final FieldName isUnlocked = FieldName.forField("isUnlocked", "is_unlocked"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueInfoDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueInfoDataOuterClass.java deleted file mode 100644 index 8c4477b..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueInfoDataOuterClass.java +++ /dev/null @@ -1,691 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueInfoDataOuterClass { - /** - * Protobuf type {@code RogueInfoData} - */ - public static final class RogueInfoData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueAreaInfo rogue_area_info = 2; - */ - private final RogueAreaInfoOuterClass.RogueAreaInfo rogueAreaInfo = RogueAreaInfoOuterClass.RogueAreaInfo.newInstance(); - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 3; - */ - private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo rogueScoreInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance(); - - /** - * optional .RogueAeonInfo rogue_aeon_info = 10; - */ - private final RogueAeonInfoOuterClass.RogueAeonInfo rogueAeonInfo = RogueAeonInfoOuterClass.RogueAeonInfo.newInstance(); - - /** - * optional .RogueCurVirtualItemInfo rogue_virtual_item_info = 11; - */ - private final RogueCurVirtualItemInfoOuterClass.RogueCurVirtualItemInfo rogueVirtualItemInfo = RogueCurVirtualItemInfoOuterClass.RogueCurVirtualItemInfo.newInstance(); - - /** - * optional .RogueSeasonInfo rogue_season_info = 14; - */ - private final RogueSeasonInfoOuterClass.RogueSeasonInfo rogueSeasonInfo = RogueSeasonInfoOuterClass.RogueSeasonInfo.newInstance(); - - private RogueInfoData() { - } - - /** - * @return a new empty instance of {@code RogueInfoData} - */ - public static RogueInfoData newInstance() { - return new RogueInfoData(); - } - - /** - * optional .RogueAreaInfo rogue_area_info = 2; - * @return whether the rogueAreaInfo field is set - */ - public boolean hasRogueAreaInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueAreaInfo rogue_area_info = 2; - * @return this - */ - public RogueInfoData clearRogueAreaInfo() { - bitField0_ &= ~0x00000001; - rogueAreaInfo.clear(); - return this; - } - - /** - * optional .RogueAreaInfo rogue_area_info = 2; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAreaInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueAreaInfoOuterClass.RogueAreaInfo getRogueAreaInfo() { - return rogueAreaInfo; - } - - /** - * optional .RogueAreaInfo rogue_area_info = 2; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueAreaInfoOuterClass.RogueAreaInfo getMutableRogueAreaInfo() { - bitField0_ |= 0x00000001; - return rogueAreaInfo; - } - - /** - * optional .RogueAreaInfo rogue_area_info = 2; - * @param value the rogueAreaInfo to set - * @return this - */ - public RogueInfoData setRogueAreaInfo(final RogueAreaInfoOuterClass.RogueAreaInfo value) { - bitField0_ |= 0x00000001; - rogueAreaInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 3; - * @return whether the rogueScoreInfo field is set - */ - public boolean hasRogueScoreInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 3; - * @return this - */ - public RogueInfoData clearRogueScoreInfo() { - bitField0_ &= ~0x00000002; - rogueScoreInfo.clear(); - return this; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueScoreInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getRogueScoreInfo() { - return rogueScoreInfo; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableRogueScoreInfo() { - bitField0_ |= 0x00000002; - return rogueScoreInfo; - } - - /** - * optional .RogueScoreRewardInfo rogue_score_info = 3; - * @param value the rogueScoreInfo to set - * @return this - */ - public RogueInfoData setRogueScoreInfo( - final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) { - bitField0_ |= 0x00000002; - rogueScoreInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 10; - * @return whether the rogueAeonInfo field is set - */ - public boolean hasRogueAeonInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 10; - * @return this - */ - public RogueInfoData clearRogueAeonInfo() { - bitField0_ &= ~0x00000004; - rogueAeonInfo.clear(); - return this; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueAeonInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueAeonInfoOuterClass.RogueAeonInfo getRogueAeonInfo() { - return rogueAeonInfo; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueAeonInfoOuterClass.RogueAeonInfo getMutableRogueAeonInfo() { - bitField0_ |= 0x00000004; - return rogueAeonInfo; - } - - /** - * optional .RogueAeonInfo rogue_aeon_info = 10; - * @param value the rogueAeonInfo to set - * @return this - */ - public RogueInfoData setRogueAeonInfo(final RogueAeonInfoOuterClass.RogueAeonInfo value) { - bitField0_ |= 0x00000004; - rogueAeonInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueCurVirtualItemInfo rogue_virtual_item_info = 11; - * @return whether the rogueVirtualItemInfo field is set - */ - public boolean hasRogueVirtualItemInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RogueCurVirtualItemInfo rogue_virtual_item_info = 11; - * @return this - */ - public RogueInfoData clearRogueVirtualItemInfo() { - bitField0_ &= ~0x00000008; - rogueVirtualItemInfo.clear(); - return this; - } - - /** - * optional .RogueCurVirtualItemInfo rogue_virtual_item_info = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueVirtualItemInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCurVirtualItemInfoOuterClass.RogueCurVirtualItemInfo getRogueVirtualItemInfo() { - return rogueVirtualItemInfo; - } - - /** - * optional .RogueCurVirtualItemInfo rogue_virtual_item_info = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCurVirtualItemInfoOuterClass.RogueCurVirtualItemInfo getMutableRogueVirtualItemInfo( - ) { - bitField0_ |= 0x00000008; - return rogueVirtualItemInfo; - } - - /** - * optional .RogueCurVirtualItemInfo rogue_virtual_item_info = 11; - * @param value the rogueVirtualItemInfo to set - * @return this - */ - public RogueInfoData setRogueVirtualItemInfo( - final RogueCurVirtualItemInfoOuterClass.RogueCurVirtualItemInfo value) { - bitField0_ |= 0x00000008; - rogueVirtualItemInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueSeasonInfo rogue_season_info = 14; - * @return whether the rogueSeasonInfo field is set - */ - public boolean hasRogueSeasonInfo() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueSeasonInfo rogue_season_info = 14; - * @return this - */ - public RogueInfoData clearRogueSeasonInfo() { - bitField0_ &= ~0x00000010; - rogueSeasonInfo.clear(); - return this; - } - - /** - * optional .RogueSeasonInfo rogue_season_info = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueSeasonInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueSeasonInfoOuterClass.RogueSeasonInfo getRogueSeasonInfo() { - return rogueSeasonInfo; - } - - /** - * optional .RogueSeasonInfo rogue_season_info = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueSeasonInfoOuterClass.RogueSeasonInfo getMutableRogueSeasonInfo() { - bitField0_ |= 0x00000010; - return rogueSeasonInfo; - } - - /** - * optional .RogueSeasonInfo rogue_season_info = 14; - * @param value the rogueSeasonInfo to set - * @return this - */ - public RogueInfoData setRogueSeasonInfo(final RogueSeasonInfoOuterClass.RogueSeasonInfo value) { - bitField0_ |= 0x00000010; - rogueSeasonInfo.copyFrom(value); - return this; - } - - @Override - public RogueInfoData copyFrom(final RogueInfoData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueAreaInfo.copyFrom(other.rogueAreaInfo); - rogueScoreInfo.copyFrom(other.rogueScoreInfo); - rogueAeonInfo.copyFrom(other.rogueAeonInfo); - rogueVirtualItemInfo.copyFrom(other.rogueVirtualItemInfo); - rogueSeasonInfo.copyFrom(other.rogueSeasonInfo); - } - return this; - } - - @Override - public RogueInfoData mergeFrom(final RogueInfoData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueAreaInfo()) { - getMutableRogueAreaInfo().mergeFrom(other.rogueAreaInfo); - } - if (other.hasRogueScoreInfo()) { - getMutableRogueScoreInfo().mergeFrom(other.rogueScoreInfo); - } - if (other.hasRogueAeonInfo()) { - getMutableRogueAeonInfo().mergeFrom(other.rogueAeonInfo); - } - if (other.hasRogueVirtualItemInfo()) { - getMutableRogueVirtualItemInfo().mergeFrom(other.rogueVirtualItemInfo); - } - if (other.hasRogueSeasonInfo()) { - getMutableRogueSeasonInfo().mergeFrom(other.rogueSeasonInfo); - } - return this; - } - - @Override - public RogueInfoData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueAreaInfo.clear(); - rogueScoreInfo.clear(); - rogueAeonInfo.clear(); - rogueVirtualItemInfo.clear(); - rogueSeasonInfo.clear(); - return this; - } - - @Override - public RogueInfoData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueAreaInfo.clearQuick(); - rogueScoreInfo.clearQuick(); - rogueAeonInfo.clearQuick(); - rogueVirtualItemInfo.clearQuick(); - rogueSeasonInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueInfoData)) { - return false; - } - RogueInfoData other = (RogueInfoData) o; - return bitField0_ == other.bitField0_ - && (!hasRogueAreaInfo() || rogueAreaInfo.equals(other.rogueAreaInfo)) - && (!hasRogueScoreInfo() || rogueScoreInfo.equals(other.rogueScoreInfo)) - && (!hasRogueAeonInfo() || rogueAeonInfo.equals(other.rogueAeonInfo)) - && (!hasRogueVirtualItemInfo() || rogueVirtualItemInfo.equals(other.rogueVirtualItemInfo)) - && (!hasRogueSeasonInfo() || rogueSeasonInfo.equals(other.rogueSeasonInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(rogueAreaInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(rogueScoreInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(rogueAeonInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(rogueVirtualItemInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(rogueSeasonInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAreaInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueScoreInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueAeonInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItemInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueSeasonInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueInfoData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 18: { - // rogueAreaInfo - input.readMessage(rogueAreaInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // rogueScoreInfo - input.readMessage(rogueScoreInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // rogueAeonInfo - input.readMessage(rogueAeonInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { - // rogueVirtualItemInfo - input.readMessage(rogueVirtualItemInfo); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // rogueSeasonInfo - input.readMessage(rogueSeasonInfo); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueAreaInfo, rogueAreaInfo); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueScoreInfo, rogueScoreInfo); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueAeonInfo, rogueAeonInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.rogueVirtualItemInfo, rogueVirtualItemInfo); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.rogueSeasonInfo, rogueSeasonInfo); - } - output.endObject(); - } - - @Override - public RogueInfoData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 964297429: - case -851505925: { - if (input.isAtField(FieldNames.rogueAreaInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAreaInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2078217638: - case -208816704: { - if (input.isAtField(FieldNames.rogueScoreInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueScoreInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1685018549: - case -1375922619: { - if (input.isAtField(FieldNames.rogueAeonInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueAeonInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1066755410: - case 1452147457: { - if (input.isAtField(FieldNames.rogueVirtualItemInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueVirtualItemInfo); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1037341781: - case -588845659: { - if (input.isAtField(FieldNames.rogueSeasonInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueSeasonInfo); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueInfoData clone() { - return new RogueInfoData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueInfoData parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueInfoData(), data).checkInitialized(); - } - - public static RogueInfoData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueInfoData(), input).checkInitialized(); - } - - public static RogueInfoData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueInfoData(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueInfoData messages - */ - public static MessageFactory getFactory() { - return RogueInfoDataFactory.INSTANCE; - } - - private enum RogueInfoDataFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueInfoData create() { - return RogueInfoData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueAreaInfo = FieldName.forField("rogueAreaInfo", "rogue_area_info"); - - static final FieldName rogueScoreInfo = FieldName.forField("rogueScoreInfo", "rogue_score_info"); - - static final FieldName rogueAeonInfo = FieldName.forField("rogueAeonInfo", "rogue_aeon_info"); - - static final FieldName rogueVirtualItemInfo = FieldName.forField("rogueVirtualItemInfo", "rogue_virtual_item_info"); - - static final FieldName rogueSeasonInfo = FieldName.forField("rogueSeasonInfo", "rogue_season_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java deleted file mode 100644 index 390059c..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueInfoOuterClass.java +++ /dev/null @@ -1,382 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueInfoOuterClass { - /** - * Protobuf type {@code RogueInfo} - */ - public static final class RogueInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueInfoData rogue_info_data = 306; - */ - private final RogueInfoDataOuterClass.RogueInfoData rogueInfoData = RogueInfoDataOuterClass.RogueInfoData.newInstance(); - - /** - * optional .RogueCurrentInfo rogue_current_info = 1019; - */ - private final RogueCurrentInfoOuterClass.RogueCurrentInfo rogueCurrentInfo = RogueCurrentInfoOuterClass.RogueCurrentInfo.newInstance(); - - private RogueInfo() { - } - - /** - * @return a new empty instance of {@code RogueInfo} - */ - public static RogueInfo newInstance() { - return new RogueInfo(); - } - - /** - * optional .RogueInfoData rogue_info_data = 306; - * @return whether the rogueInfoData field is set - */ - public boolean hasRogueInfoData() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueInfoData rogue_info_data = 306; - * @return this - */ - public RogueInfo clearRogueInfoData() { - bitField0_ &= ~0x00000001; - rogueInfoData.clear(); - return this; - } - - /** - * optional .RogueInfoData rogue_info_data = 306; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueInfoData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueInfoDataOuterClass.RogueInfoData getRogueInfoData() { - return rogueInfoData; - } - - /** - * optional .RogueInfoData rogue_info_data = 306; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueInfoDataOuterClass.RogueInfoData getMutableRogueInfoData() { - bitField0_ |= 0x00000001; - return rogueInfoData; - } - - /** - * optional .RogueInfoData rogue_info_data = 306; - * @param value the rogueInfoData to set - * @return this - */ - public RogueInfo setRogueInfoData(final RogueInfoDataOuterClass.RogueInfoData value) { - bitField0_ |= 0x00000001; - rogueInfoData.copyFrom(value); - return this; - } - - /** - * optional .RogueCurrentInfo rogue_current_info = 1019; - * @return whether the rogueCurrentInfo field is set - */ - public boolean hasRogueCurrentInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueCurrentInfo rogue_current_info = 1019; - * @return this - */ - public RogueInfo clearRogueCurrentInfo() { - bitField0_ &= ~0x00000002; - rogueCurrentInfo.clear(); - return this; - } - - /** - * optional .RogueCurrentInfo rogue_current_info = 1019; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueCurrentInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCurrentInfoOuterClass.RogueCurrentInfo getRogueCurrentInfo() { - return rogueCurrentInfo; - } - - /** - * optional .RogueCurrentInfo rogue_current_info = 1019; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCurrentInfoOuterClass.RogueCurrentInfo getMutableRogueCurrentInfo() { - bitField0_ |= 0x00000002; - return rogueCurrentInfo; - } - - /** - * optional .RogueCurrentInfo rogue_current_info = 1019; - * @param value the rogueCurrentInfo to set - * @return this - */ - public RogueInfo setRogueCurrentInfo(final RogueCurrentInfoOuterClass.RogueCurrentInfo value) { - bitField0_ |= 0x00000002; - rogueCurrentInfo.copyFrom(value); - return this; - } - - @Override - public RogueInfo copyFrom(final RogueInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueInfoData.copyFrom(other.rogueInfoData); - rogueCurrentInfo.copyFrom(other.rogueCurrentInfo); - } - return this; - } - - @Override - public RogueInfo mergeFrom(final RogueInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueInfoData()) { - getMutableRogueInfoData().mergeFrom(other.rogueInfoData); - } - if (other.hasRogueCurrentInfo()) { - getMutableRogueCurrentInfo().mergeFrom(other.rogueCurrentInfo); - } - return this; - } - - @Override - public RogueInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueInfoData.clear(); - rogueCurrentInfo.clear(); - return this; - } - - @Override - public RogueInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueInfoData.clearQuick(); - rogueCurrentInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueInfo)) { - return false; - } - RogueInfo other = (RogueInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueInfoData() || rogueInfoData.equals(other.rogueInfoData)) - && (!hasRogueCurrentInfo() || rogueCurrentInfo.equals(other.rogueCurrentInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawLittleEndian16((short) 5010); - output.writeMessageNoTag(rogueInfoData); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawLittleEndian16((short) 16346); - output.writeMessageNoTag(rogueCurrentInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueInfoData); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 2 + ProtoSink.computeMessageSizeNoTag(rogueCurrentInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 2450: { - // rogueInfoData - input.readMessage(rogueInfoData); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8154) { - break; - } - } - case 8154: { - // rogueCurrentInfo - input.readMessage(rogueCurrentInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueInfoData, rogueInfoData); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueCurrentInfo, rogueCurrentInfo); - } - output.endObject(); - } - - @Override - public RogueInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1486739086: - case 480604278: { - if (input.isAtField(FieldNames.rogueInfoData)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueInfoData); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -611905651: - case 1279173113: { - if (input.isAtField(FieldNames.rogueCurrentInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueCurrentInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueInfo clone() { - return new RogueInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueInfo(), data).checkInitialized(); - } - - public static RogueInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueInfo(), input).checkInitialized(); - } - - public static RogueInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueInfo messages - */ - public static MessageFactory getFactory() { - return RogueInfoFactory.INSTANCE; - } - - private enum RogueInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueInfo create() { - return RogueInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueInfoData = FieldName.forField("rogueInfoData", "rogue_info_data"); - - static final FieldName rogueCurrentInfo = FieldName.forField("rogueCurrentInfo", "rogue_current_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java deleted file mode 100644 index b928eb8..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMapInfoOuterClass.java +++ /dev/null @@ -1,617 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueMapInfoOuterClass { - /** - * Protobuf type {@code RogueMapInfo} - */ - public static final class RogueMapInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 area_id = 4; - */ - private int areaId; - - /** - * optional uint32 cur_site_id = 12; - */ - private int curSiteId; - - /** - * optional uint32 map_id = 13; - */ - private int mapId; - - /** - * optional uint32 cur_room_id = 15; - */ - private int curRoomId; - - /** - * repeated .RogueRoom room_list = 10; - */ - private final RepeatedMessage roomList = RepeatedMessage.newEmptyInstance(RogueRoomOuterClass.RogueRoom.getFactory()); - - private RogueMapInfo() { - } - - /** - * @return a new empty instance of {@code RogueMapInfo} - */ - public static RogueMapInfo newInstance() { - return new RogueMapInfo(); - } - - /** - * optional uint32 area_id = 4; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 area_id = 4; - * @return this - */ - public RogueMapInfo clearAreaId() { - bitField0_ &= ~0x00000001; - areaId = 0; - return this; - } - - /** - * optional uint32 area_id = 4; - * @return the areaId - */ - public int getAreaId() { - return areaId; - } - - /** - * optional uint32 area_id = 4; - * @param value the areaId to set - * @return this - */ - public RogueMapInfo setAreaId(final int value) { - bitField0_ |= 0x00000001; - areaId = value; - return this; - } - - /** - * optional uint32 cur_site_id = 12; - * @return whether the curSiteId field is set - */ - public boolean hasCurSiteId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cur_site_id = 12; - * @return this - */ - public RogueMapInfo clearCurSiteId() { - bitField0_ &= ~0x00000002; - curSiteId = 0; - return this; - } - - /** - * optional uint32 cur_site_id = 12; - * @return the curSiteId - */ - public int getCurSiteId() { - return curSiteId; - } - - /** - * optional uint32 cur_site_id = 12; - * @param value the curSiteId to set - * @return this - */ - public RogueMapInfo setCurSiteId(final int value) { - bitField0_ |= 0x00000002; - curSiteId = value; - return this; - } - - /** - * optional uint32 map_id = 13; - * @return whether the mapId field is set - */ - public boolean hasMapId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 map_id = 13; - * @return this - */ - public RogueMapInfo clearMapId() { - bitField0_ &= ~0x00000004; - mapId = 0; - return this; - } - - /** - * optional uint32 map_id = 13; - * @return the mapId - */ - public int getMapId() { - return mapId; - } - - /** - * optional uint32 map_id = 13; - * @param value the mapId to set - * @return this - */ - public RogueMapInfo setMapId(final int value) { - bitField0_ |= 0x00000004; - mapId = value; - return this; - } - - /** - * optional uint32 cur_room_id = 15; - * @return whether the curRoomId field is set - */ - public boolean hasCurRoomId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 cur_room_id = 15; - * @return this - */ - public RogueMapInfo clearCurRoomId() { - bitField0_ &= ~0x00000008; - curRoomId = 0; - return this; - } - - /** - * optional uint32 cur_room_id = 15; - * @return the curRoomId - */ - public int getCurRoomId() { - return curRoomId; - } - - /** - * optional uint32 cur_room_id = 15; - * @param value the curRoomId to set - * @return this - */ - public RogueMapInfo setCurRoomId(final int value) { - bitField0_ |= 0x00000008; - curRoomId = value; - return this; - } - - /** - * repeated .RogueRoom room_list = 10; - * @return whether the roomList field is set - */ - public boolean hasRoomList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated .RogueRoom room_list = 10; - * @return this - */ - public RogueMapInfo clearRoomList() { - bitField0_ &= ~0x00000010; - roomList.clear(); - return this; - } - - /** - * repeated .RogueRoom room_list = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRoomList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRoomList() { - return roomList; - } - - /** - * repeated .RogueRoom room_list = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRoomList() { - bitField0_ |= 0x00000010; - return roomList; - } - - /** - * repeated .RogueRoom room_list = 10; - * @param value the roomList to add - * @return this - */ - public RogueMapInfo addRoomList(final RogueRoomOuterClass.RogueRoom value) { - bitField0_ |= 0x00000010; - roomList.add(value); - return this; - } - - /** - * repeated .RogueRoom room_list = 10; - * @param values the roomList to add - * @return this - */ - public RogueMapInfo addAllRoomList(final RogueRoomOuterClass.RogueRoom... values) { - bitField0_ |= 0x00000010; - roomList.addAll(values); - return this; - } - - @Override - public RogueMapInfo copyFrom(final RogueMapInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - areaId = other.areaId; - curSiteId = other.curSiteId; - mapId = other.mapId; - curRoomId = other.curRoomId; - roomList.copyFrom(other.roomList); - } - return this; - } - - @Override - public RogueMapInfo mergeFrom(final RogueMapInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasAreaId()) { - setAreaId(other.areaId); - } - if (other.hasCurSiteId()) { - setCurSiteId(other.curSiteId); - } - if (other.hasMapId()) { - setMapId(other.mapId); - } - if (other.hasCurRoomId()) { - setCurRoomId(other.curRoomId); - } - if (other.hasRoomList()) { - getMutableRoomList().addAll(other.roomList); - } - return this; - } - - @Override - public RogueMapInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - areaId = 0; - curSiteId = 0; - mapId = 0; - curRoomId = 0; - roomList.clear(); - return this; - } - - @Override - public RogueMapInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - roomList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMapInfo)) { - return false; - } - RogueMapInfo other = (RogueMapInfo) o; - return bitField0_ == other.bitField0_ - && (!hasAreaId() || areaId == other.areaId) - && (!hasCurSiteId() || curSiteId == other.curSiteId) - && (!hasMapId() || mapId == other.mapId) - && (!hasCurRoomId() || curRoomId == other.curRoomId) - && (!hasRoomList() || roomList.equals(other.roomList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(areaId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(curSiteId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(mapId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(curRoomId); - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < roomList.length(); i++) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(roomList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curSiteId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curRoomId); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * roomList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(roomList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMapInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // areaId - areaId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // curSiteId - curSiteId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // mapId - mapId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // curRoomId - curRoomId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // roomList - tag = input.readRepeatedMessage(roomList, tag); - bitField0_ |= 0x00000010; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.areaId, areaId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.curSiteId, curSiteId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mapId, mapId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.curRoomId, curRoomId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.roomList, roomList); - } - output.endObject(); - } - - @Override - public RogueMapInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { - if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -226037470: - case 1245078036: { - if (input.isAtField(FieldNames.curSiteId)) { - if (!input.trySkipNullValue()) { - curSiteId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 103663511: - case -1081377058: { - if (input.isAtField(FieldNames.mapId)) { - if (!input.trySkipNullValue()) { - mapId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -249266762: - case 524969984: { - if (input.isAtField(FieldNames.curRoomId)) { - if (!input.trySkipNullValue()) { - curRoomId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -173555687: - case -1067632254: { - if (input.isAtField(FieldNames.roomList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(roomList); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMapInfo clone() { - return new RogueMapInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMapInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMapInfo(), data).checkInitialized(); - } - - public static RogueMapInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMapInfo(), input).checkInitialized(); - } - - public static RogueMapInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMapInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMapInfo messages - */ - public static MessageFactory getFactory() { - return RogueMapInfoFactory.INSTANCE; - } - - private enum RogueMapInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMapInfo create() { - return RogueMapInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName areaId = FieldName.forField("areaId", "area_id"); - - static final FieldName curSiteId = FieldName.forField("curSiteId", "cur_site_id"); - - static final FieldName mapId = FieldName.forField("mapId", "map_id"); - - static final FieldName curRoomId = FieldName.forField("curRoomId", "cur_room_id"); - - static final FieldName roomList = FieldName.forField("roomList", "room_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleDataInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleDataInfoOuterClass.java deleted file mode 100644 index 3bd587a..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleDataInfoOuterClass.java +++ /dev/null @@ -1,939 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueMiracleDataInfoOuterClass { - /** - * Protobuf type {@code RogueMiracleDataInfo} - */ - public static final class RogueMiracleDataInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 NFNNOMAMNAA = 4; - */ - private int nFNNOMAMNAA; - - /** - * optional uint32 KABNOGFDKFI = 6; - */ - private int kABNOGFDKFI; - - /** - * optional uint32 NDPAMBJKKFD = 9; - */ - private int nDPAMBJKKFD; - - /** - * optional uint32 miracle_id = 13; - */ - private int miracleId; - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - */ - private final RepeatedMessage jBFJGEIGGBA = RepeatedMessage.newEmptyInstance(JBFJGEIGGBAEntry.getFactory()); - - private RogueMiracleDataInfo() { - } - - /** - * @return a new empty instance of {@code RogueMiracleDataInfo} - */ - public static RogueMiracleDataInfo newInstance() { - return new RogueMiracleDataInfo(); - } - - /** - * optional uint32 NFNNOMAMNAA = 4; - * @return whether the nFNNOMAMNAA field is set - */ - public boolean hasNFNNOMAMNAA() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 NFNNOMAMNAA = 4; - * @return this - */ - public RogueMiracleDataInfo clearNFNNOMAMNAA() { - bitField0_ &= ~0x00000001; - nFNNOMAMNAA = 0; - return this; - } - - /** - * optional uint32 NFNNOMAMNAA = 4; - * @return the nFNNOMAMNAA - */ - public int getNFNNOMAMNAA() { - return nFNNOMAMNAA; - } - - /** - * optional uint32 NFNNOMAMNAA = 4; - * @param value the nFNNOMAMNAA to set - * @return this - */ - public RogueMiracleDataInfo setNFNNOMAMNAA(final int value) { - bitField0_ |= 0x00000001; - nFNNOMAMNAA = value; - return this; - } - - /** - * optional uint32 KABNOGFDKFI = 6; - * @return whether the kABNOGFDKFI field is set - */ - public boolean hasKABNOGFDKFI() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 KABNOGFDKFI = 6; - * @return this - */ - public RogueMiracleDataInfo clearKABNOGFDKFI() { - bitField0_ &= ~0x00000002; - kABNOGFDKFI = 0; - return this; - } - - /** - * optional uint32 KABNOGFDKFI = 6; - * @return the kABNOGFDKFI - */ - public int getKABNOGFDKFI() { - return kABNOGFDKFI; - } - - /** - * optional uint32 KABNOGFDKFI = 6; - * @param value the kABNOGFDKFI to set - * @return this - */ - public RogueMiracleDataInfo setKABNOGFDKFI(final int value) { - bitField0_ |= 0x00000002; - kABNOGFDKFI = value; - return this; - } - - /** - * optional uint32 NDPAMBJKKFD = 9; - * @return whether the nDPAMBJKKFD field is set - */ - public boolean hasNDPAMBJKKFD() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 NDPAMBJKKFD = 9; - * @return this - */ - public RogueMiracleDataInfo clearNDPAMBJKKFD() { - bitField0_ &= ~0x00000004; - nDPAMBJKKFD = 0; - return this; - } - - /** - * optional uint32 NDPAMBJKKFD = 9; - * @return the nDPAMBJKKFD - */ - public int getNDPAMBJKKFD() { - return nDPAMBJKKFD; - } - - /** - * optional uint32 NDPAMBJKKFD = 9; - * @param value the nDPAMBJKKFD to set - * @return this - */ - public RogueMiracleDataInfo setNDPAMBJKKFD(final int value) { - bitField0_ |= 0x00000004; - nDPAMBJKKFD = value; - return this; - } - - /** - * optional uint32 miracle_id = 13; - * @return whether the miracleId field is set - */ - public boolean hasMiracleId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 miracle_id = 13; - * @return this - */ - public RogueMiracleDataInfo clearMiracleId() { - bitField0_ &= ~0x00000008; - miracleId = 0; - return this; - } - - /** - * optional uint32 miracle_id = 13; - * @return the miracleId - */ - public int getMiracleId() { - return miracleId; - } - - /** - * optional uint32 miracle_id = 13; - * @param value the miracleId to set - * @return this - */ - public RogueMiracleDataInfo setMiracleId(final int value) { - bitField0_ |= 0x00000008; - miracleId = value; - return this; - } - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - * @return whether the jBFJGEIGGBA field is set - */ - public boolean hasJBFJGEIGGBA() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - * @return this - */ - public RogueMiracleDataInfo clearJBFJGEIGGBA() { - bitField0_ &= ~0x00000010; - jBFJGEIGGBA.clear(); - return this; - } - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableJBFJGEIGGBA()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getJBFJGEIGGBA() { - return jBFJGEIGGBA; - } - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableJBFJGEIGGBA() { - bitField0_ |= 0x00000010; - return jBFJGEIGGBA; - } - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - * @param value the jBFJGEIGGBA to add - * @return this - */ - public RogueMiracleDataInfo addJBFJGEIGGBA(final JBFJGEIGGBAEntry value) { - bitField0_ |= 0x00000010; - jBFJGEIGGBA.add(value); - return this; - } - - /** - * repeated .RogueMiracleDataInfo.JBFJGEIGGBAEntry JBFJGEIGGBA = 12; - * @param values the jBFJGEIGGBA to add - * @return this - */ - public RogueMiracleDataInfo addAllJBFJGEIGGBA(final JBFJGEIGGBAEntry... values) { - bitField0_ |= 0x00000010; - jBFJGEIGGBA.addAll(values); - return this; - } - - @Override - public RogueMiracleDataInfo copyFrom(final RogueMiracleDataInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - nFNNOMAMNAA = other.nFNNOMAMNAA; - kABNOGFDKFI = other.kABNOGFDKFI; - nDPAMBJKKFD = other.nDPAMBJKKFD; - miracleId = other.miracleId; - jBFJGEIGGBA.copyFrom(other.jBFJGEIGGBA); - } - return this; - } - - @Override - public RogueMiracleDataInfo mergeFrom(final RogueMiracleDataInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasNFNNOMAMNAA()) { - setNFNNOMAMNAA(other.nFNNOMAMNAA); - } - if (other.hasKABNOGFDKFI()) { - setKABNOGFDKFI(other.kABNOGFDKFI); - } - if (other.hasNDPAMBJKKFD()) { - setNDPAMBJKKFD(other.nDPAMBJKKFD); - } - if (other.hasMiracleId()) { - setMiracleId(other.miracleId); - } - if (other.hasJBFJGEIGGBA()) { - getMutableJBFJGEIGGBA().addAll(other.jBFJGEIGGBA); - } - return this; - } - - @Override - public RogueMiracleDataInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nFNNOMAMNAA = 0; - kABNOGFDKFI = 0; - nDPAMBJKKFD = 0; - miracleId = 0; - jBFJGEIGGBA.clear(); - return this; - } - - @Override - public RogueMiracleDataInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - jBFJGEIGGBA.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMiracleDataInfo)) { - return false; - } - RogueMiracleDataInfo other = (RogueMiracleDataInfo) o; - return bitField0_ == other.bitField0_ - && (!hasNFNNOMAMNAA() || nFNNOMAMNAA == other.nFNNOMAMNAA) - && (!hasKABNOGFDKFI() || kABNOGFDKFI == other.kABNOGFDKFI) - && (!hasNDPAMBJKKFD() || nDPAMBJKKFD == other.nDPAMBJKKFD) - && (!hasMiracleId() || miracleId == other.miracleId) - && (!hasJBFJGEIGGBA() || jBFJGEIGGBA.equals(other.jBFJGEIGGBA)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(nFNNOMAMNAA); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(kABNOGFDKFI); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(nDPAMBJKKFD); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(miracleId); - } - if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < jBFJGEIGGBA.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(jBFJGEIGGBA.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(nFNNOMAMNAA); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(kABNOGFDKFI); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(nDPAMBJKKFD); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); - } - if ((bitField0_ & 0x00000010) != 0) { - size += (1 * jBFJGEIGGBA.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(jBFJGEIGGBA); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMiracleDataInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // nFNNOMAMNAA - nFNNOMAMNAA = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // kABNOGFDKFI - kABNOGFDKFI = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // nDPAMBJKKFD - nDPAMBJKKFD = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // miracleId - miracleId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // jBFJGEIGGBA - tag = input.readRepeatedMessage(jBFJGEIGGBA, tag); - bitField0_ |= 0x00000010; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.nFNNOMAMNAA, nFNNOMAMNAA); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.kABNOGFDKFI, kABNOGFDKFI); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.nDPAMBJKKFD, nDPAMBJKKFD); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.miracleId, miracleId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.jBFJGEIGGBA, jBFJGEIGGBA); - } - output.endObject(); - } - - @Override - public RogueMiracleDataInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -681412180: { - if (input.isAtField(FieldNames.nFNNOMAMNAA)) { - if (!input.trySkipNullValue()) { - nFNNOMAMNAA = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1444231062: { - if (input.isAtField(FieldNames.kABNOGFDKFI)) { - if (!input.trySkipNullValue()) { - kABNOGFDKFI = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1423263980: { - if (input.isAtField(FieldNames.nDPAMBJKKFD)) { - if (!input.trySkipNullValue()) { - nDPAMBJKKFD = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -164571796: - case -806736983: { - if (input.isAtField(FieldNames.miracleId)) { - if (!input.trySkipNullValue()) { - miracleId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1130952882: { - if (input.isAtField(FieldNames.jBFJGEIGGBA)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(jBFJGEIGGBA); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMiracleDataInfo clone() { - return new RogueMiracleDataInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMiracleDataInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleDataInfo(), data).checkInitialized(); - } - - public static RogueMiracleDataInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleDataInfo(), input).checkInitialized(); - } - - public static RogueMiracleDataInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleDataInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMiracleDataInfo messages - */ - public static MessageFactory getFactory() { - return RogueMiracleDataInfoFactory.INSTANCE; - } - - /** - * Protobuf type {@code JBFJGEIGGBAEntry} - */ - public static final class JBFJGEIGGBAEntry extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 key = 1; - */ - private int key; - - /** - * optional uint32 value = 2; - */ - private int value_; - - private JBFJGEIGGBAEntry() { - } - - /** - * @return a new empty instance of {@code JBFJGEIGGBAEntry} - */ - public static JBFJGEIGGBAEntry newInstance() { - return new JBFJGEIGGBAEntry(); - } - - /** - * optional uint32 key = 1; - * @return whether the key field is set - */ - public boolean hasKey() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 key = 1; - * @return this - */ - public JBFJGEIGGBAEntry clearKey() { - bitField0_ &= ~0x00000001; - key = 0; - return this; - } - - /** - * optional uint32 key = 1; - * @return the key - */ - public int getKey() { - return key; - } - - /** - * optional uint32 key = 1; - * @param value the key to set - * @return this - */ - public JBFJGEIGGBAEntry setKey(final int value) { - bitField0_ |= 0x00000001; - key = value; - return this; - } - - /** - * optional uint32 value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 value = 2; - * @return this - */ - public JBFJGEIGGBAEntry clearValue() { - bitField0_ &= ~0x00000002; - value_ = 0; - return this; - } - - /** - * optional uint32 value = 2; - * @return the value_ - */ - public int getValue() { - return value_; - } - - /** - * optional uint32 value = 2; - * @param value the value_ to set - * @return this - */ - public JBFJGEIGGBAEntry setValue(final int value) { - bitField0_ |= 0x00000002; - value_ = value; - return this; - } - - @Override - public JBFJGEIGGBAEntry copyFrom(final JBFJGEIGGBAEntry other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - key = other.key; - value_ = other.value_; - } - return this; - } - - @Override - public JBFJGEIGGBAEntry mergeFrom(final JBFJGEIGGBAEntry other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKey()) { - setKey(other.key); - } - if (other.hasValue()) { - setValue(other.value_); - } - return this; - } - - @Override - public JBFJGEIGGBAEntry clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - key = 0; - value_ = 0; - return this; - } - - @Override - public JBFJGEIGGBAEntry clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof JBFJGEIGGBAEntry)) { - return false; - } - JBFJGEIGGBAEntry other = (JBFJGEIGGBAEntry) o; - return bitField0_ == other.bitField0_ - && (!hasKey() || key == other.key) - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public JBFJGEIGGBAEntry mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // key - key = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // value_ - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.key, key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public JBFJGEIGGBAEntry mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106079: { - if (input.isAtField(FieldNames.key)) { - if (!input.trySkipNullValue()) { - key = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public JBFJGEIGGBAEntry clone() { - return new JBFJGEIGGBAEntry().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static JBFJGEIGGBAEntry parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new JBFJGEIGGBAEntry(), data).checkInitialized(); - } - - public static JBFJGEIGGBAEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new JBFJGEIGGBAEntry(), input).checkInitialized(); - } - - public static JBFJGEIGGBAEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new JBFJGEIGGBAEntry(), input).checkInitialized(); - } - - /** - * @return factory for creating JBFJGEIGGBAEntry messages - */ - public static MessageFactory getFactory() { - return JBFJGEIGGBAEntryFactory.INSTANCE; - } - - private enum JBFJGEIGGBAEntryFactory implements MessageFactory { - INSTANCE; - - @Override - public JBFJGEIGGBAEntry create() { - return JBFJGEIGGBAEntry.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName key = FieldName.forField("key"); - - static final FieldName value_ = FieldName.forField("value"); - } - } - - private enum RogueMiracleDataInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMiracleDataInfo create() { - return RogueMiracleDataInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName nFNNOMAMNAA = FieldName.forField("NFNNOMAMNAA"); - - static final FieldName kABNOGFDKFI = FieldName.forField("KABNOGFDKFI"); - - static final FieldName nDPAMBJKKFD = FieldName.forField("NDPAMBJKKFD"); - - static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); - - static final FieldName jBFJGEIGGBA = FieldName.forField("JBFJGEIGGBA"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java deleted file mode 100644 index 47d06d1..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleDataOuterClass.java +++ /dev/null @@ -1,281 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueMiracleDataOuterClass { - /** - * Protobuf type {@code RogueMiracleData} - */ - public static final class RogueMiracleData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueMiracle rogue_miracle = 11; - */ - private final RogueMiracleOuterClass.RogueMiracle rogueMiracle = RogueMiracleOuterClass.RogueMiracle.newInstance(); - - private RogueMiracleData() { - } - - /** - * @return a new empty instance of {@code RogueMiracleData} - */ - public static RogueMiracleData newInstance() { - return new RogueMiracleData(); - } - - /** - * optional .RogueMiracle rogue_miracle = 11; - * @return whether the rogueMiracle field is set - */ - public boolean hasRogueMiracle() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueMiracle rogue_miracle = 11; - * @return this - */ - public RogueMiracleData clearRogueMiracle() { - bitField0_ &= ~0x00000001; - rogueMiracle.clear(); - return this; - } - - /** - * optional .RogueMiracle rogue_miracle = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueMiracle()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleOuterClass.RogueMiracle getRogueMiracle() { - return rogueMiracle; - } - - /** - * optional .RogueMiracle rogue_miracle = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleOuterClass.RogueMiracle getMutableRogueMiracle() { - bitField0_ |= 0x00000001; - return rogueMiracle; - } - - /** - * optional .RogueMiracle rogue_miracle = 11; - * @param value the rogueMiracle to set - * @return this - */ - public RogueMiracleData setRogueMiracle(final RogueMiracleOuterClass.RogueMiracle value) { - bitField0_ |= 0x00000001; - rogueMiracle.copyFrom(value); - return this; - } - - @Override - public RogueMiracleData copyFrom(final RogueMiracleData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueMiracle.copyFrom(other.rogueMiracle); - } - return this; - } - - @Override - public RogueMiracleData mergeFrom(final RogueMiracleData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueMiracle()) { - getMutableRogueMiracle().mergeFrom(other.rogueMiracle); - } - return this; - } - - @Override - public RogueMiracleData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracle.clear(); - return this; - } - - @Override - public RogueMiracleData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracle.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMiracleData)) { - return false; - } - RogueMiracleData other = (RogueMiracleData) o; - return bitField0_ == other.bitField0_ - && (!hasRogueMiracle() || rogueMiracle.equals(other.rogueMiracle)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(rogueMiracle); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracle); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMiracleData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 90: { - // rogueMiracle - input.readMessage(rogueMiracle); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueMiracle, rogueMiracle); - } - output.endObject(); - } - - @Override - public RogueMiracleData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1479551689: - case 1697369868: { - if (input.isAtField(FieldNames.rogueMiracle)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracle); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMiracleData clone() { - return new RogueMiracleData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMiracleData parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleData(), data).checkInitialized(); - } - - public static RogueMiracleData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleData(), input).checkInitialized(); - } - - public static RogueMiracleData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleData(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMiracleData messages - */ - public static MessageFactory getFactory() { - return RogueMiracleDataFactory.INSTANCE; - } - - private enum RogueMiracleDataFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMiracleData create() { - return RogueMiracleData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueMiracle = FieldName.forField("rogueMiracle", "rogue_miracle"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoDataOuterClass.java deleted file mode 100644 index 04898b2..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoDataOuterClass.java +++ /dev/null @@ -1,458 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueMiracleInfoDataOuterClass { - /** - * Protobuf type {@code RogueMiracleInfoData} - */ - public static final class RogueMiracleInfoData extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 BAILOBNCIGP = 2; - */ - private int bAILOBNCIGP; - - /** - * optional uint32 BDDANOBJMEL = 8; - */ - private int bDDANOBJMEL; - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - */ - private final RepeatedMessage rogueMiracleList = RepeatedMessage.newEmptyInstance(RogueMiracleDataInfoOuterClass.RogueMiracleDataInfo.getFactory()); - - private RogueMiracleInfoData() { - } - - /** - * @return a new empty instance of {@code RogueMiracleInfoData} - */ - public static RogueMiracleInfoData newInstance() { - return new RogueMiracleInfoData(); - } - - /** - * optional uint32 BAILOBNCIGP = 2; - * @return whether the bAILOBNCIGP field is set - */ - public boolean hasBAILOBNCIGP() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 BAILOBNCIGP = 2; - * @return this - */ - public RogueMiracleInfoData clearBAILOBNCIGP() { - bitField0_ &= ~0x00000001; - bAILOBNCIGP = 0; - return this; - } - - /** - * optional uint32 BAILOBNCIGP = 2; - * @return the bAILOBNCIGP - */ - public int getBAILOBNCIGP() { - return bAILOBNCIGP; - } - - /** - * optional uint32 BAILOBNCIGP = 2; - * @param value the bAILOBNCIGP to set - * @return this - */ - public RogueMiracleInfoData setBAILOBNCIGP(final int value) { - bitField0_ |= 0x00000001; - bAILOBNCIGP = value; - return this; - } - - /** - * optional uint32 BDDANOBJMEL = 8; - * @return whether the bDDANOBJMEL field is set - */ - public boolean hasBDDANOBJMEL() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 BDDANOBJMEL = 8; - * @return this - */ - public RogueMiracleInfoData clearBDDANOBJMEL() { - bitField0_ &= ~0x00000002; - bDDANOBJMEL = 0; - return this; - } - - /** - * optional uint32 BDDANOBJMEL = 8; - * @return the bDDANOBJMEL - */ - public int getBDDANOBJMEL() { - return bDDANOBJMEL; - } - - /** - * optional uint32 BDDANOBJMEL = 8; - * @param value the bDDANOBJMEL to set - * @return this - */ - public RogueMiracleInfoData setBDDANOBJMEL(final int value) { - bitField0_ |= 0x00000002; - bDDANOBJMEL = value; - return this; - } - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - * @return whether the rogueMiracleList field is set - */ - public boolean hasRogueMiracleList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - * @return this - */ - public RogueMiracleInfoData clearRogueMiracleList() { - bitField0_ &= ~0x00000004; - rogueMiracleList.clear(); - return this; - } - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueMiracleList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueMiracleList( - ) { - return rogueMiracleList; - } - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueMiracleList( - ) { - bitField0_ |= 0x00000004; - return rogueMiracleList; - } - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - * @param value the rogueMiracleList to add - * @return this - */ - public RogueMiracleInfoData addRogueMiracleList( - final RogueMiracleDataInfoOuterClass.RogueMiracleDataInfo value) { - bitField0_ |= 0x00000004; - rogueMiracleList.add(value); - return this; - } - - /** - * repeated .RogueMiracleDataInfo rogue_miracle_list = 12; - * @param values the rogueMiracleList to add - * @return this - */ - public RogueMiracleInfoData addAllRogueMiracleList( - final RogueMiracleDataInfoOuterClass.RogueMiracleDataInfo... values) { - bitField0_ |= 0x00000004; - rogueMiracleList.addAll(values); - return this; - } - - @Override - public RogueMiracleInfoData copyFrom(final RogueMiracleInfoData other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - bAILOBNCIGP = other.bAILOBNCIGP; - bDDANOBJMEL = other.bDDANOBJMEL; - rogueMiracleList.copyFrom(other.rogueMiracleList); - } - return this; - } - - @Override - public RogueMiracleInfoData mergeFrom(final RogueMiracleInfoData other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBAILOBNCIGP()) { - setBAILOBNCIGP(other.bAILOBNCIGP); - } - if (other.hasBDDANOBJMEL()) { - setBDDANOBJMEL(other.bDDANOBJMEL); - } - if (other.hasRogueMiracleList()) { - getMutableRogueMiracleList().addAll(other.rogueMiracleList); - } - return this; - } - - @Override - public RogueMiracleInfoData clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - bAILOBNCIGP = 0; - bDDANOBJMEL = 0; - rogueMiracleList.clear(); - return this; - } - - @Override - public RogueMiracleInfoData clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracleList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMiracleInfoData)) { - return false; - } - RogueMiracleInfoData other = (RogueMiracleInfoData) o; - return bitField0_ == other.bitField0_ - && (!hasBAILOBNCIGP() || bAILOBNCIGP == other.bAILOBNCIGP) - && (!hasBDDANOBJMEL() || bDDANOBJMEL == other.bDDANOBJMEL) - && (!hasRogueMiracleList() || rogueMiracleList.equals(other.rogueMiracleList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(bAILOBNCIGP); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(bDDANOBJMEL); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < rogueMiracleList.length(); i++) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(rogueMiracleList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bAILOBNCIGP); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bDDANOBJMEL); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * rogueMiracleList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueMiracleList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMiracleInfoData mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // bAILOBNCIGP - bAILOBNCIGP = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // bDDANOBJMEL - bDDANOBJMEL = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // rogueMiracleList - tag = input.readRepeatedMessage(rogueMiracleList, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.bAILOBNCIGP, bAILOBNCIGP); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.bDDANOBJMEL, bDDANOBJMEL); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.rogueMiracleList, rogueMiracleList); - } - output.endObject(); - } - - @Override - public RogueMiracleInfoData mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1343202120: { - if (input.isAtField(FieldNames.bAILOBNCIGP)) { - if (!input.trySkipNullValue()) { - bAILOBNCIGP = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1316239828: { - if (input.isAtField(FieldNames.bDDANOBJMEL)) { - if (!input.trySkipNullValue()) { - bDDANOBJMEL = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -452426123: - case 1925521905: { - if (input.isAtField(FieldNames.rogueMiracleList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueMiracleList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMiracleInfoData clone() { - return new RogueMiracleInfoData().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMiracleInfoData parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleInfoData(), data).checkInitialized(); - } - - public static RogueMiracleInfoData parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleInfoData(), input).checkInitialized(); - } - - public static RogueMiracleInfoData parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleInfoData(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMiracleInfoData messages - */ - public static MessageFactory getFactory() { - return RogueMiracleInfoDataFactory.INSTANCE; - } - - private enum RogueMiracleInfoDataFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMiracleInfoData create() { - return RogueMiracleInfoData.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName bAILOBNCIGP = FieldName.forField("BAILOBNCIGP"); - - static final FieldName bDDANOBJMEL = FieldName.forField("BDDANOBJMEL"); - - static final FieldName rogueMiracleList = FieldName.forField("rogueMiracleList", "rogue_miracle_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoOuterClass.java deleted file mode 100644 index 0cc57ed..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleInfoOuterClass.java +++ /dev/null @@ -1,282 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueMiracleInfoOuterClass { - /** - * Protobuf type {@code RogueMiracleInfo} - */ - public static final class RogueMiracleInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueMiracleInfoData rogue_miracle_info = 11; - */ - private final RogueMiracleInfoDataOuterClass.RogueMiracleInfoData rogueMiracleInfo = RogueMiracleInfoDataOuterClass.RogueMiracleInfoData.newInstance(); - - private RogueMiracleInfo() { - } - - /** - * @return a new empty instance of {@code RogueMiracleInfo} - */ - public static RogueMiracleInfo newInstance() { - return new RogueMiracleInfo(); - } - - /** - * optional .RogueMiracleInfoData rogue_miracle_info = 11; - * @return whether the rogueMiracleInfo field is set - */ - public boolean hasRogueMiracleInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueMiracleInfoData rogue_miracle_info = 11; - * @return this - */ - public RogueMiracleInfo clearRogueMiracleInfo() { - bitField0_ &= ~0x00000001; - rogueMiracleInfo.clear(); - return this; - } - - /** - * optional .RogueMiracleInfoData rogue_miracle_info = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueMiracleInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleInfoDataOuterClass.RogueMiracleInfoData getRogueMiracleInfo() { - return rogueMiracleInfo; - } - - /** - * optional .RogueMiracleInfoData rogue_miracle_info = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleInfoDataOuterClass.RogueMiracleInfoData getMutableRogueMiracleInfo() { - bitField0_ |= 0x00000001; - return rogueMiracleInfo; - } - - /** - * optional .RogueMiracleInfoData rogue_miracle_info = 11; - * @param value the rogueMiracleInfo to set - * @return this - */ - public RogueMiracleInfo setRogueMiracleInfo( - final RogueMiracleInfoDataOuterClass.RogueMiracleInfoData value) { - bitField0_ |= 0x00000001; - rogueMiracleInfo.copyFrom(value); - return this; - } - - @Override - public RogueMiracleInfo copyFrom(final RogueMiracleInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueMiracleInfo.copyFrom(other.rogueMiracleInfo); - } - return this; - } - - @Override - public RogueMiracleInfo mergeFrom(final RogueMiracleInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueMiracleInfo()) { - getMutableRogueMiracleInfo().mergeFrom(other.rogueMiracleInfo); - } - return this; - } - - @Override - public RogueMiracleInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracleInfo.clear(); - return this; - } - - @Override - public RogueMiracleInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracleInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMiracleInfo)) { - return false; - } - RogueMiracleInfo other = (RogueMiracleInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(rogueMiracleInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMiracleInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 90: { - // rogueMiracleInfo - input.readMessage(rogueMiracleInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); - } - output.endObject(); - } - - @Override - public RogueMiracleInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -452511099: - case 1925436929: { - if (input.isAtField(FieldNames.rogueMiracleInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracleInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMiracleInfo clone() { - return new RogueMiracleInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMiracleInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleInfo(), data).checkInitialized(); - } - - public static RogueMiracleInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleInfo(), input).checkInitialized(); - } - - public static RogueMiracleInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMiracleInfo messages - */ - public static MessageFactory getFactory() { - return RogueMiracleInfoFactory.INSTANCE; - } - - private enum RogueMiracleInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMiracleInfo create() { - return RogueMiracleInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueMiracleInfo = FieldName.forField("rogueMiracleInfo", "rogue_miracle_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java deleted file mode 100644 index 7950b5c..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleOuterClass.java +++ /dev/null @@ -1,878 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueMiracleOuterClass { - /** - * Protobuf type {@code RogueMiracle} - */ - public static final class RogueMiracle extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  was set to 3 in pcap
-     * 
- * - * optional uint32 NKBEHFHLPEF = 6; - */ - private int nKBEHFHLPEF; - - /** - * optional uint32 MMFONFFPNJM = 9; - */ - private int mMFONFFPNJM; - - /** - * optional uint32 miracle_id = 12; - */ - private int miracleId; - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - */ - private final RepeatedMessage kONAGCDHKKH = RepeatedMessage.newEmptyInstance(KONAGCDHKKHEntry.getFactory()); - - private RogueMiracle() { - } - - /** - * @return a new empty instance of {@code RogueMiracle} - */ - public static RogueMiracle newInstance() { - return new RogueMiracle(); - } - - /** - *
-     *  was set to 3 in pcap
-     * 
- * - * optional uint32 NKBEHFHLPEF = 6; - * @return whether the nKBEHFHLPEF field is set - */ - public boolean hasNKBEHFHLPEF() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  was set to 3 in pcap
-     * 
- * - * optional uint32 NKBEHFHLPEF = 6; - * @return this - */ - public RogueMiracle clearNKBEHFHLPEF() { - bitField0_ &= ~0x00000001; - nKBEHFHLPEF = 0; - return this; - } - - /** - *
-     *  was set to 3 in pcap
-     * 
- * - * optional uint32 NKBEHFHLPEF = 6; - * @return the nKBEHFHLPEF - */ - public int getNKBEHFHLPEF() { - return nKBEHFHLPEF; - } - - /** - *
-     *  was set to 3 in pcap
-     * 
- * - * optional uint32 NKBEHFHLPEF = 6; - * @param value the nKBEHFHLPEF to set - * @return this - */ - public RogueMiracle setNKBEHFHLPEF(final int value) { - bitField0_ |= 0x00000001; - nKBEHFHLPEF = value; - return this; - } - - /** - * optional uint32 MMFONFFPNJM = 9; - * @return whether the mMFONFFPNJM field is set - */ - public boolean hasMMFONFFPNJM() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 MMFONFFPNJM = 9; - * @return this - */ - public RogueMiracle clearMMFONFFPNJM() { - bitField0_ &= ~0x00000002; - mMFONFFPNJM = 0; - return this; - } - - /** - * optional uint32 MMFONFFPNJM = 9; - * @return the mMFONFFPNJM - */ - public int getMMFONFFPNJM() { - return mMFONFFPNJM; - } - - /** - * optional uint32 MMFONFFPNJM = 9; - * @param value the mMFONFFPNJM to set - * @return this - */ - public RogueMiracle setMMFONFFPNJM(final int value) { - bitField0_ |= 0x00000002; - mMFONFFPNJM = value; - return this; - } - - /** - * optional uint32 miracle_id = 12; - * @return whether the miracleId field is set - */ - public boolean hasMiracleId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 miracle_id = 12; - * @return this - */ - public RogueMiracle clearMiracleId() { - bitField0_ &= ~0x00000004; - miracleId = 0; - return this; - } - - /** - * optional uint32 miracle_id = 12; - * @return the miracleId - */ - public int getMiracleId() { - return miracleId; - } - - /** - * optional uint32 miracle_id = 12; - * @param value the miracleId to set - * @return this - */ - public RogueMiracle setMiracleId(final int value) { - bitField0_ |= 0x00000004; - miracleId = value; - return this; - } - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - * @return whether the kONAGCDHKKH field is set - */ - public boolean hasKONAGCDHKKH() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - * @return this - */ - public RogueMiracle clearKONAGCDHKKH() { - bitField0_ &= ~0x00000008; - kONAGCDHKKH.clear(); - return this; - } - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableKONAGCDHKKH()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getKONAGCDHKKH() { - return kONAGCDHKKH; - } - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableKONAGCDHKKH() { - bitField0_ |= 0x00000008; - return kONAGCDHKKH; - } - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - * @param value the kONAGCDHKKH to add - * @return this - */ - public RogueMiracle addKONAGCDHKKH(final KONAGCDHKKHEntry value) { - bitField0_ |= 0x00000008; - kONAGCDHKKH.add(value); - return this; - } - - /** - * repeated .RogueMiracle.KONAGCDHKKHEntry KONAGCDHKKH = 3; - * @param values the kONAGCDHKKH to add - * @return this - */ - public RogueMiracle addAllKONAGCDHKKH(final KONAGCDHKKHEntry... values) { - bitField0_ |= 0x00000008; - kONAGCDHKKH.addAll(values); - return this; - } - - @Override - public RogueMiracle copyFrom(final RogueMiracle other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - nKBEHFHLPEF = other.nKBEHFHLPEF; - mMFONFFPNJM = other.mMFONFFPNJM; - miracleId = other.miracleId; - kONAGCDHKKH.copyFrom(other.kONAGCDHKKH); - } - return this; - } - - @Override - public RogueMiracle mergeFrom(final RogueMiracle other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasNKBEHFHLPEF()) { - setNKBEHFHLPEF(other.nKBEHFHLPEF); - } - if (other.hasMMFONFFPNJM()) { - setMMFONFFPNJM(other.mMFONFFPNJM); - } - if (other.hasMiracleId()) { - setMiracleId(other.miracleId); - } - if (other.hasKONAGCDHKKH()) { - getMutableKONAGCDHKKH().addAll(other.kONAGCDHKKH); - } - return this; - } - - @Override - public RogueMiracle clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - nKBEHFHLPEF = 0; - mMFONFFPNJM = 0; - miracleId = 0; - kONAGCDHKKH.clear(); - return this; - } - - @Override - public RogueMiracle clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - kONAGCDHKKH.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMiracle)) { - return false; - } - RogueMiracle other = (RogueMiracle) o; - return bitField0_ == other.bitField0_ - && (!hasNKBEHFHLPEF() || nKBEHFHLPEF == other.nKBEHFHLPEF) - && (!hasMMFONFFPNJM() || mMFONFFPNJM == other.mMFONFFPNJM) - && (!hasMiracleId() || miracleId == other.miracleId) - && (!hasKONAGCDHKKH() || kONAGCDHKKH.equals(other.kONAGCDHKKH)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(nKBEHFHLPEF); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(mMFONFFPNJM); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(miracleId); - } - if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < kONAGCDHKKH.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(kONAGCDHKKH.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(nKBEHFHLPEF); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mMFONFFPNJM); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += (1 * kONAGCDHKKH.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(kONAGCDHKKH); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMiracle mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // nKBEHFHLPEF - nKBEHFHLPEF = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // mMFONFFPNJM - mMFONFFPNJM = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // miracleId - miracleId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // kONAGCDHKKH - tag = input.readRepeatedMessage(kONAGCDHKKH, tag); - bitField0_ |= 0x00000008; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.nKBEHFHLPEF, nKBEHFHLPEF); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.mMFONFFPNJM, mMFONFFPNJM); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.miracleId, miracleId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.kONAGCDHKKH, kONAGCDHKKH); - } - output.endObject(); - } - - @Override - public RogueMiracle mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -2066312081: { - if (input.isAtField(FieldNames.nKBEHFHLPEF)) { - if (!input.trySkipNullValue()) { - nKBEHFHLPEF = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1974288326: { - if (input.isAtField(FieldNames.mMFONFFPNJM)) { - if (!input.trySkipNullValue()) { - mMFONFFPNJM = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -164571796: - case -806736983: { - if (input.isAtField(FieldNames.miracleId)) { - if (!input.trySkipNullValue()) { - miracleId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1329612143: { - if (input.isAtField(FieldNames.kONAGCDHKKH)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(kONAGCDHKKH); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMiracle clone() { - return new RogueMiracle().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMiracle parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracle(), data).checkInitialized(); - } - - public static RogueMiracle parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracle(), input).checkInitialized(); - } - - public static RogueMiracle parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracle(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMiracle messages - */ - public static MessageFactory getFactory() { - return RogueMiracleFactory.INSTANCE; - } - - /** - * Protobuf type {@code KONAGCDHKKHEntry} - */ - public static final class KONAGCDHKKHEntry extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 key = 1; - */ - private int key; - - /** - * optional uint32 value = 2; - */ - private int value_; - - private KONAGCDHKKHEntry() { - } - - /** - * @return a new empty instance of {@code KONAGCDHKKHEntry} - */ - public static KONAGCDHKKHEntry newInstance() { - return new KONAGCDHKKHEntry(); - } - - /** - * optional uint32 key = 1; - * @return whether the key field is set - */ - public boolean hasKey() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 key = 1; - * @return this - */ - public KONAGCDHKKHEntry clearKey() { - bitField0_ &= ~0x00000001; - key = 0; - return this; - } - - /** - * optional uint32 key = 1; - * @return the key - */ - public int getKey() { - return key; - } - - /** - * optional uint32 key = 1; - * @param value the key to set - * @return this - */ - public KONAGCDHKKHEntry setKey(final int value) { - bitField0_ |= 0x00000001; - key = value; - return this; - } - - /** - * optional uint32 value = 2; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 value = 2; - * @return this - */ - public KONAGCDHKKHEntry clearValue() { - bitField0_ &= ~0x00000002; - value_ = 0; - return this; - } - - /** - * optional uint32 value = 2; - * @return the value_ - */ - public int getValue() { - return value_; - } - - /** - * optional uint32 value = 2; - * @param value the value_ to set - * @return this - */ - public KONAGCDHKKHEntry setValue(final int value) { - bitField0_ |= 0x00000002; - value_ = value; - return this; - } - - @Override - public KONAGCDHKKHEntry copyFrom(final KONAGCDHKKHEntry other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - key = other.key; - value_ = other.value_; - } - return this; - } - - @Override - public KONAGCDHKKHEntry mergeFrom(final KONAGCDHKKHEntry other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasKey()) { - setKey(other.key); - } - if (other.hasValue()) { - setValue(other.value_); - } - return this; - } - - @Override - public KONAGCDHKKHEntry clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - key = 0; - value_ = 0; - return this; - } - - @Override - public KONAGCDHKKHEntry clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof KONAGCDHKKHEntry)) { - return false; - } - KONAGCDHKKHEntry other = (KONAGCDHKKHEntry) o; - return bitField0_ == other.bitField0_ - && (!hasKey() || key == other.key) - && (!hasValue() || value_ == other.value_); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(key); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public KONAGCDHKKHEntry mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // key - key = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 16) { - break; - } - } - case 16: { - // value_ - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.key, key); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public KONAGCDHKKHEntry mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 106079: { - if (input.isAtField(FieldNames.key)) { - if (!input.trySkipNullValue()) { - key = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - value_ = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public KONAGCDHKKHEntry clone() { - return new KONAGCDHKKHEntry().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static KONAGCDHKKHEntry parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new KONAGCDHKKHEntry(), data).checkInitialized(); - } - - public static KONAGCDHKKHEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new KONAGCDHKKHEntry(), input).checkInitialized(); - } - - public static KONAGCDHKKHEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new KONAGCDHKKHEntry(), input).checkInitialized(); - } - - /** - * @return factory for creating KONAGCDHKKHEntry messages - */ - public static MessageFactory getFactory() { - return KONAGCDHKKHEntryFactory.INSTANCE; - } - - private enum KONAGCDHKKHEntryFactory implements MessageFactory { - INSTANCE; - - @Override - public KONAGCDHKKHEntry create() { - return KONAGCDHKKHEntry.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName key = FieldName.forField("key"); - - static final FieldName value_ = FieldName.forField("value"); - } - } - - private enum RogueMiracleFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMiracle create() { - return RogueMiracle.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName nKBEHFHLPEF = FieldName.forField("NKBEHFHLPEF"); - - static final FieldName mMFONFFPNJM = FieldName.forField("MMFONFFPNJM"); - - static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); - - static final FieldName kONAGCDHKKH = FieldName.forField("KONAGCDHKKH"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java deleted file mode 100644 index 2b80fb9..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleSelectInfoOuterClass.java +++ /dev/null @@ -1,530 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class RogueMiracleSelectInfoOuterClass { - /** - * Protobuf type {@code RogueMiracleSelectInfo} - */ - public static final class RogueMiracleSelectInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 JDDLGDNOIEC = 5; - */ - private int jDDLGDNOIEC; - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - */ - private final RepeatedInt miracleInfoRemote = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 miracle_info = 13; - */ - private final RepeatedInt miracleInfo = RepeatedInt.newEmptyInstance(); - - private RogueMiracleSelectInfo() { - } - - /** - * @return a new empty instance of {@code RogueMiracleSelectInfo} - */ - public static RogueMiracleSelectInfo newInstance() { - return new RogueMiracleSelectInfo(); - } - - /** - * optional uint32 JDDLGDNOIEC = 5; - * @return whether the jDDLGDNOIEC field is set - */ - public boolean hasJDDLGDNOIEC() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 JDDLGDNOIEC = 5; - * @return this - */ - public RogueMiracleSelectInfo clearJDDLGDNOIEC() { - bitField0_ &= ~0x00000001; - jDDLGDNOIEC = 0; - return this; - } - - /** - * optional uint32 JDDLGDNOIEC = 5; - * @return the jDDLGDNOIEC - */ - public int getJDDLGDNOIEC() { - return jDDLGDNOIEC; - } - - /** - * optional uint32 JDDLGDNOIEC = 5; - * @param value the jDDLGDNOIEC to set - * @return this - */ - public RogueMiracleSelectInfo setJDDLGDNOIEC(final int value) { - bitField0_ |= 0x00000001; - jDDLGDNOIEC = value; - return this; - } - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - * @return whether the miracleInfoRemote field is set - */ - public boolean hasMiracleInfoRemote() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - * @return this - */ - public RogueMiracleSelectInfo clearMiracleInfoRemote() { - bitField0_ &= ~0x00000002; - miracleInfoRemote.clear(); - return this; - } - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleInfoRemote()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getMiracleInfoRemote() { - return miracleInfoRemote; - } - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableMiracleInfoRemote() { - bitField0_ |= 0x00000002; - return miracleInfoRemote; - } - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - * @param value the miracleInfoRemote to add - * @return this - */ - public RogueMiracleSelectInfo addMiracleInfoRemote(final int value) { - bitField0_ |= 0x00000002; - miracleInfoRemote.add(value); - return this; - } - - /** - *
-     *  CMHBBMOKJJB EOIFGPMGFGJ = 11;
-     * 
- * - * repeated uint32 miracle_info_remote = 9; - * @param values the miracleInfoRemote to add - * @return this - */ - public RogueMiracleSelectInfo addAllMiracleInfoRemote(final int... values) { - bitField0_ |= 0x00000002; - miracleInfoRemote.addAll(values); - return this; - } - - /** - * repeated uint32 miracle_info = 13; - * @return whether the miracleInfo field is set - */ - public boolean hasMiracleInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated uint32 miracle_info = 13; - * @return this - */ - public RogueMiracleSelectInfo clearMiracleInfo() { - bitField0_ &= ~0x00000004; - miracleInfo.clear(); - return this; - } - - /** - * repeated uint32 miracle_info = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getMiracleInfo() { - return miracleInfo; - } - - /** - * repeated uint32 miracle_info = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableMiracleInfo() { - bitField0_ |= 0x00000004; - return miracleInfo; - } - - /** - * repeated uint32 miracle_info = 13; - * @param value the miracleInfo to add - * @return this - */ - public RogueMiracleSelectInfo addMiracleInfo(final int value) { - bitField0_ |= 0x00000004; - miracleInfo.add(value); - return this; - } - - /** - * repeated uint32 miracle_info = 13; - * @param values the miracleInfo to add - * @return this - */ - public RogueMiracleSelectInfo addAllMiracleInfo(final int... values) { - bitField0_ |= 0x00000004; - miracleInfo.addAll(values); - return this; - } - - @Override - public RogueMiracleSelectInfo copyFrom(final RogueMiracleSelectInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - jDDLGDNOIEC = other.jDDLGDNOIEC; - miracleInfoRemote.copyFrom(other.miracleInfoRemote); - miracleInfo.copyFrom(other.miracleInfo); - } - return this; - } - - @Override - public RogueMiracleSelectInfo mergeFrom(final RogueMiracleSelectInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasJDDLGDNOIEC()) { - setJDDLGDNOIEC(other.jDDLGDNOIEC); - } - if (other.hasMiracleInfoRemote()) { - getMutableMiracleInfoRemote().addAll(other.miracleInfoRemote); - } - if (other.hasMiracleInfo()) { - getMutableMiracleInfo().addAll(other.miracleInfo); - } - return this; - } - - @Override - public RogueMiracleSelectInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - jDDLGDNOIEC = 0; - miracleInfoRemote.clear(); - miracleInfo.clear(); - return this; - } - - @Override - public RogueMiracleSelectInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleInfoRemote.clear(); - miracleInfo.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueMiracleSelectInfo)) { - return false; - } - RogueMiracleSelectInfo other = (RogueMiracleSelectInfo) o; - return bitField0_ == other.bitField0_ - && (!hasJDDLGDNOIEC() || jDDLGDNOIEC == other.jDDLGDNOIEC) - && (!hasMiracleInfoRemote() || miracleInfoRemote.equals(other.miracleInfoRemote)) - && (!hasMiracleInfo() || miracleInfo.equals(other.miracleInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(jDDLGDNOIEC); - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < miracleInfoRemote.length(); i++) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(miracleInfoRemote.array()[i]); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < miracleInfo.length(); i++) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(miracleInfo.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(jDDLGDNOIEC); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * miracleInfoRemote.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(miracleInfoRemote); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * miracleInfo.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(miracleInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueMiracleSelectInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // jDDLGDNOIEC - jDDLGDNOIEC = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // miracleInfoRemote [packed=true] - input.readPackedUInt32(miracleInfoRemote, tag); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // miracleInfo [packed=true] - input.readPackedUInt32(miracleInfo, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 72: { - // miracleInfoRemote [packed=false] - tag = input.readRepeatedUInt32(miracleInfoRemote, tag); - bitField0_ |= 0x00000002; - break; - } - case 104: { - // miracleInfo [packed=false] - tag = input.readRepeatedUInt32(miracleInfo, tag); - bitField0_ |= 0x00000004; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.jDDLGDNOIEC, jDDLGDNOIEC); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedUInt32(FieldNames.miracleInfoRemote, miracleInfoRemote); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.miracleInfo, miracleInfo); - } - output.endObject(); - } - - @Override - public RogueMiracleSelectInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1257811207: { - if (input.isAtField(FieldNames.jDDLGDNOIEC)) { - if (!input.trySkipNullValue()) { - jDDLGDNOIEC = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -212699675: - case 609350185: { - if (input.isAtField(FieldNames.miracleInfoRemote)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(miracleInfoRemote); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 760306879: - case 2114852796: { - if (input.isAtField(FieldNames.miracleInfo)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(miracleInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueMiracleSelectInfo clone() { - return new RogueMiracleSelectInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueMiracleSelectInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueMiracleSelectInfo(), data).checkInitialized(); - } - - public static RogueMiracleSelectInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleSelectInfo(), input).checkInitialized(); - } - - public static RogueMiracleSelectInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueMiracleSelectInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueMiracleSelectInfo messages - */ - public static MessageFactory getFactory() { - return RogueMiracleSelectInfoFactory.INSTANCE; - } - - private enum RogueMiracleSelectInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueMiracleSelectInfo create() { - return RogueMiracleSelectInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName jDDLGDNOIEC = FieldName.forField("JDDLGDNOIEC"); - - static final FieldName miracleInfoRemote = FieldName.forField("miracleInfoRemote", "miracle_info_remote"); - - static final FieldName miracleInfo = FieldName.forField("miracleInfo", "miracle_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java deleted file mode 100644 index 5cadec1..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueMiracleSourceOuterClass.java +++ /dev/null @@ -1,295 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueMiracleSourceOuterClass { - /** - * Protobuf enum {@code RogueMiracleSource} - */ - public enum RogueMiracleSource implements ProtoEnum { - /** - * ROGUE_MIRACLE_SOURCE_TYPE_NONE = 0; - */ - ROGUE_MIRACLE_SOURCE_TYPE_NONE("ROGUE_MIRACLE_SOURCE_TYPE_NONE", 0), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_SELECT = 1; - */ - ROGUE_MIRACLE_SOURCE_TYPE_SELECT("ROGUE_MIRACLE_SOURCE_TYPE_SELECT", 1), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE = 2; - */ - ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE("ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE", 2), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_BONUS = 3; - */ - ROGUE_MIRACLE_SOURCE_TYPE_BONUS("ROGUE_MIRACLE_SOURCE_TYPE_BONUS", 3), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_USE = 4; - */ - ROGUE_MIRACLE_SOURCE_TYPE_USE("ROGUE_MIRACLE_SOURCE_TYPE_USE", 4), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_RESET = 5; - */ - ROGUE_MIRACLE_SOURCE_TYPE_RESET("ROGUE_MIRACLE_SOURCE_TYPE_RESET", 5), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_REPLACE = 6; - */ - ROGUE_MIRACLE_SOURCE_TYPE_REPLACE("ROGUE_MIRACLE_SOURCE_TYPE_REPLACE", 6), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_TRADE = 7; - */ - ROGUE_MIRACLE_SOURCE_TYPE_TRADE("ROGUE_MIRACLE_SOURCE_TYPE_TRADE", 7), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_GET = 8; - */ - ROGUE_MIRACLE_SOURCE_TYPE_GET("ROGUE_MIRACLE_SOURCE_TYPE_GET", 8), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_SHOP = 9; - */ - ROGUE_MIRACLE_SOURCE_TYPE_SHOP("ROGUE_MIRACLE_SOURCE_TYPE_SHOP", 9), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL = 10; - */ - ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL("ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL", 10), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM = 11; - */ - ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM("ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM", 11), - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START = 12; - */ - ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START("ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START", 12); - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_NONE = 0; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_NONE_VALUE = 0; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_SELECT = 1; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_SELECT_VALUE = 1; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE = 2; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE_VALUE = 2; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_BONUS = 3; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_BONUS_VALUE = 3; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_USE = 4; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_USE_VALUE = 4; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_RESET = 5; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_RESET_VALUE = 5; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_REPLACE = 6; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_REPLACE_VALUE = 6; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_TRADE = 7; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_TRADE_VALUE = 7; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_GET = 8; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_GET_VALUE = 8; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_SHOP = 9; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_SHOP_VALUE = 9; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL = 10; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL_VALUE = 10; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM = 11; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM_VALUE = 11; - - /** - * ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START = 12; - */ - public static final int ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START_VALUE = 12; - - private final String name; - - private final int number; - - private RogueMiracleSource(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueMiracleSourceConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueMiracleSource forNumber(int value) { - return RogueMiracleSourceConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueMiracleSource forNumberOr(int number, RogueMiracleSource other) { - RogueMiracleSource value = forNumber(number); - return value == null ? other : value; - } - - enum RogueMiracleSourceConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueMiracleSource[] lookup = new RogueMiracleSource[13]; - - static { - lookup[0] = ROGUE_MIRACLE_SOURCE_TYPE_NONE; - lookup[1] = ROGUE_MIRACLE_SOURCE_TYPE_SELECT; - lookup[2] = ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE; - lookup[3] = ROGUE_MIRACLE_SOURCE_TYPE_BONUS; - lookup[4] = ROGUE_MIRACLE_SOURCE_TYPE_USE; - lookup[5] = ROGUE_MIRACLE_SOURCE_TYPE_RESET; - lookup[6] = ROGUE_MIRACLE_SOURCE_TYPE_REPLACE; - lookup[7] = ROGUE_MIRACLE_SOURCE_TYPE_TRADE; - lookup[8] = ROGUE_MIRACLE_SOURCE_TYPE_GET; - lookup[9] = ROGUE_MIRACLE_SOURCE_TYPE_SHOP; - lookup[10] = ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL; - lookup[11] = ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM; - lookup[12] = ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START; - } - - @Override - public final RogueMiracleSource forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueMiracleSource forName(final CharSequence value) { - switch (value.length()) { - case 29: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_USE", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_USE; - } - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_GET", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_GET; - } - break; - } - case 30: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_NONE", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_NONE; - } - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_SHOP", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_SHOP; - } - break; - } - case 31: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_BONUS", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_BONUS; - } - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_RESET", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_RESET; - } - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_TRADE", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_TRADE; - } - break; - } - case 32: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_SELECT", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_SELECT; - } - break; - } - case 33: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_REPLACE", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_REPLACE; - } - break; - } - case 34: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_DIALOGUE; - } - break; - } - case 36: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_MAZE_SKILL; - } - break; - } - case 41: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_LEVEL_MECHANISM; - } - break; - } - case 45: { - if (ProtoUtil.isEqual("ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START", value)) { - return ROGUE_MIRACLE_SOURCE_TYPE_ENDLESS_LEVEL_START; - } - break; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java deleted file mode 100644 index c967476..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueNpcDisappearCsReqOuterClass.java +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueNpcDisappearCsReqOuterClass { - /** - * Protobuf type {@code RogueNpcDisappearCsReq} - */ - public static final class RogueNpcDisappearCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 disappear_npc_entity_id = 11; - */ - private int disappearNpcEntityId; - - private RogueNpcDisappearCsReq() { - } - - /** - * @return a new empty instance of {@code RogueNpcDisappearCsReq} - */ - public static RogueNpcDisappearCsReq newInstance() { - return new RogueNpcDisappearCsReq(); - } - - /** - * optional uint32 disappear_npc_entity_id = 11; - * @return whether the disappearNpcEntityId field is set - */ - public boolean hasDisappearNpcEntityId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 disappear_npc_entity_id = 11; - * @return this - */ - public RogueNpcDisappearCsReq clearDisappearNpcEntityId() { - bitField0_ &= ~0x00000001; - disappearNpcEntityId = 0; - return this; - } - - /** - * optional uint32 disappear_npc_entity_id = 11; - * @return the disappearNpcEntityId - */ - public int getDisappearNpcEntityId() { - return disappearNpcEntityId; - } - - /** - * optional uint32 disappear_npc_entity_id = 11; - * @param value the disappearNpcEntityId to set - * @return this - */ - public RogueNpcDisappearCsReq setDisappearNpcEntityId(final int value) { - bitField0_ |= 0x00000001; - disappearNpcEntityId = value; - return this; - } - - @Override - public RogueNpcDisappearCsReq copyFrom(final RogueNpcDisappearCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - disappearNpcEntityId = other.disappearNpcEntityId; - } - return this; - } - - @Override - public RogueNpcDisappearCsReq mergeFrom(final RogueNpcDisappearCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDisappearNpcEntityId()) { - setDisappearNpcEntityId(other.disappearNpcEntityId); - } - return this; - } - - @Override - public RogueNpcDisappearCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - disappearNpcEntityId = 0; - return this; - } - - @Override - public RogueNpcDisappearCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueNpcDisappearCsReq)) { - return false; - } - RogueNpcDisappearCsReq other = (RogueNpcDisappearCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasDisappearNpcEntityId() || disappearNpcEntityId == other.disappearNpcEntityId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(disappearNpcEntityId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(disappearNpcEntityId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueNpcDisappearCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 88: { - // disappearNpcEntityId - disappearNpcEntityId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.disappearNpcEntityId, disappearNpcEntityId); - } - output.endObject(); - } - - @Override - public RogueNpcDisappearCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1209630020: - case -1719695491: { - if (input.isAtField(FieldNames.disappearNpcEntityId)) { - if (!input.trySkipNullValue()) { - disappearNpcEntityId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueNpcDisappearCsReq clone() { - return new RogueNpcDisappearCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueNpcDisappearCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueNpcDisappearCsReq(), data).checkInitialized(); - } - - public static RogueNpcDisappearCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueNpcDisappearCsReq(), input).checkInitialized(); - } - - public static RogueNpcDisappearCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueNpcDisappearCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueNpcDisappearCsReq messages - */ - public static MessageFactory getFactory() { - return RogueNpcDisappearCsReqFactory.INSTANCE; - } - - private enum RogueNpcDisappearCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueNpcDisappearCsReq create() { - return RogueNpcDisappearCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName disappearNpcEntityId = FieldName.forField("disappearNpcEntityId", "disappear_npc_entity_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java deleted file mode 100644 index af3d642..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueRecordInfoOuterClass.java +++ /dev/null @@ -1,532 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueRecordInfoOuterClass { - /** - * Protobuf type {@code RogueRecordInfo} - */ - public static final class RogueRecordInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated uint32 rogue_miracle_list = 8; - */ - private final RepeatedInt rogueMiracleList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - */ - private final RepeatedMessage avatarList = RepeatedMessage.newEmptyInstance(RogueRecordAvatarOuterClass.RogueRecordAvatar.getFactory()); - - /** - * repeated .RogueBuff buff_list = 9; - */ - private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(RogueBuffOuterClass.RogueBuff.getFactory()); - - private RogueRecordInfo() { - } - - /** - * @return a new empty instance of {@code RogueRecordInfo} - */ - public static RogueRecordInfo newInstance() { - return new RogueRecordInfo(); - } - - /** - * repeated uint32 rogue_miracle_list = 8; - * @return whether the rogueMiracleList field is set - */ - public boolean hasRogueMiracleList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated uint32 rogue_miracle_list = 8; - * @return this - */ - public RogueRecordInfo clearRogueMiracleList() { - bitField0_ &= ~0x00000001; - rogueMiracleList.clear(); - return this; - } - - /** - * repeated uint32 rogue_miracle_list = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueMiracleList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getRogueMiracleList() { - return rogueMiracleList; - } - - /** - * repeated uint32 rogue_miracle_list = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableRogueMiracleList() { - bitField0_ |= 0x00000001; - return rogueMiracleList; - } - - /** - * repeated uint32 rogue_miracle_list = 8; - * @param value the rogueMiracleList to add - * @return this - */ - public RogueRecordInfo addRogueMiracleList(final int value) { - bitField0_ |= 0x00000001; - rogueMiracleList.add(value); - return this; - } - - /** - * repeated uint32 rogue_miracle_list = 8; - * @param values the rogueMiracleList to add - * @return this - */ - public RogueRecordInfo addAllRogueMiracleList(final int... values) { - bitField0_ |= 0x00000001; - rogueMiracleList.addAll(values); - return this; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * @return whether the avatarList field is set - */ - public boolean hasAvatarList() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * @return this - */ - public RogueRecordInfo clearAvatarList() { - bitField0_ &= ~0x00000002; - avatarList.clear(); - return this; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableAvatarList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getAvatarList() { - return avatarList; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableAvatarList() { - bitField0_ |= 0x00000002; - return avatarList; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * @param value the avatarList to add - * @return this - */ - public RogueRecordInfo addAvatarList( - final RogueRecordAvatarOuterClass.RogueRecordAvatar value) { - bitField0_ |= 0x00000002; - avatarList.add(value); - return this; - } - - /** - * repeated .RogueRecordAvatar avatar_list = 7; - * @param values the avatarList to add - * @return this - */ - public RogueRecordInfo addAllAvatarList( - final RogueRecordAvatarOuterClass.RogueRecordAvatar... values) { - bitField0_ |= 0x00000002; - avatarList.addAll(values); - return this; - } - - /** - * repeated .RogueBuff buff_list = 9; - * @return whether the buffList field is set - */ - public boolean hasBuffList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueBuff buff_list = 9; - * @return this - */ - public RogueRecordInfo clearBuffList() { - bitField0_ &= ~0x00000004; - buffList.clear(); - return this; - } - - /** - * repeated .RogueBuff buff_list = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBuffList() { - return buffList; - } - - /** - * repeated .RogueBuff buff_list = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableBuffList() { - bitField0_ |= 0x00000004; - return buffList; - } - - /** - * repeated .RogueBuff buff_list = 9; - * @param value the buffList to add - * @return this - */ - public RogueRecordInfo addBuffList(final RogueBuffOuterClass.RogueBuff value) { - bitField0_ |= 0x00000004; - buffList.add(value); - return this; - } - - /** - * repeated .RogueBuff buff_list = 9; - * @param values the buffList to add - * @return this - */ - public RogueRecordInfo addAllBuffList(final RogueBuffOuterClass.RogueBuff... values) { - bitField0_ |= 0x00000004; - buffList.addAll(values); - return this; - } - - @Override - public RogueRecordInfo copyFrom(final RogueRecordInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueMiracleList.copyFrom(other.rogueMiracleList); - avatarList.copyFrom(other.avatarList); - buffList.copyFrom(other.buffList); - } - return this; - } - - @Override - public RogueRecordInfo mergeFrom(final RogueRecordInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueMiracleList()) { - getMutableRogueMiracleList().addAll(other.rogueMiracleList); - } - if (other.hasAvatarList()) { - getMutableAvatarList().addAll(other.avatarList); - } - if (other.hasBuffList()) { - getMutableBuffList().addAll(other.buffList); - } - return this; - } - - @Override - public RogueRecordInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracleList.clear(); - avatarList.clear(); - buffList.clear(); - return this; - } - - @Override - public RogueRecordInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueMiracleList.clear(); - avatarList.clearQuick(); - buffList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueRecordInfo)) { - return false; - } - RogueRecordInfo other = (RogueRecordInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueMiracleList() || rogueMiracleList.equals(other.rogueMiracleList)) - && (!hasAvatarList() || avatarList.equals(other.avatarList)) - && (!hasBuffList() || buffList.equals(other.buffList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < rogueMiracleList.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(rogueMiracleList.array()[i]); - } - } - if ((bitField0_ & 0x00000002) != 0) { - for (int i = 0; i < avatarList.length(); i++) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(avatarList.get(i)); - } - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(buffList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * rogueMiracleList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(rogueMiracleList); - } - if ((bitField0_ & 0x00000002) != 0) { - size += (1 * avatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(avatarList); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueRecordInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 66: { - // rogueMiracleList [packed=true] - input.readPackedUInt32(rogueMiracleList, tag); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // avatarList - tag = input.readRepeatedMessage(avatarList, tag); - bitField0_ |= 0x00000002; - if (tag != 74) { - break; - } - } - case 74: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 64: { - // rogueMiracleList [packed=false] - tag = input.readRepeatedUInt32(rogueMiracleList, tag); - bitField0_ |= 0x00000001; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedUInt32(FieldNames.rogueMiracleList, rogueMiracleList); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRepeatedMessage(FieldNames.avatarList, avatarList); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); - } - output.endObject(); - } - - @Override - public RogueRecordInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -452426123: - case 1925521905: { - if (input.isAtField(FieldNames.rogueMiracleList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(rogueMiracleList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -403402345: - case 397055940: { - if (input.isAtField(FieldNames.avatarList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(avatarList); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueRecordInfo clone() { - return new RogueRecordInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueRecordInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueRecordInfo(), data).checkInitialized(); - } - - public static RogueRecordInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRecordInfo(), input).checkInitialized(); - } - - public static RogueRecordInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRecordInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueRecordInfo messages - */ - public static MessageFactory getFactory() { - return RogueRecordInfoFactory.INSTANCE; - } - - private enum RogueRecordInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueRecordInfo create() { - return RogueRecordInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueMiracleList = FieldName.forField("rogueMiracleList", "rogue_miracle_list"); - - static final FieldName avatarList = FieldName.forField("avatarList", "avatar_list"); - - static final FieldName buffList = FieldName.forField("buffList", "buff_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRerollBuffOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRerollBuffOuterClass.java deleted file mode 100644 index ba4b728..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueRerollBuffOuterClass.java +++ /dev/null @@ -1,283 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueRerollBuffOuterClass { - /** - * Protobuf type {@code RogueRerollBuff} - */ - public static final class RogueRerollBuff extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 9; - */ - private final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo buffSelectInfo = RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo.newInstance(); - - private RogueRerollBuff() { - } - - /** - * @return a new empty instance of {@code RogueRerollBuff} - */ - public static RogueRerollBuff newInstance() { - return new RogueRerollBuff(); - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 9; - * @return whether the buffSelectInfo field is set - */ - public boolean hasBuffSelectInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 9; - * @return this - */ - public RogueRerollBuff clearBuffSelectInfo() { - bitField0_ &= ~0x00000001; - buffSelectInfo.clear(); - return this; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getBuffSelectInfo() { - return buffSelectInfo; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo getMutableBuffSelectInfo( - ) { - bitField0_ |= 0x00000001; - return buffSelectInfo; - } - - /** - * optional .RogueCommonBuffSelectInfo buff_select_info = 9; - * @param value the buffSelectInfo to set - * @return this - */ - public RogueRerollBuff setBuffSelectInfo( - final RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo value) { - bitField0_ |= 0x00000001; - buffSelectInfo.copyFrom(value); - return this; - } - - @Override - public RogueRerollBuff copyFrom(final RogueRerollBuff other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffSelectInfo.copyFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public RogueRerollBuff mergeFrom(final RogueRerollBuff other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffSelectInfo()) { - getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public RogueRerollBuff clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectInfo.clear(); - return this; - } - - @Override - public RogueRerollBuff clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueRerollBuff)) { - return false; - } - RogueRerollBuff other = (RogueRerollBuff) o; - return bitField0_ == other.bitField0_ - && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(buffSelectInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueRerollBuff mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 74: { - // buffSelectInfo - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); - } - output.endObject(); - } - - @Override - public RogueRerollBuff mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -255242115: - case 1500540965: { - if (input.isAtField(FieldNames.buffSelectInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueRerollBuff clone() { - return new RogueRerollBuff().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueRerollBuff parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueRerollBuff(), data).checkInitialized(); - } - - public static RogueRerollBuff parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRerollBuff(), input).checkInitialized(); - } - - public static RogueRerollBuff parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRerollBuff(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueRerollBuff messages - */ - public static MessageFactory getFactory() { - return RogueRerollBuffFactory.INSTANCE; - } - - private enum RogueRerollBuffFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueRerollBuff create() { - return RogueRerollBuff.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java deleted file mode 100644 index ce342c8..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueRoomOuterClass.java +++ /dev/null @@ -1,479 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueRoomOuterClass { - /** - * Protobuf type {@code RogueRoom} - */ - public static final class RogueRoom extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 room_id = 7; - */ - private int roomId; - - /** - * optional uint32 site_id = 12; - */ - private int siteId; - - /** - *
-     *  uint32 MGAHHMCOGKK = 10;
-     *  RogueRoomStatus GCLIKAAOKJL = 8; // GCLIKAAOKJL
-     * 
- * - * optional .RogueRoomStatus room_status = 11; - */ - private int roomStatus; - - private RogueRoom() { - } - - /** - * @return a new empty instance of {@code RogueRoom} - */ - public static RogueRoom newInstance() { - return new RogueRoom(); - } - - /** - * optional uint32 room_id = 7; - * @return whether the roomId field is set - */ - public boolean hasRoomId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 room_id = 7; - * @return this - */ - public RogueRoom clearRoomId() { - bitField0_ &= ~0x00000001; - roomId = 0; - return this; - } - - /** - * optional uint32 room_id = 7; - * @return the roomId - */ - public int getRoomId() { - return roomId; - } - - /** - * optional uint32 room_id = 7; - * @param value the roomId to set - * @return this - */ - public RogueRoom setRoomId(final int value) { - bitField0_ |= 0x00000001; - roomId = value; - return this; - } - - /** - * optional uint32 site_id = 12; - * @return whether the siteId field is set - */ - public boolean hasSiteId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 site_id = 12; - * @return this - */ - public RogueRoom clearSiteId() { - bitField0_ &= ~0x00000002; - siteId = 0; - return this; - } - - /** - * optional uint32 site_id = 12; - * @return the siteId - */ - public int getSiteId() { - return siteId; - } - - /** - * optional uint32 site_id = 12; - * @param value the siteId to set - * @return this - */ - public RogueRoom setSiteId(final int value) { - bitField0_ |= 0x00000002; - siteId = value; - return this; - } - - /** - *
-     *  uint32 MGAHHMCOGKK = 10;
-     *  RogueRoomStatus GCLIKAAOKJL = 8; // GCLIKAAOKJL
-     * 
- * - * optional .RogueRoomStatus room_status = 11; - * @return whether the roomStatus field is set - */ - public boolean hasRoomStatus() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  uint32 MGAHHMCOGKK = 10;
-     *  RogueRoomStatus GCLIKAAOKJL = 8; // GCLIKAAOKJL
-     * 
- * - * optional .RogueRoomStatus room_status = 11; - * @return this - */ - public RogueRoom clearRoomStatus() { - bitField0_ &= ~0x00000004; - roomStatus = 0; - return this; - } - - /** - *
-     *  uint32 MGAHHMCOGKK = 10;
-     *  RogueRoomStatus GCLIKAAOKJL = 8; // GCLIKAAOKJL
-     * 
- * - * optional .RogueRoomStatus room_status = 11; - * @return the roomStatus - */ - public RogueRoomStatusOuterClass.RogueRoomStatus getRoomStatus() { - return RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(roomStatus); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueRoom#getRoomStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getRoomStatusValue() { - return roomStatus; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueRoomStatusOuterClass.RogueRoomStatus}. Setting an invalid value - * can cause {@link RogueRoom#getRoomStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueRoom setRoomStatusValue(final int value) { - bitField0_ |= 0x00000004; - roomStatus = value; - return this; - } - - /** - *
-     *  uint32 MGAHHMCOGKK = 10;
-     *  RogueRoomStatus GCLIKAAOKJL = 8; // GCLIKAAOKJL
-     * 
- * - * optional .RogueRoomStatus room_status = 11; - * @param value the roomStatus to set - * @return this - */ - public RogueRoom setRoomStatus(final RogueRoomStatusOuterClass.RogueRoomStatus value) { - bitField0_ |= 0x00000004; - roomStatus = value.getNumber(); - return this; - } - - @Override - public RogueRoom copyFrom(final RogueRoom other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - roomId = other.roomId; - siteId = other.siteId; - roomStatus = other.roomStatus; - } - return this; - } - - @Override - public RogueRoom mergeFrom(final RogueRoom other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRoomId()) { - setRoomId(other.roomId); - } - if (other.hasSiteId()) { - setSiteId(other.siteId); - } - if (other.hasRoomStatus()) { - setRoomStatusValue(other.roomStatus); - } - return this; - } - - @Override - public RogueRoom clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - roomId = 0; - siteId = 0; - roomStatus = 0; - return this; - } - - @Override - public RogueRoom clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueRoom)) { - return false; - } - RogueRoom other = (RogueRoom) o; - return bitField0_ == other.bitField0_ - && (!hasRoomId() || roomId == other.roomId) - && (!hasSiteId() || siteId == other.siteId) - && (!hasRoomStatus() || roomStatus == other.roomStatus); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(roomId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(siteId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeEnumNoTag(roomStatus); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roomId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(siteId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(roomStatus); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueRoom mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 56: { - // roomId - roomId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { - // siteId - siteId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // roomStatus - final int value = input.readInt32(); - if (RogueRoomStatusOuterClass.RogueRoomStatus.forNumber(value) != null) { - roomStatus = value; - bitField0_ |= 0x00000004; - } - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.roomId, roomId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.siteId, siteId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.roomStatus, roomStatus, RogueRoomStatusOuterClass.RogueRoomStatus.converter()); - } - output.endObject(); - } - - @Override - public RogueRoom mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -925319338: - case 1379892991: { - if (input.isAtField(FieldNames.roomId)) { - if (!input.trySkipNullValue()) { - roomId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -902090046: - case 2100001043: { - if (input.isAtField(FieldNames.siteId)) { - if (!input.trySkipNullValue()) { - siteId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 926739629: - case 712617942: { - if (input.isAtField(FieldNames.roomStatus)) { - if (!input.trySkipNullValue()) { - final RogueRoomStatusOuterClass.RogueRoomStatus value = input.readEnum(RogueRoomStatusOuterClass.RogueRoomStatus.converter()); - if (value != null) { - roomStatus = value.getNumber(); - bitField0_ |= 0x00000004; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueRoom clone() { - return new RogueRoom().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueRoom parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueRoom(), data).checkInitialized(); - } - - public static RogueRoom parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRoom(), input).checkInitialized(); - } - - public static RogueRoom parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueRoom(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueRoom messages - */ - public static MessageFactory getFactory() { - return RogueRoomFactory.INSTANCE; - } - - private enum RogueRoomFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueRoom create() { - return RogueRoom.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName roomId = FieldName.forField("roomId", "room_id"); - - static final FieldName siteId = FieldName.forField("siteId", "site_id"); - - static final FieldName roomStatus = FieldName.forField("roomStatus", "room_status"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java deleted file mode 100644 index 5011a2a..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueRoomStatusOuterClass.java +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueRoomStatusOuterClass { - /** - * Protobuf enum {@code RogueRoomStatus} - */ - public enum RogueRoomStatus implements ProtoEnum { - /** - * ROGUE_ROOM_STATUS_NONE = 0; - */ - ROGUE_ROOM_STATUS_NONE("ROGUE_ROOM_STATUS_NONE", 0), - - /** - * ROGUE_ROOM_STATUS_LOCK = 1; - */ - ROGUE_ROOM_STATUS_LOCK("ROGUE_ROOM_STATUS_LOCK", 1), - - /** - * ROGUE_ROOM_STATUS_UNLOCK = 2; - */ - ROGUE_ROOM_STATUS_UNLOCK("ROGUE_ROOM_STATUS_UNLOCK", 2), - - /** - * ROGUE_ROOM_STATUS_PLAY = 3; - */ - ROGUE_ROOM_STATUS_PLAY("ROGUE_ROOM_STATUS_PLAY", 3), - - /** - * ROGUE_ROOM_STATUS_FINISH = 4; - */ - ROGUE_ROOM_STATUS_FINISH("ROGUE_ROOM_STATUS_FINISH", 4); - - /** - * ROGUE_ROOM_STATUS_NONE = 0; - */ - public static final int ROGUE_ROOM_STATUS_NONE_VALUE = 0; - - /** - * ROGUE_ROOM_STATUS_LOCK = 1; - */ - public static final int ROGUE_ROOM_STATUS_LOCK_VALUE = 1; - - /** - * ROGUE_ROOM_STATUS_UNLOCK = 2; - */ - public static final int ROGUE_ROOM_STATUS_UNLOCK_VALUE = 2; - - /** - * ROGUE_ROOM_STATUS_PLAY = 3; - */ - public static final int ROGUE_ROOM_STATUS_PLAY_VALUE = 3; - - /** - * ROGUE_ROOM_STATUS_FINISH = 4; - */ - public static final int ROGUE_ROOM_STATUS_FINISH_VALUE = 4; - - private final String name; - - private final int number; - - private RogueRoomStatus(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueRoomStatusConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueRoomStatus forNumber(int value) { - return RogueRoomStatusConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueRoomStatus forNumberOr(int number, RogueRoomStatus other) { - RogueRoomStatus value = forNumber(number); - return value == null ? other : value; - } - - enum RogueRoomStatusConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueRoomStatus[] lookup = new RogueRoomStatus[5]; - - static { - lookup[0] = ROGUE_ROOM_STATUS_NONE; - lookup[1] = ROGUE_ROOM_STATUS_LOCK; - lookup[2] = ROGUE_ROOM_STATUS_UNLOCK; - lookup[3] = ROGUE_ROOM_STATUS_PLAY; - lookup[4] = ROGUE_ROOM_STATUS_FINISH; - } - - @Override - public final RogueRoomStatus forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueRoomStatus forName(final CharSequence value) { - if (value.length() == 22) { - if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_NONE", value)) { - return ROGUE_ROOM_STATUS_NONE; - } - if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_LOCK", value)) { - return ROGUE_ROOM_STATUS_LOCK; - } - if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_PLAY", value)) { - return ROGUE_ROOM_STATUS_PLAY; - } - } - if (value.length() == 24) { - if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_UNLOCK", value)) { - return ROGUE_ROOM_STATUS_UNLOCK; - } - if (ProtoUtil.isEqual("ROGUE_ROOM_STATUS_FINISH", value)) { - return ROGUE_ROOM_STATUS_FINISH; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java deleted file mode 100644 index f53ca3e..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueScoreRewardInfoOuterClass.java +++ /dev/null @@ -1,826 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class RogueScoreRewardInfoOuterClass { - /** - * Protobuf type {@code RogueScoreRewardInfo} - */ - public static final class RogueScoreRewardInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  ICPLHHGHKOL
-     * 
- * - * optional int64 end_time = 4; - */ - private long endTime; - - /** - *
-     *  HLMEJKCAFBP
-     * 
- * - * optional int64 begin_time = 15; - */ - private long beginTime; - - /** - * optional uint32 score = 6; - */ - private int score; - - /** - * optional uint32 pool_id = 8; - */ - private int poolId; - - /** - * optional bool has_taken_initial_score = 10; - */ - private boolean hasTakenInitialScore; - - /** - * optional bool pool_refreshed = 14; - */ - private boolean poolRefreshed; - - /** - * repeated uint32 has_taken_reward = 7; - */ - private final RepeatedInt hasTakenReward = RepeatedInt.newEmptyInstance(); - - private RogueScoreRewardInfo() { - } - - /** - * @return a new empty instance of {@code RogueScoreRewardInfo} - */ - public static RogueScoreRewardInfo newInstance() { - return new RogueScoreRewardInfo(); - } - - /** - *
-     *  ICPLHHGHKOL
-     * 
- * - * optional int64 end_time = 4; - * @return whether the endTime field is set - */ - public boolean hasEndTime() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  ICPLHHGHKOL
-     * 
- * - * optional int64 end_time = 4; - * @return this - */ - public RogueScoreRewardInfo clearEndTime() { - bitField0_ &= ~0x00000001; - endTime = 0L; - return this; - } - - /** - *
-     *  ICPLHHGHKOL
-     * 
- * - * optional int64 end_time = 4; - * @return the endTime - */ - public long getEndTime() { - return endTime; - } - - /** - *
-     *  ICPLHHGHKOL
-     * 
- * - * optional int64 end_time = 4; - * @param value the endTime to set - * @return this - */ - public RogueScoreRewardInfo setEndTime(final long value) { - bitField0_ |= 0x00000001; - endTime = value; - return this; - } - - /** - *
-     *  HLMEJKCAFBP
-     * 
- * - * optional int64 begin_time = 15; - * @return whether the beginTime field is set - */ - public boolean hasBeginTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - *
-     *  HLMEJKCAFBP
-     * 
- * - * optional int64 begin_time = 15; - * @return this - */ - public RogueScoreRewardInfo clearBeginTime() { - bitField0_ &= ~0x00000002; - beginTime = 0L; - return this; - } - - /** - *
-     *  HLMEJKCAFBP
-     * 
- * - * optional int64 begin_time = 15; - * @return the beginTime - */ - public long getBeginTime() { - return beginTime; - } - - /** - *
-     *  HLMEJKCAFBP
-     * 
- * - * optional int64 begin_time = 15; - * @param value the beginTime to set - * @return this - */ - public RogueScoreRewardInfo setBeginTime(final long value) { - bitField0_ |= 0x00000002; - beginTime = value; - return this; - } - - /** - * optional uint32 score = 6; - * @return whether the score field is set - */ - public boolean hasScore() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 score = 6; - * @return this - */ - public RogueScoreRewardInfo clearScore() { - bitField0_ &= ~0x00000004; - score = 0; - return this; - } - - /** - * optional uint32 score = 6; - * @return the score - */ - public int getScore() { - return score; - } - - /** - * optional uint32 score = 6; - * @param value the score to set - * @return this - */ - public RogueScoreRewardInfo setScore(final int value) { - bitField0_ |= 0x00000004; - score = value; - return this; - } - - /** - * optional uint32 pool_id = 8; - * @return whether the poolId field is set - */ - public boolean hasPoolId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 pool_id = 8; - * @return this - */ - public RogueScoreRewardInfo clearPoolId() { - bitField0_ &= ~0x00000008; - poolId = 0; - return this; - } - - /** - * optional uint32 pool_id = 8; - * @return the poolId - */ - public int getPoolId() { - return poolId; - } - - /** - * optional uint32 pool_id = 8; - * @param value the poolId to set - * @return this - */ - public RogueScoreRewardInfo setPoolId(final int value) { - bitField0_ |= 0x00000008; - poolId = value; - return this; - } - - /** - * optional bool has_taken_initial_score = 10; - * @return whether the hasTakenInitialScore field is set - */ - public boolean hasHasTakenInitialScore() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional bool has_taken_initial_score = 10; - * @return this - */ - public RogueScoreRewardInfo clearHasTakenInitialScore() { - bitField0_ &= ~0x00000010; - hasTakenInitialScore = false; - return this; - } - - /** - * optional bool has_taken_initial_score = 10; - * @return the hasTakenInitialScore - */ - public boolean getHasTakenInitialScore() { - return hasTakenInitialScore; - } - - /** - * optional bool has_taken_initial_score = 10; - * @param value the hasTakenInitialScore to set - * @return this - */ - public RogueScoreRewardInfo setHasTakenInitialScore(final boolean value) { - bitField0_ |= 0x00000010; - hasTakenInitialScore = value; - return this; - } - - /** - * optional bool pool_refreshed = 14; - * @return whether the poolRefreshed field is set - */ - public boolean hasPoolRefreshed() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional bool pool_refreshed = 14; - * @return this - */ - public RogueScoreRewardInfo clearPoolRefreshed() { - bitField0_ &= ~0x00000020; - poolRefreshed = false; - return this; - } - - /** - * optional bool pool_refreshed = 14; - * @return the poolRefreshed - */ - public boolean getPoolRefreshed() { - return poolRefreshed; - } - - /** - * optional bool pool_refreshed = 14; - * @param value the poolRefreshed to set - * @return this - */ - public RogueScoreRewardInfo setPoolRefreshed(final boolean value) { - bitField0_ |= 0x00000020; - poolRefreshed = value; - return this; - } - - /** - * repeated uint32 has_taken_reward = 7; - * @return whether the hasTakenReward field is set - */ - public boolean hasHasTakenReward() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated uint32 has_taken_reward = 7; - * @return this - */ - public RogueScoreRewardInfo clearHasTakenReward() { - bitField0_ &= ~0x00000040; - hasTakenReward.clear(); - return this; - } - - /** - * repeated uint32 has_taken_reward = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableHasTakenReward()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getHasTakenReward() { - return hasTakenReward; - } - - /** - * repeated uint32 has_taken_reward = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableHasTakenReward() { - bitField0_ |= 0x00000040; - return hasTakenReward; - } - - /** - * repeated uint32 has_taken_reward = 7; - * @param value the hasTakenReward to add - * @return this - */ - public RogueScoreRewardInfo addHasTakenReward(final int value) { - bitField0_ |= 0x00000040; - hasTakenReward.add(value); - return this; - } - - /** - * repeated uint32 has_taken_reward = 7; - * @param values the hasTakenReward to add - * @return this - */ - public RogueScoreRewardInfo addAllHasTakenReward(final int... values) { - bitField0_ |= 0x00000040; - hasTakenReward.addAll(values); - return this; - } - - @Override - public RogueScoreRewardInfo copyFrom(final RogueScoreRewardInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - endTime = other.endTime; - beginTime = other.beginTime; - score = other.score; - poolId = other.poolId; - hasTakenInitialScore = other.hasTakenInitialScore; - poolRefreshed = other.poolRefreshed; - hasTakenReward.copyFrom(other.hasTakenReward); - } - return this; - } - - @Override - public RogueScoreRewardInfo mergeFrom(final RogueScoreRewardInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasEndTime()) { - setEndTime(other.endTime); - } - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); - } - if (other.hasScore()) { - setScore(other.score); - } - if (other.hasPoolId()) { - setPoolId(other.poolId); - } - if (other.hasHasTakenInitialScore()) { - setHasTakenInitialScore(other.hasTakenInitialScore); - } - if (other.hasPoolRefreshed()) { - setPoolRefreshed(other.poolRefreshed); - } - if (other.hasHasTakenReward()) { - getMutableHasTakenReward().addAll(other.hasTakenReward); - } - return this; - } - - @Override - public RogueScoreRewardInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - endTime = 0L; - beginTime = 0L; - score = 0; - poolId = 0; - hasTakenInitialScore = false; - poolRefreshed = false; - hasTakenReward.clear(); - return this; - } - - @Override - public RogueScoreRewardInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - hasTakenReward.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueScoreRewardInfo)) { - return false; - } - RogueScoreRewardInfo other = (RogueScoreRewardInfo) o; - return bitField0_ == other.bitField0_ - && (!hasEndTime() || endTime == other.endTime) - && (!hasBeginTime() || beginTime == other.beginTime) - && (!hasScore() || score == other.score) - && (!hasPoolId() || poolId == other.poolId) - && (!hasHasTakenInitialScore() || hasTakenInitialScore == other.hasTakenInitialScore) - && (!hasPoolRefreshed() || poolRefreshed == other.poolRefreshed) - && (!hasHasTakenReward() || hasTakenReward.equals(other.hasTakenReward)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeInt64NoTag(endTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeInt64NoTag(beginTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(score); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(poolId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 80); - output.writeBoolNoTag(hasTakenInitialScore); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 112); - output.writeBoolNoTag(poolRefreshed); - } - if ((bitField0_ & 0x00000040) != 0) { - for (int i = 0; i < hasTakenReward.length(); i++) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(hasTakenReward.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(score); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(poolId); - } - if ((bitField0_ & 0x00000010) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000020) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000040) != 0) { - size += (1 * hasTakenReward.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(hasTakenReward); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueScoreRewardInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // beginTime - beginTime = input.readInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // score - score = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // poolId - poolId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { - // hasTakenInitialScore - hasTakenInitialScore = input.readBool(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // poolRefreshed - poolRefreshed = input.readBool(); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // hasTakenReward [packed=true] - input.readPackedUInt32(hasTakenReward, tag); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 56: { - // hasTakenReward [packed=false] - tag = input.readRepeatedUInt32(hasTakenReward, tag); - bitField0_ |= 0x00000040; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.endTime, endTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.score, score); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.poolId, poolId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeBool(FieldNames.hasTakenInitialScore, hasTakenInitialScore); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeBool(FieldNames.poolRefreshed, poolRefreshed); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRepeatedUInt32(FieldNames.hasTakenReward, hasTakenReward); - } - output.endObject(); - } - - @Override - public RogueScoreRewardInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { - if (!input.trySkipNullValue()) { - endTime = input.readInt64(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { - if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109264530: { - if (input.isAtField(FieldNames.score)) { - if (!input.trySkipNullValue()) { - score = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -982578601: - case -395144162: { - if (input.isAtField(FieldNames.poolId)) { - if (!input.trySkipNullValue()) { - poolId = input.readUInt32(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1561171099: - case -1786836166: { - if (input.isAtField(FieldNames.hasTakenInitialScore)) { - if (!input.trySkipNullValue()) { - hasTakenInitialScore = input.readBool(); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1555416066: - case -403409833: { - if (input.isAtField(FieldNames.poolRefreshed)) { - if (!input.trySkipNullValue()) { - poolRefreshed = input.readBool(); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1115551708: - case 905949996: { - if (input.isAtField(FieldNames.hasTakenReward)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(hasTakenReward); - bitField0_ |= 0x00000040; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueScoreRewardInfo clone() { - return new RogueScoreRewardInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueScoreRewardInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueScoreRewardInfo(), data).checkInitialized(); - } - - public static RogueScoreRewardInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueScoreRewardInfo(), input).checkInitialized(); - } - - public static RogueScoreRewardInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueScoreRewardInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueScoreRewardInfo messages - */ - public static MessageFactory getFactory() { - return RogueScoreRewardInfoFactory.INSTANCE; - } - - private enum RogueScoreRewardInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueScoreRewardInfo create() { - return RogueScoreRewardInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName endTime = FieldName.forField("endTime", "end_time"); - - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); - - static final FieldName score = FieldName.forField("score"); - - static final FieldName poolId = FieldName.forField("poolId", "pool_id"); - - static final FieldName hasTakenInitialScore = FieldName.forField("hasTakenInitialScore", "has_taken_initial_score"); - - static final FieldName poolRefreshed = FieldName.forField("poolRefreshed", "pool_refreshed"); - - static final FieldName hasTakenReward = FieldName.forField("hasTakenReward", "has_taken_reward"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java deleted file mode 100644 index f216cff..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueSeasonInfoOuterClass.java +++ /dev/null @@ -1,422 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueSeasonInfoOuterClass { - /** - * Protobuf type {@code RogueSeasonInfo} - */ - public static final class RogueSeasonInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional int64 begin_time = 6; - */ - private long beginTime; - - /** - * optional int64 end_time = 7; - */ - private long endTime; - - /** - * optional uint32 season_id = 5; - */ - private int seasonId; - - private RogueSeasonInfo() { - } - - /** - * @return a new empty instance of {@code RogueSeasonInfo} - */ - public static RogueSeasonInfo newInstance() { - return new RogueSeasonInfo(); - } - - /** - * optional int64 begin_time = 6; - * @return whether the beginTime field is set - */ - public boolean hasBeginTime() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional int64 begin_time = 6; - * @return this - */ - public RogueSeasonInfo clearBeginTime() { - bitField0_ &= ~0x00000001; - beginTime = 0L; - return this; - } - - /** - * optional int64 begin_time = 6; - * @return the beginTime - */ - public long getBeginTime() { - return beginTime; - } - - /** - * optional int64 begin_time = 6; - * @param value the beginTime to set - * @return this - */ - public RogueSeasonInfo setBeginTime(final long value) { - bitField0_ |= 0x00000001; - beginTime = value; - return this; - } - - /** - * optional int64 end_time = 7; - * @return whether the endTime field is set - */ - public boolean hasEndTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 end_time = 7; - * @return this - */ - public RogueSeasonInfo clearEndTime() { - bitField0_ &= ~0x00000002; - endTime = 0L; - return this; - } - - /** - * optional int64 end_time = 7; - * @return the endTime - */ - public long getEndTime() { - return endTime; - } - - /** - * optional int64 end_time = 7; - * @param value the endTime to set - * @return this - */ - public RogueSeasonInfo setEndTime(final long value) { - bitField0_ |= 0x00000002; - endTime = value; - return this; - } - - /** - * optional uint32 season_id = 5; - * @return whether the seasonId field is set - */ - public boolean hasSeasonId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 season_id = 5; - * @return this - */ - public RogueSeasonInfo clearSeasonId() { - bitField0_ &= ~0x00000004; - seasonId = 0; - return this; - } - - /** - * optional uint32 season_id = 5; - * @return the seasonId - */ - public int getSeasonId() { - return seasonId; - } - - /** - * optional uint32 season_id = 5; - * @param value the seasonId to set - * @return this - */ - public RogueSeasonInfo setSeasonId(final int value) { - bitField0_ |= 0x00000004; - seasonId = value; - return this; - } - - @Override - public RogueSeasonInfo copyFrom(final RogueSeasonInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - beginTime = other.beginTime; - endTime = other.endTime; - seasonId = other.seasonId; - } - return this; - } - - @Override - public RogueSeasonInfo mergeFrom(final RogueSeasonInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); - } - if (other.hasEndTime()) { - setEndTime(other.endTime); - } - if (other.hasSeasonId()) { - setSeasonId(other.seasonId); - } - return this; - } - - @Override - public RogueSeasonInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - beginTime = 0L; - endTime = 0L; - seasonId = 0; - return this; - } - - @Override - public RogueSeasonInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueSeasonInfo)) { - return false; - } - RogueSeasonInfo other = (RogueSeasonInfo) o; - return bitField0_ == other.bitField0_ - && (!hasBeginTime() || beginTime == other.beginTime) - && (!hasEndTime() || endTime == other.endTime) - && (!hasSeasonId() || seasonId == other.seasonId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeInt64NoTag(beginTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeInt64NoTag(endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(seasonId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(seasonId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueSeasonInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // beginTime - beginTime = input.readInt64(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // seasonId - seasonId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.endTime, endTime); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.seasonId, seasonId); - } - output.endObject(); - } - - @Override - public RogueSeasonInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { - if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { - if (!input.trySkipNullValue()) { - endTime = input.readInt64(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 889931614: - case 1818097655: { - if (input.isAtField(FieldNames.seasonId)) { - if (!input.trySkipNullValue()) { - seasonId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueSeasonInfo clone() { - return new RogueSeasonInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueSeasonInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueSeasonInfo(), data).checkInitialized(); - } - - public static RogueSeasonInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueSeasonInfo(), input).checkInitialized(); - } - - public static RogueSeasonInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueSeasonInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueSeasonInfo messages - */ - public static MessageFactory getFactory() { - return RogueSeasonInfoFactory.INSTANCE; - } - - private enum RogueSeasonInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueSeasonInfo create() { - return RogueSeasonInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); - - static final FieldName endTime = FieldName.forField("endTime", "end_time"); - - static final FieldName seasonId = FieldName.forField("seasonId", "season_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java deleted file mode 100644 index d89fdde..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueStatusOuterClass.java +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueStatusOuterClass { - /** - * Protobuf enum {@code RogueStatus} - */ - public enum RogueStatus implements ProtoEnum { - /** - * ROGUE_STATUS_NONE = 0; - */ - ROGUE_STATUS_NONE("ROGUE_STATUS_NONE", 0), - - /** - * ROGUE_STATUS_DOING = 1; - */ - ROGUE_STATUS_DOING("ROGUE_STATUS_DOING", 1), - - /** - * ROGUE_STATUS_PENDING = 2; - */ - ROGUE_STATUS_PENDING("ROGUE_STATUS_PENDING", 2), - - /** - * ROGUE_STATUS_ENDLESS = 3; - */ - ROGUE_STATUS_ENDLESS("ROGUE_STATUS_ENDLESS", 3), - - /** - * ROGUE_STATUS_FINISH = 4; - */ - ROGUE_STATUS_FINISH("ROGUE_STATUS_FINISH", 4); - - /** - * ROGUE_STATUS_NONE = 0; - */ - public static final int ROGUE_STATUS_NONE_VALUE = 0; - - /** - * ROGUE_STATUS_DOING = 1; - */ - public static final int ROGUE_STATUS_DOING_VALUE = 1; - - /** - * ROGUE_STATUS_PENDING = 2; - */ - public static final int ROGUE_STATUS_PENDING_VALUE = 2; - - /** - * ROGUE_STATUS_ENDLESS = 3; - */ - public static final int ROGUE_STATUS_ENDLESS_VALUE = 3; - - /** - * ROGUE_STATUS_FINISH = 4; - */ - public static final int ROGUE_STATUS_FINISH_VALUE = 4; - - private final String name; - - private final int number; - - private RogueStatus(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueStatusConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueStatus forNumber(int value) { - return RogueStatusConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueStatus forNumberOr(int number, RogueStatus other) { - RogueStatus value = forNumber(number); - return value == null ? other : value; - } - - enum RogueStatusConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueStatus[] lookup = new RogueStatus[5]; - - static { - lookup[0] = ROGUE_STATUS_NONE; - lookup[1] = ROGUE_STATUS_DOING; - lookup[2] = ROGUE_STATUS_PENDING; - lookup[3] = ROGUE_STATUS_ENDLESS; - lookup[4] = ROGUE_STATUS_FINISH; - } - - @Override - public final RogueStatus forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueStatus forName(final CharSequence value) { - switch (value.length()) { - case 17: { - if (ProtoUtil.isEqual("ROGUE_STATUS_NONE", value)) { - return ROGUE_STATUS_NONE; - } - break; - } - case 18: { - if (ProtoUtil.isEqual("ROGUE_STATUS_DOING", value)) { - return ROGUE_STATUS_DOING; - } - break; - } - case 19: { - if (ProtoUtil.isEqual("ROGUE_STATUS_FINISH", value)) { - return ROGUE_STATUS_FINISH; - } - break; - } - case 20: { - if (ProtoUtil.isEqual("ROGUE_STATUS_PENDING", value)) { - return ROGUE_STATUS_PENDING; - } - if (ProtoUtil.isEqual("ROGUE_STATUS_ENDLESS", value)) { - return ROGUE_STATUS_ENDLESS; - } - break; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueSyncContextBoardEventOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueSyncContextBoardEventOuterClass.java deleted file mode 100644 index 935fac2..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueSyncContextBoardEventOuterClass.java +++ /dev/null @@ -1,341 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueSyncContextBoardEventOuterClass { - /** - * Protobuf type {@code RogueSyncContextBoardEvent} - */ - public static final class RogueSyncContextBoardEvent extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 board_event_id = 7; - */ - private int boardEventId; - - /** - * optional uint32 modifier_effect_type = 9; - */ - private int modifierEffectType; - - private RogueSyncContextBoardEvent() { - } - - /** - * @return a new empty instance of {@code RogueSyncContextBoardEvent} - */ - public static RogueSyncContextBoardEvent newInstance() { - return new RogueSyncContextBoardEvent(); - } - - /** - * optional uint32 board_event_id = 7; - * @return whether the boardEventId field is set - */ - public boolean hasBoardEventId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 board_event_id = 7; - * @return this - */ - public RogueSyncContextBoardEvent clearBoardEventId() { - bitField0_ &= ~0x00000001; - boardEventId = 0; - return this; - } - - /** - * optional uint32 board_event_id = 7; - * @return the boardEventId - */ - public int getBoardEventId() { - return boardEventId; - } - - /** - * optional uint32 board_event_id = 7; - * @param value the boardEventId to set - * @return this - */ - public RogueSyncContextBoardEvent setBoardEventId(final int value) { - bitField0_ |= 0x00000001; - boardEventId = value; - return this; - } - - /** - * optional uint32 modifier_effect_type = 9; - * @return whether the modifierEffectType field is set - */ - public boolean hasModifierEffectType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 modifier_effect_type = 9; - * @return this - */ - public RogueSyncContextBoardEvent clearModifierEffectType() { - bitField0_ &= ~0x00000002; - modifierEffectType = 0; - return this; - } - - /** - * optional uint32 modifier_effect_type = 9; - * @return the modifierEffectType - */ - public int getModifierEffectType() { - return modifierEffectType; - } - - /** - * optional uint32 modifier_effect_type = 9; - * @param value the modifierEffectType to set - * @return this - */ - public RogueSyncContextBoardEvent setModifierEffectType(final int value) { - bitField0_ |= 0x00000002; - modifierEffectType = value; - return this; - } - - @Override - public RogueSyncContextBoardEvent copyFrom(final RogueSyncContextBoardEvent other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - boardEventId = other.boardEventId; - modifierEffectType = other.modifierEffectType; - } - return this; - } - - @Override - public RogueSyncContextBoardEvent mergeFrom(final RogueSyncContextBoardEvent other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBoardEventId()) { - setBoardEventId(other.boardEventId); - } - if (other.hasModifierEffectType()) { - setModifierEffectType(other.modifierEffectType); - } - return this; - } - - @Override - public RogueSyncContextBoardEvent clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - boardEventId = 0; - modifierEffectType = 0; - return this; - } - - @Override - public RogueSyncContextBoardEvent clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueSyncContextBoardEvent)) { - return false; - } - RogueSyncContextBoardEvent other = (RogueSyncContextBoardEvent) o; - return bitField0_ == other.bitField0_ - && (!hasBoardEventId() || boardEventId == other.boardEventId) - && (!hasModifierEffectType() || modifierEffectType == other.modifierEffectType); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(boardEventId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(modifierEffectType); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(boardEventId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(modifierEffectType); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueSyncContextBoardEvent mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 56: { - // boardEventId - boardEventId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // modifierEffectType - modifierEffectType = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.boardEventId, boardEventId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.modifierEffectType, modifierEffectType); - } - output.endObject(); - } - - @Override - public RogueSyncContextBoardEvent mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1130727537: - case -1668848103: { - if (input.isAtField(FieldNames.boardEventId)) { - if (!input.trySkipNullValue()) { - boardEventId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1445000542: - case -145180736: { - if (input.isAtField(FieldNames.modifierEffectType)) { - if (!input.trySkipNullValue()) { - modifierEffectType = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueSyncContextBoardEvent clone() { - return new RogueSyncContextBoardEvent().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueSyncContextBoardEvent parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueSyncContextBoardEvent(), data).checkInitialized(); - } - - public static RogueSyncContextBoardEvent parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueSyncContextBoardEvent(), input).checkInitialized(); - } - - public static RogueSyncContextBoardEvent parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueSyncContextBoardEvent(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueSyncContextBoardEvent messages - */ - public static MessageFactory getFactory() { - return RogueSyncContextBoardEventFactory.INSTANCE; - } - - private enum RogueSyncContextBoardEventFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueSyncContextBoardEvent create() { - return RogueSyncContextBoardEvent.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName boardEventId = FieldName.forField("boardEventId", "board_event_id"); - - static final FieldName modifierEffectType = FieldName.forField("modifierEffectType", "modifier_effect_type"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java deleted file mode 100644 index ede8372..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentInfoOuterClass.java +++ /dev/null @@ -1,294 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueTalentInfoOuterClass { - /** - * Protobuf type {@code RogueTalentInfo} - */ - public static final class RogueTalentInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueTalent rogue_talent = 15; - */ - private final RepeatedMessage rogueTalent = RepeatedMessage.newEmptyInstance(RogueTalentOuterClass.RogueTalent.getFactory()); - - private RogueTalentInfo() { - } - - /** - * @return a new empty instance of {@code RogueTalentInfo} - */ - public static RogueTalentInfo newInstance() { - return new RogueTalentInfo(); - } - - /** - * repeated .RogueTalent rogue_talent = 15; - * @return whether the rogueTalent field is set - */ - public boolean hasRogueTalent() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueTalent rogue_talent = 15; - * @return this - */ - public RogueTalentInfo clearRogueTalent() { - bitField0_ &= ~0x00000001; - rogueTalent.clear(); - return this; - } - - /** - * repeated .RogueTalent rogue_talent = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueTalent()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueTalent() { - return rogueTalent; - } - - /** - * repeated .RogueTalent rogue_talent = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueTalent() { - bitField0_ |= 0x00000001; - return rogueTalent; - } - - /** - * repeated .RogueTalent rogue_talent = 15; - * @param value the rogueTalent to add - * @return this - */ - public RogueTalentInfo addRogueTalent(final RogueTalentOuterClass.RogueTalent value) { - bitField0_ |= 0x00000001; - rogueTalent.add(value); - return this; - } - - /** - * repeated .RogueTalent rogue_talent = 15; - * @param values the rogueTalent to add - * @return this - */ - public RogueTalentInfo addAllRogueTalent(final RogueTalentOuterClass.RogueTalent... values) { - bitField0_ |= 0x00000001; - rogueTalent.addAll(values); - return this; - } - - @Override - public RogueTalentInfo copyFrom(final RogueTalentInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueTalent.copyFrom(other.rogueTalent); - } - return this; - } - - @Override - public RogueTalentInfo mergeFrom(final RogueTalentInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueTalent()) { - getMutableRogueTalent().addAll(other.rogueTalent); - } - return this; - } - - @Override - public RogueTalentInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueTalent.clear(); - return this; - } - - @Override - public RogueTalentInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueTalent.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueTalentInfo)) { - return false; - } - RogueTalentInfo other = (RogueTalentInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueTalent() || rogueTalent.equals(other.rogueTalent)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < rogueTalent.length(); i++) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(rogueTalent.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * rogueTalent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueTalent); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueTalentInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 122: { - // rogueTalent - tag = input.readRepeatedMessage(rogueTalent, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.rogueTalent, rogueTalent); - } - output.endObject(); - } - - @Override - public RogueTalentInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -824717466: - case 1910163185: { - if (input.isAtField(FieldNames.rogueTalent)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueTalent); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueTalentInfo clone() { - return new RogueTalentInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueTalentInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueTalentInfo(), data).checkInitialized(); - } - - public static RogueTalentInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueTalentInfo(), input).checkInitialized(); - } - - public static RogueTalentInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueTalentInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueTalentInfo messages - */ - public static MessageFactory getFactory() { - return RogueTalentInfoFactory.INSTANCE; - } - - private enum RogueTalentInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueTalentInfo create() { - return RogueTalentInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueTalent = FieldName.forField("rogueTalent", "rogue_talent"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java deleted file mode 100644 index 9281003..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentOuterClass.java +++ /dev/null @@ -1,491 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class RogueTalentOuterClass { - /** - * Protobuf type {@code RogueTalent} - */ - public static final class RogueTalent extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 talent_id = 5; - */ - private int talentId; - - /** - * optional .RogueTalentStatus status = 15; - */ - private int status; - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - */ - private final RepeatedMessage unlockProgressList = RepeatedMessage.newEmptyInstance(RogueUnlockProgressOuterClass.RogueUnlockProgress.getFactory()); - - private RogueTalent() { - } - - /** - * @return a new empty instance of {@code RogueTalent} - */ - public static RogueTalent newInstance() { - return new RogueTalent(); - } - - /** - * optional uint32 talent_id = 5; - * @return whether the talentId field is set - */ - public boolean hasTalentId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 talent_id = 5; - * @return this - */ - public RogueTalent clearTalentId() { - bitField0_ &= ~0x00000001; - talentId = 0; - return this; - } - - /** - * optional uint32 talent_id = 5; - * @return the talentId - */ - public int getTalentId() { - return talentId; - } - - /** - * optional uint32 talent_id = 5; - * @param value the talentId to set - * @return this - */ - public RogueTalent setTalentId(final int value) { - bitField0_ |= 0x00000001; - talentId = value; - return this; - } - - /** - * optional .RogueTalentStatus status = 15; - * @return whether the status field is set - */ - public boolean hasStatus() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueTalentStatus status = 15; - * @return this - */ - public RogueTalent clearStatus() { - bitField0_ &= ~0x00000002; - status = 0; - return this; - } - - /** - * optional .RogueTalentStatus status = 15; - * @return the status - */ - public RogueTalentStatusOuterClass.RogueTalentStatus getStatus() { - return RogueTalentStatusOuterClass.RogueTalentStatus.forNumber(status); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link RogueTalent#getStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getStatusValue() { - return status; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueTalentStatusOuterClass.RogueTalentStatus}. Setting an invalid value - * can cause {@link RogueTalent#getStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public RogueTalent setStatusValue(final int value) { - bitField0_ |= 0x00000002; - status = value; - return this; - } - - /** - * optional .RogueTalentStatus status = 15; - * @param value the status to set - * @return this - */ - public RogueTalent setStatus(final RogueTalentStatusOuterClass.RogueTalentStatus value) { - bitField0_ |= 0x00000002; - status = value.getNumber(); - return this; - } - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - * @return whether the unlockProgressList field is set - */ - public boolean hasUnlockProgressList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - * @return this - */ - public RogueTalent clearUnlockProgressList() { - bitField0_ &= ~0x00000004; - unlockProgressList.clear(); - return this; - } - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableUnlockProgressList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getUnlockProgressList( - ) { - return unlockProgressList; - } - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableUnlockProgressList( - ) { - bitField0_ |= 0x00000004; - return unlockProgressList; - } - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - * @param value the unlockProgressList to add - * @return this - */ - public RogueTalent addUnlockProgressList( - final RogueUnlockProgressOuterClass.RogueUnlockProgress value) { - bitField0_ |= 0x00000004; - unlockProgressList.add(value); - return this; - } - - /** - * repeated .RogueUnlockProgress unlock_progress_list = 6; - * @param values the unlockProgressList to add - * @return this - */ - public RogueTalent addAllUnlockProgressList( - final RogueUnlockProgressOuterClass.RogueUnlockProgress... values) { - bitField0_ |= 0x00000004; - unlockProgressList.addAll(values); - return this; - } - - @Override - public RogueTalent copyFrom(final RogueTalent other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - talentId = other.talentId; - status = other.status; - unlockProgressList.copyFrom(other.unlockProgressList); - } - return this; - } - - @Override - public RogueTalent mergeFrom(final RogueTalent other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasTalentId()) { - setTalentId(other.talentId); - } - if (other.hasStatus()) { - setStatusValue(other.status); - } - if (other.hasUnlockProgressList()) { - getMutableUnlockProgressList().addAll(other.unlockProgressList); - } - return this; - } - - @Override - public RogueTalent clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - talentId = 0; - status = 0; - unlockProgressList.clear(); - return this; - } - - @Override - public RogueTalent clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unlockProgressList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueTalent)) { - return false; - } - RogueTalent other = (RogueTalent) o; - return bitField0_ == other.bitField0_ - && (!hasTalentId() || talentId == other.talentId) - && (!hasStatus() || status == other.status) - && (!hasUnlockProgressList() || unlockProgressList.equals(other.unlockProgressList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(talentId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeEnumNoTag(status); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < unlockProgressList.length(); i++) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(unlockProgressList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(talentId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(status); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * unlockProgressList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(unlockProgressList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueTalent mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 40: { - // talentId - talentId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // status - final int value = input.readInt32(); - if (RogueTalentStatusOuterClass.RogueTalentStatus.forNumber(value) != null) { - status = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 50) { - break; - } - } - case 50: { - // unlockProgressList - tag = input.readRepeatedMessage(unlockProgressList, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.talentId, talentId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.status, status, RogueTalentStatusOuterClass.RogueTalentStatus.converter()); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.unlockProgressList, unlockProgressList); - } - output.endObject(); - } - - @Override - public RogueTalent mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -615305433: - case -1894577842: { - if (input.isAtField(FieldNames.talentId)) { - if (!input.trySkipNullValue()) { - talentId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -892481550: { - if (input.isAtField(FieldNames.status)) { - if (!input.trySkipNullValue()) { - final RogueTalentStatusOuterClass.RogueTalentStatus value = input.readEnum(RogueTalentStatusOuterClass.RogueTalentStatus.converter()); - if (value != null) { - status = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case -580094513: - case -313023051: { - if (input.isAtField(FieldNames.unlockProgressList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(unlockProgressList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueTalent clone() { - return new RogueTalent().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueTalent parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueTalent(), data).checkInitialized(); - } - - public static RogueTalent parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueTalent(), input).checkInitialized(); - } - - public static RogueTalent parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueTalent(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueTalent messages - */ - public static MessageFactory getFactory() { - return RogueTalentFactory.INSTANCE; - } - - private enum RogueTalentFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueTalent create() { - return RogueTalent.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName talentId = FieldName.forField("talentId", "talent_id"); - - static final FieldName status = FieldName.forField("status"); - - static final FieldName unlockProgressList = FieldName.forField("unlockProgressList", "unlock_progress_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java deleted file mode 100644 index c3f22cb..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueTalentStatusOuterClass.java +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class RogueTalentStatusOuterClass { - /** - * Protobuf enum {@code RogueTalentStatus} - */ - public enum RogueTalentStatus implements ProtoEnum { - /** - * ROGUE_TALENT_STATUS_LOCK = 0; - */ - ROGUE_TALENT_STATUS_LOCK("ROGUE_TALENT_STATUS_LOCK", 0), - - /** - * ROGUE_TALENT_STATUS_UNLOCK = 1; - */ - ROGUE_TALENT_STATUS_UNLOCK("ROGUE_TALENT_STATUS_UNLOCK", 1), - - /** - * ROGUE_TALENT_STATUS_ENABLE = 2; - */ - ROGUE_TALENT_STATUS_ENABLE("ROGUE_TALENT_STATUS_ENABLE", 2); - - /** - * ROGUE_TALENT_STATUS_LOCK = 0; - */ - public static final int ROGUE_TALENT_STATUS_LOCK_VALUE = 0; - - /** - * ROGUE_TALENT_STATUS_UNLOCK = 1; - */ - public static final int ROGUE_TALENT_STATUS_UNLOCK_VALUE = 1; - - /** - * ROGUE_TALENT_STATUS_ENABLE = 2; - */ - public static final int ROGUE_TALENT_STATUS_ENABLE_VALUE = 2; - - private final String name; - - private final int number; - - private RogueTalentStatus(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static ProtoEnum.EnumConverter converter() { - return RogueTalentStatusConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static RogueTalentStatus forNumber(int value) { - return RogueTalentStatusConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static RogueTalentStatus forNumberOr(int number, RogueTalentStatus other) { - RogueTalentStatus value = forNumber(number); - return value == null ? other : value; - } - - enum RogueTalentStatusConverter implements ProtoEnum.EnumConverter { - INSTANCE; - - private static final RogueTalentStatus[] lookup = new RogueTalentStatus[3]; - - static { - lookup[0] = ROGUE_TALENT_STATUS_LOCK; - lookup[1] = ROGUE_TALENT_STATUS_UNLOCK; - lookup[2] = ROGUE_TALENT_STATUS_ENABLE; - } - - @Override - public final RogueTalentStatus forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final RogueTalentStatus forName(final CharSequence value) { - if (value.length() == 24) { - if (ProtoUtil.isEqual("ROGUE_TALENT_STATUS_LOCK", value)) { - return ROGUE_TALENT_STATUS_LOCK; - } - } - if (value.length() == 26) { - if (ProtoUtil.isEqual("ROGUE_TALENT_STATUS_UNLOCK", value)) { - return ROGUE_TALENT_STATUS_UNLOCK; - } - if (ProtoUtil.isEqual("ROGUE_TALENT_STATUS_ENABLE", value)) { - return ROGUE_TALENT_STATUS_ENABLE; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java deleted file mode 100644 index 3610661..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueUnlockProgressOuterClass.java +++ /dev/null @@ -1,420 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueUnlockProgressOuterClass { - /** - * Protobuf type {@code RogueUnlockProgress} - */ - public static final class RogueUnlockProgress extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 unlock_id = 4; - */ - private int unlockId; - - /** - * optional uint32 progress = 13; - */ - private int progress; - - /** - * optional bool finish = 5; - */ - private boolean finish; - - private RogueUnlockProgress() { - } - - /** - * @return a new empty instance of {@code RogueUnlockProgress} - */ - public static RogueUnlockProgress newInstance() { - return new RogueUnlockProgress(); - } - - /** - * optional uint32 unlock_id = 4; - * @return whether the unlockId field is set - */ - public boolean hasUnlockId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 unlock_id = 4; - * @return this - */ - public RogueUnlockProgress clearUnlockId() { - bitField0_ &= ~0x00000001; - unlockId = 0; - return this; - } - - /** - * optional uint32 unlock_id = 4; - * @return the unlockId - */ - public int getUnlockId() { - return unlockId; - } - - /** - * optional uint32 unlock_id = 4; - * @param value the unlockId to set - * @return this - */ - public RogueUnlockProgress setUnlockId(final int value) { - bitField0_ |= 0x00000001; - unlockId = value; - return this; - } - - /** - * optional uint32 progress = 13; - * @return whether the progress field is set - */ - public boolean hasProgress() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 progress = 13; - * @return this - */ - public RogueUnlockProgress clearProgress() { - bitField0_ &= ~0x00000002; - progress = 0; - return this; - } - - /** - * optional uint32 progress = 13; - * @return the progress - */ - public int getProgress() { - return progress; - } - - /** - * optional uint32 progress = 13; - * @param value the progress to set - * @return this - */ - public RogueUnlockProgress setProgress(final int value) { - bitField0_ |= 0x00000002; - progress = value; - return this; - } - - /** - * optional bool finish = 5; - * @return whether the finish field is set - */ - public boolean hasFinish() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional bool finish = 5; - * @return this - */ - public RogueUnlockProgress clearFinish() { - bitField0_ &= ~0x00000004; - finish = false; - return this; - } - - /** - * optional bool finish = 5; - * @return the finish - */ - public boolean getFinish() { - return finish; - } - - /** - * optional bool finish = 5; - * @param value the finish to set - * @return this - */ - public RogueUnlockProgress setFinish(final boolean value) { - bitField0_ |= 0x00000004; - finish = value; - return this; - } - - @Override - public RogueUnlockProgress copyFrom(final RogueUnlockProgress other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - unlockId = other.unlockId; - progress = other.progress; - finish = other.finish; - } - return this; - } - - @Override - public RogueUnlockProgress mergeFrom(final RogueUnlockProgress other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasUnlockId()) { - setUnlockId(other.unlockId); - } - if (other.hasProgress()) { - setProgress(other.progress); - } - if (other.hasFinish()) { - setFinish(other.finish); - } - return this; - } - - @Override - public RogueUnlockProgress clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - unlockId = 0; - progress = 0; - finish = false; - return this; - } - - @Override - public RogueUnlockProgress clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueUnlockProgress)) { - return false; - } - RogueUnlockProgress other = (RogueUnlockProgress) o; - return bitField0_ == other.bitField0_ - && (!hasUnlockId() || unlockId == other.unlockId) - && (!hasProgress() || progress == other.progress) - && (!hasFinish() || finish == other.finish); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(unlockId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(progress); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); - output.writeBoolNoTag(finish); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(progress); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 2; - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueUnlockProgress mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 32: { - // unlockId - unlockId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // progress - progress = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { - // finish - finish = input.readBool(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.unlockId, unlockId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.progress, progress); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeBool(FieldNames.finish, finish); - } - output.endObject(); - } - - @Override - public RogueUnlockProgress mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -210950273: - case 2050497526: { - if (input.isAtField(FieldNames.unlockId)) { - if (!input.trySkipNullValue()) { - unlockId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1001078227: { - if (input.isAtField(FieldNames.progress)) { - if (!input.trySkipNullValue()) { - progress = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1274442605: { - if (input.isAtField(FieldNames.finish)) { - if (!input.trySkipNullValue()) { - finish = input.readBool(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueUnlockProgress clone() { - return new RogueUnlockProgress().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueUnlockProgress parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueUnlockProgress(), data).checkInitialized(); - } - - public static RogueUnlockProgress parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized(); - } - - public static RogueUnlockProgress parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueUnlockProgress messages - */ - public static MessageFactory getFactory() { - return RogueUnlockProgressFactory.INSTANCE; - } - - private enum RogueUnlockProgressFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueUnlockProgress create() { - return RogueUnlockProgress.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName unlockId = FieldName.forField("unlockId", "unlock_id"); - - static final FieldName progress = FieldName.forField("progress"); - - static final FieldName finish = FieldName.forField("finish"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java deleted file mode 100644 index 285bab4..0000000 --- a/src/generated/main/emu/lunarcore/proto/RogueVirtualItemInfoOuterClass.java +++ /dev/null @@ -1,280 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RogueVirtualItemInfoOuterClass { - /** - * Protobuf type {@code RogueVirtualItemInfo} - */ - public static final class RogueVirtualItemInfo extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - *
-     *  could be 1, 8 or 5
-     * 
- * - * optional uint32 rogue_coin = 1; - */ - private int rogueCoin; - - private RogueVirtualItemInfo() { - } - - /** - * @return a new empty instance of {@code RogueVirtualItemInfo} - */ - public static RogueVirtualItemInfo newInstance() { - return new RogueVirtualItemInfo(); - } - - /** - *
-     *  could be 1, 8 or 5
-     * 
- * - * optional uint32 rogue_coin = 1; - * @return whether the rogueCoin field is set - */ - public boolean hasRogueCoin() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - *
-     *  could be 1, 8 or 5
-     * 
- * - * optional uint32 rogue_coin = 1; - * @return this - */ - public RogueVirtualItemInfo clearRogueCoin() { - bitField0_ &= ~0x00000001; - rogueCoin = 0; - return this; - } - - /** - *
-     *  could be 1, 8 or 5
-     * 
- * - * optional uint32 rogue_coin = 1; - * @return the rogueCoin - */ - public int getRogueCoin() { - return rogueCoin; - } - - /** - *
-     *  could be 1, 8 or 5
-     * 
- * - * optional uint32 rogue_coin = 1; - * @param value the rogueCoin to set - * @return this - */ - public RogueVirtualItemInfo setRogueCoin(final int value) { - bitField0_ |= 0x00000001; - rogueCoin = value; - return this; - } - - @Override - public RogueVirtualItemInfo copyFrom(final RogueVirtualItemInfo other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueCoin = other.rogueCoin; - } - return this; - } - - @Override - public RogueVirtualItemInfo mergeFrom(final RogueVirtualItemInfo other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueCoin()) { - setRogueCoin(other.rogueCoin); - } - return this; - } - - @Override - public RogueVirtualItemInfo clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueCoin = 0; - return this; - } - - @Override - public RogueVirtualItemInfo clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RogueVirtualItemInfo)) { - return false; - } - RogueVirtualItemInfo other = (RogueVirtualItemInfo) o; - return bitField0_ == other.bitField0_ - && (!hasRogueCoin() || rogueCoin == other.rogueCoin); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(rogueCoin); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueCoin); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RogueVirtualItemInfo mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // rogueCoin - rogueCoin = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueCoin, rogueCoin); - } - output.endObject(); - } - - @Override - public RogueVirtualItemInfo mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 655631243: - case -1124761130: { - if (input.isAtField(FieldNames.rogueCoin)) { - if (!input.trySkipNullValue()) { - rogueCoin = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RogueVirtualItemInfo clone() { - return new RogueVirtualItemInfo().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RogueVirtualItemInfo parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueVirtualItemInfo(), data).checkInitialized(); - } - - public static RogueVirtualItemInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueVirtualItemInfo(), input).checkInitialized(); - } - - public static RogueVirtualItemInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueVirtualItemInfo(), input).checkInitialized(); - } - - /** - * @return factory for creating RogueVirtualItemInfo messages - */ - public static MessageFactory getFactory() { - return RogueVirtualItemInfoFactory.INSTANCE; - } - - private enum RogueVirtualItemInfoFactory implements MessageFactory { - INSTANCE; - - @Override - public RogueVirtualItemInfo create() { - return RogueVirtualItemInfo.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueCoin = FieldName.forField("rogueCoin", "rogue_coin"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RollRogueBuffScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RollRogueBuffScRspOuterClass.java deleted file mode 100644 index c0f54d5..0000000 --- a/src/generated/main/emu/lunarcore/proto/RollRogueBuffScRspOuterClass.java +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class RollRogueBuffScRspOuterClass { - /** - * Protobuf type {@code RollRogueBuffScRsp} - */ - public static final class RollRogueBuffScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 1; - */ - private int retcode; - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - */ - private final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo buffSelectInfo = RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo.newInstance(); - - private RollRogueBuffScRsp() { - } - - /** - * @return a new empty instance of {@code RollRogueBuffScRsp} - */ - public static RollRogueBuffScRsp newInstance() { - return new RollRogueBuffScRsp(); - } - - /** - * optional uint32 retcode = 1; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 1; - * @return this - */ - public RollRogueBuffScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 1; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 1; - * @param value the retcode to set - * @return this - */ - public RollRogueBuffScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * @return whether the buffSelectInfo field is set - */ - public boolean hasBuffSelectInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * @return this - */ - public RollRogueBuffScRsp clearBuffSelectInfo() { - bitField0_ &= ~0x00000002; - buffSelectInfo.clear(); - return this; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getBuffSelectInfo() { - return buffSelectInfo; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getMutableBuffSelectInfo() { - bitField0_ |= 0x00000002; - return buffSelectInfo; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * @param value the buffSelectInfo to set - * @return this - */ - public RollRogueBuffScRsp setBuffSelectInfo( - final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo value) { - bitField0_ |= 0x00000002; - buffSelectInfo.copyFrom(value); - return this; - } - - @Override - public RollRogueBuffScRsp copyFrom(final RollRogueBuffScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - buffSelectInfo.copyFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public RollRogueBuffScRsp mergeFrom(final RollRogueBuffScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasBuffSelectInfo()) { - getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public RollRogueBuffScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - buffSelectInfo.clear(); - return this; - } - - @Override - public RollRogueBuffScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof RollRogueBuffScRsp)) { - return false; - } - RollRogueBuffScRsp other = (RollRogueBuffScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(buffSelectInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public RollRogueBuffScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 42) { - break; - } - } - case 42: { - // buffSelectInfo - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); - } - output.endObject(); - } - - @Override - public RollRogueBuffScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -255242115: - case 1500540965: { - if (input.isAtField(FieldNames.buffSelectInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public RollRogueBuffScRsp clone() { - return new RollRogueBuffScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static RollRogueBuffScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RollRogueBuffScRsp(), data).checkInitialized(); - } - - public static RollRogueBuffScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RollRogueBuffScRsp(), input).checkInitialized(); - } - - public static RollRogueBuffScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RollRogueBuffScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating RollRogueBuffScRsp messages - */ - public static MessageFactory getFactory() { - return RollRogueBuffScRspFactory.INSTANCE; - } - - private enum RollRogueBuffScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public RollRogueBuffScRsp create() { - return RollRogueBuffScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java index 4519c16..09b21f2 100644 --- a/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RotateMapCsReqOuterClass.java @@ -20,25 +20,25 @@ public final class RotateMapCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 unk_int = 2; + * optional uint32 unk_int = 5; */ private int unkInt; /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 12; */ private int groupId; /** - * optional .MotionInfo motion = 3; - */ - private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); - - /** - * optional .RotateMapCsReq.NewMapRot rogue_map = 11; + * optional .RotateMapCsReq.NewMapRot rogue_map = 9; */ private final NewMapRot rogueMap = NewMapRot.newInstance(); + /** + * optional .MotionInfo motion = 13; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + private RotateMapCsReq() { } @@ -50,7 +50,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 unk_int = 2; + * optional uint32 unk_int = 5; * @return whether the unkInt field is set */ public boolean hasUnkInt() { @@ -58,7 +58,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 unk_int = 2; + * optional uint32 unk_int = 5; * @return this */ public RotateMapCsReq clearUnkInt() { @@ -68,7 +68,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 unk_int = 2; + * optional uint32 unk_int = 5; * @return the unkInt */ public int getUnkInt() { @@ -76,7 +76,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 unk_int = 2; + * optional uint32 unk_int = 5; * @param value the unkInt to set * @return this */ @@ -87,7 +87,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 12; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -95,7 +95,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 12; * @return this */ public RotateMapCsReq clearGroupId() { @@ -105,7 +105,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 12; * @return the groupId */ public int getGroupId() { @@ -113,7 +113,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional uint32 group_id = 6; + * optional uint32 group_id = 12; * @param value the groupId to set * @return this */ @@ -124,82 +124,25 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .MotionInfo motion = 3; - * @return whether the motion field is set + * optional .RotateMapCsReq.NewMapRot rogue_map = 9; + * @return whether the rogueMap field is set */ - public boolean hasMotion() { + public boolean hasRogueMap() { return (bitField0_ & 0x00000004) != 0; } /** - * optional .MotionInfo motion = 3; - * @return this - */ - public RotateMapCsReq clearMotion() { - bitField0_ &= ~0x00000004; - motion.clear(); - return this; - } - - /** - * optional .MotionInfo motion = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMotion()} if you want to modify it. - * - * @return internal storage object for reading - */ - public MotionInfoOuterClass.MotionInfo getMotion() { - return motion; - } - - /** - * optional .MotionInfo motion = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public MotionInfoOuterClass.MotionInfo getMutableMotion() { - bitField0_ |= 0x00000004; - return motion; - } - - /** - * optional .MotionInfo motion = 3; - * @param value the motion to set - * @return this - */ - public RotateMapCsReq setMotion(final MotionInfoOuterClass.MotionInfo value) { - bitField0_ |= 0x00000004; - motion.copyFrom(value); - return this; - } - - /** - * optional .RotateMapCsReq.NewMapRot rogue_map = 11; - * @return whether the rogueMap field is set - */ - public boolean hasRogueMap() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RotateMapCsReq.NewMapRot rogue_map = 11; + * optional .RotateMapCsReq.NewMapRot rogue_map = 9; * @return this */ public RotateMapCsReq clearRogueMap() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; rogueMap.clear(); return this; } /** - * optional .RotateMapCsReq.NewMapRot rogue_map = 11; + * optional .RotateMapCsReq.NewMapRot rogue_map = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -213,7 +156,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .RotateMapCsReq.NewMapRot rogue_map = 11; + * optional .RotateMapCsReq.NewMapRot rogue_map = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -222,21 +165,78 @@ public final class RotateMapCsReqOuterClass { * @return internal storage object for modifications */ public NewMapRot getMutableRogueMap() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return rogueMap; } /** - * optional .RotateMapCsReq.NewMapRot rogue_map = 11; + * optional .RotateMapCsReq.NewMapRot rogue_map = 9; * @param value the rogueMap to set * @return this */ public RotateMapCsReq setRogueMap(final NewMapRot value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; rogueMap.copyFrom(value); return this; } + /** + * optional .MotionInfo motion = 13; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .MotionInfo motion = 13; + * @return this + */ + public RotateMapCsReq clearMotion() { + bitField0_ &= ~0x00000008; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000008; + return motion; + } + + /** + * optional .MotionInfo motion = 13; + * @param value the motion to set + * @return this + */ + public RotateMapCsReq setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000008; + motion.copyFrom(value); + return this; + } + @Override public RotateMapCsReq copyFrom(final RotateMapCsReq other) { cachedSize = other.cachedSize; @@ -244,8 +244,8 @@ public final class RotateMapCsReqOuterClass { bitField0_ = other.bitField0_; unkInt = other.unkInt; groupId = other.groupId; - motion.copyFrom(other.motion); rogueMap.copyFrom(other.rogueMap); + motion.copyFrom(other.motion); } return this; } @@ -262,12 +262,12 @@ public final class RotateMapCsReqOuterClass { if (other.hasGroupId()) { setGroupId(other.groupId); } - if (other.hasMotion()) { - getMutableMotion().mergeFrom(other.motion); - } if (other.hasRogueMap()) { getMutableRogueMap().mergeFrom(other.rogueMap); } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } return this; } @@ -280,8 +280,8 @@ public final class RotateMapCsReqOuterClass { bitField0_ = 0; unkInt = 0; groupId = 0; - motion.clear(); rogueMap.clear(); + motion.clear(); return this; } @@ -292,8 +292,8 @@ public final class RotateMapCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - motion.clearQuick(); rogueMap.clearQuick(); + motion.clearQuick(); return this; } @@ -309,27 +309,27 @@ public final class RotateMapCsReqOuterClass { return bitField0_ == other.bitField0_ && (!hasUnkInt() || unkInt == other.unkInt) && (!hasGroupId() || groupId == other.groupId) - && (!hasMotion() || motion.equals(other.motion)) - && (!hasRogueMap() || rogueMap.equals(other.rogueMap)); + && (!hasRogueMap() || rogueMap.equals(other.rogueMap)) + && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(unkInt); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(motion); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rogueMap); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(rogueMap); + output.writeRawByte((byte) 106); + output.writeMessageNoTag(motion); } } @@ -343,10 +343,10 @@ public final class RotateMapCsReqOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMap); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMap); + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); } return size; } @@ -358,36 +358,36 @@ public final class RotateMapCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 40: { // unkInt unkInt = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 96) { break; } } - case 48: { + case 96: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 26) { + if (tag != 74) { break; } } - case 26: { - // motion - input.readMessage(motion); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 90) { - break; - } - } - case 90: { + case 74: { // rogueMap input.readMessage(rogueMap); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // motion + input.readMessage(motion); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -418,10 +418,10 @@ public final class RotateMapCsReqOuterClass { output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.motion, motion); + output.writeMessage(FieldNames.rogueMap, rogueMap); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.rogueMap, rogueMap); + output.writeMessage(FieldNames.motion, motion); } output.endObject(); } @@ -457,10 +457,11 @@ public final class RotateMapCsReqOuterClass { } break; } - case -1068318794: { - if (input.isAtField(FieldNames.motion)) { + case -394483422: + case 656463223: { + if (input.isAtField(FieldNames.rogueMap)) { if (!input.trySkipNullValue()) { - input.readMessage(motion); + input.readMessage(rogueMap); bitField0_ |= 0x00000004; } } else { @@ -468,11 +469,10 @@ public final class RotateMapCsReqOuterClass { } break; } - case -394483422: - case 656463223: { - if (input.isAtField(FieldNames.rogueMap)) { + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueMap); + input.readMessage(motion); bitField0_ |= 0x00000008; } } else { @@ -527,22 +527,22 @@ public final class RotateMapCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional float x = 10; - */ - private float x; - - /** - * optional float w = 11; - */ - private float w; - - /** - * optional float z = 13; + * optional float z = 4; */ private float z; /** - * optional float y = 15; + * optional float w = 8; + */ + private float w; + + /** + * optional float x = 9; + */ + private float x; + + /** + * optional float y = 14; */ private float y; @@ -557,44 +557,44 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float x = 10; - * @return whether the x field is set + * optional float z = 4; + * @return whether the z field is set */ - public boolean hasX() { + public boolean hasZ() { return (bitField0_ & 0x00000001) != 0; } /** - * optional float x = 10; + * optional float z = 4; * @return this */ - public Vector4 clearX() { + public Vector4 clearZ() { bitField0_ &= ~0x00000001; - x = 0F; + z = 0F; return this; } /** - * optional float x = 10; - * @return the x + * optional float z = 4; + * @return the z */ - public float getX() { - return x; + public float getZ() { + return z; } /** - * optional float x = 10; - * @param value the x to set + * optional float z = 4; + * @param value the z to set * @return this */ - public Vector4 setX(final float value) { + public Vector4 setZ(final float value) { bitField0_ |= 0x00000001; - x = value; + z = value; return this; } /** - * optional float w = 11; + * optional float w = 8; * @return whether the w field is set */ public boolean hasW() { @@ -602,7 +602,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float w = 11; + * optional float w = 8; * @return this */ public Vector4 clearW() { @@ -612,7 +612,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float w = 11; + * optional float w = 8; * @return the w */ public float getW() { @@ -620,7 +620,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float w = 11; + * optional float w = 8; * @param value the w to set * @return this */ @@ -631,44 +631,44 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float z = 13; - * @return whether the z field is set + * optional float x = 9; + * @return whether the x field is set */ - public boolean hasZ() { + public boolean hasX() { return (bitField0_ & 0x00000004) != 0; } /** - * optional float z = 13; + * optional float x = 9; * @return this */ - public Vector4 clearZ() { + public Vector4 clearX() { bitField0_ &= ~0x00000004; - z = 0F; + x = 0F; return this; } /** - * optional float z = 13; - * @return the z + * optional float x = 9; + * @return the x */ - public float getZ() { - return z; + public float getX() { + return x; } /** - * optional float z = 13; - * @param value the z to set + * optional float x = 9; + * @param value the x to set * @return this */ - public Vector4 setZ(final float value) { + public Vector4 setX(final float value) { bitField0_ |= 0x00000004; - z = value; + x = value; return this; } /** - * optional float y = 15; + * optional float y = 14; * @return whether the y field is set */ public boolean hasY() { @@ -676,7 +676,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float y = 15; + * optional float y = 14; * @return this */ public Vector4 clearY() { @@ -686,7 +686,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float y = 15; + * optional float y = 14; * @return the y */ public float getY() { @@ -694,7 +694,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional float y = 15; + * optional float y = 14; * @param value the y to set * @return this */ @@ -709,9 +709,9 @@ public final class RotateMapCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - x = other.x; - w = other.w; z = other.z; + w = other.w; + x = other.x; y = other.y; } return this; @@ -723,14 +723,14 @@ public final class RotateMapCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasX()) { - setX(other.x); + if (other.hasZ()) { + setZ(other.z); } if (other.hasW()) { setW(other.w); } - if (other.hasZ()) { - setZ(other.z); + if (other.hasX()) { + setX(other.x); } if (other.hasY()) { setY(other.y); @@ -745,9 +745,9 @@ public final class RotateMapCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - x = 0F; - w = 0F; z = 0F; + w = 0F; + x = 0F; y = 0F; return this; } @@ -772,28 +772,28 @@ public final class RotateMapCsReqOuterClass { } Vector4 other = (Vector4) o; return bitField0_ == other.bitField0_ - && (!hasX() || ProtoUtil.isEqual(x, other.x)) - && (!hasW() || ProtoUtil.isEqual(w, other.w)) && (!hasZ() || ProtoUtil.isEqual(z, other.z)) + && (!hasW() || ProtoUtil.isEqual(w, other.w)) + && (!hasX() || ProtoUtil.isEqual(x, other.x)) && (!hasY() || ProtoUtil.isEqual(y, other.y)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 85); - output.writeFloatNoTag(x); + output.writeRawByte((byte) 37); + output.writeFloatNoTag(z); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 93); + output.writeRawByte((byte) 69); output.writeFloatNoTag(w); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 109); - output.writeFloatNoTag(z); + output.writeRawByte((byte) 77); + output.writeFloatNoTag(x); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 125); + output.writeRawByte((byte) 117); output.writeFloatNoTag(y); } } @@ -823,34 +823,34 @@ public final class RotateMapCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 85: { - // x - x = input.readFloat(); + case 37: { + // z + z = input.readFloat(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 93) { + if (tag != 69) { break; } } - case 93: { + case 69: { // w w = input.readFloat(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 109) { + if (tag != 77) { break; } } - case 109: { - // z - z = input.readFloat(); + case 77: { + // x + x = input.readFloat(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 125) { + if (tag != 117) { break; } } - case 125: { + case 117: { // y y = input.readFloat(); bitField0_ |= 0x00000008; @@ -877,13 +877,13 @@ public final class RotateMapCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeFloat(FieldNames.x, x); + output.writeFloat(FieldNames.z, z); } if ((bitField0_ & 0x00000002) != 0) { output.writeFloat(FieldNames.w, w); } if ((bitField0_ & 0x00000004) != 0) { - output.writeFloat(FieldNames.z, z); + output.writeFloat(FieldNames.x, x); } if ((bitField0_ & 0x00000008) != 0) { output.writeFloat(FieldNames.y, y); @@ -898,10 +898,10 @@ public final class RotateMapCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 120: { - if (input.isAtField(FieldNames.x)) { + case 122: { + if (input.isAtField(FieldNames.z)) { if (!input.trySkipNullValue()) { - x = input.readFloat(); + z = input.readFloat(); bitField0_ |= 0x00000001; } } else { @@ -920,10 +920,10 @@ public final class RotateMapCsReqOuterClass { } break; } - case 122: { - if (input.isAtField(FieldNames.z)) { + case 120: { + if (input.isAtField(FieldNames.x)) { if (!input.trySkipNullValue()) { - z = input.readFloat(); + x = input.readFloat(); bitField0_ |= 0x00000004; } } else { @@ -994,11 +994,11 @@ public final class RotateMapCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName x = FieldName.forField("x"); + static final FieldName z = FieldName.forField("z"); static final FieldName w = FieldName.forField("w"); - static final FieldName z = FieldName.forField("z"); + static final FieldName x = FieldName.forField("x"); static final FieldName y = FieldName.forField("y"); } @@ -1011,12 +1011,12 @@ public final class RotateMapCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RotateMapCsReq.Vector4 vector4 = 3; + * optional .RotateMapCsReq.Vector4 vector4 = 8; */ private final Vector4 vector4 = Vector4.newInstance(); /** - * optional .Vector vector3 = 6; + * optional .Vector vector3 = 11; */ private final VectorOuterClass.Vector vector3 = VectorOuterClass.Vector.newInstance(); @@ -1031,7 +1031,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .RotateMapCsReq.Vector4 vector4 = 3; + * optional .RotateMapCsReq.Vector4 vector4 = 8; * @return whether the vector4 field is set */ public boolean hasVector4() { @@ -1039,7 +1039,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .RotateMapCsReq.Vector4 vector4 = 3; + * optional .RotateMapCsReq.Vector4 vector4 = 8; * @return this */ public NewMapRot clearVector4() { @@ -1049,7 +1049,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .RotateMapCsReq.Vector4 vector4 = 3; + * optional .RotateMapCsReq.Vector4 vector4 = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -1063,7 +1063,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .RotateMapCsReq.Vector4 vector4 = 3; + * optional .RotateMapCsReq.Vector4 vector4 = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -1077,7 +1077,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .RotateMapCsReq.Vector4 vector4 = 3; + * optional .RotateMapCsReq.Vector4 vector4 = 8; * @param value the vector4 to set * @return this */ @@ -1088,7 +1088,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .Vector vector3 = 6; + * optional .Vector vector3 = 11; * @return whether the vector3 field is set */ public boolean hasVector3() { @@ -1096,7 +1096,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .Vector vector3 = 6; + * optional .Vector vector3 = 11; * @return this */ public NewMapRot clearVector3() { @@ -1106,7 +1106,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .Vector vector3 = 6; + * optional .Vector vector3 = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -1120,7 +1120,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .Vector vector3 = 6; + * optional .Vector vector3 = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -1134,7 +1134,7 @@ public final class RotateMapCsReqOuterClass { } /** - * optional .Vector vector3 = 6; + * optional .Vector vector3 = 11; * @param value the vector3 to set * @return this */ @@ -1211,11 +1211,11 @@ public final class RotateMapCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 26); + output.writeRawByte((byte) 66); output.writeMessageNoTag(vector4); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 90); output.writeMessageNoTag(vector3); } } @@ -1239,16 +1239,16 @@ public final class RotateMapCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 26: { + case 66: { // vector4 input.readMessage(vector4); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 90) { break; } } - case 50: { + case 90: { // vector3 input.readMessage(vector3); bitField0_ |= 0x00000002; @@ -1387,9 +1387,9 @@ public final class RotateMapCsReqOuterClass { static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName motion = FieldName.forField("motion"); - static final FieldName rogueMap = FieldName.forField("rogueMap", "rogue_map"); + + static final FieldName motion = FieldName.forField("motion"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java index 531120b..19bd673 100644 --- a/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RotateMapScRspOuterClass.java @@ -19,17 +19,17 @@ public final class RotateMapScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 client_pos_version = 5; - */ - private int clientPosVersion; - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; */ private int retcode; /** - * optional .MotionInfo motion = 4; + * optional uint32 client_pos_version = 9; + */ + private int clientPosVersion; + + /** + * optional .MotionInfo motion = 6; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -44,62 +44,25 @@ public final class RotateMapScRspOuterClass { } /** - * optional uint32 client_pos_version = 5; - * @return whether the clientPosVersion field is set + * optional uint32 retcode = 4; + * @return whether the retcode field is set */ - public boolean hasClientPosVersion() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 client_pos_version = 5; - * @return this - */ - public RotateMapScRsp clearClientPosVersion() { - bitField0_ &= ~0x00000001; - clientPosVersion = 0; - return this; - } - - /** - * optional uint32 client_pos_version = 5; - * @return the clientPosVersion - */ - public int getClientPosVersion() { - return clientPosVersion; - } - - /** - * optional uint32 client_pos_version = 5; - * @param value the clientPosVersion to set - * @return this - */ - public RotateMapScRsp setClientPosVersion(final int value) { - bitField0_ |= 0x00000001; - clientPosVersion = value; - return this; - } - - /** - * optional uint32 retcode = 11; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return this */ public RotateMapScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -107,18 +70,55 @@ public final class RotateMapScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ public RotateMapScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .MotionInfo motion = 4; + * optional uint32 client_pos_version = 9; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 client_pos_version = 9; + * @return this + */ + public RotateMapScRsp clearClientPosVersion() { + bitField0_ &= ~0x00000002; + clientPosVersion = 0; + return this; + } + + /** + * optional uint32 client_pos_version = 9; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + * optional uint32 client_pos_version = 9; + * @param value the clientPosVersion to set + * @return this + */ + public RotateMapScRsp setClientPosVersion(final int value) { + bitField0_ |= 0x00000002; + clientPosVersion = value; + return this; + } + + /** + * optional .MotionInfo motion = 6; * @return whether the motion field is set */ public boolean hasMotion() { @@ -126,7 +126,7 @@ public final class RotateMapScRspOuterClass { } /** - * optional .MotionInfo motion = 4; + * optional .MotionInfo motion = 6; * @return this */ public RotateMapScRsp clearMotion() { @@ -136,7 +136,7 @@ public final class RotateMapScRspOuterClass { } /** - * optional .MotionInfo motion = 4; + * optional .MotionInfo motion = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class RotateMapScRspOuterClass { } /** - * optional .MotionInfo motion = 4; + * optional .MotionInfo motion = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class RotateMapScRspOuterClass { } /** - * optional .MotionInfo motion = 4; + * optional .MotionInfo motion = 6; * @param value the motion to set * @return this */ @@ -179,8 +179,8 @@ public final class RotateMapScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - clientPosVersion = other.clientPosVersion; retcode = other.retcode; + clientPosVersion = other.clientPosVersion; motion.copyFrom(other.motion); } return this; @@ -192,12 +192,12 @@ public final class RotateMapScRspOuterClass { return this; } cachedSize = -1; - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } if (other.hasMotion()) { getMutableMotion().mergeFrom(other.motion); } @@ -211,8 +211,8 @@ public final class RotateMapScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - clientPosVersion = 0; retcode = 0; + clientPosVersion = 0; motion.clear(); return this; } @@ -238,23 +238,23 @@ public final class RotateMapScRspOuterClass { } RotateMapScRsp other = (RotateMapScRsp) o; return bitField0_ == other.bitField0_ - && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasRetcode() || retcode == other.retcode) + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(clientPosVersion); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(clientPosVersion); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 50); output.writeMessageNoTag(motion); } } @@ -263,10 +263,10 @@ public final class RotateMapScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); @@ -281,25 +281,25 @@ public final class RotateMapScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // clientPosVersion - clientPosVersion = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 32: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 72) { break; } } - case 34: { + case 72: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { // motion input.readMessage(motion); bitField0_ |= 0x00000004; @@ -326,10 +326,10 @@ public final class RotateMapScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.motion, motion); @@ -344,11 +344,10 @@ public final class RotateMapScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787644431: - case 1278860153: { - if (input.isAtField(FieldNames.clientPosVersion)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - clientPosVersion = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -356,10 +355,11 @@ public final class RotateMapScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -431,10 +431,10 @@ public final class RotateMapScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName motion = FieldName.forField("motion"); } } diff --git a/src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java index c42d960..0018c17 100644 --- a/src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RotaterDataOuterClass.java @@ -20,20 +20,20 @@ public final class RotaterDataOuterClass { private static final long serialVersionUID = 0L; /** - * optional float APDIFCCFAGG = 14; + * optional float APDIFCCFAGG = 10; */ private float aPDIFCCFAGG; /** - * optional uint32 unk_int = 3; - */ - private int unkInt; - - /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 12; */ private int groupId; + /** + * optional uint32 unk_int = 15; + */ + private int unkInt; + private RotaterData() { } @@ -45,7 +45,7 @@ public final class RotaterDataOuterClass { } /** - * optional float APDIFCCFAGG = 14; + * optional float APDIFCCFAGG = 10; * @return whether the aPDIFCCFAGG field is set */ public boolean hasAPDIFCCFAGG() { @@ -53,7 +53,7 @@ public final class RotaterDataOuterClass { } /** - * optional float APDIFCCFAGG = 14; + * optional float APDIFCCFAGG = 10; * @return this */ public RotaterData clearAPDIFCCFAGG() { @@ -63,7 +63,7 @@ public final class RotaterDataOuterClass { } /** - * optional float APDIFCCFAGG = 14; + * optional float APDIFCCFAGG = 10; * @return the aPDIFCCFAGG */ public float getAPDIFCCFAGG() { @@ -71,7 +71,7 @@ public final class RotaterDataOuterClass { } /** - * optional float APDIFCCFAGG = 14; + * optional float APDIFCCFAGG = 10; * @param value the aPDIFCCFAGG to set * @return this */ @@ -82,62 +82,25 @@ public final class RotaterDataOuterClass { } /** - * optional uint32 unk_int = 3; - * @return whether the unkInt field is set + * optional uint32 group_id = 12; + * @return whether the groupId field is set */ - public boolean hasUnkInt() { + public boolean hasGroupId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 unk_int = 3; - * @return this - */ - public RotaterData clearUnkInt() { - bitField0_ &= ~0x00000002; - unkInt = 0; - return this; - } - - /** - * optional uint32 unk_int = 3; - * @return the unkInt - */ - public int getUnkInt() { - return unkInt; - } - - /** - * optional uint32 unk_int = 3; - * @param value the unkInt to set - * @return this - */ - public RotaterData setUnkInt(final int value) { - bitField0_ |= 0x00000002; - unkInt = value; - return this; - } - - /** - * optional uint32 group_id = 15; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 12; * @return this */ public RotaterData clearGroupId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; groupId = 0; return this; } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 12; * @return the groupId */ public int getGroupId() { @@ -145,24 +108,61 @@ public final class RotaterDataOuterClass { } /** - * optional uint32 group_id = 15; + * optional uint32 group_id = 12; * @param value the groupId to set * @return this */ public RotaterData setGroupId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; groupId = value; return this; } + /** + * optional uint32 unk_int = 15; + * @return whether the unkInt field is set + */ + public boolean hasUnkInt() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 unk_int = 15; + * @return this + */ + public RotaterData clearUnkInt() { + bitField0_ &= ~0x00000004; + unkInt = 0; + return this; + } + + /** + * optional uint32 unk_int = 15; + * @return the unkInt + */ + public int getUnkInt() { + return unkInt; + } + + /** + * optional uint32 unk_int = 15; + * @param value the unkInt to set + * @return this + */ + public RotaterData setUnkInt(final int value) { + bitField0_ |= 0x00000004; + unkInt = value; + return this; + } + @Override public RotaterData copyFrom(final RotaterData other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; aPDIFCCFAGG = other.aPDIFCCFAGG; - unkInt = other.unkInt; groupId = other.groupId; + unkInt = other.unkInt; } return this; } @@ -176,12 +176,12 @@ public final class RotaterDataOuterClass { if (other.hasAPDIFCCFAGG()) { setAPDIFCCFAGG(other.aPDIFCCFAGG); } - if (other.hasUnkInt()) { - setUnkInt(other.unkInt); - } if (other.hasGroupId()) { setGroupId(other.groupId); } + if (other.hasUnkInt()) { + setUnkInt(other.unkInt); + } return this; } @@ -193,8 +193,8 @@ public final class RotaterDataOuterClass { cachedSize = -1; bitField0_ = 0; aPDIFCCFAGG = 0F; - unkInt = 0; groupId = 0; + unkInt = 0; return this; } @@ -219,23 +219,23 @@ public final class RotaterDataOuterClass { RotaterData other = (RotaterData) o; return bitField0_ == other.bitField0_ && (!hasAPDIFCCFAGG() || ProtoUtil.isEqual(aPDIFCCFAGG, other.aPDIFCCFAGG)) - && (!hasUnkInt() || unkInt == other.unkInt) - && (!hasGroupId() || groupId == other.groupId); + && (!hasGroupId() || groupId == other.groupId) + && (!hasUnkInt() || unkInt == other.unkInt); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 117); + output.writeRawByte((byte) 85); output.writeFloatNoTag(aPDIFCCFAGG); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(unkInt); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(groupId); + output.writeUInt32NoTag(unkInt); } } @@ -246,10 +246,10 @@ public final class RotaterDataOuterClass { size += 5; } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(unkInt); } return size; } @@ -261,18 +261,18 @@ public final class RotaterDataOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 117: { + case 85: { // aPDIFCCFAGG aPDIFCCFAGG = input.readFloat(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { + if (tag != 96) { break; } } - case 24: { - // unkInt - unkInt = input.readUInt32(); + case 96: { + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 120) { @@ -280,8 +280,8 @@ public final class RotaterDataOuterClass { } } case 120: { - // groupId - groupId = input.readUInt32(); + // unkInt + unkInt = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -309,10 +309,10 @@ public final class RotaterDataOuterClass { output.writeFloat(FieldNames.aPDIFCCFAGG, aPDIFCCFAGG); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.unkInt, unkInt); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.unkInt, unkInt); } output.endObject(); } @@ -335,11 +335,11 @@ public final class RotaterDataOuterClass { } break; } - case -840508003: - case -285293790: { - if (input.isAtField(FieldNames.unkInt)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - unkInt = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -347,11 +347,11 @@ public final class RotaterDataOuterClass { } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case -840508003: + case -285293790: { + if (input.isAtField(FieldNames.unkInt)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + unkInt = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -413,9 +413,9 @@ public final class RotaterDataOuterClass { static class FieldNames { static final FieldName aPDIFCCFAGG = FieldName.forField("APDIFCCFAGG"); - static final FieldName unkInt = FieldName.forField("unkInt", "unk_int"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName unkInt = FieldName.forField("unkInt", "unk_int"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RotatorEnergyInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/RotatorEnergyInfoOuterClass.java index 846e3a7..0918717 100644 --- a/src/generated/main/emu/lunarcore/proto/RotatorEnergyInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/RotatorEnergyInfoOuterClass.java @@ -19,12 +19,20 @@ public final class RotatorEnergyInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_num = 4; + *
+     *  12
+     * 
+ * + * optional uint32 cur_num = 11; */ private int curNum; /** - * optional uint32 max_num = 14; + *
+     *  11
+     * 
+ * + * optional uint32 max_num = 12; */ private int maxNum; @@ -39,7 +47,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 cur_num = 4; + *
+     *  12
+     * 
+ * + * optional uint32 cur_num = 11; * @return whether the curNum field is set */ public boolean hasCurNum() { @@ -47,7 +59,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 cur_num = 4; + *
+     *  12
+     * 
+ * + * optional uint32 cur_num = 11; * @return this */ public RotatorEnergyInfo clearCurNum() { @@ -57,7 +73,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 cur_num = 4; + *
+     *  12
+     * 
+ * + * optional uint32 cur_num = 11; * @return the curNum */ public int getCurNum() { @@ -65,7 +85,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 cur_num = 4; + *
+     *  12
+     * 
+ * + * optional uint32 cur_num = 11; * @param value the curNum to set * @return this */ @@ -76,7 +100,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 max_num = 14; + *
+     *  11
+     * 
+ * + * optional uint32 max_num = 12; * @return whether the maxNum field is set */ public boolean hasMaxNum() { @@ -84,7 +112,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 max_num = 14; + *
+     *  11
+     * 
+ * + * optional uint32 max_num = 12; * @return this */ public RotatorEnergyInfo clearMaxNum() { @@ -94,7 +126,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 max_num = 14; + *
+     *  11
+     * 
+ * + * optional uint32 max_num = 12; * @return the maxNum */ public int getMaxNum() { @@ -102,7 +138,11 @@ public final class RotatorEnergyInfoOuterClass { } /** - * optional uint32 max_num = 14; + *
+     *  11
+     * 
+ * + * optional uint32 max_num = 12; * @param value the maxNum to set * @return this */ @@ -177,11 +217,11 @@ public final class RotatorEnergyInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(curNum); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(maxNum); } } @@ -205,16 +245,16 @@ public final class RotatorEnergyInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 88: { // curNum curNum = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 96) { break; } } - case 112: { + case 96: { // maxNum maxNum = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java index c2e08d5..04efe69 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneActorInfoOuterClass.java @@ -19,22 +19,22 @@ public final class SceneActorInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 2; - */ - private int uid; - - /** - * optional uint32 base_avatar_id = 11; - */ - private int baseAvatarId; - - /** - * optional uint32 map_layer = 15; + * optional uint32 map_layer = 4; */ private int mapLayer; /** - * optional .AvatarType avatar_type = 6; + * optional uint32 uid = 7; + */ + private int uid; + + /** + * optional uint32 base_avatar_id = 14; + */ + private int baseAvatarId; + + /** + * optional .AvatarType avatar_type = 15; */ private int avatarType; @@ -49,99 +49,25 @@ public final class SceneActorInfoOuterClass { } /** - * optional uint32 uid = 2; - * @return whether the uid field is set + * optional uint32 map_layer = 4; + * @return whether the mapLayer field is set */ - public boolean hasUid() { + public boolean hasMapLayer() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 uid = 2; - * @return this - */ - public SceneActorInfo clearUid() { - bitField0_ &= ~0x00000001; - uid = 0; - return this; - } - - /** - * optional uint32 uid = 2; - * @return the uid - */ - public int getUid() { - return uid; - } - - /** - * optional uint32 uid = 2; - * @param value the uid to set - * @return this - */ - public SceneActorInfo setUid(final int value) { - bitField0_ |= 0x00000001; - uid = value; - return this; - } - - /** - * optional uint32 base_avatar_id = 11; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 base_avatar_id = 11; - * @return this - */ - public SceneActorInfo clearBaseAvatarId() { - bitField0_ &= ~0x00000002; - baseAvatarId = 0; - return this; - } - - /** - * optional uint32 base_avatar_id = 11; - * @return the baseAvatarId - */ - public int getBaseAvatarId() { - return baseAvatarId; - } - - /** - * optional uint32 base_avatar_id = 11; - * @param value the baseAvatarId to set - * @return this - */ - public SceneActorInfo setBaseAvatarId(final int value) { - bitField0_ |= 0x00000002; - baseAvatarId = value; - return this; - } - - /** - * optional uint32 map_layer = 15; - * @return whether the mapLayer field is set - */ - public boolean hasMapLayer() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 map_layer = 15; + * optional uint32 map_layer = 4; * @return this */ public SceneActorInfo clearMapLayer() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; mapLayer = 0; return this; } /** - * optional uint32 map_layer = 15; + * optional uint32 map_layer = 4; * @return the mapLayer */ public int getMapLayer() { @@ -149,18 +75,92 @@ public final class SceneActorInfoOuterClass { } /** - * optional uint32 map_layer = 15; + * optional uint32 map_layer = 4; * @param value the mapLayer to set * @return this */ public SceneActorInfo setMapLayer(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; mapLayer = value; return this; } /** - * optional .AvatarType avatar_type = 6; + * optional uint32 uid = 7; + * @return whether the uid field is set + */ + public boolean hasUid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 uid = 7; + * @return this + */ + public SceneActorInfo clearUid() { + bitField0_ &= ~0x00000002; + uid = 0; + return this; + } + + /** + * optional uint32 uid = 7; + * @return the uid + */ + public int getUid() { + return uid; + } + + /** + * optional uint32 uid = 7; + * @param value the uid to set + * @return this + */ + public SceneActorInfo setUid(final int value) { + bitField0_ |= 0x00000002; + uid = value; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return whether the baseAvatarId field is set + */ + public boolean hasBaseAvatarId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return this + */ + public SceneActorInfo clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 14; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 14; + * @param value the baseAvatarId to set + * @return this + */ + public SceneActorInfo setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 15; * @return whether the avatarType field is set */ public boolean hasAvatarType() { @@ -168,7 +168,7 @@ public final class SceneActorInfoOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 15; * @return this */ public SceneActorInfo clearAvatarType() { @@ -178,7 +178,7 @@ public final class SceneActorInfoOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 15; * @return the avatarType */ public AvatarTypeOuterClass.AvatarType getAvatarType() { @@ -211,7 +211,7 @@ public final class SceneActorInfoOuterClass { } /** - * optional .AvatarType avatar_type = 6; + * optional .AvatarType avatar_type = 15; * @param value the avatarType to set * @return this */ @@ -226,9 +226,9 @@ public final class SceneActorInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + mapLayer = other.mapLayer; uid = other.uid; baseAvatarId = other.baseAvatarId; - mapLayer = other.mapLayer; avatarType = other.avatarType; } return this; @@ -240,15 +240,15 @@ public final class SceneActorInfoOuterClass { return this; } cachedSize = -1; + if (other.hasMapLayer()) { + setMapLayer(other.mapLayer); + } if (other.hasUid()) { setUid(other.uid); } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } - if (other.hasMapLayer()) { - setMapLayer(other.mapLayer); - } if (other.hasAvatarType()) { setAvatarTypeValue(other.avatarType); } @@ -262,9 +262,9 @@ public final class SceneActorInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + mapLayer = 0; uid = 0; baseAvatarId = 0; - mapLayer = 0; avatarType = 0; return this; } @@ -289,28 +289,28 @@ public final class SceneActorInfoOuterClass { } SceneActorInfo other = (SceneActorInfo) o; return bitField0_ == other.bitField0_ + && (!hasMapLayer() || mapLayer == other.mapLayer) && (!hasUid() || uid == other.uid) && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasMapLayer() || mapLayer == other.mapLayer) && (!hasAvatarType() || avatarType == other.avatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(uid); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(baseAvatarId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(mapLayer); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(uid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(baseAvatarId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 120); output.writeEnumNoTag(avatarType); } } @@ -319,13 +319,13 @@ public final class SceneActorInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); + size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(uid); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapLayer); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); @@ -340,34 +340,34 @@ public final class SceneActorInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // uid - uid = input.readUInt32(); + case 32: { + // mapLayer + mapLayer = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 56) { break; } } - case 88: { + case 56: { + // uid + uid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { // baseAvatarId baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 120) { break; } } case 120: { - // mapLayer - mapLayer = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { // avatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -397,13 +397,13 @@ public final class SceneActorInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.uid, uid); + output.writeUInt32(FieldNames.mapLayer, mapLayer); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.uid, uid); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.mapLayer, mapLayer); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -418,11 +418,23 @@ public final class SceneActorInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 160971093: + case 1248553134: { + if (input.isAtField(FieldNames.mapLayer)) { + if (!input.trySkipNullValue()) { + mapLayer = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 115792: { if (input.isAtField(FieldNames.uid)) { if (!input.trySkipNullValue()) { uid = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -434,18 +446,6 @@ public final class SceneActorInfoOuterClass { if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { baseAvatarId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 160971093: - case 1248553134: { - if (input.isAtField(FieldNames.mapLayer)) { - if (!input.trySkipNullValue()) { - mapLayer = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -523,12 +523,12 @@ public final class SceneActorInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); + static final FieldName uid = FieldName.forField("uid"); static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName mapLayer = FieldName.forField("mapLayer", "map_layer"); - static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java index 7e8b343..972b565 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneBattleInfoOuterClass.java @@ -20,52 +20,52 @@ public final class SceneBattleInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 1; - */ - private int stageId; - - /** - * optional uint32 world_level = 2; - */ - private int worldLevel; - - /** - * optional uint32 rounds_limit = 4; - */ - private int roundsLimit; - - /** - * optional uint32 logic_random_seed = 6; - */ - private int logicRandomSeed; - - /** - * optional uint32 battle_id = 12; + * optional uint32 battle_id = 1; */ private int battleId; /** - * repeated .BattleBuff buff_list = 5; + * optional uint32 stage_id = 2; */ - private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BattleBuffOuterClass.BattleBuff.getFactory()); + private int stageId; /** - * repeated .BattleAvatar battle_avatar_list = 7; + * optional uint32 world_level = 6; */ - private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); + private int worldLevel; /** - * repeated .SceneMonsterWave monster_wave_list = 14; + * optional uint32 logic_random_seed = 8; + */ + private int logicRandomSeed; + + /** + * optional uint32 rounds_limit = 14; + */ + private int roundsLimit; + + /** + * repeated .SceneMonsterWave monster_wave_list = 4; */ private final RepeatedMessage monsterWaveList = RepeatedMessage.newEmptyInstance(SceneMonsterWaveOuterClass.SceneMonsterWave.getFactory()); /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleAvatar battle_avatar_list = 9; + */ + private final RepeatedMessage battleAvatarList = RepeatedMessage.newEmptyInstance(BattleAvatarOuterClass.BattleAvatar.getFactory()); + + /** + * repeated .BattleBuff buff_list = 13; + */ + private final RepeatedMessage buffList = RepeatedMessage.newEmptyInstance(BattleBuffOuterClass.BattleBuff.getFactory()); + + /** + * repeated .BattleEventBattleInfo event_battle_info_list = 234; */ private final RepeatedMessage eventBattleInfoList = RepeatedMessage.newEmptyInstance(BattleEventBattleInfoOuterClass.BattleEventBattleInfo.getFactory()); /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; */ private final RepeatedMessage battleTargetInfo = RepeatedMessage.newEmptyInstance(BattleTargetInfoEntry.getFactory()); @@ -80,25 +80,62 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 stage_id = 1; - * @return whether the stageId field is set + * optional uint32 battle_id = 1; + * @return whether the battleId field is set */ - public boolean hasStageId() { + public boolean hasBattleId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 stage_id = 1; + * optional uint32 battle_id = 1; + * @return this + */ + public SceneBattleInfo clearBattleId() { + bitField0_ &= ~0x00000001; + battleId = 0; + return this; + } + + /** + * optional uint32 battle_id = 1; + * @return the battleId + */ + public int getBattleId() { + return battleId; + } + + /** + * optional uint32 battle_id = 1; + * @param value the battleId to set + * @return this + */ + public SceneBattleInfo setBattleId(final int value) { + bitField0_ |= 0x00000001; + battleId = value; + return this; + } + + /** + * optional uint32 stage_id = 2; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 stage_id = 2; * @return this */ public SceneBattleInfo clearStageId() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; stageId = 0; return this; } /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 2; * @return the stageId */ public int getStageId() { @@ -106,36 +143,36 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 stage_id = 1; + * optional uint32 stage_id = 2; * @param value the stageId to set * @return this */ public SceneBattleInfo setStageId(final int value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; stageId = value; return this; } /** - * optional uint32 world_level = 2; + * optional uint32 world_level = 6; * @return whether the worldLevel field is set */ public boolean hasWorldLevel() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 world_level = 2; + * optional uint32 world_level = 6; * @return this */ public SceneBattleInfo clearWorldLevel() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000004; worldLevel = 0; return this; } /** - * optional uint32 world_level = 2; + * optional uint32 world_level = 6; * @return the worldLevel */ public int getWorldLevel() { @@ -143,55 +180,18 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 world_level = 2; + * optional uint32 world_level = 6; * @param value the worldLevel to set * @return this */ public SceneBattleInfo setWorldLevel(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; worldLevel = value; return this; } /** - * optional uint32 rounds_limit = 4; - * @return whether the roundsLimit field is set - */ - public boolean hasRoundsLimit() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 rounds_limit = 4; - * @return this - */ - public SceneBattleInfo clearRoundsLimit() { - bitField0_ &= ~0x00000004; - roundsLimit = 0; - return this; - } - - /** - * optional uint32 rounds_limit = 4; - * @return the roundsLimit - */ - public int getRoundsLimit() { - return roundsLimit; - } - - /** - * optional uint32 rounds_limit = 4; - * @param value the roundsLimit to set - * @return this - */ - public SceneBattleInfo setRoundsLimit(final int value) { - bitField0_ |= 0x00000004; - roundsLimit = value; - return this; - } - - /** - * optional uint32 logic_random_seed = 6; + * optional uint32 logic_random_seed = 8; * @return whether the logicRandomSeed field is set */ public boolean hasLogicRandomSeed() { @@ -199,7 +199,7 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 logic_random_seed = 6; + * optional uint32 logic_random_seed = 8; * @return this */ public SceneBattleInfo clearLogicRandomSeed() { @@ -209,7 +209,7 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 logic_random_seed = 6; + * optional uint32 logic_random_seed = 8; * @return the logicRandomSeed */ public int getLogicRandomSeed() { @@ -217,7 +217,7 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 logic_random_seed = 6; + * optional uint32 logic_random_seed = 8; * @param value the logicRandomSeed to set * @return this */ @@ -228,199 +228,62 @@ public final class SceneBattleInfoOuterClass { } /** - * optional uint32 battle_id = 12; - * @return whether the battleId field is set + * optional uint32 rounds_limit = 14; + * @return whether the roundsLimit field is set */ - public boolean hasBattleId() { + public boolean hasRoundsLimit() { return (bitField0_ & 0x00000010) != 0; } /** - * optional uint32 battle_id = 12; + * optional uint32 rounds_limit = 14; * @return this */ - public SceneBattleInfo clearBattleId() { + public SceneBattleInfo clearRoundsLimit() { bitField0_ &= ~0x00000010; - battleId = 0; + roundsLimit = 0; return this; } /** - * optional uint32 battle_id = 12; - * @return the battleId + * optional uint32 rounds_limit = 14; + * @return the roundsLimit */ - public int getBattleId() { - return battleId; + public int getRoundsLimit() { + return roundsLimit; } /** - * optional uint32 battle_id = 12; - * @param value the battleId to set + * optional uint32 rounds_limit = 14; + * @param value the roundsLimit to set * @return this */ - public SceneBattleInfo setBattleId(final int value) { + public SceneBattleInfo setRoundsLimit(final int value) { bitField0_ |= 0x00000010; - battleId = value; + roundsLimit = value; return this; } /** - * repeated .BattleBuff buff_list = 5; - * @return whether the buffList field is set + * repeated .SceneMonsterWave monster_wave_list = 4; + * @return whether the monsterWaveList field is set */ - public boolean hasBuffList() { + public boolean hasMonsterWaveList() { return (bitField0_ & 0x00000020) != 0; } /** - * repeated .BattleBuff buff_list = 5; - * @return this - */ - public SceneBattleInfo clearBuffList() { - bitField0_ &= ~0x00000020; - buffList.clear(); - return this; - } - - /** - * repeated .BattleBuff buff_list = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBuffList() { - return buffList; - } - - /** - * repeated .BattleBuff buff_list = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableBuffList() { - bitField0_ |= 0x00000020; - return buffList; - } - - /** - * repeated .BattleBuff buff_list = 5; - * @param value the buffList to add - * @return this - */ - public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { - bitField0_ |= 0x00000020; - buffList.add(value); - return this; - } - - /** - * repeated .BattleBuff buff_list = 5; - * @param values the buffList to add - * @return this - */ - public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { - bitField0_ |= 0x00000020; - buffList.addAll(values); - return this; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 7; - * @return whether the battleAvatarList field is set - */ - public boolean hasBattleAvatarList() { - return (bitField0_ & 0x00000040) != 0; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 7; - * @return this - */ - public SceneBattleInfo clearBattleAvatarList() { - bitField0_ &= ~0x00000040; - battleAvatarList.clear(); - return this; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBattleAvatarList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getBattleAvatarList() { - return battleAvatarList; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableBattleAvatarList() { - bitField0_ |= 0x00000040; - return battleAvatarList; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 7; - * @param value the battleAvatarList to add - * @return this - */ - public SceneBattleInfo addBattleAvatarList(final BattleAvatarOuterClass.BattleAvatar value) { - bitField0_ |= 0x00000040; - battleAvatarList.add(value); - return this; - } - - /** - * repeated .BattleAvatar battle_avatar_list = 7; - * @param values the battleAvatarList to add - * @return this - */ - public SceneBattleInfo addAllBattleAvatarList( - final BattleAvatarOuterClass.BattleAvatar... values) { - bitField0_ |= 0x00000040; - battleAvatarList.addAll(values); - return this; - } - - /** - * repeated .SceneMonsterWave monster_wave_list = 14; - * @return whether the monsterWaveList field is set - */ - public boolean hasMonsterWaveList() { - return (bitField0_ & 0x00000080) != 0; - } - - /** - * repeated .SceneMonsterWave monster_wave_list = 14; + * repeated .SceneMonsterWave monster_wave_list = 4; * @return this */ public SceneBattleInfo clearMonsterWaveList() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000020; monsterWaveList.clear(); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 14; + * repeated .SceneMonsterWave monster_wave_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -434,7 +297,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneMonsterWave monster_wave_list = 14; + * repeated .SceneMonsterWave monster_wave_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -444,36 +307,173 @@ public final class SceneBattleInfoOuterClass { */ public RepeatedMessage getMutableMonsterWaveList( ) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; return monsterWaveList; } /** - * repeated .SceneMonsterWave monster_wave_list = 14; + * repeated .SceneMonsterWave monster_wave_list = 4; * @param value the monsterWaveList to add * @return this */ public SceneBattleInfo addMonsterWaveList( final SceneMonsterWaveOuterClass.SceneMonsterWave value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; monsterWaveList.add(value); return this; } /** - * repeated .SceneMonsterWave monster_wave_list = 14; + * repeated .SceneMonsterWave monster_wave_list = 4; * @param values the monsterWaveList to add * @return this */ public SceneBattleInfo addAllMonsterWaveList( final SceneMonsterWaveOuterClass.SceneMonsterWave... values) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; monsterWaveList.addAll(values); return this; } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleAvatar battle_avatar_list = 9; + * @return whether the battleAvatarList field is set + */ + public boolean hasBattleAvatarList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 9; + * @return this + */ + public SceneBattleInfo clearBattleAvatarList() { + bitField0_ &= ~0x00000040; + battleAvatarList.clear(); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBattleAvatarList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBattleAvatarList() { + return battleAvatarList; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableBattleAvatarList() { + bitField0_ |= 0x00000040; + return battleAvatarList; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 9; + * @param value the battleAvatarList to add + * @return this + */ + public SceneBattleInfo addBattleAvatarList(final BattleAvatarOuterClass.BattleAvatar value) { + bitField0_ |= 0x00000040; + battleAvatarList.add(value); + return this; + } + + /** + * repeated .BattleAvatar battle_avatar_list = 9; + * @param values the battleAvatarList to add + * @return this + */ + public SceneBattleInfo addAllBattleAvatarList( + final BattleAvatarOuterClass.BattleAvatar... values) { + bitField0_ |= 0x00000040; + battleAvatarList.addAll(values); + return this; + } + + /** + * repeated .BattleBuff buff_list = 13; + * @return whether the buffList field is set + */ + public boolean hasBuffList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated .BattleBuff buff_list = 13; + * @return this + */ + public SceneBattleInfo clearBuffList() { + bitField0_ &= ~0x00000080; + buffList.clear(); + return this; + } + + /** + * repeated .BattleBuff buff_list = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBuffList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getBuffList() { + return buffList; + } + + /** + * repeated .BattleBuff buff_list = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableBuffList() { + bitField0_ |= 0x00000080; + return buffList; + } + + /** + * repeated .BattleBuff buff_list = 13; + * @param value the buffList to add + * @return this + */ + public SceneBattleInfo addBuffList(final BattleBuffOuterClass.BattleBuff value) { + bitField0_ |= 0x00000080; + buffList.add(value); + return this; + } + + /** + * repeated .BattleBuff buff_list = 13; + * @param values the buffList to add + * @return this + */ + public SceneBattleInfo addAllBuffList(final BattleBuffOuterClass.BattleBuff... values) { + bitField0_ |= 0x00000080; + buffList.addAll(values); + return this; + } + + /** + * repeated .BattleEventBattleInfo event_battle_info_list = 234; * @return whether the eventBattleInfoList field is set */ public boolean hasEventBattleInfoList() { @@ -481,7 +481,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleEventBattleInfo event_battle_info_list = 234; * @return this */ public SceneBattleInfo clearEventBattleInfoList() { @@ -491,7 +491,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleEventBattleInfo event_battle_info_list = 234; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -506,7 +506,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleEventBattleInfo event_battle_info_list = 234; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -521,7 +521,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleEventBattleInfo event_battle_info_list = 234; * @param value the eventBattleInfoList to add * @return this */ @@ -533,7 +533,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .BattleEventBattleInfo event_battle_info_list = 321; + * repeated .BattleEventBattleInfo event_battle_info_list = 234; * @param values the eventBattleInfoList to add * @return this */ @@ -545,7 +545,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; * @return whether the battleTargetInfo field is set */ public boolean hasBattleTargetInfo() { @@ -553,7 +553,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; * @return this */ public SceneBattleInfo clearBattleTargetInfo() { @@ -563,7 +563,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -577,7 +577,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -591,7 +591,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; * @param value the battleTargetInfo to add * @return this */ @@ -602,7 +602,7 @@ public final class SceneBattleInfoOuterClass { } /** - * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 892; + * repeated .SceneBattleInfo.BattleTargetInfoEntry battle_target_info = 761; * @param values the battleTargetInfo to add * @return this */ @@ -617,14 +617,14 @@ public final class SceneBattleInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + battleId = other.battleId; stageId = other.stageId; worldLevel = other.worldLevel; - roundsLimit = other.roundsLimit; logicRandomSeed = other.logicRandomSeed; - battleId = other.battleId; - buffList.copyFrom(other.buffList); - battleAvatarList.copyFrom(other.battleAvatarList); + roundsLimit = other.roundsLimit; monsterWaveList.copyFrom(other.monsterWaveList); + battleAvatarList.copyFrom(other.battleAvatarList); + buffList.copyFrom(other.buffList); eventBattleInfoList.copyFrom(other.eventBattleInfoList); battleTargetInfo.copyFrom(other.battleTargetInfo); } @@ -637,29 +637,29 @@ public final class SceneBattleInfoOuterClass { return this; } cachedSize = -1; + if (other.hasBattleId()) { + setBattleId(other.battleId); + } if (other.hasStageId()) { setStageId(other.stageId); } if (other.hasWorldLevel()) { setWorldLevel(other.worldLevel); } - if (other.hasRoundsLimit()) { - setRoundsLimit(other.roundsLimit); - } if (other.hasLogicRandomSeed()) { setLogicRandomSeed(other.logicRandomSeed); } - if (other.hasBattleId()) { - setBattleId(other.battleId); + if (other.hasRoundsLimit()) { + setRoundsLimit(other.roundsLimit); } - if (other.hasBuffList()) { - getMutableBuffList().addAll(other.buffList); + if (other.hasMonsterWaveList()) { + getMutableMonsterWaveList().addAll(other.monsterWaveList); } if (other.hasBattleAvatarList()) { getMutableBattleAvatarList().addAll(other.battleAvatarList); } - if (other.hasMonsterWaveList()) { - getMutableMonsterWaveList().addAll(other.monsterWaveList); + if (other.hasBuffList()) { + getMutableBuffList().addAll(other.buffList); } if (other.hasEventBattleInfoList()) { getMutableEventBattleInfoList().addAll(other.eventBattleInfoList); @@ -677,14 +677,14 @@ public final class SceneBattleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + battleId = 0; stageId = 0; worldLevel = 0; - roundsLimit = 0; logicRandomSeed = 0; - battleId = 0; - buffList.clear(); - battleAvatarList.clear(); + roundsLimit = 0; monsterWaveList.clear(); + battleAvatarList.clear(); + buffList.clear(); eventBattleInfoList.clear(); battleTargetInfo.clear(); return this; @@ -697,9 +697,9 @@ public final class SceneBattleInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - buffList.clearQuick(); - battleAvatarList.clearQuick(); monsterWaveList.clearQuick(); + battleAvatarList.clearQuick(); + buffList.clearQuick(); eventBattleInfoList.clearQuick(); battleTargetInfo.clearQuick(); return this; @@ -715,14 +715,14 @@ public final class SceneBattleInfoOuterClass { } SceneBattleInfo other = (SceneBattleInfo) o; return bitField0_ == other.bitField0_ + && (!hasBattleId() || battleId == other.battleId) && (!hasStageId() || stageId == other.stageId) && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasRoundsLimit() || roundsLimit == other.roundsLimit) && (!hasLogicRandomSeed() || logicRandomSeed == other.logicRandomSeed) - && (!hasBattleId() || battleId == other.battleId) - && (!hasBuffList() || buffList.equals(other.buffList)) - && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) + && (!hasRoundsLimit() || roundsLimit == other.roundsLimit) && (!hasMonsterWaveList() || monsterWaveList.equals(other.monsterWaveList)) + && (!hasBattleAvatarList() || battleAvatarList.equals(other.battleAvatarList)) + && (!hasBuffList() || buffList.equals(other.buffList)) && (!hasEventBattleInfoList() || eventBattleInfoList.equals(other.eventBattleInfoList)) && (!hasBattleTargetInfo() || battleTargetInfo.equals(other.battleTargetInfo)); } @@ -731,51 +731,51 @@ public final class SceneBattleInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 8); - output.writeUInt32NoTag(stageId); + output.writeUInt32NoTag(battleId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(worldLevel); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(roundsLimit); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(worldLevel); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(logicRandomSeed); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(battleId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(roundsLimit); } if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < buffList.length(); i++) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(buffList.get(i)); + for (int i = 0; i < monsterWaveList.length(); i++) { + output.writeRawByte((byte) 34); + output.writeMessageNoTag(monsterWaveList.get(i)); } } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < battleAvatarList.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 74); output.writeMessageNoTag(battleAvatarList.get(i)); } } if ((bitField0_ & 0x00000080) != 0) { - for (int i = 0; i < monsterWaveList.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(monsterWaveList.get(i)); + for (int i = 0; i < buffList.length(); i++) { + output.writeRawByte((byte) 106); + output.writeMessageNoTag(buffList.get(i)); } } if ((bitField0_ & 0x00000100) != 0) { for (int i = 0; i < eventBattleInfoList.length(); i++) { - output.writeRawLittleEndian16((short) 5258); + output.writeRawLittleEndian16((short) 3794); output.writeMessageNoTag(eventBattleInfoList.get(i)); } } if ((bitField0_ & 0x00000200) != 0) { for (int i = 0; i < battleTargetInfo.length(); i++) { - output.writeRawLittleEndian16((short) 14306); + output.writeRawLittleEndian16((short) 12234); output.writeMessageNoTag(battleTargetInfo.get(i)); } } @@ -785,28 +785,28 @@ public final class SceneBattleInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(roundsLimit); + size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(logicRandomSeed); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(battleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(roundsLimit); } if ((bitField0_ & 0x00000020) != 0) { - size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); + size += (1 * monsterWaveList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterWaveList); } if ((bitField0_ & 0x00000040) != 0) { size += (1 * battleAvatarList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(battleAvatarList); } if ((bitField0_ & 0x00000080) != 0) { - size += (1 * monsterWaveList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterWaveList); + size += (1 * buffList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(buffList); } if ((bitField0_ & 0x00000100) != 0) { size += (2 * eventBattleInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(eventBattleInfoList); @@ -825,8 +825,8 @@ public final class SceneBattleInfoOuterClass { while (true) { switch (tag) { case 8: { - // stageId - stageId = input.readUInt32(); + // battleId + battleId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 16) { @@ -834,74 +834,74 @@ public final class SceneBattleInfoOuterClass { } } case 16: { - // worldLevel - worldLevel = input.readUInt32(); + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { - // roundsLimit - roundsLimit = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 48) { break; } } case 48: { + // worldLevel + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { // logicRandomSeed logicRandomSeed = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 96) { + if (tag != 112) { break; } } - case 96: { - // battleId - battleId = input.readUInt32(); + case 112: { + // roundsLimit + roundsLimit = input.readUInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 42) { + if (tag != 34) { break; } } - case 42: { - // buffList - tag = input.readRepeatedMessage(buffList, tag); + case 34: { + // monsterWaveList + tag = input.readRepeatedMessage(monsterWaveList, tag); bitField0_ |= 0x00000020; - if (tag != 58) { + if (tag != 74) { break; } } - case 58: { + case 74: { // battleAvatarList tag = input.readRepeatedMessage(battleAvatarList, tag); bitField0_ |= 0x00000040; - if (tag != 114) { + if (tag != 106) { break; } } - case 114: { - // monsterWaveList - tag = input.readRepeatedMessage(monsterWaveList, tag); + case 106: { + // buffList + tag = input.readRepeatedMessage(buffList, tag); bitField0_ |= 0x00000080; - if (tag != 2570) { + if (tag != 1874) { break; } } - case 2570: { + case 1874: { // eventBattleInfoList tag = input.readRepeatedMessage(eventBattleInfoList, tag); bitField0_ |= 0x00000100; - if (tag != 7138) { + if (tag != 6090) { break; } } - case 7138: { + case 6090: { // battleTargetInfo tag = input.readRepeatedMessage(battleTargetInfo, tag); bitField0_ |= 0x00000200; @@ -927,28 +927,28 @@ public final class SceneBattleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.battleId, battleId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.worldLevel, worldLevel); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.roundsLimit, roundsLimit); + output.writeUInt32(FieldNames.worldLevel, worldLevel); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.logicRandomSeed, logicRandomSeed); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.battleId, battleId); + output.writeUInt32(FieldNames.roundsLimit, roundsLimit); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedMessage(FieldNames.buffList, buffList); + output.writeRepeatedMessage(FieldNames.monsterWaveList, monsterWaveList); } if ((bitField0_ & 0x00000040) != 0) { output.writeRepeatedMessage(FieldNames.battleAvatarList, battleAvatarList); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRepeatedMessage(FieldNames.monsterWaveList, monsterWaveList); + output.writeRepeatedMessage(FieldNames.buffList, buffList); } if ((bitField0_ & 0x00000100) != 0) { output.writeRepeatedMessage(FieldNames.eventBattleInfoList, eventBattleInfoList); @@ -966,12 +966,24 @@ public final class SceneBattleInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -1678308365: + case -487930366: { + if (input.isAtField(FieldNames.battleId)) { + if (!input.trySkipNullValue()) { + battleId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -1897528135: case 1306191356: { if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { stageId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -983,18 +995,6 @@ public final class SceneBattleInfoOuterClass { if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { worldLevel = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 306477590: - case 1457479585: { - if (input.isAtField(FieldNames.roundsLimit)) { - if (!input.trySkipNullValue()) { - roundsLimit = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1014,11 +1014,11 @@ public final class SceneBattleInfoOuterClass { } break; } - case -1678308365: - case -487930366: { - if (input.isAtField(FieldNames.battleId)) { + case 306477590: + case 1457479585: { + if (input.isAtField(FieldNames.roundsLimit)) { if (!input.trySkipNullValue()) { - battleId = input.readUInt32(); + roundsLimit = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -1026,11 +1026,11 @@ public final class SceneBattleInfoOuterClass { } break; } - case -1522789487: - case 55792906: { - if (input.isAtField(FieldNames.buffList)) { + case 697746737: + case -1492024321: { + if (input.isAtField(FieldNames.monsterWaveList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(buffList); + input.readRepeatedMessage(monsterWaveList); bitField0_ |= 0x00000020; } } else { @@ -1050,11 +1050,11 @@ public final class SceneBattleInfoOuterClass { } break; } - case 697746737: - case -1492024321: { - if (input.isAtField(FieldNames.monsterWaveList)) { + case -1522789487: + case 55792906: { + if (input.isAtField(FieldNames.buffList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(monsterWaveList); + input.readRepeatedMessage(buffList); bitField0_ |= 0x00000080; } } else { @@ -1486,21 +1486,21 @@ public final class SceneBattleInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - static final FieldName roundsLimit = FieldName.forField("roundsLimit", "rounds_limit"); - static final FieldName logicRandomSeed = FieldName.forField("logicRandomSeed", "logic_random_seed"); - static final FieldName battleId = FieldName.forField("battleId", "battle_id"); + static final FieldName roundsLimit = FieldName.forField("roundsLimit", "rounds_limit"); - static final FieldName buffList = FieldName.forField("buffList", "buff_list"); + static final FieldName monsterWaveList = FieldName.forField("monsterWaveList", "monster_wave_list"); static final FieldName battleAvatarList = FieldName.forField("battleAvatarList", "battle_avatar_list"); - static final FieldName monsterWaveList = FieldName.forField("monsterWaveList", "monster_wave_list"); + static final FieldName buffList = FieldName.forField("buffList", "buff_list"); static final FieldName eventBattleInfoList = FieldName.forField("eventBattleInfoList", "event_battle_info_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpCsReqOuterClass.java index 76f20c0..f0dc097 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpCsReqOuterClass.java @@ -19,19 +19,19 @@ public final class SceneCastSkillCostMpCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 attacked_group_id = 5; + * optional uint32 caster_id = 8; */ - private int attackedGroupId; + private int casterId; /** - * optional uint32 skill_index = 10; + * optional uint32 skill_index = 9; */ private int skillIndex; /** - * optional uint32 caster_id = 11; + * optional uint32 attacked_group_id = 15; */ - private int casterId; + private int attackedGroupId; private SceneCastSkillCostMpCsReq() { } @@ -44,44 +44,44 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } /** - * optional uint32 attacked_group_id = 5; - * @return whether the attackedGroupId field is set + * optional uint32 caster_id = 8; + * @return whether the casterId field is set */ - public boolean hasAttackedGroupId() { + public boolean hasCasterId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 attacked_group_id = 5; + * optional uint32 caster_id = 8; * @return this */ - public SceneCastSkillCostMpCsReq clearAttackedGroupId() { + public SceneCastSkillCostMpCsReq clearCasterId() { bitField0_ &= ~0x00000001; - attackedGroupId = 0; + casterId = 0; return this; } /** - * optional uint32 attacked_group_id = 5; - * @return the attackedGroupId + * optional uint32 caster_id = 8; + * @return the casterId */ - public int getAttackedGroupId() { - return attackedGroupId; + public int getCasterId() { + return casterId; } /** - * optional uint32 attacked_group_id = 5; - * @param value the attackedGroupId to set + * optional uint32 caster_id = 8; + * @param value the casterId to set * @return this */ - public SceneCastSkillCostMpCsReq setAttackedGroupId(final int value) { + public SceneCastSkillCostMpCsReq setCasterId(final int value) { bitField0_ |= 0x00000001; - attackedGroupId = value; + casterId = value; return this; } /** - * optional uint32 skill_index = 10; + * optional uint32 skill_index = 9; * @return whether the skillIndex field is set */ public boolean hasSkillIndex() { @@ -89,7 +89,7 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } /** - * optional uint32 skill_index = 10; + * optional uint32 skill_index = 9; * @return this */ public SceneCastSkillCostMpCsReq clearSkillIndex() { @@ -99,7 +99,7 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } /** - * optional uint32 skill_index = 10; + * optional uint32 skill_index = 9; * @return the skillIndex */ public int getSkillIndex() { @@ -107,7 +107,7 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } /** - * optional uint32 skill_index = 10; + * optional uint32 skill_index = 9; * @param value the skillIndex to set * @return this */ @@ -118,39 +118,39 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } /** - * optional uint32 caster_id = 11; - * @return whether the casterId field is set + * optional uint32 attacked_group_id = 15; + * @return whether the attackedGroupId field is set */ - public boolean hasCasterId() { + public boolean hasAttackedGroupId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 caster_id = 11; + * optional uint32 attacked_group_id = 15; * @return this */ - public SceneCastSkillCostMpCsReq clearCasterId() { + public SceneCastSkillCostMpCsReq clearAttackedGroupId() { bitField0_ &= ~0x00000004; - casterId = 0; + attackedGroupId = 0; return this; } /** - * optional uint32 caster_id = 11; - * @return the casterId + * optional uint32 attacked_group_id = 15; + * @return the attackedGroupId */ - public int getCasterId() { - return casterId; + public int getAttackedGroupId() { + return attackedGroupId; } /** - * optional uint32 caster_id = 11; - * @param value the casterId to set + * optional uint32 attacked_group_id = 15; + * @param value the attackedGroupId to set * @return this */ - public SceneCastSkillCostMpCsReq setCasterId(final int value) { + public SceneCastSkillCostMpCsReq setAttackedGroupId(final int value) { bitField0_ |= 0x00000004; - casterId = value; + attackedGroupId = value; return this; } @@ -159,9 +159,9 @@ public final class SceneCastSkillCostMpCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - attackedGroupId = other.attackedGroupId; - skillIndex = other.skillIndex; casterId = other.casterId; + skillIndex = other.skillIndex; + attackedGroupId = other.attackedGroupId; } return this; } @@ -172,14 +172,14 @@ public final class SceneCastSkillCostMpCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasAttackedGroupId()) { - setAttackedGroupId(other.attackedGroupId); + if (other.hasCasterId()) { + setCasterId(other.casterId); } if (other.hasSkillIndex()) { setSkillIndex(other.skillIndex); } - if (other.hasCasterId()) { - setCasterId(other.casterId); + if (other.hasAttackedGroupId()) { + setAttackedGroupId(other.attackedGroupId); } return this; } @@ -191,9 +191,9 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - attackedGroupId = 0; - skillIndex = 0; casterId = 0; + skillIndex = 0; + attackedGroupId = 0; return this; } @@ -217,24 +217,24 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } SceneCastSkillCostMpCsReq other = (SceneCastSkillCostMpCsReq) o; return bitField0_ == other.bitField0_ - && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasCasterId() || casterId == other.casterId) && (!hasSkillIndex() || skillIndex == other.skillIndex) - && (!hasCasterId() || casterId == other.casterId); + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(attackedGroupId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(casterId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(skillIndex); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(casterId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(attackedGroupId); } } @@ -242,13 +242,13 @@ public final class SceneCastSkillCostMpCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(casterId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(casterId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); } return size; } @@ -260,27 +260,27 @@ public final class SceneCastSkillCostMpCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // attackedGroupId - attackedGroupId = input.readUInt32(); + case 64: { + // casterId + casterId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 72) { break; } } - case 80: { + case 72: { // skillIndex skillIndex = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { + if (tag != 120) { break; } } - case 88: { - // casterId - casterId = input.readUInt32(); + case 120: { + // attackedGroupId + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public final class SceneCastSkillCostMpCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); + output.writeUInt32(FieldNames.casterId, casterId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.skillIndex, skillIndex); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.casterId, casterId); + output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); } output.endObject(); } @@ -323,11 +323,11 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1725961965: - case -715836621: { - if (input.isAtField(FieldNames.attackedGroupId)) { + case 35676775: + case 1106001422: { + if (input.isAtField(FieldNames.casterId)) { if (!input.trySkipNullValue()) { - attackedGroupId = input.readUInt32(); + casterId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -347,11 +347,11 @@ public final class SceneCastSkillCostMpCsReqOuterClass { } break; } - case 35676775: - case 1106001422: { - if (input.isAtField(FieldNames.casterId)) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { if (!input.trySkipNullValue()) { - casterId = input.readUInt32(); + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -412,11 +412,11 @@ public final class SceneCastSkillCostMpCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + static final FieldName casterId = FieldName.forField("casterId", "caster_id"); static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); - static final FieldName casterId = FieldName.forField("casterId", "caster_id"); + static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpScRspOuterClass.java index 023bb20..45ff5a6 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCostMpScRspOuterClass.java @@ -19,15 +19,15 @@ public final class SceneCastSkillCostMpScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 7; - */ - private int retcode; - - /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 8; */ private int attackedGroupId; + /** + * optional uint32 retcode = 10; + */ + private int retcode; + private SceneCastSkillCostMpScRsp() { } @@ -39,62 +39,25 @@ public final class SceneCastSkillCostMpScRspOuterClass { } /** - * optional uint32 retcode = 7; - * @return whether the retcode field is set + * optional uint32 attacked_group_id = 8; + * @return whether the attackedGroupId field is set */ - public boolean hasRetcode() { + public boolean hasAttackedGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 7; - * @return this - */ - public SceneCastSkillCostMpScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 7; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 7; - * @param value the retcode to set - * @return this - */ - public SceneCastSkillCostMpScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 attacked_group_id = 10; - * @return whether the attackedGroupId field is set - */ - public boolean hasAttackedGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 8; * @return this */ public SceneCastSkillCostMpScRsp clearAttackedGroupId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; attackedGroupId = 0; return this; } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 8; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -102,23 +65,60 @@ public final class SceneCastSkillCostMpScRspOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 8; * @param value the attackedGroupId to set * @return this */ public SceneCastSkillCostMpScRsp setAttackedGroupId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; attackedGroupId = value; return this; } + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public SceneCastSkillCostMpScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public SceneCastSkillCostMpScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + @Override public SceneCastSkillCostMpScRsp copyFrom(final SceneCastSkillCostMpScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; attackedGroupId = other.attackedGroupId; + retcode = other.retcode; } return this; } @@ -129,12 +129,12 @@ public final class SceneCastSkillCostMpScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasAttackedGroupId()) { setAttackedGroupId(other.attackedGroupId); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -145,8 +145,8 @@ public final class SceneCastSkillCostMpScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; attackedGroupId = 0; + retcode = 0; return this; } @@ -170,19 +170,19 @@ public final class SceneCastSkillCostMpScRspOuterClass { } SceneCastSkillCostMpScRsp other = (SceneCastSkillCostMpScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId); + && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); - output.writeUInt32NoTag(attackedGroupId); + output.writeUInt32NoTag(retcode); } } @@ -190,10 +190,10 @@ public final class SceneCastSkillCostMpScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -205,9 +205,9 @@ public final class SceneCastSkillCostMpScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // retcode - retcode = input.readUInt32(); + case 64: { + // attackedGroupId + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 80) { @@ -215,8 +215,8 @@ public final class SceneCastSkillCostMpScRspOuterClass { } } case 80: { - // attackedGroupId - attackedGroupId = input.readUInt32(); + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class SceneCastSkillCostMpScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -256,10 +256,11 @@ public final class SceneCastSkillCostMpScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -1725961965: + case -715836621: { + if (input.isAtField(FieldNames.attackedGroupId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public final class SceneCastSkillCostMpScRspOuterClass { } break; } - case -1725961965: - case -715836621: { - if (input.isAtField(FieldNames.attackedGroupId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - attackedGroupId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class SceneCastSkillCostMpScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java index f7ce302..60c1bce 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillCsReqOuterClass.java @@ -21,32 +21,32 @@ public final class SceneCastSkillCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 skill_index = 4; - */ - private int skillIndex; - - /** - * optional uint32 caster_id = 14; + * optional uint32 caster_id = 2; */ private int casterId; /** - * optional uint32 attacked_group_id = 15; + * optional uint32 attacked_group_id = 5; */ private int attackedGroupId; /** - * optional .MotionInfo target_motion = 5; + * optional uint32 skill_index = 8; + */ + private int skillIndex; + + /** + * optional .MotionInfo target_motion = 7; */ private final MotionInfoOuterClass.MotionInfo targetMotion = MotionInfoOuterClass.MotionInfo.newInstance(); /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; */ private final RepeatedInt hitTargetEntityIdList = RepeatedInt.newEmptyInstance(); /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; */ private final RepeatedMessage assistMonsterWaveList = RepeatedMessage.newEmptyInstance(AssistMonsterWaveOuterClass.AssistMonsterWave.getFactory()); @@ -61,62 +61,25 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional uint32 skill_index = 4; - * @return whether the skillIndex field is set + * optional uint32 caster_id = 2; + * @return whether the casterId field is set */ - public boolean hasSkillIndex() { + public boolean hasCasterId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 skill_index = 4; - * @return this - */ - public SceneCastSkillCsReq clearSkillIndex() { - bitField0_ &= ~0x00000001; - skillIndex = 0; - return this; - } - - /** - * optional uint32 skill_index = 4; - * @return the skillIndex - */ - public int getSkillIndex() { - return skillIndex; - } - - /** - * optional uint32 skill_index = 4; - * @param value the skillIndex to set - * @return this - */ - public SceneCastSkillCsReq setSkillIndex(final int value) { - bitField0_ |= 0x00000001; - skillIndex = value; - return this; - } - - /** - * optional uint32 caster_id = 14; - * @return whether the casterId field is set - */ - public boolean hasCasterId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 caster_id = 14; + * optional uint32 caster_id = 2; * @return this */ public SceneCastSkillCsReq clearCasterId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; casterId = 0; return this; } /** - * optional uint32 caster_id = 14; + * optional uint32 caster_id = 2; * @return the casterId */ public int getCasterId() { @@ -124,36 +87,36 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional uint32 caster_id = 14; + * optional uint32 caster_id = 2; * @param value the casterId to set * @return this */ public SceneCastSkillCsReq setCasterId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; casterId = value; return this; } /** - * optional uint32 attacked_group_id = 15; + * optional uint32 attacked_group_id = 5; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 attacked_group_id = 15; + * optional uint32 attacked_group_id = 5; * @return this */ public SceneCastSkillCsReq clearAttackedGroupId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; attackedGroupId = 0; return this; } /** - * optional uint32 attacked_group_id = 15; + * optional uint32 attacked_group_id = 5; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -161,18 +124,55 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional uint32 attacked_group_id = 15; + * optional uint32 attacked_group_id = 5; * @param value the attackedGroupId to set * @return this */ public SceneCastSkillCsReq setAttackedGroupId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; attackedGroupId = value; return this; } /** - * optional .MotionInfo target_motion = 5; + * optional uint32 skill_index = 8; + * @return whether the skillIndex field is set + */ + public boolean hasSkillIndex() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 skill_index = 8; + * @return this + */ + public SceneCastSkillCsReq clearSkillIndex() { + bitField0_ &= ~0x00000004; + skillIndex = 0; + return this; + } + + /** + * optional uint32 skill_index = 8; + * @return the skillIndex + */ + public int getSkillIndex() { + return skillIndex; + } + + /** + * optional uint32 skill_index = 8; + * @param value the skillIndex to set + * @return this + */ + public SceneCastSkillCsReq setSkillIndex(final int value) { + bitField0_ |= 0x00000004; + skillIndex = value; + return this; + } + + /** + * optional .MotionInfo target_motion = 7; * @return whether the targetMotion field is set */ public boolean hasTargetMotion() { @@ -180,7 +180,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * @return this */ public SceneCastSkillCsReq clearTargetMotion() { @@ -190,7 +190,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -204,7 +204,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -218,7 +218,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * optional .MotionInfo target_motion = 5; + * optional .MotionInfo target_motion = 7; * @param value the targetMotion to set * @return this */ @@ -229,7 +229,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; * @return whether the hitTargetEntityIdList field is set */ public boolean hasHitTargetEntityIdList() { @@ -237,7 +237,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; * @return this */ public SceneCastSkillCsReq clearHitTargetEntityIdList() { @@ -247,7 +247,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -261,7 +261,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -275,7 +275,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; * @param value the hitTargetEntityIdList to add * @return this */ @@ -286,7 +286,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated uint32 hit_target_entity_id_list = 10; + * repeated uint32 hit_target_entity_id_list = 9; * @param values the hitTargetEntityIdList to add * @return this */ @@ -297,7 +297,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; * @return whether the assistMonsterWaveList field is set */ public boolean hasAssistMonsterWaveList() { @@ -305,7 +305,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; * @return this */ public SceneCastSkillCsReq clearAssistMonsterWaveList() { @@ -315,7 +315,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -330,7 +330,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -345,7 +345,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; * @param value the assistMonsterWaveList to add * @return this */ @@ -357,7 +357,7 @@ public final class SceneCastSkillCsReqOuterClass { } /** - * repeated .AssistMonsterWave assist_monster_wave_list = 12; + * repeated .AssistMonsterWave assist_monster_wave_list = 3; * @param values the assistMonsterWaveList to add * @return this */ @@ -373,9 +373,9 @@ public final class SceneCastSkillCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - skillIndex = other.skillIndex; casterId = other.casterId; attackedGroupId = other.attackedGroupId; + skillIndex = other.skillIndex; targetMotion.copyFrom(other.targetMotion); hitTargetEntityIdList.copyFrom(other.hitTargetEntityIdList); assistMonsterWaveList.copyFrom(other.assistMonsterWaveList); @@ -389,15 +389,15 @@ public final class SceneCastSkillCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasSkillIndex()) { - setSkillIndex(other.skillIndex); - } if (other.hasCasterId()) { setCasterId(other.casterId); } if (other.hasAttackedGroupId()) { setAttackedGroupId(other.attackedGroupId); } + if (other.hasSkillIndex()) { + setSkillIndex(other.skillIndex); + } if (other.hasTargetMotion()) { getMutableTargetMotion().mergeFrom(other.targetMotion); } @@ -417,9 +417,9 @@ public final class SceneCastSkillCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - skillIndex = 0; casterId = 0; attackedGroupId = 0; + skillIndex = 0; targetMotion.clear(); hitTargetEntityIdList.clear(); assistMonsterWaveList.clear(); @@ -449,9 +449,9 @@ public final class SceneCastSkillCsReqOuterClass { } SceneCastSkillCsReq other = (SceneCastSkillCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSkillIndex() || skillIndex == other.skillIndex) && (!hasCasterId() || casterId == other.casterId) && (!hasAttackedGroupId() || attackedGroupId == other.attackedGroupId) + && (!hasSkillIndex() || skillIndex == other.skillIndex) && (!hasTargetMotion() || targetMotion.equals(other.targetMotion)) && (!hasHitTargetEntityIdList() || hitTargetEntityIdList.equals(other.hitTargetEntityIdList)) && (!hasAssistMonsterWaveList() || assistMonsterWaveList.equals(other.assistMonsterWaveList)); @@ -460,30 +460,30 @@ public final class SceneCastSkillCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(skillIndex); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(casterId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); output.writeUInt32NoTag(attackedGroupId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(skillIndex); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 58); output.writeMessageNoTag(targetMotion); } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < hitTargetEntityIdList.length(); i++) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(hitTargetEntityIdList.array()[i]); } } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < assistMonsterWaveList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 26); output.writeMessageNoTag(assistMonsterWaveList.get(i)); } } @@ -493,14 +493,14 @@ public final class SceneCastSkillCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(casterId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(attackedGroupId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(skillIndex); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(targetMotion); } @@ -520,52 +520,52 @@ public final class SceneCastSkillCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { - // skillIndex - skillIndex = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 16: { // casterId casterId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 40) { break; } } - case 120: { + case 40: { // attackedGroupId attackedGroupId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 42) { + if (tag != 64) { break; } } - case 42: { + case 64: { + // skillIndex + skillIndex = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { // targetMotion input.readMessage(targetMotion); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 82) { + if (tag != 74) { break; } } - case 82: { + case 74: { // hitTargetEntityIdList [packed=true] input.readPackedUInt32(hitTargetEntityIdList, tag); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 98) { + if (tag != 26) { break; } } - case 98: { + case 26: { // assistMonsterWaveList tag = input.readRepeatedMessage(assistMonsterWaveList, tag); bitField0_ |= 0x00000020; @@ -583,7 +583,7 @@ public final class SceneCastSkillCsReqOuterClass { tag = input.readTag(); break; } - case 80: { + case 72: { // hitTargetEntityIdList [packed=false] tag = input.readRepeatedUInt32(hitTargetEntityIdList, tag); bitField0_ |= 0x00000010; @@ -597,14 +597,14 @@ public final class SceneCastSkillCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.skillIndex, skillIndex); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.casterId, casterId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.attackedGroupId, attackedGroupId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.skillIndex, skillIndex); + } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.targetMotion, targetMotion); } @@ -624,24 +624,12 @@ public final class SceneCastSkillCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1587034369: - case -1716021916: { - if (input.isAtField(FieldNames.skillIndex)) { - if (!input.trySkipNullValue()) { - skillIndex = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 35676775: case 1106001422: { if (input.isAtField(FieldNames.casterId)) { if (!input.trySkipNullValue()) { casterId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -653,6 +641,18 @@ public final class SceneCastSkillCsReqOuterClass { if (input.isAtField(FieldNames.attackedGroupId)) { if (!input.trySkipNullValue()) { attackedGroupId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1587034369: + case -1716021916: { + if (input.isAtField(FieldNames.skillIndex)) { + if (!input.trySkipNullValue()) { + skillIndex = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -749,12 +749,12 @@ public final class SceneCastSkillCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); - static final FieldName casterId = FieldName.forField("casterId", "caster_id"); static final FieldName attackedGroupId = FieldName.forField("attackedGroupId", "attacked_group_id"); + static final FieldName skillIndex = FieldName.forField("skillIndex", "skill_index"); + static final FieldName targetMotion = FieldName.forField("targetMotion", "target_motion"); static final FieldName hitTargetEntityIdList = FieldName.forField("hitTargetEntityIdList", "hit_target_entity_id_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java index 2c055e5..3314dd7 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillMpUpdateScNotifyOuterClass.java @@ -19,12 +19,12 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 3; */ private int attackedGroupId; /** - * optional uint32 mp = 14; + * optional uint32 mp = 9; */ private int mp; @@ -39,7 +39,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 3; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { @@ -47,7 +47,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 3; * @return this */ public SceneCastSkillMpUpdateScNotify clearAttackedGroupId() { @@ -57,7 +57,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 3; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -65,7 +65,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 3; * @param value the attackedGroupId to set * @return this */ @@ -76,7 +76,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 14; + * optional uint32 mp = 9; * @return whether the mp field is set */ public boolean hasMp() { @@ -84,7 +84,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 14; + * optional uint32 mp = 9; * @return this */ public SceneCastSkillMpUpdateScNotify clearMp() { @@ -94,7 +94,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 14; + * optional uint32 mp = 9; * @return the mp */ public int getMp() { @@ -102,7 +102,7 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { } /** - * optional uint32 mp = 14; + * optional uint32 mp = 9; * @param value the mp to set * @return this */ @@ -177,11 +177,11 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(mp); } } @@ -205,16 +205,16 @@ public final class SceneCastSkillMpUpdateScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 24: { // attackedGroupId attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 72) { break; } } - case 112: { + case 72: { // mp mp = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java index 096e223..ef797bd 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneCastSkillScRspOuterClass.java @@ -19,17 +19,17 @@ public final class SceneCastSkillScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 4; */ private int attackedGroupId; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; */ private int retcode; /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 1; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -44,7 +44,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 4; * @return whether the attackedGroupId field is set */ public boolean hasAttackedGroupId() { @@ -52,7 +52,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 4; * @return this */ public SceneCastSkillScRsp clearAttackedGroupId() { @@ -62,7 +62,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 4; * @return the attackedGroupId */ public int getAttackedGroupId() { @@ -70,7 +70,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 attacked_group_id = 10; + * optional uint32 attacked_group_id = 4; * @param value the attackedGroupId to set * @return this */ @@ -81,7 +81,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +89,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return this */ public SceneCastSkillScRsp clearRetcode() { @@ -99,7 +99,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -107,7 +107,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ @@ -118,7 +118,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 1; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -126,7 +126,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 1; * @return this */ public SceneCastSkillScRsp clearBattleInfo() { @@ -136,7 +136,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class SceneCastSkillScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 13; + * optional .SceneBattleInfo battle_info = 1; * @param value the battleInfo to set * @return this */ @@ -247,15 +247,15 @@ public final class SceneCastSkillScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(attackedGroupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 10); output.writeMessageNoTag(battleInfo); } } @@ -282,25 +282,25 @@ public final class SceneCastSkillScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 32: { // attackedGroupId attackedGroupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 48) { break; } } - case 112: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 10) { break; } } - case 106: { + case 10: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEnterStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEnterStageCsReqOuterClass.java index 93a0e3c..2d46c04 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEnterStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEnterStageCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SceneEnterStageCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 9; */ private int stageId; @@ -34,7 +34,7 @@ public final class SceneEnterStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 9; * @return whether the stageId field is set */ public boolean hasStageId() { @@ -42,7 +42,7 @@ public final class SceneEnterStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 9; * @return this */ public SceneEnterStageCsReq clearStageId() { @@ -52,7 +52,7 @@ public final class SceneEnterStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 9; * @return the stageId */ public int getStageId() { @@ -60,7 +60,7 @@ public final class SceneEnterStageCsReqOuterClass { } /** - * optional uint32 stage_id = 4; + * optional uint32 stage_id = 9; * @param value the stageId to set * @return this */ @@ -129,7 +129,7 @@ public final class SceneEnterStageCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(stageId); } } @@ -150,7 +150,7 @@ public final class SceneEnterStageCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 72: { // stageId stageId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEnterStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEnterStageScRspOuterClass.java index 1a477ab..11e1a53 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEnterStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEnterStageScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SceneEnterStageScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; */ private int retcode; /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 1; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -39,7 +39,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @return this */ public SceneEnterStageScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 1; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -84,7 +84,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 1; * @return this */ public SceneEnterStageScRsp clearBattleInfo() { @@ -94,7 +94,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class SceneEnterStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 12; + * optional .SceneBattleInfo battle_info = 1; * @param value the battleInfo to set * @return this */ @@ -199,11 +199,11 @@ public final class SceneEnterStageScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 10); output.writeMessageNoTag(battleInfo); } } @@ -227,16 +227,16 @@ public final class SceneEnterStageScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 98) { + if (tag != 10) { break; } } - case 98: { + case 10: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java index b9ea012..7e87986 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityGroupInfoOuterClass.java @@ -11,6 +11,7 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; public final class SceneEntityGroupInfoOuterClass { /** @@ -20,17 +21,22 @@ public final class SceneEntityGroupInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 3; + * optional uint32 group_id = 2; */ private int groupId; /** - * optional uint32 state = 4; + * optional uint32 state = 15; */ private int state; /** - * repeated .SceneEntityInfo entity_list = 8; + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + */ + private final RepeatedMessage groupPropertyMap = RepeatedMessage.newEmptyInstance(GroupPropertyMapEntry.getFactory()); + + /** + * repeated .SceneEntityInfo entity_list = 12; */ private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); @@ -45,7 +51,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 3; + * optional uint32 group_id = 2; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -53,7 +59,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 3; + * optional uint32 group_id = 2; * @return this */ public SceneEntityGroupInfo clearGroupId() { @@ -63,7 +69,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 3; + * optional uint32 group_id = 2; * @return the groupId */ public int getGroupId() { @@ -71,7 +77,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 group_id = 3; + * optional uint32 group_id = 2; * @param value the groupId to set * @return this */ @@ -82,7 +88,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 4; + * optional uint32 state = 15; * @return whether the state field is set */ public boolean hasState() { @@ -90,7 +96,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 4; + * optional uint32 state = 15; * @return this */ public SceneEntityGroupInfo clearState() { @@ -100,7 +106,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 4; + * optional uint32 state = 15; * @return the state */ public int getState() { @@ -108,7 +114,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * optional uint32 state = 4; + * optional uint32 state = 15; * @param value the state to set * @return this */ @@ -119,25 +125,93 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 8; - * @return whether the entityList field is set + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + * @return whether the groupPropertyMap field is set */ - public boolean hasEntityList() { + public boolean hasGroupPropertyMap() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated .SceneEntityInfo entity_list = 8; + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + * @return this + */ + public SceneEntityGroupInfo clearGroupPropertyMap() { + bitField0_ &= ~0x00000004; + groupPropertyMap.clear(); + return this; + } + + /** + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGroupPropertyMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGroupPropertyMap() { + return groupPropertyMap; + } + + /** + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableGroupPropertyMap() { + bitField0_ |= 0x00000004; + return groupPropertyMap; + } + + /** + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + * @param value the groupPropertyMap to add + * @return this + */ + public SceneEntityGroupInfo addGroupPropertyMap(final GroupPropertyMapEntry value) { + bitField0_ |= 0x00000004; + groupPropertyMap.add(value); + return this; + } + + /** + * repeated .SceneEntityGroupInfo.GroupPropertyMapEntry group_property_map = 8; + * @param values the groupPropertyMap to add + * @return this + */ + public SceneEntityGroupInfo addAllGroupPropertyMap(final GroupPropertyMapEntry... values) { + bitField0_ |= 0x00000004; + groupPropertyMap.addAll(values); + return this; + } + + /** + * repeated .SceneEntityInfo entity_list = 12; + * @return whether the entityList field is set + */ + public boolean hasEntityList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated .SceneEntityInfo entity_list = 12; * @return this */ public SceneEntityGroupInfo clearEntityList() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; entityList.clear(); return this; } /** - * repeated .SceneEntityInfo entity_list = 8; + * repeated .SceneEntityInfo entity_list = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +225,7 @@ public final class SceneEntityGroupInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 8; + * repeated .SceneEntityInfo entity_list = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -160,30 +234,30 @@ public final class SceneEntityGroupInfoOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableEntityList() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return entityList; } /** - * repeated .SceneEntityInfo entity_list = 8; + * repeated .SceneEntityInfo entity_list = 12; * @param value the entityList to add * @return this */ public SceneEntityGroupInfo addEntityList( final SceneEntityInfoOuterClass.SceneEntityInfo value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; entityList.add(value); return this; } /** - * repeated .SceneEntityInfo entity_list = 8; + * repeated .SceneEntityInfo entity_list = 12; * @param values the entityList to add * @return this */ public SceneEntityGroupInfo addAllEntityList( final SceneEntityInfoOuterClass.SceneEntityInfo... values) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; entityList.addAll(values); return this; } @@ -195,6 +269,7 @@ public final class SceneEntityGroupInfoOuterClass { bitField0_ = other.bitField0_; groupId = other.groupId; state = other.state; + groupPropertyMap.copyFrom(other.groupPropertyMap); entityList.copyFrom(other.entityList); } return this; @@ -212,6 +287,9 @@ public final class SceneEntityGroupInfoOuterClass { if (other.hasState()) { setState(other.state); } + if (other.hasGroupPropertyMap()) { + getMutableGroupPropertyMap().addAll(other.groupPropertyMap); + } if (other.hasEntityList()) { getMutableEntityList().addAll(other.entityList); } @@ -227,6 +305,7 @@ public final class SceneEntityGroupInfoOuterClass { bitField0_ = 0; groupId = 0; state = 0; + groupPropertyMap.clear(); entityList.clear(); return this; } @@ -238,6 +317,7 @@ public final class SceneEntityGroupInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + groupPropertyMap.clearQuick(); entityList.clearQuick(); return this; } @@ -254,22 +334,29 @@ public final class SceneEntityGroupInfoOuterClass { return bitField0_ == other.bitField0_ && (!hasGroupId() || groupId == other.groupId) && (!hasState() || state == other.state) + && (!hasGroupPropertyMap() || groupPropertyMap.equals(other.groupPropertyMap)) && (!hasEntityList() || entityList.equals(other.entityList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(state); } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < entityList.length(); i++) { + for (int i = 0; i < groupPropertyMap.length(); i++) { output.writeRawByte((byte) 66); + output.writeMessageNoTag(groupPropertyMap.get(i)); + } + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < entityList.length(); i++) { + output.writeRawByte((byte) 98); output.writeMessageNoTag(entityList.get(i)); } } @@ -285,6 +372,9 @@ public final class SceneEntityGroupInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } if ((bitField0_ & 0x00000004) != 0) { + size += (1 * groupPropertyMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupPropertyMap); + } + if ((bitField0_ & 0x00000008) != 0) { size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); } return size; @@ -297,16 +387,16 @@ public final class SceneEntityGroupInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 16: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 120) { break; } } - case 32: { + case 120: { // state state = input.readUInt32(); bitField0_ |= 0x00000002; @@ -316,9 +406,17 @@ public final class SceneEntityGroupInfoOuterClass { } } case 66: { + // groupPropertyMap + tag = input.readRepeatedMessage(groupPropertyMap, tag); + bitField0_ |= 0x00000004; + if (tag != 98) { + break; + } + } + case 98: { // entityList tag = input.readRepeatedMessage(entityList, tag); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; if (tag != 0) { break; } @@ -347,6 +445,9 @@ public final class SceneEntityGroupInfoOuterClass { output.writeUInt32(FieldNames.state, state); } if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.groupPropertyMap, groupPropertyMap); + } + if ((bitField0_ & 0x00000008) != 0) { output.writeRepeatedMessage(FieldNames.entityList, entityList); } output.endObject(); @@ -382,12 +483,24 @@ public final class SceneEntityGroupInfoOuterClass { } break; } + case -931201208: + case 33749426: { + if (input.isAtField(FieldNames.groupPropertyMap)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(groupPropertyMap); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -1483251935: case 1281457018: { if (input.isAtField(FieldNames.entityList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(entityList); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -434,6 +547,360 @@ public final class SceneEntityGroupInfoOuterClass { return SceneEntityGroupInfoFactory.INSTANCE; } + /** + * Protobuf type {@code GroupPropertyMapEntry} + */ + public static final class GroupPropertyMapEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional sint32 value = 2; + */ + private int value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private GroupPropertyMapEntry() { + } + + /** + * @return a new empty instance of {@code GroupPropertyMapEntry} + */ + public static GroupPropertyMapEntry newInstance() { + return new GroupPropertyMapEntry(); + } + + /** + * optional sint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional sint32 value = 2; + * @return this + */ + public GroupPropertyMapEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional sint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional sint32 value = 2; + * @param value the value_ to set + * @return this + */ + public GroupPropertyMapEntry setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public GroupPropertyMapEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public GroupPropertyMapEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public GroupPropertyMapEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public GroupPropertyMapEntry copyFrom(final GroupPropertyMapEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public GroupPropertyMapEntry mergeFrom(final GroupPropertyMapEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public GroupPropertyMapEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + key.clear(); + return this; + } + + @Override + public GroupPropertyMapEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof GroupPropertyMapEntry)) { + return false; + } + GroupPropertyMapEntry other = (GroupPropertyMapEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeSInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public GroupPropertyMapEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readSInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeSInt32(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public GroupPropertyMapEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readSInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public GroupPropertyMapEntry clone() { + return new GroupPropertyMapEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static GroupPropertyMapEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new GroupPropertyMapEntry(), data).checkInitialized(); + } + + public static GroupPropertyMapEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new GroupPropertyMapEntry(), input).checkInitialized(); + } + + public static GroupPropertyMapEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new GroupPropertyMapEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating GroupPropertyMapEntry messages + */ + public static MessageFactory getFactory() { + return GroupPropertyMapEntryFactory.INSTANCE; + } + + private enum GroupPropertyMapEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public GroupPropertyMapEntry create() { + return GroupPropertyMapEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + private enum SceneEntityGroupInfoFactory implements MessageFactory { INSTANCE; @@ -451,6 +918,8 @@ public final class SceneEntityGroupInfoOuterClass { static final FieldName state = FieldName.forField("state"); + static final FieldName groupPropertyMap = FieldName.forField("groupPropertyMap", "group_property_map"); + static final FieldName entityList = FieldName.forField("entityList", "entity_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java index 99cc0f0..f162618 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityInfoOuterClass.java @@ -19,50 +19,54 @@ public final class SceneEntityInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 4; - */ - private int entityId; - - /** - * optional uint32 group_id = 9; - */ - private int groupId; - - /** - * optional uint32 inst_id = 13; + * optional uint32 inst_id = 4; */ private int instId; /** - * optional .MotionInfo motion = 1; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; */ - private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + private int groupId; /** - * optional .ScenePropInfo prop = 8; + * optional uint32 entity_id = 14; */ - private final ScenePropInfoOuterClass.ScenePropInfo prop = ScenePropInfoOuterClass.ScenePropInfo.newInstance(); + private int entityId; /** - * optional .SceneActorInfo actor = 10; + * optional .SceneActorInfo actor = 1; */ private final SceneActorInfoOuterClass.SceneActorInfo actor = SceneActorInfoOuterClass.SceneActorInfo.newInstance(); /** - * optional .SceneNpcInfo npc = 11; + * optional .ScenePropInfo prop = 3; + */ + private final ScenePropInfoOuterClass.ScenePropInfo prop = ScenePropInfoOuterClass.ScenePropInfo.newInstance(); + + /** + * optional .SceneNpcInfo npc = 8; */ private final SceneNpcInfoOuterClass.SceneNpcInfo npc = SceneNpcInfoOuterClass.SceneNpcInfo.newInstance(); /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; */ private final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo npcMonster = SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo.newInstance(); /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneSummonUnitInfo summon_unit = 11; */ private final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo summonUnit = SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo.newInstance(); + /** + * optional .MotionInfo motion = 12; + */ + private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); + private SceneEntityInfo() { } @@ -74,44 +78,48 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 entity_id = 4; - * @return whether the entityId field is set + * optional uint32 inst_id = 4; + * @return whether the instId field is set */ - public boolean hasEntityId() { + public boolean hasInstId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 4; + * optional uint32 inst_id = 4; * @return this */ - public SceneEntityInfo clearEntityId() { + public SceneEntityInfo clearInstId() { bitField0_ &= ~0x00000001; - entityId = 0; + instId = 0; return this; } /** - * optional uint32 entity_id = 4; - * @return the entityId + * optional uint32 inst_id = 4; + * @return the instId */ - public int getEntityId() { - return entityId; + public int getInstId() { + return instId; } /** - * optional uint32 entity_id = 4; - * @param value the entityId to set + * optional uint32 inst_id = 4; + * @param value the instId to set * @return this */ - public SceneEntityInfo setEntityId(final int value) { + public SceneEntityInfo setInstId(final int value) { bitField0_ |= 0x00000001; - entityId = value; + instId = value; return this; } /** - * optional uint32 group_id = 9; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -119,7 +127,11 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 group_id = 9; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @return this */ public SceneEntityInfo clearGroupId() { @@ -129,7 +141,11 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 group_id = 9; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @return the groupId */ public int getGroupId() { @@ -137,7 +153,11 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 group_id = 9; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @param value the groupId to set * @return this */ @@ -148,176 +168,62 @@ public final class SceneEntityInfoOuterClass { } /** - * optional uint32 inst_id = 13; - * @return whether the instId field is set + * optional uint32 entity_id = 14; + * @return whether the entityId field is set */ - public boolean hasInstId() { + public boolean hasEntityId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 inst_id = 13; + * optional uint32 entity_id = 14; * @return this */ - public SceneEntityInfo clearInstId() { + public SceneEntityInfo clearEntityId() { bitField0_ &= ~0x00000004; - instId = 0; + entityId = 0; return this; } /** - * optional uint32 inst_id = 13; - * @return the instId + * optional uint32 entity_id = 14; + * @return the entityId */ - public int getInstId() { - return instId; + public int getEntityId() { + return entityId; } /** - * optional uint32 inst_id = 13; - * @param value the instId to set + * optional uint32 entity_id = 14; + * @param value the entityId to set * @return this */ - public SceneEntityInfo setInstId(final int value) { + public SceneEntityInfo setEntityId(final int value) { bitField0_ |= 0x00000004; - instId = value; + entityId = value; return this; } /** - * optional .MotionInfo motion = 1; - * @return whether the motion field is set + * optional .SceneActorInfo actor = 1; + * @return whether the actor field is set */ - public boolean hasMotion() { + public boolean hasActor() { return (bitField0_ & 0x00000008) != 0; } /** - * optional .MotionInfo motion = 1; - * @return this - */ - public SceneEntityInfo clearMotion() { - bitField0_ &= ~0x00000008; - motion.clear(); - return this; - } - - /** - * optional .MotionInfo motion = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMotion()} if you want to modify it. - * - * @return internal storage object for reading - */ - public MotionInfoOuterClass.MotionInfo getMotion() { - return motion; - } - - /** - * optional .MotionInfo motion = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public MotionInfoOuterClass.MotionInfo getMutableMotion() { - bitField0_ |= 0x00000008; - return motion; - } - - /** - * optional .MotionInfo motion = 1; - * @param value the motion to set - * @return this - */ - public SceneEntityInfo setMotion(final MotionInfoOuterClass.MotionInfo value) { - bitField0_ |= 0x00000008; - motion.copyFrom(value); - return this; - } - - /** - * optional .ScenePropInfo prop = 8; - * @return whether the prop field is set - */ - public boolean hasProp() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .ScenePropInfo prop = 8; - * @return this - */ - public SceneEntityInfo clearProp() { - bitField0_ &= ~0x00000010; - prop.clear(); - return this; - } - - /** - * optional .ScenePropInfo prop = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableProp()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ScenePropInfoOuterClass.ScenePropInfo getProp() { - return prop; - } - - /** - * optional .ScenePropInfo prop = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ScenePropInfoOuterClass.ScenePropInfo getMutableProp() { - bitField0_ |= 0x00000010; - return prop; - } - - /** - * optional .ScenePropInfo prop = 8; - * @param value the prop to set - * @return this - */ - public SceneEntityInfo setProp(final ScenePropInfoOuterClass.ScenePropInfo value) { - bitField0_ |= 0x00000010; - prop.copyFrom(value); - return this; - } - - /** - * optional .SceneActorInfo actor = 10; - * @return whether the actor field is set - */ - public boolean hasActor() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * optional .SceneActorInfo actor = 10; + * optional .SceneActorInfo actor = 1; * @return this */ public SceneEntityInfo clearActor() { - bitField0_ &= ~0x00000020; + bitField0_ &= ~0x00000008; actor.clear(); return this; } /** - * optional .SceneActorInfo actor = 10; + * optional .SceneActorInfo actor = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -331,7 +237,7 @@ public final class SceneEntityInfoOuterClass { } /** - * optional .SceneActorInfo actor = 10; + * optional .SceneActorInfo actor = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -340,41 +246,98 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public SceneActorInfoOuterClass.SceneActorInfo getMutableActor() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; return actor; } /** - * optional .SceneActorInfo actor = 10; + * optional .SceneActorInfo actor = 1; * @param value the actor to set * @return this */ public SceneEntityInfo setActor(final SceneActorInfoOuterClass.SceneActorInfo value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; actor.copyFrom(value); return this; } /** - * optional .SceneNpcInfo npc = 11; - * @return whether the npc field is set + * optional .ScenePropInfo prop = 3; + * @return whether the prop field is set */ - public boolean hasNpc() { - return (bitField0_ & 0x00000040) != 0; + public boolean hasProp() { + return (bitField0_ & 0x00000010) != 0; } /** - * optional .SceneNpcInfo npc = 11; + * optional .ScenePropInfo prop = 3; + * @return this + */ + public SceneEntityInfo clearProp() { + bitField0_ &= ~0x00000010; + prop.clear(); + return this; + } + + /** + * optional .ScenePropInfo prop = 3; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableProp()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ScenePropInfoOuterClass.ScenePropInfo getProp() { + return prop; + } + + /** + * optional .ScenePropInfo prop = 3; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ScenePropInfoOuterClass.ScenePropInfo getMutableProp() { + bitField0_ |= 0x00000010; + return prop; + } + + /** + * optional .ScenePropInfo prop = 3; + * @param value the prop to set + * @return this + */ + public SceneEntityInfo setProp(final ScenePropInfoOuterClass.ScenePropInfo value) { + bitField0_ |= 0x00000010; + prop.copyFrom(value); + return this; + } + + /** + * optional .SceneNpcInfo npc = 8; + * @return whether the npc field is set + */ + public boolean hasNpc() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .SceneNpcInfo npc = 8; * @return this */ public SceneEntityInfo clearNpc() { - bitField0_ &= ~0x00000040; + bitField0_ &= ~0x00000020; npc.clear(); return this; } /** - * optional .SceneNpcInfo npc = 11; + * optional .SceneNpcInfo npc = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -388,7 +351,7 @@ public final class SceneEntityInfoOuterClass { } /** - * optional .SceneNpcInfo npc = 11; + * optional .SceneNpcInfo npc = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -397,41 +360,41 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public SceneNpcInfoOuterClass.SceneNpcInfo getMutableNpc() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; return npc; } /** - * optional .SceneNpcInfo npc = 11; + * optional .SceneNpcInfo npc = 8; * @param value the npc to set * @return this */ public SceneEntityInfo setNpc(final SceneNpcInfoOuterClass.SceneNpcInfo value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; npc.copyFrom(value); return this; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * @return whether the npcMonster field is set */ public boolean hasNpcMonster() { - return (bitField0_ & 0x00000080) != 0; + return (bitField0_ & 0x00000040) != 0; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * @return this */ public SceneEntityInfo clearNpcMonster() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000040; npcMonster.clear(); return this; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -445,7 +408,7 @@ public final class SceneEntityInfoOuterClass { } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -454,42 +417,42 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo getMutableNpcMonster() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; return npcMonster; } /** - * optional .SceneNpcMonsterInfo npc_monster = 14; + * optional .SceneNpcMonsterInfo npc_monster = 9; * @param value the npcMonster to set * @return this */ public SceneEntityInfo setNpcMonster( final SceneNpcMonsterInfoOuterClass.SceneNpcMonsterInfo value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; npcMonster.copyFrom(value); return this; } /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneSummonUnitInfo summon_unit = 11; * @return whether the summonUnit field is set */ public boolean hasSummonUnit() { - return (bitField0_ & 0x00000100) != 0; + return (bitField0_ & 0x00000080) != 0; } /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneSummonUnitInfo summon_unit = 11; * @return this */ public SceneEntityInfo clearSummonUnit() { - bitField0_ &= ~0x00000100; + bitField0_ &= ~0x00000080; summonUnit.clear(); return this; } /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneSummonUnitInfo summon_unit = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -503,7 +466,7 @@ public final class SceneEntityInfoOuterClass { } /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneSummonUnitInfo summon_unit = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -512,36 +475,93 @@ public final class SceneEntityInfoOuterClass { * @return internal storage object for modifications */ public SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo getMutableSummonUnit() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return summonUnit; } /** - * optional .SceneSummonUnitInfo summon_unit = 15; + * optional .SceneSummonUnitInfo summon_unit = 11; * @param value the summonUnit to set * @return this */ public SceneEntityInfo setSummonUnit( final SceneSummonUnitInfoOuterClass.SceneSummonUnitInfo value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; summonUnit.copyFrom(value); return this; } + /** + * optional .MotionInfo motion = 12; + * @return whether the motion field is set + */ + public boolean hasMotion() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional .MotionInfo motion = 12; + * @return this + */ + public SceneEntityInfo clearMotion() { + bitField0_ &= ~0x00000100; + motion.clear(); + return this; + } + + /** + * optional .MotionInfo motion = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMotion()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getMotion() { + return motion; + } + + /** + * optional .MotionInfo motion = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MotionInfoOuterClass.MotionInfo getMutableMotion() { + bitField0_ |= 0x00000100; + return motion; + } + + /** + * optional .MotionInfo motion = 12; + * @param value the motion to set + * @return this + */ + public SceneEntityInfo setMotion(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000100; + motion.copyFrom(value); + return this; + } + @Override public SceneEntityInfo copyFrom(final SceneEntityInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; - groupId = other.groupId; instId = other.instId; - motion.copyFrom(other.motion); - prop.copyFrom(other.prop); + groupId = other.groupId; + entityId = other.entityId; actor.copyFrom(other.actor); + prop.copyFrom(other.prop); npc.copyFrom(other.npc); npcMonster.copyFrom(other.npcMonster); summonUnit.copyFrom(other.summonUnit); + motion.copyFrom(other.motion); } return this; } @@ -552,24 +572,21 @@ public final class SceneEntityInfoOuterClass { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); + if (other.hasInstId()) { + setInstId(other.instId); } if (other.hasGroupId()) { setGroupId(other.groupId); } - if (other.hasInstId()) { - setInstId(other.instId); - } - if (other.hasMotion()) { - getMutableMotion().mergeFrom(other.motion); - } - if (other.hasProp()) { - getMutableProp().mergeFrom(other.prop); + if (other.hasEntityId()) { + setEntityId(other.entityId); } if (other.hasActor()) { getMutableActor().mergeFrom(other.actor); } + if (other.hasProp()) { + getMutableProp().mergeFrom(other.prop); + } if (other.hasNpc()) { getMutableNpc().mergeFrom(other.npc); } @@ -579,6 +596,9 @@ public final class SceneEntityInfoOuterClass { if (other.hasSummonUnit()) { getMutableSummonUnit().mergeFrom(other.summonUnit); } + if (other.hasMotion()) { + getMutableMotion().mergeFrom(other.motion); + } return this; } @@ -589,15 +609,15 @@ public final class SceneEntityInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - entityId = 0; - groupId = 0; instId = 0; - motion.clear(); - prop.clear(); + groupId = 0; + entityId = 0; actor.clear(); + prop.clear(); npc.clear(); npcMonster.clear(); summonUnit.clear(); + motion.clear(); return this; } @@ -608,12 +628,12 @@ public final class SceneEntityInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - motion.clearQuick(); - prop.clearQuick(); actor.clearQuick(); + prop.clearQuick(); npc.clearQuick(); npcMonster.clearQuick(); summonUnit.clearQuick(); + motion.clearQuick(); return this; } @@ -627,87 +647,87 @@ public final class SceneEntityInfoOuterClass { } SceneEntityInfo other = (SceneEntityInfo) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId) - && (!hasGroupId() || groupId == other.groupId) && (!hasInstId() || instId == other.instId) - && (!hasMotion() || motion.equals(other.motion)) - && (!hasProp() || prop.equals(other.prop)) + && (!hasGroupId() || groupId == other.groupId) + && (!hasEntityId() || entityId == other.entityId) && (!hasActor() || actor.equals(other.actor)) + && (!hasProp() || prop.equals(other.prop)) && (!hasNpc() || npc.equals(other.npc)) && (!hasNpcMonster() || npcMonster.equals(other.npcMonster)) - && (!hasSummonUnit() || summonUnit.equals(other.summonUnit)); + && (!hasSummonUnit() || summonUnit.equals(other.summonUnit)) + && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(entityId); + output.writeUInt32NoTag(instId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(instId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(entityId); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 10); - output.writeMessageNoTag(motion); + output.writeMessageNoTag(actor); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 26); output.writeMessageNoTag(prop); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(actor); - } - if ((bitField0_ & 0x00000040) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 66); output.writeMessageNoTag(npc); } - if ((bitField0_ & 0x00000080) != 0) { - output.writeRawByte((byte) 114); + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 74); output.writeMessageNoTag(npcMonster); } - if ((bitField0_ & 0x00000100) != 0) { - output.writeRawByte((byte) 122); + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 90); output.writeMessageNoTag(summonUnit); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(motion); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(instId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(instId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + size += 1 + ProtoSink.computeMessageSizeNoTag(actor); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(prop); } if ((bitField0_ & 0x00000020) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(actor); - } - if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(npc); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000040) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(npcMonster); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000080) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(summonUnit); } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(motion); + } return size; } @@ -719,26 +739,26 @@ public final class SceneEntityInfoOuterClass { while (true) { switch (tag) { case 32: { - // entityId - entityId = input.readUInt32(); + // instId + instId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // instId - instId = input.readUInt32(); + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // entityId + entityId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 10) { @@ -746,53 +766,53 @@ public final class SceneEntityInfoOuterClass { } } case 10: { - // motion - input.readMessage(motion); + // actor + input.readMessage(actor); bitField0_ |= 0x00000008; tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { + // prop + input.readMessage(prop); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 66) { break; } } case 66: { - // prop - input.readMessage(prop); - bitField0_ |= 0x00000010; + // npc + input.readMessage(npc); + bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 82) { + if (tag != 74) { break; } } - case 82: { - // actor - input.readMessage(actor); - bitField0_ |= 0x00000020; + case 74: { + // npcMonster + input.readMessage(npcMonster); + bitField0_ |= 0x00000040; tag = input.readTag(); if (tag != 90) { break; } } case 90: { - // npc - input.readMessage(npc); - bitField0_ |= 0x00000040; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // npcMonster - input.readMessage(npcMonster); - bitField0_ |= 0x00000080; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { // summonUnit input.readMessage(summonUnit); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { + // motion + input.readMessage(motion); bitField0_ |= 0x00000100; tag = input.readTag(); if (tag != 0) { @@ -817,32 +837,32 @@ public final class SceneEntityInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.instId, instId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.instId, instId); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.motion, motion); + output.writeMessage(FieldNames.actor, actor); } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.prop, prop); } if ((bitField0_ & 0x00000020) != 0) { - output.writeMessage(FieldNames.actor, actor); - } - if ((bitField0_ & 0x00000040) != 0) { output.writeMessage(FieldNames.npc, npc); } - if ((bitField0_ & 0x00000080) != 0) { + if ((bitField0_ & 0x00000040) != 0) { output.writeMessage(FieldNames.npcMonster, npcMonster); } - if ((bitField0_ & 0x00000100) != 0) { + if ((bitField0_ & 0x00000080) != 0) { output.writeMessage(FieldNames.summonUnit, summonUnit); } + if ((bitField0_ & 0x00000100) != 0) { + output.writeMessage(FieldNames.motion, motion); + } output.endObject(); } @@ -853,11 +873,11 @@ public final class SceneEntityInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case -1183779327: + case 1957567924: { + if (input.isAtField(FieldNames.instId)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + instId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -877,11 +897,11 @@ public final class SceneEntityInfoOuterClass { } break; } - case -1183779327: - case 1957567924: { - if (input.isAtField(FieldNames.instId)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - instId = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -889,10 +909,10 @@ public final class SceneEntityInfoOuterClass { } break; } - case -1068318794: { - if (input.isAtField(FieldNames.motion)) { + case 92645877: { + if (input.isAtField(FieldNames.actor)) { if (!input.trySkipNullValue()) { - input.readMessage(motion); + input.readMessage(actor); bitField0_ |= 0x00000008; } } else { @@ -911,22 +931,11 @@ public final class SceneEntityInfoOuterClass { } break; } - case 92645877: { - if (input.isAtField(FieldNames.actor)) { - if (!input.trySkipNullValue()) { - input.readMessage(actor); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } case 109281: { if (input.isAtField(FieldNames.npc)) { if (!input.trySkipNullValue()) { input.readMessage(npc); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; } } else { input.skipUnknownField(); @@ -938,7 +947,7 @@ public final class SceneEntityInfoOuterClass { if (input.isAtField(FieldNames.npcMonster)) { if (!input.trySkipNullValue()) { input.readMessage(npcMonster); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; } } else { input.skipUnknownField(); @@ -950,6 +959,17 @@ public final class SceneEntityInfoOuterClass { if (input.isAtField(FieldNames.summonUnit)) { if (!input.trySkipNullValue()) { input.readMessage(summonUnit); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1068318794: { + if (input.isAtField(FieldNames.motion)) { + if (!input.trySkipNullValue()) { + input.readMessage(motion); bitField0_ |= 0x00000100; } } else { @@ -1010,23 +1030,23 @@ public final class SceneEntityInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName instId = FieldName.forField("instId", "inst_id"); static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName instId = FieldName.forField("instId", "inst_id"); - - static final FieldName motion = FieldName.forField("motion"); - - static final FieldName prop = FieldName.forField("prop"); + static final FieldName entityId = FieldName.forField("entityId", "entity_id"); static final FieldName actor = FieldName.forField("actor"); + static final FieldName prop = FieldName.forField("prop"); + static final FieldName npc = FieldName.forField("npc"); static final FieldName npcMonster = FieldName.forField("npcMonster", "npc_monster"); static final FieldName summonUnit = FieldName.forField("summonUnit", "summon_unit"); + + static final FieldName motion = FieldName.forField("motion"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java index 328b898..36919bd 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveCsReqOuterClass.java @@ -25,7 +25,7 @@ public final class SceneEntityMoveCsReqOuterClass { private int entryId; /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; */ private final RepeatedMessage entityMotionList = RepeatedMessage.newEmptyInstance(EntityMotionOuterClass.EntityMotion.getFactory()); @@ -77,7 +77,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; * @return whether the entityMotionList field is set */ public boolean hasEntityMotionList() { @@ -85,7 +85,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; * @return this */ public SceneEntityMoveCsReq clearEntityMotionList() { @@ -95,7 +95,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; * @param value the entityMotionList to add * @return this */ @@ -135,7 +135,7 @@ public final class SceneEntityMoveCsReqOuterClass { } /** - * repeated .EntityMotion entity_motion_list = 15; + * repeated .EntityMotion entity_motion_list = 10; * @param values the entityMotionList to add * @return this */ @@ -217,7 +217,7 @@ public final class SceneEntityMoveCsReqOuterClass { } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < entityMotionList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 82); output.writeMessageNoTag(entityMotionList.get(i)); } } @@ -247,11 +247,11 @@ public final class SceneEntityMoveCsReqOuterClass { entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 82) { break; } } - case 122: { + case 82: { // entityMotionList tag = input.readRepeatedMessage(entityMotionList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java index ce21e19..f5c5c6c 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityMoveScNotifyOuterClass.java @@ -19,22 +19,22 @@ public final class SceneEntityMoveScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entry_id = 7; + * optional uint32 entry_id = 5; */ private int entryId; /** - * optional uint32 client_pos_version = 9; - */ - private int clientPosVersion; - - /** - * optional uint32 entity_id = 10; + * optional uint32 entity_id = 13; */ private int entityId; /** - * optional .MotionInfo motion = 15; + * optional uint32 client_pos_version = 15; + */ + private int clientPosVersion; + + /** + * optional .MotionInfo motion = 4; */ private final MotionInfoOuterClass.MotionInfo motion = MotionInfoOuterClass.MotionInfo.newInstance(); @@ -49,7 +49,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entry_id = 7; + * optional uint32 entry_id = 5; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -57,7 +57,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entry_id = 7; + * optional uint32 entry_id = 5; * @return this */ public SceneEntityMoveScNotify clearEntryId() { @@ -67,7 +67,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entry_id = 7; + * optional uint32 entry_id = 5; * @return the entryId */ public int getEntryId() { @@ -75,7 +75,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entry_id = 7; + * optional uint32 entry_id = 5; * @param value the entryId to set * @return this */ @@ -86,62 +86,25 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 client_pos_version = 9; - * @return whether the clientPosVersion field is set + * optional uint32 entity_id = 13; + * @return whether the entityId field is set */ - public boolean hasClientPosVersion() { + public boolean hasEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 client_pos_version = 9; - * @return this - */ - public SceneEntityMoveScNotify clearClientPosVersion() { - bitField0_ &= ~0x00000002; - clientPosVersion = 0; - return this; - } - - /** - * optional uint32 client_pos_version = 9; - * @return the clientPosVersion - */ - public int getClientPosVersion() { - return clientPosVersion; - } - - /** - * optional uint32 client_pos_version = 9; - * @param value the clientPosVersion to set - * @return this - */ - public SceneEntityMoveScNotify setClientPosVersion(final int value) { - bitField0_ |= 0x00000002; - clientPosVersion = value; - return this; - } - - /** - * optional uint32 entity_id = 10; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 entity_id = 10; + * optional uint32 entity_id = 13; * @return this */ public SceneEntityMoveScNotify clearEntityId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; entityId = 0; return this; } /** - * optional uint32 entity_id = 10; + * optional uint32 entity_id = 13; * @return the entityId */ public int getEntityId() { @@ -149,18 +112,55 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional uint32 entity_id = 10; + * optional uint32 entity_id = 13; * @param value the entityId to set * @return this */ public SceneEntityMoveScNotify setEntityId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; entityId = value; return this; } /** - * optional .MotionInfo motion = 15; + * optional uint32 client_pos_version = 15; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 client_pos_version = 15; + * @return this + */ + public SceneEntityMoveScNotify clearClientPosVersion() { + bitField0_ &= ~0x00000004; + clientPosVersion = 0; + return this; + } + + /** + * optional uint32 client_pos_version = 15; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + * optional uint32 client_pos_version = 15; + * @param value the clientPosVersion to set + * @return this + */ + public SceneEntityMoveScNotify setClientPosVersion(final int value) { + bitField0_ |= 0x00000004; + clientPosVersion = value; + return this; + } + + /** + * optional .MotionInfo motion = 4; * @return whether the motion field is set */ public boolean hasMotion() { @@ -168,7 +168,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 15; + * optional .MotionInfo motion = 4; * @return this */ public SceneEntityMoveScNotify clearMotion() { @@ -178,7 +178,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 15; + * optional .MotionInfo motion = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 15; + * optional .MotionInfo motion = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public final class SceneEntityMoveScNotifyOuterClass { } /** - * optional .MotionInfo motion = 15; + * optional .MotionInfo motion = 4; * @param value the motion to set * @return this */ @@ -222,8 +222,8 @@ public final class SceneEntityMoveScNotifyOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; entryId = other.entryId; - clientPosVersion = other.clientPosVersion; entityId = other.entityId; + clientPosVersion = other.clientPosVersion; motion.copyFrom(other.motion); } return this; @@ -238,12 +238,12 @@ public final class SceneEntityMoveScNotifyOuterClass { if (other.hasEntryId()) { setEntryId(other.entryId); } - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); - } if (other.hasEntityId()) { setEntityId(other.entityId); } + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } if (other.hasMotion()) { getMutableMotion().mergeFrom(other.motion); } @@ -258,8 +258,8 @@ public final class SceneEntityMoveScNotifyOuterClass { cachedSize = -1; bitField0_ = 0; entryId = 0; - clientPosVersion = 0; entityId = 0; + clientPosVersion = 0; motion.clear(); return this; } @@ -286,27 +286,27 @@ public final class SceneEntityMoveScNotifyOuterClass { SceneEntityMoveScNotify other = (SceneEntityMoveScNotify) o; return bitField0_ == other.bitField0_ && (!hasEntryId() || entryId == other.entryId) - && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasEntityId() || entityId == other.entityId) + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasMotion() || motion.equals(other.motion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(clientPosVersion); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(entityId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(clientPosVersion); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 34); output.writeMessageNoTag(motion); } } @@ -318,10 +318,10 @@ public final class SceneEntityMoveScNotifyOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(motion); @@ -336,34 +336,34 @@ public final class SceneEntityMoveScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 40: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 72) { + if (tag != 104) { break; } } - case 72: { - // clientPosVersion - clientPosVersion = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 104: { // entityId entityId = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 122) { + if (tag != 120) { break; } } - case 122: { + case 120: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { // motion input.readMessage(motion); bitField0_ |= 0x00000008; @@ -393,10 +393,10 @@ public final class SceneEntityMoveScNotifyOuterClass { output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + output.writeUInt32(FieldNames.entityId, entityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.motion, motion); @@ -423,11 +423,11 @@ public final class SceneEntityMoveScNotifyOuterClass { } break; } - case 1787644431: - case 1278860153: { - if (input.isAtField(FieldNames.clientPosVersion)) { + case -2102099874: + case -740565257: { + if (input.isAtField(FieldNames.entityId)) { if (!input.trySkipNullValue()) { - clientPosVersion = input.readUInt32(); + entityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -435,11 +435,11 @@ public final class SceneEntityMoveScNotifyOuterClass { } break; } - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -513,10 +513,10 @@ public final class SceneEntityMoveScNotifyOuterClass { static class FieldNames { static final FieldName entryId = FieldName.forField("entryId", "entry_id"); - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName motion = FieldName.forField("motion"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java index fbf79c3..8b0d8ba 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityRefreshInfoOuterClass.java @@ -19,12 +19,12 @@ public final class SceneEntityRefreshInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 del_entity = 3; + * optional uint32 del_entity = 12; */ private int delEntity; /** - * optional .SceneEntityInfo add_entity = 5; + * optional .SceneEntityInfo add_entity = 14; */ private final SceneEntityInfoOuterClass.SceneEntityInfo addEntity = SceneEntityInfoOuterClass.SceneEntityInfo.newInstance(); @@ -39,7 +39,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 3; + * optional uint32 del_entity = 12; * @return whether the delEntity field is set */ public boolean hasDelEntity() { @@ -47,7 +47,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 3; + * optional uint32 del_entity = 12; * @return this */ public SceneEntityRefreshInfo clearDelEntity() { @@ -57,7 +57,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 3; + * optional uint32 del_entity = 12; * @return the delEntity */ public int getDelEntity() { @@ -65,7 +65,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional uint32 del_entity = 3; + * optional uint32 del_entity = 12; * @param value the delEntity to set * @return this */ @@ -76,7 +76,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional .SceneEntityInfo add_entity = 5; + * optional .SceneEntityInfo add_entity = 14; * @return whether the addEntity field is set */ public boolean hasAddEntity() { @@ -84,7 +84,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional .SceneEntityInfo add_entity = 5; + * optional .SceneEntityInfo add_entity = 14; * @return this */ public SceneEntityRefreshInfo clearAddEntity() { @@ -94,7 +94,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional .SceneEntityInfo add_entity = 5; + * optional .SceneEntityInfo add_entity = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional .SceneEntityInfo add_entity = 5; + * optional .SceneEntityInfo add_entity = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class SceneEntityRefreshInfoOuterClass { } /** - * optional .SceneEntityInfo add_entity = 5; + * optional .SceneEntityInfo add_entity = 14; * @param value the addEntity to set * @return this */ @@ -199,11 +199,11 @@ public final class SceneEntityRefreshInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(delEntity); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 114); output.writeMessageNoTag(addEntity); } } @@ -227,16 +227,16 @@ public final class SceneEntityRefreshInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 96: { // delEntity delEntity = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 114) { break; } } - case 42: { + case 114: { // addEntity input.readMessage(addEntity); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java index 6c480b0..39c1ccf 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class SceneEntityTeleportCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; */ private int entryId; /** - * optional .EntityMotion entity_motion = 11; + * optional .EntityMotion entity_motion = 6; */ private final EntityMotionOuterClass.EntityMotion entityMotion = EntityMotionOuterClass.EntityMotion.newInstance(); @@ -39,7 +39,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -47,7 +47,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @return this */ public SceneEntityTeleportCsReq clearEntryId() { @@ -57,7 +57,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @return the entryId */ public int getEntryId() { @@ -65,7 +65,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + * optional uint32 entry_id = 14; * @param value the entryId to set * @return this */ @@ -76,7 +76,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional .EntityMotion entity_motion = 11; + * optional .EntityMotion entity_motion = 6; * @return whether the entityMotion field is set */ public boolean hasEntityMotion() { @@ -84,7 +84,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional .EntityMotion entity_motion = 11; + * optional .EntityMotion entity_motion = 6; * @return this */ public SceneEntityTeleportCsReq clearEntityMotion() { @@ -94,7 +94,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional .EntityMotion entity_motion = 11; + * optional .EntityMotion entity_motion = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional .EntityMotion entity_motion = 11; + * optional .EntityMotion entity_motion = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class SceneEntityTeleportCsReqOuterClass { } /** - * optional .EntityMotion entity_motion = 11; + * optional .EntityMotion entity_motion = 6; * @param value the entityMotion to set * @return this */ @@ -199,11 +199,11 @@ public final class SceneEntityTeleportCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 50); output.writeMessageNoTag(entityMotion); } } @@ -227,16 +227,16 @@ public final class SceneEntityTeleportCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 112: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 50) { break; } } - case 90: { + case 50: { // entityMotion input.readMessage(entityMotion); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java index bed3c10..7a2abf5 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneEntityTeleportScRspOuterClass.java @@ -19,17 +19,17 @@ public final class SceneEntityTeleportScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 client_pos_version = 7; - */ - private int clientPosVersion; - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 2; */ private int retcode; /** - * optional .EntityMotion entity_motion = 13; + * optional uint32 client_pos_version = 13; + */ + private int clientPosVersion; + + /** + * optional .EntityMotion entity_motion = 3; */ private final EntityMotionOuterClass.EntityMotion entityMotion = EntityMotionOuterClass.EntityMotion.newInstance(); @@ -44,62 +44,25 @@ public final class SceneEntityTeleportScRspOuterClass { } /** - * optional uint32 client_pos_version = 7; - * @return whether the clientPosVersion field is set + * optional uint32 retcode = 2; + * @return whether the retcode field is set */ - public boolean hasClientPosVersion() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 client_pos_version = 7; - * @return this - */ - public SceneEntityTeleportScRsp clearClientPosVersion() { - bitField0_ &= ~0x00000001; - clientPosVersion = 0; - return this; - } - - /** - * optional uint32 client_pos_version = 7; - * @return the clientPosVersion - */ - public int getClientPosVersion() { - return clientPosVersion; - } - - /** - * optional uint32 client_pos_version = 7; - * @param value the clientPosVersion to set - * @return this - */ - public SceneEntityTeleportScRsp setClientPosVersion(final int value) { - bitField0_ |= 0x00000001; - clientPosVersion = value; - return this; - } - - /** - * optional uint32 retcode = 14; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 2; * @return this */ public SceneEntityTeleportScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 2; * @return the retcode */ public int getRetcode() { @@ -107,18 +70,55 @@ public final class SceneEntityTeleportScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 2; * @param value the retcode to set * @return this */ public SceneEntityTeleportScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .EntityMotion entity_motion = 13; + * optional uint32 client_pos_version = 13; + * @return whether the clientPosVersion field is set + */ + public boolean hasClientPosVersion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 client_pos_version = 13; + * @return this + */ + public SceneEntityTeleportScRsp clearClientPosVersion() { + bitField0_ &= ~0x00000002; + clientPosVersion = 0; + return this; + } + + /** + * optional uint32 client_pos_version = 13; + * @return the clientPosVersion + */ + public int getClientPosVersion() { + return clientPosVersion; + } + + /** + * optional uint32 client_pos_version = 13; + * @param value the clientPosVersion to set + * @return this + */ + public SceneEntityTeleportScRsp setClientPosVersion(final int value) { + bitField0_ |= 0x00000002; + clientPosVersion = value; + return this; + } + + /** + * optional .EntityMotion entity_motion = 3; * @return whether the entityMotion field is set */ public boolean hasEntityMotion() { @@ -126,7 +126,7 @@ public final class SceneEntityTeleportScRspOuterClass { } /** - * optional .EntityMotion entity_motion = 13; + * optional .EntityMotion entity_motion = 3; * @return this */ public SceneEntityTeleportScRsp clearEntityMotion() { @@ -136,7 +136,7 @@ public final class SceneEntityTeleportScRspOuterClass { } /** - * optional .EntityMotion entity_motion = 13; + * optional .EntityMotion entity_motion = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class SceneEntityTeleportScRspOuterClass { } /** - * optional .EntityMotion entity_motion = 13; + * optional .EntityMotion entity_motion = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class SceneEntityTeleportScRspOuterClass { } /** - * optional .EntityMotion entity_motion = 13; + * optional .EntityMotion entity_motion = 3; * @param value the entityMotion to set * @return this */ @@ -180,8 +180,8 @@ public final class SceneEntityTeleportScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - clientPosVersion = other.clientPosVersion; retcode = other.retcode; + clientPosVersion = other.clientPosVersion; entityMotion.copyFrom(other.entityMotion); } return this; @@ -193,12 +193,12 @@ public final class SceneEntityTeleportScRspOuterClass { return this; } cachedSize = -1; - if (other.hasClientPosVersion()) { - setClientPosVersion(other.clientPosVersion); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasClientPosVersion()) { + setClientPosVersion(other.clientPosVersion); + } if (other.hasEntityMotion()) { getMutableEntityMotion().mergeFrom(other.entityMotion); } @@ -212,8 +212,8 @@ public final class SceneEntityTeleportScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - clientPosVersion = 0; retcode = 0; + clientPosVersion = 0; entityMotion.clear(); return this; } @@ -239,23 +239,23 @@ public final class SceneEntityTeleportScRspOuterClass { } SceneEntityTeleportScRsp other = (SceneEntityTeleportScRsp) o; return bitField0_ == other.bitField0_ - && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasRetcode() || retcode == other.retcode) + && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) && (!hasEntityMotion() || entityMotion.equals(other.entityMotion)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(clientPosVersion); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(clientPosVersion); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 26); output.writeMessageNoTag(entityMotion); } } @@ -264,10 +264,10 @@ public final class SceneEntityTeleportScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(entityMotion); @@ -282,25 +282,25 @@ public final class SceneEntityTeleportScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // clientPosVersion - clientPosVersion = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 16: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 106) { + if (tag != 104) { break; } } - case 106: { + case 104: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 26) { + break; + } + } + case 26: { // entityMotion input.readMessage(entityMotion); bitField0_ |= 0x00000004; @@ -327,10 +327,10 @@ public final class SceneEntityTeleportScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.entityMotion, entityMotion); @@ -345,11 +345,10 @@ public final class SceneEntityTeleportScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787644431: - case 1278860153: { - if (input.isAtField(FieldNames.clientPosVersion)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - clientPosVersion = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -357,10 +356,11 @@ public final class SceneEntityTeleportScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1787644431: + case 1278860153: { + if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + clientPosVersion = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -433,10 +433,10 @@ public final class SceneEntityTeleportScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName entityMotion = FieldName.forField("entityMotion", "entity_motion"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java index 1c2538a..4a17927 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshInfoOuterClass.java @@ -20,22 +20,27 @@ public final class SceneGroupRefreshInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 state = 9; - */ - private int state; - - /** - * optional uint32 group_id = 12; + * optional uint32 group_id = 9; */ private int groupId; /** - * optional .SceneGroupRefreshType group_refresh_type = 14; + * optional uint32 state = 13; + */ + private int state; + + /** + * optional .SceneGroupRefreshType group_refresh_type = 8; */ private int groupRefreshType; /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * optional .SceneEntityGroupInfo entity_group_info = 1; + */ + private final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo entityGroupInfo = SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.newInstance(); + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 12; */ private final RepeatedMessage refreshEntity = RepeatedMessage.newEmptyInstance(SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo.getFactory()); @@ -50,62 +55,25 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional uint32 state = 9; - * @return whether the state field is set + * optional uint32 group_id = 9; + * @return whether the groupId field is set */ - public boolean hasState() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 state = 9; - * @return this - */ - public SceneGroupRefreshInfo clearState() { - bitField0_ &= ~0x00000001; - state = 0; - return this; - } - - /** - * optional uint32 state = 9; - * @return the state - */ - public int getState() { - return state; - } - - /** - * optional uint32 state = 9; - * @param value the state to set - * @return this - */ - public SceneGroupRefreshInfo setState(final int value) { - bitField0_ |= 0x00000001; - state = value; - return this; - } - - /** - * optional uint32 group_id = 12; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 group_id = 12; + * optional uint32 group_id = 9; * @return this */ public SceneGroupRefreshInfo clearGroupId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; groupId = 0; return this; } /** - * optional uint32 group_id = 12; + * optional uint32 group_id = 9; * @return the groupId */ public int getGroupId() { @@ -113,18 +81,55 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional uint32 group_id = 12; + * optional uint32 group_id = 9; * @param value the groupId to set * @return this */ public SceneGroupRefreshInfo setGroupId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; groupId = value; return this; } /** - * optional .SceneGroupRefreshType group_refresh_type = 14; + * optional uint32 state = 13; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 state = 13; + * @return this + */ + public SceneGroupRefreshInfo clearState() { + bitField0_ &= ~0x00000002; + state = 0; + return this; + } + + /** + * optional uint32 state = 13; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 13; + * @param value the state to set + * @return this + */ + public SceneGroupRefreshInfo setState(final int value) { + bitField0_ |= 0x00000002; + state = value; + return this; + } + + /** + * optional .SceneGroupRefreshType group_refresh_type = 8; * @return whether the groupRefreshType field is set */ public boolean hasGroupRefreshType() { @@ -132,7 +137,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional .SceneGroupRefreshType group_refresh_type = 14; + * optional .SceneGroupRefreshType group_refresh_type = 8; * @return this */ public SceneGroupRefreshInfo clearGroupRefreshType() { @@ -142,7 +147,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional .SceneGroupRefreshType group_refresh_type = 14; + * optional .SceneGroupRefreshType group_refresh_type = 8; * @return the groupRefreshType */ public SceneGroupRefreshTypeOuterClass.SceneGroupRefreshType getGroupRefreshType() { @@ -175,7 +180,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * optional .SceneGroupRefreshType group_refresh_type = 14; + * optional .SceneGroupRefreshType group_refresh_type = 8; * @param value the groupRefreshType to set * @return this */ @@ -187,25 +192,83 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; - * @return whether the refreshEntity field is set + * optional .SceneEntityGroupInfo entity_group_info = 1; + * @return whether the entityGroupInfo field is set */ - public boolean hasRefreshEntity() { + public boolean hasEntityGroupInfo() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * optional .SceneEntityGroupInfo entity_group_info = 1; + * @return this + */ + public SceneGroupRefreshInfo clearEntityGroupInfo() { + bitField0_ &= ~0x00000008; + entityGroupInfo.clear(); + return this; + } + + /** + * optional .SceneEntityGroupInfo entity_group_info = 1; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableEntityGroupInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo getEntityGroupInfo() { + return entityGroupInfo; + } + + /** + * optional .SceneEntityGroupInfo entity_group_info = 1; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo getMutableEntityGroupInfo() { + bitField0_ |= 0x00000008; + return entityGroupInfo; + } + + /** + * optional .SceneEntityGroupInfo entity_group_info = 1; + * @param value the entityGroupInfo to set + * @return this + */ + public SceneGroupRefreshInfo setEntityGroupInfo( + final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) { + bitField0_ |= 0x00000008; + entityGroupInfo.copyFrom(value); + return this; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 12; + * @return whether the refreshEntity field is set + */ + public boolean hasRefreshEntity() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .SceneEntityRefreshInfo refresh_entity = 12; * @return this */ public SceneGroupRefreshInfo clearRefreshEntity() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; refreshEntity.clear(); return this; } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -220,7 +283,7 @@ public final class SceneGroupRefreshInfoOuterClass { } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -230,30 +293,30 @@ public final class SceneGroupRefreshInfoOuterClass { */ public RepeatedMessage getMutableRefreshEntity( ) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return refreshEntity; } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 12; * @param value the refreshEntity to add * @return this */ public SceneGroupRefreshInfo addRefreshEntity( final SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; refreshEntity.add(value); return this; } /** - * repeated .SceneEntityRefreshInfo refresh_entity = 7; + * repeated .SceneEntityRefreshInfo refresh_entity = 12; * @param values the refreshEntity to add * @return this */ public SceneGroupRefreshInfo addAllRefreshEntity( final SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; refreshEntity.addAll(values); return this; } @@ -263,9 +326,10 @@ public final class SceneGroupRefreshInfoOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - state = other.state; groupId = other.groupId; + state = other.state; groupRefreshType = other.groupRefreshType; + entityGroupInfo.copyFrom(other.entityGroupInfo); refreshEntity.copyFrom(other.refreshEntity); } return this; @@ -277,15 +341,18 @@ public final class SceneGroupRefreshInfoOuterClass { return this; } cachedSize = -1; - if (other.hasState()) { - setState(other.state); - } if (other.hasGroupId()) { setGroupId(other.groupId); } + if (other.hasState()) { + setState(other.state); + } if (other.hasGroupRefreshType()) { setGroupRefreshTypeValue(other.groupRefreshType); } + if (other.hasEntityGroupInfo()) { + getMutableEntityGroupInfo().mergeFrom(other.entityGroupInfo); + } if (other.hasRefreshEntity()) { getMutableRefreshEntity().addAll(other.refreshEntity); } @@ -299,9 +366,10 @@ public final class SceneGroupRefreshInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - state = 0; groupId = 0; + state = 0; groupRefreshType = 0; + entityGroupInfo.clear(); refreshEntity.clear(); return this; } @@ -313,6 +381,7 @@ public final class SceneGroupRefreshInfoOuterClass { } cachedSize = -1; bitField0_ = 0; + entityGroupInfo.clearQuick(); refreshEntity.clearQuick(); return this; } @@ -327,9 +396,10 @@ public final class SceneGroupRefreshInfoOuterClass { } SceneGroupRefreshInfo other = (SceneGroupRefreshInfo) o; return bitField0_ == other.bitField0_ - && (!hasState() || state == other.state) && (!hasGroupId() || groupId == other.groupId) + && (!hasState() || state == other.state) && (!hasGroupRefreshType() || groupRefreshType == other.groupRefreshType) + && (!hasEntityGroupInfo() || entityGroupInfo.equals(other.entityGroupInfo)) && (!hasRefreshEntity() || refreshEntity.equals(other.refreshEntity)); } @@ -337,19 +407,23 @@ public final class SceneGroupRefreshInfoOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 72); - output.writeUInt32NoTag(state); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); output.writeUInt32NoTag(groupId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(state); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeEnumNoTag(groupRefreshType); } if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 10); + output.writeMessageNoTag(entityGroupInfo); + } + if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < refreshEntity.length(); i++) { - output.writeRawByte((byte) 58); + output.writeRawByte((byte) 98); output.writeMessageNoTag(refreshEntity.get(i)); } } @@ -359,15 +433,18 @@ public final class SceneGroupRefreshInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(groupRefreshType); } if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(entityGroupInfo); + } + if ((bitField0_ & 0x00000010) != 0) { size += (1 * refreshEntity.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(refreshEntity); } return size; @@ -381,24 +458,24 @@ public final class SceneGroupRefreshInfoOuterClass { while (true) { switch (tag) { case 72: { - // state - state = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { // groupId groupId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { + case 104: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { // groupRefreshType final int value = input.readInt32(); if (SceneGroupRefreshTypeOuterClass.SceneGroupRefreshType.forNumber(value) != null) { @@ -406,14 +483,23 @@ public final class SceneGroupRefreshInfoOuterClass { bitField0_ |= 0x00000004; } tag = input.readTag(); - if (tag != 58) { + if (tag != 10) { break; } } - case 58: { + case 10: { + // entityGroupInfo + input.readMessage(entityGroupInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 98) { + break; + } + } + case 98: { // refreshEntity tag = input.readRepeatedMessage(refreshEntity, tag); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; if (tag != 0) { break; } @@ -436,15 +522,18 @@ public final class SceneGroupRefreshInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.state, state); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.state, state); } if ((bitField0_ & 0x00000004) != 0) { output.writeEnum(FieldNames.groupRefreshType, groupRefreshType, SceneGroupRefreshTypeOuterClass.SceneGroupRefreshType.converter()); } if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.entityGroupInfo, entityGroupInfo); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedMessage(FieldNames.refreshEntity, refreshEntity); } output.endObject(); @@ -457,10 +546,11 @@ public final class SceneGroupRefreshInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109757585: { - if (input.isAtField(FieldNames.state)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - state = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -468,11 +558,10 @@ public final class SceneGroupRefreshInfoOuterClass { } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + state = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -497,12 +586,24 @@ public final class SceneGroupRefreshInfoOuterClass { } break; } + case -914791638: + case 1589023818: { + if (input.isAtField(FieldNames.entityGroupInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(entityGroupInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } case 2113180318: case -1873514041: { if (input.isAtField(FieldNames.refreshEntity)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(refreshEntity); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -562,12 +663,14 @@ public final class SceneGroupRefreshInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName state = FieldName.forField("state"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName state = FieldName.forField("state"); + static final FieldName groupRefreshType = FieldName.forField("groupRefreshType", "group_refresh_type"); + static final FieldName entityGroupInfo = FieldName.forField("entityGroupInfo", "entity_group_info"); + static final FieldName refreshEntity = FieldName.forField("refreshEntity", "refresh_entity"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java index 6455e88..7bb81f9 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupRefreshScNotifyOuterClass.java @@ -20,7 +20,12 @@ public final class SceneGroupRefreshScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; + * optional uint32 floor_id = 11; + */ + private int floorId; + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; */ private final RepeatedMessage groupRefreshInfo = RepeatedMessage.newEmptyInstance(SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo.getFactory()); @@ -35,25 +40,62 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; - * @return whether the groupRefreshInfo field is set + * optional uint32 floor_id = 11; + * @return whether the floorId field is set */ - public boolean hasGroupRefreshInfo() { + public boolean hasFloorId() { return (bitField0_ & 0x00000001) != 0; } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; + * optional uint32 floor_id = 11; + * @return this + */ + public SceneGroupRefreshScNotify clearFloorId() { + bitField0_ &= ~0x00000001; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 11; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 11; + * @param value the floorId to set + * @return this + */ + public SceneGroupRefreshScNotify setFloorId(final int value) { + bitField0_ |= 0x00000001; + floorId = value; + return this; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; + * @return whether the groupRefreshInfo field is set + */ + public boolean hasGroupRefreshInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; * @return this */ public SceneGroupRefreshScNotify clearGroupRefreshInfo() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000002; groupRefreshInfo.clear(); return this; } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -68,7 +110,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -78,30 +120,30 @@ public final class SceneGroupRefreshScNotifyOuterClass { */ public RepeatedMessage getMutableGroupRefreshInfo( ) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; return groupRefreshInfo; } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; * @param value the groupRefreshInfo to add * @return this */ public SceneGroupRefreshScNotify addGroupRefreshInfo( final SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo value) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; groupRefreshInfo.add(value); return this; } /** - * repeated .SceneGroupRefreshInfo group_refresh_info = 12; + * repeated .SceneGroupRefreshInfo group_refresh_info = 2; * @param values the groupRefreshInfo to add * @return this */ public SceneGroupRefreshScNotify addAllGroupRefreshInfo( final SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo... values) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; groupRefreshInfo.addAll(values); return this; } @@ -111,6 +153,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + floorId = other.floorId; groupRefreshInfo.copyFrom(other.groupRefreshInfo); } return this; @@ -122,6 +165,9 @@ public final class SceneGroupRefreshScNotifyOuterClass { return this; } cachedSize = -1; + if (other.hasFloorId()) { + setFloorId(other.floorId); + } if (other.hasGroupRefreshInfo()) { getMutableGroupRefreshInfo().addAll(other.groupRefreshInfo); } @@ -135,6 +181,7 @@ public final class SceneGroupRefreshScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; + floorId = 0; groupRefreshInfo.clear(); return this; } @@ -160,14 +207,19 @@ public final class SceneGroupRefreshScNotifyOuterClass { } SceneGroupRefreshScNotify other = (SceneGroupRefreshScNotify) o; return bitField0_ == other.bitField0_ + && (!hasFloorId() || floorId == other.floorId) && (!hasGroupRefreshInfo() || groupRefreshInfo.equals(other.groupRefreshInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < groupRefreshInfo.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 18); output.writeMessageNoTag(groupRefreshInfo.get(i)); } } @@ -177,6 +229,9 @@ public final class SceneGroupRefreshScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { size += (1 * groupRefreshInfo.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupRefreshInfo); } return size; @@ -189,10 +244,19 @@ public final class SceneGroupRefreshScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { + case 88: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { // groupRefreshInfo tag = input.readRepeatedMessage(groupRefreshInfo, tag); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; if (tag != 0) { break; } @@ -215,6 +279,9 @@ public final class SceneGroupRefreshScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000002) != 0) { output.writeRepeatedMessage(FieldNames.groupRefreshInfo, groupRefreshInfo); } output.endObject(); @@ -227,12 +294,24 @@ public final class SceneGroupRefreshScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 618562090: case 851400018: { if (input.isAtField(FieldNames.groupRefreshInfo)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(groupRefreshInfo); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -292,6 +371,8 @@ public final class SceneGroupRefreshScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + static final FieldName groupRefreshInfo = FieldName.forField("groupRefreshInfo", "group_refresh_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java index 468f6a3..9f95b15 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneGroupStateOuterClass.java @@ -19,17 +19,17 @@ public final class SceneGroupStateOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 state = 2; - */ - private int state; - - /** - * optional uint32 group_id = 10; + * optional uint32 group_id = 4; */ private int groupId; /** - * optional bool is_default = 5; + * optional uint32 state = 5; + */ + private int state; + + /** + * optional bool is_default = 10; */ private boolean isDefault; @@ -44,62 +44,25 @@ public final class SceneGroupStateOuterClass { } /** - * optional uint32 state = 2; - * @return whether the state field is set + * optional uint32 group_id = 4; + * @return whether the groupId field is set */ - public boolean hasState() { + public boolean hasGroupId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 state = 2; - * @return this - */ - public SceneGroupState clearState() { - bitField0_ &= ~0x00000001; - state = 0; - return this; - } - - /** - * optional uint32 state = 2; - * @return the state - */ - public int getState() { - return state; - } - - /** - * optional uint32 state = 2; - * @param value the state to set - * @return this - */ - public SceneGroupState setState(final int value) { - bitField0_ |= 0x00000001; - state = value; - return this; - } - - /** - * optional uint32 group_id = 10; - * @return whether the groupId field is set - */ - public boolean hasGroupId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 group_id = 10; + * optional uint32 group_id = 4; * @return this */ public SceneGroupState clearGroupId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; groupId = 0; return this; } /** - * optional uint32 group_id = 10; + * optional uint32 group_id = 4; * @return the groupId */ public int getGroupId() { @@ -107,18 +70,55 @@ public final class SceneGroupStateOuterClass { } /** - * optional uint32 group_id = 10; + * optional uint32 group_id = 4; * @param value the groupId to set * @return this */ public SceneGroupState setGroupId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; groupId = value; return this; } /** - * optional bool is_default = 5; + * optional uint32 state = 5; + * @return whether the state field is set + */ + public boolean hasState() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 state = 5; + * @return this + */ + public SceneGroupState clearState() { + bitField0_ &= ~0x00000002; + state = 0; + return this; + } + + /** + * optional uint32 state = 5; + * @return the state + */ + public int getState() { + return state; + } + + /** + * optional uint32 state = 5; + * @param value the state to set + * @return this + */ + public SceneGroupState setState(final int value) { + bitField0_ |= 0x00000002; + state = value; + return this; + } + + /** + * optional bool is_default = 10; * @return whether the isDefault field is set */ public boolean hasIsDefault() { @@ -126,7 +126,7 @@ public final class SceneGroupStateOuterClass { } /** - * optional bool is_default = 5; + * optional bool is_default = 10; * @return this */ public SceneGroupState clearIsDefault() { @@ -136,7 +136,7 @@ public final class SceneGroupStateOuterClass { } /** - * optional bool is_default = 5; + * optional bool is_default = 10; * @return the isDefault */ public boolean getIsDefault() { @@ -144,7 +144,7 @@ public final class SceneGroupStateOuterClass { } /** - * optional bool is_default = 5; + * optional bool is_default = 10; * @param value the isDefault to set * @return this */ @@ -159,8 +159,8 @@ public final class SceneGroupStateOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - state = other.state; groupId = other.groupId; + state = other.state; isDefault = other.isDefault; } return this; @@ -172,12 +172,12 @@ public final class SceneGroupStateOuterClass { return this; } cachedSize = -1; - if (other.hasState()) { - setState(other.state); - } if (other.hasGroupId()) { setGroupId(other.groupId); } + if (other.hasState()) { + setState(other.state); + } if (other.hasIsDefault()) { setIsDefault(other.isDefault); } @@ -191,8 +191,8 @@ public final class SceneGroupStateOuterClass { } cachedSize = -1; bitField0_ = 0; - state = 0; groupId = 0; + state = 0; isDefault = false; return this; } @@ -217,23 +217,23 @@ public final class SceneGroupStateOuterClass { } SceneGroupState other = (SceneGroupState) o; return bitField0_ == other.bitField0_ - && (!hasState() || state == other.state) && (!hasGroupId() || groupId == other.groupId) + && (!hasState() || state == other.state) && (!hasIsDefault() || isDefault == other.isDefault); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(state); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(groupId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 40); + output.writeUInt32NoTag(state); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); output.writeBoolNoTag(isDefault); } } @@ -242,10 +242,10 @@ public final class SceneGroupStateOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(state); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(state); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -260,25 +260,25 @@ public final class SceneGroupStateOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // state - state = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 32: { // groupId groupId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 40) { break; } } case 40: { + // state + state = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { // isDefault isDefault = input.readBool(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public final class SceneGroupStateOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.state, state); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.state, state); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.isDefault, isDefault); @@ -323,10 +323,11 @@ public final class SceneGroupStateOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109757585: { - if (input.isAtField(FieldNames.state)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - state = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -334,11 +335,10 @@ public final class SceneGroupStateOuterClass { } break; } - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 109757585: { + if (input.isAtField(FieldNames.state)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + state = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -411,10 +411,10 @@ public final class SceneGroupStateOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName state = FieldName.forField("state"); - static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName state = FieldName.forField("state"); + static final FieldName isDefault = FieldName.forField("isDefault", "is_default"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneIdentifierInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneIdentifierInfoOuterClass.java new file mode 100644 index 0000000..03d251d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneIdentifierInfoOuterClass.java @@ -0,0 +1,422 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SceneIdentifierInfoOuterClass { + /** + * Protobuf type {@code SceneIdentifierInfo} + */ + public static final class SceneIdentifierInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 floor_id = 2; + */ + private int floorId; + + /** + * optional uint32 game_id = 6; + */ + private int gameId; + + /** + * optional uint32 content_id = 14; + */ + private int contentId; + + private SceneIdentifierInfo() { + } + + /** + * @return a new empty instance of {@code SceneIdentifierInfo} + */ + public static SceneIdentifierInfo newInstance() { + return new SceneIdentifierInfo(); + } + + /** + * optional uint32 floor_id = 2; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 floor_id = 2; + * @return this + */ + public SceneIdentifierInfo clearFloorId() { + bitField0_ &= ~0x00000001; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 2; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 2; + * @param value the floorId to set + * @return this + */ + public SceneIdentifierInfo setFloorId(final int value) { + bitField0_ |= 0x00000001; + floorId = value; + return this; + } + + /** + * optional uint32 game_id = 6; + * @return whether the gameId field is set + */ + public boolean hasGameId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 game_id = 6; + * @return this + */ + public SceneIdentifierInfo clearGameId() { + bitField0_ &= ~0x00000002; + gameId = 0; + return this; + } + + /** + * optional uint32 game_id = 6; + * @return the gameId + */ + public int getGameId() { + return gameId; + } + + /** + * optional uint32 game_id = 6; + * @param value the gameId to set + * @return this + */ + public SceneIdentifierInfo setGameId(final int value) { + bitField0_ |= 0x00000002; + gameId = value; + return this; + } + + /** + * optional uint32 content_id = 14; + * @return whether the contentId field is set + */ + public boolean hasContentId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 content_id = 14; + * @return this + */ + public SceneIdentifierInfo clearContentId() { + bitField0_ &= ~0x00000004; + contentId = 0; + return this; + } + + /** + * optional uint32 content_id = 14; + * @return the contentId + */ + public int getContentId() { + return contentId; + } + + /** + * optional uint32 content_id = 14; + * @param value the contentId to set + * @return this + */ + public SceneIdentifierInfo setContentId(final int value) { + bitField0_ |= 0x00000004; + contentId = value; + return this; + } + + @Override + public SceneIdentifierInfo copyFrom(final SceneIdentifierInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + floorId = other.floorId; + gameId = other.gameId; + contentId = other.contentId; + } + return this; + } + + @Override + public SceneIdentifierInfo mergeFrom(final SceneIdentifierInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasGameId()) { + setGameId(other.gameId); + } + if (other.hasContentId()) { + setContentId(other.contentId); + } + return this; + } + + @Override + public SceneIdentifierInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + floorId = 0; + gameId = 0; + contentId = 0; + return this; + } + + @Override + public SceneIdentifierInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneIdentifierInfo)) { + return false; + } + SceneIdentifierInfo other = (SceneIdentifierInfo) o; + return bitField0_ == other.bitField0_ + && (!hasFloorId() || floorId == other.floorId) + && (!hasGameId() || gameId == other.gameId) + && (!hasContentId() || contentId == other.contentId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(gameId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(contentId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(gameId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(contentId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneIdentifierInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // gameId + gameId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // contentId + contentId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.gameId, gameId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.contentId, contentId); + } + output.endObject(); + } + + @Override + public SceneIdentifierInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1253236563: + case -195606392: { + if (input.isAtField(FieldNames.gameId)) { + if (!input.trySkipNullValue()) { + gameId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -407108748: + case 264552097: { + if (input.isAtField(FieldNames.contentId)) { + if (!input.trySkipNullValue()) { + contentId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneIdentifierInfo clone() { + return new SceneIdentifierInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneIdentifierInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneIdentifierInfo(), data).checkInitialized(); + } + + public static SceneIdentifierInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneIdentifierInfo(), input).checkInitialized(); + } + + public static SceneIdentifierInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneIdentifierInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneIdentifierInfo messages + */ + public static MessageFactory getFactory() { + return SceneIdentifierInfoFactory.INSTANCE; + } + + private enum SceneIdentifierInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneIdentifierInfo create() { + return SceneIdentifierInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName gameId = FieldName.forField("gameId", "game_id"); + + static final FieldName contentId = FieldName.forField("contentId", "content_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java index 700a2ae..33192cc 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneInfoOuterClass.java @@ -10,7 +10,6 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; import us.hebi.quickbuf.RepeatedMessage; import us.hebi.quickbuf.Utf8String; @@ -22,75 +21,83 @@ public final class SceneInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 plane_id = 2; - */ - private int planeId; - - /** - * optional uint32 game_mode_type = 5; + * optional uint32 game_mode_type = 1; */ private int gameModeType; /** - * optional uint32 client_pos_version = 7; + * optional uint32 client_pos_version = 4; */ private int clientPosVersion; /** - * optional uint32 floor_id = 11; + * optional uint32 plane_id = 5; + */ + private int planeId; + + /** + * optional uint32 floor_id = 10; */ private int floorId; /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 12; */ private int entryId; /** - * optional uint32 leader_entity_id = 14; + *
+     *  guessed
+     * 
+ * + * optional uint32 leader_entity_id = 13; */ private int leaderEntityId; /** + *
+     *  guessed
+     * 
+ * * optional uint32 world_id = 15; */ private int worldId; /** - * optional uint32 content_id = 599; + * optional uint32 game_id = 602; + */ + private int gameId; + + /** + * optional uint32 content_id = 986; */ private int contentId; /** - * repeated uint32 group_id_list = 1; + * optional .SceneIdentifierInfo scene_identifier = 1947; */ - private final RepeatedInt groupIdList = RepeatedInt.newEmptyInstance(); + private final SceneIdentifierInfoOuterClass.SceneIdentifierInfo sceneIdentifier = SceneIdentifierInfoOuterClass.SceneIdentifierInfo.newInstance(); /** - * repeated uint32 lighten_section_list = 8; - */ - private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); - - /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; */ private final RepeatedMessage entityList = RepeatedMessage.newEmptyInstance(SceneEntityInfoOuterClass.SceneEntityInfo.getFactory()); /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; */ - private final RepeatedMessage extraData = RepeatedMessage.newEmptyInstance(ExtraDataEntry.getFactory()); + private final RepeatedMessage floorSavedValueMap = RepeatedMessage.newEmptyInstance(FloorSavedValueMapEntry.getFactory()); /** - * repeated .SceneGroupState group_state_list = 1577; - */ - private final RepeatedMessage groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory()); - - /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; + * repeated .SceneEntityGroupInfo entity_group_list = 1153; */ private final RepeatedMessage entityGroupList = RepeatedMessage.newEmptyInstance(SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.getFactory()); + /** + * repeated .SceneGroupState group_state_list = 1553; + */ + private final RepeatedMessage groupStateList = RepeatedMessage.newEmptyInstance(SceneGroupStateOuterClass.SceneGroupState.getFactory()); + private SceneInfo() { } @@ -102,62 +109,25 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 plane_id = 2; - * @return whether the planeId field is set + * optional uint32 game_mode_type = 1; + * @return whether the gameModeType field is set */ - public boolean hasPlaneId() { + public boolean hasGameModeType() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 plane_id = 2; - * @return this - */ - public SceneInfo clearPlaneId() { - bitField0_ &= ~0x00000001; - planeId = 0; - return this; - } - - /** - * optional uint32 plane_id = 2; - * @return the planeId - */ - public int getPlaneId() { - return planeId; - } - - /** - * optional uint32 plane_id = 2; - * @param value the planeId to set - * @return this - */ - public SceneInfo setPlaneId(final int value) { - bitField0_ |= 0x00000001; - planeId = value; - return this; - } - - /** - * optional uint32 game_mode_type = 5; - * @return whether the gameModeType field is set - */ - public boolean hasGameModeType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 game_mode_type = 5; + * optional uint32 game_mode_type = 1; * @return this */ public SceneInfo clearGameModeType() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; gameModeType = 0; return this; } /** - * optional uint32 game_mode_type = 5; + * optional uint32 game_mode_type = 1; * @return the gameModeType */ public int getGameModeType() { @@ -165,36 +135,36 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 game_mode_type = 5; + * optional uint32 game_mode_type = 1; * @param value the gameModeType to set * @return this */ public SceneInfo setGameModeType(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; gameModeType = value; return this; } /** - * optional uint32 client_pos_version = 7; + * optional uint32 client_pos_version = 4; * @return whether the clientPosVersion field is set */ public boolean hasClientPosVersion() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 client_pos_version = 7; + * optional uint32 client_pos_version = 4; * @return this */ public SceneInfo clearClientPosVersion() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; clientPosVersion = 0; return this; } /** - * optional uint32 client_pos_version = 7; + * optional uint32 client_pos_version = 4; * @return the clientPosVersion */ public int getClientPosVersion() { @@ -202,18 +172,55 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 client_pos_version = 7; + * optional uint32 client_pos_version = 4; * @param value the clientPosVersion to set * @return this */ public SceneInfo setClientPosVersion(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; clientPosVersion = value; return this; } /** - * optional uint32 floor_id = 11; + * optional uint32 plane_id = 5; + * @return whether the planeId field is set + */ + public boolean hasPlaneId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 plane_id = 5; + * @return this + */ + public SceneInfo clearPlaneId() { + bitField0_ &= ~0x00000004; + planeId = 0; + return this; + } + + /** + * optional uint32 plane_id = 5; + * @return the planeId + */ + public int getPlaneId() { + return planeId; + } + + /** + * optional uint32 plane_id = 5; + * @param value the planeId to set + * @return this + */ + public SceneInfo setPlaneId(final int value) { + bitField0_ |= 0x00000004; + planeId = value; + return this; + } + + /** + * optional uint32 floor_id = 10; * @return whether the floorId field is set */ public boolean hasFloorId() { @@ -221,7 +228,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 floor_id = 11; + * optional uint32 floor_id = 10; * @return this */ public SceneInfo clearFloorId() { @@ -231,7 +238,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 floor_id = 11; + * optional uint32 floor_id = 10; * @return the floorId */ public int getFloorId() { @@ -239,7 +246,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 floor_id = 11; + * optional uint32 floor_id = 10; * @param value the floorId to set * @return this */ @@ -250,7 +257,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 12; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -258,7 +265,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 12; * @return this */ public SceneInfo clearEntryId() { @@ -268,7 +275,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 12; * @return the entryId */ public int getEntryId() { @@ -276,7 +283,7 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 entry_id = 13; + * optional uint32 entry_id = 12; * @param value the entryId to set * @return this */ @@ -287,7 +294,11 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 leader_entity_id = 14; + *
+     *  guessed
+     * 
+ * + * optional uint32 leader_entity_id = 13; * @return whether the leaderEntityId field is set */ public boolean hasLeaderEntityId() { @@ -295,7 +306,11 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 leader_entity_id = 14; + *
+     *  guessed
+     * 
+ * + * optional uint32 leader_entity_id = 13; * @return this */ public SceneInfo clearLeaderEntityId() { @@ -305,7 +320,11 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 leader_entity_id = 14; + *
+     *  guessed
+     * 
+ * + * optional uint32 leader_entity_id = 13; * @return the leaderEntityId */ public int getLeaderEntityId() { @@ -313,7 +332,11 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 leader_entity_id = 14; + *
+     *  guessed
+     * 
+ * + * optional uint32 leader_entity_id = 13; * @param value the leaderEntityId to set * @return this */ @@ -324,6 +347,10 @@ public final class SceneInfoOuterClass { } /** + *
+     *  guessed
+     * 
+ * * optional uint32 world_id = 15; * @return whether the worldId field is set */ @@ -332,6 +359,10 @@ public final class SceneInfoOuterClass { } /** + *
+     *  guessed
+     * 
+ * * optional uint32 world_id = 15; * @return this */ @@ -342,6 +373,10 @@ public final class SceneInfoOuterClass { } /** + *
+     *  guessed
+     * 
+ * * optional uint32 world_id = 15; * @return the worldId */ @@ -350,6 +385,10 @@ public final class SceneInfoOuterClass { } /** + *
+     *  guessed
+     * 
+ * * optional uint32 world_id = 15; * @param value the worldId to set * @return this @@ -361,25 +400,62 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 content_id = 599; - * @return whether the contentId field is set + * optional uint32 game_id = 602; + * @return whether the gameId field is set */ - public boolean hasContentId() { + public boolean hasGameId() { return (bitField0_ & 0x00000080) != 0; } /** - * optional uint32 content_id = 599; + * optional uint32 game_id = 602; + * @return this + */ + public SceneInfo clearGameId() { + bitField0_ &= ~0x00000080; + gameId = 0; + return this; + } + + /** + * optional uint32 game_id = 602; + * @return the gameId + */ + public int getGameId() { + return gameId; + } + + /** + * optional uint32 game_id = 602; + * @param value the gameId to set + * @return this + */ + public SceneInfo setGameId(final int value) { + bitField0_ |= 0x00000080; + gameId = value; + return this; + } + + /** + * optional uint32 content_id = 986; + * @return whether the contentId field is set + */ + public boolean hasContentId() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional uint32 content_id = 986; * @return this */ public SceneInfo clearContentId() { - bitField0_ &= ~0x00000080; + bitField0_ &= ~0x00000100; contentId = 0; return this; } /** - * optional uint32 content_id = 599; + * optional uint32 content_id = 986; * @return the contentId */ public int getContentId() { @@ -387,118 +463,50 @@ public final class SceneInfoOuterClass { } /** - * optional uint32 content_id = 599; + * optional uint32 content_id = 986; * @param value the contentId to set * @return this */ public SceneInfo setContentId(final int value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; contentId = value; return this; } /** - * repeated uint32 group_id_list = 1; - * @return whether the groupIdList field is set + * optional .SceneIdentifierInfo scene_identifier = 1947; + * @return whether the sceneIdentifier field is set */ - public boolean hasGroupIdList() { - return (bitField0_ & 0x00000100) != 0; - } - - /** - * repeated uint32 group_id_list = 1; - * @return this - */ - public SceneInfo clearGroupIdList() { - bitField0_ &= ~0x00000100; - groupIdList.clear(); - return this; - } - - /** - * repeated uint32 group_id_list = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableGroupIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getGroupIdList() { - return groupIdList; - } - - /** - * repeated uint32 group_id_list = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableGroupIdList() { - bitField0_ |= 0x00000100; - return groupIdList; - } - - /** - * repeated uint32 group_id_list = 1; - * @param value the groupIdList to add - * @return this - */ - public SceneInfo addGroupIdList(final int value) { - bitField0_ |= 0x00000100; - groupIdList.add(value); - return this; - } - - /** - * repeated uint32 group_id_list = 1; - * @param values the groupIdList to add - * @return this - */ - public SceneInfo addAllGroupIdList(final int... values) { - bitField0_ |= 0x00000100; - groupIdList.addAll(values); - return this; - } - - /** - * repeated uint32 lighten_section_list = 8; - * @return whether the lightenSectionList field is set - */ - public boolean hasLightenSectionList() { + public boolean hasSceneIdentifier() { return (bitField0_ & 0x00000200) != 0; } /** - * repeated uint32 lighten_section_list = 8; + * optional .SceneIdentifierInfo scene_identifier = 1947; * @return this */ - public SceneInfo clearLightenSectionList() { + public SceneInfo clearSceneIdentifier() { bitField0_ &= ~0x00000200; - lightenSectionList.clear(); + sceneIdentifier.clear(); return this; } /** - * repeated uint32 lighten_section_list = 8; + * optional .SceneIdentifierInfo scene_identifier = 1947; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableLightenSectionList()} if you want to modify it. + * Use {@link #getMutableSceneIdentifier()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getLightenSectionList() { - return lightenSectionList; + public SceneIdentifierInfoOuterClass.SceneIdentifierInfo getSceneIdentifier() { + return sceneIdentifier; } /** - * repeated uint32 lighten_section_list = 8; + * optional .SceneIdentifierInfo scene_identifier = 1947; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -506,35 +514,25 @@ public final class SceneInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableLightenSectionList() { + public SceneIdentifierInfoOuterClass.SceneIdentifierInfo getMutableSceneIdentifier() { bitField0_ |= 0x00000200; - return lightenSectionList; + return sceneIdentifier; } /** - * repeated uint32 lighten_section_list = 8; - * @param value the lightenSectionList to add + * optional .SceneIdentifierInfo scene_identifier = 1947; + * @param value the sceneIdentifier to set * @return this */ - public SceneInfo addLightenSectionList(final int value) { + public SceneInfo setSceneIdentifier( + final SceneIdentifierInfoOuterClass.SceneIdentifierInfo value) { bitField0_ |= 0x00000200; - lightenSectionList.add(value); + sceneIdentifier.copyFrom(value); return this; } /** - * repeated uint32 lighten_section_list = 8; - * @param values the lightenSectionList to add - * @return this - */ - public SceneInfo addAllLightenSectionList(final int... values) { - bitField0_ |= 0x00000200; - lightenSectionList.addAll(values); - return this; - } - - /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; * @return whether the entityList field is set */ public boolean hasEntityList() { @@ -542,7 +540,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; * @return this */ public SceneInfo clearEntityList() { @@ -552,7 +550,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -566,7 +564,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -580,7 +578,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; * @param value the entityList to add * @return this */ @@ -591,7 +589,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityInfo entity_list = 6; + * repeated .SceneEntityInfo entity_list = 9; * @param values the entityList to add * @return this */ @@ -602,39 +600,39 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; - * @return whether the extraData field is set + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; + * @return whether the floorSavedValueMap field is set */ - public boolean hasExtraData() { + public boolean hasFloorSavedValueMap() { return (bitField0_ & 0x00000800) != 0; } /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; * @return this */ - public SceneInfo clearExtraData() { + public SceneInfo clearFloorSavedValueMap() { bitField0_ &= ~0x00000800; - extraData.clear(); + floorSavedValueMap.clear(); return this; } /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableExtraData()} if you want to modify it. + * Use {@link #getMutableFloorSavedValueMap()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedMessage getExtraData() { - return extraData; + public RepeatedMessage getFloorSavedValueMap() { + return floorSavedValueMap; } /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -642,122 +640,53 @@ public final class SceneInfoOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableExtraData() { + public RepeatedMessage getMutableFloorSavedValueMap() { bitField0_ |= 0x00000800; - return extraData; + return floorSavedValueMap; } /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; - * @param value the extraData to add + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; + * @param value the floorSavedValueMap to add * @return this */ - public SceneInfo addExtraData(final ExtraDataEntry value) { + public SceneInfo addFloorSavedValueMap(final FloorSavedValueMapEntry value) { bitField0_ |= 0x00000800; - extraData.add(value); + floorSavedValueMap.add(value); return this; } /** - * repeated .SceneInfo.ExtraDataEntry extra_data = 1458; - * @param values the extraData to add + * repeated .SceneInfo.FloorSavedValueMapEntry floor_saved_value_map = 680; + * @param values the floorSavedValueMap to add * @return this */ - public SceneInfo addAllExtraData(final ExtraDataEntry... values) { + public SceneInfo addAllFloorSavedValueMap(final FloorSavedValueMapEntry... values) { bitField0_ |= 0x00000800; - extraData.addAll(values); + floorSavedValueMap.addAll(values); return this; } /** - * repeated .SceneGroupState group_state_list = 1577; - * @return whether the groupStateList field is set + * repeated .SceneEntityGroupInfo entity_group_list = 1153; + * @return whether the entityGroupList field is set */ - public boolean hasGroupStateList() { + public boolean hasEntityGroupList() { return (bitField0_ & 0x00001000) != 0; } /** - * repeated .SceneGroupState group_state_list = 1577; - * @return this - */ - public SceneInfo clearGroupStateList() { - bitField0_ &= ~0x00001000; - groupStateList.clear(); - return this; - } - - /** - * repeated .SceneGroupState group_state_list = 1577; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableGroupStateList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getGroupStateList() { - return groupStateList; - } - - /** - * repeated .SceneGroupState group_state_list = 1577; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableGroupStateList() { - bitField0_ |= 0x00001000; - return groupStateList; - } - - /** - * repeated .SceneGroupState group_state_list = 1577; - * @param value the groupStateList to add - * @return this - */ - public SceneInfo addGroupStateList(final SceneGroupStateOuterClass.SceneGroupState value) { - bitField0_ |= 0x00001000; - groupStateList.add(value); - return this; - } - - /** - * repeated .SceneGroupState group_state_list = 1577; - * @param values the groupStateList to add - * @return this - */ - public SceneInfo addAllGroupStateList( - final SceneGroupStateOuterClass.SceneGroupState... values) { - bitField0_ |= 0x00001000; - groupStateList.addAll(values); - return this; - } - - /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; - * @return whether the entityGroupList field is set - */ - public boolean hasEntityGroupList() { - return (bitField0_ & 0x00002000) != 0; - } - - /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; + * repeated .SceneEntityGroupInfo entity_group_list = 1153; * @return this */ public SceneInfo clearEntityGroupList() { - bitField0_ &= ~0x00002000; + bitField0_ &= ~0x00001000; entityGroupList.clear(); return this; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; + * repeated .SceneEntityGroupInfo entity_group_list = 1153; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -772,7 +701,7 @@ public final class SceneInfoOuterClass { } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; + * repeated .SceneEntityGroupInfo entity_group_list = 1153; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -782,53 +711,122 @@ public final class SceneInfoOuterClass { */ public RepeatedMessage getMutableEntityGroupList( ) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; return entityGroupList; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; + * repeated .SceneEntityGroupInfo entity_group_list = 1153; * @param value the entityGroupList to add * @return this */ public SceneInfo addEntityGroupList( final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo value) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; entityGroupList.add(value); return this; } /** - * repeated .SceneEntityGroupInfo entity_group_list = 1909; + * repeated .SceneEntityGroupInfo entity_group_list = 1153; * @param values the entityGroupList to add * @return this */ public SceneInfo addAllEntityGroupList( final SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo... values) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; entityGroupList.addAll(values); return this; } + /** + * repeated .SceneGroupState group_state_list = 1553; + * @return whether the groupStateList field is set + */ + public boolean hasGroupStateList() { + return (bitField0_ & 0x00002000) != 0; + } + + /** + * repeated .SceneGroupState group_state_list = 1553; + * @return this + */ + public SceneInfo clearGroupStateList() { + bitField0_ &= ~0x00002000; + groupStateList.clear(); + return this; + } + + /** + * repeated .SceneGroupState group_state_list = 1553; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGroupStateList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGroupStateList() { + return groupStateList; + } + + /** + * repeated .SceneGroupState group_state_list = 1553; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableGroupStateList() { + bitField0_ |= 0x00002000; + return groupStateList; + } + + /** + * repeated .SceneGroupState group_state_list = 1553; + * @param value the groupStateList to add + * @return this + */ + public SceneInfo addGroupStateList(final SceneGroupStateOuterClass.SceneGroupState value) { + bitField0_ |= 0x00002000; + groupStateList.add(value); + return this; + } + + /** + * repeated .SceneGroupState group_state_list = 1553; + * @param values the groupStateList to add + * @return this + */ + public SceneInfo addAllGroupStateList( + final SceneGroupStateOuterClass.SceneGroupState... values) { + bitField0_ |= 0x00002000; + groupStateList.addAll(values); + return this; + } + @Override public SceneInfo copyFrom(final SceneInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - planeId = other.planeId; gameModeType = other.gameModeType; clientPosVersion = other.clientPosVersion; + planeId = other.planeId; floorId = other.floorId; entryId = other.entryId; leaderEntityId = other.leaderEntityId; worldId = other.worldId; + gameId = other.gameId; contentId = other.contentId; - groupIdList.copyFrom(other.groupIdList); - lightenSectionList.copyFrom(other.lightenSectionList); + sceneIdentifier.copyFrom(other.sceneIdentifier); entityList.copyFrom(other.entityList); - extraData.copyFrom(other.extraData); - groupStateList.copyFrom(other.groupStateList); + floorSavedValueMap.copyFrom(other.floorSavedValueMap); entityGroupList.copyFrom(other.entityGroupList); + groupStateList.copyFrom(other.groupStateList); } return this; } @@ -839,15 +837,15 @@ public final class SceneInfoOuterClass { return this; } cachedSize = -1; - if (other.hasPlaneId()) { - setPlaneId(other.planeId); - } if (other.hasGameModeType()) { setGameModeType(other.gameModeType); } if (other.hasClientPosVersion()) { setClientPosVersion(other.clientPosVersion); } + if (other.hasPlaneId()) { + setPlaneId(other.planeId); + } if (other.hasFloorId()) { setFloorId(other.floorId); } @@ -860,27 +858,27 @@ public final class SceneInfoOuterClass { if (other.hasWorldId()) { setWorldId(other.worldId); } + if (other.hasGameId()) { + setGameId(other.gameId); + } if (other.hasContentId()) { setContentId(other.contentId); } - if (other.hasGroupIdList()) { - getMutableGroupIdList().addAll(other.groupIdList); - } - if (other.hasLightenSectionList()) { - getMutableLightenSectionList().addAll(other.lightenSectionList); + if (other.hasSceneIdentifier()) { + getMutableSceneIdentifier().mergeFrom(other.sceneIdentifier); } if (other.hasEntityList()) { getMutableEntityList().addAll(other.entityList); } - if (other.hasExtraData()) { - getMutableExtraData().addAll(other.extraData); - } - if (other.hasGroupStateList()) { - getMutableGroupStateList().addAll(other.groupStateList); + if (other.hasFloorSavedValueMap()) { + getMutableFloorSavedValueMap().addAll(other.floorSavedValueMap); } if (other.hasEntityGroupList()) { getMutableEntityGroupList().addAll(other.entityGroupList); } + if (other.hasGroupStateList()) { + getMutableGroupStateList().addAll(other.groupStateList); + } return this; } @@ -891,20 +889,20 @@ public final class SceneInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - planeId = 0; gameModeType = 0; clientPosVersion = 0; + planeId = 0; floorId = 0; entryId = 0; leaderEntityId = 0; worldId = 0; + gameId = 0; contentId = 0; - groupIdList.clear(); - lightenSectionList.clear(); + sceneIdentifier.clear(); entityList.clear(); - extraData.clear(); - groupStateList.clear(); + floorSavedValueMap.clear(); entityGroupList.clear(); + groupStateList.clear(); return this; } @@ -915,12 +913,11 @@ public final class SceneInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - groupIdList.clear(); - lightenSectionList.clear(); + sceneIdentifier.clearQuick(); entityList.clearQuick(); - extraData.clearQuick(); - groupStateList.clearQuick(); + floorSavedValueMap.clearQuick(); entityGroupList.clearQuick(); + groupStateList.clearQuick(); return this; } @@ -934,46 +931,46 @@ public final class SceneInfoOuterClass { } SceneInfo other = (SceneInfo) o; return bitField0_ == other.bitField0_ - && (!hasPlaneId() || planeId == other.planeId) && (!hasGameModeType() || gameModeType == other.gameModeType) && (!hasClientPosVersion() || clientPosVersion == other.clientPosVersion) + && (!hasPlaneId() || planeId == other.planeId) && (!hasFloorId() || floorId == other.floorId) && (!hasEntryId() || entryId == other.entryId) && (!hasLeaderEntityId() || leaderEntityId == other.leaderEntityId) && (!hasWorldId() || worldId == other.worldId) + && (!hasGameId() || gameId == other.gameId) && (!hasContentId() || contentId == other.contentId) - && (!hasGroupIdList() || groupIdList.equals(other.groupIdList)) - && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) + && (!hasSceneIdentifier() || sceneIdentifier.equals(other.sceneIdentifier)) && (!hasEntityList() || entityList.equals(other.entityList)) - && (!hasExtraData() || extraData.equals(other.extraData)) - && (!hasGroupStateList() || groupStateList.equals(other.groupStateList)) - && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)); + && (!hasFloorSavedValueMap() || floorSavedValueMap.equals(other.floorSavedValueMap)) + && (!hasEntityGroupList() || entityGroupList.equals(other.entityGroupList)) + && (!hasGroupStateList() || groupStateList.equals(other.groupStateList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(planeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(gameModeType); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); output.writeUInt32NoTag(clientPosVersion); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(planeId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(floorId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(leaderEntityId); } if ((bitField0_ & 0x00000040) != 0) { @@ -981,43 +978,39 @@ public final class SceneInfoOuterClass { output.writeUInt32NoTag(worldId); } if ((bitField0_ & 0x00000080) != 0) { - output.writeRawLittleEndian16((short) 9656); - output.writeUInt32NoTag(contentId); + output.writeRawLittleEndian16((short) 9680); + output.writeUInt32NoTag(gameId); } if ((bitField0_ & 0x00000100) != 0) { - for (int i = 0; i < groupIdList.length(); i++) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(groupIdList.array()[i]); - } + output.writeRawLittleEndian16((short) 15824); + output.writeUInt32NoTag(contentId); } if ((bitField0_ & 0x00000200) != 0) { - for (int i = 0; i < lightenSectionList.length(); i++) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(lightenSectionList.array()[i]); - } + output.writeRawLittleEndian16((short) 31194); + output.writeMessageNoTag(sceneIdentifier); } if ((bitField0_ & 0x00000400) != 0) { for (int i = 0; i < entityList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 74); output.writeMessageNoTag(entityList.get(i)); } } if ((bitField0_ & 0x00000800) != 0) { - for (int i = 0; i < extraData.length(); i++) { - output.writeRawLittleEndian16((short) 23442); - output.writeMessageNoTag(extraData.get(i)); + for (int i = 0; i < floorSavedValueMap.length(); i++) { + output.writeRawLittleEndian16((short) 10946); + output.writeMessageNoTag(floorSavedValueMap.get(i)); } } if ((bitField0_ & 0x00001000) != 0) { - for (int i = 0; i < groupStateList.length(); i++) { - output.writeRawLittleEndian16((short) 25290); - output.writeMessageNoTag(groupStateList.get(i)); + for (int i = 0; i < entityGroupList.length(); i++) { + output.writeRawLittleEndian16((short) 18570); + output.writeMessageNoTag(entityGroupList.get(i)); } } if ((bitField0_ & 0x00002000) != 0) { - for (int i = 0; i < entityGroupList.length(); i++) { - output.writeRawLittleEndian16((short) 30634); - output.writeMessageNoTag(entityGroupList.get(i)); + for (int i = 0; i < groupStateList.length(); i++) { + output.writeRawLittleEndian16((short) 24970); + output.writeMessageNoTag(groupStateList.get(i)); } } } @@ -1026,14 +1019,14 @@ public final class SceneInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(gameModeType); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(clientPosVersion); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); + } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); } @@ -1047,25 +1040,25 @@ public final class SceneInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(worldId); } if ((bitField0_ & 0x00000080) != 0) { - size += 2 + ProtoSink.computeUInt32SizeNoTag(contentId); + size += 2 + ProtoSink.computeUInt32SizeNoTag(gameId); } if ((bitField0_ & 0x00000100) != 0) { - size += (1 * groupIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(groupIdList); + size += 2 + ProtoSink.computeUInt32SizeNoTag(contentId); } if ((bitField0_ & 0x00000200) != 0) { - size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); + size += 2 + ProtoSink.computeMessageSizeNoTag(sceneIdentifier); } if ((bitField0_ & 0x00000400) != 0) { size += (1 * entityList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityList); } if ((bitField0_ & 0x00000800) != 0) { - size += (2 * extraData.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(extraData); + size += (2 * floorSavedValueMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(floorSavedValueMap); } if ((bitField0_ & 0x00001000) != 0) { - size += (2 * groupStateList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupStateList); + size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList); } if ((bitField0_ & 0x00002000) != 0) { - size += (2 * entityGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(entityGroupList); + size += (2 * groupStateList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupStateList); } return size; } @@ -1077,52 +1070,52 @@ public final class SceneInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // planeId - planeId = input.readUInt32(); + case 8: { + // gameModeType + gameModeType = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // clientPosVersion + clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); if (tag != 40) { break; } } case 40: { - // gameModeType - gameModeType = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { - // clientPosVersion - clientPosVersion = input.readUInt32(); + // planeId + planeId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 88) { + if (tag != 80) { break; } } - case 88: { + case 80: { // floorId floorId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); if (tag != 104) { break; } } case 104: { - // entryId - entryId = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { // leaderEntityId leaderEntityId = input.readUInt32(); bitField0_ |= 0x00000020; @@ -1136,64 +1129,64 @@ public final class SceneInfoOuterClass { worldId = input.readUInt32(); bitField0_ |= 0x00000040; tag = input.readTag(); - if (tag != 4792) { + if (tag != 4816) { break; } } - case 4792: { - // contentId - contentId = input.readUInt32(); + case 4816: { + // gameId + gameId = input.readUInt32(); bitField0_ |= 0x00000080; tag = input.readTag(); - if (tag != 10) { + if (tag != 7888) { break; } } - case 10: { - // groupIdList [packed=true] - input.readPackedUInt32(groupIdList, tag); + case 7888: { + // contentId + contentId = input.readUInt32(); bitField0_ |= 0x00000100; tag = input.readTag(); - if (tag != 66) { + if (tag != 15578) { break; } } - case 66: { - // lightenSectionList [packed=true] - input.readPackedUInt32(lightenSectionList, tag); + case 15578: { + // sceneIdentifier + input.readMessage(sceneIdentifier); bitField0_ |= 0x00000200; tag = input.readTag(); - if (tag != 50) { + if (tag != 74) { break; } } - case 50: { + case 74: { // entityList tag = input.readRepeatedMessage(entityList, tag); bitField0_ |= 0x00000400; - if (tag != 11666) { + if (tag != 5442) { break; } } - case 11666: { - // extraData - tag = input.readRepeatedMessage(extraData, tag); + case 5442: { + // floorSavedValueMap + tag = input.readRepeatedMessage(floorSavedValueMap, tag); bitField0_ |= 0x00000800; - if (tag != 12618) { + if (tag != 9226) { break; } } - case 12618: { - // groupStateList - tag = input.readRepeatedMessage(groupStateList, tag); - bitField0_ |= 0x00001000; - if (tag != 15274) { - break; - } - } - case 15274: { + case 9226: { // entityGroupList tag = input.readRepeatedMessage(entityGroupList, tag); + bitField0_ |= 0x00001000; + if (tag != 12426) { + break; + } + } + case 12426: { + // groupStateList + tag = input.readRepeatedMessage(groupStateList, tag); bitField0_ |= 0x00002000; if (tag != 0) { break; @@ -1209,18 +1202,6 @@ public final class SceneInfoOuterClass { tag = input.readTag(); break; } - case 8: { - // groupIdList [packed=false] - tag = input.readRepeatedUInt32(groupIdList, tag); - bitField0_ |= 0x00000100; - break; - } - case 64: { - // lightenSectionList [packed=false] - tag = input.readRepeatedUInt32(lightenSectionList, tag); - bitField0_ |= 0x00000200; - break; - } } } } @@ -1229,14 +1210,14 @@ public final class SceneInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.planeId, planeId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.gameModeType, gameModeType); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.clientPosVersion, clientPosVersion); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.planeId, planeId); + } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.floorId, floorId); } @@ -1250,25 +1231,25 @@ public final class SceneInfoOuterClass { output.writeUInt32(FieldNames.worldId, worldId); } if ((bitField0_ & 0x00000080) != 0) { - output.writeUInt32(FieldNames.contentId, contentId); + output.writeUInt32(FieldNames.gameId, gameId); } if ((bitField0_ & 0x00000100) != 0) { - output.writeRepeatedUInt32(FieldNames.groupIdList, groupIdList); + output.writeUInt32(FieldNames.contentId, contentId); } if ((bitField0_ & 0x00000200) != 0) { - output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); + output.writeMessage(FieldNames.sceneIdentifier, sceneIdentifier); } if ((bitField0_ & 0x00000400) != 0) { output.writeRepeatedMessage(FieldNames.entityList, entityList); } if ((bitField0_ & 0x00000800) != 0) { - output.writeRepeatedMessage(FieldNames.extraData, extraData); + output.writeRepeatedMessage(FieldNames.floorSavedValueMap, floorSavedValueMap); } if ((bitField0_ & 0x00001000) != 0) { - output.writeRepeatedMessage(FieldNames.groupStateList, groupStateList); + output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList); } if ((bitField0_ & 0x00002000) != 0) { - output.writeRepeatedMessage(FieldNames.entityGroupList, entityGroupList); + output.writeRepeatedMessage(FieldNames.groupStateList, groupStateList); } output.endObject(); } @@ -1280,24 +1261,12 @@ public final class SceneInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -493896553: - case 1869097438: { - if (input.isAtField(FieldNames.planeId)) { - if (!input.trySkipNullValue()) { - planeId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -464498289: case 1937775689: { if (input.isAtField(FieldNames.gameModeType)) { if (!input.trySkipNullValue()) { gameModeType = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -1309,6 +1278,18 @@ public final class SceneInfoOuterClass { if (input.isAtField(FieldNames.clientPosVersion)) { if (!input.trySkipNullValue()) { clientPosVersion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -493896553: + case 1869097438: { + if (input.isAtField(FieldNames.planeId)) { + if (!input.trySkipNullValue()) { + planeId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -1364,11 +1345,11 @@ public final class SceneInfoOuterClass { } break; } - case -407108748: - case 264552097: { - if (input.isAtField(FieldNames.contentId)) { + case -1253236563: + case -195606392: { + if (input.isAtField(FieldNames.gameId)) { if (!input.trySkipNullValue()) { - contentId = input.readUInt32(); + gameId = input.readUInt32(); bitField0_ |= 0x00000080; } } else { @@ -1376,11 +1357,11 @@ public final class SceneInfoOuterClass { } break; } - case 457110456: - case 1703805826: { - if (input.isAtField(FieldNames.groupIdList)) { + case -407108748: + case 264552097: { + if (input.isAtField(FieldNames.contentId)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(groupIdList); + contentId = input.readUInt32(); bitField0_ |= 0x00000100; } } else { @@ -1388,11 +1369,11 @@ public final class SceneInfoOuterClass { } break; } - case -1942343836: - case 1328850360: { - if (input.isAtField(FieldNames.lightenSectionList)) { + case -219061675: + case -1767155140: { + if (input.isAtField(FieldNames.sceneIdentifier)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(lightenSectionList); + input.readMessage(sceneIdentifier); bitField0_ |= 0x00000200; } } else { @@ -1412,11 +1393,11 @@ public final class SceneInfoOuterClass { } break; } - case -253792294: - case 747380345: { - if (input.isAtField(FieldNames.extraData)) { + case -1901677274: + case 1429033891: { + if (input.isAtField(FieldNames.floorSavedValueMap)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(extraData); + input.readRepeatedMessage(floorSavedValueMap); bitField0_ |= 0x00000800; } } else { @@ -1424,23 +1405,23 @@ public final class SceneInfoOuterClass { } break; } - case 1415397648: - case 1198817612: { - if (input.isAtField(FieldNames.groupStateList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(groupStateList); - bitField0_ |= 0x00001000; - } - } else { - input.skipUnknownField(); - } - break; - } case -914706662: case 1589108794: { if (input.isAtField(FieldNames.entityGroupList)) { if (!input.trySkipNullValue()) { input.readRepeatedMessage(entityGroupList); + bitField0_ |= 0x00001000; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1415397648: + case 1198817612: { + if (input.isAtField(FieldNames.groupStateList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(groupStateList); bitField0_ |= 0x00002000; } } else { @@ -1488,9 +1469,9 @@ public final class SceneInfoOuterClass { } /** - * Protobuf type {@code ExtraDataEntry} + * Protobuf type {@code FloorSavedValueMapEntry} */ - public static final class ExtraDataEntry extends ProtoMessage implements Cloneable { + public static final class FloorSavedValueMapEntry extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -1503,14 +1484,14 @@ public final class SceneInfoOuterClass { */ private final Utf8String key = Utf8String.newEmptyInstance(); - private ExtraDataEntry() { + private FloorSavedValueMapEntry() { } /** - * @return a new empty instance of {@code ExtraDataEntry} + * @return a new empty instance of {@code FloorSavedValueMapEntry} */ - public static ExtraDataEntry newInstance() { - return new ExtraDataEntry(); + public static FloorSavedValueMapEntry newInstance() { + return new FloorSavedValueMapEntry(); } /** @@ -1525,7 +1506,7 @@ public final class SceneInfoOuterClass { * optional sint32 value = 2; * @return this */ - public ExtraDataEntry clearValue() { + public FloorSavedValueMapEntry clearValue() { bitField0_ &= ~0x00000001; value_ = 0; return this; @@ -1544,7 +1525,7 @@ public final class SceneInfoOuterClass { * @param value the value_ to set * @return this */ - public ExtraDataEntry setValue(final int value) { + public FloorSavedValueMapEntry setValue(final int value) { bitField0_ |= 0x00000001; value_ = value; return this; @@ -1562,7 +1543,7 @@ public final class SceneInfoOuterClass { * optional string key = 1; * @return this */ - public ExtraDataEntry clearKey() { + public FloorSavedValueMapEntry clearKey() { bitField0_ &= ~0x00000002; key.clear(); return this; @@ -1598,7 +1579,7 @@ public final class SceneInfoOuterClass { * @param value the key to set * @return this */ - public ExtraDataEntry setKey(final CharSequence value) { + public FloorSavedValueMapEntry setKey(final CharSequence value) { bitField0_ |= 0x00000002; key.copyFrom(value); return this; @@ -1609,14 +1590,14 @@ public final class SceneInfoOuterClass { * @param value the key to set * @return this */ - public ExtraDataEntry setKey(final Utf8String value) { + public FloorSavedValueMapEntry setKey(final Utf8String value) { bitField0_ |= 0x00000002; key.copyFrom(value); return this; } @Override - public ExtraDataEntry copyFrom(final ExtraDataEntry other) { + public FloorSavedValueMapEntry copyFrom(final FloorSavedValueMapEntry other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -1627,7 +1608,7 @@ public final class SceneInfoOuterClass { } @Override - public ExtraDataEntry mergeFrom(final ExtraDataEntry other) { + public FloorSavedValueMapEntry mergeFrom(final FloorSavedValueMapEntry other) { if (other.isEmpty()) { return this; } @@ -1642,7 +1623,7 @@ public final class SceneInfoOuterClass { } @Override - public ExtraDataEntry clear() { + public FloorSavedValueMapEntry clear() { if (isEmpty()) { return this; } @@ -1654,7 +1635,7 @@ public final class SceneInfoOuterClass { } @Override - public ExtraDataEntry clearQuick() { + public FloorSavedValueMapEntry clearQuick() { if (isEmpty()) { return this; } @@ -1669,10 +1650,10 @@ public final class SceneInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof ExtraDataEntry)) { + if (!(o instanceof FloorSavedValueMapEntry)) { return false; } - ExtraDataEntry other = (ExtraDataEntry) o; + FloorSavedValueMapEntry other = (FloorSavedValueMapEntry) o; return bitField0_ == other.bitField0_ && (!hasValue() || value_ == other.value_) && (!hasKey() || key.equals(other.key)); @@ -1704,7 +1685,7 @@ public final class SceneInfoOuterClass { @Override @SuppressWarnings("fallthrough") - public ExtraDataEntry mergeFrom(final ProtoSource input) throws IOException { + public FloorSavedValueMapEntry mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -1754,7 +1735,7 @@ public final class SceneInfoOuterClass { } @Override - public ExtraDataEntry mergeFrom(final JsonSource input) throws IOException { + public FloorSavedValueMapEntry mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -1793,8 +1774,8 @@ public final class SceneInfoOuterClass { } @Override - public ExtraDataEntry clone() { - return new ExtraDataEntry().copyFrom(this); + public FloorSavedValueMapEntry clone() { + return new FloorSavedValueMapEntry().copyFrom(this); } @Override @@ -1802,32 +1783,32 @@ public final class SceneInfoOuterClass { return ((bitField0_) == 0); } - public static ExtraDataEntry parseFrom(final byte[] data) throws + public static FloorSavedValueMapEntry parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ExtraDataEntry(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new FloorSavedValueMapEntry(), data).checkInitialized(); } - public static ExtraDataEntry parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ExtraDataEntry(), input).checkInitialized(); + public static FloorSavedValueMapEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FloorSavedValueMapEntry(), input).checkInitialized(); } - public static ExtraDataEntry parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ExtraDataEntry(), input).checkInitialized(); + public static FloorSavedValueMapEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FloorSavedValueMapEntry(), input).checkInitialized(); } /** - * @return factory for creating ExtraDataEntry messages + * @return factory for creating FloorSavedValueMapEntry messages */ - public static MessageFactory getFactory() { - return ExtraDataEntryFactory.INSTANCE; + public static MessageFactory getFactory() { + return FloorSavedValueMapEntryFactory.INSTANCE; } - private enum ExtraDataEntryFactory implements MessageFactory { + private enum FloorSavedValueMapEntryFactory implements MessageFactory { INSTANCE; @Override - public ExtraDataEntry create() { - return ExtraDataEntry.newInstance(); + public FloorSavedValueMapEntry create() { + return FloorSavedValueMapEntry.newInstance(); } } @@ -1854,12 +1835,12 @@ public final class SceneInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName gameModeType = FieldName.forField("gameModeType", "game_mode_type"); static final FieldName clientPosVersion = FieldName.forField("clientPosVersion", "client_pos_version"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); static final FieldName entryId = FieldName.forField("entryId", "entry_id"); @@ -1868,19 +1849,19 @@ public final class SceneInfoOuterClass { static final FieldName worldId = FieldName.forField("worldId", "world_id"); + static final FieldName gameId = FieldName.forField("gameId", "game_id"); + static final FieldName contentId = FieldName.forField("contentId", "content_id"); - static final FieldName groupIdList = FieldName.forField("groupIdList", "group_id_list"); - - static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); + static final FieldName sceneIdentifier = FieldName.forField("sceneIdentifier", "scene_identifier"); static final FieldName entityList = FieldName.forField("entityList", "entity_list"); - static final FieldName extraData = FieldName.forField("extraData", "extra_data"); - - static final FieldName groupStateList = FieldName.forField("groupStateList", "group_state_list"); + static final FieldName floorSavedValueMap = FieldName.forField("floorSavedValueMap", "floor_saved_value_map"); static final FieldName entityGroupList = FieldName.forField("entityGroupList", "entity_group_list"); + + static final FieldName groupStateList = FieldName.forField("groupStateList", "group_state_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMapInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMapInfoOuterClass.java new file mode 100644 index 0000000..bc72c17 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SceneMapInfoOuterClass.java @@ -0,0 +1,1740 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class SceneMapInfoOuterClass { + /** + * Protobuf type {@code SceneMapInfo} + */ + public static final class SceneMapInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 entry_id = 1; + */ + private int entryId; + + /** + * optional uint32 chest_monster_num = 3; + */ + private int chestMonsterNum; + + /** + * optional uint32 floor_id = 7; + */ + private int floorId; + + /** + * optional uint32 dimension_id = 9; + */ + private int dimensionId; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + /** + * optional .SceneIdentifierInfo scene_identifier = 383; + */ + private final SceneIdentifierInfoOuterClass.SceneIdentifierInfo sceneIdentifier = SceneIdentifierInfoOuterClass.SceneIdentifierInfo.newInstance(); + + /** + * repeated uint32 lighten_section_list = 11; + */ + private final RepeatedInt lightenSectionList = RepeatedInt.newEmptyInstance(); + + /** + * repeated uint32 unlock_teleport_list = 13; + */ + private final RepeatedInt unlockTeleportList = RepeatedInt.newEmptyInstance(); + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + */ + private final RepeatedMessage floorSavedValueMap = RepeatedMessage.newEmptyInstance(FloorSavedValueMapEntry.getFactory()); + + /** + * repeated .MapInfoGroup group_list = 5; + */ + private final RepeatedMessage groupList = RepeatedMessage.newEmptyInstance(MapInfoGroupOuterClass.MapInfoGroup.getFactory()); + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + */ + private final RepeatedMessage mapInfoPropList = RepeatedMessage.newEmptyInstance(MapPropInfoOuterClass.MapPropInfo.getFactory()); + + /** + * repeated .MazeChest chest_list = 12; + */ + private final RepeatedMessage chestList = RepeatedMessage.newEmptyInstance(MazeChestOuterClass.MazeChest.getFactory()); + + private SceneMapInfo() { + } + + /** + * @return a new empty instance of {@code SceneMapInfo} + */ + public static SceneMapInfo newInstance() { + return new SceneMapInfo(); + } + + /** + * optional uint32 entry_id = 1; + * @return whether the entryId field is set + */ + public boolean hasEntryId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 entry_id = 1; + * @return this + */ + public SceneMapInfo clearEntryId() { + bitField0_ &= ~0x00000001; + entryId = 0; + return this; + } + + /** + * optional uint32 entry_id = 1; + * @return the entryId + */ + public int getEntryId() { + return entryId; + } + + /** + * optional uint32 entry_id = 1; + * @param value the entryId to set + * @return this + */ + public SceneMapInfo setEntryId(final int value) { + bitField0_ |= 0x00000001; + entryId = value; + return this; + } + + /** + * optional uint32 chest_monster_num = 3; + * @return whether the chestMonsterNum field is set + */ + public boolean hasChestMonsterNum() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 chest_monster_num = 3; + * @return this + */ + public SceneMapInfo clearChestMonsterNum() { + bitField0_ &= ~0x00000002; + chestMonsterNum = 0; + return this; + } + + /** + * optional uint32 chest_monster_num = 3; + * @return the chestMonsterNum + */ + public int getChestMonsterNum() { + return chestMonsterNum; + } + + /** + * optional uint32 chest_monster_num = 3; + * @param value the chestMonsterNum to set + * @return this + */ + public SceneMapInfo setChestMonsterNum(final int value) { + bitField0_ |= 0x00000002; + chestMonsterNum = value; + return this; + } + + /** + * optional uint32 floor_id = 7; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 floor_id = 7; + * @return this + */ + public SceneMapInfo clearFloorId() { + bitField0_ &= ~0x00000004; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 7; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 7; + * @param value the floorId to set + * @return this + */ + public SceneMapInfo setFloorId(final int value) { + bitField0_ |= 0x00000004; + floorId = value; + return this; + } + + /** + * optional uint32 dimension_id = 9; + * @return whether the dimensionId field is set + */ + public boolean hasDimensionId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 dimension_id = 9; + * @return this + */ + public SceneMapInfo clearDimensionId() { + bitField0_ &= ~0x00000008; + dimensionId = 0; + return this; + } + + /** + * optional uint32 dimension_id = 9; + * @return the dimensionId + */ + public int getDimensionId() { + return dimensionId; + } + + /** + * optional uint32 dimension_id = 9; + * @param value the dimensionId to set + * @return this + */ + public SceneMapInfo setDimensionId(final int value) { + bitField0_ |= 0x00000008; + dimensionId = value; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public SceneMapInfo clearRetcode() { + bitField0_ &= ~0x00000010; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public SceneMapInfo setRetcode(final int value) { + bitField0_ |= 0x00000010; + retcode = value; + return this; + } + + /** + * optional .SceneIdentifierInfo scene_identifier = 383; + * @return whether the sceneIdentifier field is set + */ + public boolean hasSceneIdentifier() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional .SceneIdentifierInfo scene_identifier = 383; + * @return this + */ + public SceneMapInfo clearSceneIdentifier() { + bitField0_ &= ~0x00000020; + sceneIdentifier.clear(); + return this; + } + + /** + * optional .SceneIdentifierInfo scene_identifier = 383; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSceneIdentifier()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneIdentifierInfoOuterClass.SceneIdentifierInfo getSceneIdentifier() { + return sceneIdentifier; + } + + /** + * optional .SceneIdentifierInfo scene_identifier = 383; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneIdentifierInfoOuterClass.SceneIdentifierInfo getMutableSceneIdentifier() { + bitField0_ |= 0x00000020; + return sceneIdentifier; + } + + /** + * optional .SceneIdentifierInfo scene_identifier = 383; + * @param value the sceneIdentifier to set + * @return this + */ + public SceneMapInfo setSceneIdentifier( + final SceneIdentifierInfoOuterClass.SceneIdentifierInfo value) { + bitField0_ |= 0x00000020; + sceneIdentifier.copyFrom(value); + return this; + } + + /** + * repeated uint32 lighten_section_list = 11; + * @return whether the lightenSectionList field is set + */ + public boolean hasLightenSectionList() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * repeated uint32 lighten_section_list = 11; + * @return this + */ + public SceneMapInfo clearLightenSectionList() { + bitField0_ &= ~0x00000040; + lightenSectionList.clear(); + return this; + } + + /** + * repeated uint32 lighten_section_list = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableLightenSectionList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getLightenSectionList() { + return lightenSectionList; + } + + /** + * repeated uint32 lighten_section_list = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableLightenSectionList() { + bitField0_ |= 0x00000040; + return lightenSectionList; + } + + /** + * repeated uint32 lighten_section_list = 11; + * @param value the lightenSectionList to add + * @return this + */ + public SceneMapInfo addLightenSectionList(final int value) { + bitField0_ |= 0x00000040; + lightenSectionList.add(value); + return this; + } + + /** + * repeated uint32 lighten_section_list = 11; + * @param values the lightenSectionList to add + * @return this + */ + public SceneMapInfo addAllLightenSectionList(final int... values) { + bitField0_ |= 0x00000040; + lightenSectionList.addAll(values); + return this; + } + + /** + * repeated uint32 unlock_teleport_list = 13; + * @return whether the unlockTeleportList field is set + */ + public boolean hasUnlockTeleportList() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * repeated uint32 unlock_teleport_list = 13; + * @return this + */ + public SceneMapInfo clearUnlockTeleportList() { + bitField0_ &= ~0x00000080; + unlockTeleportList.clear(); + return this; + } + + /** + * repeated uint32 unlock_teleport_list = 13; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableUnlockTeleportList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getUnlockTeleportList() { + return unlockTeleportList; + } + + /** + * repeated uint32 unlock_teleport_list = 13; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableUnlockTeleportList() { + bitField0_ |= 0x00000080; + return unlockTeleportList; + } + + /** + * repeated uint32 unlock_teleport_list = 13; + * @param value the unlockTeleportList to add + * @return this + */ + public SceneMapInfo addUnlockTeleportList(final int value) { + bitField0_ |= 0x00000080; + unlockTeleportList.add(value); + return this; + } + + /** + * repeated uint32 unlock_teleport_list = 13; + * @param values the unlockTeleportList to add + * @return this + */ + public SceneMapInfo addAllUnlockTeleportList(final int... values) { + bitField0_ |= 0x00000080; + unlockTeleportList.addAll(values); + return this; + } + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + * @return whether the floorSavedValueMap field is set + */ + public boolean hasFloorSavedValueMap() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + * @return this + */ + public SceneMapInfo clearFloorSavedValueMap() { + bitField0_ &= ~0x00000100; + floorSavedValueMap.clear(); + return this; + } + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFloorSavedValueMap()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getFloorSavedValueMap() { + return floorSavedValueMap; + } + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableFloorSavedValueMap() { + bitField0_ |= 0x00000100; + return floorSavedValueMap; + } + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + * @param value the floorSavedValueMap to add + * @return this + */ + public SceneMapInfo addFloorSavedValueMap(final FloorSavedValueMapEntry value) { + bitField0_ |= 0x00000100; + floorSavedValueMap.add(value); + return this; + } + + /** + * repeated .SceneMapInfo.FloorSavedValueMapEntry floor_saved_value_map = 2; + * @param values the floorSavedValueMap to add + * @return this + */ + public SceneMapInfo addAllFloorSavedValueMap(final FloorSavedValueMapEntry... values) { + bitField0_ |= 0x00000100; + floorSavedValueMap.addAll(values); + return this; + } + + /** + * repeated .MapInfoGroup group_list = 5; + * @return whether the groupList field is set + */ + public boolean hasGroupList() { + return (bitField0_ & 0x00000200) != 0; + } + + /** + * repeated .MapInfoGroup group_list = 5; + * @return this + */ + public SceneMapInfo clearGroupList() { + bitField0_ &= ~0x00000200; + groupList.clear(); + return this; + } + + /** + * repeated .MapInfoGroup group_list = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableGroupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getGroupList() { + return groupList; + } + + /** + * repeated .MapInfoGroup group_list = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableGroupList() { + bitField0_ |= 0x00000200; + return groupList; + } + + /** + * repeated .MapInfoGroup group_list = 5; + * @param value the groupList to add + * @return this + */ + public SceneMapInfo addGroupList(final MapInfoGroupOuterClass.MapInfoGroup value) { + bitField0_ |= 0x00000200; + groupList.add(value); + return this; + } + + /** + * repeated .MapInfoGroup group_list = 5; + * @param values the groupList to add + * @return this + */ + public SceneMapInfo addAllGroupList(final MapInfoGroupOuterClass.MapInfoGroup... values) { + bitField0_ |= 0x00000200; + groupList.addAll(values); + return this; + } + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + * @return whether the mapInfoPropList field is set + */ + public boolean hasMapInfoPropList() { + return (bitField0_ & 0x00000400) != 0; + } + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + * @return this + */ + public SceneMapInfo clearMapInfoPropList() { + bitField0_ &= ~0x00000400; + mapInfoPropList.clear(); + return this; + } + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableMapInfoPropList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getMapInfoPropList() { + return mapInfoPropList; + } + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableMapInfoPropList() { + bitField0_ |= 0x00000400; + return mapInfoPropList; + } + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + * @param value the mapInfoPropList to add + * @return this + */ + public SceneMapInfo addMapInfoPropList(final MapPropInfoOuterClass.MapPropInfo value) { + bitField0_ |= 0x00000400; + mapInfoPropList.add(value); + return this; + } + + /** + * repeated .MapPropInfo map_info_prop_list = 6; + * @param values the mapInfoPropList to add + * @return this + */ + public SceneMapInfo addAllMapInfoPropList(final MapPropInfoOuterClass.MapPropInfo... values) { + bitField0_ |= 0x00000400; + mapInfoPropList.addAll(values); + return this; + } + + /** + * repeated .MazeChest chest_list = 12; + * @return whether the chestList field is set + */ + public boolean hasChestList() { + return (bitField0_ & 0x00000800) != 0; + } + + /** + * repeated .MazeChest chest_list = 12; + * @return this + */ + public SceneMapInfo clearChestList() { + bitField0_ &= ~0x00000800; + chestList.clear(); + return this; + } + + /** + * repeated .MazeChest chest_list = 12; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChestList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChestList() { + return chestList; + } + + /** + * repeated .MazeChest chest_list = 12; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableChestList() { + bitField0_ |= 0x00000800; + return chestList; + } + + /** + * repeated .MazeChest chest_list = 12; + * @param value the chestList to add + * @return this + */ + public SceneMapInfo addChestList(final MazeChestOuterClass.MazeChest value) { + bitField0_ |= 0x00000800; + chestList.add(value); + return this; + } + + /** + * repeated .MazeChest chest_list = 12; + * @param values the chestList to add + * @return this + */ + public SceneMapInfo addAllChestList(final MazeChestOuterClass.MazeChest... values) { + bitField0_ |= 0x00000800; + chestList.addAll(values); + return this; + } + + @Override + public SceneMapInfo copyFrom(final SceneMapInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + entryId = other.entryId; + chestMonsterNum = other.chestMonsterNum; + floorId = other.floorId; + dimensionId = other.dimensionId; + retcode = other.retcode; + sceneIdentifier.copyFrom(other.sceneIdentifier); + lightenSectionList.copyFrom(other.lightenSectionList); + unlockTeleportList.copyFrom(other.unlockTeleportList); + floorSavedValueMap.copyFrom(other.floorSavedValueMap); + groupList.copyFrom(other.groupList); + mapInfoPropList.copyFrom(other.mapInfoPropList); + chestList.copyFrom(other.chestList); + } + return this; + } + + @Override + public SceneMapInfo mergeFrom(final SceneMapInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEntryId()) { + setEntryId(other.entryId); + } + if (other.hasChestMonsterNum()) { + setChestMonsterNum(other.chestMonsterNum); + } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasDimensionId()) { + setDimensionId(other.dimensionId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasSceneIdentifier()) { + getMutableSceneIdentifier().mergeFrom(other.sceneIdentifier); + } + if (other.hasLightenSectionList()) { + getMutableLightenSectionList().addAll(other.lightenSectionList); + } + if (other.hasUnlockTeleportList()) { + getMutableUnlockTeleportList().addAll(other.unlockTeleportList); + } + if (other.hasFloorSavedValueMap()) { + getMutableFloorSavedValueMap().addAll(other.floorSavedValueMap); + } + if (other.hasGroupList()) { + getMutableGroupList().addAll(other.groupList); + } + if (other.hasMapInfoPropList()) { + getMutableMapInfoPropList().addAll(other.mapInfoPropList); + } + if (other.hasChestList()) { + getMutableChestList().addAll(other.chestList); + } + return this; + } + + @Override + public SceneMapInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + entryId = 0; + chestMonsterNum = 0; + floorId = 0; + dimensionId = 0; + retcode = 0; + sceneIdentifier.clear(); + lightenSectionList.clear(); + unlockTeleportList.clear(); + floorSavedValueMap.clear(); + groupList.clear(); + mapInfoPropList.clear(); + chestList.clear(); + return this; + } + + @Override + public SceneMapInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + sceneIdentifier.clearQuick(); + lightenSectionList.clear(); + unlockTeleportList.clear(); + floorSavedValueMap.clearQuick(); + groupList.clearQuick(); + mapInfoPropList.clearQuick(); + chestList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SceneMapInfo)) { + return false; + } + SceneMapInfo other = (SceneMapInfo) o; + return bitField0_ == other.bitField0_ + && (!hasEntryId() || entryId == other.entryId) + && (!hasChestMonsterNum() || chestMonsterNum == other.chestMonsterNum) + && (!hasFloorId() || floorId == other.floorId) + && (!hasDimensionId() || dimensionId == other.dimensionId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasSceneIdentifier() || sceneIdentifier.equals(other.sceneIdentifier)) + && (!hasLightenSectionList() || lightenSectionList.equals(other.lightenSectionList)) + && (!hasUnlockTeleportList() || unlockTeleportList.equals(other.unlockTeleportList)) + && (!hasFloorSavedValueMap() || floorSavedValueMap.equals(other.floorSavedValueMap)) + && (!hasGroupList() || groupList.equals(other.groupList)) + && (!hasMapInfoPropList() || mapInfoPropList.equals(other.mapInfoPropList)) + && (!hasChestList() || chestList.equals(other.chestList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(chestMonsterNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(dimensionId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawLittleEndian16((short) 6138); + output.writeMessageNoTag(sceneIdentifier); + } + if ((bitField0_ & 0x00000040) != 0) { + for (int i = 0; i < lightenSectionList.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(lightenSectionList.array()[i]); + } + } + if ((bitField0_ & 0x00000080) != 0) { + for (int i = 0; i < unlockTeleportList.length(); i++) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(unlockTeleportList.array()[i]); + } + } + if ((bitField0_ & 0x00000100) != 0) { + for (int i = 0; i < floorSavedValueMap.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(floorSavedValueMap.get(i)); + } + } + if ((bitField0_ & 0x00000200) != 0) { + for (int i = 0; i < groupList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(groupList.get(i)); + } + } + if ((bitField0_ & 0x00000400) != 0) { + for (int i = 0; i < mapInfoPropList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(mapInfoPropList.get(i)); + } + } + if ((bitField0_ & 0x00000800) != 0) { + for (int i = 0; i < chestList.length(); i++) { + output.writeRawByte((byte) 98); + output.writeMessageNoTag(chestList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(chestMonsterNum); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(dimensionId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2 + ProtoSink.computeMessageSizeNoTag(sceneIdentifier); + } + if ((bitField0_ & 0x00000040) != 0) { + size += (1 * lightenSectionList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(lightenSectionList); + } + if ((bitField0_ & 0x00000080) != 0) { + size += (1 * unlockTeleportList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(unlockTeleportList); + } + if ((bitField0_ & 0x00000100) != 0) { + size += (1 * floorSavedValueMap.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(floorSavedValueMap); + } + if ((bitField0_ & 0x00000200) != 0) { + size += (1 * groupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(groupList); + } + if ((bitField0_ & 0x00000400) != 0) { + size += (1 * mapInfoPropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(mapInfoPropList); + } + if ((bitField0_ & 0x00000800) != 0) { + size += (1 * chestList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chestList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SceneMapInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // entryId + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 24) { + break; + } + } + case 24: { + // chestMonsterNum + chestMonsterNum = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // dimensionId + dimensionId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 3066) { + break; + } + } + case 3066: { + // sceneIdentifier + input.readMessage(sceneIdentifier); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // lightenSectionList [packed=true] + input.readPackedUInt32(lightenSectionList, tag); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // unlockTeleportList [packed=true] + input.readPackedUInt32(unlockTeleportList, tag); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // floorSavedValueMap + tag = input.readRepeatedMessage(floorSavedValueMap, tag); + bitField0_ |= 0x00000100; + if (tag != 42) { + break; + } + } + case 42: { + // groupList + tag = input.readRepeatedMessage(groupList, tag); + bitField0_ |= 0x00000200; + if (tag != 50) { + break; + } + } + case 50: { + // mapInfoPropList + tag = input.readRepeatedMessage(mapInfoPropList, tag); + bitField0_ |= 0x00000400; + if (tag != 98) { + break; + } + } + case 98: { + // chestList + tag = input.readRepeatedMessage(chestList, tag); + bitField0_ |= 0x00000800; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 88: { + // lightenSectionList [packed=false] + tag = input.readRepeatedUInt32(lightenSectionList, tag); + bitField0_ |= 0x00000040; + break; + } + case 104: { + // unlockTeleportList [packed=false] + tag = input.readRepeatedUInt32(unlockTeleportList, tag); + bitField0_ |= 0x00000080; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.entryId, entryId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.chestMonsterNum, chestMonsterNum); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.dimensionId, dimensionId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeMessage(FieldNames.sceneIdentifier, sceneIdentifier); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRepeatedUInt32(FieldNames.lightenSectionList, lightenSectionList); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRepeatedUInt32(FieldNames.unlockTeleportList, unlockTeleportList); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRepeatedMessage(FieldNames.floorSavedValueMap, floorSavedValueMap); + } + if ((bitField0_ & 0x00000200) != 0) { + output.writeRepeatedMessage(FieldNames.groupList, groupList); + } + if ((bitField0_ & 0x00000400) != 0) { + output.writeRepeatedMessage(FieldNames.mapInfoPropList, mapInfoPropList); + } + if ((bitField0_ & 0x00000800) != 0) { + output.writeRepeatedMessage(FieldNames.chestList, chestList); + } + output.endObject(); + } + + @Override + public SceneMapInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 2109430573: + case 156725603: { + if (input.isAtField(FieldNames.chestMonsterNum)) { + if (!input.trySkipNullValue()) { + chestMonsterNum = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -40520415: + case -1256111468: { + if (input.isAtField(FieldNames.dimensionId)) { + if (!input.trySkipNullValue()) { + dimensionId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -219061675: + case -1767155140: { + if (input.isAtField(FieldNames.sceneIdentifier)) { + if (!input.trySkipNullValue()) { + input.readMessage(sceneIdentifier); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1942343836: + case 1328850360: { + if (input.isAtField(FieldNames.lightenSectionList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(lightenSectionList); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1496974387: + case 1328471927: { + if (input.isAtField(FieldNames.unlockTeleportList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(unlockTeleportList); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1901677274: + case 1429033891: { + if (input.isAtField(FieldNames.floorSavedValueMap)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(floorSavedValueMap); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1483226179: + case 1282255454: { + if (input.isAtField(FieldNames.groupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(groupList); + bitField0_ |= 0x00000200; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1002346261: + case -2033897748: { + if (input.isAtField(FieldNames.mapInfoPropList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(mapInfoPropList); + bitField0_ |= 0x00000400; + } + } else { + input.skipUnknownField(); + } + break; + } + case 864723775: + case 1054259996: { + if (input.isAtField(FieldNames.chestList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chestList); + bitField0_ |= 0x00000800; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SceneMapInfo clone() { + return new SceneMapInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SceneMapInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SceneMapInfo(), data).checkInitialized(); + } + + public static SceneMapInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMapInfo(), input).checkInitialized(); + } + + public static SceneMapInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMapInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SceneMapInfo messages + */ + public static MessageFactory getFactory() { + return SceneMapInfoFactory.INSTANCE; + } + + /** + * Protobuf type {@code FloorSavedValueMapEntry} + */ + public static final class FloorSavedValueMapEntry extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional sint32 value = 2; + */ + private int value_; + + /** + * optional string key = 1; + */ + private final Utf8String key = Utf8String.newEmptyInstance(); + + private FloorSavedValueMapEntry() { + } + + /** + * @return a new empty instance of {@code FloorSavedValueMapEntry} + */ + public static FloorSavedValueMapEntry newInstance() { + return new FloorSavedValueMapEntry(); + } + + /** + * optional sint32 value = 2; + * @return whether the value_ field is set + */ + public boolean hasValue() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional sint32 value = 2; + * @return this + */ + public FloorSavedValueMapEntry clearValue() { + bitField0_ &= ~0x00000001; + value_ = 0; + return this; + } + + /** + * optional sint32 value = 2; + * @return the value_ + */ + public int getValue() { + return value_; + } + + /** + * optional sint32 value = 2; + * @param value the value_ to set + * @return this + */ + public FloorSavedValueMapEntry setValue(final int value) { + bitField0_ |= 0x00000001; + value_ = value; + return this; + } + + /** + * optional string key = 1; + * @return whether the key field is set + */ + public boolean hasKey() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional string key = 1; + * @return this + */ + public FloorSavedValueMapEntry clearKey() { + bitField0_ &= ~0x00000002; + key.clear(); + return this; + } + + /** + * optional string key = 1; + * @return the key + */ + public String getKey() { + return key.getString(); + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for reading + */ + public Utf8String getKeyBytes() { + return this.key; + } + + /** + * optional string key = 1; + * @return internal {@code Utf8String} representation of key for modifications + */ + public Utf8String getMutableKeyBytes() { + bitField0_ |= 0x00000002; + return this.key; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public FloorSavedValueMapEntry setKey(final CharSequence value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + /** + * optional string key = 1; + * @param value the key to set + * @return this + */ + public FloorSavedValueMapEntry setKey(final Utf8String value) { + bitField0_ |= 0x00000002; + key.copyFrom(value); + return this; + } + + @Override + public FloorSavedValueMapEntry copyFrom(final FloorSavedValueMapEntry other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + value_ = other.value_; + key.copyFrom(other.key); + } + return this; + } + + @Override + public FloorSavedValueMapEntry mergeFrom(final FloorSavedValueMapEntry other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasValue()) { + setValue(other.value_); + } + if (other.hasKey()) { + getMutableKeyBytes().copyFrom(other.key); + } + return this; + } + + @Override + public FloorSavedValueMapEntry clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + value_ = 0; + key.clear(); + return this; + } + + @Override + public FloorSavedValueMapEntry clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + key.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof FloorSavedValueMapEntry)) { + return false; + } + FloorSavedValueMapEntry other = (FloorSavedValueMapEntry) o; + return bitField0_ == other.bitField0_ + && (!hasValue() || value_ == other.value_) + && (!hasKey() || key.equals(other.key)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeSInt32NoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 10); + output.writeStringNoTag(key); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(value_); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(key); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public FloorSavedValueMapEntry mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // value_ + value_ = input.readSInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 10) { + break; + } + } + case 10: { + // key + input.readString(key); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeSInt32(FieldNames.value_, value_); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeString(FieldNames.key, key); + } + output.endObject(); + } + + @Override + public FloorSavedValueMapEntry mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 111972721: { + if (input.isAtField(FieldNames.value_)) { + if (!input.trySkipNullValue()) { + value_ = input.readSInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 106079: { + if (input.isAtField(FieldNames.key)) { + if (!input.trySkipNullValue()) { + input.readString(key); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public FloorSavedValueMapEntry clone() { + return new FloorSavedValueMapEntry().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static FloorSavedValueMapEntry parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new FloorSavedValueMapEntry(), data).checkInitialized(); + } + + public static FloorSavedValueMapEntry parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new FloorSavedValueMapEntry(), input).checkInitialized(); + } + + public static FloorSavedValueMapEntry parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new FloorSavedValueMapEntry(), input).checkInitialized(); + } + + /** + * @return factory for creating FloorSavedValueMapEntry messages + */ + public static MessageFactory getFactory() { + return FloorSavedValueMapEntryFactory.INSTANCE; + } + + private enum FloorSavedValueMapEntryFactory implements MessageFactory { + INSTANCE; + + @Override + public FloorSavedValueMapEntry create() { + return FloorSavedValueMapEntry.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName value_ = FieldName.forField("value"); + + static final FieldName key = FieldName.forField("key"); + } + } + + private enum SceneMapInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SceneMapInfo create() { + return SceneMapInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + + static final FieldName chestMonsterNum = FieldName.forField("chestMonsterNum", "chest_monster_num"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName dimensionId = FieldName.forField("dimensionId", "dimension_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName sceneIdentifier = FieldName.forField("sceneIdentifier", "scene_identifier"); + + static final FieldName lightenSectionList = FieldName.forField("lightenSectionList", "lighten_section_list"); + + static final FieldName unlockTeleportList = FieldName.forField("unlockTeleportList", "unlock_teleport_list"); + + static final FieldName floorSavedValueMap = FieldName.forField("floorSavedValueMap", "floor_saved_value_map"); + + static final FieldName groupList = FieldName.forField("groupList", "group_list"); + + static final FieldName mapInfoPropList = FieldName.forField("mapInfoPropList", "map_info_prop_list"); + + static final FieldName chestList = FieldName.forField("chestList", "chest_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterExtraInfoOuterClass.java similarity index 55% rename from src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SceneMonsterExtraInfoOuterClass.java index e0e909b..cc498f4 100644 --- a/src/generated/main/emu/lunarcore/proto/RogueBuffRollInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterExtraInfoOuterClass.java @@ -10,31 +10,31 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RogueBuffRollInfoOuterClass { +public final class SceneMonsterExtraInfoOuterClass { /** - * Protobuf type {@code RogueBuffRollInfo} + * Protobuf type {@code SceneMonsterExtraInfo} */ - public static final class RogueBuffRollInfo extends ProtoMessage implements Cloneable { + public static final class SceneMonsterExtraInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - private RogueBuffRollInfo() { + private SceneMonsterExtraInfo() { } /** - * @return a new empty instance of {@code RogueBuffRollInfo} + * @return a new empty instance of {@code SceneMonsterExtraInfo} */ - public static RogueBuffRollInfo newInstance() { - return new RogueBuffRollInfo(); + public static SceneMonsterExtraInfo newInstance() { + return new SceneMonsterExtraInfo(); } @Override - public RogueBuffRollInfo copyFrom(final RogueBuffRollInfo other) { + public SceneMonsterExtraInfo copyFrom(final SceneMonsterExtraInfo other) { cachedSize = other.cachedSize; return this; } @Override - public RogueBuffRollInfo mergeFrom(final RogueBuffRollInfo other) { + public SceneMonsterExtraInfo mergeFrom(final SceneMonsterExtraInfo other) { if (other.isEmpty()) { return this; } @@ -43,7 +43,7 @@ public final class RogueBuffRollInfoOuterClass { } @Override - public RogueBuffRollInfo clear() { + public SceneMonsterExtraInfo clear() { if (isEmpty()) { return this; } @@ -52,7 +52,7 @@ public final class RogueBuffRollInfoOuterClass { } @Override - public RogueBuffRollInfo clearQuick() { + public SceneMonsterExtraInfo clearQuick() { if (isEmpty()) { return this; } @@ -65,10 +65,10 @@ public final class RogueBuffRollInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof RogueBuffRollInfo)) { + if (!(o instanceof SceneMonsterExtraInfo)) { return false; } - RogueBuffRollInfo other = (RogueBuffRollInfo) o; + SceneMonsterExtraInfo other = (SceneMonsterExtraInfo) o; return true; } @@ -84,7 +84,7 @@ public final class RogueBuffRollInfoOuterClass { @Override @SuppressWarnings("fallthrough") - public RogueBuffRollInfo mergeFrom(final ProtoSource input) throws IOException { + public SceneMonsterExtraInfo mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -110,7 +110,7 @@ public final class RogueBuffRollInfoOuterClass { } @Override - public RogueBuffRollInfo mergeFrom(final JsonSource input) throws IOException { + public SceneMonsterExtraInfo mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -127,8 +127,8 @@ public final class RogueBuffRollInfoOuterClass { } @Override - public RogueBuffRollInfo clone() { - return new RogueBuffRollInfo().copyFrom(this); + public SceneMonsterExtraInfo clone() { + return new SceneMonsterExtraInfo().copyFrom(this); } @Override @@ -136,32 +136,32 @@ public final class RogueBuffRollInfoOuterClass { return ((bitField0_) == 0); } - public static RogueBuffRollInfo parseFrom(final byte[] data) throws + public static SceneMonsterExtraInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RogueBuffRollInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SceneMonsterExtraInfo(), data).checkInitialized(); } - public static RogueBuffRollInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffRollInfo(), input).checkInitialized(); + public static SceneMonsterExtraInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonsterExtraInfo(), input).checkInitialized(); } - public static RogueBuffRollInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RogueBuffRollInfo(), input).checkInitialized(); + public static SceneMonsterExtraInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SceneMonsterExtraInfo(), input).checkInitialized(); } /** - * @return factory for creating RogueBuffRollInfo messages + * @return factory for creating SceneMonsterExtraInfo messages */ - public static MessageFactory getFactory() { - return RogueBuffRollInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return SceneMonsterExtraInfoFactory.INSTANCE; } - private enum RogueBuffRollInfoFactory implements MessageFactory { + private enum SceneMonsterExtraInfoFactory implements MessageFactory { INSTANCE; @Override - public RogueBuffRollInfo create() { - return RogueBuffRollInfo.newInstance(); + public SceneMonsterExtraInfo create() { + return SceneMonsterExtraInfo.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java index b1e5cb9..67f711b 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterOuterClass.java @@ -18,21 +18,26 @@ public final class SceneMonsterOuterClass { public static final class SceneMonster extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; - /** - * optional uint32 cur_hp = 2; - */ - private int curHp; - /** * optional uint32 max_hp = 7; */ private int maxHp; + /** + * optional uint32 cur_hp = 11; + */ + private int curHp; + /** * optional uint32 monster_id = 15; */ private int monsterId; + /** + * optional .SceneMonsterExtraInfo extra_info = 8; + */ + private final SceneMonsterExtraInfoOuterClass.SceneMonsterExtraInfo extraInfo = SceneMonsterExtraInfoOuterClass.SceneMonsterExtraInfo.newInstance(); + private SceneMonster() { } @@ -43,49 +48,12 @@ public final class SceneMonsterOuterClass { return new SceneMonster(); } - /** - * optional uint32 cur_hp = 2; - * @return whether the curHp field is set - */ - public boolean hasCurHp() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 cur_hp = 2; - * @return this - */ - public SceneMonster clearCurHp() { - bitField0_ &= ~0x00000001; - curHp = 0; - return this; - } - - /** - * optional uint32 cur_hp = 2; - * @return the curHp - */ - public int getCurHp() { - return curHp; - } - - /** - * optional uint32 cur_hp = 2; - * @param value the curHp to set - * @return this - */ - public SceneMonster setCurHp(final int value) { - bitField0_ |= 0x00000001; - curHp = value; - return this; - } - /** * optional uint32 max_hp = 7; * @return whether the maxHp field is set */ public boolean hasMaxHp() { - return (bitField0_ & 0x00000002) != 0; + return (bitField0_ & 0x00000001) != 0; } /** @@ -93,7 +61,7 @@ public final class SceneMonsterOuterClass { * @return this */ public SceneMonster clearMaxHp() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; maxHp = 0; return this; } @@ -112,11 +80,48 @@ public final class SceneMonsterOuterClass { * @return this */ public SceneMonster setMaxHp(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; maxHp = value; return this; } + /** + * optional uint32 cur_hp = 11; + * @return whether the curHp field is set + */ + public boolean hasCurHp() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 cur_hp = 11; + * @return this + */ + public SceneMonster clearCurHp() { + bitField0_ &= ~0x00000002; + curHp = 0; + return this; + } + + /** + * optional uint32 cur_hp = 11; + * @return the curHp + */ + public int getCurHp() { + return curHp; + } + + /** + * optional uint32 cur_hp = 11; + * @param value the curHp to set + * @return this + */ + public SceneMonster setCurHp(final int value) { + bitField0_ |= 0x00000002; + curHp = value; + return this; + } + /** * optional uint32 monster_id = 15; * @return whether the monsterId field is set @@ -154,14 +159,73 @@ public final class SceneMonsterOuterClass { return this; } + /** + * optional .SceneMonsterExtraInfo extra_info = 8; + * @return whether the extraInfo field is set + */ + public boolean hasExtraInfo() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SceneMonsterExtraInfo extra_info = 8; + * @return this + */ + public SceneMonster clearExtraInfo() { + bitField0_ &= ~0x00000008; + extraInfo.clear(); + return this; + } + + /** + * optional .SceneMonsterExtraInfo extra_info = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableExtraInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneMonsterExtraInfoOuterClass.SceneMonsterExtraInfo getExtraInfo() { + return extraInfo; + } + + /** + * optional .SceneMonsterExtraInfo extra_info = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneMonsterExtraInfoOuterClass.SceneMonsterExtraInfo getMutableExtraInfo() { + bitField0_ |= 0x00000008; + return extraInfo; + } + + /** + * optional .SceneMonsterExtraInfo extra_info = 8; + * @param value the extraInfo to set + * @return this + */ + public SceneMonster setExtraInfo( + final SceneMonsterExtraInfoOuterClass.SceneMonsterExtraInfo value) { + bitField0_ |= 0x00000008; + extraInfo.copyFrom(value); + return this; + } + @Override public SceneMonster copyFrom(final SceneMonster other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curHp = other.curHp; maxHp = other.maxHp; + curHp = other.curHp; monsterId = other.monsterId; + extraInfo.copyFrom(other.extraInfo); } return this; } @@ -172,15 +236,18 @@ public final class SceneMonsterOuterClass { return this; } cachedSize = -1; - if (other.hasCurHp()) { - setCurHp(other.curHp); - } if (other.hasMaxHp()) { setMaxHp(other.maxHp); } + if (other.hasCurHp()) { + setCurHp(other.curHp); + } if (other.hasMonsterId()) { setMonsterId(other.monsterId); } + if (other.hasExtraInfo()) { + getMutableExtraInfo().mergeFrom(other.extraInfo); + } return this; } @@ -191,9 +258,10 @@ public final class SceneMonsterOuterClass { } cachedSize = -1; bitField0_ = 0; - curHp = 0; maxHp = 0; + curHp = 0; monsterId = 0; + extraInfo.clear(); return this; } @@ -204,6 +272,7 @@ public final class SceneMonsterOuterClass { } cachedSize = -1; bitField0_ = 0; + extraInfo.clearQuick(); return this; } @@ -217,39 +286,47 @@ public final class SceneMonsterOuterClass { } SceneMonster other = (SceneMonster) o; return bitField0_ == other.bitField0_ - && (!hasCurHp() || curHp == other.curHp) && (!hasMaxHp() || maxHp == other.maxHp) - && (!hasMonsterId() || monsterId == other.monsterId); + && (!hasCurHp() || curHp == other.curHp) + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasExtraInfo() || extraInfo.equals(other.extraInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(curHp); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); output.writeUInt32NoTag(maxHp); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(curHp); + } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 120); output.writeUInt32NoTag(monsterId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(extraInfo); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(maxHp); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(maxHp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curHp); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(extraInfo); + } return size; } @@ -260,18 +337,18 @@ public final class SceneMonsterOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // curHp - curHp = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 56) { - break; - } - } case 56: { // maxHp maxHp = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // curHp + curHp = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 120) { @@ -283,6 +360,15 @@ public final class SceneMonsterOuterClass { monsterId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // extraInfo + input.readMessage(extraInfo); + bitField0_ |= 0x00000008; + tag = input.readTag(); if (tag != 0) { break; } @@ -305,14 +391,17 @@ public final class SceneMonsterOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curHp, curHp); + output.writeUInt32(FieldNames.maxHp, maxHp); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.maxHp, maxHp); + output.writeUInt32(FieldNames.curHp, curHp); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.monsterId, monsterId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.extraInfo, extraInfo); + } output.endObject(); } @@ -323,11 +412,11 @@ public final class SceneMonsterOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 95026024: - case -1349138585: { - if (input.isAtField(FieldNames.curHp)) { + case 103671180: + case -1081138749: { + if (input.isAtField(FieldNames.maxHp)) { if (!input.trySkipNullValue()) { - curHp = input.readUInt32(); + maxHp = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,11 +424,11 @@ public final class SceneMonsterOuterClass { } break; } - case 103671180: - case -1081138749: { - if (input.isAtField(FieldNames.maxHp)) { + case 95026024: + case -1349138585: { + if (input.isAtField(FieldNames.curHp)) { if (!input.trySkipNullValue()) { - maxHp = input.readUInt32(); + curHp = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -359,6 +448,18 @@ public final class SceneMonsterOuterClass { } break; } + case -253631266: + case 747541373: { + if (input.isAtField(FieldNames.extraInfo)) { + if (!input.trySkipNullValue()) { + input.readMessage(extraInfo); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } default: { input.skipUnknownField(); break; @@ -411,11 +512,13 @@ public final class SceneMonsterOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); - static final FieldName maxHp = FieldName.forField("maxHp", "max_hp"); + static final FieldName curHp = FieldName.forField("curHp", "cur_hp"); + static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName extraInfo = FieldName.forField("extraInfo", "extra_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java index 85bd1cb..5aef87d 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveOuterClass.java @@ -20,30 +20,30 @@ public final class SceneMonsterWaveOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 wave_id = 10; - */ - private int waveId; - - /** - * optional uint32 stage_id = 14; + * optional uint32 stage_id = 3; */ private int stageId; /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional uint32 wave_id = 14; + */ + private int waveId; + + /** + * optional .SceneMonsterWaveParam wave_param = 12; */ private final SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam waveParam = SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.newInstance(); /** - * repeated .ItemList drop_list = 3; - */ - private final RepeatedMessage dropList = RepeatedMessage.newEmptyInstance(ItemListOuterClass.ItemList.getFactory()); - - /** - * repeated .SceneMonster monster_list = 4; + * repeated .SceneMonster monster_list = 6; */ private final RepeatedMessage monsterList = RepeatedMessage.newEmptyInstance(SceneMonsterOuterClass.SceneMonster.getFactory()); + /** + * repeated .ItemList drop_list = 9; + */ + private final RepeatedMessage dropList = RepeatedMessage.newEmptyInstance(ItemListOuterClass.ItemList.getFactory()); + private SceneMonsterWave() { } @@ -55,62 +55,25 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional uint32 wave_id = 10; - * @return whether the waveId field is set + * optional uint32 stage_id = 3; + * @return whether the stageId field is set */ - public boolean hasWaveId() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 wave_id = 10; - * @return this - */ - public SceneMonsterWave clearWaveId() { - bitField0_ &= ~0x00000001; - waveId = 0; - return this; - } - - /** - * optional uint32 wave_id = 10; - * @return the waveId - */ - public int getWaveId() { - return waveId; - } - - /** - * optional uint32 wave_id = 10; - * @param value the waveId to set - * @return this - */ - public SceneMonsterWave setWaveId(final int value) { - bitField0_ |= 0x00000001; - waveId = value; - return this; - } - - /** - * optional uint32 stage_id = 14; - * @return whether the stageId field is set - */ - public boolean hasStageId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 stage_id = 14; + * optional uint32 stage_id = 3; * @return this */ public SceneMonsterWave clearStageId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; stageId = 0; return this; } /** - * optional uint32 stage_id = 14; + * optional uint32 stage_id = 3; * @return the stageId */ public int getStageId() { @@ -118,18 +81,55 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional uint32 stage_id = 14; + * optional uint32 stage_id = 3; * @param value the stageId to set * @return this */ public SceneMonsterWave setStageId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; stageId = value; return this; } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional uint32 wave_id = 14; + * @return whether the waveId field is set + */ + public boolean hasWaveId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 wave_id = 14; + * @return this + */ + public SceneMonsterWave clearWaveId() { + bitField0_ &= ~0x00000002; + waveId = 0; + return this; + } + + /** + * optional uint32 wave_id = 14; + * @return the waveId + */ + public int getWaveId() { + return waveId; + } + + /** + * optional uint32 wave_id = 14; + * @param value the waveId to set + * @return this + */ + public SceneMonsterWave setWaveId(final int value) { + bitField0_ |= 0x00000002; + waveId = value; + return this; + } + + /** + * optional .SceneMonsterWaveParam wave_param = 12; * @return whether the waveParam field is set */ public boolean hasWaveParam() { @@ -137,7 +137,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 12; * @return this */ public SceneMonsterWave clearWaveParam() { @@ -147,7 +147,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -161,7 +161,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -175,7 +175,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * optional .SceneMonsterWaveParam wave_param = 13; + * optional .SceneMonsterWaveParam wave_param = 12; * @param value the waveParam to set * @return this */ @@ -187,93 +187,25 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .ItemList drop_list = 3; - * @return whether the dropList field is set + * repeated .SceneMonster monster_list = 6; + * @return whether the monsterList field is set */ - public boolean hasDropList() { + public boolean hasMonsterList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated .ItemList drop_list = 3; - * @return this - */ - public SceneMonsterWave clearDropList() { - bitField0_ &= ~0x00000008; - dropList.clear(); - return this; - } - - /** - * repeated .ItemList drop_list = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDropList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getDropList() { - return dropList; - } - - /** - * repeated .ItemList drop_list = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableDropList() { - bitField0_ |= 0x00000008; - return dropList; - } - - /** - * repeated .ItemList drop_list = 3; - * @param value the dropList to add - * @return this - */ - public SceneMonsterWave addDropList(final ItemListOuterClass.ItemList value) { - bitField0_ |= 0x00000008; - dropList.add(value); - return this; - } - - /** - * repeated .ItemList drop_list = 3; - * @param values the dropList to add - * @return this - */ - public SceneMonsterWave addAllDropList(final ItemListOuterClass.ItemList... values) { - bitField0_ |= 0x00000008; - dropList.addAll(values); - return this; - } - - /** - * repeated .SceneMonster monster_list = 4; - * @return whether the monsterList field is set - */ - public boolean hasMonsterList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated .SceneMonster monster_list = 4; + * repeated .SceneMonster monster_list = 6; * @return this */ public SceneMonsterWave clearMonsterList() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; monsterList.clear(); return this; } /** - * repeated .SceneMonster monster_list = 4; + * repeated .SceneMonster monster_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -287,7 +219,7 @@ public final class SceneMonsterWaveOuterClass { } /** - * repeated .SceneMonster monster_list = 4; + * repeated .SceneMonster monster_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -296,42 +228,110 @@ public final class SceneMonsterWaveOuterClass { * @return internal storage object for modifications */ public RepeatedMessage getMutableMonsterList() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; return monsterList; } /** - * repeated .SceneMonster monster_list = 4; + * repeated .SceneMonster monster_list = 6; * @param value the monsterList to add * @return this */ public SceneMonsterWave addMonsterList(final SceneMonsterOuterClass.SceneMonster value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; monsterList.add(value); return this; } /** - * repeated .SceneMonster monster_list = 4; + * repeated .SceneMonster monster_list = 6; * @param values the monsterList to add * @return this */ public SceneMonsterWave addAllMonsterList(final SceneMonsterOuterClass.SceneMonster... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; monsterList.addAll(values); return this; } + /** + * repeated .ItemList drop_list = 9; + * @return whether the dropList field is set + */ + public boolean hasDropList() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * repeated .ItemList drop_list = 9; + * @return this + */ + public SceneMonsterWave clearDropList() { + bitField0_ &= ~0x00000010; + dropList.clear(); + return this; + } + + /** + * repeated .ItemList drop_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableDropList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getDropList() { + return dropList; + } + + /** + * repeated .ItemList drop_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableDropList() { + bitField0_ |= 0x00000010; + return dropList; + } + + /** + * repeated .ItemList drop_list = 9; + * @param value the dropList to add + * @return this + */ + public SceneMonsterWave addDropList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000010; + dropList.add(value); + return this; + } + + /** + * repeated .ItemList drop_list = 9; + * @param values the dropList to add + * @return this + */ + public SceneMonsterWave addAllDropList(final ItemListOuterClass.ItemList... values) { + bitField0_ |= 0x00000010; + dropList.addAll(values); + return this; + } + @Override public SceneMonsterWave copyFrom(final SceneMonsterWave other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - waveId = other.waveId; stageId = other.stageId; + waveId = other.waveId; waveParam.copyFrom(other.waveParam); - dropList.copyFrom(other.dropList); monsterList.copyFrom(other.monsterList); + dropList.copyFrom(other.dropList); } return this; } @@ -342,21 +342,21 @@ public final class SceneMonsterWaveOuterClass { return this; } cachedSize = -1; - if (other.hasWaveId()) { - setWaveId(other.waveId); - } if (other.hasStageId()) { setStageId(other.stageId); } + if (other.hasWaveId()) { + setWaveId(other.waveId); + } if (other.hasWaveParam()) { getMutableWaveParam().mergeFrom(other.waveParam); } - if (other.hasDropList()) { - getMutableDropList().addAll(other.dropList); - } if (other.hasMonsterList()) { getMutableMonsterList().addAll(other.monsterList); } + if (other.hasDropList()) { + getMutableDropList().addAll(other.dropList); + } return this; } @@ -367,11 +367,11 @@ public final class SceneMonsterWaveOuterClass { } cachedSize = -1; bitField0_ = 0; - waveId = 0; stageId = 0; + waveId = 0; waveParam.clear(); - dropList.clear(); monsterList.clear(); + dropList.clear(); return this; } @@ -383,8 +383,8 @@ public final class SceneMonsterWaveOuterClass { cachedSize = -1; bitField0_ = 0; waveParam.clearQuick(); - dropList.clearQuick(); monsterList.clearQuick(); + dropList.clearQuick(); return this; } @@ -398,37 +398,37 @@ public final class SceneMonsterWaveOuterClass { } SceneMonsterWave other = (SceneMonsterWave) o; return bitField0_ == other.bitField0_ - && (!hasWaveId() || waveId == other.waveId) && (!hasStageId() || stageId == other.stageId) + && (!hasWaveId() || waveId == other.waveId) && (!hasWaveParam() || waveParam.equals(other.waveParam)) - && (!hasDropList() || dropList.equals(other.dropList)) - && (!hasMonsterList() || monsterList.equals(other.monsterList)); + && (!hasMonsterList() || monsterList.equals(other.monsterList)) + && (!hasDropList() || dropList.equals(other.dropList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(waveId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(stageId); + output.writeUInt32NoTag(waveId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 106); + output.writeRawByte((byte) 98); output.writeMessageNoTag(waveParam); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < dropList.length(); i++) { - output.writeRawByte((byte) 26); - output.writeMessageNoTag(dropList.get(i)); + for (int i = 0; i < monsterList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(monsterList.get(i)); } } if ((bitField0_ & 0x00000010) != 0) { - for (int i = 0; i < monsterList.length(); i++) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(monsterList.get(i)); + for (int i = 0; i < dropList.length(); i++) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(dropList.get(i)); } } } @@ -437,19 +437,19 @@ public final class SceneMonsterWaveOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(waveId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveId); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(waveParam); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * dropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dropList); + size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); } if ((bitField0_ & 0x00000010) != 0) { - size += (1 * monsterList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(monsterList); + size += (1 * dropList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dropList); } return size; } @@ -461,9 +461,9 @@ public final class SceneMonsterWaveOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // waveId - waveId = input.readUInt32(); + case 24: { + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 112) { @@ -471,34 +471,34 @@ public final class SceneMonsterWaveOuterClass { } } case 112: { - // stageId - stageId = input.readUInt32(); + // waveId + waveId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 106) { + if (tag != 98) { break; } } - case 106: { + case 98: { // waveParam input.readMessage(waveParam); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 26) { + if (tag != 50) { break; } } - case 26: { - // dropList - tag = input.readRepeatedMessage(dropList, tag); - bitField0_ |= 0x00000008; - if (tag != 34) { - break; - } - } - case 34: { + case 50: { // monsterList tag = input.readRepeatedMessage(monsterList, tag); + bitField0_ |= 0x00000008; + if (tag != 74) { + break; + } + } + case 74: { + // dropList + tag = input.readRepeatedMessage(dropList, tag); bitField0_ |= 0x00000010; if (tag != 0) { break; @@ -522,19 +522,19 @@ public final class SceneMonsterWaveOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.waveId, waveId); + output.writeUInt32(FieldNames.stageId, stageId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.stageId, stageId); + output.writeUInt32(FieldNames.waveId, waveId); } if ((bitField0_ & 0x00000004) != 0) { output.writeMessage(FieldNames.waveParam, waveParam); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedMessage(FieldNames.dropList, dropList); + output.writeRepeatedMessage(FieldNames.monsterList, monsterList); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRepeatedMessage(FieldNames.monsterList, monsterList); + output.writeRepeatedMessage(FieldNames.dropList, dropList); } output.endObject(); } @@ -546,11 +546,11 @@ public final class SceneMonsterWaveOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -794902028: - case 1127862305: { - if (input.isAtField(FieldNames.waveId)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - waveId = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -558,11 +558,11 @@ public final class SceneMonsterWaveOuterClass { } break; } - case -1897528135: - case 1306191356: { - if (input.isAtField(FieldNames.stageId)) { + case -794902028: + case 1127862305: { + if (input.isAtField(FieldNames.waveId)) { if (!input.trySkipNullValue()) { - stageId = input.readUInt32(); + waveId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -582,11 +582,11 @@ public final class SceneMonsterWaveOuterClass { } break; } - case -432782291: - case -513722386: { - if (input.isAtField(FieldNames.dropList)) { + case 1541271448: + case 552401379: { + if (input.isAtField(FieldNames.monsterList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(dropList); + input.readRepeatedMessage(monsterList); bitField0_ |= 0x00000008; } } else { @@ -594,11 +594,11 @@ public final class SceneMonsterWaveOuterClass { } break; } - case 1541271448: - case 552401379: { - if (input.isAtField(FieldNames.monsterList)) { + case -432782291: + case -513722386: { + if (input.isAtField(FieldNames.dropList)) { if (!input.trySkipNullValue()) { - input.readRepeatedMessage(monsterList); + input.readRepeatedMessage(dropList); bitField0_ |= 0x00000010; } } else { @@ -659,15 +659,15 @@ public final class SceneMonsterWaveOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName waveId = FieldName.forField("waveId", "wave_id"); - static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + static final FieldName waveId = FieldName.forField("waveId", "wave_id"); + static final FieldName waveParam = FieldName.forField("waveParam", "wave_param"); - static final FieldName dropList = FieldName.forField("dropList", "drop_list"); - static final FieldName monsterList = FieldName.forField("monsterList", "monster_list"); + + static final FieldName dropList = FieldName.forField("dropList", "drop_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java index ae5cfce..d4a3c31 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneMonsterWaveParamOuterClass.java @@ -19,7 +19,7 @@ public final class SceneMonsterWaveParamOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 level = 5; + * optional uint32 level = 14; */ private int level; @@ -34,7 +34,7 @@ public final class SceneMonsterWaveParamOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 14; * @return whether the level field is set */ public boolean hasLevel() { @@ -42,7 +42,7 @@ public final class SceneMonsterWaveParamOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 14; * @return this */ public SceneMonsterWaveParam clearLevel() { @@ -52,7 +52,7 @@ public final class SceneMonsterWaveParamOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 14; * @return the level */ public int getLevel() { @@ -60,7 +60,7 @@ public final class SceneMonsterWaveParamOuterClass { } /** - * optional uint32 level = 5; + * optional uint32 level = 14; * @param value the level to set * @return this */ @@ -129,7 +129,7 @@ public final class SceneMonsterWaveParamOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(level); } } @@ -150,7 +150,7 @@ public final class SceneMonsterWaveParamOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 112: { // level level = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java index af82397..834fa20 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcInfoOuterClass.java @@ -24,7 +24,7 @@ public final class SceneNpcInfoOuterClass { private int npcId; /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 12; */ private final NpcExtraInfoOuterClass.NpcExtraInfo extraInfo = NpcExtraInfoOuterClass.NpcExtraInfo.newInstance(); @@ -76,7 +76,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 12; * @return whether the extraInfo field is set */ public boolean hasExtraInfo() { @@ -84,7 +84,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 12; * @return this */ public SceneNpcInfo clearExtraInfo() { @@ -94,7 +94,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 12; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 12; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class SceneNpcInfoOuterClass { } /** - * optional .NpcExtraInfo extra_info = 6; + * optional .NpcExtraInfo extra_info = 12; * @param value the extraInfo to set * @return this */ @@ -202,7 +202,7 @@ public final class SceneNpcInfoOuterClass { output.writeUInt32NoTag(npcId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 98); output.writeMessageNoTag(extraInfo); } } @@ -231,11 +231,11 @@ public final class SceneNpcInfoOuterClass { npcId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 98) { break; } } - case 50: { + case 98: { // extraInfo input.readMessage(extraInfo); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java index b7de67a..e77a245 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneNpcMonsterInfoOuterClass.java @@ -19,20 +19,20 @@ public final class SceneNpcMonsterInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 event_id = 1; - */ - private int eventId; - - /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 7; */ private int worldLevel; /** - * optional uint32 monster_id = 12; + * optional uint32 monster_id = 11; */ private int monsterId; + /** + * optional uint32 event_id = 13; + */ + private int eventId; + private SceneNpcMonsterInfo() { } @@ -44,62 +44,25 @@ public final class SceneNpcMonsterInfoOuterClass { } /** - * optional uint32 event_id = 1; - * @return whether the eventId field is set + * optional uint32 world_level = 7; + * @return whether the worldLevel field is set */ - public boolean hasEventId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 event_id = 1; - * @return this - */ - public SceneNpcMonsterInfo clearEventId() { - bitField0_ &= ~0x00000001; - eventId = 0; - return this; - } - - /** - * optional uint32 event_id = 1; - * @return the eventId - */ - public int getEventId() { - return eventId; - } - - /** - * optional uint32 event_id = 1; - * @param value the eventId to set - * @return this - */ - public SceneNpcMonsterInfo setEventId(final int value) { - bitField0_ |= 0x00000001; - eventId = value; - return this; - } - - /** - * optional uint32 world_level = 10; - * @return whether the worldLevel field is set - */ - public boolean hasWorldLevel() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 7; * @return this */ public SceneNpcMonsterInfo clearWorldLevel() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; worldLevel = 0; return this; } /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 7; * @return the worldLevel */ public int getWorldLevel() { @@ -107,36 +70,36 @@ public final class SceneNpcMonsterInfoOuterClass { } /** - * optional uint32 world_level = 10; + * optional uint32 world_level = 7; * @param value the worldLevel to set * @return this */ public SceneNpcMonsterInfo setWorldLevel(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; worldLevel = value; return this; } /** - * optional uint32 monster_id = 12; + * optional uint32 monster_id = 11; * @return whether the monsterId field is set */ public boolean hasMonsterId() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 monster_id = 12; + * optional uint32 monster_id = 11; * @return this */ public SceneNpcMonsterInfo clearMonsterId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; monsterId = 0; return this; } /** - * optional uint32 monster_id = 12; + * optional uint32 monster_id = 11; * @return the monsterId */ public int getMonsterId() { @@ -144,24 +107,61 @@ public final class SceneNpcMonsterInfoOuterClass { } /** - * optional uint32 monster_id = 12; + * optional uint32 monster_id = 11; * @param value the monsterId to set * @return this */ public SceneNpcMonsterInfo setMonsterId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; monsterId = value; return this; } + /** + * optional uint32 event_id = 13; + * @return whether the eventId field is set + */ + public boolean hasEventId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 event_id = 13; + * @return this + */ + public SceneNpcMonsterInfo clearEventId() { + bitField0_ &= ~0x00000004; + eventId = 0; + return this; + } + + /** + * optional uint32 event_id = 13; + * @return the eventId + */ + public int getEventId() { + return eventId; + } + + /** + * optional uint32 event_id = 13; + * @param value the eventId to set + * @return this + */ + public SceneNpcMonsterInfo setEventId(final int value) { + bitField0_ |= 0x00000004; + eventId = value; + return this; + } + @Override public SceneNpcMonsterInfo copyFrom(final SceneNpcMonsterInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - eventId = other.eventId; worldLevel = other.worldLevel; monsterId = other.monsterId; + eventId = other.eventId; } return this; } @@ -172,15 +172,15 @@ public final class SceneNpcMonsterInfoOuterClass { return this; } cachedSize = -1; - if (other.hasEventId()) { - setEventId(other.eventId); - } if (other.hasWorldLevel()) { setWorldLevel(other.worldLevel); } if (other.hasMonsterId()) { setMonsterId(other.monsterId); } + if (other.hasEventId()) { + setEventId(other.eventId); + } return this; } @@ -191,9 +191,9 @@ public final class SceneNpcMonsterInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - eventId = 0; worldLevel = 0; monsterId = 0; + eventId = 0; return this; } @@ -217,39 +217,39 @@ public final class SceneNpcMonsterInfoOuterClass { } SceneNpcMonsterInfo other = (SceneNpcMonsterInfo) o; return bitField0_ == other.bitField0_ - && (!hasEventId() || eventId == other.eventId) && (!hasWorldLevel() || worldLevel == other.worldLevel) - && (!hasMonsterId() || monsterId == other.monsterId); + && (!hasMonsterId() || monsterId == other.monsterId) + && (!hasEventId() || eventId == other.eventId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(eventId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(worldLevel); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); output.writeUInt32NoTag(monsterId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(eventId); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(monsterId); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(eventId); + } return size; } @@ -260,27 +260,27 @@ public final class SceneNpcMonsterInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // eventId - eventId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { + case 56: { // worldLevel worldLevel = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 88) { break; } } - case 96: { + case 88: { // monsterId monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // eventId + eventId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,14 +305,14 @@ public final class SceneNpcMonsterInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.eventId, eventId); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.worldLevel, worldLevel); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.monsterId, monsterId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.eventId, eventId); + } output.endObject(); } @@ -323,24 +323,12 @@ public final class SceneNpcMonsterInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1376502443: - case 278118624: { - if (input.isAtField(FieldNames.eventId)) { - if (!input.trySkipNullValue()) { - eventId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 440007442: case 1305257111: { if (input.isAtField(FieldNames.worldLevel)) { if (!input.trySkipNullValue()) { worldLevel = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -352,6 +340,18 @@ public final class SceneNpcMonsterInfoOuterClass { if (input.isAtField(FieldNames.monsterId)) { if (!input.trySkipNullValue()) { monsterId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1376502443: + case 278118624: { + if (input.isAtField(FieldNames.eventId)) { + if (!input.trySkipNullValue()) { + eventId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -412,11 +412,11 @@ public final class SceneNpcMonsterInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName eventId = FieldName.forField("eventId", "event_id"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); static final FieldName monsterId = FieldName.forField("monsterId", "monster_id"); + + static final FieldName eventId = FieldName.forField("eventId", "event_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java index 8bceac8..3cfc17a 100644 --- a/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ScenePlaneEventScNotifyOuterClass.java @@ -19,7 +19,11 @@ public final class ScenePlaneEventScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ItemList get_item_list = 6; + *
+     *  ItemList get_item_list = 2;
+     * 
+ * + * optional .ItemList get_item_list = 5; */ private final ItemListOuterClass.ItemList getItemList = ItemListOuterClass.ItemList.newInstance(); @@ -34,7 +38,11 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 6; + *
+     *  ItemList get_item_list = 2;
+     * 
+ * + * optional .ItemList get_item_list = 5; * @return whether the getItemList field is set */ public boolean hasGetItemList() { @@ -42,7 +50,11 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 6; + *
+     *  ItemList get_item_list = 2;
+     * 
+ * + * optional .ItemList get_item_list = 5; * @return this */ public ScenePlaneEventScNotify clearGetItemList() { @@ -52,7 +64,11 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 6; + *
+     *  ItemList get_item_list = 2;
+     * 
+ * + * optional .ItemList get_item_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +82,11 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 6; + *
+     *  ItemList get_item_list = 2;
+     * 
+ * + * optional .ItemList get_item_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +100,11 @@ public final class ScenePlaneEventScNotifyOuterClass { } /** - * optional .ItemList get_item_list = 6; + *
+     *  ItemList get_item_list = 2;
+     * 
+ * + * optional .ItemList get_item_list = 5; * @param value the getItemList to set * @return this */ @@ -150,7 +174,7 @@ public final class ScenePlaneEventScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 42); output.writeMessageNoTag(getItemList); } } @@ -171,7 +195,7 @@ public final class ScenePlaneEventScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 42: { // getItemList input.readMessage(getItemList); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java index f2996f0..9aeb5a2 100644 --- a/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ScenePropInfoOuterClass.java @@ -20,32 +20,32 @@ public final class ScenePropInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 create_time_ms = 9; + * optional uint64 create_time_ms = 12; */ private long createTimeMs; /** - * optional uint32 prop_id = 10; - */ - private int propId; - - /** - * optional uint32 life_time_ms = 11; + * optional uint32 life_time_ms = 1; */ private int lifeTimeMs; /** - * optional uint32 prop_state = 12; + * optional uint32 prop_state = 2; */ private int propState; /** - * optional .PropExtraInfo extra_info = 5; + * optional uint32 prop_id = 15; + */ + private int propId; + + /** + * optional .PropExtraInfo extra_info = 9; */ private final PropExtraInfoOuterClass.PropExtraInfo extraInfo = PropExtraInfoOuterClass.PropExtraInfo.newInstance(); /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; */ private final RepeatedString triggerNameList = RepeatedString.newEmptyInstance(); @@ -60,7 +60,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 9; + * optional uint64 create_time_ms = 12; * @return whether the createTimeMs field is set */ public boolean hasCreateTimeMs() { @@ -68,7 +68,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 9; + * optional uint64 create_time_ms = 12; * @return this */ public ScenePropInfo clearCreateTimeMs() { @@ -78,7 +78,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 9; + * optional uint64 create_time_ms = 12; * @return the createTimeMs */ public long getCreateTimeMs() { @@ -86,7 +86,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint64 create_time_ms = 9; + * optional uint64 create_time_ms = 12; * @param value the createTimeMs to set * @return this */ @@ -97,62 +97,25 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint32 prop_id = 10; - * @return whether the propId field is set + * optional uint32 life_time_ms = 1; + * @return whether the lifeTimeMs field is set */ - public boolean hasPropId() { + public boolean hasLifeTimeMs() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 prop_id = 10; - * @return this - */ - public ScenePropInfo clearPropId() { - bitField0_ &= ~0x00000002; - propId = 0; - return this; - } - - /** - * optional uint32 prop_id = 10; - * @return the propId - */ - public int getPropId() { - return propId; - } - - /** - * optional uint32 prop_id = 10; - * @param value the propId to set - * @return this - */ - public ScenePropInfo setPropId(final int value) { - bitField0_ |= 0x00000002; - propId = value; - return this; - } - - /** - * optional uint32 life_time_ms = 11; - * @return whether the lifeTimeMs field is set - */ - public boolean hasLifeTimeMs() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 life_time_ms = 11; + * optional uint32 life_time_ms = 1; * @return this */ public ScenePropInfo clearLifeTimeMs() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; lifeTimeMs = 0; return this; } /** - * optional uint32 life_time_ms = 11; + * optional uint32 life_time_ms = 1; * @return the lifeTimeMs */ public int getLifeTimeMs() { @@ -160,36 +123,36 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint32 life_time_ms = 11; + * optional uint32 life_time_ms = 1; * @param value the lifeTimeMs to set * @return this */ public ScenePropInfo setLifeTimeMs(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; lifeTimeMs = value; return this; } /** - * optional uint32 prop_state = 12; + * optional uint32 prop_state = 2; * @return whether the propState field is set */ public boolean hasPropState() { - return (bitField0_ & 0x00000008) != 0; + return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 prop_state = 12; + * optional uint32 prop_state = 2; * @return this */ public ScenePropInfo clearPropState() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; propState = 0; return this; } /** - * optional uint32 prop_state = 12; + * optional uint32 prop_state = 2; * @return the propState */ public int getPropState() { @@ -197,18 +160,55 @@ public final class ScenePropInfoOuterClass { } /** - * optional uint32 prop_state = 12; + * optional uint32 prop_state = 2; * @param value the propState to set * @return this */ public ScenePropInfo setPropState(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; propState = value; return this; } /** - * optional .PropExtraInfo extra_info = 5; + * optional uint32 prop_id = 15; + * @return whether the propId field is set + */ + public boolean hasPropId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 prop_id = 15; + * @return this + */ + public ScenePropInfo clearPropId() { + bitField0_ &= ~0x00000008; + propId = 0; + return this; + } + + /** + * optional uint32 prop_id = 15; + * @return the propId + */ + public int getPropId() { + return propId; + } + + /** + * optional uint32 prop_id = 15; + * @param value the propId to set + * @return this + */ + public ScenePropInfo setPropId(final int value) { + bitField0_ |= 0x00000008; + propId = value; + return this; + } + + /** + * optional .PropExtraInfo extra_info = 9; * @return whether the extraInfo field is set */ public boolean hasExtraInfo() { @@ -216,7 +216,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 5; + * optional .PropExtraInfo extra_info = 9; * @return this */ public ScenePropInfo clearExtraInfo() { @@ -226,7 +226,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 5; + * optional .PropExtraInfo extra_info = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -240,7 +240,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 5; + * optional .PropExtraInfo extra_info = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -254,7 +254,7 @@ public final class ScenePropInfoOuterClass { } /** - * optional .PropExtraInfo extra_info = 5; + * optional .PropExtraInfo extra_info = 9; * @param value the extraInfo to set * @return this */ @@ -265,7 +265,7 @@ public final class ScenePropInfoOuterClass { } /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; * @return whether the triggerNameList field is set */ public boolean hasTriggerNameList() { @@ -273,7 +273,7 @@ public final class ScenePropInfoOuterClass { } /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; * @return this */ public ScenePropInfo clearTriggerNameList() { @@ -283,7 +283,7 @@ public final class ScenePropInfoOuterClass { } /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -297,7 +297,7 @@ public final class ScenePropInfoOuterClass { } /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -311,7 +311,7 @@ public final class ScenePropInfoOuterClass { } /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; * @param value the triggerNameList to add * @return this */ @@ -322,7 +322,7 @@ public final class ScenePropInfoOuterClass { } /** - * repeated string trigger_name_list = 14; + * repeated string trigger_name_list = 6; * @param values the triggerNameList to add * @return this */ @@ -338,9 +338,9 @@ public final class ScenePropInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; createTimeMs = other.createTimeMs; - propId = other.propId; lifeTimeMs = other.lifeTimeMs; propState = other.propState; + propId = other.propId; extraInfo.copyFrom(other.extraInfo); triggerNameList.copyFrom(other.triggerNameList); } @@ -356,15 +356,15 @@ public final class ScenePropInfoOuterClass { if (other.hasCreateTimeMs()) { setCreateTimeMs(other.createTimeMs); } - if (other.hasPropId()) { - setPropId(other.propId); - } if (other.hasLifeTimeMs()) { setLifeTimeMs(other.lifeTimeMs); } if (other.hasPropState()) { setPropState(other.propState); } + if (other.hasPropId()) { + setPropId(other.propId); + } if (other.hasExtraInfo()) { getMutableExtraInfo().mergeFrom(other.extraInfo); } @@ -382,9 +382,9 @@ public final class ScenePropInfoOuterClass { cachedSize = -1; bitField0_ = 0; createTimeMs = 0L; - propId = 0; lifeTimeMs = 0; propState = 0; + propId = 0; extraInfo.clear(); triggerNameList.clear(); return this; @@ -413,9 +413,9 @@ public final class ScenePropInfoOuterClass { ScenePropInfo other = (ScenePropInfo) o; return bitField0_ == other.bitField0_ && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) - && (!hasPropId() || propId == other.propId) && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) && (!hasPropState() || propState == other.propState) + && (!hasPropId() || propId == other.propId) && (!hasExtraInfo() || extraInfo.equals(other.extraInfo)) && (!hasTriggerNameList() || triggerNameList.equals(other.triggerNameList)); } @@ -423,28 +423,28 @@ public final class ScenePropInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 96); output.writeUInt64NoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(propId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(lifeTimeMs); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 96); + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 16); output.writeUInt32NoTag(propState); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(propId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 74); output.writeMessageNoTag(extraInfo); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < triggerNameList.length(); i++) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 50); output.writeStringNoTag(triggerNameList.get(i)); } } @@ -457,14 +457,14 @@ public final class ScenePropInfoOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(lifeTimeMs); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(propState); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propId); + } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(extraInfo); } @@ -481,52 +481,52 @@ public final class ScenePropInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 96: { // createTimeMs createTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 8) { break; } } - case 80: { - // propId - propId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 8: { // lifeTimeMs lifeTimeMs = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 96) { + if (tag != 16) { break; } } - case 96: { + case 16: { // propState propState = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 42) { + if (tag != 120) { break; } } - case 42: { + case 120: { + // propId + propId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { // extraInfo input.readMessage(extraInfo); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 114) { + if (tag != 50) { break; } } - case 114: { + case 50: { // triggerNameList tag = input.readRepeatedString(triggerNameList, tag); bitField0_ |= 0x00000020; @@ -555,14 +555,14 @@ public final class ScenePropInfoOuterClass { output.writeUInt64(FieldNames.createTimeMs, createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.propId, propId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.lifeTimeMs, lifeTimeMs); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.propState, propState); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.propId, propId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.extraInfo, extraInfo); } @@ -591,24 +591,12 @@ public final class ScenePropInfoOuterClass { } break; } - case -979804194: - case -309137545: { - if (input.isAtField(FieldNames.propId)) { - if (!input.trySkipNullValue()) { - propId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case -1226028177: case 1665182229: { if (input.isAtField(FieldNames.lifeTimeMs)) { if (!input.trySkipNullValue()) { lifeTimeMs = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -620,6 +608,18 @@ public final class ScenePropInfoOuterClass { if (input.isAtField(FieldNames.propState)) { if (!input.trySkipNullValue()) { propState = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -979804194: + case -309137545: { + if (input.isAtField(FieldNames.propId)) { + if (!input.trySkipNullValue()) { + propId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -705,12 +705,12 @@ public final class ScenePropInfoOuterClass { static class FieldNames { static final FieldName createTimeMs = FieldName.forField("createTimeMs", "create_time_ms"); - static final FieldName propId = FieldName.forField("propId", "prop_id"); - static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); static final FieldName propState = FieldName.forField("propState", "prop_state"); + static final FieldName propId = FieldName.forField("propId", "prop_id"); + static final FieldName extraInfo = FieldName.forField("extraInfo", "extra_info"); static final FieldName triggerNameList = FieldName.forField("triggerNameList", "trigger_name_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java index 330e9f2..fcea3df 100644 --- a/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SceneSummonUnitInfoOuterClass.java @@ -20,44 +20,32 @@ public final class SceneSummonUnitInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 5; */ private long createTimeMs; /** - *
-     *  DPAPIBILMKB
-     * 
- * - * optional uint32 attach_entity_id = 4; - */ - private int attachEntityId; - - /** - *
-     *  KGGENGIBIAJ
-     * 
- * - * optional uint32 caster_entity_id = 7; + * optional uint32 caster_entity_id = 1; */ private int casterEntityId; /** - *
-     *  ILNGLEEMFCF
-     * 
- * - * optional uint32 summon_unit_id = 9; + * optional uint32 attach_entity_id = 8; + */ + private int attachEntityId; + + /** + * optional uint32 summon_unit_id = 15; */ private int summonUnitId; /** - * optional sint32 life_time_ms = 5; + * optional sint32 life_time_ms = 7; */ private int lifeTimeMs; /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; */ private final RepeatedString triggerNameList = RepeatedString.newEmptyInstance(); @@ -72,7 +60,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 5; * @return whether the createTimeMs field is set */ public boolean hasCreateTimeMs() { @@ -80,7 +68,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 5; * @return this */ public SceneSummonUnitInfo clearCreateTimeMs() { @@ -90,7 +78,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 5; * @return the createTimeMs */ public long getCreateTimeMs() { @@ -98,7 +86,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional uint64 create_time_ms = 11; + * optional uint64 create_time_ms = 5; * @param value the createTimeMs to set * @return this */ @@ -109,90 +97,25 @@ public final class SceneSummonUnitInfoOuterClass { } /** - *
-     *  DPAPIBILMKB
-     * 
- * - * optional uint32 attach_entity_id = 4; - * @return whether the attachEntityId field is set + * optional uint32 caster_entity_id = 1; + * @return whether the casterEntityId field is set */ - public boolean hasAttachEntityId() { + public boolean hasCasterEntityId() { return (bitField0_ & 0x00000002) != 0; } /** - *
-     *  DPAPIBILMKB
-     * 
- * - * optional uint32 attach_entity_id = 4; - * @return this - */ - public SceneSummonUnitInfo clearAttachEntityId() { - bitField0_ &= ~0x00000002; - attachEntityId = 0; - return this; - } - - /** - *
-     *  DPAPIBILMKB
-     * 
- * - * optional uint32 attach_entity_id = 4; - * @return the attachEntityId - */ - public int getAttachEntityId() { - return attachEntityId; - } - - /** - *
-     *  DPAPIBILMKB
-     * 
- * - * optional uint32 attach_entity_id = 4; - * @param value the attachEntityId to set - * @return this - */ - public SceneSummonUnitInfo setAttachEntityId(final int value) { - bitField0_ |= 0x00000002; - attachEntityId = value; - return this; - } - - /** - *
-     *  KGGENGIBIAJ
-     * 
- * - * optional uint32 caster_entity_id = 7; - * @return whether the casterEntityId field is set - */ - public boolean hasCasterEntityId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - *
-     *  KGGENGIBIAJ
-     * 
- * - * optional uint32 caster_entity_id = 7; + * optional uint32 caster_entity_id = 1; * @return this */ public SceneSummonUnitInfo clearCasterEntityId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; casterEntityId = 0; return this; } /** - *
-     *  KGGENGIBIAJ
-     * 
- * - * optional uint32 caster_entity_id = 7; + * optional uint32 caster_entity_id = 1; * @return the casterEntityId */ public int getCasterEntityId() { @@ -200,26 +123,55 @@ public final class SceneSummonUnitInfoOuterClass { } /** - *
-     *  KGGENGIBIAJ
-     * 
- * - * optional uint32 caster_entity_id = 7; + * optional uint32 caster_entity_id = 1; * @param value the casterEntityId to set * @return this */ public SceneSummonUnitInfo setCasterEntityId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; casterEntityId = value; return this; } /** - *
-     *  ILNGLEEMFCF
-     * 
- * - * optional uint32 summon_unit_id = 9; + * optional uint32 attach_entity_id = 8; + * @return whether the attachEntityId field is set + */ + public boolean hasAttachEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 attach_entity_id = 8; + * @return this + */ + public SceneSummonUnitInfo clearAttachEntityId() { + bitField0_ &= ~0x00000004; + attachEntityId = 0; + return this; + } + + /** + * optional uint32 attach_entity_id = 8; + * @return the attachEntityId + */ + public int getAttachEntityId() { + return attachEntityId; + } + + /** + * optional uint32 attach_entity_id = 8; + * @param value the attachEntityId to set + * @return this + */ + public SceneSummonUnitInfo setAttachEntityId(final int value) { + bitField0_ |= 0x00000004; + attachEntityId = value; + return this; + } + + /** + * optional uint32 summon_unit_id = 15; * @return whether the summonUnitId field is set */ public boolean hasSummonUnitId() { @@ -227,11 +179,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - *
-     *  ILNGLEEMFCF
-     * 
- * - * optional uint32 summon_unit_id = 9; + * optional uint32 summon_unit_id = 15; * @return this */ public SceneSummonUnitInfo clearSummonUnitId() { @@ -241,11 +189,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - *
-     *  ILNGLEEMFCF
-     * 
- * - * optional uint32 summon_unit_id = 9; + * optional uint32 summon_unit_id = 15; * @return the summonUnitId */ public int getSummonUnitId() { @@ -253,11 +197,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - *
-     *  ILNGLEEMFCF
-     * 
- * - * optional uint32 summon_unit_id = 9; + * optional uint32 summon_unit_id = 15; * @param value the summonUnitId to set * @return this */ @@ -268,7 +208,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 5; + * optional sint32 life_time_ms = 7; * @return whether the lifeTimeMs field is set */ public boolean hasLifeTimeMs() { @@ -276,7 +216,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 5; + * optional sint32 life_time_ms = 7; * @return this */ public SceneSummonUnitInfo clearLifeTimeMs() { @@ -286,7 +226,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 5; + * optional sint32 life_time_ms = 7; * @return the lifeTimeMs */ public int getLifeTimeMs() { @@ -294,7 +234,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * optional sint32 life_time_ms = 5; + * optional sint32 life_time_ms = 7; * @param value the lifeTimeMs to set * @return this */ @@ -305,7 +245,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; * @return whether the triggerNameList field is set */ public boolean hasTriggerNameList() { @@ -313,7 +253,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; * @return this */ public SceneSummonUnitInfo clearTriggerNameList() { @@ -323,7 +263,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -337,7 +277,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -351,7 +291,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; * @param value the triggerNameList to add * @return this */ @@ -362,7 +302,7 @@ public final class SceneSummonUnitInfoOuterClass { } /** - * repeated string trigger_name_list = 6; + * repeated string trigger_name_list = 3; * @param values the triggerNameList to add * @return this */ @@ -378,8 +318,8 @@ public final class SceneSummonUnitInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; createTimeMs = other.createTimeMs; - attachEntityId = other.attachEntityId; casterEntityId = other.casterEntityId; + attachEntityId = other.attachEntityId; summonUnitId = other.summonUnitId; lifeTimeMs = other.lifeTimeMs; triggerNameList.copyFrom(other.triggerNameList); @@ -396,12 +336,12 @@ public final class SceneSummonUnitInfoOuterClass { if (other.hasCreateTimeMs()) { setCreateTimeMs(other.createTimeMs); } - if (other.hasAttachEntityId()) { - setAttachEntityId(other.attachEntityId); - } if (other.hasCasterEntityId()) { setCasterEntityId(other.casterEntityId); } + if (other.hasAttachEntityId()) { + setAttachEntityId(other.attachEntityId); + } if (other.hasSummonUnitId()) { setSummonUnitId(other.summonUnitId); } @@ -422,8 +362,8 @@ public final class SceneSummonUnitInfoOuterClass { cachedSize = -1; bitField0_ = 0; createTimeMs = 0L; - attachEntityId = 0; casterEntityId = 0; + attachEntityId = 0; summonUnitId = 0; lifeTimeMs = 0; triggerNameList.clear(); @@ -452,8 +392,8 @@ public final class SceneSummonUnitInfoOuterClass { SceneSummonUnitInfo other = (SceneSummonUnitInfo) o; return bitField0_ == other.bitField0_ && (!hasCreateTimeMs() || createTimeMs == other.createTimeMs) - && (!hasAttachEntityId() || attachEntityId == other.attachEntityId) && (!hasCasterEntityId() || casterEntityId == other.casterEntityId) + && (!hasAttachEntityId() || attachEntityId == other.attachEntityId) && (!hasSummonUnitId() || summonUnitId == other.summonUnitId) && (!hasLifeTimeMs() || lifeTimeMs == other.lifeTimeMs) && (!hasTriggerNameList() || triggerNameList.equals(other.triggerNameList)); @@ -462,28 +402,28 @@ public final class SceneSummonUnitInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 40); output.writeUInt64NoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); - output.writeUInt32NoTag(attachEntityId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(casterEntityId); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(attachEntityId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(summonUnitId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 56); output.writeSInt32NoTag(lifeTimeMs); } if ((bitField0_ & 0x00000020) != 0) { for (int i = 0; i < triggerNameList.length(); i++) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 26); output.writeStringNoTag(triggerNameList.get(i)); } } @@ -496,10 +436,10 @@ public final class SceneSummonUnitInfoOuterClass { size += 1 + ProtoSink.computeUInt64SizeNoTag(createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(attachEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(casterEntityId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(casterEntityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(attachEntityId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(summonUnitId); @@ -520,52 +460,52 @@ public final class SceneSummonUnitInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 40: { // createTimeMs createTimeMs = input.readUInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 8) { break; } } - case 32: { + case 8: { + // casterEntityId + casterEntityId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { // attachEntityId attachEntityId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // summonUnitId + summonUnitId = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 56) { break; } } case 56: { - // casterEntityId - casterEntityId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // summonUnitId - summonUnitId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 40) { - break; - } - } - case 40: { // lifeTimeMs lifeTimeMs = input.readSInt32(); bitField0_ |= 0x00000010; tag = input.readTag(); - if (tag != 50) { + if (tag != 26) { break; } } - case 50: { + case 26: { // triggerNameList tag = input.readRepeatedString(triggerNameList, tag); bitField0_ |= 0x00000020; @@ -594,10 +534,10 @@ public final class SceneSummonUnitInfoOuterClass { output.writeUInt64(FieldNames.createTimeMs, createTimeMs); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.attachEntityId, attachEntityId); + output.writeUInt32(FieldNames.casterEntityId, casterEntityId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.casterEntityId, casterEntityId); + output.writeUInt32(FieldNames.attachEntityId, attachEntityId); } if ((bitField0_ & 0x00000008) != 0) { output.writeUInt32(FieldNames.summonUnitId, summonUnitId); @@ -630,11 +570,11 @@ public final class SceneSummonUnitInfoOuterClass { } break; } - case -900612669: - case -644975235: { - if (input.isAtField(FieldNames.attachEntityId)) { + case -1831162710: + case -1550367068: { + if (input.isAtField(FieldNames.casterEntityId)) { if (!input.trySkipNullValue()) { - attachEntityId = input.readUInt32(); + casterEntityId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -642,11 +582,11 @@ public final class SceneSummonUnitInfoOuterClass { } break; } - case -1831162710: - case -1550367068: { - if (input.isAtField(FieldNames.casterEntityId)) { + case -900612669: + case -644975235: { + if (input.isAtField(FieldNames.attachEntityId)) { if (!input.trySkipNullValue()) { - casterEntityId = input.readUInt32(); + attachEntityId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -745,10 +685,10 @@ public final class SceneSummonUnitInfoOuterClass { static class FieldNames { static final FieldName createTimeMs = FieldName.forField("createTimeMs", "create_time_ms"); - static final FieldName attachEntityId = FieldName.forField("attachEntityId", "attach_entity_id"); - static final FieldName casterEntityId = FieldName.forField("casterEntityId", "caster_entity_id"); + static final FieldName attachEntityId = FieldName.forField("attachEntityId", "attach_entity_id"); + static final FieldName summonUnitId = FieldName.forField("summonUnitId", "summon_unit_id"); static final FieldName lifeTimeMs = FieldName.forField("lifeTimeMs", "life_time_ms"); diff --git a/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java index 6000cf1..abb6fea 100644 --- a/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SearchPlayerCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class SearchPlayerCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; */ private final RepeatedInt searchUidList = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; * @return whether the searchUidList field is set */ public boolean hasSearchUidList() { @@ -43,7 +43,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; * @return this */ public SearchPlayerCsReq clearSearchUidList() { @@ -53,7 +53,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; * @param value the searchUidList to add * @return this */ @@ -92,7 +92,7 @@ public final class SearchPlayerCsReqOuterClass { } /** - * repeated uint32 search_uid_list = 6; + * repeated uint32 search_uid_list = 7; * @param values the searchUidList to add * @return this */ @@ -163,7 +163,7 @@ public final class SearchPlayerCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < searchUidList.length(); i++) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(searchUidList.array()[i]); } } @@ -185,7 +185,7 @@ public final class SearchPlayerCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 58: { // searchUidList [packed=true] input.readPackedUInt32(searchUidList, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class SearchPlayerCsReqOuterClass { tag = input.readTag(); break; } - case 48: { + case 56: { // searchUidList [packed=false] tag = input.readRepeatedUInt32(searchUidList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java index 254a70e..b2e2204 100644 --- a/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SearchPlayerScRspOuterClass.java @@ -20,14 +20,14 @@ public final class SearchPlayerScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; */ private int retcode; /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; */ - private final RepeatedMessage searchResultList = RepeatedMessage.newEmptyInstance(SimpleInfoOuterClass.SimpleInfo.getFactory()); + private final RepeatedMessage searchResultList = RepeatedMessage.newEmptyInstance(PlayerSimpleInfoOuterClass.PlayerSimpleInfo.getFactory()); private SearchPlayerScRsp() { } @@ -40,7 +40,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return this */ public SearchPlayerScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * optional uint32 retcode = 9; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; * @return whether the searchResultList field is set */ public boolean hasSearchResultList() { @@ -85,7 +85,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; * @return this */ public SearchPlayerScRsp clearSearchResultList() { @@ -95,7 +95,7 @@ public final class SearchPlayerScRspOuterClass { } /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -104,12 +104,12 @@ public final class SearchPlayerScRspOuterClass { * * @return internal storage object for reading */ - public RepeatedMessage getSearchResultList() { + public RepeatedMessage getSearchResultList() { return searchResultList; } /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -117,29 +117,31 @@ public final class SearchPlayerScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedMessage getMutableSearchResultList() { + public RepeatedMessage getMutableSearchResultList( + ) { bitField0_ |= 0x00000002; return searchResultList; } /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; * @param value the searchResultList to add * @return this */ - public SearchPlayerScRsp addSearchResultList(final SimpleInfoOuterClass.SimpleInfo value) { + public SearchPlayerScRsp addSearchResultList( + final PlayerSimpleInfoOuterClass.PlayerSimpleInfo value) { bitField0_ |= 0x00000002; searchResultList.add(value); return this; } /** - * repeated .SimpleInfo search_result_list = 11; + * repeated .PlayerSimpleInfo search_result_list = 7; * @param values the searchResultList to add * @return this */ public SearchPlayerScRsp addAllSearchResultList( - final SimpleInfoOuterClass.SimpleInfo... values) { + final PlayerSimpleInfoOuterClass.PlayerSimpleInfo... values) { bitField0_ |= 0x00000002; searchResultList.addAll(values); return this; @@ -211,12 +213,12 @@ public final class SearchPlayerScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < searchResultList.length(); i++) { - output.writeRawByte((byte) 90); + output.writeRawByte((byte) 58); output.writeMessageNoTag(searchResultList.get(i)); } } @@ -241,16 +243,16 @@ public final class SearchPlayerScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 58) { break; } } - case 90: { + case 58: { // searchResultList tag = input.readRepeatedMessage(searchResultList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java index ce015b0..dec3845 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SelectChatBubbleCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 bubble_id = 8; + * optional uint32 bubble_id = 6; */ private int bubbleId; @@ -34,7 +34,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 8; + * optional uint32 bubble_id = 6; * @return whether the bubbleId field is set */ public boolean hasBubbleId() { @@ -42,7 +42,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 8; + * optional uint32 bubble_id = 6; * @return this */ public SelectChatBubbleCsReq clearBubbleId() { @@ -52,7 +52,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 8; + * optional uint32 bubble_id = 6; * @return the bubbleId */ public int getBubbleId() { @@ -60,7 +60,7 @@ public final class SelectChatBubbleCsReqOuterClass { } /** - * optional uint32 bubble_id = 8; + * optional uint32 bubble_id = 6; * @param value the bubbleId to set * @return this */ @@ -129,7 +129,7 @@ public final class SelectChatBubbleCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(bubbleId); } } @@ -150,7 +150,7 @@ public final class SelectChatBubbleCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 48: { // bubbleId bubbleId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java index 7fc1b33..ee9ed9c 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectChatBubbleScRspOuterClass.java @@ -19,15 +19,10 @@ public final class SelectChatBubbleScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; */ private int retcode; - /** - * optional uint32 BDDJODIMMGO = 6; - */ - private int bDDJODIMMGO; - /** * optional uint32 cur_chat_bubble = 15; */ @@ -44,7 +39,7 @@ public final class SelectChatBubbleScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -52,7 +47,7 @@ public final class SelectChatBubbleScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @return this */ public SelectChatBubbleScRsp clearRetcode() { @@ -62,7 +57,7 @@ public final class SelectChatBubbleScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -70,7 +65,7 @@ public final class SelectChatBubbleScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ @@ -80,49 +75,12 @@ public final class SelectChatBubbleScRspOuterClass { return this; } - /** - * optional uint32 BDDJODIMMGO = 6; - * @return whether the bDDJODIMMGO field is set - */ - public boolean hasBDDJODIMMGO() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 BDDJODIMMGO = 6; - * @return this - */ - public SelectChatBubbleScRsp clearBDDJODIMMGO() { - bitField0_ &= ~0x00000002; - bDDJODIMMGO = 0; - return this; - } - - /** - * optional uint32 BDDJODIMMGO = 6; - * @return the bDDJODIMMGO - */ - public int getBDDJODIMMGO() { - return bDDJODIMMGO; - } - - /** - * optional uint32 BDDJODIMMGO = 6; - * @param value the bDDJODIMMGO to set - * @return this - */ - public SelectChatBubbleScRsp setBDDJODIMMGO(final int value) { - bitField0_ |= 0x00000002; - bDDJODIMMGO = value; - return this; - } - /** * optional uint32 cur_chat_bubble = 15; * @return whether the curChatBubble field is set */ public boolean hasCurChatBubble() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** @@ -130,7 +88,7 @@ public final class SelectChatBubbleScRspOuterClass { * @return this */ public SelectChatBubbleScRsp clearCurChatBubble() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; curChatBubble = 0; return this; } @@ -149,7 +107,7 @@ public final class SelectChatBubbleScRspOuterClass { * @return this */ public SelectChatBubbleScRsp setCurChatBubble(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; curChatBubble = value; return this; } @@ -160,7 +118,6 @@ public final class SelectChatBubbleScRspOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - bDDJODIMMGO = other.bDDJODIMMGO; curChatBubble = other.curChatBubble; } return this; @@ -175,9 +132,6 @@ public final class SelectChatBubbleScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasBDDJODIMMGO()) { - setBDDJODIMMGO(other.bDDJODIMMGO); - } if (other.hasCurChatBubble()) { setCurChatBubble(other.curChatBubble); } @@ -192,7 +146,6 @@ public final class SelectChatBubbleScRspOuterClass { cachedSize = -1; bitField0_ = 0; retcode = 0; - bDDJODIMMGO = 0; curChatBubble = 0; return this; } @@ -218,21 +171,16 @@ public final class SelectChatBubbleScRspOuterClass { SelectChatBubbleScRsp other = (SelectChatBubbleScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasBDDJODIMMGO() || bDDJODIMMGO == other.bDDJODIMMGO) && (!hasCurChatBubble() || curChatBubble == other.curChatBubble); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(bDDJODIMMGO); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 120); output.writeUInt32NoTag(curChatBubble); } @@ -245,9 +193,6 @@ public final class SelectChatBubbleScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bDDJODIMMGO); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(curChatBubble); } return size; @@ -260,20 +205,11 @@ public final class SelectChatBubbleScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 112: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // bDDJODIMMGO - bDDJODIMMGO = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 120) { break; } @@ -281,7 +217,7 @@ public final class SelectChatBubbleScRspOuterClass { case 120: { // curChatBubble curChatBubble = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { break; @@ -308,9 +244,6 @@ public final class SelectChatBubbleScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.bDDJODIMMGO, bDDJODIMMGO); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.curChatBubble, curChatBubble); } output.endObject(); @@ -334,23 +267,12 @@ public final class SelectChatBubbleScRspOuterClass { } break; } - case 2063288404: { - if (input.isAtField(FieldNames.bDDJODIMMGO)) { - if (!input.trySkipNullValue()) { - bDDJODIMMGO = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case 94167140: case 1828957140: { if (input.isAtField(FieldNames.curChatBubble)) { if (!input.trySkipNullValue()) { curChatBubble = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -412,8 +334,6 @@ public final class SelectChatBubbleScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName bDDJODIMMGO = FieldName.forField("BDDJODIMMGO"); - static final FieldName curChatBubble = FieldName.forField("curChatBubble", "cur_chat_bubble"); } } diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueNousSubStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectInclinationTextCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/ChessRogueNousSubStoryInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SelectInclinationTextCsReqOuterClass.java index 2d62595..62f4759 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueNousSubStoryInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectInclinationTextCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueNousSubStoryInfoOuterClass { +public final class SelectInclinationTextCsReqOuterClass { /** - * Protobuf type {@code ChessRogueNousSubStoryInfo} + * Protobuf type {@code SelectInclinationTextCsReq} */ - public static final class ChessRogueNousSubStoryInfo extends ProtoMessage implements Cloneable { + public static final class SelectInclinationTextCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 sub_story_id = 5; + * optional uint32 inclination_text_id = 9; */ - private int subStoryId; + private int inclinationTextId; - private ChessRogueNousSubStoryInfo() { + private SelectInclinationTextCsReq() { } /** - * @return a new empty instance of {@code ChessRogueNousSubStoryInfo} + * @return a new empty instance of {@code SelectInclinationTextCsReq} */ - public static ChessRogueNousSubStoryInfo newInstance() { - return new ChessRogueNousSubStoryInfo(); + public static SelectInclinationTextCsReq newInstance() { + return new SelectInclinationTextCsReq(); } /** - * optional uint32 sub_story_id = 5; - * @return whether the subStoryId field is set + * optional uint32 inclination_text_id = 9; + * @return whether the inclinationTextId field is set */ - public boolean hasSubStoryId() { + public boolean hasInclinationTextId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 sub_story_id = 5; + * optional uint32 inclination_text_id = 9; * @return this */ - public ChessRogueNousSubStoryInfo clearSubStoryId() { + public SelectInclinationTextCsReq clearInclinationTextId() { bitField0_ &= ~0x00000001; - subStoryId = 0; + inclinationTextId = 0; return this; } /** - * optional uint32 sub_story_id = 5; - * @return the subStoryId + * optional uint32 inclination_text_id = 9; + * @return the inclinationTextId */ - public int getSubStoryId() { - return subStoryId; + public int getInclinationTextId() { + return inclinationTextId; } /** - * optional uint32 sub_story_id = 5; - * @param value the subStoryId to set + * optional uint32 inclination_text_id = 9; + * @param value the inclinationTextId to set * @return this */ - public ChessRogueNousSubStoryInfo setSubStoryId(final int value) { + public SelectInclinationTextCsReq setInclinationTextId(final int value) { bitField0_ |= 0x00000001; - subStoryId = value; + inclinationTextId = value; return this; } @Override - public ChessRogueNousSubStoryInfo copyFrom(final ChessRogueNousSubStoryInfo other) { + public SelectInclinationTextCsReq copyFrom(final SelectInclinationTextCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - subStoryId = other.subStoryId; + inclinationTextId = other.inclinationTextId; } return this; } @Override - public ChessRogueNousSubStoryInfo mergeFrom(final ChessRogueNousSubStoryInfo other) { + public SelectInclinationTextCsReq mergeFrom(final SelectInclinationTextCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasSubStoryId()) { - setSubStoryId(other.subStoryId); + if (other.hasInclinationTextId()) { + setInclinationTextId(other.inclinationTextId); } return this; } @Override - public ChessRogueNousSubStoryInfo clear() { + public SelectInclinationTextCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - subStoryId = 0; + inclinationTextId = 0; return this; } @Override - public ChessRogueNousSubStoryInfo clearQuick() { + public SelectInclinationTextCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class ChessRogueNousSubStoryInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueNousSubStoryInfo)) { + if (!(o instanceof SelectInclinationTextCsReq)) { return false; } - ChessRogueNousSubStoryInfo other = (ChessRogueNousSubStoryInfo) o; + SelectInclinationTextCsReq other = (SelectInclinationTextCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSubStoryId() || subStoryId == other.subStoryId); + && (!hasInclinationTextId() || inclinationTextId == other.inclinationTextId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(subStoryId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(inclinationTextId); } } @@ -138,21 +138,21 @@ public final class ChessRogueNousSubStoryInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(subStoryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(inclinationTextId); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueNousSubStoryInfo mergeFrom(final ProtoSource input) throws IOException { + public SelectInclinationTextCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // subStoryId - subStoryId = input.readUInt32(); + case 72: { + // inclinationTextId + inclinationTextId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class ChessRogueNousSubStoryInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.subStoryId, subStoryId); + output.writeUInt32(FieldNames.inclinationTextId, inclinationTextId); } output.endObject(); } @Override - public ChessRogueNousSubStoryInfo mergeFrom(final JsonSource input) throws IOException { + public SelectInclinationTextCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 929098384: - case 1899516868: { - if (input.isAtField(FieldNames.subStoryId)) { + case 1954961066: + case -598373616: { + if (input.isAtField(FieldNames.inclinationTextId)) { if (!input.trySkipNullValue()) { - subStoryId = input.readUInt32(); + inclinationTextId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class ChessRogueNousSubStoryInfoOuterClass { } @Override - public ChessRogueNousSubStoryInfo clone() { - return new ChessRogueNousSubStoryInfo().copyFrom(this); + public SelectInclinationTextCsReq clone() { + return new SelectInclinationTextCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class ChessRogueNousSubStoryInfoOuterClass { return ((bitField0_) == 0); } - public static ChessRogueNousSubStoryInfo parseFrom(final byte[] data) throws + public static SelectInclinationTextCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueNousSubStoryInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SelectInclinationTextCsReq(), data).checkInitialized(); } - public static ChessRogueNousSubStoryInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousSubStoryInfo(), input).checkInitialized(); + public static SelectInclinationTextCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectInclinationTextCsReq(), input).checkInitialized(); } - public static ChessRogueNousSubStoryInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueNousSubStoryInfo(), input).checkInitialized(); + public static SelectInclinationTextCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectInclinationTextCsReq(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueNousSubStoryInfo messages + * @return factory for creating SelectInclinationTextCsReq messages */ - public static MessageFactory getFactory() { - return ChessRogueNousSubStoryInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return SelectInclinationTextCsReqFactory.INSTANCE; } - private enum ChessRogueNousSubStoryInfoFactory implements MessageFactory { + private enum SelectInclinationTextCsReqFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueNousSubStoryInfo create() { - return ChessRogueNousSubStoryInfo.newInstance(); + public SelectInclinationTextCsReq create() { + return SelectInclinationTextCsReq.newInstance(); } } @@ -254,7 +254,7 @@ public final class ChessRogueNousSubStoryInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName subStoryId = FieldName.forField("subStoryId", "sub_story_id"); + static final FieldName inclinationTextId = FieldName.forField("inclinationTextId", "inclination_text_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SelectInclinationTextScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectInclinationTextScRspOuterClass.java new file mode 100644 index 0000000..a06fb15 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SelectInclinationTextScRspOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SelectInclinationTextScRspOuterClass { + /** + * Protobuf type {@code SelectInclinationTextScRsp} + */ + public static final class SelectInclinationTextScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 inclination_text_id = 9; + */ + private int inclinationTextId; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + private SelectInclinationTextScRsp() { + } + + /** + * @return a new empty instance of {@code SelectInclinationTextScRsp} + */ + public static SelectInclinationTextScRsp newInstance() { + return new SelectInclinationTextScRsp(); + } + + /** + * optional uint32 inclination_text_id = 9; + * @return whether the inclinationTextId field is set + */ + public boolean hasInclinationTextId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 inclination_text_id = 9; + * @return this + */ + public SelectInclinationTextScRsp clearInclinationTextId() { + bitField0_ &= ~0x00000001; + inclinationTextId = 0; + return this; + } + + /** + * optional uint32 inclination_text_id = 9; + * @return the inclinationTextId + */ + public int getInclinationTextId() { + return inclinationTextId; + } + + /** + * optional uint32 inclination_text_id = 9; + * @param value the inclinationTextId to set + * @return this + */ + public SelectInclinationTextScRsp setInclinationTextId(final int value) { + bitField0_ |= 0x00000001; + inclinationTextId = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public SelectInclinationTextScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public SelectInclinationTextScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + @Override + public SelectInclinationTextScRsp copyFrom(final SelectInclinationTextScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + inclinationTextId = other.inclinationTextId; + retcode = other.retcode; + } + return this; + } + + @Override + public SelectInclinationTextScRsp mergeFrom(final SelectInclinationTextScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasInclinationTextId()) { + setInclinationTextId(other.inclinationTextId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public SelectInclinationTextScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + inclinationTextId = 0; + retcode = 0; + return this; + } + + @Override + public SelectInclinationTextScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectInclinationTextScRsp)) { + return false; + } + SelectInclinationTextScRsp other = (SelectInclinationTextScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasInclinationTextId() || inclinationTextId == other.inclinationTextId) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(inclinationTextId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(inclinationTextId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectInclinationTextScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 72: { + // inclinationTextId + inclinationTextId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.inclinationTextId, inclinationTextId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public SelectInclinationTextScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1954961066: + case -598373616: { + if (input.isAtField(FieldNames.inclinationTextId)) { + if (!input.trySkipNullValue()) { + inclinationTextId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectInclinationTextScRsp clone() { + return new SelectInclinationTextScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectInclinationTextScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectInclinationTextScRsp(), data).checkInitialized(); + } + + public static SelectInclinationTextScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectInclinationTextScRsp(), input).checkInitialized(); + } + + public static SelectInclinationTextScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectInclinationTextScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectInclinationTextScRsp messages + */ + public static MessageFactory getFactory() { + return SelectInclinationTextScRspFactory.INSTANCE; + } + + private enum SelectInclinationTextScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectInclinationTextScRsp create() { + return SelectInclinationTextScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName inclinationTextId = FieldName.forField("inclinationTextId", "inclination_text_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPamSkinCsReqOuterClass.java similarity index 52% rename from src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SelectPamSkinCsReqOuterClass.java index a2c95ff..1e2e210 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicAvatarRecommendCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPamSkinCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RelicAvatarRecommendCsReqOuterClass { +public final class SelectPamSkinCsReqOuterClass { /** - * Protobuf type {@code RelicAvatarRecommendCsReq} + * Protobuf type {@code SelectPamSkinCsReq} */ - public static final class RelicAvatarRecommendCsReq extends ProtoMessage implements Cloneable { + public static final class SelectPamSkinCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 set_id = 8; + * optional uint32 pam_skin_id = 8; */ - private int setId; + private int pamSkinId; - private RelicAvatarRecommendCsReq() { + private SelectPamSkinCsReq() { } /** - * @return a new empty instance of {@code RelicAvatarRecommendCsReq} + * @return a new empty instance of {@code SelectPamSkinCsReq} */ - public static RelicAvatarRecommendCsReq newInstance() { - return new RelicAvatarRecommendCsReq(); + public static SelectPamSkinCsReq newInstance() { + return new SelectPamSkinCsReq(); } /** - * optional uint32 set_id = 8; - * @return whether the setId field is set + * optional uint32 pam_skin_id = 8; + * @return whether the pamSkinId field is set */ - public boolean hasSetId() { + public boolean hasPamSkinId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 set_id = 8; + * optional uint32 pam_skin_id = 8; * @return this */ - public RelicAvatarRecommendCsReq clearSetId() { + public SelectPamSkinCsReq clearPamSkinId() { bitField0_ &= ~0x00000001; - setId = 0; + pamSkinId = 0; return this; } /** - * optional uint32 set_id = 8; - * @return the setId + * optional uint32 pam_skin_id = 8; + * @return the pamSkinId */ - public int getSetId() { - return setId; + public int getPamSkinId() { + return pamSkinId; } /** - * optional uint32 set_id = 8; - * @param value the setId to set + * optional uint32 pam_skin_id = 8; + * @param value the pamSkinId to set * @return this */ - public RelicAvatarRecommendCsReq setSetId(final int value) { + public SelectPamSkinCsReq setPamSkinId(final int value) { bitField0_ |= 0x00000001; - setId = value; + pamSkinId = value; return this; } @Override - public RelicAvatarRecommendCsReq copyFrom(final RelicAvatarRecommendCsReq other) { + public SelectPamSkinCsReq copyFrom(final SelectPamSkinCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - setId = other.setId; + pamSkinId = other.pamSkinId; } return this; } @Override - public RelicAvatarRecommendCsReq mergeFrom(final RelicAvatarRecommendCsReq other) { + public SelectPamSkinCsReq mergeFrom(final SelectPamSkinCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasSetId()) { - setSetId(other.setId); + if (other.hasPamSkinId()) { + setPamSkinId(other.pamSkinId); } return this; } @Override - public RelicAvatarRecommendCsReq clear() { + public SelectPamSkinCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - setId = 0; + pamSkinId = 0; return this; } @Override - public RelicAvatarRecommendCsReq clearQuick() { + public SelectPamSkinCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class RelicAvatarRecommendCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof RelicAvatarRecommendCsReq)) { + if (!(o instanceof SelectPamSkinCsReq)) { return false; } - RelicAvatarRecommendCsReq other = (RelicAvatarRecommendCsReq) o; + SelectPamSkinCsReq other = (SelectPamSkinCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSetId() || setId == other.setId); + && (!hasPamSkinId() || pamSkinId == other.pamSkinId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 64); - output.writeUInt32NoTag(setId); + output.writeUInt32NoTag(pamSkinId); } } @@ -138,21 +138,21 @@ public final class RelicAvatarRecommendCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(setId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(pamSkinId); } return size; } @Override @SuppressWarnings("fallthrough") - public RelicAvatarRecommendCsReq mergeFrom(final ProtoSource input) throws IOException { + public SelectPamSkinCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 64: { - // setId - setId = input.readUInt32(); + // pamSkinId + pamSkinId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class RelicAvatarRecommendCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.setId, setId); + output.writeUInt32(FieldNames.pamSkinId, pamSkinId); } output.endObject(); } @Override - public RelicAvatarRecommendCsReq mergeFrom(final JsonSource input) throws IOException { + public SelectPamSkinCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 109327645: - case -905788904: { - if (input.isAtField(FieldNames.setId)) { + case 1409366836: + case -510444934: { + if (input.isAtField(FieldNames.pamSkinId)) { if (!input.trySkipNullValue()) { - setId = input.readUInt32(); + pamSkinId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class RelicAvatarRecommendCsReqOuterClass { } @Override - public RelicAvatarRecommendCsReq clone() { - return new RelicAvatarRecommendCsReq().copyFrom(this); + public SelectPamSkinCsReq clone() { + return new SelectPamSkinCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class RelicAvatarRecommendCsReqOuterClass { return ((bitField0_) == 0); } - public static RelicAvatarRecommendCsReq parseFrom(final byte[] data) throws + public static SelectPamSkinCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RelicAvatarRecommendCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SelectPamSkinCsReq(), data).checkInitialized(); } - public static RelicAvatarRecommendCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicAvatarRecommendCsReq(), input).checkInitialized(); + public static SelectPamSkinCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectPamSkinCsReq(), input).checkInitialized(); } - public static RelicAvatarRecommendCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicAvatarRecommendCsReq(), input).checkInitialized(); + public static SelectPamSkinCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectPamSkinCsReq(), input).checkInitialized(); } /** - * @return factory for creating RelicAvatarRecommendCsReq messages + * @return factory for creating SelectPamSkinCsReq messages */ - public static MessageFactory getFactory() { - return RelicAvatarRecommendCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return SelectPamSkinCsReqFactory.INSTANCE; } - private enum RelicAvatarRecommendCsReqFactory implements MessageFactory { + private enum SelectPamSkinCsReqFactory implements MessageFactory { INSTANCE; @Override - public RelicAvatarRecommendCsReq create() { - return RelicAvatarRecommendCsReq.newInstance(); + public SelectPamSkinCsReq create() { + return SelectPamSkinCsReq.newInstance(); } } @@ -254,7 +254,7 @@ public final class RelicAvatarRecommendCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName setId = FieldName.forField("setId", "set_id"); + static final FieldName pamSkinId = FieldName.forField("pamSkinId", "pam_skin_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SelectPamSkinScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPamSkinScRspOuterClass.java new file mode 100644 index 0000000..ab3fe52 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SelectPamSkinScRspOuterClass.java @@ -0,0 +1,421 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SelectPamSkinScRspOuterClass { + /** + * Protobuf type {@code SelectPamSkinScRsp} + */ + public static final class SelectPamSkinScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 select_pam_skin_id = 3; + */ + private int selectPamSkinId; + + /** + * optional uint32 current_pam_skin_id = 4; + */ + private int currentPamSkinId; + + /** + * optional uint32 retcode = 15; + */ + private int retcode; + + private SelectPamSkinScRsp() { + } + + /** + * @return a new empty instance of {@code SelectPamSkinScRsp} + */ + public static SelectPamSkinScRsp newInstance() { + return new SelectPamSkinScRsp(); + } + + /** + * optional uint32 select_pam_skin_id = 3; + * @return whether the selectPamSkinId field is set + */ + public boolean hasSelectPamSkinId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 select_pam_skin_id = 3; + * @return this + */ + public SelectPamSkinScRsp clearSelectPamSkinId() { + bitField0_ &= ~0x00000001; + selectPamSkinId = 0; + return this; + } + + /** + * optional uint32 select_pam_skin_id = 3; + * @return the selectPamSkinId + */ + public int getSelectPamSkinId() { + return selectPamSkinId; + } + + /** + * optional uint32 select_pam_skin_id = 3; + * @param value the selectPamSkinId to set + * @return this + */ + public SelectPamSkinScRsp setSelectPamSkinId(final int value) { + bitField0_ |= 0x00000001; + selectPamSkinId = value; + return this; + } + + /** + * optional uint32 current_pam_skin_id = 4; + * @return whether the currentPamSkinId field is set + */ + public boolean hasCurrentPamSkinId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 current_pam_skin_id = 4; + * @return this + */ + public SelectPamSkinScRsp clearCurrentPamSkinId() { + bitField0_ &= ~0x00000002; + currentPamSkinId = 0; + return this; + } + + /** + * optional uint32 current_pam_skin_id = 4; + * @return the currentPamSkinId + */ + public int getCurrentPamSkinId() { + return currentPamSkinId; + } + + /** + * optional uint32 current_pam_skin_id = 4; + * @param value the currentPamSkinId to set + * @return this + */ + public SelectPamSkinScRsp setCurrentPamSkinId(final int value) { + bitField0_ |= 0x00000002; + currentPamSkinId = value; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 15; + * @return this + */ + public SelectPamSkinScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public SelectPamSkinScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + + @Override + public SelectPamSkinScRsp copyFrom(final SelectPamSkinScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + selectPamSkinId = other.selectPamSkinId; + currentPamSkinId = other.currentPamSkinId; + retcode = other.retcode; + } + return this; + } + + @Override + public SelectPamSkinScRsp mergeFrom(final SelectPamSkinScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSelectPamSkinId()) { + setSelectPamSkinId(other.selectPamSkinId); + } + if (other.hasCurrentPamSkinId()) { + setCurrentPamSkinId(other.currentPamSkinId); + } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public SelectPamSkinScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + selectPamSkinId = 0; + currentPamSkinId = 0; + retcode = 0; + return this; + } + + @Override + public SelectPamSkinScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SelectPamSkinScRsp)) { + return false; + } + SelectPamSkinScRsp other = (SelectPamSkinScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasSelectPamSkinId() || selectPamSkinId == other.selectPamSkinId) + && (!hasCurrentPamSkinId() || currentPamSkinId == other.currentPamSkinId) + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(selectPamSkinId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(currentPamSkinId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(selectPamSkinId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(currentPamSkinId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SelectPamSkinScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // selectPamSkinId + selectPamSkinId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // currentPamSkinId + currentPamSkinId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.selectPamSkinId, selectPamSkinId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.currentPamSkinId, currentPamSkinId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public SelectPamSkinScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 865730968: + case -431279177: { + if (input.isAtField(FieldNames.selectPamSkinId)) { + if (!input.trySkipNullValue()) { + selectPamSkinId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1746750021: + case 249948340: { + if (input.isAtField(FieldNames.currentPamSkinId)) { + if (!input.trySkipNullValue()) { + currentPamSkinId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SelectPamSkinScRsp clone() { + return new SelectPamSkinScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SelectPamSkinScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SelectPamSkinScRsp(), data).checkInitialized(); + } + + public static SelectPamSkinScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectPamSkinScRsp(), input).checkInitialized(); + } + + public static SelectPamSkinScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SelectPamSkinScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SelectPamSkinScRsp messages + */ + public static MessageFactory getFactory() { + return SelectPamSkinScRspFactory.INSTANCE; + } + + private enum SelectPamSkinScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SelectPamSkinScRsp create() { + return SelectPamSkinScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName selectPamSkinId = FieldName.forField("selectPamSkinId", "select_pam_skin_id"); + + static final FieldName currentPamSkinId = FieldName.forField("currentPamSkinId", "current_pam_skin_id"); + + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java index bd33b95..ed0335b 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SelectPhoneThemeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 theme_id = 13; + * optional uint32 theme_id = 12; */ private int themeId; @@ -34,7 +34,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 13; + * optional uint32 theme_id = 12; * @return whether the themeId field is set */ public boolean hasThemeId() { @@ -42,7 +42,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 13; + * optional uint32 theme_id = 12; * @return this */ public SelectPhoneThemeCsReq clearThemeId() { @@ -52,7 +52,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 13; + * optional uint32 theme_id = 12; * @return the themeId */ public int getThemeId() { @@ -60,7 +60,7 @@ public final class SelectPhoneThemeCsReqOuterClass { } /** - * optional uint32 theme_id = 13; + * optional uint32 theme_id = 12; * @param value the themeId to set * @return this */ @@ -129,7 +129,7 @@ public final class SelectPhoneThemeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(themeId); } } @@ -150,7 +150,7 @@ public final class SelectPhoneThemeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 96: { // themeId themeId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java index c93f4e7..b1b3beb 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SelectPhoneThemeScRspOuterClass.java @@ -19,20 +19,15 @@ public final class SelectPhoneThemeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 6; */ private int curPhoneTheme; /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; */ private int retcode; - /** - * optional uint32 NNKFBKLCDDF = 11; - */ - private int nNKFBKLCDDF; - private SelectPhoneThemeScRsp() { } @@ -44,7 +39,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 6; * @return whether the curPhoneTheme field is set */ public boolean hasCurPhoneTheme() { @@ -52,7 +47,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 6; * @return this */ public SelectPhoneThemeScRsp clearCurPhoneTheme() { @@ -62,7 +57,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 6; * @return the curPhoneTheme */ public int getCurPhoneTheme() { @@ -70,7 +65,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 cur_phone_theme = 5; + * optional uint32 cur_phone_theme = 6; * @param value the curPhoneTheme to set * @return this */ @@ -81,7 +76,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +84,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @return this */ public SelectPhoneThemeScRsp clearRetcode() { @@ -99,7 +94,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -107,7 +102,7 @@ public final class SelectPhoneThemeScRspOuterClass { } /** - * optional uint32 retcode = 7; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -117,43 +112,6 @@ public final class SelectPhoneThemeScRspOuterClass { return this; } - /** - * optional uint32 NNKFBKLCDDF = 11; - * @return whether the nNKFBKLCDDF field is set - */ - public boolean hasNNKFBKLCDDF() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 NNKFBKLCDDF = 11; - * @return this - */ - public SelectPhoneThemeScRsp clearNNKFBKLCDDF() { - bitField0_ &= ~0x00000004; - nNKFBKLCDDF = 0; - return this; - } - - /** - * optional uint32 NNKFBKLCDDF = 11; - * @return the nNKFBKLCDDF - */ - public int getNNKFBKLCDDF() { - return nNKFBKLCDDF; - } - - /** - * optional uint32 NNKFBKLCDDF = 11; - * @param value the nNKFBKLCDDF to set - * @return this - */ - public SelectPhoneThemeScRsp setNNKFBKLCDDF(final int value) { - bitField0_ |= 0x00000004; - nNKFBKLCDDF = value; - return this; - } - @Override public SelectPhoneThemeScRsp copyFrom(final SelectPhoneThemeScRsp other) { cachedSize = other.cachedSize; @@ -161,7 +119,6 @@ public final class SelectPhoneThemeScRspOuterClass { bitField0_ = other.bitField0_; curPhoneTheme = other.curPhoneTheme; retcode = other.retcode; - nNKFBKLCDDF = other.nNKFBKLCDDF; } return this; } @@ -178,9 +135,6 @@ public final class SelectPhoneThemeScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasNNKFBKLCDDF()) { - setNNKFBKLCDDF(other.nNKFBKLCDDF); - } return this; } @@ -193,7 +147,6 @@ public final class SelectPhoneThemeScRspOuterClass { bitField0_ = 0; curPhoneTheme = 0; retcode = 0; - nNKFBKLCDDF = 0; return this; } @@ -218,24 +171,19 @@ public final class SelectPhoneThemeScRspOuterClass { SelectPhoneThemeScRsp other = (SelectPhoneThemeScRsp) o; return bitField0_ == other.bitField0_ && (!hasCurPhoneTheme() || curPhoneTheme == other.curPhoneTheme) - && (!hasRetcode() || retcode == other.retcode) - && (!hasNNKFBKLCDDF() || nNKFBKLCDDF == other.nNKFBKLCDDF); + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(curPhoneTheme); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(nNKFBKLCDDF); - } } @Override @@ -247,9 +195,6 @@ public final class SelectPhoneThemeScRspOuterClass { if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(nNKFBKLCDDF); - } return size; } @@ -260,29 +205,20 @@ public final class SelectPhoneThemeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // curPhoneTheme curPhoneTheme = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 64) { break; } } - case 56: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // nNKFBKLCDDF - nNKFBKLCDDF = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); if (tag != 0) { break; } @@ -310,9 +246,6 @@ public final class SelectPhoneThemeScRspOuterClass { if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.nNKFBKLCDDF, nNKFBKLCDDF); - } output.endObject(); } @@ -346,17 +279,6 @@ public final class SelectPhoneThemeScRspOuterClass { } break; } - case -883757877: { - if (input.isAtField(FieldNames.nNKFBKLCDDF)) { - if (!input.trySkipNullValue()) { - nNKFBKLCDDF = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } default: { input.skipUnknownField(); break; @@ -413,8 +335,6 @@ public final class SelectPhoneThemeScRspOuterClass { static final FieldName curPhoneTheme = FieldName.forField("curPhoneTheme", "cur_phone_theme"); static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName nNKFBKLCDDF = FieldName.forField("NNKFBKLCDDF"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java deleted file mode 100644 index a3bd5b2..0000000 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionCsReqOuterClass.java +++ /dev/null @@ -1,347 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SelectRogueCommonDialogueOptionCsReqOuterClass { - /** - * Protobuf type {@code SelectRogueCommonDialogueOptionCsReq} - */ - public static final class SelectRogueCommonDialogueOptionCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 option_id = 3; - */ - private int optionId; - - /** - * optional uint32 event_unique_id = 14; - */ - private int eventUniqueId; - - private SelectRogueCommonDialogueOptionCsReq() { - } - - /** - * @return a new empty instance of {@code SelectRogueCommonDialogueOptionCsReq} - */ - public static SelectRogueCommonDialogueOptionCsReq newInstance() { - return new SelectRogueCommonDialogueOptionCsReq(); - } - - /** - * optional uint32 option_id = 3; - * @return whether the optionId field is set - */ - public boolean hasOptionId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 option_id = 3; - * @return this - */ - public SelectRogueCommonDialogueOptionCsReq clearOptionId() { - bitField0_ &= ~0x00000001; - optionId = 0; - return this; - } - - /** - * optional uint32 option_id = 3; - * @return the optionId - */ - public int getOptionId() { - return optionId; - } - - /** - * optional uint32 option_id = 3; - * @param value the optionId to set - * @return this - */ - public SelectRogueCommonDialogueOptionCsReq setOptionId(final int value) { - bitField0_ |= 0x00000001; - optionId = value; - return this; - } - - /** - * optional uint32 event_unique_id = 14; - * @return whether the eventUniqueId field is set - */ - public boolean hasEventUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 event_unique_id = 14; - * @return this - */ - public SelectRogueCommonDialogueOptionCsReq clearEventUniqueId() { - bitField0_ &= ~0x00000002; - eventUniqueId = 0; - return this; - } - - /** - * optional uint32 event_unique_id = 14; - * @return the eventUniqueId - */ - public int getEventUniqueId() { - return eventUniqueId; - } - - /** - * optional uint32 event_unique_id = 14; - * @param value the eventUniqueId to set - * @return this - */ - public SelectRogueCommonDialogueOptionCsReq setEventUniqueId(final int value) { - bitField0_ |= 0x00000002; - eventUniqueId = value; - return this; - } - - @Override - public SelectRogueCommonDialogueOptionCsReq copyFrom( - final SelectRogueCommonDialogueOptionCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - optionId = other.optionId; - eventUniqueId = other.eventUniqueId; - } - return this; - } - - @Override - public SelectRogueCommonDialogueOptionCsReq mergeFrom( - final SelectRogueCommonDialogueOptionCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasOptionId()) { - setOptionId(other.optionId); - } - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); - } - return this; - } - - @Override - public SelectRogueCommonDialogueOptionCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - optionId = 0; - eventUniqueId = 0; - return this; - } - - @Override - public SelectRogueCommonDialogueOptionCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SelectRogueCommonDialogueOptionCsReq)) { - return false; - } - SelectRogueCommonDialogueOptionCsReq other = (SelectRogueCommonDialogueOptionCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasOptionId() || optionId == other.optionId) - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(eventUniqueId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SelectRogueCommonDialogueOptionCsReq mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // optionId - optionId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { - // eventUniqueId - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.optionId, optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); - } - output.endObject(); - } - - @Override - public SelectRogueCommonDialogueOptionCsReq mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -79017872: - case 1845434661: { - if (input.isAtField(FieldNames.optionId)) { - if (!input.trySkipNullValue()) { - optionId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { - if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SelectRogueCommonDialogueOptionCsReq clone() { - return new SelectRogueCommonDialogueOptionCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SelectRogueCommonDialogueOptionCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), data).checkInitialized(); - } - - public static SelectRogueCommonDialogueOptionCsReq parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), input).checkInitialized(); - } - - public static SelectRogueCommonDialogueOptionCsReq parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating SelectRogueCommonDialogueOptionCsReq messages - */ - public static MessageFactory getFactory() { - return SelectRogueCommonDialogueOptionCsReqFactory.INSTANCE; - } - - private enum SelectRogueCommonDialogueOptionCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public SelectRogueCommonDialogueOptionCsReq create() { - return SelectRogueCommonDialogueOptionCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName optionId = FieldName.forField("optionId", "option_id"); - - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java deleted file mode 100644 index bdc29f3..0000000 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueCommonDialogueOptionScRspOuterClass.java +++ /dev/null @@ -1,734 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class SelectRogueCommonDialogueOptionScRspOuterClass { - /** - * Protobuf type {@code SelectRogueCommonDialogueOptionScRsp} - */ - public static final class SelectRogueCommonDialogueOptionScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 option_id = 2; - */ - private int optionId; - - /** - * optional uint32 retcode = 8; - */ - private int retcode; - - /** - * optional uint32 event_unique_id = 9; - */ - private int eventUniqueId; - - /** - * optional bool event_has_effect = 6; - */ - private boolean eventHasEffect; - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 10; - */ - private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance(); - - /** - * repeated uint32 effect_event_id_list = 3; - */ - private final RepeatedInt effectEventIdList = RepeatedInt.newEmptyInstance(); - - private SelectRogueCommonDialogueOptionScRsp() { - } - - /** - * @return a new empty instance of {@code SelectRogueCommonDialogueOptionScRsp} - */ - public static SelectRogueCommonDialogueOptionScRsp newInstance() { - return new SelectRogueCommonDialogueOptionScRsp(); - } - - /** - * optional uint32 option_id = 2; - * @return whether the optionId field is set - */ - public boolean hasOptionId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 option_id = 2; - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp clearOptionId() { - bitField0_ &= ~0x00000001; - optionId = 0; - return this; - } - - /** - * optional uint32 option_id = 2; - * @return the optionId - */ - public int getOptionId() { - return optionId; - } - - /** - * optional uint32 option_id = 2; - * @param value the optionId to set - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp setOptionId(final int value) { - bitField0_ |= 0x00000001; - optionId = value; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 8; - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 8; - * @param value the retcode to set - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - - /** - * optional uint32 event_unique_id = 9; - * @return whether the eventUniqueId field is set - */ - public boolean hasEventUniqueId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 event_unique_id = 9; - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp clearEventUniqueId() { - bitField0_ &= ~0x00000004; - eventUniqueId = 0; - return this; - } - - /** - * optional uint32 event_unique_id = 9; - * @return the eventUniqueId - */ - public int getEventUniqueId() { - return eventUniqueId; - } - - /** - * optional uint32 event_unique_id = 9; - * @param value the eventUniqueId to set - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp setEventUniqueId(final int value) { - bitField0_ |= 0x00000004; - eventUniqueId = value; - return this; - } - - /** - * optional bool event_has_effect = 6; - * @return whether the eventHasEffect field is set - */ - public boolean hasEventHasEffect() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional bool event_has_effect = 6; - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp clearEventHasEffect() { - bitField0_ &= ~0x00000008; - eventHasEffect = false; - return this; - } - - /** - * optional bool event_has_effect = 6; - * @return the eventHasEffect - */ - public boolean getEventHasEffect() { - return eventHasEffect; - } - - /** - * optional bool event_has_effect = 6; - * @param value the eventHasEffect to set - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp setEventHasEffect(final boolean value) { - bitField0_ |= 0x00000008; - eventHasEffect = value; - return this; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 10; - * @return whether the dialogueData field is set - */ - public boolean hasDialogueData() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 10; - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp clearDialogueData() { - bitField0_ &= ~0x00000010; - dialogueData.clear(); - return this; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 10; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getDialogueData() { - return dialogueData; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 10; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getMutableDialogueData( - ) { - bitField0_ |= 0x00000010; - return dialogueData; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 10; - * @param value the dialogueData to set - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp setDialogueData( - final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { - bitField0_ |= 0x00000010; - dialogueData.copyFrom(value); - return this; - } - - /** - * repeated uint32 effect_event_id_list = 3; - * @return whether the effectEventIdList field is set - */ - public boolean hasEffectEventIdList() { - return (bitField0_ & 0x00000020) != 0; - } - - /** - * repeated uint32 effect_event_id_list = 3; - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp clearEffectEventIdList() { - bitField0_ &= ~0x00000020; - effectEventIdList.clear(); - return this; - } - - /** - * repeated uint32 effect_event_id_list = 3; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableEffectEventIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getEffectEventIdList() { - return effectEventIdList; - } - - /** - * repeated uint32 effect_event_id_list = 3; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableEffectEventIdList() { - bitField0_ |= 0x00000020; - return effectEventIdList; - } - - /** - * repeated uint32 effect_event_id_list = 3; - * @param value the effectEventIdList to add - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp addEffectEventIdList(final int value) { - bitField0_ |= 0x00000020; - effectEventIdList.add(value); - return this; - } - - /** - * repeated uint32 effect_event_id_list = 3; - * @param values the effectEventIdList to add - * @return this - */ - public SelectRogueCommonDialogueOptionScRsp addAllEffectEventIdList(final int... values) { - bitField0_ |= 0x00000020; - effectEventIdList.addAll(values); - return this; - } - - @Override - public SelectRogueCommonDialogueOptionScRsp copyFrom( - final SelectRogueCommonDialogueOptionScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - optionId = other.optionId; - retcode = other.retcode; - eventUniqueId = other.eventUniqueId; - eventHasEffect = other.eventHasEffect; - dialogueData.copyFrom(other.dialogueData); - effectEventIdList.copyFrom(other.effectEventIdList); - } - return this; - } - - @Override - public SelectRogueCommonDialogueOptionScRsp mergeFrom( - final SelectRogueCommonDialogueOptionScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasOptionId()) { - setOptionId(other.optionId); - } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); - } - if (other.hasEventHasEffect()) { - setEventHasEffect(other.eventHasEffect); - } - if (other.hasDialogueData()) { - getMutableDialogueData().mergeFrom(other.dialogueData); - } - if (other.hasEffectEventIdList()) { - getMutableEffectEventIdList().addAll(other.effectEventIdList); - } - return this; - } - - @Override - public SelectRogueCommonDialogueOptionScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - optionId = 0; - retcode = 0; - eventUniqueId = 0; - eventHasEffect = false; - dialogueData.clear(); - effectEventIdList.clear(); - return this; - } - - @Override - public SelectRogueCommonDialogueOptionScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueData.clearQuick(); - effectEventIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SelectRogueCommonDialogueOptionScRsp)) { - return false; - } - SelectRogueCommonDialogueOptionScRsp other = (SelectRogueCommonDialogueOptionScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasOptionId() || optionId == other.optionId) - && (!hasRetcode() || retcode == other.retcode) - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) - && (!hasEventHasEffect() || eventHasEffect == other.eventHasEffect) - && (!hasDialogueData() || dialogueData.equals(other.dialogueData)) - && (!hasEffectEventIdList() || effectEventIdList.equals(other.effectEventIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 48); - output.writeBoolNoTag(eventHasEffect); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 82); - output.writeMessageNoTag(dialogueData); - } - if ((bitField0_ & 0x00000020) != 0) { - for (int i = 0; i < effectEventIdList.length(); i++) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(effectEventIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 2; - } - if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueData); - } - if ((bitField0_ & 0x00000020) != 0) { - size += (1 * effectEventIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(effectEventIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SelectRogueCommonDialogueOptionScRsp mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // optionId - optionId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // eventUniqueId - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // eventHasEffect - eventHasEffect = input.readBool(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 82) { - break; - } - } - case 82: { - // dialogueData - input.readMessage(dialogueData); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 26) { - break; - } - } - case 26: { - // effectEventIdList [packed=true] - input.readPackedUInt32(effectEventIdList, tag); - bitField0_ |= 0x00000020; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 24: { - // effectEventIdList [packed=false] - tag = input.readRepeatedUInt32(effectEventIdList, tag); - bitField0_ |= 0x00000020; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.optionId, optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeBool(FieldNames.eventHasEffect, eventHasEffect); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeMessage(FieldNames.dialogueData, dialogueData); - } - if ((bitField0_ & 0x00000020) != 0) { - output.writeRepeatedUInt32(FieldNames.effectEventIdList, effectEventIdList); - } - output.endObject(); - } - - @Override - public SelectRogueCommonDialogueOptionScRsp mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -79017872: - case 1845434661: { - if (input.isAtField(FieldNames.optionId)) { - if (!input.trySkipNullValue()) { - optionId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { - if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 269571921: - case 693895579: { - if (input.isAtField(FieldNames.eventHasEffect)) { - if (!input.trySkipNullValue()) { - eventHasEffect = input.readBool(); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1350537634: - case -1057999439: { - if (input.isAtField(FieldNames.dialogueData)) { - if (!input.trySkipNullValue()) { - input.readMessage(dialogueData); - bitField0_ |= 0x00000010; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1375491774: - case -1217188241: { - if (input.isAtField(FieldNames.effectEventIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(effectEventIdList); - bitField0_ |= 0x00000020; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SelectRogueCommonDialogueOptionScRsp clone() { - return new SelectRogueCommonDialogueOptionScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SelectRogueCommonDialogueOptionScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), data).checkInitialized(); - } - - public static SelectRogueCommonDialogueOptionScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), input).checkInitialized(); - } - - public static SelectRogueCommonDialogueOptionScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueCommonDialogueOptionScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating SelectRogueCommonDialogueOptionScRsp messages - */ - public static MessageFactory getFactory() { - return SelectRogueCommonDialogueOptionScRspFactory.INSTANCE; - } - - private enum SelectRogueCommonDialogueOptionScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public SelectRogueCommonDialogueOptionScRsp create() { - return SelectRogueCommonDialogueOptionScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName optionId = FieldName.forField("optionId", "option_id"); - - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); - - static final FieldName eventHasEffect = FieldName.forField("eventHasEffect", "event_has_effect"); - - static final FieldName dialogueData = FieldName.forField("dialogueData", "dialogue_data"); - - static final FieldName effectEventIdList = FieldName.forField("effectEventIdList", "effect_event_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java deleted file mode 100644 index fef55f9..0000000 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventCsReqOuterClass.java +++ /dev/null @@ -1,343 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SelectRogueDialogueEventCsReqOuterClass { - /** - * Protobuf type {@code SelectRogueDialogueEventCsReq} - */ - public static final class SelectRogueDialogueEventCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 entity_id = 6; - */ - private int entityId; - - /** - * optional uint32 dialogue_event_id = 13; - */ - private int dialogueEventId; - - private SelectRogueDialogueEventCsReq() { - } - - /** - * @return a new empty instance of {@code SelectRogueDialogueEventCsReq} - */ - public static SelectRogueDialogueEventCsReq newInstance() { - return new SelectRogueDialogueEventCsReq(); - } - - /** - * optional uint32 entity_id = 6; - * @return whether the entityId field is set - */ - public boolean hasEntityId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 entity_id = 6; - * @return this - */ - public SelectRogueDialogueEventCsReq clearEntityId() { - bitField0_ &= ~0x00000001; - entityId = 0; - return this; - } - - /** - * optional uint32 entity_id = 6; - * @return the entityId - */ - public int getEntityId() { - return entityId; - } - - /** - * optional uint32 entity_id = 6; - * @param value the entityId to set - * @return this - */ - public SelectRogueDialogueEventCsReq setEntityId(final int value) { - bitField0_ |= 0x00000001; - entityId = value; - return this; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return whether the dialogueEventId field is set - */ - public boolean hasDialogueEventId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return this - */ - public SelectRogueDialogueEventCsReq clearDialogueEventId() { - bitField0_ &= ~0x00000002; - dialogueEventId = 0; - return this; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return the dialogueEventId - */ - public int getDialogueEventId() { - return dialogueEventId; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @param value the dialogueEventId to set - * @return this - */ - public SelectRogueDialogueEventCsReq setDialogueEventId(final int value) { - bitField0_ |= 0x00000002; - dialogueEventId = value; - return this; - } - - @Override - public SelectRogueDialogueEventCsReq copyFrom(final SelectRogueDialogueEventCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - entityId = other.entityId; - dialogueEventId = other.dialogueEventId; - } - return this; - } - - @Override - public SelectRogueDialogueEventCsReq mergeFrom(final SelectRogueDialogueEventCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); - } - if (other.hasDialogueEventId()) { - setDialogueEventId(other.dialogueEventId); - } - return this; - } - - @Override - public SelectRogueDialogueEventCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - entityId = 0; - dialogueEventId = 0; - return this; - } - - @Override - public SelectRogueDialogueEventCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SelectRogueDialogueEventCsReq)) { - return false; - } - SelectRogueDialogueEventCsReq other = (SelectRogueDialogueEventCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId) - && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(dialogueEventId); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SelectRogueDialogueEventCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // entityId - entityId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // dialogueEventId - dialogueEventId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueEventId, dialogueEventId); - } - output.endObject(); - } - - @Override - public SelectRogueDialogueEventCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { - if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 88389725: - case 1671736167: { - if (input.isAtField(FieldNames.dialogueEventId)) { - if (!input.trySkipNullValue()) { - dialogueEventId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SelectRogueDialogueEventCsReq clone() { - return new SelectRogueDialogueEventCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SelectRogueDialogueEventCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueDialogueEventCsReq(), data).checkInitialized(); - } - - public static SelectRogueDialogueEventCsReq parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueDialogueEventCsReq(), input).checkInitialized(); - } - - public static SelectRogueDialogueEventCsReq parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueDialogueEventCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating SelectRogueDialogueEventCsReq messages - */ - public static MessageFactory getFactory() { - return SelectRogueDialogueEventCsReqFactory.INSTANCE; - } - - private enum SelectRogueDialogueEventCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public SelectRogueDialogueEventCsReq create() { - return SelectRogueDialogueEventCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); - - static final FieldName dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java deleted file mode 100644 index fe6ee9a..0000000 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueDialogueEventScRspOuterClass.java +++ /dev/null @@ -1,548 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SelectRogueDialogueEventScRspOuterClass { - /** - * Protobuf type {@code SelectRogueDialogueEventScRsp} - */ - public static final class SelectRogueDialogueEventScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * optional uint32 dialogue_event_id = 13; - */ - private int dialogueEventId; - - /** - * optional .DialogueResult dialogue_result = 4; - */ - private final DialogueResultOuterClass.DialogueResult dialogueResult = DialogueResultOuterClass.DialogueResult.newInstance(); - - /** - * optional .RogueDialogueEvent event_data = 8; - */ - private final RogueDialogueEventOuterClass.RogueDialogueEvent eventData = RogueDialogueEventOuterClass.RogueDialogueEvent.newInstance(); - - private SelectRogueDialogueEventScRsp() { - } - - /** - * @return a new empty instance of {@code SelectRogueDialogueEventScRsp} - */ - public static SelectRogueDialogueEventScRsp newInstance() { - return new SelectRogueDialogueEventScRsp(); - } - - /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 2; - * @return this - */ - public SelectRogueDialogueEventScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 2; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 2; - * @param value the retcode to set - * @return this - */ - public SelectRogueDialogueEventScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return whether the dialogueEventId field is set - */ - public boolean hasDialogueEventId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return this - */ - public SelectRogueDialogueEventScRsp clearDialogueEventId() { - bitField0_ &= ~0x00000002; - dialogueEventId = 0; - return this; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @return the dialogueEventId - */ - public int getDialogueEventId() { - return dialogueEventId; - } - - /** - * optional uint32 dialogue_event_id = 13; - * @param value the dialogueEventId to set - * @return this - */ - public SelectRogueDialogueEventScRsp setDialogueEventId(final int value) { - bitField0_ |= 0x00000002; - dialogueEventId = value; - return this; - } - - /** - * optional .DialogueResult dialogue_result = 4; - * @return whether the dialogueResult field is set - */ - public boolean hasDialogueResult() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .DialogueResult dialogue_result = 4; - * @return this - */ - public SelectRogueDialogueEventScRsp clearDialogueResult() { - bitField0_ &= ~0x00000004; - dialogueResult.clear(); - return this; - } - - /** - * optional .DialogueResult dialogue_result = 4; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueResult()} if you want to modify it. - * - * @return internal storage object for reading - */ - public DialogueResultOuterClass.DialogueResult getDialogueResult() { - return dialogueResult; - } - - /** - * optional .DialogueResult dialogue_result = 4; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public DialogueResultOuterClass.DialogueResult getMutableDialogueResult() { - bitField0_ |= 0x00000004; - return dialogueResult; - } - - /** - * optional .DialogueResult dialogue_result = 4; - * @param value the dialogueResult to set - * @return this - */ - public SelectRogueDialogueEventScRsp setDialogueResult( - final DialogueResultOuterClass.DialogueResult value) { - bitField0_ |= 0x00000004; - dialogueResult.copyFrom(value); - return this; - } - - /** - * optional .RogueDialogueEvent event_data = 8; - * @return whether the eventData field is set - */ - public boolean hasEventData() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RogueDialogueEvent event_data = 8; - * @return this - */ - public SelectRogueDialogueEventScRsp clearEventData() { - bitField0_ &= ~0x00000008; - eventData.clear(); - return this; - } - - /** - * optional .RogueDialogueEvent event_data = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableEventData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueDialogueEventOuterClass.RogueDialogueEvent getEventData() { - return eventData; - } - - /** - * optional .RogueDialogueEvent event_data = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueDialogueEventOuterClass.RogueDialogueEvent getMutableEventData() { - bitField0_ |= 0x00000008; - return eventData; - } - - /** - * optional .RogueDialogueEvent event_data = 8; - * @param value the eventData to set - * @return this - */ - public SelectRogueDialogueEventScRsp setEventData( - final RogueDialogueEventOuterClass.RogueDialogueEvent value) { - bitField0_ |= 0x00000008; - eventData.copyFrom(value); - return this; - } - - @Override - public SelectRogueDialogueEventScRsp copyFrom(final SelectRogueDialogueEventScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - dialogueEventId = other.dialogueEventId; - dialogueResult.copyFrom(other.dialogueResult); - eventData.copyFrom(other.eventData); - } - return this; - } - - @Override - public SelectRogueDialogueEventScRsp mergeFrom(final SelectRogueDialogueEventScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasDialogueEventId()) { - setDialogueEventId(other.dialogueEventId); - } - if (other.hasDialogueResult()) { - getMutableDialogueResult().mergeFrom(other.dialogueResult); - } - if (other.hasEventData()) { - getMutableEventData().mergeFrom(other.eventData); - } - return this; - } - - @Override - public SelectRogueDialogueEventScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - dialogueEventId = 0; - dialogueResult.clear(); - eventData.clear(); - return this; - } - - @Override - public SelectRogueDialogueEventScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueResult.clearQuick(); - eventData.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SelectRogueDialogueEventScRsp)) { - return false; - } - SelectRogueDialogueEventScRsp other = (SelectRogueDialogueEventScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasDialogueEventId() || dialogueEventId == other.dialogueEventId) - && (!hasDialogueResult() || dialogueResult.equals(other.dialogueResult)) - && (!hasEventData() || eventData.equals(other.eventData)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(dialogueEventId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 34); - output.writeMessageNoTag(dialogueResult); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(eventData); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dialogueEventId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueResult); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(eventData); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SelectRogueDialogueEventScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // dialogueEventId - dialogueEventId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 34) { - break; - } - } - case 34: { - // dialogueResult - input.readMessage(dialogueResult); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 66) { - break; - } - } - case 66: { - // eventData - input.readMessage(eventData); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dialogueEventId, dialogueEventId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.dialogueResult, dialogueResult); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.eventData, eventData); - } - output.endObject(); - } - - @Override - public SelectRogueDialogueEventScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 88389725: - case 1671736167: { - if (input.isAtField(FieldNames.dialogueEventId)) { - if (!input.trySkipNullValue()) { - dialogueEventId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1191037973: - case 1574283364: { - if (input.isAtField(FieldNames.dialogueResult)) { - if (!input.trySkipNullValue()) { - input.readMessage(dialogueResult); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 30931300: - case 983877167: { - if (input.isAtField(FieldNames.eventData)) { - if (!input.trySkipNullValue()) { - input.readMessage(eventData); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SelectRogueDialogueEventScRsp clone() { - return new SelectRogueDialogueEventScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SelectRogueDialogueEventScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueDialogueEventScRsp(), data).checkInitialized(); - } - - public static SelectRogueDialogueEventScRsp parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueDialogueEventScRsp(), input).checkInitialized(); - } - - public static SelectRogueDialogueEventScRsp parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SelectRogueDialogueEventScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating SelectRogueDialogueEventScRsp messages - */ - public static MessageFactory getFactory() { - return SelectRogueDialogueEventScRspFactory.INSTANCE; - } - - private enum SelectRogueDialogueEventScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public SelectRogueDialogueEventScRsp create() { - return SelectRogueDialogueEventScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName dialogueEventId = FieldName.forField("dialogueEventId", "dialogue_event_id"); - - static final FieldName dialogueResult = FieldName.forField("dialogueResult", "dialogue_result"); - - static final FieldName eventData = FieldName.forField("eventData", "event_data"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java index 3d7341e..d2d17c6 100644 --- a/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SellItemCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class SellItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool to_material = 1; + * optional bool to_material = 10; */ private boolean toMaterial; /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 14; */ private final ItemCostListOuterClass.ItemCostList itemCostList = ItemCostListOuterClass.ItemCostList.newInstance(); @@ -39,7 +39,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional bool to_material = 1; + * optional bool to_material = 10; * @return whether the toMaterial field is set */ public boolean hasToMaterial() { @@ -47,7 +47,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional bool to_material = 1; + * optional bool to_material = 10; * @return this */ public SellItemCsReq clearToMaterial() { @@ -57,7 +57,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional bool to_material = 1; + * optional bool to_material = 10; * @return the toMaterial */ public boolean getToMaterial() { @@ -65,7 +65,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional bool to_material = 1; + * optional bool to_material = 10; * @param value the toMaterial to set * @return this */ @@ -76,7 +76,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 14; * @return whether the itemCostList field is set */ public boolean hasItemCostList() { @@ -84,7 +84,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 14; * @return this */ public SellItemCsReq clearItemCostList() { @@ -94,7 +94,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class SellItemCsReqOuterClass { } /** - * optional .ItemCostList item_cost_list = 5; + * optional .ItemCostList item_cost_list = 14; * @param value the itemCostList to set * @return this */ @@ -198,11 +198,11 @@ public final class SellItemCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 80); output.writeBoolNoTag(toMaterial); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 114); output.writeMessageNoTag(itemCostList); } } @@ -226,16 +226,16 @@ public final class SellItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 80: { // toMaterial toMaterial = input.readBool(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 114) { break; } } - case 42: { + case 114: { // itemCostList input.readMessage(itemCostList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java index cb075e0..a129fc6 100644 --- a/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SellItemScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SellItemScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 6; */ private final ItemListOuterClass.ItemList returnItemList = ItemListOuterClass.ItemList.newInstance(); @@ -39,7 +39,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 5; * @return this */ public SellItemScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SellItemScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 6; * @return whether the returnItemList field is set */ public boolean hasReturnItemList() { @@ -84,7 +84,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 6; * @return this */ public SellItemScRsp clearReturnItemList() { @@ -94,7 +94,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class SellItemScRspOuterClass { } /** - * optional .ItemList return_item_list = 5; + * optional .ItemList return_item_list = 6; * @param value the returnItemList to set * @return this */ @@ -198,11 +198,11 @@ public final class SellItemScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 50); output.writeMessageNoTag(returnItemList); } } @@ -226,16 +226,16 @@ public final class SellItemScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 50) { break; } } - case 42: { + case 50: { // returnItemList input.readMessage(returnItemList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java index 92d84e8..3bd8d4f 100644 --- a/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SendMsgCsReqOuterClass.java @@ -11,7 +11,6 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; import us.hebi.quickbuf.RepeatedInt; -import us.hebi.quickbuf.Utf8String; public final class SendMsgCsReqOuterClass { /** @@ -21,27 +20,17 @@ public final class SendMsgCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 emote = 9; - */ - private int emote; - - /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; */ private int chatType; /** - * optional .MsgType msg_type = 3; + * optional .ChatContentInfo chat_content = 8; */ - private int msgType; + private final ChatContentInfoOuterClass.ChatContentInfo chatContent = ChatContentInfoOuterClass.ChatContentInfo.newInstance(); /** - * optional string text = 6; - */ - private final Utf8String text = Utf8String.newEmptyInstance(); - - /** - * repeated uint32 to_uid_list = 15; + * repeated uint32 to_uid_list = 9; */ private final RepeatedInt toUidList = RepeatedInt.newEmptyInstance(); @@ -56,62 +45,25 @@ public final class SendMsgCsReqOuterClass { } /** - * optional uint32 emote = 9; - * @return whether the emote field is set + * optional .ChatType chat_type = 13; + * @return whether the chatType field is set */ - public boolean hasEmote() { + public boolean hasChatType() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 emote = 9; - * @return this - */ - public SendMsgCsReq clearEmote() { - bitField0_ &= ~0x00000001; - emote = 0; - return this; - } - - /** - * optional uint32 emote = 9; - * @return the emote - */ - public int getEmote() { - return emote; - } - - /** - * optional uint32 emote = 9; - * @param value the emote to set - * @return this - */ - public SendMsgCsReq setEmote(final int value) { - bitField0_ |= 0x00000001; - emote = value; - return this; - } - - /** - * optional .ChatType chat_type = 1; - * @return whether the chatType field is set - */ - public boolean hasChatType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @return this */ public SendMsgCsReq clearChatType() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; chatType = 0; return this; } /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @return the chatType */ public ChatTypeOuterClass.ChatType getChatType() { @@ -138,169 +90,99 @@ public final class SendMsgCsReqOuterClass { * @return this */ public SendMsgCsReq setChatTypeValue(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; chatType = value; return this; } /** - * optional .ChatType chat_type = 1; + * optional .ChatType chat_type = 13; * @param value the chatType to set * @return this */ public SendMsgCsReq setChatType(final ChatTypeOuterClass.ChatType value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; chatType = value.getNumber(); return this; } /** - * optional .MsgType msg_type = 3; - * @return whether the msgType field is set + * optional .ChatContentInfo chat_content = 8; + * @return whether the chatContent field is set */ - public boolean hasMsgType() { + public boolean hasChatContent() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .ChatContentInfo chat_content = 8; + * @return this + */ + public SendMsgCsReq clearChatContent() { + bitField0_ &= ~0x00000002; + chatContent.clear(); + return this; + } + + /** + * optional .ChatContentInfo chat_content = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChatContent()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ChatContentInfoOuterClass.ChatContentInfo getChatContent() { + return chatContent; + } + + /** + * optional .ChatContentInfo chat_content = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ChatContentInfoOuterClass.ChatContentInfo getMutableChatContent() { + bitField0_ |= 0x00000002; + return chatContent; + } + + /** + * optional .ChatContentInfo chat_content = 8; + * @param value the chatContent to set + * @return this + */ + public SendMsgCsReq setChatContent(final ChatContentInfoOuterClass.ChatContentInfo value) { + bitField0_ |= 0x00000002; + chatContent.copyFrom(value); + return this; + } + + /** + * repeated uint32 to_uid_list = 9; + * @return whether the toUidList field is set + */ + public boolean hasToUidList() { return (bitField0_ & 0x00000004) != 0; } /** - * optional .MsgType msg_type = 3; - * @return this - */ - public SendMsgCsReq clearMsgType() { - bitField0_ &= ~0x00000004; - msgType = 0; - return this; - } - - /** - * optional .MsgType msg_type = 3; - * @return the msgType - */ - public MsgTypeOuterClass.MsgType getMsgType() { - return MsgTypeOuterClass.MsgType.forNumber(msgType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link SendMsgCsReq#getMsgType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getMsgTypeValue() { - return msgType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link MsgTypeOuterClass.MsgType}. Setting an invalid value - * can cause {@link SendMsgCsReq#getMsgType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public SendMsgCsReq setMsgTypeValue(final int value) { - bitField0_ |= 0x00000004; - msgType = value; - return this; - } - - /** - * optional .MsgType msg_type = 3; - * @param value the msgType to set - * @return this - */ - public SendMsgCsReq setMsgType(final MsgTypeOuterClass.MsgType value) { - bitField0_ |= 0x00000004; - msgType = value.getNumber(); - return this; - } - - /** - * optional string text = 6; - * @return whether the text field is set - */ - public boolean hasText() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional string text = 6; - * @return this - */ - public SendMsgCsReq clearText() { - bitField0_ &= ~0x00000008; - text.clear(); - return this; - } - - /** - * optional string text = 6; - * @return the text - */ - public String getText() { - return text.getString(); - } - - /** - * optional string text = 6; - * @return internal {@code Utf8String} representation of text for reading - */ - public Utf8String getTextBytes() { - return this.text; - } - - /** - * optional string text = 6; - * @return internal {@code Utf8String} representation of text for modifications - */ - public Utf8String getMutableTextBytes() { - bitField0_ |= 0x00000008; - return this.text; - } - - /** - * optional string text = 6; - * @param value the text to set - * @return this - */ - public SendMsgCsReq setText(final CharSequence value) { - bitField0_ |= 0x00000008; - text.copyFrom(value); - return this; - } - - /** - * optional string text = 6; - * @param value the text to set - * @return this - */ - public SendMsgCsReq setText(final Utf8String value) { - bitField0_ |= 0x00000008; - text.copyFrom(value); - return this; - } - - /** - * repeated uint32 to_uid_list = 15; - * @return whether the toUidList field is set - */ - public boolean hasToUidList() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * repeated uint32 to_uid_list = 15; + * repeated uint32 to_uid_list = 9; * @return this */ public SendMsgCsReq clearToUidList() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000004; toUidList.clear(); return this; } /** - * repeated uint32 to_uid_list = 15; + * repeated uint32 to_uid_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -314,7 +196,7 @@ public final class SendMsgCsReqOuterClass { } /** - * repeated uint32 to_uid_list = 15; + * repeated uint32 to_uid_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -323,28 +205,28 @@ public final class SendMsgCsReqOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableToUidList() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; return toUidList; } /** - * repeated uint32 to_uid_list = 15; + * repeated uint32 to_uid_list = 9; * @param value the toUidList to add * @return this */ public SendMsgCsReq addToUidList(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; toUidList.add(value); return this; } /** - * repeated uint32 to_uid_list = 15; + * repeated uint32 to_uid_list = 9; * @param values the toUidList to add * @return this */ public SendMsgCsReq addAllToUidList(final int... values) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; toUidList.addAll(values); return this; } @@ -354,10 +236,8 @@ public final class SendMsgCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - emote = other.emote; chatType = other.chatType; - msgType = other.msgType; - text.copyFrom(other.text); + chatContent.copyFrom(other.chatContent); toUidList.copyFrom(other.toUidList); } return this; @@ -369,17 +249,11 @@ public final class SendMsgCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasEmote()) { - setEmote(other.emote); - } if (other.hasChatType()) { setChatTypeValue(other.chatType); } - if (other.hasMsgType()) { - setMsgTypeValue(other.msgType); - } - if (other.hasText()) { - getMutableTextBytes().copyFrom(other.text); + if (other.hasChatContent()) { + getMutableChatContent().mergeFrom(other.chatContent); } if (other.hasToUidList()) { getMutableToUidList().addAll(other.toUidList); @@ -394,10 +268,8 @@ public final class SendMsgCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - emote = 0; chatType = 0; - msgType = 0; - text.clear(); + chatContent.clear(); toUidList.clear(); return this; } @@ -409,7 +281,7 @@ public final class SendMsgCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - text.clear(); + chatContent.clearQuick(); toUidList.clear(); return this; } @@ -424,34 +296,24 @@ public final class SendMsgCsReqOuterClass { } SendMsgCsReq other = (SendMsgCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEmote() || emote == other.emote) && (!hasChatType() || chatType == other.chatType) - && (!hasMsgType() || msgType == other.msgType) - && (!hasText() || text.equals(other.text)) + && (!hasChatContent() || chatContent.equals(other.chatContent)) && (!hasToUidList() || toUidList.equals(other.toUidList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(emote); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 104); output.writeEnumNoTag(chatType); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(chatContent); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 24); - output.writeEnumNoTag(msgType); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 50); - output.writeStringNoTag(text); - } - if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < toUidList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(toUidList.array()[i]); } } @@ -461,18 +323,12 @@ public final class SendMsgCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(emote); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(chatType); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(chatContent); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(msgType); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeStringSizeNoTag(text); - } - if ((bitField0_ & 0x00000010) != 0) { size += (1 * toUidList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(toUidList); } return size; @@ -485,52 +341,31 @@ public final class SendMsgCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // emote - emote = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { + case 104: { // chatType final int value = input.readInt32(); if (ChatTypeOuterClass.ChatType.forNumber(value) != null) { chatType = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } tag = input.readTag(); - if (tag != 24) { + if (tag != 66) { break; } } - case 24: { - // msgType - final int value = input.readInt32(); - if (MsgTypeOuterClass.MsgType.forNumber(value) != null) { - msgType = value; - bitField0_ |= 0x00000004; - } + case 66: { + // chatContent + input.readMessage(chatContent); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 74) { break; } } - case 50: { - // text - input.readString(text); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { + case 74: { // toUidList [packed=true] input.readPackedUInt32(toUidList, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { break; @@ -546,10 +381,10 @@ public final class SendMsgCsReqOuterClass { tag = input.readTag(); break; } - case 120: { + case 72: { // toUidList [packed=false] tag = input.readRepeatedUInt32(toUidList, tag); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; break; } } @@ -560,18 +395,12 @@ public final class SendMsgCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.emote, emote); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeEnum(FieldNames.chatType, chatType, ChatTypeOuterClass.ChatType.converter()); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.chatContent, chatContent); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeEnum(FieldNames.msgType, msgType, MsgTypeOuterClass.MsgType.converter()); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeString(FieldNames.text, text); - } - if ((bitField0_ & 0x00000010) != 0) { output.writeRepeatedUInt32(FieldNames.toUidList, toUidList); } output.endObject(); @@ -584,17 +413,6 @@ public final class SendMsgCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 96633208: { - if (input.isAtField(FieldNames.emote)) { - if (!input.trySkipNullValue()) { - emote = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case 1437412018: case 1620118465: { if (input.isAtField(FieldNames.chatType)) { @@ -602,7 +420,7 @@ public final class SendMsgCsReqOuterClass { final ChatTypeOuterClass.ChatType value = input.readEnum(ChatTypeOuterClass.ChatType.converter()); if (value != null) { chatType = value.getNumber(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } else { input.skipUnknownEnumValue(); } @@ -612,28 +430,12 @@ public final class SendMsgCsReqOuterClass { } break; } - case 1343750747: - case -1283380936: { - if (input.isAtField(FieldNames.msgType)) { + case -1372764671: + case -88566126: { + if (input.isAtField(FieldNames.chatContent)) { if (!input.trySkipNullValue()) { - final MsgTypeOuterClass.MsgType value = input.readEnum(MsgTypeOuterClass.MsgType.converter()); - if (value != null) { - msgType = value.getNumber(); - bitField0_ |= 0x00000004; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 3556653: { - if (input.isAtField(FieldNames.text)) { - if (!input.trySkipNullValue()) { - input.readString(text); - bitField0_ |= 0x00000008; + input.readMessage(chatContent); + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -645,7 +447,7 @@ public final class SendMsgCsReqOuterClass { if (input.isAtField(FieldNames.toUidList)) { if (!input.trySkipNullValue()) { input.readRepeatedUInt32(toUidList); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -704,13 +506,9 @@ public final class SendMsgCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName emote = FieldName.forField("emote"); - static final FieldName chatType = FieldName.forField("chatType", "chat_type"); - static final FieldName msgType = FieldName.forField("msgType", "msg_type"); - - static final FieldName text = FieldName.forField("text"); + static final FieldName chatContent = FieldName.forField("chatContent", "chat_content"); static final FieldName toUidList = FieldName.forField("toUidList", "to_uid_list"); } diff --git a/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java new file mode 100644 index 0000000..3cab4e2 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/ServerAnnounceNotifyOuterClass.java @@ -0,0 +1,1271 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; +import us.hebi.quickbuf.Utf8String; + +public final class ServerAnnounceNotifyOuterClass { + /** + * Protobuf type {@code ServerAnnounceNotify} + */ + public static final class ServerAnnounceNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + */ + private final RepeatedMessage announceDataList = RepeatedMessage.newEmptyInstance(AnnounceData.getFactory()); + + private ServerAnnounceNotify() { + } + + /** + * @return a new empty instance of {@code ServerAnnounceNotify} + */ + public static ServerAnnounceNotify newInstance() { + return new ServerAnnounceNotify(); + } + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * @return whether the announceDataList field is set + */ + public boolean hasAnnounceDataList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * @return this + */ + public ServerAnnounceNotify clearAnnounceDataList() { + bitField0_ &= ~0x00000001; + announceDataList.clear(); + return this; + } + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableAnnounceDataList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getAnnounceDataList() { + return announceDataList; + } + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableAnnounceDataList() { + bitField0_ |= 0x00000001; + return announceDataList; + } + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * @param value the announceDataList to add + * @return this + */ + public ServerAnnounceNotify addAnnounceDataList(final AnnounceData value) { + bitField0_ |= 0x00000001; + announceDataList.add(value); + return this; + } + + /** + * repeated .ServerAnnounceNotify.AnnounceData announce_data_list = 2; + * @param values the announceDataList to add + * @return this + */ + public ServerAnnounceNotify addAllAnnounceDataList(final AnnounceData... values) { + bitField0_ |= 0x00000001; + announceDataList.addAll(values); + return this; + } + + @Override + public ServerAnnounceNotify copyFrom(final ServerAnnounceNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + announceDataList.copyFrom(other.announceDataList); + } + return this; + } + + @Override + public ServerAnnounceNotify mergeFrom(final ServerAnnounceNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAnnounceDataList()) { + getMutableAnnounceDataList().addAll(other.announceDataList); + } + return this; + } + + @Override + public ServerAnnounceNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + announceDataList.clear(); + return this; + } + + @Override + public ServerAnnounceNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + announceDataList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof ServerAnnounceNotify)) { + return false; + } + ServerAnnounceNotify other = (ServerAnnounceNotify) o; + return bitField0_ == other.bitField0_ + && (!hasAnnounceDataList() || announceDataList.equals(other.announceDataList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < announceDataList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(announceDataList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * announceDataList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(announceDataList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public ServerAnnounceNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 18: { + // announceDataList + tag = input.readRepeatedMessage(announceDataList, tag); + bitField0_ |= 0x00000001; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedMessage(FieldNames.announceDataList, announceDataList); + } + output.endObject(); + } + + @Override + public ServerAnnounceNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1895739121: + case 121672637: { + if (input.isAtField(FieldNames.announceDataList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(announceDataList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public ServerAnnounceNotify clone() { + return new ServerAnnounceNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static ServerAnnounceNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new ServerAnnounceNotify(), data).checkInitialized(); + } + + public static ServerAnnounceNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new ServerAnnounceNotify(), input).checkInitialized(); + } + + public static ServerAnnounceNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new ServerAnnounceNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating ServerAnnounceNotify messages + */ + public static MessageFactory getFactory() { + return ServerAnnounceNotifyFactory.INSTANCE; + } + + /** + * Protobuf type {@code AnnounceData} + */ + public static final class AnnounceData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional int64 end_time = 2; + */ + private long endTime; + + /** + * optional int64 begin_time = 8; + */ + private long beginTime; + + /** + * optional uint32 config_id = 7; + */ + private int configId; + + /** + * optional uint32 CCOCHKOLEPN = 11; + */ + private int cCOCHKOLEPN; + + /** + * optional uint32 MAMIBMNFJKJ = 12; + */ + private int mAMIBMNFJKJ; + + /** + * optional bool is_center_system_last_5_every_minutes = 10; + */ + private boolean isCenterSystemLast5EveryMinutes; + + /** + * optional string NPIBJLGALPA = 13; + */ + private final Utf8String nPIBJLGALPA = Utf8String.newEmptyInstance(); + + /** + * optional string JENBMJAJLAK = 14; + */ + private final Utf8String jENBMJAJLAK = Utf8String.newEmptyInstance(); + + /** + * optional string KICNNEODFGD = 15; + */ + private final Utf8String kICNNEODFGD = Utf8String.newEmptyInstance(); + + private AnnounceData() { + } + + /** + * @return a new empty instance of {@code AnnounceData} + */ + public static AnnounceData newInstance() { + return new AnnounceData(); + } + + /** + * optional int64 end_time = 2; + * @return whether the endTime field is set + */ + public boolean hasEndTime() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional int64 end_time = 2; + * @return this + */ + public AnnounceData clearEndTime() { + bitField0_ &= ~0x00000001; + endTime = 0L; + return this; + } + + /** + * optional int64 end_time = 2; + * @return the endTime + */ + public long getEndTime() { + return endTime; + } + + /** + * optional int64 end_time = 2; + * @param value the endTime to set + * @return this + */ + public AnnounceData setEndTime(final long value) { + bitField0_ |= 0x00000001; + endTime = value; + return this; + } + + /** + * optional int64 begin_time = 8; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 begin_time = 8; + * @return this + */ + public AnnounceData clearBeginTime() { + bitField0_ &= ~0x00000002; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 8; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 8; + * @param value the beginTime to set + * @return this + */ + public AnnounceData setBeginTime(final long value) { + bitField0_ |= 0x00000002; + beginTime = value; + return this; + } + + /** + * optional uint32 config_id = 7; + * @return whether the configId field is set + */ + public boolean hasConfigId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 config_id = 7; + * @return this + */ + public AnnounceData clearConfigId() { + bitField0_ &= ~0x00000004; + configId = 0; + return this; + } + + /** + * optional uint32 config_id = 7; + * @return the configId + */ + public int getConfigId() { + return configId; + } + + /** + * optional uint32 config_id = 7; + * @param value the configId to set + * @return this + */ + public AnnounceData setConfigId(final int value) { + bitField0_ |= 0x00000004; + configId = value; + return this; + } + + /** + * optional uint32 CCOCHKOLEPN = 11; + * @return whether the cCOCHKOLEPN field is set + */ + public boolean hasCCOCHKOLEPN() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 CCOCHKOLEPN = 11; + * @return this + */ + public AnnounceData clearCCOCHKOLEPN() { + bitField0_ &= ~0x00000008; + cCOCHKOLEPN = 0; + return this; + } + + /** + * optional uint32 CCOCHKOLEPN = 11; + * @return the cCOCHKOLEPN + */ + public int getCCOCHKOLEPN() { + return cCOCHKOLEPN; + } + + /** + * optional uint32 CCOCHKOLEPN = 11; + * @param value the cCOCHKOLEPN to set + * @return this + */ + public AnnounceData setCCOCHKOLEPN(final int value) { + bitField0_ |= 0x00000008; + cCOCHKOLEPN = value; + return this; + } + + /** + * optional uint32 MAMIBMNFJKJ = 12; + * @return whether the mAMIBMNFJKJ field is set + */ + public boolean hasMAMIBMNFJKJ() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 MAMIBMNFJKJ = 12; + * @return this + */ + public AnnounceData clearMAMIBMNFJKJ() { + bitField0_ &= ~0x00000010; + mAMIBMNFJKJ = 0; + return this; + } + + /** + * optional uint32 MAMIBMNFJKJ = 12; + * @return the mAMIBMNFJKJ + */ + public int getMAMIBMNFJKJ() { + return mAMIBMNFJKJ; + } + + /** + * optional uint32 MAMIBMNFJKJ = 12; + * @param value the mAMIBMNFJKJ to set + * @return this + */ + public AnnounceData setMAMIBMNFJKJ(final int value) { + bitField0_ |= 0x00000010; + mAMIBMNFJKJ = value; + return this; + } + + /** + * optional bool is_center_system_last_5_every_minutes = 10; + * @return whether the isCenterSystemLast5EveryMinutes field is set + */ + public boolean hasIsCenterSystemLast5EveryMinutes() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional bool is_center_system_last_5_every_minutes = 10; + * @return this + */ + public AnnounceData clearIsCenterSystemLast5EveryMinutes() { + bitField0_ &= ~0x00000020; + isCenterSystemLast5EveryMinutes = false; + return this; + } + + /** + * optional bool is_center_system_last_5_every_minutes = 10; + * @return the isCenterSystemLast5EveryMinutes + */ + public boolean getIsCenterSystemLast5EveryMinutes() { + return isCenterSystemLast5EveryMinutes; + } + + /** + * optional bool is_center_system_last_5_every_minutes = 10; + * @param value the isCenterSystemLast5EveryMinutes to set + * @return this + */ + public AnnounceData setIsCenterSystemLast5EveryMinutes(final boolean value) { + bitField0_ |= 0x00000020; + isCenterSystemLast5EveryMinutes = value; + return this; + } + + /** + * optional string NPIBJLGALPA = 13; + * @return whether the nPIBJLGALPA field is set + */ + public boolean hasNPIBJLGALPA() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + * optional string NPIBJLGALPA = 13; + * @return this + */ + public AnnounceData clearNPIBJLGALPA() { + bitField0_ &= ~0x00000040; + nPIBJLGALPA.clear(); + return this; + } + + /** + * optional string NPIBJLGALPA = 13; + * @return the nPIBJLGALPA + */ + public String getNPIBJLGALPA() { + return nPIBJLGALPA.getString(); + } + + /** + * optional string NPIBJLGALPA = 13; + * @return internal {@code Utf8String} representation of nPIBJLGALPA for reading + */ + public Utf8String getNPIBJLGALPABytes() { + return this.nPIBJLGALPA; + } + + /** + * optional string NPIBJLGALPA = 13; + * @return internal {@code Utf8String} representation of nPIBJLGALPA for modifications + */ + public Utf8String getMutableNPIBJLGALPABytes() { + bitField0_ |= 0x00000040; + return this.nPIBJLGALPA; + } + + /** + * optional string NPIBJLGALPA = 13; + * @param value the nPIBJLGALPA to set + * @return this + */ + public AnnounceData setNPIBJLGALPA(final CharSequence value) { + bitField0_ |= 0x00000040; + nPIBJLGALPA.copyFrom(value); + return this; + } + + /** + * optional string NPIBJLGALPA = 13; + * @param value the nPIBJLGALPA to set + * @return this + */ + public AnnounceData setNPIBJLGALPA(final Utf8String value) { + bitField0_ |= 0x00000040; + nPIBJLGALPA.copyFrom(value); + return this; + } + + /** + * optional string JENBMJAJLAK = 14; + * @return whether the jENBMJAJLAK field is set + */ + public boolean hasJENBMJAJLAK() { + return (bitField0_ & 0x00000080) != 0; + } + + /** + * optional string JENBMJAJLAK = 14; + * @return this + */ + public AnnounceData clearJENBMJAJLAK() { + bitField0_ &= ~0x00000080; + jENBMJAJLAK.clear(); + return this; + } + + /** + * optional string JENBMJAJLAK = 14; + * @return the jENBMJAJLAK + */ + public String getJENBMJAJLAK() { + return jENBMJAJLAK.getString(); + } + + /** + * optional string JENBMJAJLAK = 14; + * @return internal {@code Utf8String} representation of jENBMJAJLAK for reading + */ + public Utf8String getJENBMJAJLAKBytes() { + return this.jENBMJAJLAK; + } + + /** + * optional string JENBMJAJLAK = 14; + * @return internal {@code Utf8String} representation of jENBMJAJLAK for modifications + */ + public Utf8String getMutableJENBMJAJLAKBytes() { + bitField0_ |= 0x00000080; + return this.jENBMJAJLAK; + } + + /** + * optional string JENBMJAJLAK = 14; + * @param value the jENBMJAJLAK to set + * @return this + */ + public AnnounceData setJENBMJAJLAK(final CharSequence value) { + bitField0_ |= 0x00000080; + jENBMJAJLAK.copyFrom(value); + return this; + } + + /** + * optional string JENBMJAJLAK = 14; + * @param value the jENBMJAJLAK to set + * @return this + */ + public AnnounceData setJENBMJAJLAK(final Utf8String value) { + bitField0_ |= 0x00000080; + jENBMJAJLAK.copyFrom(value); + return this; + } + + /** + * optional string KICNNEODFGD = 15; + * @return whether the kICNNEODFGD field is set + */ + public boolean hasKICNNEODFGD() { + return (bitField0_ & 0x00000100) != 0; + } + + /** + * optional string KICNNEODFGD = 15; + * @return this + */ + public AnnounceData clearKICNNEODFGD() { + bitField0_ &= ~0x00000100; + kICNNEODFGD.clear(); + return this; + } + + /** + * optional string KICNNEODFGD = 15; + * @return the kICNNEODFGD + */ + public String getKICNNEODFGD() { + return kICNNEODFGD.getString(); + } + + /** + * optional string KICNNEODFGD = 15; + * @return internal {@code Utf8String} representation of kICNNEODFGD for reading + */ + public Utf8String getKICNNEODFGDBytes() { + return this.kICNNEODFGD; + } + + /** + * optional string KICNNEODFGD = 15; + * @return internal {@code Utf8String} representation of kICNNEODFGD for modifications + */ + public Utf8String getMutableKICNNEODFGDBytes() { + bitField0_ |= 0x00000100; + return this.kICNNEODFGD; + } + + /** + * optional string KICNNEODFGD = 15; + * @param value the kICNNEODFGD to set + * @return this + */ + public AnnounceData setKICNNEODFGD(final CharSequence value) { + bitField0_ |= 0x00000100; + kICNNEODFGD.copyFrom(value); + return this; + } + + /** + * optional string KICNNEODFGD = 15; + * @param value the kICNNEODFGD to set + * @return this + */ + public AnnounceData setKICNNEODFGD(final Utf8String value) { + bitField0_ |= 0x00000100; + kICNNEODFGD.copyFrom(value); + return this; + } + + @Override + public AnnounceData copyFrom(final AnnounceData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + endTime = other.endTime; + beginTime = other.beginTime; + configId = other.configId; + cCOCHKOLEPN = other.cCOCHKOLEPN; + mAMIBMNFJKJ = other.mAMIBMNFJKJ; + isCenterSystemLast5EveryMinutes = other.isCenterSystemLast5EveryMinutes; + nPIBJLGALPA.copyFrom(other.nPIBJLGALPA); + jENBMJAJLAK.copyFrom(other.jENBMJAJLAK); + kICNNEODFGD.copyFrom(other.kICNNEODFGD); + } + return this; + } + + @Override + public AnnounceData mergeFrom(final AnnounceData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasEndTime()) { + setEndTime(other.endTime); + } + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } + if (other.hasConfigId()) { + setConfigId(other.configId); + } + if (other.hasCCOCHKOLEPN()) { + setCCOCHKOLEPN(other.cCOCHKOLEPN); + } + if (other.hasMAMIBMNFJKJ()) { + setMAMIBMNFJKJ(other.mAMIBMNFJKJ); + } + if (other.hasIsCenterSystemLast5EveryMinutes()) { + setIsCenterSystemLast5EveryMinutes(other.isCenterSystemLast5EveryMinutes); + } + if (other.hasNPIBJLGALPA()) { + getMutableNPIBJLGALPABytes().copyFrom(other.nPIBJLGALPA); + } + if (other.hasJENBMJAJLAK()) { + getMutableJENBMJAJLAKBytes().copyFrom(other.jENBMJAJLAK); + } + if (other.hasKICNNEODFGD()) { + getMutableKICNNEODFGDBytes().copyFrom(other.kICNNEODFGD); + } + return this; + } + + @Override + public AnnounceData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + endTime = 0L; + beginTime = 0L; + configId = 0; + cCOCHKOLEPN = 0; + mAMIBMNFJKJ = 0; + isCenterSystemLast5EveryMinutes = false; + nPIBJLGALPA.clear(); + jENBMJAJLAK.clear(); + kICNNEODFGD.clear(); + return this; + } + + @Override + public AnnounceData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + nPIBJLGALPA.clear(); + jENBMJAJLAK.clear(); + kICNNEODFGD.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof AnnounceData)) { + return false; + } + AnnounceData other = (AnnounceData) o; + return bitField0_ == other.bitField0_ + && (!hasEndTime() || endTime == other.endTime) + && (!hasBeginTime() || beginTime == other.beginTime) + && (!hasConfigId() || configId == other.configId) + && (!hasCCOCHKOLEPN() || cCOCHKOLEPN == other.cCOCHKOLEPN) + && (!hasMAMIBMNFJKJ() || mAMIBMNFJKJ == other.mAMIBMNFJKJ) + && (!hasIsCenterSystemLast5EveryMinutes() || isCenterSystemLast5EveryMinutes == other.isCenterSystemLast5EveryMinutes) + && (!hasNPIBJLGALPA() || nPIBJLGALPA.equals(other.nPIBJLGALPA)) + && (!hasJENBMJAJLAK() || jENBMJAJLAK.equals(other.jENBMJAJLAK)) + && (!hasKICNNEODFGD() || kICNNEODFGD.equals(other.kICNNEODFGD)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeInt64NoTag(endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); + output.writeInt64NoTag(beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(configId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(cCOCHKOLEPN); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(mAMIBMNFJKJ); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 80); + output.writeBoolNoTag(isCenterSystemLast5EveryMinutes); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 106); + output.writeStringNoTag(nPIBJLGALPA); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeRawByte((byte) 114); + output.writeStringNoTag(jENBMJAJLAK); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeRawByte((byte) 122); + output.writeStringNoTag(kICNNEODFGD); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(configId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cCOCHKOLEPN); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mAMIBMNFJKJ); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(nPIBJLGALPA); + } + if ((bitField0_ & 0x00000080) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(jENBMJAJLAK); + } + if ((bitField0_ & 0x00000100) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(kICNNEODFGD); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public AnnounceData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // beginTime + beginTime = input.readInt64(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // configId + configId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // cCOCHKOLEPN + cCOCHKOLEPN = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // mAMIBMNFJKJ + mAMIBMNFJKJ = input.readUInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // isCenterSystemLast5EveryMinutes + isCenterSystemLast5EveryMinutes = input.readBool(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 106) { + break; + } + } + case 106: { + // nPIBJLGALPA + input.readString(nPIBJLGALPA); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // jENBMJAJLAK + input.readString(jENBMJAJLAK); + bitField0_ |= 0x00000080; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // kICNNEODFGD + input.readString(kICNNEODFGD); + bitField0_ |= 0x00000100; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeInt64(FieldNames.endTime, endTime); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.beginTime, beginTime); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.configId, configId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cCOCHKOLEPN, cCOCHKOLEPN); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeUInt32(FieldNames.mAMIBMNFJKJ, mAMIBMNFJKJ); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeBool(FieldNames.isCenterSystemLast5EveryMinutes, isCenterSystemLast5EveryMinutes); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.nPIBJLGALPA, nPIBJLGALPA); + } + if ((bitField0_ & 0x00000080) != 0) { + output.writeString(FieldNames.jENBMJAJLAK, jENBMJAJLAK); + } + if ((bitField0_ & 0x00000100) != 0) { + output.writeString(FieldNames.kICNNEODFGD, kICNNEODFGD); + } + output.endObject(); + } + + @Override + public AnnounceData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { + if (!input.trySkipNullValue()) { + endTime = input.readInt64(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { + if (!input.trySkipNullValue()) { + beginTime = input.readInt64(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -580140035: + case -804450504: { + if (input.isAtField(FieldNames.configId)) { + if (!input.trySkipNullValue()) { + configId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1029266991: { + if (input.isAtField(FieldNames.cCOCHKOLEPN)) { + if (!input.trySkipNullValue()) { + cCOCHKOLEPN = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case 845624534: { + if (input.isAtField(FieldNames.mAMIBMNFJKJ)) { + if (!input.trySkipNullValue()) { + mAMIBMNFJKJ = input.readUInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -68660299: + case -630028317: { + if (input.isAtField(FieldNames.isCenterSystemLast5EveryMinutes)) { + if (!input.trySkipNullValue()) { + isCenterSystemLast5EveryMinutes = input.readBool(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1804095130: { + if (input.isAtField(FieldNames.nPIBJLGALPA)) { + if (!input.trySkipNullValue()) { + input.readString(nPIBJLGALPA); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1108065825: { + if (input.isAtField(FieldNames.jENBMJAJLAK)) { + if (!input.trySkipNullValue()) { + input.readString(jENBMJAJLAK); + bitField0_ |= 0x00000080; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1423180782: { + if (input.isAtField(FieldNames.kICNNEODFGD)) { + if (!input.trySkipNullValue()) { + input.readString(kICNNEODFGD); + bitField0_ |= 0x00000100; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public AnnounceData clone() { + return new AnnounceData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static AnnounceData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new AnnounceData(), data).checkInitialized(); + } + + public static AnnounceData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new AnnounceData(), input).checkInitialized(); + } + + public static AnnounceData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new AnnounceData(), input).checkInitialized(); + } + + /** + * @return factory for creating AnnounceData messages + */ + public static MessageFactory getFactory() { + return AnnounceDataFactory.INSTANCE; + } + + private enum AnnounceDataFactory implements MessageFactory { + INSTANCE; + + @Override + public AnnounceData create() { + return AnnounceData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName endTime = FieldName.forField("endTime", "end_time"); + + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + + static final FieldName configId = FieldName.forField("configId", "config_id"); + + static final FieldName cCOCHKOLEPN = FieldName.forField("CCOCHKOLEPN"); + + static final FieldName mAMIBMNFJKJ = FieldName.forField("MAMIBMNFJKJ"); + + static final FieldName isCenterSystemLast5EveryMinutes = FieldName.forField("isCenterSystemLast5EveryMinutes", "is_center_system_last_5_every_minutes"); + + static final FieldName nPIBJLGALPA = FieldName.forField("NPIBJLGALPA"); + + static final FieldName jENBMJAJLAK = FieldName.forField("JENBMJAJLAK"); + + static final FieldName kICNNEODFGD = FieldName.forField("KICNNEODFGD"); + } + } + + private enum ServerAnnounceNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public ServerAnnounceNotify create() { + return ServerAnnounceNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName announceDataList = FieldName.forField("announceDataList", "announce_data_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ServerPrefsOuterClass.java b/src/generated/main/emu/lunarcore/proto/ServerPrefsOuterClass.java index cde44eb..2d113da 100644 --- a/src/generated/main/emu/lunarcore/proto/ServerPrefsOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ServerPrefsOuterClass.java @@ -20,12 +20,12 @@ public final class ServerPrefsOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 server_prefs_id = 15; + * optional uint32 server_prefs_id = 8; */ private int serverPrefsId; /** - * optional bytes data = 5; + * optional bytes data = 10; */ private final RepeatedByte data = RepeatedByte.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class ServerPrefsOuterClass { } /** - * optional uint32 server_prefs_id = 15; + * optional uint32 server_prefs_id = 8; * @return whether the serverPrefsId field is set */ public boolean hasServerPrefsId() { @@ -48,7 +48,7 @@ public final class ServerPrefsOuterClass { } /** - * optional uint32 server_prefs_id = 15; + * optional uint32 server_prefs_id = 8; * @return this */ public ServerPrefs clearServerPrefsId() { @@ -58,7 +58,7 @@ public final class ServerPrefsOuterClass { } /** - * optional uint32 server_prefs_id = 15; + * optional uint32 server_prefs_id = 8; * @return the serverPrefsId */ public int getServerPrefsId() { @@ -66,7 +66,7 @@ public final class ServerPrefsOuterClass { } /** - * optional uint32 server_prefs_id = 15; + * optional uint32 server_prefs_id = 8; * @param value the serverPrefsId to set * @return this */ @@ -77,7 +77,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * @return whether the data field is set */ public boolean hasData() { @@ -85,7 +85,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * @return this */ public ServerPrefs clearData() { @@ -95,7 +95,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * @param value the data to add * @return this */ @@ -134,7 +134,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * @param values the data to add * @return this */ @@ -145,7 +145,7 @@ public final class ServerPrefsOuterClass { } /** - * optional bytes data = 5; + * optional bytes data = 10; * @param values the data to set * @return this */ @@ -221,11 +221,11 @@ public final class ServerPrefsOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(serverPrefsId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 82); output.writeBytesNoTag(data); } } @@ -249,16 +249,16 @@ public final class ServerPrefsOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 64: { // serverPrefsId serverPrefsId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 82) { break; } } - case 42: { + case 82: { // data input.readBytes(data); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetAssistAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetAssistAvatarCsReqOuterClass.java index f492817..fffc224 100644 --- a/src/generated/main/emu/lunarcore/proto/SetAssistAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetAssistAvatarCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class SetAssistAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 1; + * optional uint32 avatar_id = 11; */ private int avatarId; /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; */ private final RepeatedInt avatarIdList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 1; + * optional uint32 avatar_id = 11; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -48,7 +48,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 1; + * optional uint32 avatar_id = 11; * @return this */ public SetAssistAvatarCsReq clearAvatarId() { @@ -58,7 +58,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 1; + * optional uint32 avatar_id = 11; * @return the avatarId */ public int getAvatarId() { @@ -66,7 +66,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * optional uint32 avatar_id = 1; + * optional uint32 avatar_id = 11; * @param value the avatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; * @return whether the avatarIdList field is set */ public boolean hasAvatarIdList() { @@ -85,7 +85,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; * @return this */ public SetAssistAvatarCsReq clearAvatarIdList() { @@ -95,7 +95,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; * @param value the avatarIdList to add * @return this */ @@ -134,7 +134,7 @@ public final class SetAssistAvatarCsReqOuterClass { } /** - * repeated uint32 avatar_id_list = 15; + * repeated uint32 avatar_id_list = 2; * @param values the avatarIdList to add * @return this */ @@ -210,12 +210,12 @@ public final class SetAssistAvatarCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < avatarIdList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(avatarIdList.array()[i]); } } @@ -240,16 +240,16 @@ public final class SetAssistAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 88: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 18) { break; } } - case 122: { + case 18: { // avatarIdList [packed=true] input.readPackedUInt32(avatarIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class SetAssistAvatarCsReqOuterClass { tag = input.readTag(); break; } - case 120: { + case 16: { // avatarIdList [packed=false] tag = input.readRepeatedUInt32(avatarIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetAssistAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetAssistAvatarScRspOuterClass.java index 200b80a..69da67e 100644 --- a/src/generated/main/emu/lunarcore/proto/SetAssistAvatarScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetAssistAvatarScRspOuterClass.java @@ -20,17 +20,17 @@ public final class SetAssistAvatarScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 7; */ private int retcode; /** - * optional uint32 avatar_id = 11; + * optional uint32 avatar_id = 9; */ private int avatarId; /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; */ private final RepeatedInt avatarIdList = RepeatedInt.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 7; * @return this */ public SetAssistAvatarScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 retcode = 2; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 11; + * optional uint32 avatar_id = 9; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -90,7 +90,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 11; + * optional uint32 avatar_id = 9; * @return this */ public SetAssistAvatarScRsp clearAvatarId() { @@ -100,7 +100,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 11; + * optional uint32 avatar_id = 9; * @return the avatarId */ public int getAvatarId() { @@ -108,7 +108,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * optional uint32 avatar_id = 11; + * optional uint32 avatar_id = 9; * @param value the avatarId to set * @return this */ @@ -119,7 +119,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; * @return whether the avatarIdList field is set */ public boolean hasAvatarIdList() { @@ -127,7 +127,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; * @return this */ public SetAssistAvatarScRsp clearAvatarIdList() { @@ -137,7 +137,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; * @param value the avatarIdList to add * @return this */ @@ -176,7 +176,7 @@ public final class SetAssistAvatarScRspOuterClass { } /** - * repeated uint32 avatar_id_list = 7; + * repeated uint32 avatar_id_list = 6; * @param values the avatarIdList to add * @return this */ @@ -258,16 +258,16 @@ public final class SetAssistAvatarScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < avatarIdList.length(); i++) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(avatarIdList.array()[i]); } } @@ -295,25 +295,25 @@ public final class SetAssistAvatarScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 72) { break; } } - case 88: { + case 72: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 58) { + if (tag != 50) { break; } } - case 58: { + case 50: { // avatarIdList [packed=true] input.readPackedUInt32(avatarIdList, tag); bitField0_ |= 0x00000004; @@ -332,7 +332,7 @@ public final class SetAssistAvatarScRspOuterClass { tag = input.readTag(); break; } - case 56: { + case 48: { // avatarIdList [packed=false] tag = input.readRepeatedUInt32(avatarIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdCsReqOuterClass.java new file mode 100644 index 0000000..b79ab6d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdCsReqOuterClass.java @@ -0,0 +1,341 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SetAvatarEnhancedIdCsReqOuterClass { + /** + * Protobuf type {@code SetAvatarEnhancedIdCsReq} + */ + public static final class SetAvatarEnhancedIdCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 avatar_enhance_id = 1; + */ + private int avatarEnhanceId; + + /** + * optional uint32 avatar_id = 4; + */ + private int avatarId; + + private SetAvatarEnhancedIdCsReq() { + } + + /** + * @return a new empty instance of {@code SetAvatarEnhancedIdCsReq} + */ + public static SetAvatarEnhancedIdCsReq newInstance() { + return new SetAvatarEnhancedIdCsReq(); + } + + /** + * optional uint32 avatar_enhance_id = 1; + * @return whether the avatarEnhanceId field is set + */ + public boolean hasAvatarEnhanceId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 avatar_enhance_id = 1; + * @return this + */ + public SetAvatarEnhancedIdCsReq clearAvatarEnhanceId() { + bitField0_ &= ~0x00000001; + avatarEnhanceId = 0; + return this; + } + + /** + * optional uint32 avatar_enhance_id = 1; + * @return the avatarEnhanceId + */ + public int getAvatarEnhanceId() { + return avatarEnhanceId; + } + + /** + * optional uint32 avatar_enhance_id = 1; + * @param value the avatarEnhanceId to set + * @return this + */ + public SetAvatarEnhancedIdCsReq setAvatarEnhanceId(final int value) { + bitField0_ |= 0x00000001; + avatarEnhanceId = value; + return this; + } + + /** + * optional uint32 avatar_id = 4; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 avatar_id = 4; + * @return this + */ + public SetAvatarEnhancedIdCsReq clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional uint32 avatar_id = 4; + * @return the avatarId + */ + public int getAvatarId() { + return avatarId; + } + + /** + * optional uint32 avatar_id = 4; + * @param value the avatarId to set + * @return this + */ + public SetAvatarEnhancedIdCsReq setAvatarId(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + @Override + public SetAvatarEnhancedIdCsReq copyFrom(final SetAvatarEnhancedIdCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarEnhanceId = other.avatarEnhanceId; + avatarId = other.avatarId; + } + return this; + } + + @Override + public SetAvatarEnhancedIdCsReq mergeFrom(final SetAvatarEnhancedIdCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarEnhanceId()) { + setAvatarEnhanceId(other.avatarEnhanceId); + } + if (other.hasAvatarId()) { + setAvatarId(other.avatarId); + } + return this; + } + + @Override + public SetAvatarEnhancedIdCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarEnhanceId = 0; + avatarId = 0; + return this; + } + + @Override + public SetAvatarEnhancedIdCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetAvatarEnhancedIdCsReq)) { + return false; + } + SetAvatarEnhancedIdCsReq other = (SetAvatarEnhancedIdCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarEnhanceId() || avatarEnhanceId == other.avatarEnhanceId) + && (!hasAvatarId() || avatarId == other.avatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(avatarEnhanceId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(avatarId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarEnhanceId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetAvatarEnhancedIdCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 8: { + // avatarEnhanceId + avatarEnhanceId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 32) { + break; + } + } + case 32: { + // avatarId + avatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.avatarEnhanceId, avatarEnhanceId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.avatarId, avatarId); + } + output.endObject(); + } + + @Override + public SetAvatarEnhancedIdCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -94590192: + case 306903794: { + if (input.isAtField(FieldNames.avatarEnhanceId)) { + if (!input.trySkipNullValue()) { + avatarEnhanceId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + avatarId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetAvatarEnhancedIdCsReq clone() { + return new SetAvatarEnhancedIdCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetAvatarEnhancedIdCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetAvatarEnhancedIdCsReq(), data).checkInitialized(); + } + + public static SetAvatarEnhancedIdCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetAvatarEnhancedIdCsReq(), input).checkInitialized(); + } + + public static SetAvatarEnhancedIdCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetAvatarEnhancedIdCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetAvatarEnhancedIdCsReq messages + */ + public static MessageFactory getFactory() { + return SetAvatarEnhancedIdCsReqFactory.INSTANCE; + } + + private enum SetAvatarEnhancedIdCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetAvatarEnhancedIdCsReq create() { + return SetAvatarEnhancedIdCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarEnhanceId = FieldName.forField("avatarEnhanceId", "avatar_enhance_id"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueSelectCellScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdScRspOuterClass.java similarity index 57% rename from src/generated/main/emu/lunarcore/proto/ChessRogueSelectCellScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdScRspOuterClass.java index 025fa40..d1f0f4b 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueSelectCellScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetAvatarEnhancedIdScRspOuterClass.java @@ -11,35 +11,35 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueSelectCellScRspOuterClass { +public final class SetAvatarEnhancedIdScRspOuterClass { /** - * Protobuf type {@code ChessRogueSelectCellScRsp} + * Protobuf type {@code SetAvatarEnhancedIdScRsp} */ - public static final class ChessRogueSelectCellScRsp extends ProtoMessage implements Cloneable { + public static final class SetAvatarEnhancedIdScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; */ private int retcode; /** - * optional uint32 cell_id = 7; + * optional uint32 enhance_id = 11; */ - private int cellId; + private int enhanceId; - private ChessRogueSelectCellScRsp() { + private SetAvatarEnhancedIdScRsp() { } /** - * @return a new empty instance of {@code ChessRogueSelectCellScRsp} + * @return a new empty instance of {@code SetAvatarEnhancedIdScRsp} */ - public static ChessRogueSelectCellScRsp newInstance() { - return new ChessRogueSelectCellScRsp(); + public static SetAvatarEnhancedIdScRsp newInstance() { + return new SetAvatarEnhancedIdScRsp(); } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +47,17 @@ public final class ChessRogueSelectCellScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @return this */ - public ChessRogueSelectCellScRsp clearRetcode() { + public SetAvatarEnhancedIdScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @return the retcode */ public int getRetcode() { @@ -65,66 +65,66 @@ public final class ChessRogueSelectCellScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 6; * @param value the retcode to set * @return this */ - public ChessRogueSelectCellScRsp setRetcode(final int value) { + public SetAvatarEnhancedIdScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 cell_id = 7; - * @return whether the cellId field is set + * optional uint32 enhance_id = 11; + * @return whether the enhanceId field is set */ - public boolean hasCellId() { + public boolean hasEnhanceId() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 cell_id = 7; + * optional uint32 enhance_id = 11; * @return this */ - public ChessRogueSelectCellScRsp clearCellId() { + public SetAvatarEnhancedIdScRsp clearEnhanceId() { bitField0_ &= ~0x00000002; - cellId = 0; + enhanceId = 0; return this; } /** - * optional uint32 cell_id = 7; - * @return the cellId + * optional uint32 enhance_id = 11; + * @return the enhanceId */ - public int getCellId() { - return cellId; + public int getEnhanceId() { + return enhanceId; } /** - * optional uint32 cell_id = 7; - * @param value the cellId to set + * optional uint32 enhance_id = 11; + * @param value the enhanceId to set * @return this */ - public ChessRogueSelectCellScRsp setCellId(final int value) { + public SetAvatarEnhancedIdScRsp setEnhanceId(final int value) { bitField0_ |= 0x00000002; - cellId = value; + enhanceId = value; return this; } @Override - public ChessRogueSelectCellScRsp copyFrom(final ChessRogueSelectCellScRsp other) { + public SetAvatarEnhancedIdScRsp copyFrom(final SetAvatarEnhancedIdScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - cellId = other.cellId; + enhanceId = other.enhanceId; } return this; } @Override - public ChessRogueSelectCellScRsp mergeFrom(final ChessRogueSelectCellScRsp other) { + public SetAvatarEnhancedIdScRsp mergeFrom(final SetAvatarEnhancedIdScRsp other) { if (other.isEmpty()) { return this; } @@ -132,26 +132,26 @@ public final class ChessRogueSelectCellScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasCellId()) { - setCellId(other.cellId); + if (other.hasEnhanceId()) { + setEnhanceId(other.enhanceId); } return this; } @Override - public ChessRogueSelectCellScRsp clear() { + public SetAvatarEnhancedIdScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - cellId = 0; + enhanceId = 0; return this; } @Override - public ChessRogueSelectCellScRsp clearQuick() { + public SetAvatarEnhancedIdScRsp clearQuick() { if (isEmpty()) { return this; } @@ -165,24 +165,24 @@ public final class ChessRogueSelectCellScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueSelectCellScRsp)) { + if (!(o instanceof SetAvatarEnhancedIdScRsp)) { return false; } - ChessRogueSelectCellScRsp other = (ChessRogueSelectCellScRsp) o; + SetAvatarEnhancedIdScRsp other = (SetAvatarEnhancedIdScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasCellId() || cellId == other.cellId); + && (!hasEnhanceId() || enhanceId == other.enhanceId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(cellId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(enhanceId); } } @@ -193,30 +193,30 @@ public final class ChessRogueSelectCellScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(enhanceId); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueSelectCellScRsp mergeFrom(final ProtoSource input) throws IOException { + public SetAvatarEnhancedIdScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 48: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 88) { break; } } - case 56: { - // cellId - cellId = input.readUInt32(); + case 88: { + // enhanceId + enhanceId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -244,13 +244,13 @@ public final class ChessRogueSelectCellScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.cellId, cellId); + output.writeUInt32(FieldNames.enhanceId, enhanceId); } output.endObject(); } @Override - public ChessRogueSelectCellScRsp mergeFrom(final JsonSource input) throws IOException { + public SetAvatarEnhancedIdScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -267,11 +267,11 @@ public final class ChessRogueSelectCellScRspOuterClass { } break; } - case -1364082147: - case 663147800: { - if (input.isAtField(FieldNames.cellId)) { + case 1259067497: + case 376408140: { + if (input.isAtField(FieldNames.enhanceId)) { if (!input.trySkipNullValue()) { - cellId = input.readUInt32(); + enhanceId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -290,8 +290,8 @@ public final class ChessRogueSelectCellScRspOuterClass { } @Override - public ChessRogueSelectCellScRsp clone() { - return new ChessRogueSelectCellScRsp().copyFrom(this); + public SetAvatarEnhancedIdScRsp clone() { + return new SetAvatarEnhancedIdScRsp().copyFrom(this); } @Override @@ -299,32 +299,32 @@ public final class ChessRogueSelectCellScRspOuterClass { return ((bitField0_) == 0); } - public static ChessRogueSelectCellScRsp parseFrom(final byte[] data) throws + public static SetAvatarEnhancedIdScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueSelectCellScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SetAvatarEnhancedIdScRsp(), data).checkInitialized(); } - public static ChessRogueSelectCellScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueSelectCellScRsp(), input).checkInitialized(); + public static SetAvatarEnhancedIdScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetAvatarEnhancedIdScRsp(), input).checkInitialized(); } - public static ChessRogueSelectCellScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueSelectCellScRsp(), input).checkInitialized(); + public static SetAvatarEnhancedIdScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetAvatarEnhancedIdScRsp(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueSelectCellScRsp messages + * @return factory for creating SetAvatarEnhancedIdScRsp messages */ - public static MessageFactory getFactory() { - return ChessRogueSelectCellScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return SetAvatarEnhancedIdScRspFactory.INSTANCE; } - private enum ChessRogueSelectCellScRspFactory implements MessageFactory { + private enum SetAvatarEnhancedIdScRspFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueSelectCellScRsp create() { - return ChessRogueSelectCellScRsp.newInstance(); + public SetAvatarEnhancedIdScRsp create() { + return SetAvatarEnhancedIdScRsp.newInstance(); } } @@ -334,7 +334,7 @@ public final class ChessRogueSelectCellScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + static final FieldName enhanceId = FieldName.forField("enhanceId", "enhance_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SetAvatarPathCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetAvatarPathCsReqOuterClass.java index 05e4fa8..417f378 100644 --- a/src/generated/main/emu/lunarcore/proto/SetAvatarPathCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetAvatarPathCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetAvatarPathCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .MultiPathAvatarType avatar_id = 13; + * optional .MultiPathAvatarType avatar_id = 12; */ private int avatarId; @@ -34,7 +34,7 @@ public final class SetAvatarPathCsReqOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 13; + * optional .MultiPathAvatarType avatar_id = 12; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -42,7 +42,7 @@ public final class SetAvatarPathCsReqOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 13; + * optional .MultiPathAvatarType avatar_id = 12; * @return this */ public SetAvatarPathCsReq clearAvatarId() { @@ -52,7 +52,7 @@ public final class SetAvatarPathCsReqOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 13; + * optional .MultiPathAvatarType avatar_id = 12; * @return the avatarId */ public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getAvatarId() { @@ -85,7 +85,7 @@ public final class SetAvatarPathCsReqOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 13; + * optional .MultiPathAvatarType avatar_id = 12; * @param value the avatarId to set * @return this */ @@ -155,7 +155,7 @@ public final class SetAvatarPathCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeEnumNoTag(avatarId); } } @@ -176,7 +176,7 @@ public final class SetAvatarPathCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 96: { // avatarId final int value = input.readInt32(); if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/SetAvatarPathScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetAvatarPathScRspOuterClass.java index 80266f0..9fdb4ff 100644 --- a/src/generated/main/emu/lunarcore/proto/SetAvatarPathScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetAvatarPathScRspOuterClass.java @@ -24,7 +24,7 @@ public final class SetAvatarPathScRspOuterClass { private int retcode; /** - * optional .MultiPathAvatarType avatar_id = 14; + * optional .MultiPathAvatarType avatar_id = 12; */ private int avatarId; @@ -76,7 +76,7 @@ public final class SetAvatarPathScRspOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 14; + * optional .MultiPathAvatarType avatar_id = 12; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -84,7 +84,7 @@ public final class SetAvatarPathScRspOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 14; + * optional .MultiPathAvatarType avatar_id = 12; * @return this */ public SetAvatarPathScRsp clearAvatarId() { @@ -94,7 +94,7 @@ public final class SetAvatarPathScRspOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 14; + * optional .MultiPathAvatarType avatar_id = 12; * @return the avatarId */ public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getAvatarId() { @@ -127,7 +127,7 @@ public final class SetAvatarPathScRspOuterClass { } /** - * optional .MultiPathAvatarType avatar_id = 14; + * optional .MultiPathAvatarType avatar_id = 12; * @param value the avatarId to set * @return this */ @@ -207,7 +207,7 @@ public final class SetAvatarPathScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 96); output.writeEnumNoTag(avatarId); } } @@ -236,11 +236,11 @@ public final class SetAvatarPathScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 96) { break; } } - case 112: { + case 96: { // avatarId final int value = input.readInt32(); if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { diff --git a/src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarCsReqOuterClass.java new file mode 100644 index 0000000..8f3b270 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarCsReqOuterClass.java @@ -0,0 +1,385 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class SetChallengePeakMobLineupAvatarCsReqOuterClass { + /** + * Protobuf type {@code SetChallengePeakMobLineupAvatarCsReq} + */ + public static final class SetChallengePeakMobLineupAvatarCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_peak_group_id = 8; + */ + private int challengePeakGroupId; + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + */ + private final RepeatedMessage lineupList = RepeatedMessage.newEmptyInstance(ChallengePeakMobLineupInfoOuterClass.ChallengePeakMobLineupInfo.getFactory()); + + private SetChallengePeakMobLineupAvatarCsReq() { + } + + /** + * @return a new empty instance of {@code SetChallengePeakMobLineupAvatarCsReq} + */ + public static SetChallengePeakMobLineupAvatarCsReq newInstance() { + return new SetChallengePeakMobLineupAvatarCsReq(); + } + + /** + * optional uint32 challenge_peak_group_id = 8; + * @return whether the challengePeakGroupId field is set + */ + public boolean hasChallengePeakGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_peak_group_id = 8; + * @return this + */ + public SetChallengePeakMobLineupAvatarCsReq clearChallengePeakGroupId() { + bitField0_ &= ~0x00000001; + challengePeakGroupId = 0; + return this; + } + + /** + * optional uint32 challenge_peak_group_id = 8; + * @return the challengePeakGroupId + */ + public int getChallengePeakGroupId() { + return challengePeakGroupId; + } + + /** + * optional uint32 challenge_peak_group_id = 8; + * @param value the challengePeakGroupId to set + * @return this + */ + public SetChallengePeakMobLineupAvatarCsReq setChallengePeakGroupId(final int value) { + bitField0_ |= 0x00000001; + challengePeakGroupId = value; + return this; + } + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + * @return whether the lineupList field is set + */ + public boolean hasLineupList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + * @return this + */ + public SetChallengePeakMobLineupAvatarCsReq clearLineupList() { + bitField0_ &= ~0x00000002; + lineupList.clear(); + return this; + } + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableLineupList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getLineupList( + ) { + return lineupList; + } + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableLineupList( + ) { + bitField0_ |= 0x00000002; + return lineupList; + } + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + * @param value the lineupList to add + * @return this + */ + public SetChallengePeakMobLineupAvatarCsReq addLineupList( + final ChallengePeakMobLineupInfoOuterClass.ChallengePeakMobLineupInfo value) { + bitField0_ |= 0x00000002; + lineupList.add(value); + return this; + } + + /** + * repeated .ChallengePeakMobLineupInfo lineup_list = 2; + * @param values the lineupList to add + * @return this + */ + public SetChallengePeakMobLineupAvatarCsReq addAllLineupList( + final ChallengePeakMobLineupInfoOuterClass.ChallengePeakMobLineupInfo... values) { + bitField0_ |= 0x00000002; + lineupList.addAll(values); + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarCsReq copyFrom( + final SetChallengePeakMobLineupAvatarCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakGroupId = other.challengePeakGroupId; + lineupList.copyFrom(other.lineupList); + } + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarCsReq mergeFrom( + final SetChallengePeakMobLineupAvatarCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakGroupId()) { + setChallengePeakGroupId(other.challengePeakGroupId); + } + if (other.hasLineupList()) { + getMutableLineupList().addAll(other.lineupList); + } + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakGroupId = 0; + lineupList.clear(); + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + lineupList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetChallengePeakMobLineupAvatarCsReq)) { + return false; + } + SetChallengePeakMobLineupAvatarCsReq other = (SetChallengePeakMobLineupAvatarCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakGroupId() || challengePeakGroupId == other.challengePeakGroupId) + && (!hasLineupList() || lineupList.equals(other.lineupList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(challengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < lineupList.length(); i++) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(lineupList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * lineupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(lineupList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetChallengePeakMobLineupAvatarCsReq mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 64: { + // challengePeakGroupId + challengePeakGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // lineupList + tag = input.readRepeatedMessage(lineupList, tag); + bitField0_ |= 0x00000002; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengePeakGroupId, challengePeakGroupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedMessage(FieldNames.lineupList, lineupList); + } + output.endObject(); + } + + @Override + public SetChallengePeakMobLineupAvatarCsReq mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1143355832: + case -502257825: { + if (input.isAtField(FieldNames.challengePeakGroupId)) { + if (!input.trySkipNullValue()) { + challengePeakGroupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 781801165: + case -1516340914: { + if (input.isAtField(FieldNames.lineupList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(lineupList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarCsReq clone() { + return new SetChallengePeakMobLineupAvatarCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetChallengePeakMobLineupAvatarCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetChallengePeakMobLineupAvatarCsReq(), data).checkInitialized(); + } + + public static SetChallengePeakMobLineupAvatarCsReq parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SetChallengePeakMobLineupAvatarCsReq(), input).checkInitialized(); + } + + public static SetChallengePeakMobLineupAvatarCsReq parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SetChallengePeakMobLineupAvatarCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SetChallengePeakMobLineupAvatarCsReq messages + */ + public static MessageFactory getFactory() { + return SetChallengePeakMobLineupAvatarCsReqFactory.INSTANCE; + } + + private enum SetChallengePeakMobLineupAvatarCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SetChallengePeakMobLineupAvatarCsReq create() { + return SetChallengePeakMobLineupAvatarCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakGroupId = FieldName.forField("challengePeakGroupId", "challenge_peak_group_id"); + + static final FieldName lineupList = FieldName.forField("lineupList", "lineup_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarScRspOuterClass.java new file mode 100644 index 0000000..686b501 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SetChallengePeakMobLineupAvatarScRspOuterClass.java @@ -0,0 +1,265 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SetChallengePeakMobLineupAvatarScRspOuterClass { + /** + * Protobuf type {@code SetChallengePeakMobLineupAvatarScRsp} + */ + public static final class SetChallengePeakMobLineupAvatarScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 14; + */ + private int retcode; + + private SetChallengePeakMobLineupAvatarScRsp() { + } + + /** + * @return a new empty instance of {@code SetChallengePeakMobLineupAvatarScRsp} + */ + public static SetChallengePeakMobLineupAvatarScRsp newInstance() { + return new SetChallengePeakMobLineupAvatarScRsp(); + } + + /** + * optional uint32 retcode = 14; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 14; + * @return this + */ + public SetChallengePeakMobLineupAvatarScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 14; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 14; + * @param value the retcode to set + * @return this + */ + public SetChallengePeakMobLineupAvatarScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarScRsp copyFrom( + final SetChallengePeakMobLineupAvatarScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + } + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarScRsp mergeFrom( + final SetChallengePeakMobLineupAvatarScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SetChallengePeakMobLineupAvatarScRsp)) { + return false; + } + SetChallengePeakMobLineupAvatarScRsp other = (SetChallengePeakMobLineupAvatarScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SetChallengePeakMobLineupAvatarScRsp mergeFrom(final ProtoSource input) throws + IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 112: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + output.endObject(); + } + + @Override + public SetChallengePeakMobLineupAvatarScRsp mergeFrom(final JsonSource input) throws + IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SetChallengePeakMobLineupAvatarScRsp clone() { + return new SetChallengePeakMobLineupAvatarScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SetChallengePeakMobLineupAvatarScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SetChallengePeakMobLineupAvatarScRsp(), data).checkInitialized(); + } + + public static SetChallengePeakMobLineupAvatarScRsp parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SetChallengePeakMobLineupAvatarScRsp(), input).checkInitialized(); + } + + public static SetChallengePeakMobLineupAvatarScRsp parseFrom(final JsonSource input) throws + IOException { + return ProtoMessage.mergeFrom(new SetChallengePeakMobLineupAvatarScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating SetChallengePeakMobLineupAvatarScRsp messages + */ + public static MessageFactory getFactory() { + return SetChallengePeakMobLineupAvatarScRspFactory.INSTANCE; + } + + private enum SetChallengePeakMobLineupAvatarScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public SetChallengePeakMobLineupAvatarScRsp create() { + return SetChallengePeakMobLineupAvatarScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java index 50cfb15..bbd799e 100644 --- a/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetClientPausedCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional bool paused = 2; + * optional bool paused = 10; */ private boolean paused; @@ -34,7 +34,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 10; * @return whether the paused field is set */ public boolean hasPaused() { @@ -42,7 +42,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 10; * @return this */ public SetClientPausedCsReq clearPaused() { @@ -52,7 +52,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 10; * @return the paused */ public boolean getPaused() { @@ -60,7 +60,7 @@ public final class SetClientPausedCsReqOuterClass { } /** - * optional bool paused = 2; + * optional bool paused = 10; * @param value the paused to set * @return this */ @@ -129,7 +129,7 @@ public final class SetClientPausedCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 80); output.writeBoolNoTag(paused); } } @@ -150,7 +150,7 @@ public final class SetClientPausedCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 80: { // paused paused = input.readBool(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java index ee93609..c5c9bed 100644 --- a/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetClientPausedScRspOuterClass.java @@ -19,12 +19,12 @@ public final class SetClientPausedScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; */ private int retcode; /** - * optional bool paused = 10; + * optional bool paused = 6; */ private boolean paused; @@ -39,7 +39,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @return this */ public SetClientPausedScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 10; + * optional bool paused = 6; * @return whether the paused field is set */ public boolean hasPaused() { @@ -84,7 +84,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 10; + * optional bool paused = 6; * @return this */ public SetClientPausedScRsp clearPaused() { @@ -94,7 +94,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 10; + * optional bool paused = 6; * @return the paused */ public boolean getPaused() { @@ -102,7 +102,7 @@ public final class SetClientPausedScRspOuterClass { } /** - * optional bool paused = 10; + * optional bool paused = 6; * @param value the paused to set * @return this */ @@ -177,11 +177,11 @@ public final class SetClientPausedScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 48); output.writeBoolNoTag(paused); } } @@ -205,16 +205,16 @@ public final class SetClientPausedScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 80) { + if (tag != 48) { break; } } - case 80: { + case 48: { // paused paused = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarCsReqOuterClass.java index 8249831..8874966 100644 --- a/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class SetDisplayAvatarCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; */ private final RepeatedMessage displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarOuterClass.DisplayAvatar.getFactory()); @@ -35,7 +35,7 @@ public final class SetDisplayAvatarCsReqOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; * @return whether the displayAvatarList field is set */ public boolean hasDisplayAvatarList() { @@ -43,7 +43,7 @@ public final class SetDisplayAvatarCsReqOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; * @return this */ public SetDisplayAvatarCsReq clearDisplayAvatarList() { @@ -53,7 +53,7 @@ public final class SetDisplayAvatarCsReqOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class SetDisplayAvatarCsReqOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class SetDisplayAvatarCsReqOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; * @param value the displayAvatarList to add * @return this */ @@ -93,7 +93,7 @@ public final class SetDisplayAvatarCsReqOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 10; + * repeated .DisplayAvatar display_avatar_list = 14; * @param values the displayAvatarList to add * @return this */ @@ -165,7 +165,7 @@ public final class SetDisplayAvatarCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < displayAvatarList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 114); output.writeMessageNoTag(displayAvatarList.get(i)); } } @@ -187,7 +187,7 @@ public final class SetDisplayAvatarCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 82: { + case 114: { // displayAvatarList tag = input.readRepeatedMessage(displayAvatarList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarScRspOuterClass.java index 5fa23ef..4e7b517 100644 --- a/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetDisplayAvatarScRspOuterClass.java @@ -20,12 +20,12 @@ public final class SetDisplayAvatarScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; */ private int retcode; /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; */ private final RepeatedMessage displayAvatarList = RepeatedMessage.newEmptyInstance(DisplayAvatarOuterClass.DisplayAvatar.getFactory()); @@ -40,7 +40,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return this */ public SetDisplayAvatarScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * optional uint32 retcode = 5; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; * @return whether the displayAvatarList field is set */ public boolean hasDisplayAvatarList() { @@ -85,7 +85,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; * @return this */ public SetDisplayAvatarScRsp clearDisplayAvatarList() { @@ -95,7 +95,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; * @param value the displayAvatarList to add * @return this */ @@ -135,7 +135,7 @@ public final class SetDisplayAvatarScRspOuterClass { } /** - * repeated .DisplayAvatar display_avatar_list = 4; + * repeated .DisplayAvatar display_avatar_list = 7; * @param values the displayAvatarList to add * @return this */ @@ -212,12 +212,12 @@ public final class SetDisplayAvatarScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < displayAvatarList.length(); i++) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 58); output.writeMessageNoTag(displayAvatarList.get(i)); } } @@ -242,16 +242,16 @@ public final class SetDisplayAvatarScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 58) { break; } } - case 34: { + case 58: { // displayAvatarList tag = input.readRepeatedMessage(displayAvatarList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java index cfadda7..0a43fd1 100644 --- a/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetFriendMarkCsReqOuterClass.java @@ -19,12 +19,12 @@ public final class SetFriendMarkCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 15; + * optional uint32 uid = 8; */ private int uid; /** - * optional bool is_set_mark = 11; + * optional bool is_set_mark = 6; */ private boolean isSetMark; @@ -39,7 +39,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional uint32 uid = 15; + * optional uint32 uid = 8; * @return whether the uid field is set */ public boolean hasUid() { @@ -47,7 +47,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional uint32 uid = 15; + * optional uint32 uid = 8; * @return this */ public SetFriendMarkCsReq clearUid() { @@ -57,7 +57,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional uint32 uid = 15; + * optional uint32 uid = 8; * @return the uid */ public int getUid() { @@ -65,7 +65,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional uint32 uid = 15; + * optional uint32 uid = 8; * @param value the uid to set * @return this */ @@ -76,7 +76,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional bool is_set_mark = 11; + * optional bool is_set_mark = 6; * @return whether the isSetMark field is set */ public boolean hasIsSetMark() { @@ -84,7 +84,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional bool is_set_mark = 11; + * optional bool is_set_mark = 6; * @return this */ public SetFriendMarkCsReq clearIsSetMark() { @@ -94,7 +94,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional bool is_set_mark = 11; + * optional bool is_set_mark = 6; * @return the isSetMark */ public boolean getIsSetMark() { @@ -102,7 +102,7 @@ public final class SetFriendMarkCsReqOuterClass { } /** - * optional bool is_set_mark = 11; + * optional bool is_set_mark = 6; * @param value the isSetMark to set * @return this */ @@ -177,11 +177,11 @@ public final class SetFriendMarkCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 48); output.writeBoolNoTag(isSetMark); } } @@ -205,16 +205,16 @@ public final class SetFriendMarkCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 64: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 48) { break; } } - case 88: { + case 48: { // isSetMark isSetMark = input.readBool(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java index 179df39..b8378f8 100644 --- a/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetFriendMarkScRspOuterClass.java @@ -19,17 +19,17 @@ public final class SetFriendMarkScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 8; + * optional uint32 uid = 3; */ private int uid; /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; */ private int retcode; /** - * optional bool is_set_mark = 10; + * optional bool is_set_mark = 4; */ private boolean isSetMark; @@ -44,7 +44,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 uid = 8; + * optional uint32 uid = 3; * @return whether the uid field is set */ public boolean hasUid() { @@ -52,7 +52,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 uid = 8; + * optional uint32 uid = 3; * @return this */ public SetFriendMarkScRsp clearUid() { @@ -62,7 +62,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 uid = 8; + * optional uint32 uid = 3; * @return the uid */ public int getUid() { @@ -70,7 +70,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 uid = 8; + * optional uint32 uid = 3; * @param value the uid to set * @return this */ @@ -81,7 +81,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -89,7 +89,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return this */ public SetFriendMarkScRsp clearRetcode() { @@ -99,7 +99,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @return the retcode */ public int getRetcode() { @@ -107,7 +107,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 8; * @param value the retcode to set * @return this */ @@ -118,7 +118,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional bool is_set_mark = 10; + * optional bool is_set_mark = 4; * @return whether the isSetMark field is set */ public boolean hasIsSetMark() { @@ -126,7 +126,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional bool is_set_mark = 10; + * optional bool is_set_mark = 4; * @return this */ public SetFriendMarkScRsp clearIsSetMark() { @@ -136,7 +136,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional bool is_set_mark = 10; + * optional bool is_set_mark = 4; * @return the isSetMark */ public boolean getIsSetMark() { @@ -144,7 +144,7 @@ public final class SetFriendMarkScRspOuterClass { } /** - * optional bool is_set_mark = 10; + * optional bool is_set_mark = 4; * @param value the isSetMark to set * @return this */ @@ -225,15 +225,15 @@ public final class SetFriendMarkScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 32); output.writeBoolNoTag(isSetMark); } } @@ -260,25 +260,25 @@ public final class SetFriendMarkScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 64: { + case 24: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 64) { break; } } - case 112: { + case 64: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 32) { break; } } - case 80: { + case 32: { // isSetMark isSetMark = input.readBool(); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java index 9408486..5da5da3 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 birthday = 13; + * optional uint32 birthday = 4; */ private int birthday; @@ -34,7 +34,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { } /** - * optional uint32 birthday = 13; + * optional uint32 birthday = 4; * @return whether the birthday field is set */ public boolean hasBirthday() { @@ -42,7 +42,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { } /** - * optional uint32 birthday = 13; + * optional uint32 birthday = 4; * @return this */ public SetGameplayBirthdayCsReq clearBirthday() { @@ -52,7 +52,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { } /** - * optional uint32 birthday = 13; + * optional uint32 birthday = 4; * @return the birthday */ public int getBirthday() { @@ -60,7 +60,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { } /** - * optional uint32 birthday = 13; + * optional uint32 birthday = 4; * @param value the birthday to set * @return this */ @@ -129,7 +129,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(birthday); } } @@ -150,7 +150,7 @@ public final class SetGameplayBirthdayCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 32: { // birthday birthday = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java index 83eb42b..3c2e28b 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGameplayBirthdayScRspOuterClass.java @@ -19,15 +19,15 @@ public final class SetGameplayBirthdayScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 birthday = 11; - */ - private int birthday; - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; */ private int retcode; + /** + * optional uint32 birthday = 13; + */ + private int birthday; + private SetGameplayBirthdayScRsp() { } @@ -39,62 +39,25 @@ public final class SetGameplayBirthdayScRspOuterClass { } /** - * optional uint32 birthday = 11; - * @return whether the birthday field is set + * optional uint32 retcode = 12; + * @return whether the retcode field is set */ - public boolean hasBirthday() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 birthday = 11; - * @return this - */ - public SetGameplayBirthdayScRsp clearBirthday() { - bitField0_ &= ~0x00000001; - birthday = 0; - return this; - } - - /** - * optional uint32 birthday = 11; - * @return the birthday - */ - public int getBirthday() { - return birthday; - } - - /** - * optional uint32 birthday = 11; - * @param value the birthday to set - * @return this - */ - public SetGameplayBirthdayScRsp setBirthday(final int value) { - bitField0_ |= 0x00000001; - birthday = value; - return this; - } - - /** - * optional uint32 retcode = 13; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return this */ public SetGameplayBirthdayScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class SetGameplayBirthdayScRspOuterClass { } /** - * optional uint32 retcode = 13; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ public SetGameplayBirthdayScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 birthday = 13; + * @return whether the birthday field is set + */ + public boolean hasBirthday() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 birthday = 13; + * @return this + */ + public SetGameplayBirthdayScRsp clearBirthday() { + bitField0_ &= ~0x00000002; + birthday = 0; + return this; + } + + /** + * optional uint32 birthday = 13; + * @return the birthday + */ + public int getBirthday() { + return birthday; + } + + /** + * optional uint32 birthday = 13; + * @param value the birthday to set + * @return this + */ + public SetGameplayBirthdayScRsp setBirthday(final int value) { + bitField0_ |= 0x00000002; + birthday = value; + return this; + } + @Override public SetGameplayBirthdayScRsp copyFrom(final SetGameplayBirthdayScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - birthday = other.birthday; retcode = other.retcode; + birthday = other.birthday; } return this; } @@ -129,12 +129,12 @@ public final class SetGameplayBirthdayScRspOuterClass { return this; } cachedSize = -1; - if (other.hasBirthday()) { - setBirthday(other.birthday); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasBirthday()) { + setBirthday(other.birthday); + } return this; } @@ -145,8 +145,8 @@ public final class SetGameplayBirthdayScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - birthday = 0; retcode = 0; + birthday = 0; return this; } @@ -170,19 +170,19 @@ public final class SetGameplayBirthdayScRspOuterClass { } SetGameplayBirthdayScRsp other = (SetGameplayBirthdayScRsp) o; return bitField0_ == other.bitField0_ - && (!hasBirthday() || birthday == other.birthday) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasBirthday() || birthday == other.birthday); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(birthday); + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(birthday); } } @@ -190,10 +190,10 @@ public final class SetGameplayBirthdayScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(birthday); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(birthday); } return size; } @@ -205,9 +205,9 @@ public final class SetGameplayBirthdayScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // birthday - birthday = input.readUInt32(); + case 96: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 104) { @@ -215,8 +215,8 @@ public final class SetGameplayBirthdayScRspOuterClass { } } case 104: { - // retcode - retcode = input.readUInt32(); + // birthday + birthday = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class SetGameplayBirthdayScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.birthday, birthday); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.birthday, birthday); } output.endObject(); } @@ -256,10 +256,10 @@ public final class SetGameplayBirthdayScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1069376125: { - if (input.isAtField(FieldNames.birthday)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - birthday = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,10 +267,10 @@ public final class SetGameplayBirthdayScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 1069376125: { + if (input.isAtField(FieldNames.birthday)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + birthday = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -331,9 +331,9 @@ public final class SetGameplayBirthdayScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName birthday = FieldName.forField("birthday"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName birthday = FieldName.forField("birthday"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataCsReqOuterClass.java index c90bd62..13bea71 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataCsReqOuterClass.java @@ -20,17 +20,25 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 entry_id = 6; + *
+     *  CCIIHMMJOEM
+     * 
+ * + * optional uint32 entry_id = 9; */ private int entryId; /** - * optional uint32 group_id = 11; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; */ private int groupId; /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; */ private final Utf8String groupSaveData = Utf8String.newEmptyInstance(); @@ -45,7 +53,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + *
+     *  CCIIHMMJOEM
+     * 
+ * + * optional uint32 entry_id = 9; * @return whether the entryId field is set */ public boolean hasEntryId() { @@ -53,7 +65,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + *
+     *  CCIIHMMJOEM
+     * 
+ * + * optional uint32 entry_id = 9; * @return this */ public SetGroupCustomSaveDataCsReq clearEntryId() { @@ -63,7 +79,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + *
+     *  CCIIHMMJOEM
+     * 
+ * + * optional uint32 entry_id = 9; * @return the entryId */ public int getEntryId() { @@ -71,7 +91,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 entry_id = 6; + *
+     *  CCIIHMMJOEM
+     * 
+ * + * optional uint32 entry_id = 9; * @param value the entryId to set * @return this */ @@ -82,7 +106,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 group_id = 11; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -90,7 +118,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 group_id = 11; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @return this */ public SetGroupCustomSaveDataCsReq clearGroupId() { @@ -100,7 +132,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 group_id = 11; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @return the groupId */ public int getGroupId() { @@ -108,7 +144,11 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional uint32 group_id = 11; + *
+     *  FJNHDHOHBCL
+     * 
+ * + * optional uint32 group_id = 13; * @param value the groupId to set * @return this */ @@ -119,7 +159,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @return whether the groupSaveData field is set */ public boolean hasGroupSaveData() { @@ -127,7 +167,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @return this */ public SetGroupCustomSaveDataCsReq clearGroupSaveData() { @@ -137,7 +177,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @return the groupSaveData */ public String getGroupSaveData() { @@ -145,7 +185,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @return internal {@code Utf8String} representation of groupSaveData for reading */ public Utf8String getGroupSaveDataBytes() { @@ -153,7 +193,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @return internal {@code Utf8String} representation of groupSaveData for modifications */ public Utf8String getMutableGroupSaveDataBytes() { @@ -162,7 +202,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @param value the groupSaveData to set * @return this */ @@ -173,7 +213,7 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { } /** - * optional string group_save_data = 1; + * optional string group_save_data = 8; * @param value the groupSaveData to set * @return this */ @@ -255,15 +295,15 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 66); output.writeStringNoTag(groupSaveData); } } @@ -290,25 +330,25 @@ public final class SetGroupCustomSaveDataCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 72: { // entryId entryId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 104) { break; } } - case 88: { + case 104: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 10) { + if (tag != 66) { break; } } - case 10: { + case 66: { // groupSaveData input.readString(groupSaveData); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataScRspOuterClass.java index 91c066d..a2fd480 100644 --- a/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetGroupCustomSaveDataScRspOuterClass.java @@ -13,30 +13,50 @@ import us.hebi.quickbuf.ProtoSource; public final class SetGroupCustomSaveDataScRspOuterClass { /** + *
+   *  LNGCFPJEKNG
+   * 
+ * * Protobuf type {@code SetGroupCustomSaveDataScRsp} */ public static final class SetGroupCustomSaveDataScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 7; + *
+     *  JODPMEDMPJK
+     * 
+ * + * optional uint32 entry_id = 4; + */ + private int entryId; + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 11; */ private int groupId; /** - * optional uint32 retcode = 9; + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 15; */ private int retcode; - /** - * optional uint32 entry_id = 12; - */ - private int entryId; - private SetGroupCustomSaveDataScRsp() { } /** + *
+     *  LNGCFPJEKNG
+     * 
+ * * @return a new empty instance of {@code SetGroupCustomSaveDataScRsp} */ public static SetGroupCustomSaveDataScRsp newInstance() { @@ -44,99 +64,37 @@ public final class SetGroupCustomSaveDataScRspOuterClass { } /** - * optional uint32 group_id = 7; - * @return whether the groupId field is set + *
+     *  JODPMEDMPJK
+     * 
+ * + * optional uint32 entry_id = 4; + * @return whether the entryId field is set */ - public boolean hasGroupId() { + public boolean hasEntryId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 7; - * @return this - */ - public SetGroupCustomSaveDataScRsp clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 7; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 7; - * @param value the groupId to set - * @return this - */ - public SetGroupCustomSaveDataScRsp setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 retcode = 9; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 9; - * @return this - */ - public SetGroupCustomSaveDataScRsp clearRetcode() { - bitField0_ &= ~0x00000002; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 9; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 9; - * @param value the retcode to set - * @return this - */ - public SetGroupCustomSaveDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; - retcode = value; - return this; - } - - /** - * optional uint32 entry_id = 12; - * @return whether the entryId field is set - */ - public boolean hasEntryId() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 entry_id = 12; + *
+     *  JODPMEDMPJK
+     * 
+ * + * optional uint32 entry_id = 4; * @return this */ public SetGroupCustomSaveDataScRsp clearEntryId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; entryId = 0; return this; } /** - * optional uint32 entry_id = 12; + *
+     *  JODPMEDMPJK
+     * 
+ * + * optional uint32 entry_id = 4; * @return the entryId */ public int getEntryId() { @@ -144,24 +102,134 @@ public final class SetGroupCustomSaveDataScRspOuterClass { } /** - * optional uint32 entry_id = 12; + *
+     *  JODPMEDMPJK
+     * 
+ * + * optional uint32 entry_id = 4; * @param value the entryId to set * @return this */ public SetGroupCustomSaveDataScRsp setEntryId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; entryId = value; return this; } + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 11; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 11; + * @return this + */ + public SetGroupCustomSaveDataScRsp clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 11; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 11; + * @param value the groupId to set + * @return this + */ + public SetGroupCustomSaveDataScRsp setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 15; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 15; + * @return this + */ + public SetGroupCustomSaveDataScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 15; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + *
+     *  JDLHKMNFDBD
+     * 
+ * + * optional uint32 retcode = 15; + * @param value the retcode to set + * @return this + */ + public SetGroupCustomSaveDataScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + @Override public SetGroupCustomSaveDataScRsp copyFrom(final SetGroupCustomSaveDataScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + entryId = other.entryId; groupId = other.groupId; retcode = other.retcode; - entryId = other.entryId; } return this; } @@ -172,15 +240,15 @@ public final class SetGroupCustomSaveDataScRspOuterClass { return this; } cachedSize = -1; + if (other.hasEntryId()) { + setEntryId(other.entryId); + } if (other.hasGroupId()) { setGroupId(other.groupId); } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasEntryId()) { - setEntryId(other.entryId); - } return this; } @@ -191,9 +259,9 @@ public final class SetGroupCustomSaveDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + entryId = 0; groupId = 0; retcode = 0; - entryId = 0; return this; } @@ -217,24 +285,24 @@ public final class SetGroupCustomSaveDataScRspOuterClass { } SetGroupCustomSaveDataScRsp other = (SetGroupCustomSaveDataScRsp) o; return bitField0_ == other.bitField0_ + && (!hasEntryId() || entryId == other.entryId) && (!hasGroupId() || groupId == other.groupId) - && (!hasRetcode() || retcode == other.retcode) - && (!hasEntryId() || entryId == other.entryId); + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(entryId); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(retcode); } } @@ -242,13 +310,13 @@ public final class SetGroupCustomSaveDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entryId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } return size; } @@ -260,27 +328,27 @@ public final class SetGroupCustomSaveDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 32: { // entryId entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +373,13 @@ public final class SetGroupCustomSaveDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.entryId, entryId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.entryId, entryId); + output.writeUInt32(FieldNames.retcode, retcode); } output.endObject(); } @@ -323,12 +391,24 @@ public final class SetGroupCustomSaveDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case -1591558867: + case -2093663224: { + if (input.isAtField(FieldNames.entryId)) { + if (!input.trySkipNullValue()) { + entryId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case 293428218: case 506361563: { if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { groupId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -339,18 +419,6 @@ public final class SetGroupCustomSaveDataScRspOuterClass { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1591558867: - case -2093663224: { - if (input.isAtField(FieldNames.entryId)) { - if (!input.trySkipNullValue()) { - entryId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -412,11 +480,11 @@ public final class SetGroupCustomSaveDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName entryId = FieldName.forField("entryId", "entry_id"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName entryId = FieldName.forField("entryId", "entry_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java index a149344..eb349ee 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SetHeadIconCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 id = 1; + * optional uint32 id = 9; */ private int id; @@ -34,7 +34,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 1; + * optional uint32 id = 9; * @return whether the id field is set */ public boolean hasId() { @@ -42,7 +42,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 1; + * optional uint32 id = 9; * @return this */ public SetHeadIconCsReq clearId() { @@ -52,7 +52,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 1; + * optional uint32 id = 9; * @return the id */ public int getId() { @@ -60,7 +60,7 @@ public final class SetHeadIconCsReqOuterClass { } /** - * optional uint32 id = 1; + * optional uint32 id = 9; * @param value the id to set * @return this */ @@ -129,7 +129,7 @@ public final class SetHeadIconCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(id); } } @@ -150,7 +150,7 @@ public final class SetHeadIconCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 72: { // id id = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java index 78cf511..02575f1 100644 --- a/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetHeadIconScRspOuterClass.java @@ -19,15 +19,15 @@ public final class SetHeadIconScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 current_head_icon_id = 9; - */ - private int currentHeadIconId; - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 1; */ private int retcode; + /** + * optional uint32 current_head_icon_id = 14; + */ + private int currentHeadIconId; + private SetHeadIconScRsp() { } @@ -39,62 +39,25 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 current_head_icon_id = 9; - * @return whether the currentHeadIconId field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasCurrentHeadIconId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 current_head_icon_id = 9; - * @return this - */ - public SetHeadIconScRsp clearCurrentHeadIconId() { - bitField0_ &= ~0x00000001; - currentHeadIconId = 0; - return this; - } - - /** - * optional uint32 current_head_icon_id = 9; - * @return the currentHeadIconId - */ - public int getCurrentHeadIconId() { - return currentHeadIconId; - } - - /** - * optional uint32 current_head_icon_id = 9; - * @param value the currentHeadIconId to set - * @return this - */ - public SetHeadIconScRsp setCurrentHeadIconId(final int value) { - bitField0_ |= 0x00000001; - currentHeadIconId = value; - return this; - } - - /** - * optional uint32 retcode = 14; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 1; * @return this */ public SetHeadIconScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class SetHeadIconScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ public SetHeadIconScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 current_head_icon_id = 14; + * @return whether the currentHeadIconId field is set + */ + public boolean hasCurrentHeadIconId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 current_head_icon_id = 14; + * @return this + */ + public SetHeadIconScRsp clearCurrentHeadIconId() { + bitField0_ &= ~0x00000002; + currentHeadIconId = 0; + return this; + } + + /** + * optional uint32 current_head_icon_id = 14; + * @return the currentHeadIconId + */ + public int getCurrentHeadIconId() { + return currentHeadIconId; + } + + /** + * optional uint32 current_head_icon_id = 14; + * @param value the currentHeadIconId to set + * @return this + */ + public SetHeadIconScRsp setCurrentHeadIconId(final int value) { + bitField0_ |= 0x00000002; + currentHeadIconId = value; + return this; + } + @Override public SetHeadIconScRsp copyFrom(final SetHeadIconScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - currentHeadIconId = other.currentHeadIconId; retcode = other.retcode; + currentHeadIconId = other.currentHeadIconId; } return this; } @@ -129,12 +129,12 @@ public final class SetHeadIconScRspOuterClass { return this; } cachedSize = -1; - if (other.hasCurrentHeadIconId()) { - setCurrentHeadIconId(other.currentHeadIconId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurrentHeadIconId()) { + setCurrentHeadIconId(other.currentHeadIconId); + } return this; } @@ -145,8 +145,8 @@ public final class SetHeadIconScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - currentHeadIconId = 0; retcode = 0; + currentHeadIconId = 0; return this; } @@ -170,19 +170,19 @@ public final class SetHeadIconScRspOuterClass { } SetHeadIconScRsp other = (SetHeadIconScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCurrentHeadIconId() || currentHeadIconId == other.currentHeadIconId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurrentHeadIconId() || currentHeadIconId == other.currentHeadIconId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(currentHeadIconId); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 112); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(currentHeadIconId); } } @@ -190,10 +190,10 @@ public final class SetHeadIconScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(currentHeadIconId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(currentHeadIconId); } return size; } @@ -205,9 +205,9 @@ public final class SetHeadIconScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 72: { - // currentHeadIconId - currentHeadIconId = input.readUInt32(); + case 8: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 112) { @@ -215,8 +215,8 @@ public final class SetHeadIconScRspOuterClass { } } case 112: { - // retcode - retcode = input.readUInt32(); + // currentHeadIconId + currentHeadIconId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class SetHeadIconScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.currentHeadIconId, currentHeadIconId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.currentHeadIconId, currentHeadIconId); } output.endObject(); } @@ -256,11 +256,10 @@ public final class SetHeadIconScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 2107487181: - case -1003133880: { - if (input.isAtField(FieldNames.currentHeadIconId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - currentHeadIconId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class SetHeadIconScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 2107487181: + case -1003133880: { + if (input.isAtField(FieldNames.currentHeadIconId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + currentHeadIconId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class SetHeadIconScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName currentHeadIconId = FieldName.forField("currentHeadIconId", "current_head_icon_id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName currentHeadIconId = FieldName.forField("currentHeadIconId", "current_head_icon_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java index a5e6be6..3e09e8f 100644 --- a/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class SetLineupNameCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 11; + * optional uint32 index = 5; */ private int index; /** - * optional string name = 9; + * optional string name = 10; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 11; + * optional uint32 index = 5; * @return whether the index field is set */ public boolean hasIndex() { @@ -48,7 +48,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 11; + * optional uint32 index = 5; * @return this */ public SetLineupNameCsReq clearIndex() { @@ -58,7 +58,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 11; + * optional uint32 index = 5; * @return the index */ public int getIndex() { @@ -66,7 +66,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional uint32 index = 11; + * optional uint32 index = 5; * @param value the index to set * @return this */ @@ -77,7 +77,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @return whether the name field is set */ public boolean hasName() { @@ -85,7 +85,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @return this */ public SetLineupNameCsReq clearName() { @@ -95,7 +95,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @return the name */ public String getName() { @@ -103,7 +103,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -111,7 +111,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -120,7 +120,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @param value the name to set * @return this */ @@ -131,7 +131,7 @@ public final class SetLineupNameCsReqOuterClass { } /** - * optional string name = 9; + * optional string name = 10; * @param value the name to set * @return this */ @@ -207,11 +207,11 @@ public final class SetLineupNameCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(index); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 82); output.writeStringNoTag(name); } } @@ -235,16 +235,16 @@ public final class SetLineupNameCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 40: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 82) { break; } } - case 74: { + case 82: { // name input.readString(name); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java index 1816456..0e93f2b 100644 --- a/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetLineupNameScRspOuterClass.java @@ -20,17 +20,17 @@ public final class SetLineupNameScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 7; - */ - private int index; - - /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional string name = 5; + * optional uint32 index = 11; + */ + private int index; + + /** + * optional string name = 10; */ private final Utf8String name = Utf8String.newEmptyInstance(); @@ -45,62 +45,25 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 index = 7; - * @return whether the index field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasIndex() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 index = 7; - * @return this - */ - public SetLineupNameScRsp clearIndex() { - bitField0_ &= ~0x00000001; - index = 0; - return this; - } - - /** - * optional uint32 index = 7; - * @return the index - */ - public int getIndex() { - return index; - } - - /** - * optional uint32 index = 7; - * @param value the index to set - * @return this - */ - public SetLineupNameScRsp setIndex(final int value) { - bitField0_ |= 0x00000001; - index = value; - return this; - } - - /** - * optional uint32 retcode = 12; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @return this */ public SetLineupNameScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -108,18 +71,55 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ public SetLineupNameScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional string name = 5; + * optional uint32 index = 11; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 11; + * @return this + */ + public SetLineupNameScRsp clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 11; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 11; + * @param value the index to set + * @return this + */ + public SetLineupNameScRsp setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional string name = 10; * @return whether the name field is set */ public boolean hasName() { @@ -127,7 +127,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 5; + * optional string name = 10; * @return this */ public SetLineupNameScRsp clearName() { @@ -137,7 +137,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 5; + * optional string name = 10; * @return the name */ public String getName() { @@ -145,7 +145,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 5; + * optional string name = 10; * @return internal {@code Utf8String} representation of name for reading */ public Utf8String getNameBytes() { @@ -153,7 +153,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 5; + * optional string name = 10; * @return internal {@code Utf8String} representation of name for modifications */ public Utf8String getMutableNameBytes() { @@ -162,7 +162,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 5; + * optional string name = 10; * @param value the name to set * @return this */ @@ -173,7 +173,7 @@ public final class SetLineupNameScRspOuterClass { } /** - * optional string name = 5; + * optional string name = 10; * @param value the name to set * @return this */ @@ -188,8 +188,8 @@ public final class SetLineupNameScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - index = other.index; retcode = other.retcode; + index = other.index; name.copyFrom(other.name); } return this; @@ -201,12 +201,12 @@ public final class SetLineupNameScRspOuterClass { return this; } cachedSize = -1; - if (other.hasIndex()) { - setIndex(other.index); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasIndex()) { + setIndex(other.index); + } if (other.hasName()) { getMutableNameBytes().copyFrom(other.name); } @@ -220,8 +220,8 @@ public final class SetLineupNameScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - index = 0; retcode = 0; + index = 0; name.clear(); return this; } @@ -247,23 +247,23 @@ public final class SetLineupNameScRspOuterClass { } SetLineupNameScRsp other = (SetLineupNameScRsp) o; return bitField0_ == other.bitField0_ - && (!hasIndex() || index == other.index) && (!hasRetcode() || retcode == other.retcode) + && (!hasIndex() || index == other.index) && (!hasName() || name.equals(other.name)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(index); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(index); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 82); output.writeStringNoTag(name); } } @@ -272,10 +272,10 @@ public final class SetLineupNameScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeStringSizeNoTag(name); @@ -290,25 +290,25 @@ public final class SetLineupNameScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { - // index - index = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 8: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 88) { break; } } - case 42: { + case 88: { + // index + index = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 82) { + break; + } + } + case 82: { // name input.readString(name); bitField0_ |= 0x00000004; @@ -335,10 +335,10 @@ public final class SetLineupNameScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000004) != 0) { output.writeString(FieldNames.name, name); @@ -353,10 +353,10 @@ public final class SetLineupNameScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -364,10 +364,10 @@ public final class SetLineupNameScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -439,10 +439,10 @@ public final class SetLineupNameScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName index = FieldName.forField("index"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName index = FieldName.forField("index"); + static final FieldName name = FieldName.forField("name"); } } diff --git a/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java index 1348677..93a1b77 100644 --- a/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetNicknameCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class SetNicknameCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional string nickname = 2; + * optional string nickname = 3; */ private final Utf8String nickname = Utf8String.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @return whether the nickname field is set */ public boolean hasNickname() { @@ -43,7 +43,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @return this */ public SetNicknameCsReq clearNickname() { @@ -53,7 +53,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @return the nickname */ public String getNickname() { @@ -61,7 +61,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @return internal {@code Utf8String} representation of nickname for reading */ public Utf8String getNicknameBytes() { @@ -69,7 +69,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @return internal {@code Utf8String} representation of nickname for modifications */ public Utf8String getMutableNicknameBytes() { @@ -78,7 +78,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @param value the nickname to set * @return this */ @@ -89,7 +89,7 @@ public final class SetNicknameCsReqOuterClass { } /** - * optional string nickname = 2; + * optional string nickname = 3; * @param value the nickname to set * @return this */ @@ -159,7 +159,7 @@ public final class SetNicknameCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 26); output.writeStringNoTag(nickname); } } @@ -180,7 +180,7 @@ public final class SetNicknameCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 18: { + case 26: { // nickname input.readString(nickname); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetPlayerOutfitCsReqOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/ChessRogueMiracleInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SetPlayerOutfitCsReqOuterClass.java index f4cfa42..e44ecb2 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueMiracleInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetPlayerOutfitCsReqOuterClass.java @@ -11,62 +11,62 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueMiracleInfoOuterClass { +public final class SetPlayerOutfitCsReqOuterClass { /** - * Protobuf type {@code ChessRogueMiracleInfo} + * Protobuf type {@code SetPlayerOutfitCsReq} */ - public static final class ChessRogueMiracleInfo extends ProtoMessage implements Cloneable { + public static final class SetPlayerOutfitCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional .ChessRogueMiracleData miracle_data = 13; + * optional .PlayerOutfitInfo player_outfit_data = 2; */ - private final ChessRogueMiracleDataOuterClass.ChessRogueMiracleData miracleData = ChessRogueMiracleDataOuterClass.ChessRogueMiracleData.newInstance(); + private final PlayerOutfitInfoOuterClass.PlayerOutfitInfo playerOutfitData = PlayerOutfitInfoOuterClass.PlayerOutfitInfo.newInstance(); - private ChessRogueMiracleInfo() { + private SetPlayerOutfitCsReq() { } /** - * @return a new empty instance of {@code ChessRogueMiracleInfo} + * @return a new empty instance of {@code SetPlayerOutfitCsReq} */ - public static ChessRogueMiracleInfo newInstance() { - return new ChessRogueMiracleInfo(); + public static SetPlayerOutfitCsReq newInstance() { + return new SetPlayerOutfitCsReq(); } /** - * optional .ChessRogueMiracleData miracle_data = 13; - * @return whether the miracleData field is set + * optional .PlayerOutfitInfo player_outfit_data = 2; + * @return whether the playerOutfitData field is set */ - public boolean hasMiracleData() { + public boolean hasPlayerOutfitData() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .ChessRogueMiracleData miracle_data = 13; + * optional .PlayerOutfitInfo player_outfit_data = 2; * @return this */ - public ChessRogueMiracleInfo clearMiracleData() { + public SetPlayerOutfitCsReq clearPlayerOutfitData() { bitField0_ &= ~0x00000001; - miracleData.clear(); + playerOutfitData.clear(); return this; } /** - * optional .ChessRogueMiracleData miracle_data = 13; + * optional .PlayerOutfitInfo player_outfit_data = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMiracleData()} if you want to modify it. + * Use {@link #getMutablePlayerOutfitData()} if you want to modify it. * * @return internal storage object for reading */ - public ChessRogueMiracleDataOuterClass.ChessRogueMiracleData getMiracleData() { - return miracleData; + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getPlayerOutfitData() { + return playerOutfitData; } /** - * optional .ChessRogueMiracleData miracle_data = 13; + * optional .PlayerOutfitInfo player_outfit_data = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -74,64 +74,64 @@ public final class ChessRogueMiracleInfoOuterClass { * * @return internal storage object for modifications */ - public ChessRogueMiracleDataOuterClass.ChessRogueMiracleData getMutableMiracleData() { + public PlayerOutfitInfoOuterClass.PlayerOutfitInfo getMutablePlayerOutfitData() { bitField0_ |= 0x00000001; - return miracleData; + return playerOutfitData; } /** - * optional .ChessRogueMiracleData miracle_data = 13; - * @param value the miracleData to set + * optional .PlayerOutfitInfo player_outfit_data = 2; + * @param value the playerOutfitData to set * @return this */ - public ChessRogueMiracleInfo setMiracleData( - final ChessRogueMiracleDataOuterClass.ChessRogueMiracleData value) { + public SetPlayerOutfitCsReq setPlayerOutfitData( + final PlayerOutfitInfoOuterClass.PlayerOutfitInfo value) { bitField0_ |= 0x00000001; - miracleData.copyFrom(value); + playerOutfitData.copyFrom(value); return this; } @Override - public ChessRogueMiracleInfo copyFrom(final ChessRogueMiracleInfo other) { + public SetPlayerOutfitCsReq copyFrom(final SetPlayerOutfitCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - miracleData.copyFrom(other.miracleData); + playerOutfitData.copyFrom(other.playerOutfitData); } return this; } @Override - public ChessRogueMiracleInfo mergeFrom(final ChessRogueMiracleInfo other) { + public SetPlayerOutfitCsReq mergeFrom(final SetPlayerOutfitCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasMiracleData()) { - getMutableMiracleData().mergeFrom(other.miracleData); + if (other.hasPlayerOutfitData()) { + getMutablePlayerOutfitData().mergeFrom(other.playerOutfitData); } return this; } @Override - public ChessRogueMiracleInfo clear() { + public SetPlayerOutfitCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - miracleData.clear(); + playerOutfitData.clear(); return this; } @Override - public ChessRogueMiracleInfo clearQuick() { + public SetPlayerOutfitCsReq clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - miracleData.clearQuick(); + playerOutfitData.clearQuick(); return this; } @@ -140,19 +140,19 @@ public final class ChessRogueMiracleInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueMiracleInfo)) { + if (!(o instanceof SetPlayerOutfitCsReq)) { return false; } - ChessRogueMiracleInfo other = (ChessRogueMiracleInfo) o; + SetPlayerOutfitCsReq other = (SetPlayerOutfitCsReq) o; return bitField0_ == other.bitField0_ - && (!hasMiracleData() || miracleData.equals(other.miracleData)); + && (!hasPlayerOutfitData() || playerOutfitData.equals(other.playerOutfitData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(miracleData); + output.writeRawByte((byte) 18); + output.writeMessageNoTag(playerOutfitData); } } @@ -160,21 +160,21 @@ public final class ChessRogueMiracleInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(miracleData); + size += 1 + ProtoSink.computeMessageSizeNoTag(playerOutfitData); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueMiracleInfo mergeFrom(final ProtoSource input) throws IOException { + public SetPlayerOutfitCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 106: { - // miracleData - input.readMessage(miracleData); + case 18: { + // playerOutfitData + input.readMessage(playerOutfitData); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -199,23 +199,23 @@ public final class ChessRogueMiracleInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.miracleData, miracleData); + output.writeMessage(FieldNames.playerOutfitData, playerOutfitData); } output.endObject(); } @Override - public ChessRogueMiracleInfo mergeFrom(final JsonSource input) throws IOException { + public SetPlayerOutfitCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 760145851: - case 2114691768: { - if (input.isAtField(FieldNames.miracleData)) { + case 1168879118: + case 1803235336: { + if (input.isAtField(FieldNames.playerOutfitData)) { if (!input.trySkipNullValue()) { - input.readMessage(miracleData); + input.readMessage(playerOutfitData); bitField0_ |= 0x00000001; } } else { @@ -234,8 +234,8 @@ public final class ChessRogueMiracleInfoOuterClass { } @Override - public ChessRogueMiracleInfo clone() { - return new ChessRogueMiracleInfo().copyFrom(this); + public SetPlayerOutfitCsReq clone() { + return new SetPlayerOutfitCsReq().copyFrom(this); } @Override @@ -243,32 +243,32 @@ public final class ChessRogueMiracleInfoOuterClass { return ((bitField0_) == 0); } - public static ChessRogueMiracleInfo parseFrom(final byte[] data) throws + public static SetPlayerOutfitCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueMiracleInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SetPlayerOutfitCsReq(), data).checkInitialized(); } - public static ChessRogueMiracleInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueMiracleInfo(), input).checkInitialized(); + public static SetPlayerOutfitCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetPlayerOutfitCsReq(), input).checkInitialized(); } - public static ChessRogueMiracleInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueMiracleInfo(), input).checkInitialized(); + public static SetPlayerOutfitCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetPlayerOutfitCsReq(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueMiracleInfo messages + * @return factory for creating SetPlayerOutfitCsReq messages */ - public static MessageFactory getFactory() { - return ChessRogueMiracleInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return SetPlayerOutfitCsReqFactory.INSTANCE; } - private enum ChessRogueMiracleInfoFactory implements MessageFactory { + private enum SetPlayerOutfitCsReqFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueMiracleInfo create() { - return ChessRogueMiracleInfo.newInstance(); + public SetPlayerOutfitCsReq create() { + return SetPlayerOutfitCsReq.newInstance(); } } @@ -276,7 +276,7 @@ public final class ChessRogueMiracleInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName miracleData = FieldName.forField("miracleData", "miracle_data"); + static final FieldName playerOutfitData = FieldName.forField("playerOutfitData", "player_outfit_data"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java index 520172d..4e90992 100644 --- a/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetSignatureScRspOuterClass.java @@ -20,12 +20,12 @@ public final class SetSignatureScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional string signature = 10; + * optional string signature = 15; */ private final Utf8String signature = Utf8String.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +48,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return this */ public SetSignatureScRsp clearRetcode() { @@ -58,7 +58,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -66,7 +66,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -77,7 +77,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @return whether the signature field is set */ public boolean hasSignature() { @@ -85,7 +85,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @return this */ public SetSignatureScRsp clearSignature() { @@ -95,7 +95,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @return the signature */ public String getSignature() { @@ -103,7 +103,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @return internal {@code Utf8String} representation of signature for reading */ public Utf8String getSignatureBytes() { @@ -111,7 +111,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @return internal {@code Utf8String} representation of signature for modifications */ public Utf8String getMutableSignatureBytes() { @@ -120,7 +120,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @param value the signature to set * @return this */ @@ -131,7 +131,7 @@ public final class SetSignatureScRspOuterClass { } /** - * optional string signature = 10; + * optional string signature = 15; * @param value the signature to set * @return this */ @@ -207,11 +207,11 @@ public final class SetSignatureScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 122); output.writeStringNoTag(signature); } } @@ -235,16 +235,16 @@ public final class SetSignatureScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 82) { + if (tag != 122) { break; } } - case 82: { + case 122: { // signature input.readString(signature); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueBuffCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetTrainWorldIdCsReqOuterClass.java similarity index 54% rename from src/generated/main/emu/lunarcore/proto/SelectRogueBuffCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SetTrainWorldIdCsReqOuterClass.java index d667517..ef14774 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueBuffCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetTrainWorldIdCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class SelectRogueBuffCsReqOuterClass { +public final class SetTrainWorldIdCsReqOuterClass { /** - * Protobuf type {@code SelectRogueBuffCsReq} + * Protobuf type {@code SetTrainWorldIdCsReq} */ - public static final class SelectRogueBuffCsReq extends ProtoMessage implements Cloneable { + public static final class SetTrainWorldIdCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 maze_buff_id = 13; + * optional uint32 train_world_id = 13; */ - private int mazeBuffId; + private int trainWorldId; - private SelectRogueBuffCsReq() { + private SetTrainWorldIdCsReq() { } /** - * @return a new empty instance of {@code SelectRogueBuffCsReq} + * @return a new empty instance of {@code SetTrainWorldIdCsReq} */ - public static SelectRogueBuffCsReq newInstance() { - return new SelectRogueBuffCsReq(); + public static SetTrainWorldIdCsReq newInstance() { + return new SetTrainWorldIdCsReq(); } /** - * optional uint32 maze_buff_id = 13; - * @return whether the mazeBuffId field is set + * optional uint32 train_world_id = 13; + * @return whether the trainWorldId field is set */ - public boolean hasMazeBuffId() { + public boolean hasTrainWorldId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 maze_buff_id = 13; + * optional uint32 train_world_id = 13; * @return this */ - public SelectRogueBuffCsReq clearMazeBuffId() { + public SetTrainWorldIdCsReq clearTrainWorldId() { bitField0_ &= ~0x00000001; - mazeBuffId = 0; + trainWorldId = 0; return this; } /** - * optional uint32 maze_buff_id = 13; - * @return the mazeBuffId + * optional uint32 train_world_id = 13; + * @return the trainWorldId */ - public int getMazeBuffId() { - return mazeBuffId; + public int getTrainWorldId() { + return trainWorldId; } /** - * optional uint32 maze_buff_id = 13; - * @param value the mazeBuffId to set + * optional uint32 train_world_id = 13; + * @param value the trainWorldId to set * @return this */ - public SelectRogueBuffCsReq setMazeBuffId(final int value) { + public SetTrainWorldIdCsReq setTrainWorldId(final int value) { bitField0_ |= 0x00000001; - mazeBuffId = value; + trainWorldId = value; return this; } @Override - public SelectRogueBuffCsReq copyFrom(final SelectRogueBuffCsReq other) { + public SetTrainWorldIdCsReq copyFrom(final SetTrainWorldIdCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - mazeBuffId = other.mazeBuffId; + trainWorldId = other.trainWorldId; } return this; } @Override - public SelectRogueBuffCsReq mergeFrom(final SelectRogueBuffCsReq other) { + public SetTrainWorldIdCsReq mergeFrom(final SetTrainWorldIdCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasMazeBuffId()) { - setMazeBuffId(other.mazeBuffId); + if (other.hasTrainWorldId()) { + setTrainWorldId(other.trainWorldId); } return this; } @Override - public SelectRogueBuffCsReq clear() { + public SetTrainWorldIdCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - mazeBuffId = 0; + trainWorldId = 0; return this; } @Override - public SelectRogueBuffCsReq clearQuick() { + public SetTrainWorldIdCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class SelectRogueBuffCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof SelectRogueBuffCsReq)) { + if (!(o instanceof SetTrainWorldIdCsReq)) { return false; } - SelectRogueBuffCsReq other = (SelectRogueBuffCsReq) o; + SetTrainWorldIdCsReq other = (SetTrainWorldIdCsReq) o; return bitField0_ == other.bitField0_ - && (!hasMazeBuffId() || mazeBuffId == other.mazeBuffId); + && (!hasTrainWorldId() || trainWorldId == other.trainWorldId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 104); - output.writeUInt32NoTag(mazeBuffId); + output.writeUInt32NoTag(trainWorldId); } } @@ -138,21 +138,21 @@ public final class SelectRogueBuffCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mazeBuffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(trainWorldId); } return size; } @Override @SuppressWarnings("fallthrough") - public SelectRogueBuffCsReq mergeFrom(final ProtoSource input) throws IOException { + public SetTrainWorldIdCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 104: { - // mazeBuffId - mazeBuffId = input.readUInt32(); + // trainWorldId + trainWorldId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class SelectRogueBuffCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mazeBuffId, mazeBuffId); + output.writeUInt32(FieldNames.trainWorldId, trainWorldId); } output.endObject(); } @Override - public SelectRogueBuffCsReq mergeFrom(final JsonSource input) throws IOException { + public SetTrainWorldIdCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 144210285: - case 896621575: { - if (input.isAtField(FieldNames.mazeBuffId)) { + case -1960946395: + case -1978540737: { + if (input.isAtField(FieldNames.trainWorldId)) { if (!input.trySkipNullValue()) { - mazeBuffId = input.readUInt32(); + trainWorldId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class SelectRogueBuffCsReqOuterClass { } @Override - public SelectRogueBuffCsReq clone() { - return new SelectRogueBuffCsReq().copyFrom(this); + public SetTrainWorldIdCsReq clone() { + return new SetTrainWorldIdCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class SelectRogueBuffCsReqOuterClass { return ((bitField0_) == 0); } - public static SelectRogueBuffCsReq parseFrom(final byte[] data) throws + public static SetTrainWorldIdCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueBuffCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SetTrainWorldIdCsReq(), data).checkInitialized(); } - public static SelectRogueBuffCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueBuffCsReq(), input).checkInitialized(); + public static SetTrainWorldIdCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetTrainWorldIdCsReq(), input).checkInitialized(); } - public static SelectRogueBuffCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueBuffCsReq(), input).checkInitialized(); + public static SetTrainWorldIdCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetTrainWorldIdCsReq(), input).checkInitialized(); } /** - * @return factory for creating SelectRogueBuffCsReq messages + * @return factory for creating SetTrainWorldIdCsReq messages */ - public static MessageFactory getFactory() { - return SelectRogueBuffCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return SetTrainWorldIdCsReqFactory.INSTANCE; } - private enum SelectRogueBuffCsReqFactory implements MessageFactory { + private enum SetTrainWorldIdCsReqFactory implements MessageFactory { INSTANCE; @Override - public SelectRogueBuffCsReq create() { - return SelectRogueBuffCsReq.newInstance(); + public SetTrainWorldIdCsReq create() { + return SetTrainWorldIdCsReq.newInstance(); } } @@ -254,7 +254,7 @@ public final class SelectRogueBuffCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName mazeBuffId = FieldName.forField("mazeBuffId", "maze_buff_id"); + static final FieldName trainWorldId = FieldName.forField("trainWorldId", "train_world_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/RelicRecommendScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SetTrainWorldIdScRspOuterClass.java similarity index 61% rename from src/generated/main/emu/lunarcore/proto/RelicRecommendScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SetTrainWorldIdScRspOuterClass.java index c077e6e..92e88cb 100644 --- a/src/generated/main/emu/lunarcore/proto/RelicRecommendScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SetTrainWorldIdScRspOuterClass.java @@ -11,67 +11,67 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class RelicRecommendScRspOuterClass { +public final class SetTrainWorldIdScRspOuterClass { /** - * Protobuf type {@code RelicRecommendScRsp} + * Protobuf type {@code SetTrainWorldIdScRsp} */ - public static final class RelicRecommendScRsp extends ProtoMessage implements Cloneable { + public static final class SetTrainWorldIdScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 2; + * optional uint32 train_world_id = 7; */ - private int avatarId; + private int trainWorldId; /** * optional uint32 retcode = 10; */ private int retcode; - private RelicRecommendScRsp() { + private SetTrainWorldIdScRsp() { } /** - * @return a new empty instance of {@code RelicRecommendScRsp} + * @return a new empty instance of {@code SetTrainWorldIdScRsp} */ - public static RelicRecommendScRsp newInstance() { - return new RelicRecommendScRsp(); + public static SetTrainWorldIdScRsp newInstance() { + return new SetTrainWorldIdScRsp(); } /** - * optional uint32 avatar_id = 2; - * @return whether the avatarId field is set + * optional uint32 train_world_id = 7; + * @return whether the trainWorldId field is set */ - public boolean hasAvatarId() { + public boolean hasTrainWorldId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 avatar_id = 2; + * optional uint32 train_world_id = 7; * @return this */ - public RelicRecommendScRsp clearAvatarId() { + public SetTrainWorldIdScRsp clearTrainWorldId() { bitField0_ &= ~0x00000001; - avatarId = 0; + trainWorldId = 0; return this; } /** - * optional uint32 avatar_id = 2; - * @return the avatarId + * optional uint32 train_world_id = 7; + * @return the trainWorldId */ - public int getAvatarId() { - return avatarId; + public int getTrainWorldId() { + return trainWorldId; } /** - * optional uint32 avatar_id = 2; - * @param value the avatarId to set + * optional uint32 train_world_id = 7; + * @param value the trainWorldId to set * @return this */ - public RelicRecommendScRsp setAvatarId(final int value) { + public SetTrainWorldIdScRsp setTrainWorldId(final int value) { bitField0_ |= 0x00000001; - avatarId = value; + trainWorldId = value; return this; } @@ -87,7 +87,7 @@ public final class RelicRecommendScRspOuterClass { * optional uint32 retcode = 10; * @return this */ - public RelicRecommendScRsp clearRetcode() { + public SetTrainWorldIdScRsp clearRetcode() { bitField0_ &= ~0x00000002; retcode = 0; return this; @@ -106,31 +106,31 @@ public final class RelicRecommendScRspOuterClass { * @param value the retcode to set * @return this */ - public RelicRecommendScRsp setRetcode(final int value) { + public SetTrainWorldIdScRsp setRetcode(final int value) { bitField0_ |= 0x00000002; retcode = value; return this; } @Override - public RelicRecommendScRsp copyFrom(final RelicRecommendScRsp other) { + public SetTrainWorldIdScRsp copyFrom(final SetTrainWorldIdScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - avatarId = other.avatarId; + trainWorldId = other.trainWorldId; retcode = other.retcode; } return this; } @Override - public RelicRecommendScRsp mergeFrom(final RelicRecommendScRsp other) { + public SetTrainWorldIdScRsp mergeFrom(final SetTrainWorldIdScRsp other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasAvatarId()) { - setAvatarId(other.avatarId); + if (other.hasTrainWorldId()) { + setTrainWorldId(other.trainWorldId); } if (other.hasRetcode()) { setRetcode(other.retcode); @@ -139,19 +139,19 @@ public final class RelicRecommendScRspOuterClass { } @Override - public RelicRecommendScRsp clear() { + public SetTrainWorldIdScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - avatarId = 0; + trainWorldId = 0; retcode = 0; return this; } @Override - public RelicRecommendScRsp clearQuick() { + public SetTrainWorldIdScRsp clearQuick() { if (isEmpty()) { return this; } @@ -165,20 +165,20 @@ public final class RelicRecommendScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof RelicRecommendScRsp)) { + if (!(o instanceof SetTrainWorldIdScRsp)) { return false; } - RelicRecommendScRsp other = (RelicRecommendScRsp) o; + SetTrainWorldIdScRsp other = (SetTrainWorldIdScRsp) o; return bitField0_ == other.bitField0_ - && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasTrainWorldId() || trainWorldId == other.trainWorldId) && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(avatarId); + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(trainWorldId); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); @@ -190,7 +190,7 @@ public final class RelicRecommendScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(trainWorldId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); @@ -200,14 +200,14 @@ public final class RelicRecommendScRspOuterClass { @Override @SuppressWarnings("fallthrough") - public RelicRecommendScRsp mergeFrom(final ProtoSource input) throws IOException { + public SetTrainWorldIdScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // avatarId - avatarId = input.readUInt32(); + case 56: { + // trainWorldId + trainWorldId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 80) { @@ -241,7 +241,7 @@ public final class RelicRecommendScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.avatarId, avatarId); + output.writeUInt32(FieldNames.trainWorldId, trainWorldId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); @@ -250,17 +250,17 @@ public final class RelicRecommendScRspOuterClass { } @Override - public RelicRecommendScRsp mergeFrom(final JsonSource input) throws IOException { + public SetTrainWorldIdScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1787287636: - case -428636735: { - if (input.isAtField(FieldNames.avatarId)) { + case -1960946395: + case -1978540737: { + if (input.isAtField(FieldNames.trainWorldId)) { if (!input.trySkipNullValue()) { - avatarId = input.readUInt32(); + trainWorldId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -290,8 +290,8 @@ public final class RelicRecommendScRspOuterClass { } @Override - public RelicRecommendScRsp clone() { - return new RelicRecommendScRsp().copyFrom(this); + public SetTrainWorldIdScRsp clone() { + return new SetTrainWorldIdScRsp().copyFrom(this); } @Override @@ -299,32 +299,32 @@ public final class RelicRecommendScRspOuterClass { return ((bitField0_) == 0); } - public static RelicRecommendScRsp parseFrom(final byte[] data) throws + public static SetTrainWorldIdScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new RelicRecommendScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SetTrainWorldIdScRsp(), data).checkInitialized(); } - public static RelicRecommendScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicRecommendScRsp(), input).checkInitialized(); + public static SetTrainWorldIdScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetTrainWorldIdScRsp(), input).checkInitialized(); } - public static RelicRecommendScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new RelicRecommendScRsp(), input).checkInitialized(); + public static SetTrainWorldIdScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SetTrainWorldIdScRsp(), input).checkInitialized(); } /** - * @return factory for creating RelicRecommendScRsp messages + * @return factory for creating SetTrainWorldIdScRsp messages */ - public static MessageFactory getFactory() { - return RelicRecommendScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return SetTrainWorldIdScRspFactory.INSTANCE; } - private enum RelicRecommendScRspFactory implements MessageFactory { + private enum SetTrainWorldIdScRspFactory implements MessageFactory { INSTANCE; @Override - public RelicRecommendScRsp create() { - return RelicRecommendScRsp.newInstance(); + public SetTrainWorldIdScRsp create() { + return SetTrainWorldIdScRsp.newInstance(); } } @@ -332,7 +332,7 @@ public final class RelicRecommendScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + static final FieldName trainWorldId = FieldName.forField("trainWorldId", "train_world_id"); static final FieldName retcode = FieldName.forField("retcode"); } diff --git a/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java index 611af7e..f614f79 100644 --- a/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/ShopOuterClass.java @@ -20,37 +20,37 @@ public final class ShopOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 begin_time = 3; - */ - private long beginTime; - - /** - * optional int64 end_time = 8; + * optional int64 end_time = 4; */ private long endTime; /** - * optional uint64 city_taken_level_reward = 14; + * optional int64 begin_time = 13; + */ + private long beginTime; + + /** + * optional uint64 city_taken_level_reward = 7; */ private long cityTakenLevelReward; /** - * optional uint32 shop_id = 1; - */ - private int shopId; - - /** - * optional uint32 city_exp = 6; + * optional uint32 city_exp = 2; */ private int cityExp; /** - * optional uint32 city_level = 10; + * optional uint32 shop_id = 8; + */ + private int shopId; + + /** + * optional uint32 city_level = 14; */ private int cityLevel; /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; */ private final RepeatedMessage goodsList = RepeatedMessage.newEmptyInstance(GoodsOuterClass.Goods.getFactory()); @@ -65,62 +65,25 @@ public final class ShopOuterClass { } /** - * optional int64 begin_time = 3; - * @return whether the beginTime field is set + * optional int64 end_time = 4; + * @return whether the endTime field is set */ - public boolean hasBeginTime() { + public boolean hasEndTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 begin_time = 3; - * @return this - */ - public Shop clearBeginTime() { - bitField0_ &= ~0x00000001; - beginTime = 0L; - return this; - } - - /** - * optional int64 begin_time = 3; - * @return the beginTime - */ - public long getBeginTime() { - return beginTime; - } - - /** - * optional int64 begin_time = 3; - * @param value the beginTime to set - * @return this - */ - public Shop setBeginTime(final long value) { - bitField0_ |= 0x00000001; - beginTime = value; - return this; - } - - /** - * optional int64 end_time = 8; - * @return whether the endTime field is set - */ - public boolean hasEndTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 end_time = 8; + * optional int64 end_time = 4; * @return this */ public Shop clearEndTime() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; endTime = 0L; return this; } /** - * optional int64 end_time = 8; + * optional int64 end_time = 4; * @return the endTime */ public long getEndTime() { @@ -128,18 +91,55 @@ public final class ShopOuterClass { } /** - * optional int64 end_time = 8; + * optional int64 end_time = 4; * @param value the endTime to set * @return this */ public Shop setEndTime(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; endTime = value; return this; } /** - * optional uint64 city_taken_level_reward = 14; + * optional int64 begin_time = 13; + * @return whether the beginTime field is set + */ + public boolean hasBeginTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 begin_time = 13; + * @return this + */ + public Shop clearBeginTime() { + bitField0_ &= ~0x00000002; + beginTime = 0L; + return this; + } + + /** + * optional int64 begin_time = 13; + * @return the beginTime + */ + public long getBeginTime() { + return beginTime; + } + + /** + * optional int64 begin_time = 13; + * @param value the beginTime to set + * @return this + */ + public Shop setBeginTime(final long value) { + bitField0_ |= 0x00000002; + beginTime = value; + return this; + } + + /** + * optional uint64 city_taken_level_reward = 7; * @return whether the cityTakenLevelReward field is set */ public boolean hasCityTakenLevelReward() { @@ -147,7 +147,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 14; + * optional uint64 city_taken_level_reward = 7; * @return this */ public Shop clearCityTakenLevelReward() { @@ -157,7 +157,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 14; + * optional uint64 city_taken_level_reward = 7; * @return the cityTakenLevelReward */ public long getCityTakenLevelReward() { @@ -165,7 +165,7 @@ public final class ShopOuterClass { } /** - * optional uint64 city_taken_level_reward = 14; + * optional uint64 city_taken_level_reward = 7; * @param value the cityTakenLevelReward to set * @return this */ @@ -176,62 +176,25 @@ public final class ShopOuterClass { } /** - * optional uint32 shop_id = 1; - * @return whether the shopId field is set + * optional uint32 city_exp = 2; + * @return whether the cityExp field is set */ - public boolean hasShopId() { + public boolean hasCityExp() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 shop_id = 1; - * @return this - */ - public Shop clearShopId() { - bitField0_ &= ~0x00000008; - shopId = 0; - return this; - } - - /** - * optional uint32 shop_id = 1; - * @return the shopId - */ - public int getShopId() { - return shopId; - } - - /** - * optional uint32 shop_id = 1; - * @param value the shopId to set - * @return this - */ - public Shop setShopId(final int value) { - bitField0_ |= 0x00000008; - shopId = value; - return this; - } - - /** - * optional uint32 city_exp = 6; - * @return whether the cityExp field is set - */ - public boolean hasCityExp() { - return (bitField0_ & 0x00000010) != 0; - } - - /** - * optional uint32 city_exp = 6; + * optional uint32 city_exp = 2; * @return this */ public Shop clearCityExp() { - bitField0_ &= ~0x00000010; + bitField0_ &= ~0x00000008; cityExp = 0; return this; } /** - * optional uint32 city_exp = 6; + * optional uint32 city_exp = 2; * @return the cityExp */ public int getCityExp() { @@ -239,18 +202,55 @@ public final class ShopOuterClass { } /** - * optional uint32 city_exp = 6; + * optional uint32 city_exp = 2; * @param value the cityExp to set * @return this */ public Shop setCityExp(final int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; cityExp = value; return this; } /** - * optional uint32 city_level = 10; + * optional uint32 shop_id = 8; + * @return whether the shopId field is set + */ + public boolean hasShopId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 shop_id = 8; + * @return this + */ + public Shop clearShopId() { + bitField0_ &= ~0x00000010; + shopId = 0; + return this; + } + + /** + * optional uint32 shop_id = 8; + * @return the shopId + */ + public int getShopId() { + return shopId; + } + + /** + * optional uint32 shop_id = 8; + * @param value the shopId to set + * @return this + */ + public Shop setShopId(final int value) { + bitField0_ |= 0x00000010; + shopId = value; + return this; + } + + /** + * optional uint32 city_level = 14; * @return whether the cityLevel field is set */ public boolean hasCityLevel() { @@ -258,7 +258,7 @@ public final class ShopOuterClass { } /** - * optional uint32 city_level = 10; + * optional uint32 city_level = 14; * @return this */ public Shop clearCityLevel() { @@ -268,7 +268,7 @@ public final class ShopOuterClass { } /** - * optional uint32 city_level = 10; + * optional uint32 city_level = 14; * @return the cityLevel */ public int getCityLevel() { @@ -276,7 +276,7 @@ public final class ShopOuterClass { } /** - * optional uint32 city_level = 10; + * optional uint32 city_level = 14; * @param value the cityLevel to set * @return this */ @@ -287,7 +287,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; * @return whether the goodsList field is set */ public boolean hasGoodsList() { @@ -295,7 +295,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; * @return this */ public Shop clearGoodsList() { @@ -305,7 +305,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -319,7 +319,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -333,7 +333,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; * @param value the goodsList to add * @return this */ @@ -344,7 +344,7 @@ public final class ShopOuterClass { } /** - * repeated .Goods goods_list = 5; + * repeated .Goods goods_list = 1; * @param values the goodsList to add * @return this */ @@ -359,11 +359,11 @@ public final class ShopOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - beginTime = other.beginTime; endTime = other.endTime; + beginTime = other.beginTime; cityTakenLevelReward = other.cityTakenLevelReward; - shopId = other.shopId; cityExp = other.cityExp; + shopId = other.shopId; cityLevel = other.cityLevel; goodsList.copyFrom(other.goodsList); } @@ -376,21 +376,21 @@ public final class ShopOuterClass { return this; } cachedSize = -1; - if (other.hasBeginTime()) { - setBeginTime(other.beginTime); - } if (other.hasEndTime()) { setEndTime(other.endTime); } + if (other.hasBeginTime()) { + setBeginTime(other.beginTime); + } if (other.hasCityTakenLevelReward()) { setCityTakenLevelReward(other.cityTakenLevelReward); } - if (other.hasShopId()) { - setShopId(other.shopId); - } if (other.hasCityExp()) { setCityExp(other.cityExp); } + if (other.hasShopId()) { + setShopId(other.shopId); + } if (other.hasCityLevel()) { setCityLevel(other.cityLevel); } @@ -407,11 +407,11 @@ public final class ShopOuterClass { } cachedSize = -1; bitField0_ = 0; - beginTime = 0L; endTime = 0L; + beginTime = 0L; cityTakenLevelReward = 0L; - shopId = 0; cityExp = 0; + shopId = 0; cityLevel = 0; goodsList.clear(); return this; @@ -438,11 +438,11 @@ public final class ShopOuterClass { } Shop other = (Shop) o; return bitField0_ == other.bitField0_ - && (!hasBeginTime() || beginTime == other.beginTime) && (!hasEndTime() || endTime == other.endTime) + && (!hasBeginTime() || beginTime == other.beginTime) && (!hasCityTakenLevelReward() || cityTakenLevelReward == other.cityTakenLevelReward) - && (!hasShopId() || shopId == other.shopId) && (!hasCityExp() || cityExp == other.cityExp) + && (!hasShopId() || shopId == other.shopId) && (!hasCityLevel() || cityLevel == other.cityLevel) && (!hasGoodsList() || goodsList.equals(other.goodsList)); } @@ -450,32 +450,32 @@ public final class ShopOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeInt64NoTag(beginTime); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 32); output.writeInt64NoTag(endTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 104); + output.writeInt64NoTag(beginTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 56); output.writeUInt64NoTag(cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(shopId); - } - if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(cityExp); } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(shopId); + } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(cityLevel); } if ((bitField0_ & 0x00000040) != 0) { for (int i = 0; i < goodsList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 10); output.writeMessageNoTag(goodsList.get(i)); } } @@ -485,19 +485,19 @@ public final class ShopOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(endTime); + size += 1 + ProtoSink.computeInt64SizeNoTag(beginTime); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt64SizeNoTag(cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(cityExp); } if ((bitField0_ & 0x00000010) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cityExp); + size += 1 + ProtoSink.computeUInt32SizeNoTag(shopId); } if ((bitField0_ & 0x00000020) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(cityLevel); @@ -515,61 +515,61 @@ public final class ShopOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { + case 32: { + // endTime + endTime = input.readInt64(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { // beginTime beginTime = input.readInt64(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // cityTakenLevelReward + cityTakenLevelReward = input.readUInt64(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // cityExp + cityExp = input.readUInt32(); + bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 64) { break; } } case 64: { - // endTime - endTime = input.readInt64(); - bitField0_ |= 0x00000002; + // shopId + shopId = input.readUInt32(); + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 112) { break; } } case 112: { - // cityTakenLevelReward - cityTakenLevelReward = input.readUInt64(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 8) { - break; - } - } - case 8: { - // shopId - shopId = input.readUInt32(); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 48) { - break; - } - } - case 48: { - // cityExp - cityExp = input.readUInt32(); - bitField0_ |= 0x00000010; - tag = input.readTag(); - if (tag != 80) { - break; - } - } - case 80: { // cityLevel cityLevel = input.readUInt32(); bitField0_ |= 0x00000020; tag = input.readTag(); - if (tag != 42) { + if (tag != 10) { break; } } - case 42: { + case 10: { // goodsList tag = input.readRepeatedMessage(goodsList, tag); bitField0_ |= 0x00000040; @@ -595,19 +595,19 @@ public final class ShopOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.beginTime, beginTime); + output.writeInt64(FieldNames.endTime, endTime); } if ((bitField0_ & 0x00000002) != 0) { - output.writeInt64(FieldNames.endTime, endTime); + output.writeInt64(FieldNames.beginTime, beginTime); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt64(FieldNames.cityTakenLevelReward, cityTakenLevelReward); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.shopId, shopId); + output.writeUInt32(FieldNames.cityExp, cityExp); } if ((bitField0_ & 0x00000010) != 0) { - output.writeUInt32(FieldNames.cityExp, cityExp); + output.writeUInt32(FieldNames.shopId, shopId); } if ((bitField0_ & 0x00000020) != 0) { output.writeUInt32(FieldNames.cityLevel, cityLevel); @@ -625,11 +625,11 @@ public final class ShopOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1072839914: - case 1112183971: { - if (input.isAtField(FieldNames.beginTime)) { + case -1607243192: + case 1725551537: { + if (input.isAtField(FieldNames.endTime)) { if (!input.trySkipNullValue()) { - beginTime = input.readInt64(); + endTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -637,11 +637,11 @@ public final class ShopOuterClass { } break; } - case -1607243192: - case 1725551537: { - if (input.isAtField(FieldNames.endTime)) { + case -1072839914: + case 1112183971: { + if (input.isAtField(FieldNames.beginTime)) { if (!input.trySkipNullValue()) { - endTime = input.readInt64(); + beginTime = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -661,11 +661,11 @@ public final class ShopOuterClass { } break; } - case -903151951: - case 2067081988: { - if (input.isAtField(FieldNames.shopId)) { + case 785415346: + case -1421171383: { + if (input.isAtField(FieldNames.cityExp)) { if (!input.trySkipNullValue()) { - shopId = input.readUInt32(); + cityExp = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -673,11 +673,11 @@ public final class ShopOuterClass { } break; } - case 785415346: - case -1421171383: { - if (input.isAtField(FieldNames.cityExp)) { + case -903151951: + case 2067081988: { + if (input.isAtField(FieldNames.shopId)) { if (!input.trySkipNullValue()) { - cityExp = input.readUInt32(); + shopId = input.readUInt32(); bitField0_ |= 0x00000010; } } else { @@ -761,16 +761,16 @@ public final class ShopOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); - static final FieldName endTime = FieldName.forField("endTime", "end_time"); + static final FieldName beginTime = FieldName.forField("beginTime", "begin_time"); + static final FieldName cityTakenLevelReward = FieldName.forField("cityTakenLevelReward", "city_taken_level_reward"); - static final FieldName shopId = FieldName.forField("shopId", "shop_id"); - static final FieldName cityExp = FieldName.forField("cityExp", "city_exp"); + static final FieldName shopId = FieldName.forField("shopId", "shop_id"); + static final FieldName cityLevel = FieldName.forField("cityLevel", "city_level"); static final FieldName goodsList = FieldName.forField("goodsList", "goods_list"); diff --git a/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java new file mode 100644 index 0000000..6c427ed --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SimpleAvatarInfoOuterClass.java @@ -0,0 +1,373 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SimpleAvatarInfoOuterClass { + /** + * Protobuf type {@code SimpleAvatarInfo} + */ + public static final class SimpleAvatarInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 2; + */ + private int id; + + /** + * optional .AvatarType avatar_type = 1; + */ + private int avatarType; + + private SimpleAvatarInfo() { + } + + /** + * @return a new empty instance of {@code SimpleAvatarInfo} + */ + public static SimpleAvatarInfo newInstance() { + return new SimpleAvatarInfo(); + } + + /** + * optional uint32 id = 2; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 2; + * @return this + */ + public SimpleAvatarInfo clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 2; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 2; + * @param value the id to set + * @return this + */ + public SimpleAvatarInfo setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return whether the avatarType field is set + */ + public boolean hasAvatarType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return this + */ + public SimpleAvatarInfo clearAvatarType() { + bitField0_ &= ~0x00000002; + avatarType = 0; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @return the avatarType + */ + public AvatarTypeOuterClass.AvatarType getAvatarType() { + return AvatarTypeOuterClass.AvatarType.forNumber(avatarType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SimpleAvatarInfo#getAvatarType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarTypeValue() { + return avatarType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link AvatarTypeOuterClass.AvatarType}. Setting an invalid value + * can cause {@link SimpleAvatarInfo#getAvatarType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SimpleAvatarInfo setAvatarTypeValue(final int value) { + bitField0_ |= 0x00000002; + avatarType = value; + return this; + } + + /** + * optional .AvatarType avatar_type = 1; + * @param value the avatarType to set + * @return this + */ + public SimpleAvatarInfo setAvatarType(final AvatarTypeOuterClass.AvatarType value) { + bitField0_ |= 0x00000002; + avatarType = value.getNumber(); + return this; + } + + @Override + public SimpleAvatarInfo copyFrom(final SimpleAvatarInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + avatarType = other.avatarType; + } + return this; + } + + @Override + public SimpleAvatarInfo mergeFrom(final SimpleAvatarInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasAvatarType()) { + setAvatarTypeValue(other.avatarType); + } + return this; + } + + @Override + public SimpleAvatarInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + avatarType = 0; + return this; + } + + @Override + public SimpleAvatarInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SimpleAvatarInfo)) { + return false; + } + SimpleAvatarInfo other = (SimpleAvatarInfo) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasAvatarType() || avatarType == other.avatarType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 8); + output.writeEnumNoTag(avatarType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SimpleAvatarInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 16: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 8) { + break; + } + } + case 8: { + // avatarType + final int value = input.readInt32(); + if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { + avatarType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.avatarType, avatarType, AvatarTypeOuterClass.AvatarType.converter()); + } + output.endObject(); + } + + @Override + public SimpleAvatarInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -403148749: + case 397309536: { + if (input.isAtField(FieldNames.avatarType)) { + if (!input.trySkipNullValue()) { + final AvatarTypeOuterClass.AvatarType value = input.readEnum(AvatarTypeOuterClass.AvatarType.converter()); + if (value != null) { + avatarType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SimpleAvatarInfo clone() { + return new SimpleAvatarInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SimpleAvatarInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SimpleAvatarInfo(), data).checkInitialized(); + } + + public static SimpleAvatarInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SimpleAvatarInfo(), input).checkInitialized(); + } + + public static SimpleAvatarInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SimpleAvatarInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating SimpleAvatarInfo messages + */ + public static MessageFactory getFactory() { + return SimpleAvatarInfoFactory.INSTANCE; + } + + private enum SimpleAvatarInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public SimpleAvatarInfo create() { + return SimpleAvatarInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName avatarType = FieldName.forField("avatarType", "avatar_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SocialEventServerCacheOuterClass.java b/src/generated/main/emu/lunarcore/proto/SocialEventServerCacheOuterClass.java new file mode 100644 index 0000000..019afab --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SocialEventServerCacheOuterClass.java @@ -0,0 +1,502 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SocialEventServerCacheOuterClass { + /** + * Protobuf type {@code SocialEventServerCache} + */ + public static final class SocialEventServerCache extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 add_coin = 6; + */ + private int addCoin; + + /** + * optional uint32 src_uid = 7; + */ + private int srcUid; + + /** + * optional uint32 sub_coin = 11; + */ + private int subCoin; + + /** + * optional uint32 id = 12; + */ + private int id; + + private SocialEventServerCache() { + } + + /** + * @return a new empty instance of {@code SocialEventServerCache} + */ + public static SocialEventServerCache newInstance() { + return new SocialEventServerCache(); + } + + /** + * optional uint32 add_coin = 6; + * @return whether the addCoin field is set + */ + public boolean hasAddCoin() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 add_coin = 6; + * @return this + */ + public SocialEventServerCache clearAddCoin() { + bitField0_ &= ~0x00000001; + addCoin = 0; + return this; + } + + /** + * optional uint32 add_coin = 6; + * @return the addCoin + */ + public int getAddCoin() { + return addCoin; + } + + /** + * optional uint32 add_coin = 6; + * @param value the addCoin to set + * @return this + */ + public SocialEventServerCache setAddCoin(final int value) { + bitField0_ |= 0x00000001; + addCoin = value; + return this; + } + + /** + * optional uint32 src_uid = 7; + * @return whether the srcUid field is set + */ + public boolean hasSrcUid() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 src_uid = 7; + * @return this + */ + public SocialEventServerCache clearSrcUid() { + bitField0_ &= ~0x00000002; + srcUid = 0; + return this; + } + + /** + * optional uint32 src_uid = 7; + * @return the srcUid + */ + public int getSrcUid() { + return srcUid; + } + + /** + * optional uint32 src_uid = 7; + * @param value the srcUid to set + * @return this + */ + public SocialEventServerCache setSrcUid(final int value) { + bitField0_ |= 0x00000002; + srcUid = value; + return this; + } + + /** + * optional uint32 sub_coin = 11; + * @return whether the subCoin field is set + */ + public boolean hasSubCoin() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 sub_coin = 11; + * @return this + */ + public SocialEventServerCache clearSubCoin() { + bitField0_ &= ~0x00000004; + subCoin = 0; + return this; + } + + /** + * optional uint32 sub_coin = 11; + * @return the subCoin + */ + public int getSubCoin() { + return subCoin; + } + + /** + * optional uint32 sub_coin = 11; + * @param value the subCoin to set + * @return this + */ + public SocialEventServerCache setSubCoin(final int value) { + bitField0_ |= 0x00000004; + subCoin = value; + return this; + } + + /** + * optional uint32 id = 12; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 id = 12; + * @return this + */ + public SocialEventServerCache clearId() { + bitField0_ &= ~0x00000008; + id = 0; + return this; + } + + /** + * optional uint32 id = 12; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 12; + * @param value the id to set + * @return this + */ + public SocialEventServerCache setId(final int value) { + bitField0_ |= 0x00000008; + id = value; + return this; + } + + @Override + public SocialEventServerCache copyFrom(final SocialEventServerCache other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + addCoin = other.addCoin; + srcUid = other.srcUid; + subCoin = other.subCoin; + id = other.id; + } + return this; + } + + @Override + public SocialEventServerCache mergeFrom(final SocialEventServerCache other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAddCoin()) { + setAddCoin(other.addCoin); + } + if (other.hasSrcUid()) { + setSrcUid(other.srcUid); + } + if (other.hasSubCoin()) { + setSubCoin(other.subCoin); + } + if (other.hasId()) { + setId(other.id); + } + return this; + } + + @Override + public SocialEventServerCache clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + addCoin = 0; + srcUid = 0; + subCoin = 0; + id = 0; + return this; + } + + @Override + public SocialEventServerCache clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SocialEventServerCache)) { + return false; + } + SocialEventServerCache other = (SocialEventServerCache) o; + return bitField0_ == other.bitField0_ + && (!hasAddCoin() || addCoin == other.addCoin) + && (!hasSrcUid() || srcUid == other.srcUid) + && (!hasSubCoin() || subCoin == other.subCoin) + && (!hasId() || id == other.id); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(addCoin); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 56); + output.writeUInt32NoTag(srcUid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(subCoin); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(id); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(addCoin); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(srcUid); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(subCoin); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SocialEventServerCache mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // addCoin + addCoin = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // srcUid + srcUid = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // subCoin + subCoin = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.addCoin, addCoin); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.srcUid, srcUid); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.subCoin, subCoin); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.id, id); + } + output.endObject(); + } + + @Override + public SocialEventServerCache mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1149082926: + case -1236325521: { + if (input.isAtField(FieldNames.addCoin)) { + if (!input.trySkipNullValue()) { + addCoin = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -894299188: + case -1953161355: { + if (input.isAtField(FieldNames.srcUid)) { + if (!input.trySkipNullValue()) { + srcUid = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1869037327: + case -2080075472: { + if (input.isAtField(FieldNames.subCoin)) { + if (!input.trySkipNullValue()) { + subCoin = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SocialEventServerCache clone() { + return new SocialEventServerCache().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SocialEventServerCache parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SocialEventServerCache(), data).checkInitialized(); + } + + public static SocialEventServerCache parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SocialEventServerCache(), input).checkInitialized(); + } + + public static SocialEventServerCache parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SocialEventServerCache(), input).checkInitialized(); + } + + /** + * @return factory for creating SocialEventServerCache messages + */ + public static MessageFactory getFactory() { + return SocialEventServerCacheFactory.INSTANCE; + } + + private enum SocialEventServerCacheFactory implements MessageFactory { + INSTANCE; + + @Override + public SocialEventServerCache create() { + return SocialEventServerCache.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName addCoin = FieldName.forField("addCoin", "add_coin"); + + static final FieldName srcUid = FieldName.forField("srcUid", "src_uid"); + + static final FieldName subCoin = FieldName.forField("subCoin", "sub_coin"); + + static final FieldName id = FieldName.forField("id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StageMergedInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/StageMergedInfoOuterClass.java new file mode 100644 index 0000000..01a643f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StageMergedInfoOuterClass.java @@ -0,0 +1,542 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class StageMergedInfoOuterClass { + /** + * Protobuf type {@code StageMergedInfo} + */ + public static final class StageMergedInfo extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 stage_merged_id = 11; + */ + private int stageMergedId; + + /** + * optional bool bool7 = 2; + */ + private boolean bool7; + + /** + * optional bool bool10 = 6; + */ + private boolean bool10; + + /** + * repeated uint32 stage_periods = 15; + */ + private final RepeatedInt stagePeriods = RepeatedInt.newEmptyInstance(); + + private StageMergedInfo() { + } + + /** + * @return a new empty instance of {@code StageMergedInfo} + */ + public static StageMergedInfo newInstance() { + return new StageMergedInfo(); + } + + /** + * optional uint32 stage_merged_id = 11; + * @return whether the stageMergedId field is set + */ + public boolean hasStageMergedId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 stage_merged_id = 11; + * @return this + */ + public StageMergedInfo clearStageMergedId() { + bitField0_ &= ~0x00000001; + stageMergedId = 0; + return this; + } + + /** + * optional uint32 stage_merged_id = 11; + * @return the stageMergedId + */ + public int getStageMergedId() { + return stageMergedId; + } + + /** + * optional uint32 stage_merged_id = 11; + * @param value the stageMergedId to set + * @return this + */ + public StageMergedInfo setStageMergedId(final int value) { + bitField0_ |= 0x00000001; + stageMergedId = value; + return this; + } + + /** + * optional bool bool7 = 2; + * @return whether the bool7 field is set + */ + public boolean hasBool7() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional bool bool7 = 2; + * @return this + */ + public StageMergedInfo clearBool7() { + bitField0_ &= ~0x00000002; + bool7 = false; + return this; + } + + /** + * optional bool bool7 = 2; + * @return the bool7 + */ + public boolean getBool7() { + return bool7; + } + + /** + * optional bool bool7 = 2; + * @param value the bool7 to set + * @return this + */ + public StageMergedInfo setBool7(final boolean value) { + bitField0_ |= 0x00000002; + bool7 = value; + return this; + } + + /** + * optional bool bool10 = 6; + * @return whether the bool10 field is set + */ + public boolean hasBool10() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional bool bool10 = 6; + * @return this + */ + public StageMergedInfo clearBool10() { + bitField0_ &= ~0x00000004; + bool10 = false; + return this; + } + + /** + * optional bool bool10 = 6; + * @return the bool10 + */ + public boolean getBool10() { + return bool10; + } + + /** + * optional bool bool10 = 6; + * @param value the bool10 to set + * @return this + */ + public StageMergedInfo setBool10(final boolean value) { + bitField0_ |= 0x00000004; + bool10 = value; + return this; + } + + /** + * repeated uint32 stage_periods = 15; + * @return whether the stagePeriods field is set + */ + public boolean hasStagePeriods() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 stage_periods = 15; + * @return this + */ + public StageMergedInfo clearStagePeriods() { + bitField0_ &= ~0x00000008; + stagePeriods.clear(); + return this; + } + + /** + * repeated uint32 stage_periods = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableStagePeriods()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getStagePeriods() { + return stagePeriods; + } + + /** + * repeated uint32 stage_periods = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableStagePeriods() { + bitField0_ |= 0x00000008; + return stagePeriods; + } + + /** + * repeated uint32 stage_periods = 15; + * @param value the stagePeriods to add + * @return this + */ + public StageMergedInfo addStagePeriods(final int value) { + bitField0_ |= 0x00000008; + stagePeriods.add(value); + return this; + } + + /** + * repeated uint32 stage_periods = 15; + * @param values the stagePeriods to add + * @return this + */ + public StageMergedInfo addAllStagePeriods(final int... values) { + bitField0_ |= 0x00000008; + stagePeriods.addAll(values); + return this; + } + + @Override + public StageMergedInfo copyFrom(final StageMergedInfo other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + stageMergedId = other.stageMergedId; + bool7 = other.bool7; + bool10 = other.bool10; + stagePeriods.copyFrom(other.stagePeriods); + } + return this; + } + + @Override + public StageMergedInfo mergeFrom(final StageMergedInfo other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasStageMergedId()) { + setStageMergedId(other.stageMergedId); + } + if (other.hasBool7()) { + setBool7(other.bool7); + } + if (other.hasBool10()) { + setBool10(other.bool10); + } + if (other.hasStagePeriods()) { + getMutableStagePeriods().addAll(other.stagePeriods); + } + return this; + } + + @Override + public StageMergedInfo clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stageMergedId = 0; + bool7 = false; + bool10 = false; + stagePeriods.clear(); + return this; + } + + @Override + public StageMergedInfo clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + stagePeriods.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StageMergedInfo)) { + return false; + } + StageMergedInfo other = (StageMergedInfo) o; + return bitField0_ == other.bitField0_ + && (!hasStageMergedId() || stageMergedId == other.stageMergedId) + && (!hasBool7() || bool7 == other.bool7) + && (!hasBool10() || bool10 == other.bool10) + && (!hasStagePeriods() || stagePeriods.equals(other.stagePeriods)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(stageMergedId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeBoolNoTag(bool7); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); + output.writeBoolNoTag(bool10); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < stagePeriods.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(stagePeriods.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageMergedId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000004) != 0) { + size += 2; + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * stagePeriods.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(stagePeriods); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StageMergedInfo mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // stageMergedId + stageMergedId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // bool7 + bool7 = input.readBool(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // bool10 + bool10 = input.readBool(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // stagePeriods [packed=true] + input.readPackedUInt32(stagePeriods, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 120: { + // stagePeriods [packed=false] + tag = input.readRepeatedUInt32(stagePeriods, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.stageMergedId, stageMergedId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeBool(FieldNames.bool7, bool7); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeBool(FieldNames.bool10, bool10); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.stagePeriods, stagePeriods); + } + output.endObject(); + } + + @Override + public StageMergedInfo mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1165878651: + case -190036211: { + if (input.isAtField(FieldNames.stageMergedId)) { + if (!input.trySkipNullValue()) { + stageMergedId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 93921933: { + if (input.isAtField(FieldNames.bool7)) { + if (!input.trySkipNullValue()) { + bool7 = input.readBool(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1383387511: { + if (input.isAtField(FieldNames.bool10)) { + if (!input.trySkipNullValue()) { + bool10 = input.readBool(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1516592628: + case 950652561: { + if (input.isAtField(FieldNames.stagePeriods)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(stagePeriods); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StageMergedInfo clone() { + return new StageMergedInfo().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StageMergedInfo parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StageMergedInfo(), data).checkInitialized(); + } + + public static StageMergedInfo parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StageMergedInfo(), input).checkInitialized(); + } + + public static StageMergedInfo parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StageMergedInfo(), input).checkInitialized(); + } + + /** + * @return factory for creating StageMergedInfo messages + */ + public static MessageFactory getFactory() { + return StageMergedInfoFactory.INSTANCE; + } + + private enum StageMergedInfoFactory implements MessageFactory { + INSTANCE; + + @Override + public StageMergedInfo create() { + return StageMergedInfo.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName stageMergedId = FieldName.forField("stageMergedId", "stage_merged_id"); + + static final FieldName bool7 = FieldName.forField("bool7"); + + static final FieldName bool10 = FieldName.forField("bool10"); + + static final FieldName stagePeriods = FieldName.forField("stagePeriods", "stage_periods"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java index c77fbf9..579f60b 100644 --- a/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StaminaInfoScNotifyOuterClass.java @@ -19,25 +19,25 @@ public final class StaminaInfoScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional int64 next_recover_time = 5; - */ - private long nextRecoverTime; - - /** - * optional int64 next_reserve_time = 7; + * optional int64 next_reserve_time = 4; */ private long nextReserveTime; /** - * optional uint32 reserve_stamina = 2; + * optional int64 next_recover_time = 7; */ - private int reserveStamina; + private long nextRecoverTime; /** - * optional uint32 stamina = 13; + * optional uint32 stamina = 6; */ private int stamina; + /** + * optional uint32 reserve_stamina = 8; + */ + private int reserveStamina; + private StaminaInfoScNotify() { } @@ -49,62 +49,25 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional int64 next_recover_time = 5; - * @return whether the nextRecoverTime field is set + * optional int64 next_reserve_time = 4; + * @return whether the nextReserveTime field is set */ - public boolean hasNextRecoverTime() { + public boolean hasNextReserveTime() { return (bitField0_ & 0x00000001) != 0; } /** - * optional int64 next_recover_time = 5; - * @return this - */ - public StaminaInfoScNotify clearNextRecoverTime() { - bitField0_ &= ~0x00000001; - nextRecoverTime = 0L; - return this; - } - - /** - * optional int64 next_recover_time = 5; - * @return the nextRecoverTime - */ - public long getNextRecoverTime() { - return nextRecoverTime; - } - - /** - * optional int64 next_recover_time = 5; - * @param value the nextRecoverTime to set - * @return this - */ - public StaminaInfoScNotify setNextRecoverTime(final long value) { - bitField0_ |= 0x00000001; - nextRecoverTime = value; - return this; - } - - /** - * optional int64 next_reserve_time = 7; - * @return whether the nextReserveTime field is set - */ - public boolean hasNextReserveTime() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional int64 next_reserve_time = 7; + * optional int64 next_reserve_time = 4; * @return this */ public StaminaInfoScNotify clearNextReserveTime() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; nextReserveTime = 0L; return this; } /** - * optional int64 next_reserve_time = 7; + * optional int64 next_reserve_time = 4; * @return the nextReserveTime */ public long getNextReserveTime() { @@ -112,73 +75,73 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional int64 next_reserve_time = 7; + * optional int64 next_reserve_time = 4; * @param value the nextReserveTime to set * @return this */ public StaminaInfoScNotify setNextReserveTime(final long value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; nextReserveTime = value; return this; } /** - * optional uint32 reserve_stamina = 2; - * @return whether the reserveStamina field is set + * optional int64 next_recover_time = 7; + * @return whether the nextRecoverTime field is set */ - public boolean hasReserveStamina() { + public boolean hasNextRecoverTime() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional int64 next_recover_time = 7; + * @return this + */ + public StaminaInfoScNotify clearNextRecoverTime() { + bitField0_ &= ~0x00000002; + nextRecoverTime = 0L; + return this; + } + + /** + * optional int64 next_recover_time = 7; + * @return the nextRecoverTime + */ + public long getNextRecoverTime() { + return nextRecoverTime; + } + + /** + * optional int64 next_recover_time = 7; + * @param value the nextRecoverTime to set + * @return this + */ + public StaminaInfoScNotify setNextRecoverTime(final long value) { + bitField0_ |= 0x00000002; + nextRecoverTime = value; + return this; + } + + /** + * optional uint32 stamina = 6; + * @return whether the stamina field is set + */ + public boolean hasStamina() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 reserve_stamina = 2; - * @return this - */ - public StaminaInfoScNotify clearReserveStamina() { - bitField0_ &= ~0x00000004; - reserveStamina = 0; - return this; - } - - /** - * optional uint32 reserve_stamina = 2; - * @return the reserveStamina - */ - public int getReserveStamina() { - return reserveStamina; - } - - /** - * optional uint32 reserve_stamina = 2; - * @param value the reserveStamina to set - * @return this - */ - public StaminaInfoScNotify setReserveStamina(final int value) { - bitField0_ |= 0x00000004; - reserveStamina = value; - return this; - } - - /** - * optional uint32 stamina = 13; - * @return whether the stamina field is set - */ - public boolean hasStamina() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional uint32 stamina = 13; + * optional uint32 stamina = 6; * @return this */ public StaminaInfoScNotify clearStamina() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; stamina = 0; return this; } /** - * optional uint32 stamina = 13; + * optional uint32 stamina = 6; * @return the stamina */ public int getStamina() { @@ -186,25 +149,62 @@ public final class StaminaInfoScNotifyOuterClass { } /** - * optional uint32 stamina = 13; + * optional uint32 stamina = 6; * @param value the stamina to set * @return this */ public StaminaInfoScNotify setStamina(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; stamina = value; return this; } + /** + * optional uint32 reserve_stamina = 8; + * @return whether the reserveStamina field is set + */ + public boolean hasReserveStamina() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 reserve_stamina = 8; + * @return this + */ + public StaminaInfoScNotify clearReserveStamina() { + bitField0_ &= ~0x00000008; + reserveStamina = 0; + return this; + } + + /** + * optional uint32 reserve_stamina = 8; + * @return the reserveStamina + */ + public int getReserveStamina() { + return reserveStamina; + } + + /** + * optional uint32 reserve_stamina = 8; + * @param value the reserveStamina to set + * @return this + */ + public StaminaInfoScNotify setReserveStamina(final int value) { + bitField0_ |= 0x00000008; + reserveStamina = value; + return this; + } + @Override public StaminaInfoScNotify copyFrom(final StaminaInfoScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - nextRecoverTime = other.nextRecoverTime; nextReserveTime = other.nextReserveTime; - reserveStamina = other.reserveStamina; + nextRecoverTime = other.nextRecoverTime; stamina = other.stamina; + reserveStamina = other.reserveStamina; } return this; } @@ -215,18 +215,18 @@ public final class StaminaInfoScNotifyOuterClass { return this; } cachedSize = -1; - if (other.hasNextRecoverTime()) { - setNextRecoverTime(other.nextRecoverTime); - } if (other.hasNextReserveTime()) { setNextReserveTime(other.nextReserveTime); } - if (other.hasReserveStamina()) { - setReserveStamina(other.reserveStamina); + if (other.hasNextRecoverTime()) { + setNextRecoverTime(other.nextRecoverTime); } if (other.hasStamina()) { setStamina(other.stamina); } + if (other.hasReserveStamina()) { + setReserveStamina(other.reserveStamina); + } return this; } @@ -237,10 +237,10 @@ public final class StaminaInfoScNotifyOuterClass { } cachedSize = -1; bitField0_ = 0; - nextRecoverTime = 0L; nextReserveTime = 0L; - reserveStamina = 0; + nextRecoverTime = 0L; stamina = 0; + reserveStamina = 0; return this; } @@ -264,29 +264,29 @@ public final class StaminaInfoScNotifyOuterClass { } StaminaInfoScNotify other = (StaminaInfoScNotify) o; return bitField0_ == other.bitField0_ - && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) && (!hasNextReserveTime() || nextReserveTime == other.nextReserveTime) - && (!hasReserveStamina() || reserveStamina == other.reserveStamina) - && (!hasStamina() || stamina == other.stamina); + && (!hasNextRecoverTime() || nextRecoverTime == other.nextRecoverTime) + && (!hasStamina() || stamina == other.stamina) + && (!hasReserveStamina() || reserveStamina == other.reserveStamina); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeInt64NoTag(nextRecoverTime); + output.writeRawByte((byte) 32); + output.writeInt64NoTag(nextReserveTime); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 56); - output.writeInt64NoTag(nextReserveTime); + output.writeInt64NoTag(nextRecoverTime); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(reserveStamina); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(stamina); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(stamina); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(reserveStamina); } } @@ -294,16 +294,16 @@ public final class StaminaInfoScNotifyOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeInt64SizeNoTag(nextReserveTime); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeInt64SizeNoTag(nextRecoverTime); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(reserveStamina); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(stamina); + size += 1 + ProtoSink.computeUInt32SizeNoTag(reserveStamina); } return size; } @@ -315,9 +315,9 @@ public final class StaminaInfoScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // nextRecoverTime - nextRecoverTime = input.readInt64(); + case 32: { + // nextReserveTime + nextReserveTime = input.readInt64(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 56) { @@ -325,26 +325,26 @@ public final class StaminaInfoScNotifyOuterClass { } } case 56: { - // nextReserveTime - nextReserveTime = input.readInt64(); + // nextRecoverTime + nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 16) { + if (tag != 48) { break; } } - case 16: { - // reserveStamina - reserveStamina = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { + case 48: { // stamina stamina = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 64) { + break; + } + } + case 64: { + // reserveStamina + reserveStamina = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -369,16 +369,16 @@ public final class StaminaInfoScNotifyOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeInt64(FieldNames.nextReserveTime, nextReserveTime); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeInt64(FieldNames.nextRecoverTime, nextRecoverTime); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.reserveStamina, reserveStamina); + output.writeUInt32(FieldNames.stamina, stamina); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.stamina, stamina); + output.writeUInt32(FieldNames.reserveStamina, reserveStamina); } output.endObject(); } @@ -390,11 +390,11 @@ public final class StaminaInfoScNotifyOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1964148386: - case 394600084: { - if (input.isAtField(FieldNames.nextRecoverTime)) { + case 152759478: + case 1594234428: { + if (input.isAtField(FieldNames.nextReserveTime)) { if (!input.trySkipNullValue()) { - nextRecoverTime = input.readInt64(); + nextReserveTime = input.readInt64(); bitField0_ |= 0x00000001; } } else { @@ -402,11 +402,11 @@ public final class StaminaInfoScNotifyOuterClass { } break; } - case 152759478: - case 1594234428: { - if (input.isAtField(FieldNames.nextReserveTime)) { + case -1964148386: + case 394600084: { + if (input.isAtField(FieldNames.nextRecoverTime)) { if (!input.trySkipNullValue()) { - nextReserveTime = input.readInt64(); + nextRecoverTime = input.readInt64(); bitField0_ |= 0x00000002; } } else { @@ -414,22 +414,22 @@ public final class StaminaInfoScNotifyOuterClass { } break; } + case -1897344401: { + if (input.isAtField(FieldNames.stamina)) { + if (!input.trySkipNullValue()) { + stamina = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } case -273362413: case -799929876: { if (input.isAtField(FieldNames.reserveStamina)) { if (!input.trySkipNullValue()) { reserveStamina = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1897344401: { - if (input.isAtField(FieldNames.stamina)) { - if (!input.trySkipNullValue()) { - stamina = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -490,13 +490,13 @@ public final class StaminaInfoScNotifyOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName nextRecoverTime = FieldName.forField("nextRecoverTime", "next_recover_time"); - static final FieldName nextReserveTime = FieldName.forField("nextReserveTime", "next_reserve_time"); - static final FieldName reserveStamina = FieldName.forField("reserveStamina", "reserve_stamina"); + static final FieldName nextRecoverTime = FieldName.forField("nextRecoverTime", "next_recover_time"); static final FieldName stamina = FieldName.forField("stamina"); + + static final FieldName reserveStamina = FieldName.forField("reserveStamina", "reserve_stamina"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java index 42c676a..33c0706 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeCsReqOuterClass.java @@ -20,25 +20,25 @@ public final class StartChallengeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 5; */ private int challengeId; /** - * optional .StartChallengeStoryInfo ext_info = 2; + * optional .StartChallengeStoryInfo ext_info = 8; */ private final StartChallengeStoryInfoOuterClass.StartChallengeStoryInfo extInfo = StartChallengeStoryInfoOuterClass.StartChallengeStoryInfo.newInstance(); /** - * repeated uint32 first_half_lineup = 6; - */ - private final RepeatedInt firstHalfLineup = RepeatedInt.newEmptyInstance(); - - /** - * repeated uint32 second_half_lineup = 14; + * repeated uint32 second_half_lineup = 10; */ private final RepeatedInt secondHalfLineup = RepeatedInt.newEmptyInstance(); + /** + * repeated uint32 first_half_lineup = 11; + */ + private final RepeatedInt firstHalfLineup = RepeatedInt.newEmptyInstance(); + private StartChallengeCsReq() { } @@ -50,7 +50,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 5; * @return whether the challengeId field is set */ public boolean hasChallengeId() { @@ -58,7 +58,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 5; * @return this */ public StartChallengeCsReq clearChallengeId() { @@ -68,7 +68,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 5; * @return the challengeId */ public int getChallengeId() { @@ -76,7 +76,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 12; + * optional uint32 challenge_id = 5; * @param value the challengeId to set * @return this */ @@ -87,7 +87,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo ext_info = 2; + * optional .StartChallengeStoryInfo ext_info = 8; * @return whether the extInfo field is set */ public boolean hasExtInfo() { @@ -95,7 +95,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo ext_info = 2; + * optional .StartChallengeStoryInfo ext_info = 8; * @return this */ public StartChallengeCsReq clearExtInfo() { @@ -105,7 +105,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo ext_info = 2; + * optional .StartChallengeStoryInfo ext_info = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -119,7 +119,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo ext_info = 2; + * optional .StartChallengeStoryInfo ext_info = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -133,7 +133,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * optional .StartChallengeStoryInfo ext_info = 2; + * optional .StartChallengeStoryInfo ext_info = 8; * @param value the extInfo to set * @return this */ @@ -145,93 +145,25 @@ public final class StartChallengeCsReqOuterClass { } /** - * repeated uint32 first_half_lineup = 6; - * @return whether the firstHalfLineup field is set + * repeated uint32 second_half_lineup = 10; + * @return whether the secondHalfLineup field is set */ - public boolean hasFirstHalfLineup() { + public boolean hasSecondHalfLineup() { return (bitField0_ & 0x00000004) != 0; } /** - * repeated uint32 first_half_lineup = 6; - * @return this - */ - public StartChallengeCsReq clearFirstHalfLineup() { - bitField0_ &= ~0x00000004; - firstHalfLineup.clear(); - return this; - } - - /** - * repeated uint32 first_half_lineup = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableFirstHalfLineup()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getFirstHalfLineup() { - return firstHalfLineup; - } - - /** - * repeated uint32 first_half_lineup = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableFirstHalfLineup() { - bitField0_ |= 0x00000004; - return firstHalfLineup; - } - - /** - * repeated uint32 first_half_lineup = 6; - * @param value the firstHalfLineup to add - * @return this - */ - public StartChallengeCsReq addFirstHalfLineup(final int value) { - bitField0_ |= 0x00000004; - firstHalfLineup.add(value); - return this; - } - - /** - * repeated uint32 first_half_lineup = 6; - * @param values the firstHalfLineup to add - * @return this - */ - public StartChallengeCsReq addAllFirstHalfLineup(final int... values) { - bitField0_ |= 0x00000004; - firstHalfLineup.addAll(values); - return this; - } - - /** - * repeated uint32 second_half_lineup = 14; - * @return whether the secondHalfLineup field is set - */ - public boolean hasSecondHalfLineup() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * repeated uint32 second_half_lineup = 14; + * repeated uint32 second_half_lineup = 10; * @return this */ public StartChallengeCsReq clearSecondHalfLineup() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; secondHalfLineup.clear(); return this; } /** - * repeated uint32 second_half_lineup = 14; + * repeated uint32 second_half_lineup = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -245,7 +177,7 @@ public final class StartChallengeCsReqOuterClass { } /** - * repeated uint32 second_half_lineup = 14; + * repeated uint32 second_half_lineup = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -254,32 +186,100 @@ public final class StartChallengeCsReqOuterClass { * @return internal storage object for modifications */ public RepeatedInt getMutableSecondHalfLineup() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return secondHalfLineup; } /** - * repeated uint32 second_half_lineup = 14; + * repeated uint32 second_half_lineup = 10; * @param value the secondHalfLineup to add * @return this */ public StartChallengeCsReq addSecondHalfLineup(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; secondHalfLineup.add(value); return this; } /** - * repeated uint32 second_half_lineup = 14; + * repeated uint32 second_half_lineup = 10; * @param values the secondHalfLineup to add * @return this */ public StartChallengeCsReq addAllSecondHalfLineup(final int... values) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; secondHalfLineup.addAll(values); return this; } + /** + * repeated uint32 first_half_lineup = 11; + * @return whether the firstHalfLineup field is set + */ + public boolean hasFirstHalfLineup() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 first_half_lineup = 11; + * @return this + */ + public StartChallengeCsReq clearFirstHalfLineup() { + bitField0_ &= ~0x00000008; + firstHalfLineup.clear(); + return this; + } + + /** + * repeated uint32 first_half_lineup = 11; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableFirstHalfLineup()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getFirstHalfLineup() { + return firstHalfLineup; + } + + /** + * repeated uint32 first_half_lineup = 11; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableFirstHalfLineup() { + bitField0_ |= 0x00000008; + return firstHalfLineup; + } + + /** + * repeated uint32 first_half_lineup = 11; + * @param value the firstHalfLineup to add + * @return this + */ + public StartChallengeCsReq addFirstHalfLineup(final int value) { + bitField0_ |= 0x00000008; + firstHalfLineup.add(value); + return this; + } + + /** + * repeated uint32 first_half_lineup = 11; + * @param values the firstHalfLineup to add + * @return this + */ + public StartChallengeCsReq addAllFirstHalfLineup(final int... values) { + bitField0_ |= 0x00000008; + firstHalfLineup.addAll(values); + return this; + } + @Override public StartChallengeCsReq copyFrom(final StartChallengeCsReq other) { cachedSize = other.cachedSize; @@ -287,8 +287,8 @@ public final class StartChallengeCsReqOuterClass { bitField0_ = other.bitField0_; challengeId = other.challengeId; extInfo.copyFrom(other.extInfo); - firstHalfLineup.copyFrom(other.firstHalfLineup); secondHalfLineup.copyFrom(other.secondHalfLineup); + firstHalfLineup.copyFrom(other.firstHalfLineup); } return this; } @@ -305,12 +305,12 @@ public final class StartChallengeCsReqOuterClass { if (other.hasExtInfo()) { getMutableExtInfo().mergeFrom(other.extInfo); } - if (other.hasFirstHalfLineup()) { - getMutableFirstHalfLineup().addAll(other.firstHalfLineup); - } if (other.hasSecondHalfLineup()) { getMutableSecondHalfLineup().addAll(other.secondHalfLineup); } + if (other.hasFirstHalfLineup()) { + getMutableFirstHalfLineup().addAll(other.firstHalfLineup); + } return this; } @@ -323,8 +323,8 @@ public final class StartChallengeCsReqOuterClass { bitField0_ = 0; challengeId = 0; extInfo.clear(); - firstHalfLineup.clear(); secondHalfLineup.clear(); + firstHalfLineup.clear(); return this; } @@ -336,8 +336,8 @@ public final class StartChallengeCsReqOuterClass { cachedSize = -1; bitField0_ = 0; extInfo.clearQuick(); - firstHalfLineup.clear(); secondHalfLineup.clear(); + firstHalfLineup.clear(); return this; } @@ -353,30 +353,30 @@ public final class StartChallengeCsReqOuterClass { return bitField0_ == other.bitField0_ && (!hasChallengeId() || challengeId == other.challengeId) && (!hasExtInfo() || extInfo.equals(other.extInfo)) - && (!hasFirstHalfLineup() || firstHalfLineup.equals(other.firstHalfLineup)) - && (!hasSecondHalfLineup() || secondHalfLineup.equals(other.secondHalfLineup)); + && (!hasSecondHalfLineup() || secondHalfLineup.equals(other.secondHalfLineup)) + && (!hasFirstHalfLineup() || firstHalfLineup.equals(other.firstHalfLineup)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(challengeId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 66); output.writeMessageNoTag(extInfo); } if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < firstHalfLineup.length(); i++) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(firstHalfLineup.array()[i]); + for (int i = 0; i < secondHalfLineup.length(); i++) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(secondHalfLineup.array()[i]); } } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < secondHalfLineup.length(); i++) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(secondHalfLineup.array()[i]); + for (int i = 0; i < firstHalfLineup.length(); i++) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(firstHalfLineup.array()[i]); } } } @@ -391,10 +391,10 @@ public final class StartChallengeCsReqOuterClass { size += 1 + ProtoSink.computeMessageSizeNoTag(extInfo); } if ((bitField0_ & 0x00000004) != 0) { - size += (1 * firstHalfLineup.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(firstHalfLineup); + size += (1 * secondHalfLineup.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(secondHalfLineup); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * secondHalfLineup.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(secondHalfLineup); + size += (1 * firstHalfLineup.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(firstHalfLineup); } return size; } @@ -406,36 +406,36 @@ public final class StartChallengeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 40: { // challengeId challengeId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 66) { break; } } - case 18: { + case 66: { // extInfo input.readMessage(extInfo); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 50) { + if (tag != 82) { break; } } - case 50: { - // firstHalfLineup [packed=true] - input.readPackedUInt32(firstHalfLineup, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { + case 82: { // secondHalfLineup [packed=true] input.readPackedUInt32(secondHalfLineup, tag); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { + // firstHalfLineup [packed=true] + input.readPackedUInt32(firstHalfLineup, tag); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -452,15 +452,15 @@ public final class StartChallengeCsReqOuterClass { tag = input.readTag(); break; } - case 48: { - // firstHalfLineup [packed=false] - tag = input.readRepeatedUInt32(firstHalfLineup, tag); + case 80: { + // secondHalfLineup [packed=false] + tag = input.readRepeatedUInt32(secondHalfLineup, tag); bitField0_ |= 0x00000004; break; } - case 112: { - // secondHalfLineup [packed=false] - tag = input.readRepeatedUInt32(secondHalfLineup, tag); + case 88: { + // firstHalfLineup [packed=false] + tag = input.readRepeatedUInt32(firstHalfLineup, tag); bitField0_ |= 0x00000008; break; } @@ -478,10 +478,10 @@ public final class StartChallengeCsReqOuterClass { output.writeMessage(FieldNames.extInfo, extInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.firstHalfLineup, firstHalfLineup); + output.writeRepeatedUInt32(FieldNames.secondHalfLineup, secondHalfLineup); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.secondHalfLineup, secondHalfLineup); + output.writeRepeatedUInt32(FieldNames.firstHalfLineup, firstHalfLineup); } output.endObject(); } @@ -517,11 +517,11 @@ public final class StartChallengeCsReqOuterClass { } break; } - case -450421134: - case 1848535052: { - if (input.isAtField(FieldNames.firstHalfLineup)) { + case 1414736694: + case -1031121968: { + if (input.isAtField(FieldNames.secondHalfLineup)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(firstHalfLineup); + input.readRepeatedUInt32(secondHalfLineup); bitField0_ |= 0x00000004; } } else { @@ -529,11 +529,11 @@ public final class StartChallengeCsReqOuterClass { } break; } - case 1414736694: - case -1031121968: { - if (input.isAtField(FieldNames.secondHalfLineup)) { + case -450421134: + case 1848535052: { + if (input.isAtField(FieldNames.firstHalfLineup)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(secondHalfLineup); + input.readRepeatedUInt32(firstHalfLineup); bitField0_ |= 0x00000008; } } else { @@ -598,9 +598,9 @@ public final class StartChallengeCsReqOuterClass { static final FieldName extInfo = FieldName.forField("extInfo", "ext_info"); - static final FieldName firstHalfLineup = FieldName.forField("firstHalfLineup", "first_half_lineup"); - static final FieldName secondHalfLineup = FieldName.forField("secondHalfLineup", "second_half_lineup"); + + static final FieldName firstHalfLineup = FieldName.forField("firstHalfLineup", "first_half_lineup"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengePeakCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengePeakCsReqOuterClass.java new file mode 100644 index 0000000..c2a18e0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartChallengePeakCsReqOuterClass.java @@ -0,0 +1,382 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class StartChallengePeakCsReqOuterClass { + /** + * Protobuf type {@code StartChallengePeakCsReq} + */ + public static final class StartChallengePeakCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 challenge_peak_id = 3; + */ + private int challengePeakId; + + /** + * repeated uint32 challenge_avatar_id_list = 15; + */ + private final RepeatedInt challengeAvatarIdList = RepeatedInt.newEmptyInstance(); + + private StartChallengePeakCsReq() { + } + + /** + * @return a new empty instance of {@code StartChallengePeakCsReq} + */ + public static StartChallengePeakCsReq newInstance() { + return new StartChallengePeakCsReq(); + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return whether the challengePeakId field is set + */ + public boolean hasChallengePeakId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return this + */ + public StartChallengePeakCsReq clearChallengePeakId() { + bitField0_ &= ~0x00000001; + challengePeakId = 0; + return this; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @return the challengePeakId + */ + public int getChallengePeakId() { + return challengePeakId; + } + + /** + * optional uint32 challenge_peak_id = 3; + * @param value the challengePeakId to set + * @return this + */ + public StartChallengePeakCsReq setChallengePeakId(final int value) { + bitField0_ |= 0x00000001; + challengePeakId = value; + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 15; + * @return whether the challengeAvatarIdList field is set + */ + public boolean hasChallengeAvatarIdList() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * repeated uint32 challenge_avatar_id_list = 15; + * @return this + */ + public StartChallengePeakCsReq clearChallengeAvatarIdList() { + bitField0_ &= ~0x00000002; + challengeAvatarIdList.clear(); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 15; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChallengeAvatarIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getChallengeAvatarIdList() { + return challengeAvatarIdList; + } + + /** + * repeated uint32 challenge_avatar_id_list = 15; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableChallengeAvatarIdList() { + bitField0_ |= 0x00000002; + return challengeAvatarIdList; + } + + /** + * repeated uint32 challenge_avatar_id_list = 15; + * @param value the challengeAvatarIdList to add + * @return this + */ + public StartChallengePeakCsReq addChallengeAvatarIdList(final int value) { + bitField0_ |= 0x00000002; + challengeAvatarIdList.add(value); + return this; + } + + /** + * repeated uint32 challenge_avatar_id_list = 15; + * @param values the challengeAvatarIdList to add + * @return this + */ + public StartChallengePeakCsReq addAllChallengeAvatarIdList(final int... values) { + bitField0_ |= 0x00000002; + challengeAvatarIdList.addAll(values); + return this; + } + + @Override + public StartChallengePeakCsReq copyFrom(final StartChallengePeakCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + challengePeakId = other.challengePeakId; + challengeAvatarIdList.copyFrom(other.challengeAvatarIdList); + } + return this; + } + + @Override + public StartChallengePeakCsReq mergeFrom(final StartChallengePeakCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasChallengePeakId()) { + setChallengePeakId(other.challengePeakId); + } + if (other.hasChallengeAvatarIdList()) { + getMutableChallengeAvatarIdList().addAll(other.challengeAvatarIdList); + } + return this; + } + + @Override + public StartChallengePeakCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengePeakId = 0; + challengeAvatarIdList.clear(); + return this; + } + + @Override + public StartChallengePeakCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + challengeAvatarIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StartChallengePeakCsReq)) { + return false; + } + StartChallengePeakCsReq other = (StartChallengePeakCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasChallengePeakId() || challengePeakId == other.challengePeakId) + && (!hasChallengeAvatarIdList() || challengeAvatarIdList.equals(other.challengeAvatarIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + for (int i = 0; i < challengeAvatarIdList.length(); i++) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(challengeAvatarIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += (1 * challengeAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(challengeAvatarIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartChallengePeakCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // challengePeakId + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 122) { + break; + } + } + case 122: { + // challengeAvatarIdList [packed=true] + input.readPackedUInt32(challengeAvatarIdList, tag); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 120: { + // challengeAvatarIdList [packed=false] + tag = input.readRepeatedUInt32(challengeAvatarIdList, tag); + bitField0_ |= 0x00000002; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.challengePeakId, challengePeakId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRepeatedUInt32(FieldNames.challengeAvatarIdList, challengeAvatarIdList); + } + output.endObject(); + } + + @Override + public StartChallengePeakCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1075253405: + case -117346145: { + if (input.isAtField(FieldNames.challengePeakId)) { + if (!input.trySkipNullValue()) { + challengePeakId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 836175637: + case 1831834552: { + if (input.isAtField(FieldNames.challengeAvatarIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(challengeAvatarIdList); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartChallengePeakCsReq clone() { + return new StartChallengePeakCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartChallengePeakCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartChallengePeakCsReq(), data).checkInitialized(); + } + + public static StartChallengePeakCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartChallengePeakCsReq(), input).checkInitialized(); + } + + public static StartChallengePeakCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartChallengePeakCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating StartChallengePeakCsReq messages + */ + public static MessageFactory getFactory() { + return StartChallengePeakCsReqFactory.INSTANCE; + } + + private enum StartChallengePeakCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public StartChallengePeakCsReq create() { + return StartChallengePeakCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName challengePeakId = FieldName.forField("challengePeakId", "challenge_peak_id"); + + static final FieldName challengeAvatarIdList = FieldName.forField("challengeAvatarIdList", "challenge_avatar_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java index 5d45371..e814cc7 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeScRspOuterClass.java @@ -20,17 +20,17 @@ public final class StartChallengeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 9; */ private int retcode; /** - * optional .ChallengeExtInfo ext_info = 4; + * optional .ChallengeExtInfo ext_info = 2; */ private final ChallengeExtInfoOuterClass.ChallengeExtInfo extInfo = ChallengeExtInfoOuterClass.ChallengeExtInfo.newInstance(); /** - * optional .ChallengeInfo challenge_info = 8; + * optional .ChallengeInfo challenge_info = 3; */ private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); @@ -40,7 +40,7 @@ public final class StartChallengeScRspOuterClass { private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; */ private final RepeatedMessage lineupList = RepeatedMessage.newEmptyInstance(LineupInfoOuterClass.LineupInfo.getFactory()); @@ -55,7 +55,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 9; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -63,7 +63,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 9; * @return this */ public StartChallengeScRsp clearRetcode() { @@ -73,7 +73,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 9; * @return the retcode */ public int getRetcode() { @@ -81,7 +81,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional uint32 retcode = 6; + * optional uint32 retcode = 9; * @param value the retcode to set * @return this */ @@ -92,7 +92,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 4; + * optional .ChallengeExtInfo ext_info = 2; * @return whether the extInfo field is set */ public boolean hasExtInfo() { @@ -100,7 +100,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 4; + * optional .ChallengeExtInfo ext_info = 2; * @return this */ public StartChallengeScRsp clearExtInfo() { @@ -110,7 +110,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 4; + * optional .ChallengeExtInfo ext_info = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -124,7 +124,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 4; + * optional .ChallengeExtInfo ext_info = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -138,7 +138,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeExtInfo ext_info = 4; + * optional .ChallengeExtInfo ext_info = 2; * @param value the extInfo to set * @return this */ @@ -149,7 +149,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 8; + * optional .ChallengeInfo challenge_info = 3; * @return whether the challengeInfo field is set */ public boolean hasChallengeInfo() { @@ -157,7 +157,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 8; + * optional .ChallengeInfo challenge_info = 3; * @return this */ public StartChallengeScRsp clearChallengeInfo() { @@ -167,7 +167,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 8; + * optional .ChallengeInfo challenge_info = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -181,7 +181,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 8; + * optional .ChallengeInfo challenge_info = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -195,7 +195,7 @@ public final class StartChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 8; + * optional .ChallengeInfo challenge_info = 3; * @param value the challengeInfo to set * @return this */ @@ -263,7 +263,7 @@ public final class StartChallengeScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; * @return whether the lineupList field is set */ public boolean hasLineupList() { @@ -271,7 +271,7 @@ public final class StartChallengeScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; * @return this */ public StartChallengeScRsp clearLineupList() { @@ -281,7 +281,7 @@ public final class StartChallengeScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -295,7 +295,7 @@ public final class StartChallengeScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -309,7 +309,7 @@ public final class StartChallengeScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; * @param value the lineupList to add * @return this */ @@ -320,7 +320,7 @@ public final class StartChallengeScRspOuterClass { } /** - * repeated .LineupInfo lineup_list = 10; + * repeated .LineupInfo lineup_list = 13; * @param values the lineupList to add * @return this */ @@ -417,15 +417,15 @@ public final class StartChallengeScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 72); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 18); output.writeMessageNoTag(extInfo); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 26); output.writeMessageNoTag(challengeInfo); } if ((bitField0_ & 0x00000008) != 0) { @@ -434,7 +434,7 @@ public final class StartChallengeScRspOuterClass { } if ((bitField0_ & 0x00000010) != 0) { for (int i = 0; i < lineupList.length(); i++) { - output.writeRawByte((byte) 82); + output.writeRawByte((byte) 106); output.writeMessageNoTag(lineupList.get(i)); } } @@ -468,25 +468,25 @@ public final class StartChallengeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 72: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 18) { break; } } - case 34: { + case 18: { // extInfo input.readMessage(extInfo); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 66) { + if (tag != 26) { break; } } - case 66: { + case 26: { // challengeInfo input.readMessage(challengeInfo); bitField0_ |= 0x00000004; @@ -500,11 +500,11 @@ public final class StartChallengeScRspOuterClass { input.readMessage(scene); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 82) { + if (tag != 106) { break; } } - case 82: { + case 106: { // lineupList tag = input.readRepeatedMessage(lineupList, tag); bitField0_ |= 0x00000010; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java index e06ab8c..e7e05dc 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryBuffInfoOuterClass.java @@ -23,7 +23,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_two = 2; + * optional uint32 story_buff_two = 7; */ private int storyBuffTwo; @@ -32,7 +32,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_one = 13; + * optional uint32 story_buff_one = 12; */ private int storyBuffOne; @@ -51,7 +51,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_two = 2; + * optional uint32 story_buff_two = 7; * @return whether the storyBuffTwo field is set */ public boolean hasStoryBuffTwo() { @@ -63,7 +63,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_two = 2; + * optional uint32 story_buff_two = 7; * @return this */ public StartChallengeStoryBuffInfo clearStoryBuffTwo() { @@ -77,7 +77,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_two = 2; + * optional uint32 story_buff_two = 7; * @return the storyBuffTwo */ public int getStoryBuffTwo() { @@ -89,7 +89,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_two = 2; + * optional uint32 story_buff_two = 7; * @param value the storyBuffTwo to set * @return this */ @@ -104,7 +104,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_one = 13; + * optional uint32 story_buff_one = 12; * @return whether the storyBuffOne field is set */ public boolean hasStoryBuffOne() { @@ -116,7 +116,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_one = 13; + * optional uint32 story_buff_one = 12; * @return this */ public StartChallengeStoryBuffInfo clearStoryBuffOne() { @@ -130,7 +130,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_one = 13; + * optional uint32 story_buff_one = 12; * @return the storyBuffOne */ public int getStoryBuffOne() { @@ -142,7 +142,7 @@ public final class StartChallengeStoryBuffInfoOuterClass { * ? * * - * optional uint32 story_buff_one = 13; + * optional uint32 story_buff_one = 12; * @param value the storyBuffOne to set * @return this */ @@ -217,11 +217,11 @@ public final class StartChallengeStoryBuffInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(storyBuffTwo); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(storyBuffOne); } } @@ -245,16 +245,16 @@ public final class StartChallengeStoryBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { + case 56: { // storyBuffTwo storyBuffTwo = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { + case 96: { // storyBuffOne storyBuffOne = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java index d594ad9..e264641 100644 --- a/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartChallengeStoryInfoOuterClass.java @@ -19,15 +19,15 @@ public final class StartChallengeStoryInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 7; - */ - private final StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo storyBuffInfo = StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo.newInstance(); - - /** - * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 8; + * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 11; */ private final StartNewChallengeStoryBuffInfoOuterClass.StartNewChallengeStoryBuffInfo newStoryBuffInfo = StartNewChallengeStoryBuffInfoOuterClass.StartNewChallengeStoryBuffInfo.newInstance(); + /** + * optional .StartChallengeStoryBuffInfo story_buff_info = 14; + */ + private final StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo storyBuffInfo = StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo.newInstance(); + private StartChallengeStoryInfo() { } @@ -39,84 +39,25 @@ public final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 7; - * @return whether the storyBuffInfo field is set + * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 11; + * @return whether the newStoryBuffInfo field is set */ - public boolean hasStoryBuffInfo() { + public boolean hasNewStoryBuffInfo() { return (bitField0_ & 0x00000001) != 0; } /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 7; - * @return this - */ - public StartChallengeStoryInfo clearStoryBuffInfo() { - bitField0_ &= ~0x00000001; - storyBuffInfo.clear(); - return this; - } - - /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableStoryBuffInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo getStoryBuffInfo() { - return storyBuffInfo; - } - - /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo getMutableStoryBuffInfo( - ) { - bitField0_ |= 0x00000001; - return storyBuffInfo; - } - - /** - * optional .StartChallengeStoryBuffInfo story_buff_info = 7; - * @param value the storyBuffInfo to set - * @return this - */ - public StartChallengeStoryInfo setStoryBuffInfo( - final StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo value) { - bitField0_ |= 0x00000001; - storyBuffInfo.copyFrom(value); - return this; - } - - /** - * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 8; - * @return whether the newStoryBuffInfo field is set - */ - public boolean hasNewStoryBuffInfo() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 8; + * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 11; * @return this */ public StartChallengeStoryInfo clearNewStoryBuffInfo() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; newStoryBuffInfo.clear(); return this; } /** - * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 8; + * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -131,7 +72,7 @@ public final class StartChallengeStoryInfoOuterClass { } /** - * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 8; + * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -141,29 +82,88 @@ public final class StartChallengeStoryInfoOuterClass { */ public StartNewChallengeStoryBuffInfoOuterClass.StartNewChallengeStoryBuffInfo getMutableNewStoryBuffInfo( ) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; return newStoryBuffInfo; } /** - * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 8; + * optional .StartNewChallengeStoryBuffInfo new_story_buff_info = 11; * @param value the newStoryBuffInfo to set * @return this */ public StartChallengeStoryInfo setNewStoryBuffInfo( final StartNewChallengeStoryBuffInfoOuterClass.StartNewChallengeStoryBuffInfo value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; newStoryBuffInfo.copyFrom(value); return this; } + /** + * optional .StartChallengeStoryBuffInfo story_buff_info = 14; + * @return whether the storyBuffInfo field is set + */ + public boolean hasStoryBuffInfo() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .StartChallengeStoryBuffInfo story_buff_info = 14; + * @return this + */ + public StartChallengeStoryInfo clearStoryBuffInfo() { + bitField0_ &= ~0x00000002; + storyBuffInfo.clear(); + return this; + } + + /** + * optional .StartChallengeStoryBuffInfo story_buff_info = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableStoryBuffInfo()} if you want to modify it. + * + * @return internal storage object for reading + */ + public StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo getStoryBuffInfo() { + return storyBuffInfo; + } + + /** + * optional .StartChallengeStoryBuffInfo story_buff_info = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo getMutableStoryBuffInfo( + ) { + bitField0_ |= 0x00000002; + return storyBuffInfo; + } + + /** + * optional .StartChallengeStoryBuffInfo story_buff_info = 14; + * @param value the storyBuffInfo to set + * @return this + */ + public StartChallengeStoryInfo setStoryBuffInfo( + final StartChallengeStoryBuffInfoOuterClass.StartChallengeStoryBuffInfo value) { + bitField0_ |= 0x00000002; + storyBuffInfo.copyFrom(value); + return this; + } + @Override public StartChallengeStoryInfo copyFrom(final StartChallengeStoryInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - storyBuffInfo.copyFrom(other.storyBuffInfo); newStoryBuffInfo.copyFrom(other.newStoryBuffInfo); + storyBuffInfo.copyFrom(other.storyBuffInfo); } return this; } @@ -174,12 +174,12 @@ public final class StartChallengeStoryInfoOuterClass { return this; } cachedSize = -1; - if (other.hasStoryBuffInfo()) { - getMutableStoryBuffInfo().mergeFrom(other.storyBuffInfo); - } if (other.hasNewStoryBuffInfo()) { getMutableNewStoryBuffInfo().mergeFrom(other.newStoryBuffInfo); } + if (other.hasStoryBuffInfo()) { + getMutableStoryBuffInfo().mergeFrom(other.storyBuffInfo); + } return this; } @@ -190,8 +190,8 @@ public final class StartChallengeStoryInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - storyBuffInfo.clear(); newStoryBuffInfo.clear(); + storyBuffInfo.clear(); return this; } @@ -202,8 +202,8 @@ public final class StartChallengeStoryInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - storyBuffInfo.clearQuick(); newStoryBuffInfo.clearQuick(); + storyBuffInfo.clearQuick(); return this; } @@ -217,19 +217,19 @@ public final class StartChallengeStoryInfoOuterClass { } StartChallengeStoryInfo other = (StartChallengeStoryInfo) o; return bitField0_ == other.bitField0_ - && (!hasStoryBuffInfo() || storyBuffInfo.equals(other.storyBuffInfo)) - && (!hasNewStoryBuffInfo() || newStoryBuffInfo.equals(other.newStoryBuffInfo)); + && (!hasNewStoryBuffInfo() || newStoryBuffInfo.equals(other.newStoryBuffInfo)) + && (!hasStoryBuffInfo() || storyBuffInfo.equals(other.storyBuffInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(storyBuffInfo); + output.writeRawByte((byte) 90); + output.writeMessageNoTag(newStoryBuffInfo); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(newStoryBuffInfo); + output.writeRawByte((byte) 114); + output.writeMessageNoTag(storyBuffInfo); } } @@ -237,10 +237,10 @@ public final class StartChallengeStoryInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(storyBuffInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(newStoryBuffInfo); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(newStoryBuffInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(storyBuffInfo); } return size; } @@ -252,18 +252,18 @@ public final class StartChallengeStoryInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 58: { - // storyBuffInfo - input.readMessage(storyBuffInfo); + case 90: { + // newStoryBuffInfo + input.readMessage(newStoryBuffInfo); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 114) { break; } } - case 66: { - // newStoryBuffInfo - input.readMessage(newStoryBuffInfo); + case 114: { + // storyBuffInfo + input.readMessage(storyBuffInfo); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -288,10 +288,10 @@ public final class StartChallengeStoryInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.storyBuffInfo, storyBuffInfo); + output.writeMessage(FieldNames.newStoryBuffInfo, newStoryBuffInfo); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.newStoryBuffInfo, newStoryBuffInfo); + output.writeMessage(FieldNames.storyBuffInfo, storyBuffInfo); } output.endObject(); } @@ -303,11 +303,11 @@ public final class StartChallengeStoryInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1230610506: - case -1733882288: { - if (input.isAtField(FieldNames.storyBuffInfo)) { + case 1151109622: + case -1182609999: { + if (input.isAtField(FieldNames.newStoryBuffInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(storyBuffInfo); + input.readMessage(newStoryBuffInfo); bitField0_ |= 0x00000001; } } else { @@ -315,11 +315,11 @@ public final class StartChallengeStoryInfoOuterClass { } break; } - case 1151109622: - case -1182609999: { - if (input.isAtField(FieldNames.newStoryBuffInfo)) { + case -1230610506: + case -1733882288: { + if (input.isAtField(FieldNames.storyBuffInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(newStoryBuffInfo); + input.readMessage(storyBuffInfo); bitField0_ |= 0x00000002; } } else { @@ -380,9 +380,9 @@ public final class StartChallengeStoryInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName storyBuffInfo = FieldName.forField("storyBuffInfo", "story_buff_info"); - static final FieldName newStoryBuffInfo = FieldName.forField("newStoryBuffInfo", "new_story_buff_info"); + + static final FieldName storyBuffInfo = FieldName.forField("storyBuffInfo", "story_buff_info"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java index 27b97c2..cd844b1 100644 --- a/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageCsReqOuterClass.java @@ -19,22 +19,27 @@ public final class StartCocoonStageCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 prop_entity_id = 2; - */ - private int propEntityId; - - /** - * optional uint32 wave = 3; - */ - private int wave; - - /** - * optional uint32 world_level = 5; + * optional uint32 world_level = 2; */ private int worldLevel; /** - * optional uint32 cocoon_id = 10; + * optional uint32 wave_count = 5; + */ + private int waveCount; + + /** + * optional uint32 prop_entity_id = 12; + */ + private int propEntityId; + + /** + * optional uint32 wave = 14; + */ + private int wave; + + /** + * optional uint32 cocoon_id = 15; */ private int cocoonId; @@ -49,99 +54,25 @@ public final class StartCocoonStageCsReqOuterClass { } /** - * optional uint32 prop_entity_id = 2; - * @return whether the propEntityId field is set + * optional uint32 world_level = 2; + * @return whether the worldLevel field is set */ - public boolean hasPropEntityId() { + public boolean hasWorldLevel() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 prop_entity_id = 2; - * @return this - */ - public StartCocoonStageCsReq clearPropEntityId() { - bitField0_ &= ~0x00000001; - propEntityId = 0; - return this; - } - - /** - * optional uint32 prop_entity_id = 2; - * @return the propEntityId - */ - public int getPropEntityId() { - return propEntityId; - } - - /** - * optional uint32 prop_entity_id = 2; - * @param value the propEntityId to set - * @return this - */ - public StartCocoonStageCsReq setPropEntityId(final int value) { - bitField0_ |= 0x00000001; - propEntityId = value; - return this; - } - - /** - * optional uint32 wave = 3; - * @return whether the wave field is set - */ - public boolean hasWave() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 wave = 3; - * @return this - */ - public StartCocoonStageCsReq clearWave() { - bitField0_ &= ~0x00000002; - wave = 0; - return this; - } - - /** - * optional uint32 wave = 3; - * @return the wave - */ - public int getWave() { - return wave; - } - - /** - * optional uint32 wave = 3; - * @param value the wave to set - * @return this - */ - public StartCocoonStageCsReq setWave(final int value) { - bitField0_ |= 0x00000002; - wave = value; - return this; - } - - /** - * optional uint32 world_level = 5; - * @return whether the worldLevel field is set - */ - public boolean hasWorldLevel() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 world_level = 5; + * optional uint32 world_level = 2; * @return this */ public StartCocoonStageCsReq clearWorldLevel() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; worldLevel = 0; return this; } /** - * optional uint32 world_level = 5; + * optional uint32 world_level = 2; * @return the worldLevel */ public int getWorldLevel() { @@ -149,36 +80,147 @@ public final class StartCocoonStageCsReqOuterClass { } /** - * optional uint32 world_level = 5; + * optional uint32 world_level = 2; * @param value the worldLevel to set * @return this */ public StartCocoonStageCsReq setWorldLevel(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; worldLevel = value; return this; } /** - * optional uint32 cocoon_id = 10; - * @return whether the cocoonId field is set + * optional uint32 wave_count = 5; + * @return whether the waveCount field is set */ - public boolean hasCocoonId() { + public boolean hasWaveCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 wave_count = 5; + * @return this + */ + public StartCocoonStageCsReq clearWaveCount() { + bitField0_ &= ~0x00000002; + waveCount = 0; + return this; + } + + /** + * optional uint32 wave_count = 5; + * @return the waveCount + */ + public int getWaveCount() { + return waveCount; + } + + /** + * optional uint32 wave_count = 5; + * @param value the waveCount to set + * @return this + */ + public StartCocoonStageCsReq setWaveCount(final int value) { + bitField0_ |= 0x00000002; + waveCount = value; + return this; + } + + /** + * optional uint32 prop_entity_id = 12; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 prop_entity_id = 12; + * @return this + */ + public StartCocoonStageCsReq clearPropEntityId() { + bitField0_ &= ~0x00000004; + propEntityId = 0; + return this; + } + + /** + * optional uint32 prop_entity_id = 12; + * @return the propEntityId + */ + public int getPropEntityId() { + return propEntityId; + } + + /** + * optional uint32 prop_entity_id = 12; + * @param value the propEntityId to set + * @return this + */ + public StartCocoonStageCsReq setPropEntityId(final int value) { + bitField0_ |= 0x00000004; + propEntityId = value; + return this; + } + + /** + * optional uint32 wave = 14; + * @return whether the wave field is set + */ + public boolean hasWave() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 cocoon_id = 10; + * optional uint32 wave = 14; + * @return this + */ + public StartCocoonStageCsReq clearWave() { + bitField0_ &= ~0x00000008; + wave = 0; + return this; + } + + /** + * optional uint32 wave = 14; + * @return the wave + */ + public int getWave() { + return wave; + } + + /** + * optional uint32 wave = 14; + * @param value the wave to set + * @return this + */ + public StartCocoonStageCsReq setWave(final int value) { + bitField0_ |= 0x00000008; + wave = value; + return this; + } + + /** + * optional uint32 cocoon_id = 15; + * @return whether the cocoonId field is set + */ + public boolean hasCocoonId() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional uint32 cocoon_id = 15; * @return this */ public StartCocoonStageCsReq clearCocoonId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000010; cocoonId = 0; return this; } /** - * optional uint32 cocoon_id = 10; + * optional uint32 cocoon_id = 15; * @return the cocoonId */ public int getCocoonId() { @@ -186,12 +228,12 @@ public final class StartCocoonStageCsReqOuterClass { } /** - * optional uint32 cocoon_id = 10; + * optional uint32 cocoon_id = 15; * @param value the cocoonId to set * @return this */ public StartCocoonStageCsReq setCocoonId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; cocoonId = value; return this; } @@ -201,9 +243,10 @@ public final class StartCocoonStageCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + worldLevel = other.worldLevel; + waveCount = other.waveCount; propEntityId = other.propEntityId; wave = other.wave; - worldLevel = other.worldLevel; cocoonId = other.cocoonId; } return this; @@ -215,15 +258,18 @@ public final class StartCocoonStageCsReqOuterClass { return this; } cachedSize = -1; + if (other.hasWorldLevel()) { + setWorldLevel(other.worldLevel); + } + if (other.hasWaveCount()) { + setWaveCount(other.waveCount); + } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } if (other.hasWave()) { setWave(other.wave); } - if (other.hasWorldLevel()) { - setWorldLevel(other.worldLevel); - } if (other.hasCocoonId()) { setCocoonId(other.cocoonId); } @@ -237,9 +283,10 @@ public final class StartCocoonStageCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; + worldLevel = 0; + waveCount = 0; propEntityId = 0; wave = 0; - worldLevel = 0; cocoonId = 0; return this; } @@ -264,9 +311,10 @@ public final class StartCocoonStageCsReqOuterClass { } StartCocoonStageCsReq other = (StartCocoonStageCsReq) o; return bitField0_ == other.bitField0_ + && (!hasWorldLevel() || worldLevel == other.worldLevel) + && (!hasWaveCount() || waveCount == other.waveCount) && (!hasPropEntityId() || propEntityId == other.propEntityId) && (!hasWave() || wave == other.wave) - && (!hasWorldLevel() || worldLevel == other.worldLevel) && (!hasCocoonId() || cocoonId == other.cocoonId); } @@ -274,18 +322,22 @@ public final class StartCocoonStageCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 16); - output.writeUInt32NoTag(propEntityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(wave); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 40); output.writeUInt32NoTag(worldLevel); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(waveCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(propEntityId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(wave); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 120); output.writeUInt32NoTag(cocoonId); } } @@ -294,15 +346,18 @@ public final class StartCocoonStageCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(worldLevel); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(waveCount); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); + } if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); + } + if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); } return size; @@ -316,36 +371,45 @@ public final class StartCocoonStageCsReqOuterClass { while (true) { switch (tag) { case 16: { - // propEntityId - propEntityId = input.readUInt32(); + // worldLevel + worldLevel = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 24) { - break; - } - } - case 24: { - // wave - wave = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); if (tag != 40) { break; } } case 40: { - // worldLevel - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000004; + // waveCount + waveCount = input.readUInt32(); + bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 80) { + if (tag != 96) { break; } } - case 80: { + case 96: { + // propEntityId + propEntityId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 112) { + break; + } + } + case 112: { + // wave + wave = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { // cocoonId cocoonId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; tag = input.readTag(); if (tag != 0) { break; @@ -369,15 +433,18 @@ public final class StartCocoonStageCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.propEntityId, propEntityId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.wave, wave); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.worldLevel, worldLevel); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.waveCount, waveCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.propEntityId, propEntityId); + } if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.wave, wave); + } + if ((bitField0_ & 0x00000010) != 0) { output.writeUInt32(FieldNames.cocoonId, cocoonId); } output.endObject(); @@ -390,12 +457,36 @@ public final class StartCocoonStageCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 440007442: + case 1305257111: { + if (input.isAtField(FieldNames.worldLevel)) { + if (!input.trySkipNullValue()) { + worldLevel = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1518256534: + case 611674185: { + if (input.isAtField(FieldNames.waveCount)) { + if (!input.trySkipNullValue()) { + waveCount = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } case -68717343: case -57484005: { if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { propEntityId = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } else { input.skipUnknownField(); @@ -406,19 +497,7 @@ public final class StartCocoonStageCsReqOuterClass { if (input.isAtField(FieldNames.wave)) { if (!input.trySkipNullValue()) { wave = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 440007442: - case 1305257111: { - if (input.isAtField(FieldNames.worldLevel)) { - if (!input.trySkipNullValue()) { - worldLevel = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } else { input.skipUnknownField(); @@ -430,7 +509,7 @@ public final class StartCocoonStageCsReqOuterClass { if (input.isAtField(FieldNames.cocoonId)) { if (!input.trySkipNullValue()) { cocoonId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } else { input.skipUnknownField(); @@ -490,12 +569,14 @@ public final class StartCocoonStageCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); + + static final FieldName waveCount = FieldName.forField("waveCount", "wave_count"); + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); static final FieldName wave = FieldName.forField("wave"); - static final FieldName worldLevel = FieldName.forField("worldLevel", "world_level"); - static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); } } diff --git a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java index c1a148b..dbc9e87 100644 --- a/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartCocoonStageScRspOuterClass.java @@ -19,27 +19,27 @@ public final class StartCocoonStageScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 6; - */ - private int retcode; - - /** - * optional uint32 cocoon_id = 11; - */ - private int cocoonId; - - /** - * optional uint32 wave = 12; + * optional uint32 wave = 4; */ private int wave; /** - * optional uint32 prop_entity_id = 15; + * optional uint32 retcode = 5; + */ + private int retcode; + + /** + * optional uint32 prop_entity_id = 6; */ private int propEntityId; /** - * optional .SceneBattleInfo battle_info = 9; + * optional uint32 cocoon_id = 14; + */ + private int cocoonId; + + /** + * optional .SceneBattleInfo battle_info = 11; */ private final SceneBattleInfoOuterClass.SceneBattleInfo battleInfo = SceneBattleInfoOuterClass.SceneBattleInfo.newInstance(); @@ -54,99 +54,25 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 retcode = 6; - * @return whether the retcode field is set + * optional uint32 wave = 4; + * @return whether the wave field is set */ - public boolean hasRetcode() { + public boolean hasWave() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 6; - * @return this - */ - public StartCocoonStageScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 6; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 6; - * @param value the retcode to set - * @return this - */ - public StartCocoonStageScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 cocoon_id = 11; - * @return whether the cocoonId field is set - */ - public boolean hasCocoonId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 cocoon_id = 11; - * @return this - */ - public StartCocoonStageScRsp clearCocoonId() { - bitField0_ &= ~0x00000002; - cocoonId = 0; - return this; - } - - /** - * optional uint32 cocoon_id = 11; - * @return the cocoonId - */ - public int getCocoonId() { - return cocoonId; - } - - /** - * optional uint32 cocoon_id = 11; - * @param value the cocoonId to set - * @return this - */ - public StartCocoonStageScRsp setCocoonId(final int value) { - bitField0_ |= 0x00000002; - cocoonId = value; - return this; - } - - /** - * optional uint32 wave = 12; - * @return whether the wave field is set - */ - public boolean hasWave() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 wave = 12; + * optional uint32 wave = 4; * @return this */ public StartCocoonStageScRsp clearWave() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; wave = 0; return this; } /** - * optional uint32 wave = 12; + * optional uint32 wave = 4; * @return the wave */ public int getWave() { @@ -154,36 +80,73 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 wave = 12; + * optional uint32 wave = 4; * @param value the wave to set * @return this */ public StartCocoonStageScRsp setWave(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; wave = value; return this; } /** - * optional uint32 prop_entity_id = 15; - * @return whether the propEntityId field is set + * optional uint32 retcode = 5; + * @return whether the retcode field is set */ - public boolean hasPropEntityId() { - return (bitField0_ & 0x00000008) != 0; + public boolean hasRetcode() { + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 prop_entity_id = 15; + * optional uint32 retcode = 5; + * @return this + */ + public StartCocoonStageScRsp clearRetcode() { + bitField0_ &= ~0x00000002; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 5; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 5; + * @param value the retcode to set + * @return this + */ + public StartCocoonStageScRsp setRetcode(final int value) { + bitField0_ |= 0x00000002; + retcode = value; + return this; + } + + /** + * optional uint32 prop_entity_id = 6; + * @return whether the propEntityId field is set + */ + public boolean hasPropEntityId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 prop_entity_id = 6; * @return this */ public StartCocoonStageScRsp clearPropEntityId() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; propEntityId = 0; return this; } /** - * optional uint32 prop_entity_id = 15; + * optional uint32 prop_entity_id = 6; * @return the propEntityId */ public int getPropEntityId() { @@ -191,18 +154,55 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional uint32 prop_entity_id = 15; + * optional uint32 prop_entity_id = 6; * @param value the propEntityId to set * @return this */ public StartCocoonStageScRsp setPropEntityId(final int value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; propEntityId = value; return this; } /** - * optional .SceneBattleInfo battle_info = 9; + * optional uint32 cocoon_id = 14; + * @return whether the cocoonId field is set + */ + public boolean hasCocoonId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 cocoon_id = 14; + * @return this + */ + public StartCocoonStageScRsp clearCocoonId() { + bitField0_ &= ~0x00000008; + cocoonId = 0; + return this; + } + + /** + * optional uint32 cocoon_id = 14; + * @return the cocoonId + */ + public int getCocoonId() { + return cocoonId; + } + + /** + * optional uint32 cocoon_id = 14; + * @param value the cocoonId to set + * @return this + */ + public StartCocoonStageScRsp setCocoonId(final int value) { + bitField0_ |= 0x00000008; + cocoonId = value; + return this; + } + + /** + * optional .SceneBattleInfo battle_info = 11; * @return whether the battleInfo field is set */ public boolean hasBattleInfo() { @@ -210,7 +210,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 9; + * optional .SceneBattleInfo battle_info = 11; * @return this */ public StartCocoonStageScRsp clearBattleInfo() { @@ -220,7 +220,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 9; + * optional .SceneBattleInfo battle_info = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -234,7 +234,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 9; + * optional .SceneBattleInfo battle_info = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -248,7 +248,7 @@ public final class StartCocoonStageScRspOuterClass { } /** - * optional .SceneBattleInfo battle_info = 9; + * optional .SceneBattleInfo battle_info = 11; * @param value the battleInfo to set * @return this */ @@ -264,10 +264,10 @@ public final class StartCocoonStageScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; - cocoonId = other.cocoonId; wave = other.wave; + retcode = other.retcode; propEntityId = other.propEntityId; + cocoonId = other.cocoonId; battleInfo.copyFrom(other.battleInfo); } return this; @@ -279,18 +279,18 @@ public final class StartCocoonStageScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasCocoonId()) { - setCocoonId(other.cocoonId); - } if (other.hasWave()) { setWave(other.wave); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasPropEntityId()) { setPropEntityId(other.propEntityId); } + if (other.hasCocoonId()) { + setCocoonId(other.cocoonId); + } if (other.hasBattleInfo()) { getMutableBattleInfo().mergeFrom(other.battleInfo); } @@ -304,10 +304,10 @@ public final class StartCocoonStageScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; - cocoonId = 0; wave = 0; + retcode = 0; propEntityId = 0; + cocoonId = 0; battleInfo.clear(); return this; } @@ -333,33 +333,33 @@ public final class StartCocoonStageScRspOuterClass { } StartCocoonStageScRsp other = (StartCocoonStageScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasCocoonId() || cocoonId == other.cocoonId) && (!hasWave() || wave == other.wave) + && (!hasRetcode() || retcode == other.retcode) && (!hasPropEntityId() || propEntityId == other.propEntityId) + && (!hasCocoonId() || cocoonId == other.cocoonId) && (!hasBattleInfo() || battleInfo.equals(other.battleInfo)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(cocoonId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(wave); } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 48); output.writeUInt32NoTag(propEntityId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(cocoonId); + } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 90); output.writeMessageNoTag(battleInfo); } } @@ -368,17 +368,17 @@ public final class StartCocoonStageScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); - } - if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(wave); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(propEntityId); } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(cocoonId); + } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(battleInfo); } @@ -392,43 +392,43 @@ public final class StartCocoonStageScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { - // cocoonId - cocoonId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 32: { // wave wave = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 120) { + if (tag != 40) { break; } } - case 120: { + case 40: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { // propEntityId propEntityId = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 74) { + if (tag != 112) { break; } } - case 74: { + case 112: { + // cocoonId + cocoonId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 90) { + break; + } + } + case 90: { // battleInfo input.readMessage(battleInfo); bitField0_ |= 0x00000010; @@ -455,17 +455,17 @@ public final class StartCocoonStageScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.cocoonId, cocoonId); - } - if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.wave, wave); } - if ((bitField0_ & 0x00000008) != 0) { + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.propEntityId, propEntityId); } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.cocoonId, cocoonId); + } if ((bitField0_ & 0x00000010) != 0) { output.writeMessage(FieldNames.battleInfo, battleInfo); } @@ -479,10 +479,10 @@ public final class StartCocoonStageScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 3642105: { + if (input.isAtField(FieldNames.wave)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + wave = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -490,11 +490,10 @@ public final class StartCocoonStageScRspOuterClass { } break; } - case -886563534: - case -1713644381: { - if (input.isAtField(FieldNames.cocoonId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - cocoonId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -502,22 +501,23 @@ public final class StartCocoonStageScRspOuterClass { } break; } - case 3642105: { - if (input.isAtField(FieldNames.wave)) { - if (!input.trySkipNullValue()) { - wave = input.readUInt32(); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } case -68717343: case -57484005: { if (input.isAtField(FieldNames.propEntityId)) { if (!input.trySkipNullValue()) { propEntityId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -886563534: + case -1713644381: { + if (input.isAtField(FieldNames.cocoonId)) { + if (!input.trySkipNullValue()) { + cocoonId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -590,14 +590,14 @@ public final class StartCocoonStageScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); - static final FieldName wave = FieldName.forField("wave"); + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName propEntityId = FieldName.forField("propEntityId", "prop_entity_id"); + static final FieldName cocoonId = FieldName.forField("cocoonId", "cocoon_id"); + static final FieldName battleInfo = FieldName.forField("battleInfo", "battle_info"); } } diff --git a/src/generated/main/emu/lunarcore/proto/StartNewChallengeStoryBuffInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartNewChallengeStoryBuffInfoOuterClass.java index 414547a..ebdda2e 100644 --- a/src/generated/main/emu/lunarcore/proto/StartNewChallengeStoryBuffInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartNewChallengeStoryBuffInfoOuterClass.java @@ -19,15 +19,15 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 second_half = 3; - */ - private int secondHalf; - - /** - * optional uint32 first_half = 10; + * optional uint32 first_half = 2; */ private int firstHalf; + /** + * optional uint32 second_half = 10; + */ + private int secondHalf; + private StartNewChallengeStoryBuffInfo() { } @@ -39,62 +39,25 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 second_half = 3; - * @return whether the secondHalf field is set + * optional uint32 first_half = 2; + * @return whether the firstHalf field is set */ - public boolean hasSecondHalf() { + public boolean hasFirstHalf() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 second_half = 3; - * @return this - */ - public StartNewChallengeStoryBuffInfo clearSecondHalf() { - bitField0_ &= ~0x00000001; - secondHalf = 0; - return this; - } - - /** - * optional uint32 second_half = 3; - * @return the secondHalf - */ - public int getSecondHalf() { - return secondHalf; - } - - /** - * optional uint32 second_half = 3; - * @param value the secondHalf to set - * @return this - */ - public StartNewChallengeStoryBuffInfo setSecondHalf(final int value) { - bitField0_ |= 0x00000001; - secondHalf = value; - return this; - } - - /** - * optional uint32 first_half = 10; - * @return whether the firstHalf field is set - */ - public boolean hasFirstHalf() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 first_half = 10; + * optional uint32 first_half = 2; * @return this */ public StartNewChallengeStoryBuffInfo clearFirstHalf() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; firstHalf = 0; return this; } /** - * optional uint32 first_half = 10; + * optional uint32 first_half = 2; * @return the firstHalf */ public int getFirstHalf() { @@ -102,23 +65,60 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } /** - * optional uint32 first_half = 10; + * optional uint32 first_half = 2; * @param value the firstHalf to set * @return this */ public StartNewChallengeStoryBuffInfo setFirstHalf(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; firstHalf = value; return this; } + /** + * optional uint32 second_half = 10; + * @return whether the secondHalf field is set + */ + public boolean hasSecondHalf() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 second_half = 10; + * @return this + */ + public StartNewChallengeStoryBuffInfo clearSecondHalf() { + bitField0_ &= ~0x00000002; + secondHalf = 0; + return this; + } + + /** + * optional uint32 second_half = 10; + * @return the secondHalf + */ + public int getSecondHalf() { + return secondHalf; + } + + /** + * optional uint32 second_half = 10; + * @param value the secondHalf to set + * @return this + */ + public StartNewChallengeStoryBuffInfo setSecondHalf(final int value) { + bitField0_ |= 0x00000002; + secondHalf = value; + return this; + } + @Override public StartNewChallengeStoryBuffInfo copyFrom(final StartNewChallengeStoryBuffInfo other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - secondHalf = other.secondHalf; firstHalf = other.firstHalf; + secondHalf = other.secondHalf; } return this; } @@ -129,12 +129,12 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { return this; } cachedSize = -1; - if (other.hasSecondHalf()) { - setSecondHalf(other.secondHalf); - } if (other.hasFirstHalf()) { setFirstHalf(other.firstHalf); } + if (other.hasSecondHalf()) { + setSecondHalf(other.secondHalf); + } return this; } @@ -145,8 +145,8 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - secondHalf = 0; firstHalf = 0; + secondHalf = 0; return this; } @@ -170,19 +170,19 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } StartNewChallengeStoryBuffInfo other = (StartNewChallengeStoryBuffInfo) o; return bitField0_ == other.bitField0_ - && (!hasSecondHalf() || secondHalf == other.secondHalf) - && (!hasFirstHalf() || firstHalf == other.firstHalf); + && (!hasFirstHalf() || firstHalf == other.firstHalf) + && (!hasSecondHalf() || secondHalf == other.secondHalf); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(secondHalf); + output.writeRawByte((byte) 16); + output.writeUInt32NoTag(firstHalf); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 80); - output.writeUInt32NoTag(firstHalf); + output.writeUInt32NoTag(secondHalf); } } @@ -190,10 +190,10 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(secondHalf); + size += 1 + ProtoSink.computeUInt32SizeNoTag(firstHalf); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(firstHalf); + size += 1 + ProtoSink.computeUInt32SizeNoTag(secondHalf); } return size; } @@ -205,9 +205,9 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // secondHalf - secondHalf = input.readUInt32(); + case 16: { + // firstHalf + firstHalf = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 80) { @@ -215,8 +215,8 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } } case 80: { - // firstHalf - firstHalf = input.readUInt32(); + // secondHalf + secondHalf = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.secondHalf, secondHalf); + output.writeUInt32(FieldNames.firstHalf, firstHalf); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.firstHalf, firstHalf); + output.writeUInt32(FieldNames.secondHalf, secondHalf); } output.endObject(); } @@ -256,11 +256,11 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 423501511: - case 265084190: { - if (input.isAtField(FieldNames.secondHalf)) { + case 132656899: + case -161164190: { + if (input.isAtField(FieldNames.firstHalf)) { if (!input.trySkipNullValue()) { - secondHalf = input.readUInt32(); + firstHalf = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,11 +268,11 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { } break; } - case 132656899: - case -161164190: { - if (input.isAtField(FieldNames.firstHalf)) { + case 423501511: + case 265084190: { + if (input.isAtField(FieldNames.secondHalf)) { if (!input.trySkipNullValue()) { - firstHalf = input.readUInt32(); + secondHalf = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -335,9 +335,9 @@ public final class StartNewChallengeStoryBuffInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName secondHalf = FieldName.forField("secondHalf", "second_half"); - static final FieldName firstHalf = FieldName.forField("firstHalf", "first_half"); + + static final FieldName secondHalf = FieldName.forField("secondHalf", "second_half"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartPartialChallengeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartPartialChallengeCsReqOuterClass.java index a7e0c0d..dd3235e 100644 --- a/src/generated/main/emu/lunarcore/proto/StartPartialChallengeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartPartialChallengeCsReqOuterClass.java @@ -19,17 +19,17 @@ public final class StartPartialChallengeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 challenge_id = 10; - */ - private int challengeId; - - /** - * optional uint32 buff_id = 12; + * optional uint32 buff_id = 4; */ private int buffId; /** - * optional bool is_first_half = 4; + * optional uint32 challenge_id = 11; + */ + private int challengeId; + + /** + * optional bool is_first_half = 5; */ private boolean isFirstHalf; @@ -44,62 +44,25 @@ public final class StartPartialChallengeCsReqOuterClass { } /** - * optional uint32 challenge_id = 10; - * @return whether the challengeId field is set + * optional uint32 buff_id = 4; + * @return whether the buffId field is set */ - public boolean hasChallengeId() { + public boolean hasBuffId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 challenge_id = 10; - * @return this - */ - public StartPartialChallengeCsReq clearChallengeId() { - bitField0_ &= ~0x00000001; - challengeId = 0; - return this; - } - - /** - * optional uint32 challenge_id = 10; - * @return the challengeId - */ - public int getChallengeId() { - return challengeId; - } - - /** - * optional uint32 challenge_id = 10; - * @param value the challengeId to set - * @return this - */ - public StartPartialChallengeCsReq setChallengeId(final int value) { - bitField0_ |= 0x00000001; - challengeId = value; - return this; - } - - /** - * optional uint32 buff_id = 12; - * @return whether the buffId field is set - */ - public boolean hasBuffId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 buff_id = 12; + * optional uint32 buff_id = 4; * @return this */ public StartPartialChallengeCsReq clearBuffId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; buffId = 0; return this; } /** - * optional uint32 buff_id = 12; + * optional uint32 buff_id = 4; * @return the buffId */ public int getBuffId() { @@ -107,18 +70,55 @@ public final class StartPartialChallengeCsReqOuterClass { } /** - * optional uint32 buff_id = 12; + * optional uint32 buff_id = 4; * @param value the buffId to set * @return this */ public StartPartialChallengeCsReq setBuffId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; buffId = value; return this; } /** - * optional bool is_first_half = 4; + * optional uint32 challenge_id = 11; + * @return whether the challengeId field is set + */ + public boolean hasChallengeId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 challenge_id = 11; + * @return this + */ + public StartPartialChallengeCsReq clearChallengeId() { + bitField0_ &= ~0x00000002; + challengeId = 0; + return this; + } + + /** + * optional uint32 challenge_id = 11; + * @return the challengeId + */ + public int getChallengeId() { + return challengeId; + } + + /** + * optional uint32 challenge_id = 11; + * @param value the challengeId to set + * @return this + */ + public StartPartialChallengeCsReq setChallengeId(final int value) { + bitField0_ |= 0x00000002; + challengeId = value; + return this; + } + + /** + * optional bool is_first_half = 5; * @return whether the isFirstHalf field is set */ public boolean hasIsFirstHalf() { @@ -126,7 +126,7 @@ public final class StartPartialChallengeCsReqOuterClass { } /** - * optional bool is_first_half = 4; + * optional bool is_first_half = 5; * @return this */ public StartPartialChallengeCsReq clearIsFirstHalf() { @@ -136,7 +136,7 @@ public final class StartPartialChallengeCsReqOuterClass { } /** - * optional bool is_first_half = 4; + * optional bool is_first_half = 5; * @return the isFirstHalf */ public boolean getIsFirstHalf() { @@ -144,7 +144,7 @@ public final class StartPartialChallengeCsReqOuterClass { } /** - * optional bool is_first_half = 4; + * optional bool is_first_half = 5; * @param value the isFirstHalf to set * @return this */ @@ -159,8 +159,8 @@ public final class StartPartialChallengeCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - challengeId = other.challengeId; buffId = other.buffId; + challengeId = other.challengeId; isFirstHalf = other.isFirstHalf; } return this; @@ -172,12 +172,12 @@ public final class StartPartialChallengeCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasChallengeId()) { - setChallengeId(other.challengeId); - } if (other.hasBuffId()) { setBuffId(other.buffId); } + if (other.hasChallengeId()) { + setChallengeId(other.challengeId); + } if (other.hasIsFirstHalf()) { setIsFirstHalf(other.isFirstHalf); } @@ -191,8 +191,8 @@ public final class StartPartialChallengeCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - challengeId = 0; buffId = 0; + challengeId = 0; isFirstHalf = false; return this; } @@ -217,23 +217,23 @@ public final class StartPartialChallengeCsReqOuterClass { } StartPartialChallengeCsReq other = (StartPartialChallengeCsReq) o; return bitField0_ == other.bitField0_ - && (!hasChallengeId() || challengeId == other.challengeId) && (!hasBuffId() || buffId == other.buffId) + && (!hasChallengeId() || challengeId == other.challengeId) && (!hasIsFirstHalf() || isFirstHalf == other.isFirstHalf); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(challengeId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(buffId); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(challengeId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 40); output.writeBoolNoTag(isFirstHalf); } } @@ -242,10 +242,10 @@ public final class StartPartialChallengeCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -260,25 +260,25 @@ public final class StartPartialChallengeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // challengeId - challengeId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 96) { - break; - } - } - case 96: { + case 32: { // buffId buffId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 32) { + if (tag != 88) { break; } } - case 32: { + case 88: { + // challengeId + challengeId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { // isFirstHalf isFirstHalf = input.readBool(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public final class StartPartialChallengeCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.challengeId, challengeId); + output.writeUInt32(FieldNames.buffId, buffId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.buffId, buffId); + output.writeUInt32(FieldNames.challengeId, challengeId); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.isFirstHalf, isFirstHalf); @@ -323,11 +323,11 @@ public final class StartPartialChallengeCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -689112866: - case 112359031: { - if (input.isAtField(FieldNames.challengeId)) { + case -1378119474: + case 227990663: { + if (input.isAtField(FieldNames.buffId)) { if (!input.trySkipNullValue()) { - challengeId = input.readUInt32(); + buffId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,11 +335,11 @@ public final class StartPartialChallengeCsReqOuterClass { } break; } - case -1378119474: - case 227990663: { - if (input.isAtField(FieldNames.buffId)) { + case -689112866: + case 112359031: { + if (input.isAtField(FieldNames.challengeId)) { if (!input.trySkipNullValue()) { - buffId = input.readUInt32(); + challengeId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -412,10 +412,10 @@ public final class StartPartialChallengeCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); - static final FieldName buffId = FieldName.forField("buffId", "buff_id"); + static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); + static final FieldName isFirstHalf = FieldName.forField("isFirstHalf", "is_first_half"); } } diff --git a/src/generated/main/emu/lunarcore/proto/StartPartialChallengeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartPartialChallengeScRspOuterClass.java index 7f3703b..09d0e04 100644 --- a/src/generated/main/emu/lunarcore/proto/StartPartialChallengeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartPartialChallengeScRspOuterClass.java @@ -24,20 +24,20 @@ public final class StartPartialChallengeScRspOuterClass { private int retcode; /** - * optional .LineupInfo lineup = 5; + * optional .LineupInfo lineup = 1; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * optional .SceneInfo scene = 6; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 6; */ private final ChallengeInfoOuterClass.ChallengeInfo challengeInfo = ChallengeInfoOuterClass.ChallengeInfo.newInstance(); + /** + * optional .SceneInfo scene = 9; + */ + private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); + private StartPartialChallengeScRsp() { } @@ -86,7 +86,7 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 5; + * optional .LineupInfo lineup = 1; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -94,7 +94,7 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 5; + * optional .LineupInfo lineup = 1; * @return this */ public StartPartialChallengeScRsp clearLineup() { @@ -104,7 +104,7 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 5; + * optional .LineupInfo lineup = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -118,7 +118,7 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 5; + * optional .LineupInfo lineup = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -132,7 +132,7 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .LineupInfo lineup = 5; + * optional .LineupInfo lineup = 1; * @param value the lineup to set * @return this */ @@ -143,82 +143,25 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .SceneInfo scene = 6; - * @return whether the scene field is set + * optional .ChallengeInfo challenge_info = 6; + * @return whether the challengeInfo field is set */ - public boolean hasScene() { + public boolean hasChallengeInfo() { return (bitField0_ & 0x00000004) != 0; } /** - * optional .SceneInfo scene = 6; - * @return this - */ - public StartPartialChallengeScRsp clearScene() { - bitField0_ &= ~0x00000004; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 6; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 6; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000004; - return scene; - } - - /** - * optional .SceneInfo scene = 6; - * @param value the scene to set - * @return this - */ - public StartPartialChallengeScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000004; - scene.copyFrom(value); - return this; - } - - /** - * optional .ChallengeInfo challenge_info = 9; - * @return whether the challengeInfo field is set - */ - public boolean hasChallengeInfo() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 6; * @return this */ public StartPartialChallengeScRsp clearChallengeInfo() { - bitField0_ &= ~0x00000008; + bitField0_ &= ~0x00000004; challengeInfo.clear(); return this; } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -232,7 +175,7 @@ public final class StartPartialChallengeScRspOuterClass { } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -241,22 +184,79 @@ public final class StartPartialChallengeScRspOuterClass { * @return internal storage object for modifications */ public ChallengeInfoOuterClass.ChallengeInfo getMutableChallengeInfo() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; return challengeInfo; } /** - * optional .ChallengeInfo challenge_info = 9; + * optional .ChallengeInfo challenge_info = 6; * @param value the challengeInfo to set * @return this */ public StartPartialChallengeScRsp setChallengeInfo( final ChallengeInfoOuterClass.ChallengeInfo value) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; challengeInfo.copyFrom(value); return this; } + /** + * optional .SceneInfo scene = 9; + * @return whether the scene field is set + */ + public boolean hasScene() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .SceneInfo scene = 9; + * @return this + */ + public StartPartialChallengeScRsp clearScene() { + bitField0_ &= ~0x00000008; + scene.clear(); + return this; + } + + /** + * optional .SceneInfo scene = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableScene()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SceneInfoOuterClass.SceneInfo getScene() { + return scene; + } + + /** + * optional .SceneInfo scene = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SceneInfoOuterClass.SceneInfo getMutableScene() { + bitField0_ |= 0x00000008; + return scene; + } + + /** + * optional .SceneInfo scene = 9; + * @param value the scene to set + * @return this + */ + public StartPartialChallengeScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { + bitField0_ |= 0x00000008; + scene.copyFrom(value); + return this; + } + @Override public StartPartialChallengeScRsp copyFrom(final StartPartialChallengeScRsp other) { cachedSize = other.cachedSize; @@ -264,8 +264,8 @@ public final class StartPartialChallengeScRspOuterClass { bitField0_ = other.bitField0_; retcode = other.retcode; lineup.copyFrom(other.lineup); - scene.copyFrom(other.scene); challengeInfo.copyFrom(other.challengeInfo); + scene.copyFrom(other.scene); } return this; } @@ -282,12 +282,12 @@ public final class StartPartialChallengeScRspOuterClass { if (other.hasLineup()) { getMutableLineup().mergeFrom(other.lineup); } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } if (other.hasChallengeInfo()) { getMutableChallengeInfo().mergeFrom(other.challengeInfo); } + if (other.hasScene()) { + getMutableScene().mergeFrom(other.scene); + } return this; } @@ -300,8 +300,8 @@ public final class StartPartialChallengeScRspOuterClass { bitField0_ = 0; retcode = 0; lineup.clear(); - scene.clear(); challengeInfo.clear(); + scene.clear(); return this; } @@ -313,8 +313,8 @@ public final class StartPartialChallengeScRspOuterClass { cachedSize = -1; bitField0_ = 0; lineup.clearQuick(); - scene.clearQuick(); challengeInfo.clearQuick(); + scene.clearQuick(); return this; } @@ -330,8 +330,8 @@ public final class StartPartialChallengeScRspOuterClass { return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) && (!hasLineup() || lineup.equals(other.lineup)) - && (!hasScene() || scene.equals(other.scene)) - && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)); + && (!hasChallengeInfo() || challengeInfo.equals(other.challengeInfo)) + && (!hasScene() || scene.equals(other.scene)); } @Override @@ -341,16 +341,16 @@ public final class StartPartialChallengeScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 10); output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 50); - output.writeMessageNoTag(scene); + output.writeMessageNoTag(challengeInfo); } if ((bitField0_ & 0x00000008) != 0) { output.writeRawByte((byte) 74); - output.writeMessageNoTag(challengeInfo); + output.writeMessageNoTag(scene); } } @@ -364,10 +364,10 @@ public final class StartPartialChallengeScRspOuterClass { size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); + size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(challengeInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(scene); } return size; } @@ -384,11 +384,11 @@ public final class StartPartialChallengeScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 10) { break; } } - case 42: { + case 10: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000002; @@ -398,8 +398,8 @@ public final class StartPartialChallengeScRspOuterClass { } } case 50: { - // scene - input.readMessage(scene); + // challengeInfo + input.readMessage(challengeInfo); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 74) { @@ -407,8 +407,8 @@ public final class StartPartialChallengeScRspOuterClass { } } case 74: { - // challengeInfo - input.readMessage(challengeInfo); + // scene + input.readMessage(scene); bitField0_ |= 0x00000008; tag = input.readTag(); if (tag != 0) { @@ -439,10 +439,10 @@ public final class StartPartialChallengeScRspOuterClass { output.writeMessage(FieldNames.lineup, lineup); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.scene, scene); + output.writeMessage(FieldNames.challengeInfo, challengeInfo); } if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.challengeInfo, challengeInfo); + output.writeMessage(FieldNames.scene, scene); } output.endObject(); } @@ -476,10 +476,11 @@ public final class StartPartialChallengeScRspOuterClass { } break; } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { + case -812487759: + case 602859274: { + if (input.isAtField(FieldNames.challengeInfo)) { if (!input.trySkipNullValue()) { - input.readMessage(scene); + input.readMessage(challengeInfo); bitField0_ |= 0x00000004; } } else { @@ -487,11 +488,10 @@ public final class StartPartialChallengeScRspOuterClass { } break; } - case -812487759: - case 602859274: { - if (input.isAtField(FieldNames.challengeInfo)) { + case 109254796: { + if (input.isAtField(FieldNames.scene)) { if (!input.trySkipNullValue()) { - input.readMessage(challengeInfo); + input.readMessage(scene); bitField0_ |= 0x00000008; } } else { @@ -556,9 +556,9 @@ public final class StartPartialChallengeScRspOuterClass { static final FieldName lineup = FieldName.forField("lineup"); - static final FieldName scene = FieldName.forField("scene"); - static final FieldName challengeInfo = FieldName.forField("challengeInfo", "challenge_info"); + + static final FieldName scene = FieldName.forField("scene"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java deleted file mode 100644 index 9e98f08..0000000 --- a/src/generated/main/emu/lunarcore/proto/StartRogueCsReqOuterClass.java +++ /dev/null @@ -1,463 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; - -public final class StartRogueCsReqOuterClass { - /** - * Protobuf type {@code StartRogueCsReq} - */ - public static final class StartRogueCsReq extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 buff_aeon_id = 11; - */ - private int buffAeonId; - - /** - * optional uint32 area_id = 13; - */ - private int areaId; - - /** - * repeated uint32 base_avatar_id_list = 7; - */ - private final RepeatedInt baseAvatarIdList = RepeatedInt.newEmptyInstance(); - - private StartRogueCsReq() { - } - - /** - * @return a new empty instance of {@code StartRogueCsReq} - */ - public static StartRogueCsReq newInstance() { - return new StartRogueCsReq(); - } - - /** - * optional uint32 buff_aeon_id = 11; - * @return whether the buffAeonId field is set - */ - public boolean hasBuffAeonId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 buff_aeon_id = 11; - * @return this - */ - public StartRogueCsReq clearBuffAeonId() { - bitField0_ &= ~0x00000001; - buffAeonId = 0; - return this; - } - - /** - * optional uint32 buff_aeon_id = 11; - * @return the buffAeonId - */ - public int getBuffAeonId() { - return buffAeonId; - } - - /** - * optional uint32 buff_aeon_id = 11; - * @param value the buffAeonId to set - * @return this - */ - public StartRogueCsReq setBuffAeonId(final int value) { - bitField0_ |= 0x00000001; - buffAeonId = value; - return this; - } - - /** - * optional uint32 area_id = 13; - * @return whether the areaId field is set - */ - public boolean hasAreaId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 area_id = 13; - * @return this - */ - public StartRogueCsReq clearAreaId() { - bitField0_ &= ~0x00000002; - areaId = 0; - return this; - } - - /** - * optional uint32 area_id = 13; - * @return the areaId - */ - public int getAreaId() { - return areaId; - } - - /** - * optional uint32 area_id = 13; - * @param value the areaId to set - * @return this - */ - public StartRogueCsReq setAreaId(final int value) { - bitField0_ |= 0x00000002; - areaId = value; - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 7; - * @return whether the baseAvatarIdList field is set - */ - public boolean hasBaseAvatarIdList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated uint32 base_avatar_id_list = 7; - * @return this - */ - public StartRogueCsReq clearBaseAvatarIdList() { - bitField0_ &= ~0x00000004; - baseAvatarIdList.clear(); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBaseAvatarIdList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedInt getBaseAvatarIdList() { - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedInt getMutableBaseAvatarIdList() { - bitField0_ |= 0x00000004; - return baseAvatarIdList; - } - - /** - * repeated uint32 base_avatar_id_list = 7; - * @param value the baseAvatarIdList to add - * @return this - */ - public StartRogueCsReq addBaseAvatarIdList(final int value) { - bitField0_ |= 0x00000004; - baseAvatarIdList.add(value); - return this; - } - - /** - * repeated uint32 base_avatar_id_list = 7; - * @param values the baseAvatarIdList to add - * @return this - */ - public StartRogueCsReq addAllBaseAvatarIdList(final int... values) { - bitField0_ |= 0x00000004; - baseAvatarIdList.addAll(values); - return this; - } - - @Override - public StartRogueCsReq copyFrom(final StartRogueCsReq other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffAeonId = other.buffAeonId; - areaId = other.areaId; - baseAvatarIdList.copyFrom(other.baseAvatarIdList); - } - return this; - } - - @Override - public StartRogueCsReq mergeFrom(final StartRogueCsReq other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffAeonId()) { - setBuffAeonId(other.buffAeonId); - } - if (other.hasAreaId()) { - setAreaId(other.areaId); - } - if (other.hasBaseAvatarIdList()) { - getMutableBaseAvatarIdList().addAll(other.baseAvatarIdList); - } - return this; - } - - @Override - public StartRogueCsReq clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffAeonId = 0; - areaId = 0; - baseAvatarIdList.clear(); - return this; - } - - @Override - public StartRogueCsReq clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - baseAvatarIdList.clear(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof StartRogueCsReq)) { - return false; - } - StartRogueCsReq other = (StartRogueCsReq) o; - return bitField0_ == other.bitField0_ - && (!hasBuffAeonId() || buffAeonId == other.buffAeonId) - && (!hasAreaId() || areaId == other.areaId) - && (!hasBaseAvatarIdList() || baseAvatarIdList.equals(other.baseAvatarIdList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(buffAeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < baseAvatarIdList.length(); i++) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(baseAvatarIdList.array()[i]); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(buffAeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * baseAvatarIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(baseAvatarIdList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public StartRogueCsReq mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 88: { - // buffAeonId - buffAeonId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // areaId - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // baseAvatarIdList [packed=true] - input.readPackedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - case 56: { - // baseAvatarIdList [packed=false] - tag = input.readRepeatedUInt32(baseAvatarIdList, tag); - bitField0_ |= 0x00000004; - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.buffAeonId, buffAeonId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.areaId, areaId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedUInt32(FieldNames.baseAvatarIdList, baseAvatarIdList); - } - output.endObject(); - } - - @Override - public StartRogueCsReq mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 864413617: - case -1316781589: { - if (input.isAtField(FieldNames.buffAeonId)) { - if (!input.trySkipNullValue()) { - buffAeonId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1409553784: - case -746472947: { - if (input.isAtField(FieldNames.areaId)) { - if (!input.trySkipNullValue()) { - areaId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1212654461: - case 914628490: { - if (input.isAtField(FieldNames.baseAvatarIdList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(baseAvatarIdList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public StartRogueCsReq clone() { - return new StartRogueCsReq().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static StartRogueCsReq parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new StartRogueCsReq(), data).checkInitialized(); - } - - public static StartRogueCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new StartRogueCsReq(), input).checkInitialized(); - } - - public static StartRogueCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new StartRogueCsReq(), input).checkInitialized(); - } - - /** - * @return factory for creating StartRogueCsReq messages - */ - public static MessageFactory getFactory() { - return StartRogueCsReqFactory.INSTANCE; - } - - private enum StartRogueCsReqFactory implements MessageFactory { - INSTANCE; - - @Override - public StartRogueCsReq create() { - return StartRogueCsReq.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffAeonId = FieldName.forField("buffAeonId", "buff_aeon_id"); - - static final FieldName areaId = FieldName.forField("areaId", "area_id"); - - static final FieldName baseAvatarIdList = FieldName.forField("baseAvatarIdList", "base_avatar_id_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java deleted file mode 100644 index 032feb4..0000000 --- a/src/generated/main/emu/lunarcore/proto/StartRogueScRspOuterClass.java +++ /dev/null @@ -1,563 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class StartRogueScRspOuterClass { - /** - * Protobuf type {@code StartRogueScRsp} - */ - public static final class StartRogueScRsp extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 retcode = 3; - */ - private int retcode; - - /** - * optional .LineupInfo lineup = 1; - */ - private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); - - /** - * optional .RogueInfo rogue_info = 9; - */ - private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); - - /** - * optional .SceneInfo scene = 12; - */ - private final SceneInfoOuterClass.SceneInfo scene = SceneInfoOuterClass.SceneInfo.newInstance(); - - private StartRogueScRsp() { - } - - /** - * @return a new empty instance of {@code StartRogueScRsp} - */ - public static StartRogueScRsp newInstance() { - return new StartRogueScRsp(); - } - - /** - * optional uint32 retcode = 3; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 retcode = 3; - * @return this - */ - public StartRogueScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 3; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 3; - * @param value the retcode to set - * @return this - */ - public StartRogueScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional .LineupInfo lineup = 1; - * @return whether the lineup field is set - */ - public boolean hasLineup() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .LineupInfo lineup = 1; - * @return this - */ - public StartRogueScRsp clearLineup() { - bitField0_ &= ~0x00000002; - lineup.clear(); - return this; - } - - /** - * optional .LineupInfo lineup = 1; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableLineup()} if you want to modify it. - * - * @return internal storage object for reading - */ - public LineupInfoOuterClass.LineupInfo getLineup() { - return lineup; - } - - /** - * optional .LineupInfo lineup = 1; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public LineupInfoOuterClass.LineupInfo getMutableLineup() { - bitField0_ |= 0x00000002; - return lineup; - } - - /** - * optional .LineupInfo lineup = 1; - * @param value the lineup to set - * @return this - */ - public StartRogueScRsp setLineup(final LineupInfoOuterClass.LineupInfo value) { - bitField0_ |= 0x00000002; - lineup.copyFrom(value); - return this; - } - - /** - * optional .RogueInfo rogue_info = 9; - * @return whether the rogueInfo field is set - */ - public boolean hasRogueInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueInfo rogue_info = 9; - * @return this - */ - public StartRogueScRsp clearRogueInfo() { - bitField0_ &= ~0x00000004; - rogueInfo.clear(); - return this; - } - - /** - * optional .RogueInfo rogue_info = 9; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueInfoOuterClass.RogueInfo getRogueInfo() { - return rogueInfo; - } - - /** - * optional .RogueInfo rogue_info = 9; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueInfoOuterClass.RogueInfo getMutableRogueInfo() { - bitField0_ |= 0x00000004; - return rogueInfo; - } - - /** - * optional .RogueInfo rogue_info = 9; - * @param value the rogueInfo to set - * @return this - */ - public StartRogueScRsp setRogueInfo(final RogueInfoOuterClass.RogueInfo value) { - bitField0_ |= 0x00000004; - rogueInfo.copyFrom(value); - return this; - } - - /** - * optional .SceneInfo scene = 12; - * @return whether the scene field is set - */ - public boolean hasScene() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .SceneInfo scene = 12; - * @return this - */ - public StartRogueScRsp clearScene() { - bitField0_ &= ~0x00000008; - scene.clear(); - return this; - } - - /** - * optional .SceneInfo scene = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableScene()} if you want to modify it. - * - * @return internal storage object for reading - */ - public SceneInfoOuterClass.SceneInfo getScene() { - return scene; - } - - /** - * optional .SceneInfo scene = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public SceneInfoOuterClass.SceneInfo getMutableScene() { - bitField0_ |= 0x00000008; - return scene; - } - - /** - * optional .SceneInfo scene = 12; - * @param value the scene to set - * @return this - */ - public StartRogueScRsp setScene(final SceneInfoOuterClass.SceneInfo value) { - bitField0_ |= 0x00000008; - scene.copyFrom(value); - return this; - } - - @Override - public StartRogueScRsp copyFrom(final StartRogueScRsp other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - retcode = other.retcode; - lineup.copyFrom(other.lineup); - rogueInfo.copyFrom(other.rogueInfo); - scene.copyFrom(other.scene); - } - return this; - } - - @Override - public StartRogueScRsp mergeFrom(final StartRogueScRsp other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } - if (other.hasLineup()) { - getMutableLineup().mergeFrom(other.lineup); - } - if (other.hasRogueInfo()) { - getMutableRogueInfo().mergeFrom(other.rogueInfo); - } - if (other.hasScene()) { - getMutableScene().mergeFrom(other.scene); - } - return this; - } - - @Override - public StartRogueScRsp clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - retcode = 0; - lineup.clear(); - rogueInfo.clear(); - scene.clear(); - return this; - } - - @Override - public StartRogueScRsp clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - lineup.clearQuick(); - rogueInfo.clearQuick(); - scene.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof StartRogueScRsp)) { - return false; - } - StartRogueScRsp other = (StartRogueScRsp) o; - return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) - && (!hasLineup() || lineup.equals(other.lineup)) - && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)) - && (!hasScene() || scene.equals(other.scene)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 10); - output.writeMessageNoTag(lineup); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 74); - output.writeMessageNoTag(rogueInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(scene); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(lineup); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(scene); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public StartRogueScRsp mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 24: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 10) { - break; - } - } - case 10: { - // lineup - input.readMessage(lineup); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 74) { - break; - } - } - case 74: { - // rogueInfo - input.readMessage(rogueInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // scene - input.readMessage(scene); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.lineup, lineup); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueInfo, rogueInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.scene, scene); - } - output.endObject(); - } - - @Override - public StartRogueScRsp mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case -1102671473: { - if (input.isAtField(FieldNames.lineup)) { - if (!input.trySkipNullValue()) { - input.readMessage(lineup); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 655808936: - case -1124583437: { - if (input.isAtField(FieldNames.rogueInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 109254796: { - if (input.isAtField(FieldNames.scene)) { - if (!input.trySkipNullValue()) { - input.readMessage(scene); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public StartRogueScRsp clone() { - return new StartRogueScRsp().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static StartRogueScRsp parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new StartRogueScRsp(), data).checkInitialized(); - } - - public static StartRogueScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new StartRogueScRsp(), input).checkInitialized(); - } - - public static StartRogueScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new StartRogueScRsp(), input).checkInitialized(); - } - - /** - * @return factory for creating StartRogueScRsp messages - */ - public static MessageFactory getFactory() { - return StartRogueScRspFactory.INSTANCE; - } - - private enum StartRogueScRspFactory implements MessageFactory { - INSTANCE; - - @Override - public StartRogueScRsp create() { - return StartRogueScRsp.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - - static final FieldName lineup = FieldName.forField("lineup"); - - static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); - - static final FieldName scene = FieldName.forField("scene"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueRollDiceCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartTrialActivityCsReqOuterClass.java similarity index 55% rename from src/generated/main/emu/lunarcore/proto/ChessRogueRollDiceCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/StartTrialActivityCsReqOuterClass.java index d40d637..ea202d5 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueRollDiceCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/StartTrialActivityCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueRollDiceCsReqOuterClass { +public final class StartTrialActivityCsReqOuterClass { /** - * Protobuf type {@code ChessRogueRollDiceCsReq} + * Protobuf type {@code StartTrialActivityCsReq} */ - public static final class ChessRogueRollDiceCsReq extends ProtoMessage implements Cloneable { + public static final class StartTrialActivityCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 entity_id = 4; + * optional uint32 stage_id = 4; */ - private int entityId; + private int stageId; - private ChessRogueRollDiceCsReq() { + private StartTrialActivityCsReq() { } /** - * @return a new empty instance of {@code ChessRogueRollDiceCsReq} + * @return a new empty instance of {@code StartTrialActivityCsReq} */ - public static ChessRogueRollDiceCsReq newInstance() { - return new ChessRogueRollDiceCsReq(); + public static StartTrialActivityCsReq newInstance() { + return new StartTrialActivityCsReq(); } /** - * optional uint32 entity_id = 4; - * @return whether the entityId field is set + * optional uint32 stage_id = 4; + * @return whether the stageId field is set */ - public boolean hasEntityId() { + public boolean hasStageId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 entity_id = 4; + * optional uint32 stage_id = 4; * @return this */ - public ChessRogueRollDiceCsReq clearEntityId() { + public StartTrialActivityCsReq clearStageId() { bitField0_ &= ~0x00000001; - entityId = 0; + stageId = 0; return this; } /** - * optional uint32 entity_id = 4; - * @return the entityId + * optional uint32 stage_id = 4; + * @return the stageId */ - public int getEntityId() { - return entityId; + public int getStageId() { + return stageId; } /** - * optional uint32 entity_id = 4; - * @param value the entityId to set + * optional uint32 stage_id = 4; + * @param value the stageId to set * @return this */ - public ChessRogueRollDiceCsReq setEntityId(final int value) { + public StartTrialActivityCsReq setStageId(final int value) { bitField0_ |= 0x00000001; - entityId = value; + stageId = value; return this; } @Override - public ChessRogueRollDiceCsReq copyFrom(final ChessRogueRollDiceCsReq other) { + public StartTrialActivityCsReq copyFrom(final StartTrialActivityCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - entityId = other.entityId; + stageId = other.stageId; } return this; } @Override - public ChessRogueRollDiceCsReq mergeFrom(final ChessRogueRollDiceCsReq other) { + public StartTrialActivityCsReq mergeFrom(final StartTrialActivityCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasEntityId()) { - setEntityId(other.entityId); + if (other.hasStageId()) { + setStageId(other.stageId); } return this; } @Override - public ChessRogueRollDiceCsReq clear() { + public StartTrialActivityCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - entityId = 0; + stageId = 0; return this; } @Override - public ChessRogueRollDiceCsReq clearQuick() { + public StartTrialActivityCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class ChessRogueRollDiceCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueRollDiceCsReq)) { + if (!(o instanceof StartTrialActivityCsReq)) { return false; } - ChessRogueRollDiceCsReq other = (ChessRogueRollDiceCsReq) o; + StartTrialActivityCsReq other = (StartTrialActivityCsReq) o; return bitField0_ == other.bitField0_ - && (!hasEntityId() || entityId == other.entityId); + && (!hasStageId() || stageId == other.stageId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { output.writeRawByte((byte) 32); - output.writeUInt32NoTag(entityId); + output.writeUInt32NoTag(stageId); } } @@ -138,21 +138,21 @@ public final class ChessRogueRollDiceCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(entityId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueRollDiceCsReq mergeFrom(final ProtoSource input) throws IOException { + public StartTrialActivityCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { case 32: { - // entityId - entityId = input.readUInt32(); + // stageId + stageId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class ChessRogueRollDiceCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.entityId, entityId); + output.writeUInt32(FieldNames.stageId, stageId); } output.endObject(); } @Override - public ChessRogueRollDiceCsReq mergeFrom(final JsonSource input) throws IOException { + public StartTrialActivityCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -2102099874: - case -740565257: { - if (input.isAtField(FieldNames.entityId)) { + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { if (!input.trySkipNullValue()) { - entityId = input.readUInt32(); + stageId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class ChessRogueRollDiceCsReqOuterClass { } @Override - public ChessRogueRollDiceCsReq clone() { - return new ChessRogueRollDiceCsReq().copyFrom(this); + public StartTrialActivityCsReq clone() { + return new StartTrialActivityCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class ChessRogueRollDiceCsReqOuterClass { return ((bitField0_) == 0); } - public static ChessRogueRollDiceCsReq parseFrom(final byte[] data) throws + public static StartTrialActivityCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueRollDiceCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new StartTrialActivityCsReq(), data).checkInitialized(); } - public static ChessRogueRollDiceCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueRollDiceCsReq(), input).checkInitialized(); + public static StartTrialActivityCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartTrialActivityCsReq(), input).checkInitialized(); } - public static ChessRogueRollDiceCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueRollDiceCsReq(), input).checkInitialized(); + public static StartTrialActivityCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartTrialActivityCsReq(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueRollDiceCsReq messages + * @return factory for creating StartTrialActivityCsReq messages */ - public static MessageFactory getFactory() { - return ChessRogueRollDiceCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return StartTrialActivityCsReqFactory.INSTANCE; } - private enum ChessRogueRollDiceCsReqFactory implements MessageFactory { + private enum StartTrialActivityCsReqFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueRollDiceCsReq create() { - return ChessRogueRollDiceCsReq.newInstance(); + public StartTrialActivityCsReq create() { + return StartTrialActivityCsReq.newInstance(); } } @@ -254,7 +254,7 @@ public final class ChessRogueRollDiceCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName entityId = FieldName.forField("entityId", "entity_id"); + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/StartTrialActivityScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/StartTrialActivityScRspOuterClass.java new file mode 100644 index 0000000..dee1b96 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/StartTrialActivityScRspOuterClass.java @@ -0,0 +1,340 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class StartTrialActivityScRspOuterClass { + /** + * Protobuf type {@code StartTrialActivityScRsp} + */ + public static final class StartTrialActivityScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 11; + */ + private int retcode; + + /** + * optional uint32 stage_id = 12; + */ + private int stageId; + + private StartTrialActivityScRsp() { + } + + /** + * @return a new empty instance of {@code StartTrialActivityScRsp} + */ + public static StartTrialActivityScRsp newInstance() { + return new StartTrialActivityScRsp(); + } + + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public StartTrialActivityScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public StartTrialActivityScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 stage_id = 12; + * @return whether the stageId field is set + */ + public boolean hasStageId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 stage_id = 12; + * @return this + */ + public StartTrialActivityScRsp clearStageId() { + bitField0_ &= ~0x00000002; + stageId = 0; + return this; + } + + /** + * optional uint32 stage_id = 12; + * @return the stageId + */ + public int getStageId() { + return stageId; + } + + /** + * optional uint32 stage_id = 12; + * @param value the stageId to set + * @return this + */ + public StartTrialActivityScRsp setStageId(final int value) { + bitField0_ |= 0x00000002; + stageId = value; + return this; + } + + @Override + public StartTrialActivityScRsp copyFrom(final StartTrialActivityScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + stageId = other.stageId; + } + return this; + } + + @Override + public StartTrialActivityScRsp mergeFrom(final StartTrialActivityScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasStageId()) { + setStageId(other.stageId); + } + return this; + } + + @Override + public StartTrialActivityScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + stageId = 0; + return this; + } + + @Override + public StartTrialActivityScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof StartTrialActivityScRsp)) { + return false; + } + StartTrialActivityScRsp other = (StartTrialActivityScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasStageId() || stageId == other.stageId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(stageId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(stageId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public StartTrialActivityScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 88: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // stageId + stageId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.stageId, stageId); + } + output.endObject(); + } + + @Override + public StartTrialActivityScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1897528135: + case 1306191356: { + if (input.isAtField(FieldNames.stageId)) { + if (!input.trySkipNullValue()) { + stageId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public StartTrialActivityScRsp clone() { + return new StartTrialActivityScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static StartTrialActivityScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new StartTrialActivityScRsp(), data).checkInitialized(); + } + + public static StartTrialActivityScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartTrialActivityScRsp(), input).checkInitialized(); + } + + public static StartTrialActivityScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new StartTrialActivityScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating StartTrialActivityScRsp messages + */ + public static MessageFactory getFactory() { + return StartTrialActivityScRspFactory.INSTANCE; + } + + private enum StartTrialActivityScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public StartTrialActivityScRsp create() { + return StartTrialActivityScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName stageId = FieldName.forField("stageId", "stage_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SummonPetCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SummonPetCsReqOuterClass.java index 536cd0e..a8ee319 100644 --- a/src/generated/main/emu/lunarcore/proto/SummonPetCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SummonPetCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SummonPetCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 summoned_pet_id = 10; + * optional uint32 summoned_pet_id = 11; */ private int summonedPetId; @@ -34,7 +34,7 @@ public final class SummonPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 10; + * optional uint32 summoned_pet_id = 11; * @return whether the summonedPetId field is set */ public boolean hasSummonedPetId() { @@ -42,7 +42,7 @@ public final class SummonPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 10; + * optional uint32 summoned_pet_id = 11; * @return this */ public SummonPetCsReq clearSummonedPetId() { @@ -52,7 +52,7 @@ public final class SummonPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 10; + * optional uint32 summoned_pet_id = 11; * @return the summonedPetId */ public int getSummonedPetId() { @@ -60,7 +60,7 @@ public final class SummonPetCsReqOuterClass { } /** - * optional uint32 summoned_pet_id = 10; + * optional uint32 summoned_pet_id = 11; * @param value the summonedPetId to set * @return this */ @@ -129,7 +129,7 @@ public final class SummonPetCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(summonedPetId); } } @@ -150,7 +150,7 @@ public final class SummonPetCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 88: { // summonedPetId summonedPetId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SummonPetScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SummonPetScRspOuterClass.java index c3b5b18..090fb7f 100644 --- a/src/generated/main/emu/lunarcore/proto/SummonPetScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SummonPetScRspOuterClass.java @@ -19,20 +19,20 @@ public final class SummonPetScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 cur_pet_id = 2; + * optional uint32 new_pet_id = 13; */ - private int curPetId; + private int newPetId; /** - * optional uint32 BMCOIJCMNNC = 6; - */ - private int bMCOIJCMNNC; - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; */ private int retcode; + /** + * optional uint32 cur_pet_id = 15; + */ + private int curPetId; + private SummonPetScRsp() { } @@ -44,99 +44,62 @@ public final class SummonPetScRspOuterClass { } /** - * optional uint32 cur_pet_id = 2; - * @return whether the curPetId field is set + * optional uint32 new_pet_id = 13; + * @return whether the newPetId field is set */ - public boolean hasCurPetId() { + public boolean hasNewPetId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cur_pet_id = 2; + * optional uint32 new_pet_id = 13; * @return this */ - public SummonPetScRsp clearCurPetId() { + public SummonPetScRsp clearNewPetId() { bitField0_ &= ~0x00000001; - curPetId = 0; + newPetId = 0; return this; } /** - * optional uint32 cur_pet_id = 2; - * @return the curPetId + * optional uint32 new_pet_id = 13; + * @return the newPetId */ - public int getCurPetId() { - return curPetId; + public int getNewPetId() { + return newPetId; } /** - * optional uint32 cur_pet_id = 2; - * @param value the curPetId to set + * optional uint32 new_pet_id = 13; + * @param value the newPetId to set * @return this */ - public SummonPetScRsp setCurPetId(final int value) { + public SummonPetScRsp setNewPetId(final int value) { bitField0_ |= 0x00000001; - curPetId = value; + newPetId = value; return this; } /** - * optional uint32 BMCOIJCMNNC = 6; - * @return whether the bMCOIJCMNNC field is set + * optional uint32 retcode = 14; + * @return whether the retcode field is set */ - public boolean hasBMCOIJCMNNC() { + public boolean hasRetcode() { return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 BMCOIJCMNNC = 6; - * @return this - */ - public SummonPetScRsp clearBMCOIJCMNNC() { - bitField0_ &= ~0x00000002; - bMCOIJCMNNC = 0; - return this; - } - - /** - * optional uint32 BMCOIJCMNNC = 6; - * @return the bMCOIJCMNNC - */ - public int getBMCOIJCMNNC() { - return bMCOIJCMNNC; - } - - /** - * optional uint32 BMCOIJCMNNC = 6; - * @param value the bMCOIJCMNNC to set - * @return this - */ - public SummonPetScRsp setBMCOIJCMNNC(final int value) { - bitField0_ |= 0x00000002; - bMCOIJCMNNC = value; - return this; - } - - /** - * optional uint32 retcode = 11; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @return this */ public SummonPetScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @return the retcode */ public int getRetcode() { @@ -144,24 +107,61 @@ public final class SummonPetScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 14; * @param value the retcode to set * @return this */ public SummonPetScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; retcode = value; return this; } + /** + * optional uint32 cur_pet_id = 15; + * @return whether the curPetId field is set + */ + public boolean hasCurPetId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 cur_pet_id = 15; + * @return this + */ + public SummonPetScRsp clearCurPetId() { + bitField0_ &= ~0x00000004; + curPetId = 0; + return this; + } + + /** + * optional uint32 cur_pet_id = 15; + * @return the curPetId + */ + public int getCurPetId() { + return curPetId; + } + + /** + * optional uint32 cur_pet_id = 15; + * @param value the curPetId to set + * @return this + */ + public SummonPetScRsp setCurPetId(final int value) { + bitField0_ |= 0x00000004; + curPetId = value; + return this; + } + @Override public SummonPetScRsp copyFrom(final SummonPetScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - curPetId = other.curPetId; - bMCOIJCMNNC = other.bMCOIJCMNNC; + newPetId = other.newPetId; retcode = other.retcode; + curPetId = other.curPetId; } return this; } @@ -172,15 +172,15 @@ public final class SummonPetScRspOuterClass { return this; } cachedSize = -1; - if (other.hasCurPetId()) { - setCurPetId(other.curPetId); - } - if (other.hasBMCOIJCMNNC()) { - setBMCOIJCMNNC(other.bMCOIJCMNNC); + if (other.hasNewPetId()) { + setNewPetId(other.newPetId); } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasCurPetId()) { + setCurPetId(other.curPetId); + } return this; } @@ -191,9 +191,9 @@ public final class SummonPetScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - curPetId = 0; - bMCOIJCMNNC = 0; + newPetId = 0; retcode = 0; + curPetId = 0; return this; } @@ -217,24 +217,24 @@ public final class SummonPetScRspOuterClass { } SummonPetScRsp other = (SummonPetScRsp) o; return bitField0_ == other.bitField0_ - && (!hasCurPetId() || curPetId == other.curPetId) - && (!hasBMCOIJCMNNC() || bMCOIJCMNNC == other.bMCOIJCMNNC) - && (!hasRetcode() || retcode == other.retcode); + && (!hasNewPetId() || newPetId == other.newPetId) + && (!hasRetcode() || retcode == other.retcode) + && (!hasCurPetId() || curPetId == other.curPetId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(curPetId); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(newPetId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(bMCOIJCMNNC); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(curPetId); } } @@ -242,13 +242,13 @@ public final class SummonPetScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(curPetId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(newPetId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bMCOIJCMNNC); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(curPetId); } return size; } @@ -260,27 +260,27 @@ public final class SummonPetScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // curPetId - curPetId = input.readUInt32(); + case 104: { + // newPetId + newPetId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 112) { break; } } - case 48: { - // bMCOIJCMNNC - bMCOIJCMNNC = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 112: { // retcode retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // curPetId + curPetId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public final class SummonPetScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.curPetId, curPetId); + output.writeUInt32(FieldNames.newPetId, newPetId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.bMCOIJCMNNC, bMCOIJCMNNC); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.curPetId, curPetId); } output.endObject(); } @@ -323,11 +323,11 @@ public final class SummonPetScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 544007226: - case -465065190: { - if (input.isAtField(FieldNames.curPetId)) { + case 1363040474: + case 646870970: { + if (input.isAtField(FieldNames.newPetId)) { if (!input.trySkipNullValue()) { - curPetId = input.readUInt32(); + newPetId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,21 +335,22 @@ public final class SummonPetScRspOuterClass { } break; } - case 1362418561: { - if (input.isAtField(FieldNames.bMCOIJCMNNC)) { - if (!input.trySkipNullValue()) { - bMCOIJCMNNC = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } case 1097936398: { if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { retcode = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 544007226: + case -465065190: { + if (input.isAtField(FieldNames.curPetId)) { + if (!input.trySkipNullValue()) { + curPetId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -410,11 +411,11 @@ public final class SummonPetScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName curPetId = FieldName.forField("curPetId", "cur_pet_id"); - - static final FieldName bMCOIJCMNNC = FieldName.forField("BMCOIJCMNNC"); + static final FieldName newPetId = FieldName.forField("newPetId", "new_pet_id"); static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName curPetId = FieldName.forField("curPetId", "cur_pet_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java index a708666..5483623 100644 --- a/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwapLineupCsReqOuterClass.java @@ -19,32 +19,32 @@ public final class SwapLineupCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 src_slot = 3; - */ - private int srcSlot; - - /** - * optional uint32 dst_slot = 4; + * optional uint32 dst_slot = 2; */ private int dstSlot; /** - * optional uint32 plane_id = 6; - */ - private int planeId; - - /** - * optional uint32 index = 7; + * optional uint32 index = 10; */ private int index; /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional uint32 plane_id = 11; + */ + private int planeId; + + /** + * optional uint32 src_slot = 15; + */ + private int srcSlot; + + /** + * optional .ExtraLineupType extra_lineup_type = 13; */ private int extraLineupType; /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 1; */ private boolean isVirtual; @@ -59,62 +59,25 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 src_slot = 3; - * @return whether the srcSlot field is set + * optional uint32 dst_slot = 2; + * @return whether the dstSlot field is set */ - public boolean hasSrcSlot() { + public boolean hasDstSlot() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 src_slot = 3; - * @return this - */ - public SwapLineupCsReq clearSrcSlot() { - bitField0_ &= ~0x00000001; - srcSlot = 0; - return this; - } - - /** - * optional uint32 src_slot = 3; - * @return the srcSlot - */ - public int getSrcSlot() { - return srcSlot; - } - - /** - * optional uint32 src_slot = 3; - * @param value the srcSlot to set - * @return this - */ - public SwapLineupCsReq setSrcSlot(final int value) { - bitField0_ |= 0x00000001; - srcSlot = value; - return this; - } - - /** - * optional uint32 dst_slot = 4; - * @return whether the dstSlot field is set - */ - public boolean hasDstSlot() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 dst_slot = 4; + * optional uint32 dst_slot = 2; * @return this */ public SwapLineupCsReq clearDstSlot() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; dstSlot = 0; return this; } /** - * optional uint32 dst_slot = 4; + * optional uint32 dst_slot = 2; * @return the dstSlot */ public int getDstSlot() { @@ -122,18 +85,55 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 dst_slot = 4; + * optional uint32 dst_slot = 2; * @param value the dstSlot to set * @return this */ public SwapLineupCsReq setDstSlot(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; dstSlot = value; return this; } /** - * optional uint32 plane_id = 6; + * optional uint32 index = 10; + * @return whether the index field is set + */ + public boolean hasIndex() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 index = 10; + * @return this + */ + public SwapLineupCsReq clearIndex() { + bitField0_ &= ~0x00000002; + index = 0; + return this; + } + + /** + * optional uint32 index = 10; + * @return the index + */ + public int getIndex() { + return index; + } + + /** + * optional uint32 index = 10; + * @param value the index to set + * @return this + */ + public SwapLineupCsReq setIndex(final int value) { + bitField0_ |= 0x00000002; + index = value; + return this; + } + + /** + * optional uint32 plane_id = 11; * @return whether the planeId field is set */ public boolean hasPlaneId() { @@ -141,7 +141,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 6; + * optional uint32 plane_id = 11; * @return this */ public SwapLineupCsReq clearPlaneId() { @@ -151,7 +151,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 6; + * optional uint32 plane_id = 11; * @return the planeId */ public int getPlaneId() { @@ -159,7 +159,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 plane_id = 6; + * optional uint32 plane_id = 11; * @param value the planeId to set * @return this */ @@ -170,44 +170,44 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional uint32 index = 7; - * @return whether the index field is set + * optional uint32 src_slot = 15; + * @return whether the srcSlot field is set */ - public boolean hasIndex() { + public boolean hasSrcSlot() { return (bitField0_ & 0x00000008) != 0; } /** - * optional uint32 index = 7; + * optional uint32 src_slot = 15; * @return this */ - public SwapLineupCsReq clearIndex() { + public SwapLineupCsReq clearSrcSlot() { bitField0_ &= ~0x00000008; - index = 0; + srcSlot = 0; return this; } /** - * optional uint32 index = 7; - * @return the index + * optional uint32 src_slot = 15; + * @return the srcSlot */ - public int getIndex() { - return index; + public int getSrcSlot() { + return srcSlot; } /** - * optional uint32 index = 7; - * @param value the index to set + * optional uint32 src_slot = 15; + * @param value the srcSlot to set * @return this */ - public SwapLineupCsReq setIndex(final int value) { + public SwapLineupCsReq setSrcSlot(final int value) { bitField0_ |= 0x00000008; - index = value; + srcSlot = value; return this; } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 13; * @return whether the extraLineupType field is set */ public boolean hasExtraLineupType() { @@ -215,7 +215,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 13; * @return this */ public SwapLineupCsReq clearExtraLineupType() { @@ -225,7 +225,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 13; * @return the extraLineupType */ public ExtraLineupTypeOuterClass.ExtraLineupType getExtraLineupType() { @@ -258,7 +258,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional .ExtraLineupType extra_lineup_type = 11; + * optional .ExtraLineupType extra_lineup_type = 13; * @param value the extraLineupType to set * @return this */ @@ -270,7 +270,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 1; * @return whether the isVirtual field is set */ public boolean hasIsVirtual() { @@ -278,7 +278,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 1; * @return this */ public SwapLineupCsReq clearIsVirtual() { @@ -288,7 +288,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 1; * @return the isVirtual */ public boolean getIsVirtual() { @@ -296,7 +296,7 @@ public final class SwapLineupCsReqOuterClass { } /** - * optional bool is_virtual = 5; + * optional bool is_virtual = 1; * @param value the isVirtual to set * @return this */ @@ -311,10 +311,10 @@ public final class SwapLineupCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - srcSlot = other.srcSlot; dstSlot = other.dstSlot; - planeId = other.planeId; index = other.index; + planeId = other.planeId; + srcSlot = other.srcSlot; extraLineupType = other.extraLineupType; isVirtual = other.isVirtual; } @@ -327,17 +327,17 @@ public final class SwapLineupCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasSrcSlot()) { - setSrcSlot(other.srcSlot); - } if (other.hasDstSlot()) { setDstSlot(other.dstSlot); } + if (other.hasIndex()) { + setIndex(other.index); + } if (other.hasPlaneId()) { setPlaneId(other.planeId); } - if (other.hasIndex()) { - setIndex(other.index); + if (other.hasSrcSlot()) { + setSrcSlot(other.srcSlot); } if (other.hasExtraLineupType()) { setExtraLineupTypeValue(other.extraLineupType); @@ -355,10 +355,10 @@ public final class SwapLineupCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - srcSlot = 0; dstSlot = 0; - planeId = 0; index = 0; + planeId = 0; + srcSlot = 0; extraLineupType = 0; isVirtual = false; return this; @@ -384,10 +384,10 @@ public final class SwapLineupCsReqOuterClass { } SwapLineupCsReq other = (SwapLineupCsReq) o; return bitField0_ == other.bitField0_ - && (!hasSrcSlot() || srcSlot == other.srcSlot) && (!hasDstSlot() || dstSlot == other.dstSlot) - && (!hasPlaneId() || planeId == other.planeId) && (!hasIndex() || index == other.index) + && (!hasPlaneId() || planeId == other.planeId) + && (!hasSrcSlot() || srcSlot == other.srcSlot) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasIsVirtual() || isVirtual == other.isVirtual); } @@ -395,27 +395,27 @@ public final class SwapLineupCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(srcSlot); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(dstSlot); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(index); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 88); output.writeUInt32NoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 56); - output.writeUInt32NoTag(index); + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(srcSlot); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 104); output.writeEnumNoTag(extraLineupType); } if ((bitField0_ & 0x00000020) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 8); output.writeBoolNoTag(isVirtual); } } @@ -424,16 +424,16 @@ public final class SwapLineupCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(srcSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(dstSlot); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(dstSlot); + size += 1 + ProtoSink.computeUInt32SizeNoTag(index); } if ((bitField0_ & 0x00000004) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(planeId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(index); + size += 1 + ProtoSink.computeUInt32SizeNoTag(srcSlot); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(extraLineupType); @@ -451,43 +451,43 @@ public final class SwapLineupCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // srcSlot - srcSlot = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 32) { - break; - } - } - case 32: { + case 16: { // dstSlot dstSlot = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 48) { + if (tag != 80) { break; } } - case 48: { - // planeId - planeId = input.readUInt32(); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 56) { - break; - } - } - case 56: { + case 80: { // index index = input.readUInt32(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 88) { break; } } case 88: { + // planeId + planeId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // srcSlot + srcSlot = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { // extraLineupType final int value = input.readInt32(); if (ExtraLineupTypeOuterClass.ExtraLineupType.forNumber(value) != null) { @@ -495,11 +495,11 @@ public final class SwapLineupCsReqOuterClass { bitField0_ |= 0x00000010; } tag = input.readTag(); - if (tag != 40) { + if (tag != 8) { break; } } - case 40: { + case 8: { // isVirtual isVirtual = input.readBool(); bitField0_ |= 0x00000020; @@ -526,16 +526,16 @@ public final class SwapLineupCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.srcSlot, srcSlot); + output.writeUInt32(FieldNames.dstSlot, dstSlot); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.dstSlot, dstSlot); + output.writeUInt32(FieldNames.index, index); } if ((bitField0_ & 0x00000004) != 0) { output.writeUInt32(FieldNames.planeId, planeId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.index, index); + output.writeUInt32(FieldNames.srcSlot, srcSlot); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.extraLineupType, extraLineupType, ExtraLineupTypeOuterClass.ExtraLineupType.converter()); @@ -553,11 +553,11 @@ public final class SwapLineupCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1953527294: - case -418516103: { - if (input.isAtField(FieldNames.srcSlot)) { + case 1958115683: + case 583331896: { + if (input.isAtField(FieldNames.dstSlot)) { if (!input.trySkipNullValue()) { - srcSlot = input.readUInt32(); + dstSlot = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -565,11 +565,10 @@ public final class SwapLineupCsReqOuterClass { } break; } - case 1958115683: - case 583331896: { - if (input.isAtField(FieldNames.dstSlot)) { + case 100346066: { + if (input.isAtField(FieldNames.index)) { if (!input.trySkipNullValue()) { - dstSlot = input.readUInt32(); + index = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -589,10 +588,11 @@ public final class SwapLineupCsReqOuterClass { } break; } - case 100346066: { - if (input.isAtField(FieldNames.index)) { + case -1953527294: + case -418516103: { + if (input.isAtField(FieldNames.srcSlot)) { if (!input.trySkipNullValue()) { - index = input.readUInt32(); + srcSlot = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -682,13 +682,13 @@ public final class SwapLineupCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName srcSlot = FieldName.forField("srcSlot", "src_slot"); - static final FieldName dstSlot = FieldName.forField("dstSlot", "dst_slot"); + static final FieldName index = FieldName.forField("index"); + static final FieldName planeId = FieldName.forField("planeId", "plane_id"); - static final FieldName index = FieldName.forField("index"); + static final FieldName srcSlot = FieldName.forField("srcSlot", "src_slot"); static final FieldName extraLineupType = FieldName.forField("extraLineupType", "extra_lineup_type"); diff --git a/src/generated/main/emu/lunarcore/proto/SwitchHandDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchHandDataOuterClass.java new file mode 100644 index 0000000..7a91aee --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwitchHandDataOuterClass.java @@ -0,0 +1,644 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedByte; + +public final class SwitchHandDataOuterClass { + /** + * Protobuf type {@code SwitchHandData} + */ + public static final class SwitchHandData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 MPOHFMFDLAB = 4; + */ + private int mPOHFMFDLAB; + + /** + * optional uint32 promotion = 11; + */ + private int promotion; + + /** + * optional uint32 JEAHPAAOAOM = 12; + */ + private int jEAHPAAOAOM; + + /** + * optional .MotionInfo JNAMJNFMNAM = 2; + */ + private final MotionInfoOuterClass.MotionInfo jNAMJNFMNAM = MotionInfoOuterClass.MotionInfo.newInstance(); + + /** + * optional bytes JOEKOGCLFAA = 14; + */ + private final RepeatedByte jOEKOGCLFAA = RepeatedByte.newEmptyInstance(); + + private SwitchHandData() { + } + + /** + * @return a new empty instance of {@code SwitchHandData} + */ + public static SwitchHandData newInstance() { + return new SwitchHandData(); + } + + /** + * optional uint32 MPOHFMFDLAB = 4; + * @return whether the mPOHFMFDLAB field is set + */ + public boolean hasMPOHFMFDLAB() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 MPOHFMFDLAB = 4; + * @return this + */ + public SwitchHandData clearMPOHFMFDLAB() { + bitField0_ &= ~0x00000001; + mPOHFMFDLAB = 0; + return this; + } + + /** + * optional uint32 MPOHFMFDLAB = 4; + * @return the mPOHFMFDLAB + */ + public int getMPOHFMFDLAB() { + return mPOHFMFDLAB; + } + + /** + * optional uint32 MPOHFMFDLAB = 4; + * @param value the mPOHFMFDLAB to set + * @return this + */ + public SwitchHandData setMPOHFMFDLAB(final int value) { + bitField0_ |= 0x00000001; + mPOHFMFDLAB = value; + return this; + } + + /** + * optional uint32 promotion = 11; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 promotion = 11; + * @return this + */ + public SwitchHandData clearPromotion() { + bitField0_ &= ~0x00000002; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 11; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 11; + * @param value the promotion to set + * @return this + */ + public SwitchHandData setPromotion(final int value) { + bitField0_ |= 0x00000002; + promotion = value; + return this; + } + + /** + * optional uint32 JEAHPAAOAOM = 12; + * @return whether the jEAHPAAOAOM field is set + */ + public boolean hasJEAHPAAOAOM() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 JEAHPAAOAOM = 12; + * @return this + */ + public SwitchHandData clearJEAHPAAOAOM() { + bitField0_ &= ~0x00000004; + jEAHPAAOAOM = 0; + return this; + } + + /** + * optional uint32 JEAHPAAOAOM = 12; + * @return the jEAHPAAOAOM + */ + public int getJEAHPAAOAOM() { + return jEAHPAAOAOM; + } + + /** + * optional uint32 JEAHPAAOAOM = 12; + * @param value the jEAHPAAOAOM to set + * @return this + */ + public SwitchHandData setJEAHPAAOAOM(final int value) { + bitField0_ |= 0x00000004; + jEAHPAAOAOM = value; + return this; + } + + /** + * optional .MotionInfo JNAMJNFMNAM = 2; + * @return whether the jNAMJNFMNAM field is set + */ + public boolean hasJNAMJNFMNAM() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional .MotionInfo JNAMJNFMNAM = 2; + * @return this + */ + public SwitchHandData clearJNAMJNFMNAM() { + bitField0_ &= ~0x00000008; + jNAMJNFMNAM.clear(); + return this; + } + + /** + * optional .MotionInfo JNAMJNFMNAM = 2; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableJNAMJNFMNAM()} if you want to modify it. + * + * @return internal storage object for reading + */ + public MotionInfoOuterClass.MotionInfo getJNAMJNFMNAM() { + return jNAMJNFMNAM; + } + + /** + * optional .MotionInfo JNAMJNFMNAM = 2; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public MotionInfoOuterClass.MotionInfo getMutableJNAMJNFMNAM() { + bitField0_ |= 0x00000008; + return jNAMJNFMNAM; + } + + /** + * optional .MotionInfo JNAMJNFMNAM = 2; + * @param value the jNAMJNFMNAM to set + * @return this + */ + public SwitchHandData setJNAMJNFMNAM(final MotionInfoOuterClass.MotionInfo value) { + bitField0_ |= 0x00000008; + jNAMJNFMNAM.copyFrom(value); + return this; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * @return whether the jOEKOGCLFAA field is set + */ + public boolean hasJOEKOGCLFAA() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * @return this + */ + public SwitchHandData clearJOEKOGCLFAA() { + bitField0_ &= ~0x00000010; + jOEKOGCLFAA.clear(); + return this; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableJOEKOGCLFAA()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedByte getJOEKOGCLFAA() { + return jOEKOGCLFAA; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedByte getMutableJOEKOGCLFAA() { + bitField0_ |= 0x00000010; + return jOEKOGCLFAA; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * @param value the jOEKOGCLFAA to add + * @return this + */ + public SwitchHandData addJOEKOGCLFAA(final byte value) { + bitField0_ |= 0x00000010; + jOEKOGCLFAA.add(value); + return this; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * @param values the jOEKOGCLFAA to add + * @return this + */ + public SwitchHandData addAllJOEKOGCLFAA(final byte... values) { + bitField0_ |= 0x00000010; + jOEKOGCLFAA.addAll(values); + return this; + } + + /** + * optional bytes JOEKOGCLFAA = 14; + * @param values the jOEKOGCLFAA to set + * @return this + */ + public SwitchHandData setJOEKOGCLFAA(final byte... values) { + bitField0_ |= 0x00000010; + jOEKOGCLFAA.copyFrom(values); + return this; + } + + @Override + public SwitchHandData copyFrom(final SwitchHandData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + mPOHFMFDLAB = other.mPOHFMFDLAB; + promotion = other.promotion; + jEAHPAAOAOM = other.jEAHPAAOAOM; + jNAMJNFMNAM.copyFrom(other.jNAMJNFMNAM); + jOEKOGCLFAA.copyFrom(other.jOEKOGCLFAA); + } + return this; + } + + @Override + public SwitchHandData mergeFrom(final SwitchHandData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMPOHFMFDLAB()) { + setMPOHFMFDLAB(other.mPOHFMFDLAB); + } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } + if (other.hasJEAHPAAOAOM()) { + setJEAHPAAOAOM(other.jEAHPAAOAOM); + } + if (other.hasJNAMJNFMNAM()) { + getMutableJNAMJNFMNAM().mergeFrom(other.jNAMJNFMNAM); + } + if (other.hasJOEKOGCLFAA()) { + getMutableJOEKOGCLFAA().copyFrom(other.jOEKOGCLFAA); + } + return this; + } + + @Override + public SwitchHandData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + mPOHFMFDLAB = 0; + promotion = 0; + jEAHPAAOAOM = 0; + jNAMJNFMNAM.clear(); + jOEKOGCLFAA.clear(); + return this; + } + + @Override + public SwitchHandData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + jNAMJNFMNAM.clearQuick(); + jOEKOGCLFAA.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SwitchHandData)) { + return false; + } + SwitchHandData other = (SwitchHandData) o; + return bitField0_ == other.bitField0_ + && (!hasMPOHFMFDLAB() || mPOHFMFDLAB == other.mPOHFMFDLAB) + && (!hasPromotion() || promotion == other.promotion) + && (!hasJEAHPAAOAOM() || jEAHPAAOAOM == other.jEAHPAAOAOM) + && (!hasJNAMJNFMNAM() || jNAMJNFMNAM.equals(other.jNAMJNFMNAM)) + && (!hasJOEKOGCLFAA() || jOEKOGCLFAA.equals(other.jOEKOGCLFAA)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(mPOHFMFDLAB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(promotion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(jEAHPAAOAOM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 18); + output.writeMessageNoTag(jNAMJNFMNAM); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 114); + output.writeBytesNoTag(jOEKOGCLFAA); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(mPOHFMFDLAB); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(jEAHPAAOAOM); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(jNAMJNFMNAM); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeBytesSizeNoTag(jOEKOGCLFAA); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SwitchHandData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 32: { + // mPOHFMFDLAB + mPOHFMFDLAB = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // promotion + promotion = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 96) { + break; + } + } + case 96: { + // jEAHPAAOAOM + jEAHPAAOAOM = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 18) { + break; + } + } + case 18: { + // jNAMJNFMNAM + input.readMessage(jNAMJNFMNAM); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // jOEKOGCLFAA + input.readBytes(jOEKOGCLFAA); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.mPOHFMFDLAB, mPOHFMFDLAB); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.promotion, promotion); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.jEAHPAAOAOM, jEAHPAAOAOM); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeMessage(FieldNames.jNAMJNFMNAM, jNAMJNFMNAM); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeBytes(FieldNames.jOEKOGCLFAA, jOEKOGCLFAA); + } + output.endObject(); + } + + @Override + public SwitchHandData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 377738572: { + if (input.isAtField(FieldNames.mPOHFMFDLAB)) { + if (!input.trySkipNullValue()) { + mPOHFMFDLAB = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { + if (!input.trySkipNullValue()) { + promotion = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1187882306: { + if (input.isAtField(FieldNames.jEAHPAAOAOM)) { + if (!input.trySkipNullValue()) { + jEAHPAAOAOM = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 809274783: { + if (input.isAtField(FieldNames.jNAMJNFMNAM)) { + if (!input.trySkipNullValue()) { + input.readMessage(jNAMJNFMNAM); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1573403654: { + if (input.isAtField(FieldNames.jOEKOGCLFAA)) { + if (!input.trySkipNullValue()) { + input.readBytes(jOEKOGCLFAA); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SwitchHandData clone() { + return new SwitchHandData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SwitchHandData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SwitchHandData(), data).checkInitialized(); + } + + public static SwitchHandData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandData(), input).checkInitialized(); + } + + public static SwitchHandData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandData(), input).checkInitialized(); + } + + /** + * @return factory for creating SwitchHandData messages + */ + public static MessageFactory getFactory() { + return SwitchHandDataFactory.INSTANCE; + } + + private enum SwitchHandDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SwitchHandData create() { + return SwitchHandData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName mPOHFMFDLAB = FieldName.forField("MPOHFMFDLAB"); + + static final FieldName promotion = FieldName.forField("promotion"); + + static final FieldName jEAHPAAOAOM = FieldName.forField("JEAHPAAOAOM"); + + static final FieldName jNAMJNFMNAM = FieldName.forField("JNAMJNFMNAM"); + + static final FieldName jOEKOGCLFAA = FieldName.forField("JOEKOGCLFAA"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchHandFinishScRspOuterClass.java similarity index 57% rename from src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SwitchHandFinishScRspOuterClass.java index cb0bb17..bca1be8 100644 --- a/src/generated/main/emu/lunarcore/proto/EnableRogueTalentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchHandFinishScRspOuterClass.java @@ -11,35 +11,35 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class EnableRogueTalentScRspOuterClass { +public final class SwitchHandFinishScRspOuterClass { /** - * Protobuf type {@code EnableRogueTalentScRsp} + * Protobuf type {@code SwitchHandFinishScRsp} */ - public static final class EnableRogueTalentScRsp extends ProtoMessage implements Cloneable { + public static final class SwitchHandFinishScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 10; */ private int retcode; /** - * optional .RogueTalentInfo talent_info = 6; + * optional .SwitchHandData cur_hand_data = 9; */ - private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance(); + private final SwitchHandDataOuterClass.SwitchHandData curHandData = SwitchHandDataOuterClass.SwitchHandData.newInstance(); - private EnableRogueTalentScRsp() { + private SwitchHandFinishScRsp() { } /** - * @return a new empty instance of {@code EnableRogueTalentScRsp} + * @return a new empty instance of {@code SwitchHandFinishScRsp} */ - public static EnableRogueTalentScRsp newInstance() { - return new EnableRogueTalentScRsp(); + public static SwitchHandFinishScRsp newInstance() { + return new SwitchHandFinishScRsp(); } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 10; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,17 +47,17 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 10; * @return this */ - public EnableRogueTalentScRsp clearRetcode() { + public SwitchHandFinishScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 10; * @return the retcode */ public int getRetcode() { @@ -65,50 +65,50 @@ public final class EnableRogueTalentScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 10; * @param value the retcode to set * @return this */ - public EnableRogueTalentScRsp setRetcode(final int value) { + public SwitchHandFinishScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueTalentInfo talent_info = 6; - * @return whether the talentInfo field is set + * optional .SwitchHandData cur_hand_data = 9; + * @return whether the curHandData field is set */ - public boolean hasTalentInfo() { + public boolean hasCurHandData() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .SwitchHandData cur_hand_data = 9; * @return this */ - public EnableRogueTalentScRsp clearTalentInfo() { + public SwitchHandFinishScRsp clearCurHandData() { bitField0_ &= ~0x00000002; - talentInfo.clear(); + curHandData.clear(); return this; } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .SwitchHandData cur_hand_data = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableTalentInfo()} if you want to modify it. + * Use {@link #getMutableCurHandData()} if you want to modify it. * * @return internal storage object for reading */ - public RogueTalentInfoOuterClass.RogueTalentInfo getTalentInfo() { - return talentInfo; + public SwitchHandDataOuterClass.SwitchHandData getCurHandData() { + return curHandData; } /** - * optional .RogueTalentInfo talent_info = 6; + * optional .SwitchHandData cur_hand_data = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,36 +116,36 @@ public final class EnableRogueTalentScRspOuterClass { * * @return internal storage object for modifications */ - public RogueTalentInfoOuterClass.RogueTalentInfo getMutableTalentInfo() { + public SwitchHandDataOuterClass.SwitchHandData getMutableCurHandData() { bitField0_ |= 0x00000002; - return talentInfo; + return curHandData; } /** - * optional .RogueTalentInfo talent_info = 6; - * @param value the talentInfo to set + * optional .SwitchHandData cur_hand_data = 9; + * @param value the curHandData to set * @return this */ - public EnableRogueTalentScRsp setTalentInfo( - final RogueTalentInfoOuterClass.RogueTalentInfo value) { + public SwitchHandFinishScRsp setCurHandData( + final SwitchHandDataOuterClass.SwitchHandData value) { bitField0_ |= 0x00000002; - talentInfo.copyFrom(value); + curHandData.copyFrom(value); return this; } @Override - public EnableRogueTalentScRsp copyFrom(final EnableRogueTalentScRsp other) { + public SwitchHandFinishScRsp copyFrom(final SwitchHandFinishScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - talentInfo.copyFrom(other.talentInfo); + curHandData.copyFrom(other.curHandData); } return this; } @Override - public EnableRogueTalentScRsp mergeFrom(final EnableRogueTalentScRsp other) { + public SwitchHandFinishScRsp mergeFrom(final SwitchHandFinishScRsp other) { if (other.isEmpty()) { return this; } @@ -153,32 +153,32 @@ public final class EnableRogueTalentScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasTalentInfo()) { - getMutableTalentInfo().mergeFrom(other.talentInfo); + if (other.hasCurHandData()) { + getMutableCurHandData().mergeFrom(other.curHandData); } return this; } @Override - public EnableRogueTalentScRsp clear() { + public SwitchHandFinishScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - talentInfo.clear(); + curHandData.clear(); return this; } @Override - public EnableRogueTalentScRsp clearQuick() { + public SwitchHandFinishScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - talentInfo.clearQuick(); + curHandData.clearQuick(); return this; } @@ -187,24 +187,24 @@ public final class EnableRogueTalentScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof EnableRogueTalentScRsp)) { + if (!(o instanceof SwitchHandFinishScRsp)) { return false; } - EnableRogueTalentScRsp other = (EnableRogueTalentScRsp) o; + SwitchHandFinishScRsp other = (SwitchHandFinishScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasTalentInfo() || talentInfo.equals(other.talentInfo)); + && (!hasCurHandData() || curHandData.equals(other.curHandData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 50); - output.writeMessageNoTag(talentInfo); + output.writeRawByte((byte) 74); + output.writeMessageNoTag(curHandData); } } @@ -215,30 +215,30 @@ public final class EnableRogueTalentScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(talentInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(curHandData); } return size; } @Override @SuppressWarnings("fallthrough") - public EnableRogueTalentScRsp mergeFrom(final ProtoSource input) throws IOException { + public SwitchHandFinishScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 80: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 50) { + if (tag != 74) { break; } } - case 50: { - // talentInfo - input.readMessage(talentInfo); + case 74: { + // curHandData + input.readMessage(curHandData); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -266,13 +266,13 @@ public final class EnableRogueTalentScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.talentInfo, talentInfo); + output.writeMessage(FieldNames.curHandData, curHandData); } output.endObject(); } @Override - public EnableRogueTalentScRsp mergeFrom(final JsonSource input) throws IOException { + public SwitchHandFinishScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -289,11 +289,11 @@ public final class EnableRogueTalentScRspOuterClass { } break; } - case 1396978618: - case 376840225: { - if (input.isAtField(FieldNames.talentInfo)) { + case 1147337497: + case -1190165957: { + if (input.isAtField(FieldNames.curHandData)) { if (!input.trySkipNullValue()) { - input.readMessage(talentInfo); + input.readMessage(curHandData); bitField0_ |= 0x00000002; } } else { @@ -312,8 +312,8 @@ public final class EnableRogueTalentScRspOuterClass { } @Override - public EnableRogueTalentScRsp clone() { - return new EnableRogueTalentScRsp().copyFrom(this); + public SwitchHandFinishScRsp clone() { + return new SwitchHandFinishScRsp().copyFrom(this); } @Override @@ -321,32 +321,32 @@ public final class EnableRogueTalentScRspOuterClass { return ((bitField0_) == 0); } - public static EnableRogueTalentScRsp parseFrom(final byte[] data) throws + public static SwitchHandFinishScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new EnableRogueTalentScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SwitchHandFinishScRsp(), data).checkInitialized(); } - public static EnableRogueTalentScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnableRogueTalentScRsp(), input).checkInitialized(); + public static SwitchHandFinishScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandFinishScRsp(), input).checkInitialized(); } - public static EnableRogueTalentScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new EnableRogueTalentScRsp(), input).checkInitialized(); + public static SwitchHandFinishScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandFinishScRsp(), input).checkInitialized(); } /** - * @return factory for creating EnableRogueTalentScRsp messages + * @return factory for creating SwitchHandFinishScRsp messages */ - public static MessageFactory getFactory() { - return EnableRogueTalentScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return SwitchHandFinishScRspFactory.INSTANCE; } - private enum EnableRogueTalentScRspFactory implements MessageFactory { + private enum SwitchHandFinishScRspFactory implements MessageFactory { INSTANCE; @Override - public EnableRogueTalentScRsp create() { - return EnableRogueTalentScRsp.newInstance(); + public SwitchHandFinishScRsp create() { + return SwitchHandFinishScRsp.newInstance(); } } @@ -356,7 +356,7 @@ public final class EnableRogueTalentScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName talentInfo = FieldName.forField("talentInfo", "talent_info"); + static final FieldName curHandData = FieldName.forField("curHandData", "cur_hand_data"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SwitchHandOpDataOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchHandOpDataOuterClass.java new file mode 100644 index 0000000..18da282 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwitchHandOpDataOuterClass.java @@ -0,0 +1,423 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SwitchHandOpDataOuterClass { + /** + *
+   *  CNIADJCLKKF
+   * 
+ * + * Protobuf type {@code SwitchHandOpData} + */ + public static final class SwitchHandOpData extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 5; + */ + private int groupId; + + /** + *
+     *  ECFFNHDIMPP
+     * 
+ * + * optional .SwitchHandOpPropType op_type = 6; + */ + private int opType; + + private SwitchHandOpData() { + } + + /** + *
+     *  CNIADJCLKKF
+     * 
+ * + * @return a new empty instance of {@code SwitchHandOpData} + */ + public static SwitchHandOpData newInstance() { + return new SwitchHandOpData(); + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 5; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 5; + * @return this + */ + public SwitchHandOpData clearGroupId() { + bitField0_ &= ~0x00000001; + groupId = 0; + return this; + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 5; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + *
+     *  HEDLHGFPCGG
+     * 
+ * + * optional uint32 group_id = 5; + * @param value the groupId to set + * @return this + */ + public SwitchHandOpData setGroupId(final int value) { + bitField0_ |= 0x00000001; + groupId = value; + return this; + } + + /** + *
+     *  ECFFNHDIMPP
+     * 
+ * + * optional .SwitchHandOpPropType op_type = 6; + * @return whether the opType field is set + */ + public boolean hasOpType() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  ECFFNHDIMPP
+     * 
+ * + * optional .SwitchHandOpPropType op_type = 6; + * @return this + */ + public SwitchHandOpData clearOpType() { + bitField0_ &= ~0x00000002; + opType = 0; + return this; + } + + /** + *
+     *  ECFFNHDIMPP
+     * 
+ * + * optional .SwitchHandOpPropType op_type = 6; + * @return the opType + */ + public SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType getOpType() { + return SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType.forNumber(opType); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link SwitchHandOpData#getOpType()}.getNumber(). + * + * @return numeric wire representation + */ + public int getOpTypeValue() { + return opType; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType}. Setting an invalid value + * can cause {@link SwitchHandOpData#getOpType()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public SwitchHandOpData setOpTypeValue(final int value) { + bitField0_ |= 0x00000002; + opType = value; + return this; + } + + /** + *
+     *  ECFFNHDIMPP
+     * 
+ * + * optional .SwitchHandOpPropType op_type = 6; + * @param value the opType to set + * @return this + */ + public SwitchHandOpData setOpType( + final SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType value) { + bitField0_ |= 0x00000002; + opType = value.getNumber(); + return this; + } + + @Override + public SwitchHandOpData copyFrom(final SwitchHandOpData other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + groupId = other.groupId; + opType = other.opType; + } + return this; + } + + @Override + public SwitchHandOpData mergeFrom(final SwitchHandOpData other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasOpType()) { + setOpTypeValue(other.opType); + } + return this; + } + + @Override + public SwitchHandOpData clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupId = 0; + opType = 0; + return this; + } + + @Override + public SwitchHandOpData clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SwitchHandOpData)) { + return false; + } + SwitchHandOpData other = (SwitchHandOpData) o; + return bitField0_ == other.bitField0_ + && (!hasGroupId() || groupId == other.groupId) + && (!hasOpType() || opType == other.opType); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 48); + output.writeEnumNoTag(opType); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(opType); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SwitchHandOpData mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 40: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // opType + final int value = input.readInt32(); + if (SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType.forNumber(value) != null) { + opType = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.opType, opType, SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType.converter()); + } + output.endObject(); + } + + @Override + public SwitchHandOpData mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1011074885: + case -1268531496: { + if (input.isAtField(FieldNames.opType)) { + if (!input.trySkipNullValue()) { + final SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType value = input.readEnum(SwitchHandOpPropTypeOuterClass.SwitchHandOpPropType.converter()); + if (value != null) { + opType = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SwitchHandOpData clone() { + return new SwitchHandOpData().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SwitchHandOpData parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SwitchHandOpData(), data).checkInitialized(); + } + + public static SwitchHandOpData parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandOpData(), input).checkInitialized(); + } + + public static SwitchHandOpData parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandOpData(), input).checkInitialized(); + } + + /** + * @return factory for creating SwitchHandOpData messages + */ + public static MessageFactory getFactory() { + return SwitchHandOpDataFactory.INSTANCE; + } + + private enum SwitchHandOpDataFactory implements MessageFactory { + INSTANCE; + + @Override + public SwitchHandOpData create() { + return SwitchHandOpData.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName opType = FieldName.forField("opType", "op_type"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SwitchHandOpPropTypeOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchHandOpPropTypeOuterClass.java new file mode 100644 index 0000000..11dfc5a --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwitchHandOpPropTypeOuterClass.java @@ -0,0 +1,130 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class SwitchHandOpPropTypeOuterClass { + /** + * Protobuf enum {@code SwitchHandOpPropType} + */ + public enum SwitchHandOpPropType implements ProtoEnum { + /** + * SWITCH_HAND_OP_PROP_TYPE_NONE = 0; + */ + SWITCH_HAND_OP_PROP_TYPE_NONE("SWITCH_HAND_OP_PROP_TYPE_NONE", 0), + + /** + * SWITCH_HAND_OP_PROP_TYPE_CATCH = 1; + */ + SWITCH_HAND_OP_PROP_TYPE_CATCH("SWITCH_HAND_OP_PROP_TYPE_CATCH", 1), + + /** + * SWITCH_HAND_OP_PROP_TYPE_LIFT = 2; + */ + SWITCH_HAND_OP_PROP_TYPE_LIFT("SWITCH_HAND_OP_PROP_TYPE_LIFT", 2); + + /** + * SWITCH_HAND_OP_PROP_TYPE_NONE = 0; + */ + public static final int SWITCH_HAND_OP_PROP_TYPE_NONE_VALUE = 0; + + /** + * SWITCH_HAND_OP_PROP_TYPE_CATCH = 1; + */ + public static final int SWITCH_HAND_OP_PROP_TYPE_CATCH_VALUE = 1; + + /** + * SWITCH_HAND_OP_PROP_TYPE_LIFT = 2; + */ + public static final int SWITCH_HAND_OP_PROP_TYPE_LIFT_VALUE = 2; + + private final String name; + + private final int number; + + private SwitchHandOpPropType(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return SwitchHandOpPropTypeConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static SwitchHandOpPropType forNumber(int value) { + return SwitchHandOpPropTypeConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static SwitchHandOpPropType forNumberOr(int number, SwitchHandOpPropType other) { + SwitchHandOpPropType value = forNumber(number); + return value == null ? other : value; + } + + enum SwitchHandOpPropTypeConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final SwitchHandOpPropType[] lookup = new SwitchHandOpPropType[3]; + + static { + lookup[0] = SWITCH_HAND_OP_PROP_TYPE_NONE; + lookup[1] = SWITCH_HAND_OP_PROP_TYPE_CATCH; + lookup[2] = SWITCH_HAND_OP_PROP_TYPE_LIFT; + } + + @Override + public final SwitchHandOpPropType forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final SwitchHandOpPropType forName(final CharSequence value) { + if (value.length() == 29) { + if (ProtoUtil.isEqual("SWITCH_HAND_OP_PROP_TYPE_NONE", value)) { + return SWITCH_HAND_OP_PROP_TYPE_NONE; + } + if (ProtoUtil.isEqual("SWITCH_HAND_OP_PROP_TYPE_LIFT", value)) { + return SWITCH_HAND_OP_PROP_TYPE_LIFT; + } + } + if (value.length() == 30) { + if (ProtoUtil.isEqual("SWITCH_HAND_OP_PROP_TYPE_CATCH", value)) { + return SWITCH_HAND_OP_PROP_TYPE_CATCH; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SwitchHandUpdateCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchHandUpdateCsReqOuterClass.java new file mode 100644 index 0000000..facac56 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/SwitchHandUpdateCsReqOuterClass.java @@ -0,0 +1,440 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class SwitchHandUpdateCsReqOuterClass { + /** + *
+   *  DDPACOEBGOC
+   * 
+ * + * Protobuf type {@code SwitchHandUpdateCsReq} + */ + public static final class SwitchHandUpdateCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  LJJNGIINDIB
+     * 
+ * + * optional .SwitchHandData hand_data = 10; + */ + private final SwitchHandDataOuterClass.SwitchHandData handData = SwitchHandDataOuterClass.SwitchHandData.newInstance(); + + /** + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 14; + */ + private final SwitchHandOpDataOuterClass.SwitchHandOpData opData = SwitchHandOpDataOuterClass.SwitchHandOpData.newInstance(); + + private SwitchHandUpdateCsReq() { + } + + /** + *
+     *  DDPACOEBGOC
+     * 
+ * + * @return a new empty instance of {@code SwitchHandUpdateCsReq} + */ + public static SwitchHandUpdateCsReq newInstance() { + return new SwitchHandUpdateCsReq(); + } + + /** + *
+     *  LJJNGIINDIB
+     * 
+ * + * optional .SwitchHandData hand_data = 10; + * @return whether the handData field is set + */ + public boolean hasHandData() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  LJJNGIINDIB
+     * 
+ * + * optional .SwitchHandData hand_data = 10; + * @return this + */ + public SwitchHandUpdateCsReq clearHandData() { + bitField0_ &= ~0x00000001; + handData.clear(); + return this; + } + + /** + *
+     *  LJJNGIINDIB
+     * 
+ * + * optional .SwitchHandData hand_data = 10; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableHandData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SwitchHandDataOuterClass.SwitchHandData getHandData() { + return handData; + } + + /** + *
+     *  LJJNGIINDIB
+     * 
+ * + * optional .SwitchHandData hand_data = 10; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SwitchHandDataOuterClass.SwitchHandData getMutableHandData() { + bitField0_ |= 0x00000001; + return handData; + } + + /** + *
+     *  LJJNGIINDIB
+     * 
+ * + * optional .SwitchHandData hand_data = 10; + * @param value the handData to set + * @return this + */ + public SwitchHandUpdateCsReq setHandData(final SwitchHandDataOuterClass.SwitchHandData value) { + bitField0_ |= 0x00000001; + handData.copyFrom(value); + return this; + } + + /** + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 14; + * @return whether the opData field is set + */ + public boolean hasOpData() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 14; + * @return this + */ + public SwitchHandUpdateCsReq clearOpData() { + bitField0_ &= ~0x00000002; + opData.clear(); + return this; + } + + /** + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 14; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableOpData()} if you want to modify it. + * + * @return internal storage object for reading + */ + public SwitchHandOpDataOuterClass.SwitchHandOpData getOpData() { + return opData; + } + + /** + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 14; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public SwitchHandOpDataOuterClass.SwitchHandOpData getMutableOpData() { + bitField0_ |= 0x00000002; + return opData; + } + + /** + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 14; + * @param value the opData to set + * @return this + */ + public SwitchHandUpdateCsReq setOpData( + final SwitchHandOpDataOuterClass.SwitchHandOpData value) { + bitField0_ |= 0x00000002; + opData.copyFrom(value); + return this; + } + + @Override + public SwitchHandUpdateCsReq copyFrom(final SwitchHandUpdateCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + handData.copyFrom(other.handData); + opData.copyFrom(other.opData); + } + return this; + } + + @Override + public SwitchHandUpdateCsReq mergeFrom(final SwitchHandUpdateCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasHandData()) { + getMutableHandData().mergeFrom(other.handData); + } + if (other.hasOpData()) { + getMutableOpData().mergeFrom(other.opData); + } + return this; + } + + @Override + public SwitchHandUpdateCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + handData.clear(); + opData.clear(); + return this; + } + + @Override + public SwitchHandUpdateCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + handData.clearQuick(); + opData.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof SwitchHandUpdateCsReq)) { + return false; + } + SwitchHandUpdateCsReq other = (SwitchHandUpdateCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasHandData() || handData.equals(other.handData)) + && (!hasOpData() || opData.equals(other.opData)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 82); + output.writeMessageNoTag(handData); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 114); + output.writeMessageNoTag(opData); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(handData); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(opData); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public SwitchHandUpdateCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 82: { + // handData + input.readMessage(handData); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 114) { + break; + } + } + case 114: { + // opData + input.readMessage(opData); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeMessage(FieldNames.handData, handData); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeMessage(FieldNames.opData, opData); + } + output.endObject(); + } + + @Override + public SwitchHandUpdateCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 873657: + case 52090234: { + if (input.isAtField(FieldNames.handData)) { + if (!input.trySkipNullValue()) { + input.readMessage(handData); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1011574485: + case -1269031096: { + if (input.isAtField(FieldNames.opData)) { + if (!input.trySkipNullValue()) { + input.readMessage(opData); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public SwitchHandUpdateCsReq clone() { + return new SwitchHandUpdateCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static SwitchHandUpdateCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new SwitchHandUpdateCsReq(), data).checkInitialized(); + } + + public static SwitchHandUpdateCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandUpdateCsReq(), input).checkInitialized(); + } + + public static SwitchHandUpdateCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandUpdateCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating SwitchHandUpdateCsReq messages + */ + public static MessageFactory getFactory() { + return SwitchHandUpdateCsReqFactory.INSTANCE; + } + + private enum SwitchHandUpdateCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public SwitchHandUpdateCsReq create() { + return SwitchHandUpdateCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName handData = FieldName.forField("handData", "hand_data"); + + static final FieldName opData = FieldName.forField("opData", "op_data"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueMiracleScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchHandUpdateScRspOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/SelectRogueMiracleScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/SwitchHandUpdateScRspOuterClass.java index 688d0a2..17498ea 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueMiracleScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchHandUpdateScRspOuterClass.java @@ -11,40 +11,56 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class SelectRogueMiracleScRspOuterClass { +public final class SwitchHandUpdateScRspOuterClass { /** - * Protobuf type {@code SelectRogueMiracleScRsp} + *
+   *  NKIGJEKFDFA
+   * 
+ * + * Protobuf type {@code SwitchHandUpdateScRsp} */ - public static final class SelectRogueMiracleScRsp extends ProtoMessage implements Cloneable { + public static final class SwitchHandUpdateScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .RogueMiracleSelectInfo miracle_select_info = 8; + *
+     *  GNHGNIGGOBF
+     * 
+ * + * optional .SwitchHandData cur_hand_data = 10; */ - private final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo miracleSelectInfo = RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo.newInstance(); + private final SwitchHandDataOuterClass.SwitchHandData curHandData = SwitchHandDataOuterClass.SwitchHandData.newInstance(); /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 11; + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 11; */ - private final RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo rogueMiracleInfo = RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo.newInstance(); + private final SwitchHandOpDataOuterClass.SwitchHandOpData opData = SwitchHandOpDataOuterClass.SwitchHandOpData.newInstance(); - private SelectRogueMiracleScRsp() { + private SwitchHandUpdateScRsp() { } /** - * @return a new empty instance of {@code SelectRogueMiracleScRsp} + *
+     *  NKIGJEKFDFA
+     * 
+ * + * @return a new empty instance of {@code SwitchHandUpdateScRsp} */ - public static SelectRogueMiracleScRsp newInstance() { - return new SelectRogueMiracleScRsp(); + public static SwitchHandUpdateScRsp newInstance() { + return new SwitchHandUpdateScRsp(); } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -52,17 +68,17 @@ public final class SelectRogueMiracleScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @return this */ - public SelectRogueMiracleScRsp clearRetcode() { + public SwitchHandUpdateScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -70,50 +86,66 @@ public final class SelectRogueMiracleScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ - public SelectRogueMiracleScRsp setRetcode(final int value) { + public SwitchHandUpdateScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueMiracleSelectInfo miracle_select_info = 8; - * @return whether the miracleSelectInfo field is set + *
+     *  GNHGNIGGOBF
+     * 
+ * + * optional .SwitchHandData cur_hand_data = 10; + * @return whether the curHandData field is set */ - public boolean hasMiracleSelectInfo() { + public boolean hasCurHandData() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueMiracleSelectInfo miracle_select_info = 8; + *
+     *  GNHGNIGGOBF
+     * 
+ * + * optional .SwitchHandData cur_hand_data = 10; * @return this */ - public SelectRogueMiracleScRsp clearMiracleSelectInfo() { + public SwitchHandUpdateScRsp clearCurHandData() { bitField0_ &= ~0x00000002; - miracleSelectInfo.clear(); + curHandData.clear(); return this; } /** - * optional .RogueMiracleSelectInfo miracle_select_info = 8; + *
+     *  GNHGNIGGOBF
+     * 
+ * + * optional .SwitchHandData cur_hand_data = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableMiracleSelectInfo()} if you want to modify it. + * Use {@link #getMutableCurHandData()} if you want to modify it. * * @return internal storage object for reading */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMiracleSelectInfo() { - return miracleSelectInfo; + public SwitchHandDataOuterClass.SwitchHandData getCurHandData() { + return curHandData; } /** - * optional .RogueMiracleSelectInfo miracle_select_info = 8; + *
+     *  GNHGNIGGOBF
+     * 
+ * + * optional .SwitchHandData cur_hand_data = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -121,57 +153,77 @@ public final class SelectRogueMiracleScRspOuterClass { * * @return internal storage object for modifications */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMutableMiracleSelectInfo() { + public SwitchHandDataOuterClass.SwitchHandData getMutableCurHandData() { bitField0_ |= 0x00000002; - return miracleSelectInfo; + return curHandData; } /** - * optional .RogueMiracleSelectInfo miracle_select_info = 8; - * @param value the miracleSelectInfo to set + *
+     *  GNHGNIGGOBF
+     * 
+ * + * optional .SwitchHandData cur_hand_data = 10; + * @param value the curHandData to set * @return this */ - public SelectRogueMiracleScRsp setMiracleSelectInfo( - final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo value) { + public SwitchHandUpdateScRsp setCurHandData( + final SwitchHandDataOuterClass.SwitchHandData value) { bitField0_ |= 0x00000002; - miracleSelectInfo.copyFrom(value); + curHandData.copyFrom(value); return this; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 11; - * @return whether the rogueMiracleInfo field is set + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 11; + * @return whether the opData field is set */ - public boolean hasRogueMiracleInfo() { + public boolean hasOpData() { return (bitField0_ & 0x00000004) != 0; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 11; + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 11; * @return this */ - public SelectRogueMiracleScRsp clearRogueMiracleInfo() { + public SwitchHandUpdateScRsp clearOpData() { bitField0_ &= ~0x00000004; - rogueMiracleInfo.clear(); + opData.clear(); return this; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 11; + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 11; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRogueMiracleInfo()} if you want to modify it. + * Use {@link #getMutableOpData()} if you want to modify it. * * @return internal storage object for reading */ - public RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo getRogueMiracleInfo() { - return rogueMiracleInfo; + public SwitchHandOpDataOuterClass.SwitchHandOpData getOpData() { + return opData; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 11; + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 11; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -179,37 +231,41 @@ public final class SelectRogueMiracleScRspOuterClass { * * @return internal storage object for modifications */ - public RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo getMutableRogueMiracleInfo() { + public SwitchHandOpDataOuterClass.SwitchHandOpData getMutableOpData() { bitField0_ |= 0x00000004; - return rogueMiracleInfo; + return opData; } /** - * optional .RogueAchivedMiracleInfo rogue_miracle_info = 11; - * @param value the rogueMiracleInfo to set + *
+     *  ALOHEJACLLN
+     * 
+ * + * optional .SwitchHandOpData op_data = 11; + * @param value the opData to set * @return this */ - public SelectRogueMiracleScRsp setRogueMiracleInfo( - final RogueAchivedMiracleInfoOuterClass.RogueAchivedMiracleInfo value) { + public SwitchHandUpdateScRsp setOpData( + final SwitchHandOpDataOuterClass.SwitchHandOpData value) { bitField0_ |= 0x00000004; - rogueMiracleInfo.copyFrom(value); + opData.copyFrom(value); return this; } @Override - public SelectRogueMiracleScRsp copyFrom(final SelectRogueMiracleScRsp other) { + public SwitchHandUpdateScRsp copyFrom(final SwitchHandUpdateScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - miracleSelectInfo.copyFrom(other.miracleSelectInfo); - rogueMiracleInfo.copyFrom(other.rogueMiracleInfo); + curHandData.copyFrom(other.curHandData); + opData.copyFrom(other.opData); } return this; } @Override - public SelectRogueMiracleScRsp mergeFrom(final SelectRogueMiracleScRsp other) { + public SwitchHandUpdateScRsp mergeFrom(final SwitchHandUpdateScRsp other) { if (other.isEmpty()) { return this; } @@ -217,37 +273,37 @@ public final class SelectRogueMiracleScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasMiracleSelectInfo()) { - getMutableMiracleSelectInfo().mergeFrom(other.miracleSelectInfo); + if (other.hasCurHandData()) { + getMutableCurHandData().mergeFrom(other.curHandData); } - if (other.hasRogueMiracleInfo()) { - getMutableRogueMiracleInfo().mergeFrom(other.rogueMiracleInfo); + if (other.hasOpData()) { + getMutableOpData().mergeFrom(other.opData); } return this; } @Override - public SelectRogueMiracleScRsp clear() { + public SwitchHandUpdateScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - miracleSelectInfo.clear(); - rogueMiracleInfo.clear(); + curHandData.clear(); + opData.clear(); return this; } @Override - public SelectRogueMiracleScRsp clearQuick() { + public SwitchHandUpdateScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - miracleSelectInfo.clearQuick(); - rogueMiracleInfo.clearQuick(); + curHandData.clearQuick(); + opData.clearQuick(); return this; } @@ -256,29 +312,29 @@ public final class SelectRogueMiracleScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof SelectRogueMiracleScRsp)) { + if (!(o instanceof SwitchHandUpdateScRsp)) { return false; } - SelectRogueMiracleScRsp other = (SelectRogueMiracleScRsp) o; + SwitchHandUpdateScRsp other = (SwitchHandUpdateScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasMiracleSelectInfo() || miracleSelectInfo.equals(other.miracleSelectInfo)) - && (!hasRogueMiracleInfo() || rogueMiracleInfo.equals(other.rogueMiracleInfo)); + && (!hasCurHandData() || curHandData.equals(other.curHandData)) + && (!hasOpData() || opData.equals(other.opData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(miracleSelectInfo); + output.writeRawByte((byte) 82); + output.writeMessageNoTag(curHandData); } if ((bitField0_ & 0x00000004) != 0) { output.writeRawByte((byte) 90); - output.writeMessageNoTag(rogueMiracleInfo); + output.writeMessageNoTag(opData); } } @@ -289,33 +345,33 @@ public final class SelectRogueMiracleScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(miracleSelectInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(curHandData); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueMiracleInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(opData); } return size; } @Override @SuppressWarnings("fallthrough") - public SelectRogueMiracleScRsp mergeFrom(final ProtoSource input) throws IOException { + public SwitchHandUpdateScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 82) { break; } } - case 66: { - // miracleSelectInfo - input.readMessage(miracleSelectInfo); + case 82: { + // curHandData + input.readMessage(curHandData); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 90) { @@ -323,8 +379,8 @@ public final class SelectRogueMiracleScRspOuterClass { } } case 90: { - // rogueMiracleInfo - input.readMessage(rogueMiracleInfo); + // opData + input.readMessage(opData); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -352,16 +408,16 @@ public final class SelectRogueMiracleScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.miracleSelectInfo, miracleSelectInfo); + output.writeMessage(FieldNames.curHandData, curHandData); } if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.rogueMiracleInfo, rogueMiracleInfo); + output.writeMessage(FieldNames.opData, opData); } output.endObject(); } @Override - public SelectRogueMiracleScRsp mergeFrom(final JsonSource input) throws IOException { + public SwitchHandUpdateScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -378,11 +434,11 @@ public final class SelectRogueMiracleScRspOuterClass { } break; } - case -1009314021: - case -1608054973: { - if (input.isAtField(FieldNames.miracleSelectInfo)) { + case 1147337497: + case -1190165957: { + if (input.isAtField(FieldNames.curHandData)) { if (!input.trySkipNullValue()) { - input.readMessage(miracleSelectInfo); + input.readMessage(curHandData); bitField0_ |= 0x00000002; } } else { @@ -390,11 +446,11 @@ public final class SelectRogueMiracleScRspOuterClass { } break; } - case -452511099: - case 1925436929: { - if (input.isAtField(FieldNames.rogueMiracleInfo)) { + case -1011574485: + case -1269031096: { + if (input.isAtField(FieldNames.opData)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueMiracleInfo); + input.readMessage(opData); bitField0_ |= 0x00000004; } } else { @@ -413,8 +469,8 @@ public final class SelectRogueMiracleScRspOuterClass { } @Override - public SelectRogueMiracleScRsp clone() { - return new SelectRogueMiracleScRsp().copyFrom(this); + public SwitchHandUpdateScRsp clone() { + return new SwitchHandUpdateScRsp().copyFrom(this); } @Override @@ -422,32 +478,32 @@ public final class SelectRogueMiracleScRspOuterClass { return ((bitField0_) == 0); } - public static SelectRogueMiracleScRsp parseFrom(final byte[] data) throws + public static SwitchHandUpdateScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueMiracleScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new SwitchHandUpdateScRsp(), data).checkInitialized(); } - public static SelectRogueMiracleScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueMiracleScRsp(), input).checkInitialized(); + public static SwitchHandUpdateScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandUpdateScRsp(), input).checkInitialized(); } - public static SelectRogueMiracleScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueMiracleScRsp(), input).checkInitialized(); + public static SwitchHandUpdateScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new SwitchHandUpdateScRsp(), input).checkInitialized(); } /** - * @return factory for creating SelectRogueMiracleScRsp messages + * @return factory for creating SwitchHandUpdateScRsp messages */ - public static MessageFactory getFactory() { - return SelectRogueMiracleScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return SwitchHandUpdateScRspFactory.INSTANCE; } - private enum SelectRogueMiracleScRspFactory implements MessageFactory { + private enum SwitchHandUpdateScRspFactory implements MessageFactory { INSTANCE; @Override - public SelectRogueMiracleScRsp create() { - return SelectRogueMiracleScRsp.newInstance(); + public SwitchHandUpdateScRsp create() { + return SwitchHandUpdateScRsp.newInstance(); } } @@ -457,9 +513,9 @@ public final class SelectRogueMiracleScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName miracleSelectInfo = FieldName.forField("miracleSelectInfo", "miracle_select_info"); + static final FieldName curHandData = FieldName.forField("curHandData", "cur_hand_data"); - static final FieldName rogueMiracleInfo = FieldName.forField("rogueMiracleInfo", "rogue_miracle_info"); + static final FieldName opData = FieldName.forField("opData", "op_data"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java index 06c0f05..a03155f 100644 --- a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SwitchLineupIndexCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 index = 13; + * optional uint32 index = 6; */ private int index; @@ -34,7 +34,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @return whether the index field is set */ public boolean hasIndex() { @@ -42,7 +42,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @return this */ public SwitchLineupIndexCsReq clearIndex() { @@ -52,7 +52,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @return the index */ public int getIndex() { @@ -60,7 +60,7 @@ public final class SwitchLineupIndexCsReqOuterClass { } /** - * optional uint32 index = 13; + * optional uint32 index = 6; * @param value the index to set * @return this */ @@ -129,7 +129,7 @@ public final class SwitchLineupIndexCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(index); } } @@ -150,7 +150,7 @@ public final class SwitchLineupIndexCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 48: { // index index = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java index a2d22ba..cdb658f 100644 --- a/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SwitchLineupIndexScRspOuterClass.java @@ -24,7 +24,7 @@ public final class SwitchLineupIndexScRspOuterClass { private int retcode; /** - * optional uint32 index = 7; + * optional uint32 index = 10; */ private int index; @@ -76,7 +76,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 10; * @return whether the index field is set */ public boolean hasIndex() { @@ -84,7 +84,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 10; * @return this */ public SwitchLineupIndexScRsp clearIndex() { @@ -94,7 +94,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 10; * @return the index */ public int getIndex() { @@ -102,7 +102,7 @@ public final class SwitchLineupIndexScRspOuterClass { } /** - * optional uint32 index = 7; + * optional uint32 index = 10; * @param value the index to set * @return this */ @@ -181,7 +181,7 @@ public final class SwitchLineupIndexScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(index); } } @@ -210,11 +210,11 @@ public final class SwitchLineupIndexScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 56) { + if (tag != 80) { break; } } - case 56: { + case 80: { // index index = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java index bbbfeef..5b853f4 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncApplyFriendScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class SyncApplyFriendScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .FriendApplyInfo friend_apply_info = 6; + * optional .FriendApplyInfo friend_apply_info = 15; */ private final FriendApplyInfoOuterClass.FriendApplyInfo friendApplyInfo = FriendApplyInfoOuterClass.FriendApplyInfo.newInstance(); @@ -34,7 +34,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 6; + * optional .FriendApplyInfo friend_apply_info = 15; * @return whether the friendApplyInfo field is set */ public boolean hasFriendApplyInfo() { @@ -42,7 +42,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 6; + * optional .FriendApplyInfo friend_apply_info = 15; * @return this */ public SyncApplyFriendScNotify clearFriendApplyInfo() { @@ -52,7 +52,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 6; + * optional .FriendApplyInfo friend_apply_info = 15; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 6; + * optional .FriendApplyInfo friend_apply_info = 15; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class SyncApplyFriendScNotifyOuterClass { } /** - * optional .FriendApplyInfo friend_apply_info = 6; + * optional .FriendApplyInfo friend_apply_info = 15; * @param value the friendApplyInfo to set * @return this */ @@ -151,7 +151,7 @@ public final class SyncApplyFriendScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 50); + output.writeRawByte((byte) 122); output.writeMessageNoTag(friendApplyInfo); } } @@ -172,7 +172,7 @@ public final class SyncApplyFriendScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 50: { + case 122: { // friendApplyInfo input.readMessage(friendApplyInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncChessRogueNousValueScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncChessRogueNousValueScNotifyOuterClass.java deleted file mode 100644 index 5192d88..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncChessRogueNousValueScNotifyOuterClass.java +++ /dev/null @@ -1,283 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncChessRogueNousValueScNotifyOuterClass { - /** - * Protobuf type {@code SyncChessRogueNousValueScNotify} - */ - public static final class SyncChessRogueNousValueScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .ChessRogueNousValue value = 8; - */ - private final ChessRogueNousValueOuterClass.ChessRogueNousValue value_ = ChessRogueNousValueOuterClass.ChessRogueNousValue.newInstance(); - - private SyncChessRogueNousValueScNotify() { - } - - /** - * @return a new empty instance of {@code SyncChessRogueNousValueScNotify} - */ - public static SyncChessRogueNousValueScNotify newInstance() { - return new SyncChessRogueNousValueScNotify(); - } - - /** - * optional .ChessRogueNousValue value = 8; - * @return whether the value_ field is set - */ - public boolean hasValue() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .ChessRogueNousValue value = 8; - * @return this - */ - public SyncChessRogueNousValueScNotify clearValue() { - bitField0_ &= ~0x00000001; - value_.clear(); - return this; - } - - /** - * optional .ChessRogueNousValue value = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableValue()} if you want to modify it. - * - * @return internal storage object for reading - */ - public ChessRogueNousValueOuterClass.ChessRogueNousValue getValue() { - return value_; - } - - /** - * optional .ChessRogueNousValue value = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public ChessRogueNousValueOuterClass.ChessRogueNousValue getMutableValue() { - bitField0_ |= 0x00000001; - return value_; - } - - /** - * optional .ChessRogueNousValue value = 8; - * @param value the value_ to set - * @return this - */ - public SyncChessRogueNousValueScNotify setValue( - final ChessRogueNousValueOuterClass.ChessRogueNousValue value) { - bitField0_ |= 0x00000001; - value_.copyFrom(value); - return this; - } - - @Override - public SyncChessRogueNousValueScNotify copyFrom(final SyncChessRogueNousValueScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - value_.copyFrom(other.value_); - } - return this; - } - - @Override - public SyncChessRogueNousValueScNotify mergeFrom(final SyncChessRogueNousValueScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasValue()) { - getMutableValue().mergeFrom(other.value_); - } - return this; - } - - @Override - public SyncChessRogueNousValueScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - value_.clear(); - return this; - } - - @Override - public SyncChessRogueNousValueScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - value_.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncChessRogueNousValueScNotify)) { - return false; - } - SyncChessRogueNousValueScNotify other = (SyncChessRogueNousValueScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasValue() || value_.equals(other.value_)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(value_); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(value_); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncChessRogueNousValueScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 66: { - // value_ - input.readMessage(value_); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.value_, value_); - } - output.endObject(); - } - - @Override - public SyncChessRogueNousValueScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 111972721: { - if (input.isAtField(FieldNames.value_)) { - if (!input.trySkipNullValue()) { - input.readMessage(value_); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncChessRogueNousValueScNotify clone() { - return new SyncChessRogueNousValueScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncChessRogueNousValueScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncChessRogueNousValueScNotify(), data).checkInitialized(); - } - - public static SyncChessRogueNousValueScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncChessRogueNousValueScNotify(), input).checkInitialized(); - } - - public static SyncChessRogueNousValueScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncChessRogueNousValueScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncChessRogueNousValueScNotify messages - */ - public static MessageFactory getFactory() { - return SyncChessRogueNousValueScNotifyFactory.INSTANCE; - } - - private enum SyncChessRogueNousValueScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncChessRogueNousValueScNotify create() { - return SyncChessRogueNousValueScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName value_ = FieldName.forField("value"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java index 9c83d4b..a6998f3 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class SyncClientResVersionCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 client_res_version = 7; + * optional uint32 client_res_version = 8; */ private int clientResVersion; @@ -34,7 +34,7 @@ public final class SyncClientResVersionCsReqOuterClass { } /** - * optional uint32 client_res_version = 7; + * optional uint32 client_res_version = 8; * @return whether the clientResVersion field is set */ public boolean hasClientResVersion() { @@ -42,7 +42,7 @@ public final class SyncClientResVersionCsReqOuterClass { } /** - * optional uint32 client_res_version = 7; + * optional uint32 client_res_version = 8; * @return this */ public SyncClientResVersionCsReq clearClientResVersion() { @@ -52,7 +52,7 @@ public final class SyncClientResVersionCsReqOuterClass { } /** - * optional uint32 client_res_version = 7; + * optional uint32 client_res_version = 8; * @return the clientResVersion */ public int getClientResVersion() { @@ -60,7 +60,7 @@ public final class SyncClientResVersionCsReqOuterClass { } /** - * optional uint32 client_res_version = 7; + * optional uint32 client_res_version = 8; * @param value the clientResVersion to set * @return this */ @@ -129,7 +129,7 @@ public final class SyncClientResVersionCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 56); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(clientResVersion); } } @@ -150,7 +150,7 @@ public final class SyncClientResVersionCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 56: { + case 64: { // clientResVersion clientResVersion = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java index eb6771b..78c8f68 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncClientResVersionScRspOuterClass.java @@ -24,7 +24,7 @@ public final class SyncClientResVersionScRspOuterClass { private int clientResVersion; /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; */ private int retcode; @@ -76,7 +76,7 @@ public final class SyncClientResVersionScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -84,7 +84,7 @@ public final class SyncClientResVersionScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @return this */ public SyncClientResVersionScRsp clearRetcode() { @@ -94,7 +94,7 @@ public final class SyncClientResVersionScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @return the retcode */ public int getRetcode() { @@ -102,7 +102,7 @@ public final class SyncClientResVersionScRspOuterClass { } /** - * optional uint32 retcode = 12; + * optional uint32 retcode = 7; * @param value the retcode to set * @return this */ @@ -181,7 +181,7 @@ public final class SyncClientResVersionScRspOuterClass { output.writeUInt32NoTag(clientResVersion); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(retcode); } } @@ -210,11 +210,11 @@ public final class SyncClientResVersionScRspOuterClass { clientResVersion = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 96) { + if (tag != 56) { break; } } - case 96: { + case 56: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java index 31a1bc3..21741ab 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncDeleteFriendScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 1; + * optional uint32 uid = 14; */ private int uid; @@ -34,7 +34,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 14; * @return whether the uid field is set */ public boolean hasUid() { @@ -42,7 +42,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 14; * @return this */ public SyncDeleteFriendScNotify clearUid() { @@ -52,7 +52,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 14; * @return the uid */ public int getUid() { @@ -60,7 +60,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { } /** - * optional uint32 uid = 1; + * optional uint32 uid = 14; * @param value the uid to set * @return this */ @@ -129,7 +129,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(uid); } } @@ -150,7 +150,7 @@ public final class SyncDeleteFriendScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 112: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java index 0524274..d2fc0fa 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncEntityBuffChangeListScNotifyOuterClass.java @@ -20,7 +20,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; */ private final RepeatedMessage entityBuffInfoList = RepeatedMessage.newEmptyInstance(EntityBuffChangeInfoOuterClass.EntityBuffChangeInfo.getFactory()); @@ -35,7 +35,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; * @return whether the entityBuffInfoList field is set */ public boolean hasEntityBuffInfoList() { @@ -43,7 +43,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; * @return this */ public SyncEntityBuffChangeListScNotify clearEntityBuffInfoList() { @@ -53,7 +53,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -68,7 +68,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -83,7 +83,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; * @param value the entityBuffInfoList to add * @return this */ @@ -95,7 +95,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { } /** - * repeated .EntityBuffChangeInfo entity_buff_info_list = 12; + * repeated .EntityBuffChangeInfo entity_buff_info_list = 10; * @param values the entityBuffInfoList to add * @return this */ @@ -168,7 +168,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < entityBuffInfoList.length(); i++) { - output.writeRawByte((byte) 98); + output.writeRawByte((byte) 82); output.writeMessageNoTag(entityBuffInfoList.get(i)); } } @@ -190,7 +190,7 @@ public final class SyncEntityBuffChangeListScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 98: { + case 82: { // entityBuffInfoList tag = input.readRepeatedMessage(entityBuffInfoList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java index 6239152..0f9b99c 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncHandleFriendScNotifyOuterClass.java @@ -19,17 +19,17 @@ public final class SyncHandleFriendScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 uid = 5; + * optional uint32 uid = 8; */ private int uid; /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; */ private boolean handleResult; /** - * optional .FriendListInfo handle_friend_info = 8; + * optional .FriendListInfo handle_friend_info = 3; */ private final FriendListInfoOuterClass.FriendListInfo handleFriendInfo = FriendListInfoOuterClass.FriendListInfo.newInstance(); @@ -44,7 +44,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 8; * @return whether the uid field is set */ public boolean hasUid() { @@ -52,7 +52,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 8; * @return this */ public SyncHandleFriendScNotify clearUid() { @@ -62,7 +62,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 8; * @return the uid */ public int getUid() { @@ -70,7 +70,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional uint32 uid = 5; + * optional uint32 uid = 8; * @param value the uid to set * @return this */ @@ -81,7 +81,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @return whether the handleResult field is set */ public boolean hasHandleResult() { @@ -89,7 +89,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @return this */ public SyncHandleFriendScNotify clearHandleResult() { @@ -99,7 +99,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @return the handleResult */ public boolean getHandleResult() { @@ -107,7 +107,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional bool handle_result = 2; + * optional bool handle_result = 13; * @param value the handleResult to set * @return this */ @@ -118,7 +118,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 8; + * optional .FriendListInfo handle_friend_info = 3; * @return whether the handleFriendInfo field is set */ public boolean hasHandleFriendInfo() { @@ -126,7 +126,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 8; + * optional .FriendListInfo handle_friend_info = 3; * @return this */ public SyncHandleFriendScNotify clearHandleFriendInfo() { @@ -136,7 +136,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 8; + * optional .FriendListInfo handle_friend_info = 3; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -150,7 +150,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 8; + * optional .FriendListInfo handle_friend_info = 3; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -164,7 +164,7 @@ public final class SyncHandleFriendScNotifyOuterClass { } /** - * optional .FriendListInfo handle_friend_info = 8; + * optional .FriendListInfo handle_friend_info = 3; * @param value the handleFriendInfo to set * @return this */ @@ -247,15 +247,15 @@ public final class SyncHandleFriendScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(uid); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); + output.writeRawByte((byte) 104); output.writeBoolNoTag(handleResult); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 26); output.writeMessageNoTag(handleFriendInfo); } } @@ -282,25 +282,25 @@ public final class SyncHandleFriendScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 64: { // uid uid = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 104) { break; } } - case 16: { + case 104: { // handleResult handleResult = input.readBool(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 66) { + if (tag != 26) { break; } } - case 66: { + case 26: { // handleFriendInfo input.readMessage(handleFriendInfo); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java index 0be7d2e..4a33fff 100644 --- a/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/SyncLineupNotifyOuterClass.java @@ -20,12 +20,12 @@ public final class SyncLineupNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 2; */ private final LineupInfoOuterClass.LineupInfo lineup = LineupInfoOuterClass.LineupInfo.newInstance(); /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; */ private final RepeatedEnum reasonList = RepeatedEnum.newEmptyInstance(SyncLineupReasonOuterClass.SyncLineupReason.converter()); @@ -40,7 +40,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 2; * @return whether the lineup field is set */ public boolean hasLineup() { @@ -48,7 +48,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 2; * @return this */ public SyncLineupNotify clearLineup() { @@ -58,7 +58,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 2; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -72,7 +72,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 2; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -86,7 +86,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * optional .LineupInfo lineup = 14; + * optional .LineupInfo lineup = 2; * @param value the lineup to set * @return this */ @@ -97,7 +97,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; * @return whether the reasonList field is set */ public boolean hasReasonList() { @@ -105,7 +105,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; * @return this */ public SyncLineupNotify clearReasonList() { @@ -115,7 +115,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -129,7 +129,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -143,7 +143,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; * @param value the reasonList to add * @return this */ @@ -154,7 +154,7 @@ public final class SyncLineupNotifyOuterClass { } /** - * repeated .SyncLineupReason reason_list = 3; + * repeated .SyncLineupReason reason_list = 9; * @param values the reasonList to add * @return this */ @@ -232,12 +232,12 @@ public final class SyncLineupNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 18); output.writeMessageNoTag(lineup); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < reasonList.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 72); output.writeEnumNoTag(reasonList.array()[i]); } } @@ -262,16 +262,16 @@ public final class SyncLineupNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 114: { + case 18: { // lineup input.readMessage(lineup); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 26) { + if (tag != 74) { break; } } - case 26: { + case 74: { // reasonList [packed=true] input.readPackedEnum(reasonList, tag); bitField0_ |= 0x00000002; @@ -290,7 +290,7 @@ public final class SyncLineupNotifyOuterClass { tag = input.readTag(); break; } - case 24: { + case 72: { // reasonList [packed=false] tag = input.readRepeatedEnum(reasonList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java deleted file mode 100644 index f2a647f..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncReasonOuterClass.java +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import us.hebi.quickbuf.ProtoEnum; -import us.hebi.quickbuf.ProtoUtil; - -public final class SyncReasonOuterClass { - /** - * Protobuf enum {@code SyncReason} - */ - public enum SyncReason implements ProtoEnum { - /** - * SYNC_REASON_NONE = 0; - */ - SYNC_REASON_NONE("SYNC_REASON_NONE", 0), - - /** - * SYNC_REASON_MP_ADD = 1; - */ - SYNC_REASON_MP_ADD("SYNC_REASON_MP_ADD", 1), - - /** - * SYNC_REASON_MP_ADD_PROP_HIT = 2; - */ - SYNC_REASON_MP_ADD_PROP_HIT("SYNC_REASON_MP_ADD_PROP_HIT", 2), - - /** - * SYNC_REASON_HP_ADD = 3; - */ - SYNC_REASON_HP_ADD("SYNC_REASON_HP_ADD", 3), - - /** - * SYNC_REASON_HP_ADD_PROP_HIT = 4; - */ - SYNC_REASON_HP_ADD_PROP_HIT("SYNC_REASON_HP_ADD_PROP_HIT", 4); - - /** - * SYNC_REASON_NONE = 0; - */ - public static final int SYNC_REASON_NONE_VALUE = 0; - - /** - * SYNC_REASON_MP_ADD = 1; - */ - public static final int SYNC_REASON_MP_ADD_VALUE = 1; - - /** - * SYNC_REASON_MP_ADD_PROP_HIT = 2; - */ - public static final int SYNC_REASON_MP_ADD_PROP_HIT_VALUE = 2; - - /** - * SYNC_REASON_HP_ADD = 3; - */ - public static final int SYNC_REASON_HP_ADD_VALUE = 3; - - /** - * SYNC_REASON_HP_ADD_PROP_HIT = 4; - */ - public static final int SYNC_REASON_HP_ADD_PROP_HIT_VALUE = 4; - - private final String name; - - private final int number; - - private SyncReason(String name, int number) { - this.name = name; - this.number = number; - } - - /** - * @return the string representation of enum entry - */ - @Override - public String getName() { - return name; - } - - /** - * @return the numeric wire value of this enum entry - */ - @Override - public int getNumber() { - return number; - } - - /** - * @return a converter that maps between this enum's numeric and text representations - */ - public static EnumConverter converter() { - return SyncReasonConverter.INSTANCE; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value, or null if unknown. - */ - public static SyncReason forNumber(int value) { - return SyncReasonConverter.INSTANCE.forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @param other Fallback value in case the value is not known. - * @return The enum associated with the given numeric wire value, or the fallback value if unknown. - */ - public static SyncReason forNumberOr(int number, SyncReason other) { - SyncReason value = forNumber(number); - return value == null ? other : value; - } - - enum SyncReasonConverter implements EnumConverter { - INSTANCE; - - private static final SyncReason[] lookup = new SyncReason[5]; - - static { - lookup[0] = SYNC_REASON_NONE; - lookup[1] = SYNC_REASON_MP_ADD; - lookup[2] = SYNC_REASON_MP_ADD_PROP_HIT; - lookup[3] = SYNC_REASON_HP_ADD; - lookup[4] = SYNC_REASON_HP_ADD_PROP_HIT; - } - - @Override - public final SyncReason forNumber(final int value) { - if (value >= 0 && value < lookup.length) { - return lookup[value]; - } - return null; - } - - @Override - public final SyncReason forName(final CharSequence value) { - if (value.length() == 16) { - if (ProtoUtil.isEqual("SYNC_REASON_NONE", value)) { - return SYNC_REASON_NONE; - } - } - if (value.length() == 18) { - if (ProtoUtil.isEqual("SYNC_REASON_MP_ADD", value)) { - return SYNC_REASON_MP_ADD; - } - if (ProtoUtil.isEqual("SYNC_REASON_HP_ADD", value)) { - return SYNC_REASON_HP_ADD; - } - } - if (value.length() == 27) { - if (ProtoUtil.isEqual("SYNC_REASON_MP_ADD_PROP_HIT", value)) { - return SYNC_REASON_MP_ADD_PROP_HIT; - } - if (ProtoUtil.isEqual("SYNC_REASON_HP_ADD_PROP_HIT", value)) { - return SYNC_REASON_HP_ADD_PROP_HIT; - } - } - return null; - } - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueBuffSelectInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueBuffSelectInfoScNotifyOuterClass.java deleted file mode 100644 index 1664532..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueBuffSelectInfoScNotifyOuterClass.java +++ /dev/null @@ -1,284 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueBuffSelectInfoScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueBuffSelectInfoScNotify} - */ - public static final class SyncRogueBuffSelectInfoScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - */ - private final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo buffSelectInfo = RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo.newInstance(); - - private SyncRogueBuffSelectInfoScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueBuffSelectInfoScNotify} - */ - public static SyncRogueBuffSelectInfoScNotify newInstance() { - return new SyncRogueBuffSelectInfoScNotify(); - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * @return whether the buffSelectInfo field is set - */ - public boolean hasBuffSelectInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * @return this - */ - public SyncRogueBuffSelectInfoScNotify clearBuffSelectInfo() { - bitField0_ &= ~0x00000001; - buffSelectInfo.clear(); - return this; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableBuffSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getBuffSelectInfo() { - return buffSelectInfo; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo getMutableBuffSelectInfo() { - bitField0_ |= 0x00000001; - return buffSelectInfo; - } - - /** - * optional .RogueBuffSelectInfo buff_select_info = 5; - * @param value the buffSelectInfo to set - * @return this - */ - public SyncRogueBuffSelectInfoScNotify setBuffSelectInfo( - final RogueBuffSelectInfoOuterClass.RogueBuffSelectInfo value) { - bitField0_ |= 0x00000001; - buffSelectInfo.copyFrom(value); - return this; - } - - @Override - public SyncRogueBuffSelectInfoScNotify copyFrom(final SyncRogueBuffSelectInfoScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - buffSelectInfo.copyFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public SyncRogueBuffSelectInfoScNotify mergeFrom(final SyncRogueBuffSelectInfoScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasBuffSelectInfo()) { - getMutableBuffSelectInfo().mergeFrom(other.buffSelectInfo); - } - return this; - } - - @Override - public SyncRogueBuffSelectInfoScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectInfo.clear(); - return this; - } - - @Override - public SyncRogueBuffSelectInfoScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - buffSelectInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueBuffSelectInfoScNotify)) { - return false; - } - SyncRogueBuffSelectInfoScNotify other = (SyncRogueBuffSelectInfoScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasBuffSelectInfo() || buffSelectInfo.equals(other.buffSelectInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 42); - output.writeMessageNoTag(buffSelectInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(buffSelectInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueBuffSelectInfoScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 42: { - // buffSelectInfo - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.buffSelectInfo, buffSelectInfo); - } - output.endObject(); - } - - @Override - public SyncRogueBuffSelectInfoScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -255242115: - case 1500540965: { - if (input.isAtField(FieldNames.buffSelectInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(buffSelectInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueBuffSelectInfoScNotify clone() { - return new SyncRogueBuffSelectInfoScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueBuffSelectInfoScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueBuffSelectInfoScNotify(), data).checkInitialized(); - } - - public static SyncRogueBuffSelectInfoScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueBuffSelectInfoScNotify(), input).checkInitialized(); - } - - public static SyncRogueBuffSelectInfoScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueBuffSelectInfoScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueBuffSelectInfoScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueBuffSelectInfoScNotifyFactory.INSTANCE; - } - - private enum SyncRogueBuffSelectInfoScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueBuffSelectInfoScNotify create() { - return SyncRogueBuffSelectInfoScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName buffSelectInfo = FieldName.forField("buffSelectInfo", "buff_select_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java deleted file mode 100644 index 3c07354..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonActionResultScNotifyOuterClass.java +++ /dev/null @@ -1,500 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class SyncRogueCommonActionResultScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueCommonActionResultScNotify} - */ - public static final class SyncRogueCommonActionResultScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 rogue_version_id = 12; - */ - private int rogueVersionId; - - /** - * optional .RogueCommonActionResultDisplayType display_type = 8; - */ - private int displayType; - - /** - * repeated .RogueActionResult action_result_list = 14; - */ - private final RepeatedMessage actionResultList = RepeatedMessage.newEmptyInstance(RogueActionResultOuterClass.RogueActionResult.getFactory()); - - private SyncRogueCommonActionResultScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueCommonActionResultScNotify} - */ - public static SyncRogueCommonActionResultScNotify newInstance() { - return new SyncRogueCommonActionResultScNotify(); - } - - /** - * optional uint32 rogue_version_id = 12; - * @return whether the rogueVersionId field is set - */ - public boolean hasRogueVersionId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 rogue_version_id = 12; - * @return this - */ - public SyncRogueCommonActionResultScNotify clearRogueVersionId() { - bitField0_ &= ~0x00000001; - rogueVersionId = 0; - return this; - } - - /** - * optional uint32 rogue_version_id = 12; - * @return the rogueVersionId - */ - public int getRogueVersionId() { - return rogueVersionId; - } - - /** - * optional uint32 rogue_version_id = 12; - * @param value the rogueVersionId to set - * @return this - */ - public SyncRogueCommonActionResultScNotify setRogueVersionId(final int value) { - bitField0_ |= 0x00000001; - rogueVersionId = value; - return this; - } - - /** - * optional .RogueCommonActionResultDisplayType display_type = 8; - * @return whether the displayType field is set - */ - public boolean hasDisplayType() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueCommonActionResultDisplayType display_type = 8; - * @return this - */ - public SyncRogueCommonActionResultScNotify clearDisplayType() { - bitField0_ &= ~0x00000002; - displayType = 0; - return this; - } - - /** - * optional .RogueCommonActionResultDisplayType display_type = 8; - * @return the displayType - */ - public RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType getDisplayType( - ) { - return RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType.forNumber(displayType); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link SyncRogueCommonActionResultScNotify#getDisplayType()}.getNumber(). - * - * @return numeric wire representation - */ - public int getDisplayTypeValue() { - return displayType; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType}. Setting an invalid value - * can cause {@link SyncRogueCommonActionResultScNotify#getDisplayType()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public SyncRogueCommonActionResultScNotify setDisplayTypeValue(final int value) { - bitField0_ |= 0x00000002; - displayType = value; - return this; - } - - /** - * optional .RogueCommonActionResultDisplayType display_type = 8; - * @param value the displayType to set - * @return this - */ - public SyncRogueCommonActionResultScNotify setDisplayType( - final RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType value) { - bitField0_ |= 0x00000002; - displayType = value.getNumber(); - return this; - } - - /** - * repeated .RogueActionResult action_result_list = 14; - * @return whether the actionResultList field is set - */ - public boolean hasActionResultList() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * repeated .RogueActionResult action_result_list = 14; - * @return this - */ - public SyncRogueCommonActionResultScNotify clearActionResultList() { - bitField0_ &= ~0x00000004; - actionResultList.clear(); - return this; - } - - /** - * repeated .RogueActionResult action_result_list = 14; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableActionResultList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getActionResultList() { - return actionResultList; - } - - /** - * repeated .RogueActionResult action_result_list = 14; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableActionResultList( - ) { - bitField0_ |= 0x00000004; - return actionResultList; - } - - /** - * repeated .RogueActionResult action_result_list = 14; - * @param value the actionResultList to add - * @return this - */ - public SyncRogueCommonActionResultScNotify addActionResultList( - final RogueActionResultOuterClass.RogueActionResult value) { - bitField0_ |= 0x00000004; - actionResultList.add(value); - return this; - } - - /** - * repeated .RogueActionResult action_result_list = 14; - * @param values the actionResultList to add - * @return this - */ - public SyncRogueCommonActionResultScNotify addAllActionResultList( - final RogueActionResultOuterClass.RogueActionResult... values) { - bitField0_ |= 0x00000004; - actionResultList.addAll(values); - return this; - } - - @Override - public SyncRogueCommonActionResultScNotify copyFrom( - final SyncRogueCommonActionResultScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueVersionId = other.rogueVersionId; - displayType = other.displayType; - actionResultList.copyFrom(other.actionResultList); - } - return this; - } - - @Override - public SyncRogueCommonActionResultScNotify mergeFrom( - final SyncRogueCommonActionResultScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueVersionId()) { - setRogueVersionId(other.rogueVersionId); - } - if (other.hasDisplayType()) { - setDisplayTypeValue(other.displayType); - } - if (other.hasActionResultList()) { - getMutableActionResultList().addAll(other.actionResultList); - } - return this; - } - - @Override - public SyncRogueCommonActionResultScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueVersionId = 0; - displayType = 0; - actionResultList.clear(); - return this; - } - - @Override - public SyncRogueCommonActionResultScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - actionResultList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueCommonActionResultScNotify)) { - return false; - } - SyncRogueCommonActionResultScNotify other = (SyncRogueCommonActionResultScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasRogueVersionId() || rogueVersionId == other.rogueVersionId) - && (!hasDisplayType() || displayType == other.displayType) - && (!hasActionResultList() || actionResultList.equals(other.actionResultList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 64); - output.writeEnumNoTag(displayType); - } - if ((bitField0_ & 0x00000004) != 0) { - for (int i = 0; i < actionResultList.length(); i++) { - output.writeRawByte((byte) 114); - output.writeMessageNoTag(actionResultList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(displayType); - } - if ((bitField0_ & 0x00000004) != 0) { - size += (1 * actionResultList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(actionResultList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueCommonActionResultScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 96: { - // rogueVersionId - rogueVersionId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 64) { - break; - } - } - case 64: { - // displayType - final int value = input.readInt32(); - if (RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType.forNumber(value) != null) { - displayType = value; - bitField0_ |= 0x00000002; - } - tag = input.readTag(); - if (tag != 114) { - break; - } - } - case 114: { - // actionResultList - tag = input.readRepeatedMessage(actionResultList, tag); - bitField0_ |= 0x00000004; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueVersionId, rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeEnum(FieldNames.displayType, displayType, RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType.converter()); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRepeatedMessage(FieldNames.actionResultList, actionResultList); - } - output.endObject(); - } - - @Override - public SyncRogueCommonActionResultScNotify mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1457526951: - case 1832096103: { - if (input.isAtField(FieldNames.rogueVersionId)) { - if (!input.trySkipNullValue()) { - rogueVersionId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1714350876: - case 1615288471: { - if (input.isAtField(FieldNames.displayType)) { - if (!input.trySkipNullValue()) { - final RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType value = input.readEnum(RogueCommonActionResultDisplayTypeOuterClass.RogueCommonActionResultDisplayType.converter()); - if (value != null) { - displayType = value.getNumber(); - bitField0_ |= 0x00000002; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - case 157295921: - case -462723337: { - if (input.isAtField(FieldNames.actionResultList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(actionResultList); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueCommonActionResultScNotify clone() { - return new SyncRogueCommonActionResultScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueCommonActionResultScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueCommonActionResultScNotify(), data).checkInitialized(); - } - - public static SyncRogueCommonActionResultScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonActionResultScNotify(), input).checkInitialized(); - } - - public static SyncRogueCommonActionResultScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonActionResultScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueCommonActionResultScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueCommonActionResultScNotifyFactory.INSTANCE; - } - - private enum SyncRogueCommonActionResultScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueCommonActionResultScNotify create() { - return SyncRogueCommonActionResultScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueVersionId = FieldName.forField("rogueVersionId", "rogue_version_id"); - - static final FieldName displayType = FieldName.forField("displayType", "display_type"); - - static final FieldName actionResultList = FieldName.forField("actionResultList", "action_result_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java deleted file mode 100644 index 2f85788..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueDataScNotifyOuterClass.java +++ /dev/null @@ -1,304 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class SyncRogueCommonDialogueDataScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueCommonDialogueDataScNotify} - */ - public static final class SyncRogueCommonDialogueDataScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - */ - private final RepeatedMessage dialogueDataList = RepeatedMessage.newEmptyInstance(RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.getFactory()); - - private SyncRogueCommonDialogueDataScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueCommonDialogueDataScNotify} - */ - public static SyncRogueCommonDialogueDataScNotify newInstance() { - return new SyncRogueCommonDialogueDataScNotify(); - } - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - * @return whether the dialogueDataList field is set - */ - public boolean hasDialogueDataList() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - * @return this - */ - public SyncRogueCommonDialogueDataScNotify clearDialogueDataList() { - bitField0_ &= ~0x00000001; - dialogueDataList.clear(); - return this; - } - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueDataList()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getDialogueDataList( - ) { - return dialogueDataList; - } - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableDialogueDataList( - ) { - bitField0_ |= 0x00000001; - return dialogueDataList; - } - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - * @param value the dialogueDataList to add - * @return this - */ - public SyncRogueCommonDialogueDataScNotify addDialogueDataList( - final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { - bitField0_ |= 0x00000001; - dialogueDataList.add(value); - return this; - } - - /** - * repeated .RogueCommonDialogueDataInfo dialogue_data_list = 11; - * @param values the dialogueDataList to add - * @return this - */ - public SyncRogueCommonDialogueDataScNotify addAllDialogueDataList( - final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo... values) { - bitField0_ |= 0x00000001; - dialogueDataList.addAll(values); - return this; - } - - @Override - public SyncRogueCommonDialogueDataScNotify copyFrom( - final SyncRogueCommonDialogueDataScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - dialogueDataList.copyFrom(other.dialogueDataList); - } - return this; - } - - @Override - public SyncRogueCommonDialogueDataScNotify mergeFrom( - final SyncRogueCommonDialogueDataScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasDialogueDataList()) { - getMutableDialogueDataList().addAll(other.dialogueDataList); - } - return this; - } - - @Override - public SyncRogueCommonDialogueDataScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueDataList.clear(); - return this; - } - - @Override - public SyncRogueCommonDialogueDataScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - dialogueDataList.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueCommonDialogueDataScNotify)) { - return false; - } - SyncRogueCommonDialogueDataScNotify other = (SyncRogueCommonDialogueDataScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasDialogueDataList() || dialogueDataList.equals(other.dialogueDataList)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < dialogueDataList.length(); i++) { - output.writeRawByte((byte) 90); - output.writeMessageNoTag(dialogueDataList.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * dialogueDataList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(dialogueDataList); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueCommonDialogueDataScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 90: { - // dialogueDataList - tag = input.readRepeatedMessage(dialogueDataList, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.dialogueDataList, dialogueDataList); - } - output.endObject(); - } - - @Override - public SyncRogueCommonDialogueDataScNotify mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -44165792: - case -111142292: { - if (input.isAtField(FieldNames.dialogueDataList)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(dialogueDataList); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueCommonDialogueDataScNotify clone() { - return new SyncRogueCommonDialogueDataScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueCommonDialogueDataScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), data).checkInitialized(); - } - - public static SyncRogueCommonDialogueDataScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), input).checkInitialized(); - } - - public static SyncRogueCommonDialogueDataScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueDataScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueCommonDialogueDataScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueCommonDialogueDataScNotifyFactory.INSTANCE; - } - - private enum SyncRogueCommonDialogueDataScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueCommonDialogueDataScNotify create() { - return SyncRogueCommonDialogueDataScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName dialogueDataList = FieldName.forField("dialogueDataList", "dialogue_data_list"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java deleted file mode 100644 index c2c34b3..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.java +++ /dev/null @@ -1,556 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueCommonDialogueOptionFinishScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueCommonDialogueOptionFinishScNotify} - */ - public static final class SyncRogueCommonDialogueOptionFinishScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 option_id = 9; - */ - private int optionId; - - /** - * optional uint32 event_unique_id = 15; - */ - private int eventUniqueId; - - /** - * optional .RogueCommonDialogueOptionInfo result_option_info = 12; - */ - private final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo resultOptionInfo = RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo.newInstance(); - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 13; - */ - private final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo dialogueData = RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo.newInstance(); - - private SyncRogueCommonDialogueOptionFinishScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueCommonDialogueOptionFinishScNotify} - */ - public static SyncRogueCommonDialogueOptionFinishScNotify newInstance() { - return new SyncRogueCommonDialogueOptionFinishScNotify(); - } - - /** - * optional uint32 option_id = 9; - * @return whether the optionId field is set - */ - public boolean hasOptionId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 option_id = 9; - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify clearOptionId() { - bitField0_ &= ~0x00000001; - optionId = 0; - return this; - } - - /** - * optional uint32 option_id = 9; - * @return the optionId - */ - public int getOptionId() { - return optionId; - } - - /** - * optional uint32 option_id = 9; - * @param value the optionId to set - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify setOptionId(final int value) { - bitField0_ |= 0x00000001; - optionId = value; - return this; - } - - /** - * optional uint32 event_unique_id = 15; - * @return whether the eventUniqueId field is set - */ - public boolean hasEventUniqueId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 event_unique_id = 15; - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify clearEventUniqueId() { - bitField0_ &= ~0x00000002; - eventUniqueId = 0; - return this; - } - - /** - * optional uint32 event_unique_id = 15; - * @return the eventUniqueId - */ - public int getEventUniqueId() { - return eventUniqueId; - } - - /** - * optional uint32 event_unique_id = 15; - * @param value the eventUniqueId to set - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify setEventUniqueId(final int value) { - bitField0_ |= 0x00000002; - eventUniqueId = value; - return this; - } - - /** - * optional .RogueCommonDialogueOptionInfo result_option_info = 12; - * @return whether the resultOptionInfo field is set - */ - public boolean hasResultOptionInfo() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional .RogueCommonDialogueOptionInfo result_option_info = 12; - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify clearResultOptionInfo() { - bitField0_ &= ~0x00000004; - resultOptionInfo.clear(); - return this; - } - - /** - * optional .RogueCommonDialogueOptionInfo result_option_info = 12; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableResultOptionInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo getResultOptionInfo( - ) { - return resultOptionInfo; - } - - /** - * optional .RogueCommonDialogueOptionInfo result_option_info = 12; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo getMutableResultOptionInfo( - ) { - bitField0_ |= 0x00000004; - return resultOptionInfo; - } - - /** - * optional .RogueCommonDialogueOptionInfo result_option_info = 12; - * @param value the resultOptionInfo to set - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify setResultOptionInfo( - final RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo value) { - bitField0_ |= 0x00000004; - resultOptionInfo.copyFrom(value); - return this; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 13; - * @return whether the dialogueData field is set - */ - public boolean hasDialogueData() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 13; - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify clearDialogueData() { - bitField0_ &= ~0x00000008; - dialogueData.clear(); - return this; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableDialogueData()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getDialogueData() { - return dialogueData; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo getMutableDialogueData( - ) { - bitField0_ |= 0x00000008; - return dialogueData; - } - - /** - * optional .RogueCommonDialogueDataInfo dialogue_data = 13; - * @param value the dialogueData to set - * @return this - */ - public SyncRogueCommonDialogueOptionFinishScNotify setDialogueData( - final RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo value) { - bitField0_ |= 0x00000008; - dialogueData.copyFrom(value); - return this; - } - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify copyFrom( - final SyncRogueCommonDialogueOptionFinishScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - optionId = other.optionId; - eventUniqueId = other.eventUniqueId; - resultOptionInfo.copyFrom(other.resultOptionInfo); - dialogueData.copyFrom(other.dialogueData); - } - return this; - } - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom( - final SyncRogueCommonDialogueOptionFinishScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasOptionId()) { - setOptionId(other.optionId); - } - if (other.hasEventUniqueId()) { - setEventUniqueId(other.eventUniqueId); - } - if (other.hasResultOptionInfo()) { - getMutableResultOptionInfo().mergeFrom(other.resultOptionInfo); - } - if (other.hasDialogueData()) { - getMutableDialogueData().mergeFrom(other.dialogueData); - } - return this; - } - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - optionId = 0; - eventUniqueId = 0; - resultOptionInfo.clear(); - dialogueData.clear(); - return this; - } - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - resultOptionInfo.clearQuick(); - dialogueData.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueCommonDialogueOptionFinishScNotify)) { - return false; - } - SyncRogueCommonDialogueOptionFinishScNotify other = (SyncRogueCommonDialogueOptionFinishScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasOptionId() || optionId == other.optionId) - && (!hasEventUniqueId() || eventUniqueId == other.eventUniqueId) - && (!hasResultOptionInfo() || resultOptionInfo.equals(other.resultOptionInfo)) - && (!hasDialogueData() || dialogueData.equals(other.dialogueData)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 72); - output.writeUInt32NoTag(optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 98); - output.writeMessageNoTag(resultOptionInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(dialogueData); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(eventUniqueId); - } - if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(resultOptionInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(dialogueData); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 72: { - // optionId - optionId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 120) { - break; - } - } - case 120: { - // eventUniqueId - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 98) { - break; - } - } - case 98: { - // resultOptionInfo - input.readMessage(resultOptionInfo); - bitField0_ |= 0x00000004; - tag = input.readTag(); - if (tag != 106) { - break; - } - } - case 106: { - // dialogueData - input.readMessage(dialogueData); - bitField0_ |= 0x00000008; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.optionId, optionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.eventUniqueId, eventUniqueId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeMessage(FieldNames.resultOptionInfo, resultOptionInfo); - } - if ((bitField0_ & 0x00000008) != 0) { - output.writeMessage(FieldNames.dialogueData, dialogueData); - } - output.endObject(); - } - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -79017872: - case 1845434661: { - if (input.isAtField(FieldNames.optionId)) { - if (!input.trySkipNullValue()) { - optionId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 2091680134: - case -157385500: { - if (input.isAtField(FieldNames.eventUniqueId)) { - if (!input.trySkipNullValue()) { - eventUniqueId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case -565706048: - case -465340138: { - if (input.isAtField(FieldNames.resultOptionInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(resultOptionInfo); - bitField0_ |= 0x00000004; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1350537634: - case -1057999439: { - if (input.isAtField(FieldNames.dialogueData)) { - if (!input.trySkipNullValue()) { - input.readMessage(dialogueData); - bitField0_ |= 0x00000008; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify clone() { - return new SyncRogueCommonDialogueOptionFinishScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), data).checkInitialized(); - } - - public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final ProtoSource input) - throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), input).checkInitialized(); - } - - public static SyncRogueCommonDialogueOptionFinishScNotify parseFrom(final JsonSource input) - throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonDialogueOptionFinishScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueCommonDialogueOptionFinishScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueCommonDialogueOptionFinishScNotifyFactory.INSTANCE; - } - - private enum SyncRogueCommonDialogueOptionFinishScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueCommonDialogueOptionFinishScNotify create() { - return SyncRogueCommonDialogueOptionFinishScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName optionId = FieldName.forField("optionId", "option_id"); - - static final FieldName eventUniqueId = FieldName.forField("eventUniqueId", "event_unique_id"); - - static final FieldName resultOptionInfo = FieldName.forField("resultOptionInfo", "result_option_info"); - - static final FieldName dialogueData = FieldName.forField("dialogueData", "dialogue_data"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java deleted file mode 100644 index d848f4e..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueCommonPendingActionScNotifyOuterClass.java +++ /dev/null @@ -1,371 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueCommonPendingActionScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueCommonPendingActionScNotify} - */ - public static final class SyncRogueCommonPendingActionScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 rogue_version_id = 12; - */ - private int rogueVersionId; - - /** - * optional .RogueCommonPendingAction rogue_common_pending_action = 15; - */ - private final RogueCommonPendingActionOuterClass.RogueCommonPendingAction rogueCommonPendingAction = RogueCommonPendingActionOuterClass.RogueCommonPendingAction.newInstance(); - - private SyncRogueCommonPendingActionScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueCommonPendingActionScNotify} - */ - public static SyncRogueCommonPendingActionScNotify newInstance() { - return new SyncRogueCommonPendingActionScNotify(); - } - - /** - * optional uint32 rogue_version_id = 12; - * @return whether the rogueVersionId field is set - */ - public boolean hasRogueVersionId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 rogue_version_id = 12; - * @return this - */ - public SyncRogueCommonPendingActionScNotify clearRogueVersionId() { - bitField0_ &= ~0x00000001; - rogueVersionId = 0; - return this; - } - - /** - * optional uint32 rogue_version_id = 12; - * @return the rogueVersionId - */ - public int getRogueVersionId() { - return rogueVersionId; - } - - /** - * optional uint32 rogue_version_id = 12; - * @param value the rogueVersionId to set - * @return this - */ - public SyncRogueCommonPendingActionScNotify setRogueVersionId(final int value) { - bitField0_ |= 0x00000001; - rogueVersionId = value; - return this; - } - - /** - * optional .RogueCommonPendingAction rogue_common_pending_action = 15; - * @return whether the rogueCommonPendingAction field is set - */ - public boolean hasRogueCommonPendingAction() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueCommonPendingAction rogue_common_pending_action = 15; - * @return this - */ - public SyncRogueCommonPendingActionScNotify clearRogueCommonPendingAction() { - bitField0_ &= ~0x00000002; - rogueCommonPendingAction.clear(); - return this; - } - - /** - * optional .RogueCommonPendingAction rogue_common_pending_action = 15; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueCommonPendingAction()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getRogueCommonPendingAction( - ) { - return rogueCommonPendingAction; - } - - /** - * optional .RogueCommonPendingAction rogue_common_pending_action = 15; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueCommonPendingActionOuterClass.RogueCommonPendingAction getMutableRogueCommonPendingAction( - ) { - bitField0_ |= 0x00000002; - return rogueCommonPendingAction; - } - - /** - * optional .RogueCommonPendingAction rogue_common_pending_action = 15; - * @param value the rogueCommonPendingAction to set - * @return this - */ - public SyncRogueCommonPendingActionScNotify setRogueCommonPendingAction( - final RogueCommonPendingActionOuterClass.RogueCommonPendingAction value) { - bitField0_ |= 0x00000002; - rogueCommonPendingAction.copyFrom(value); - return this; - } - - @Override - public SyncRogueCommonPendingActionScNotify copyFrom( - final SyncRogueCommonPendingActionScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueVersionId = other.rogueVersionId; - rogueCommonPendingAction.copyFrom(other.rogueCommonPendingAction); - } - return this; - } - - @Override - public SyncRogueCommonPendingActionScNotify mergeFrom( - final SyncRogueCommonPendingActionScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueVersionId()) { - setRogueVersionId(other.rogueVersionId); - } - if (other.hasRogueCommonPendingAction()) { - getMutableRogueCommonPendingAction().mergeFrom(other.rogueCommonPendingAction); - } - return this; - } - - @Override - public SyncRogueCommonPendingActionScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueVersionId = 0; - rogueCommonPendingAction.clear(); - return this; - } - - @Override - public SyncRogueCommonPendingActionScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueCommonPendingAction.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueCommonPendingActionScNotify)) { - return false; - } - SyncRogueCommonPendingActionScNotify other = (SyncRogueCommonPendingActionScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasRogueVersionId() || rogueVersionId == other.rogueVersionId) - && (!hasRogueCommonPendingAction() || rogueCommonPendingAction.equals(other.rogueCommonPendingAction)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(rogueCommonPendingAction); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueCommonPendingAction); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueCommonPendingActionScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 96: { - // rogueVersionId - rogueVersionId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 122) { - break; - } - } - case 122: { - // rogueCommonPendingAction - input.readMessage(rogueCommonPendingAction); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.rogueVersionId, rogueVersionId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueCommonPendingAction, rogueCommonPendingAction); - } - output.endObject(); - } - - @Override - public SyncRogueCommonPendingActionScNotify mergeFrom(final JsonSource input) throws - IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1457526951: - case 1832096103: { - if (input.isAtField(FieldNames.rogueVersionId)) { - if (!input.trySkipNullValue()) { - rogueVersionId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1199610440: - case 327981581: { - if (input.isAtField(FieldNames.rogueCommonPendingAction)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueCommonPendingAction); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueCommonPendingActionScNotify clone() { - return new SyncRogueCommonPendingActionScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueCommonPendingActionScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueCommonPendingActionScNotify(), data).checkInitialized(); - } - - public static SyncRogueCommonPendingActionScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonPendingActionScNotify(), input).checkInitialized(); - } - - public static SyncRogueCommonPendingActionScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueCommonPendingActionScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueCommonPendingActionScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueCommonPendingActionScNotifyFactory.INSTANCE; - } - - private enum SyncRogueCommonPendingActionScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueCommonPendingActionScNotify create() { - return SyncRogueCommonPendingActionScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueVersionId = FieldName.forField("rogueVersionId", "rogue_version_id"); - - static final FieldName rogueCommonPendingAction = FieldName.forField("rogueCommonPendingAction", "rogue_common_pending_action"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueDialogueEventDataScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueDialogueEventDataScNotifyOuterClass.java deleted file mode 100644 index 2e7b69e..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueDialogueEventDataScNotifyOuterClass.java +++ /dev/null @@ -1,303 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedMessage; - -public final class SyncRogueDialogueEventDataScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueDialogueEventDataScNotify} - */ - public static final class SyncRogueDialogueEventDataScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - */ - private final RepeatedMessage rogueDialogueEvent = RepeatedMessage.newEmptyInstance(RogueDialogueEventOuterClass.RogueDialogueEvent.getFactory()); - - private SyncRogueDialogueEventDataScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueDialogueEventDataScNotify} - */ - public static SyncRogueDialogueEventDataScNotify newInstance() { - return new SyncRogueDialogueEventDataScNotify(); - } - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - * @return whether the rogueDialogueEvent field is set - */ - public boolean hasRogueDialogueEvent() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - * @return this - */ - public SyncRogueDialogueEventDataScNotify clearRogueDialogueEvent() { - bitField0_ &= ~0x00000001; - rogueDialogueEvent.clear(); - return this; - } - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueDialogueEvent()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RepeatedMessage getRogueDialogueEvent( - ) { - return rogueDialogueEvent; - } - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RepeatedMessage getMutableRogueDialogueEvent( - ) { - bitField0_ |= 0x00000001; - return rogueDialogueEvent; - } - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - * @param value the rogueDialogueEvent to add - * @return this - */ - public SyncRogueDialogueEventDataScNotify addRogueDialogueEvent( - final RogueDialogueEventOuterClass.RogueDialogueEvent value) { - bitField0_ |= 0x00000001; - rogueDialogueEvent.add(value); - return this; - } - - /** - * repeated .RogueDialogueEvent rogue_dialogue_event = 13; - * @param values the rogueDialogueEvent to add - * @return this - */ - public SyncRogueDialogueEventDataScNotify addAllRogueDialogueEvent( - final RogueDialogueEventOuterClass.RogueDialogueEvent... values) { - bitField0_ |= 0x00000001; - rogueDialogueEvent.addAll(values); - return this; - } - - @Override - public SyncRogueDialogueEventDataScNotify copyFrom( - final SyncRogueDialogueEventDataScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueDialogueEvent.copyFrom(other.rogueDialogueEvent); - } - return this; - } - - @Override - public SyncRogueDialogueEventDataScNotify mergeFrom( - final SyncRogueDialogueEventDataScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueDialogueEvent()) { - getMutableRogueDialogueEvent().addAll(other.rogueDialogueEvent); - } - return this; - } - - @Override - public SyncRogueDialogueEventDataScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueDialogueEvent.clear(); - return this; - } - - @Override - public SyncRogueDialogueEventDataScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueDialogueEvent.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueDialogueEventDataScNotify)) { - return false; - } - SyncRogueDialogueEventDataScNotify other = (SyncRogueDialogueEventDataScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasRogueDialogueEvent() || rogueDialogueEvent.equals(other.rogueDialogueEvent)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - for (int i = 0; i < rogueDialogueEvent.length(); i++) { - output.writeRawByte((byte) 106); - output.writeMessageNoTag(rogueDialogueEvent.get(i)); - } - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += (1 * rogueDialogueEvent.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(rogueDialogueEvent); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueDialogueEventDataScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 106: { - // rogueDialogueEvent - tag = input.readRepeatedMessage(rogueDialogueEvent, tag); - bitField0_ |= 0x00000001; - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeRepeatedMessage(FieldNames.rogueDialogueEvent, rogueDialogueEvent); - } - output.endObject(); - } - - @Override - public SyncRogueDialogueEventDataScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1631556584: - case -76730760: { - if (input.isAtField(FieldNames.rogueDialogueEvent)) { - if (!input.trySkipNullValue()) { - input.readRepeatedMessage(rogueDialogueEvent); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueDialogueEventDataScNotify clone() { - return new SyncRogueDialogueEventDataScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueDialogueEventDataScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueDialogueEventDataScNotify(), data).checkInitialized(); - } - - public static SyncRogueDialogueEventDataScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueDialogueEventDataScNotify(), input).checkInitialized(); - } - - public static SyncRogueDialogueEventDataScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueDialogueEventDataScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueDialogueEventDataScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueDialogueEventDataScNotifyFactory.INSTANCE; - } - - private enum SyncRogueDialogueEventDataScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueDialogueEventDataScNotify create() { - return SyncRogueDialogueEventDataScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueDialogueEvent = FieldName.forField("rogueDialogueEvent", "rogue_dialogue_event"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java deleted file mode 100644 index 5f150f5..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueMapRoomScNotifyOuterClass.java +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueMapRoomScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueMapRoomScNotify} - */ - public static final class SyncRogueMapRoomScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional uint32 map_id = 1; - */ - private int mapId; - - /** - * optional .RogueRoom cur_room = 7; - */ - private final RogueRoomOuterClass.RogueRoom curRoom = RogueRoomOuterClass.RogueRoom.newInstance(); - - private SyncRogueMapRoomScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueMapRoomScNotify} - */ - public static SyncRogueMapRoomScNotify newInstance() { - return new SyncRogueMapRoomScNotify(); - } - - /** - * optional uint32 map_id = 1; - * @return whether the mapId field is set - */ - public boolean hasMapId() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional uint32 map_id = 1; - * @return this - */ - public SyncRogueMapRoomScNotify clearMapId() { - bitField0_ &= ~0x00000001; - mapId = 0; - return this; - } - - /** - * optional uint32 map_id = 1; - * @return the mapId - */ - public int getMapId() { - return mapId; - } - - /** - * optional uint32 map_id = 1; - * @param value the mapId to set - * @return this - */ - public SyncRogueMapRoomScNotify setMapId(final int value) { - bitField0_ |= 0x00000001; - mapId = value; - return this; - } - - /** - * optional .RogueRoom cur_room = 7; - * @return whether the curRoom field is set - */ - public boolean hasCurRoom() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional .RogueRoom cur_room = 7; - * @return this - */ - public SyncRogueMapRoomScNotify clearCurRoom() { - bitField0_ &= ~0x00000002; - curRoom.clear(); - return this; - } - - /** - * optional .RogueRoom cur_room = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableCurRoom()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueRoomOuterClass.RogueRoom getCurRoom() { - return curRoom; - } - - /** - * optional .RogueRoom cur_room = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueRoomOuterClass.RogueRoom getMutableCurRoom() { - bitField0_ |= 0x00000002; - return curRoom; - } - - /** - * optional .RogueRoom cur_room = 7; - * @param value the curRoom to set - * @return this - */ - public SyncRogueMapRoomScNotify setCurRoom(final RogueRoomOuterClass.RogueRoom value) { - bitField0_ |= 0x00000002; - curRoom.copyFrom(value); - return this; - } - - @Override - public SyncRogueMapRoomScNotify copyFrom(final SyncRogueMapRoomScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - mapId = other.mapId; - curRoom.copyFrom(other.curRoom); - } - return this; - } - - @Override - public SyncRogueMapRoomScNotify mergeFrom(final SyncRogueMapRoomScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMapId()) { - setMapId(other.mapId); - } - if (other.hasCurRoom()) { - getMutableCurRoom().mergeFrom(other.curRoom); - } - return this; - } - - @Override - public SyncRogueMapRoomScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - mapId = 0; - curRoom.clear(); - return this; - } - - @Override - public SyncRogueMapRoomScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - curRoom.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueMapRoomScNotify)) { - return false; - } - SyncRogueMapRoomScNotify other = (SyncRogueMapRoomScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasMapId() || mapId == other.mapId) - && (!hasCurRoom() || curRoom.equals(other.curRoom)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(mapId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(curRoom); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(mapId); - } - if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(curRoom); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueMapRoomScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 8: { - // mapId - mapId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 58) { - break; - } - } - case 58: { - // curRoom - input.readMessage(curRoom); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.mapId, mapId); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.curRoom, curRoom); - } - output.endObject(); - } - - @Override - public SyncRogueMapRoomScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 103663511: - case -1081377058: { - if (input.isAtField(FieldNames.mapId)) { - if (!input.trySkipNullValue()) { - mapId = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1125996347: - case 558243706: { - if (input.isAtField(FieldNames.curRoom)) { - if (!input.trySkipNullValue()) { - input.readMessage(curRoom); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueMapRoomScNotify clone() { - return new SyncRogueMapRoomScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueMapRoomScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueMapRoomScNotify(), data).checkInitialized(); - } - - public static SyncRogueMapRoomScNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueMapRoomScNotify(), input).checkInitialized(); - } - - public static SyncRogueMapRoomScNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueMapRoomScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueMapRoomScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueMapRoomScNotifyFactory.INSTANCE; - } - - private enum SyncRogueMapRoomScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueMapRoomScNotify create() { - return SyncRogueMapRoomScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName mapId = FieldName.forField("mapId", "map_id"); - - static final FieldName curRoom = FieldName.forField("curRoom", "cur_room"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueMiracleSelectInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueMiracleSelectInfoScNotifyOuterClass.java deleted file mode 100644 index bf333d2..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueMiracleSelectInfoScNotifyOuterClass.java +++ /dev/null @@ -1,287 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueMiracleSelectInfoScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueMiracleSelectInfoScNotify} - */ - public static final class SyncRogueMiracleSelectInfoScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 7; - */ - private final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo miracleSelectInfo = RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo.newInstance(); - - private SyncRogueMiracleSelectInfoScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueMiracleSelectInfoScNotify} - */ - public static SyncRogueMiracleSelectInfoScNotify newInstance() { - return new SyncRogueMiracleSelectInfoScNotify(); - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 7; - * @return whether the miracleSelectInfo field is set - */ - public boolean hasMiracleSelectInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 7; - * @return this - */ - public SyncRogueMiracleSelectInfoScNotify clearMiracleSelectInfo() { - bitField0_ &= ~0x00000001; - miracleSelectInfo.clear(); - return this; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 7; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableMiracleSelectInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMiracleSelectInfo() { - return miracleSelectInfo; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 7; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo getMutableMiracleSelectInfo() { - bitField0_ |= 0x00000001; - return miracleSelectInfo; - } - - /** - * optional .RogueMiracleSelectInfo miracle_select_info = 7; - * @param value the miracleSelectInfo to set - * @return this - */ - public SyncRogueMiracleSelectInfoScNotify setMiracleSelectInfo( - final RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo value) { - bitField0_ |= 0x00000001; - miracleSelectInfo.copyFrom(value); - return this; - } - - @Override - public SyncRogueMiracleSelectInfoScNotify copyFrom( - final SyncRogueMiracleSelectInfoScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - miracleSelectInfo.copyFrom(other.miracleSelectInfo); - } - return this; - } - - @Override - public SyncRogueMiracleSelectInfoScNotify mergeFrom( - final SyncRogueMiracleSelectInfoScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasMiracleSelectInfo()) { - getMutableMiracleSelectInfo().mergeFrom(other.miracleSelectInfo); - } - return this; - } - - @Override - public SyncRogueMiracleSelectInfoScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleSelectInfo.clear(); - return this; - } - - @Override - public SyncRogueMiracleSelectInfoScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - miracleSelectInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueMiracleSelectInfoScNotify)) { - return false; - } - SyncRogueMiracleSelectInfoScNotify other = (SyncRogueMiracleSelectInfoScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasMiracleSelectInfo() || miracleSelectInfo.equals(other.miracleSelectInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 58); - output.writeMessageNoTag(miracleSelectInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(miracleSelectInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueMiracleSelectInfoScNotify mergeFrom(final ProtoSource input) throws - IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 58: { - // miracleSelectInfo - input.readMessage(miracleSelectInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.miracleSelectInfo, miracleSelectInfo); - } - output.endObject(); - } - - @Override - public SyncRogueMiracleSelectInfoScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -1009314021: - case -1608054973: { - if (input.isAtField(FieldNames.miracleSelectInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(miracleSelectInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueMiracleSelectInfoScNotify clone() { - return new SyncRogueMiracleSelectInfoScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueMiracleSelectInfoScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueMiracleSelectInfoScNotify(), data).checkInitialized(); - } - - public static SyncRogueMiracleSelectInfoScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueMiracleSelectInfoScNotify(), input).checkInitialized(); - } - - public static SyncRogueMiracleSelectInfoScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueMiracleSelectInfoScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueMiracleSelectInfoScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueMiracleSelectInfoScNotifyFactory.INSTANCE; - } - - private enum SyncRogueMiracleSelectInfoScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueMiracleSelectInfoScNotify create() { - return SyncRogueMiracleSelectInfoScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName miracleSelectInfo = FieldName.forField("miracleSelectInfo", "miracle_select_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java deleted file mode 100644 index 3b7c408..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueStatusScNotifyOuterClass.java +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueStatusScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueStatusScNotify} - */ - public static final class SyncRogueStatusScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueStatus rogue_status = 6; - */ - private int rogueStatus; - - private SyncRogueStatusScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueStatusScNotify} - */ - public static SyncRogueStatusScNotify newInstance() { - return new SyncRogueStatusScNotify(); - } - - /** - * optional .RogueStatus rogue_status = 6; - * @return whether the rogueStatus field is set - */ - public boolean hasRogueStatus() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueStatus rogue_status = 6; - * @return this - */ - public SyncRogueStatusScNotify clearRogueStatus() { - bitField0_ &= ~0x00000001; - rogueStatus = 0; - return this; - } - - /** - * optional .RogueStatus rogue_status = 6; - * @return the rogueStatus - */ - public RogueStatusOuterClass.RogueStatus getRogueStatus() { - return RogueStatusOuterClass.RogueStatus.forNumber(rogueStatus); - } - - /** - * Gets the value of the internal enum store. The result is - * equivalent to {@link SyncRogueStatusScNotify#getRogueStatus()}.getNumber(). - * - * @return numeric wire representation - */ - public int getRogueStatusValue() { - return rogueStatus; - } - - /** - * Sets the value of the internal enum store. This does not - * do any validity checks, so be sure to use appropriate value - * constants from {@link RogueStatusOuterClass.RogueStatus}. Setting an invalid value - * can cause {@link SyncRogueStatusScNotify#getRogueStatus()} to return null - * - * @param value the numeric wire value to set - * @return this - */ - public SyncRogueStatusScNotify setRogueStatusValue(final int value) { - bitField0_ |= 0x00000001; - rogueStatus = value; - return this; - } - - /** - * optional .RogueStatus rogue_status = 6; - * @param value the rogueStatus to set - * @return this - */ - public SyncRogueStatusScNotify setRogueStatus(final RogueStatusOuterClass.RogueStatus value) { - bitField0_ |= 0x00000001; - rogueStatus = value.getNumber(); - return this; - } - - @Override - public SyncRogueStatusScNotify copyFrom(final SyncRogueStatusScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueStatus = other.rogueStatus; - } - return this; - } - - @Override - public SyncRogueStatusScNotify mergeFrom(final SyncRogueStatusScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueStatus()) { - setRogueStatusValue(other.rogueStatus); - } - return this; - } - - @Override - public SyncRogueStatusScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueStatus = 0; - return this; - } - - @Override - public SyncRogueStatusScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueStatusScNotify)) { - return false; - } - SyncRogueStatusScNotify other = (SyncRogueStatusScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasRogueStatus() || rogueStatus == other.rogueStatus); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeEnumNoTag(rogueStatus); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeEnumSizeNoTag(rogueStatus); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueStatusScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 48: { - // rogueStatus - final int value = input.readInt32(); - if (RogueStatusOuterClass.RogueStatus.forNumber(value) != null) { - rogueStatus = value; - bitField0_ |= 0x00000001; - } - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeEnum(FieldNames.rogueStatus, rogueStatus, RogueStatusOuterClass.RogueStatus.converter()); - } - output.endObject(); - } - - @Override - public SyncRogueStatusScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case -836112788: - case 1898767863: { - if (input.isAtField(FieldNames.rogueStatus)) { - if (!input.trySkipNullValue()) { - final RogueStatusOuterClass.RogueStatus value = input.readEnum(RogueStatusOuterClass.RogueStatus.converter()); - if (value != null) { - rogueStatus = value.getNumber(); - bitField0_ |= 0x00000001; - } else { - input.skipUnknownEnumValue(); - } - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueStatusScNotify clone() { - return new SyncRogueStatusScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueStatusScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueStatusScNotify(), data).checkInitialized(); - } - - public static SyncRogueStatusScNotify parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueStatusScNotify(), input).checkInitialized(); - } - - public static SyncRogueStatusScNotify parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SyncRogueStatusScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueStatusScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueStatusScNotifyFactory.INSTANCE; - } - - private enum SyncRogueStatusScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueStatusScNotify create() { - return SyncRogueStatusScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueStatus = FieldName.forField("rogueStatus", "rogue_status"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/SyncRogueVirtualItemInfoScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/SyncRogueVirtualItemInfoScNotifyOuterClass.java deleted file mode 100644 index 0731ff5..0000000 --- a/src/generated/main/emu/lunarcore/proto/SyncRogueVirtualItemInfoScNotifyOuterClass.java +++ /dev/null @@ -1,285 +0,0 @@ -// Code generated by protocol buffer compiler. Do not edit! -package emu.lunarcore.proto; - -import java.io.IOException; -import us.hebi.quickbuf.FieldName; -import us.hebi.quickbuf.InvalidProtocolBufferException; -import us.hebi.quickbuf.JsonSink; -import us.hebi.quickbuf.JsonSource; -import us.hebi.quickbuf.MessageFactory; -import us.hebi.quickbuf.ProtoMessage; -import us.hebi.quickbuf.ProtoSink; -import us.hebi.quickbuf.ProtoSource; - -public final class SyncRogueVirtualItemInfoScNotifyOuterClass { - /** - * Protobuf type {@code SyncRogueVirtualItemInfoScNotify} - */ - public static final class SyncRogueVirtualItemInfoScNotify extends ProtoMessage implements Cloneable { - private static final long serialVersionUID = 0L; - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 8; - */ - private final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo rogueVirtualItemInfo = RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo.newInstance(); - - private SyncRogueVirtualItemInfoScNotify() { - } - - /** - * @return a new empty instance of {@code SyncRogueVirtualItemInfoScNotify} - */ - public static SyncRogueVirtualItemInfoScNotify newInstance() { - return new SyncRogueVirtualItemInfoScNotify(); - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 8; - * @return whether the rogueVirtualItemInfo field is set - */ - public boolean hasRogueVirtualItemInfo() { - return (bitField0_ & 0x00000001) != 0; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 8; - * @return this - */ - public SyncRogueVirtualItemInfoScNotify clearRogueVirtualItemInfo() { - bitField0_ &= ~0x00000001; - rogueVirtualItemInfo.clear(); - return this; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 8; - * - * This method returns the internal storage object without modifying any has state. - * The returned object should not be modified and be treated as read-only. - * - * Use {@link #getMutableRogueVirtualItemInfo()} if you want to modify it. - * - * @return internal storage object for reading - */ - public RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo getRogueVirtualItemInfo() { - return rogueVirtualItemInfo; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 8; - * - * This method returns the internal storage object and sets the corresponding - * has state. The returned object will become part of this message and its - * contents may be modified as long as the has state is not cleared. - * - * @return internal storage object for modifications - */ - public RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo getMutableRogueVirtualItemInfo() { - bitField0_ |= 0x00000001; - return rogueVirtualItemInfo; - } - - /** - * optional .RogueVirtualItemInfo rogue_virtual_item_info = 8; - * @param value the rogueVirtualItemInfo to set - * @return this - */ - public SyncRogueVirtualItemInfoScNotify setRogueVirtualItemInfo( - final RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo value) { - bitField0_ |= 0x00000001; - rogueVirtualItemInfo.copyFrom(value); - return this; - } - - @Override - public SyncRogueVirtualItemInfoScNotify copyFrom(final SyncRogueVirtualItemInfoScNotify other) { - cachedSize = other.cachedSize; - if ((bitField0_ | other.bitField0_) != 0) { - bitField0_ = other.bitField0_; - rogueVirtualItemInfo.copyFrom(other.rogueVirtualItemInfo); - } - return this; - } - - @Override - public SyncRogueVirtualItemInfoScNotify mergeFrom( - final SyncRogueVirtualItemInfoScNotify other) { - if (other.isEmpty()) { - return this; - } - cachedSize = -1; - if (other.hasRogueVirtualItemInfo()) { - getMutableRogueVirtualItemInfo().mergeFrom(other.rogueVirtualItemInfo); - } - return this; - } - - @Override - public SyncRogueVirtualItemInfoScNotify clear() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueVirtualItemInfo.clear(); - return this; - } - - @Override - public SyncRogueVirtualItemInfoScNotify clearQuick() { - if (isEmpty()) { - return this; - } - cachedSize = -1; - bitField0_ = 0; - rogueVirtualItemInfo.clearQuick(); - return this; - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (!(o instanceof SyncRogueVirtualItemInfoScNotify)) { - return false; - } - SyncRogueVirtualItemInfoScNotify other = (SyncRogueVirtualItemInfoScNotify) o; - return bitField0_ == other.bitField0_ - && (!hasRogueVirtualItemInfo() || rogueVirtualItemInfo.equals(other.rogueVirtualItemInfo)); - } - - @Override - public void writeTo(final ProtoSink output) throws IOException { - if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); - output.writeMessageNoTag(rogueVirtualItemInfo); - } - } - - @Override - protected int computeSerializedSize() { - int size = 0; - if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueVirtualItemInfo); - } - return size; - } - - @Override - @SuppressWarnings("fallthrough") - public SyncRogueVirtualItemInfoScNotify mergeFrom(final ProtoSource input) throws IOException { - // Enabled Fall-Through Optimization (QuickBuffers) - int tag = input.readTag(); - while (true) { - switch (tag) { - case 66: { - // rogueVirtualItemInfo - input.readMessage(rogueVirtualItemInfo); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 0) { - break; - } - } - case 0: { - return this; - } - default: { - if (!input.skipField(tag)) { - return this; - } - tag = input.readTag(); - break; - } - } - } - } - - @Override - public void writeTo(final JsonSink output) throws IOException { - output.beginObject(); - if ((bitField0_ & 0x00000001) != 0) { - output.writeMessage(FieldNames.rogueVirtualItemInfo, rogueVirtualItemInfo); - } - output.endObject(); - } - - @Override - public SyncRogueVirtualItemInfoScNotify mergeFrom(final JsonSource input) throws IOException { - if (!input.beginObject()) { - return this; - } - while (!input.isAtEnd()) { - switch (input.readFieldHash()) { - case 1066755410: - case 1452147457: { - if (input.isAtField(FieldNames.rogueVirtualItemInfo)) { - if (!input.trySkipNullValue()) { - input.readMessage(rogueVirtualItemInfo); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } - default: { - input.skipUnknownField(); - break; - } - } - } - input.endObject(); - return this; - } - - @Override - public SyncRogueVirtualItemInfoScNotify clone() { - return new SyncRogueVirtualItemInfoScNotify().copyFrom(this); - } - - @Override - public boolean isEmpty() { - return ((bitField0_) == 0); - } - - public static SyncRogueVirtualItemInfoScNotify parseFrom(final byte[] data) throws - InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SyncRogueVirtualItemInfoScNotify(), data).checkInitialized(); - } - - public static SyncRogueVirtualItemInfoScNotify parseFrom(final ProtoSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueVirtualItemInfoScNotify(), input).checkInitialized(); - } - - public static SyncRogueVirtualItemInfoScNotify parseFrom(final JsonSource input) throws - IOException { - return ProtoMessage.mergeFrom(new SyncRogueVirtualItemInfoScNotify(), input).checkInitialized(); - } - - /** - * @return factory for creating SyncRogueVirtualItemInfoScNotify messages - */ - public static MessageFactory getFactory() { - return SyncRogueVirtualItemInfoScNotifyFactory.INSTANCE; - } - - private enum SyncRogueVirtualItemInfoScNotifyFactory implements MessageFactory { - INSTANCE; - - @Override - public SyncRogueVirtualItemInfoScNotify create() { - return SyncRogueVirtualItemInfoScNotify.newInstance(); - } - } - - /** - * Contains name constants used for serializing JSON - */ - static class FieldNames { - static final FieldName rogueVirtualItemInfo = FieldName.forField("rogueVirtualItemInfo", "rogue_virtual_item_info"); - } - } -} diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java index 19f710b..7ae56e5 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardCsReqOuterClass.java @@ -13,13 +13,21 @@ import us.hebi.quickbuf.ProtoSource; public final class TakeChallengeRewardCsReqOuterClass { /** + *
+   *  ABJNKBKDEGI
+   * 
+ * * Protobuf type {@code TakeChallengeRewardCsReq} */ public static final class TakeChallengeRewardCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 13; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 1; */ private int groupId; @@ -27,6 +35,10 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** + *
+     *  ABJNKBKDEGI
+     * 
+ * * @return a new empty instance of {@code TakeChallengeRewardCsReq} */ public static TakeChallengeRewardCsReq newInstance() { @@ -34,7 +46,11 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** - * optional uint32 group_id = 13; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 1; * @return whether the groupId field is set */ public boolean hasGroupId() { @@ -42,7 +58,11 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** - * optional uint32 group_id = 13; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 1; * @return this */ public TakeChallengeRewardCsReq clearGroupId() { @@ -52,7 +72,11 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** - * optional uint32 group_id = 13; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 1; * @return the groupId */ public int getGroupId() { @@ -60,7 +84,11 @@ public final class TakeChallengeRewardCsReqOuterClass { } /** - * optional uint32 group_id = 13; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 1; * @param value the groupId to set * @return this */ @@ -129,7 +157,7 @@ public final class TakeChallengeRewardCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(groupId); } } @@ -150,7 +178,7 @@ public final class TakeChallengeRewardCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 8: { // groupId groupId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java index 71cd523..6321c2f 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeChallengeRewardScRspOuterClass.java @@ -14,23 +14,35 @@ import us.hebi.quickbuf.RepeatedMessage; public final class TakeChallengeRewardScRspOuterClass { /** + *
+   *  EJLKEJJLODJ
+   * 
+ * * Protobuf type {@code TakeChallengeRewardScRsp} */ public static final class TakeChallengeRewardScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 10; - */ - private int groupId; - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 5; */ private int retcode; /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + */ + private int groupId; + + /** + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; */ private final RepeatedMessage takenRewardList = RepeatedMessage.newEmptyInstance(TakenChallengeRewardInfoOuterClass.TakenChallengeRewardInfo.getFactory()); @@ -38,6 +50,10 @@ public final class TakeChallengeRewardScRspOuterClass { } /** + *
+     *  EJLKEJJLODJ
+     * 
+ * * @return a new empty instance of {@code TakeChallengeRewardScRsp} */ public static TakeChallengeRewardScRsp newInstance() { @@ -45,62 +61,25 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional uint32 group_id = 10; - * @return whether the groupId field is set + * optional uint32 retcode = 5; + * @return whether the retcode field is set */ - public boolean hasGroupId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 10; - * @return this - */ - public TakeChallengeRewardScRsp clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 10; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 10; - * @param value the groupId to set - * @return this - */ - public TakeChallengeRewardScRsp setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 retcode = 11; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 5; * @return this */ public TakeChallengeRewardScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -108,18 +87,75 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * optional uint32 retcode = 11; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ public TakeChallengeRewardScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @return this + */ + public TakeChallengeRewardScRsp clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @param value the groupId to set + * @return this + */ + public TakeChallengeRewardScRsp setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; * @return whether the takenRewardList field is set */ public boolean hasTakenRewardList() { @@ -127,7 +163,11 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; * @return this */ public TakeChallengeRewardScRsp clearTakenRewardList() { @@ -137,7 +177,11 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -152,7 +196,11 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -167,7 +215,11 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; * @param value the takenRewardList to add * @return this */ @@ -179,7 +231,11 @@ public final class TakeChallengeRewardScRspOuterClass { } /** - * repeated .TakenChallengeRewardInfo taken_reward_list = 5; + *
+     *  KNMLGHHDDAK
+     * 
+ * + * repeated .TakenChallengeRewardInfo taken_reward_list = 7; * @param values the takenRewardList to add * @return this */ @@ -195,8 +251,8 @@ public final class TakeChallengeRewardScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; retcode = other.retcode; + groupId = other.groupId; takenRewardList.copyFrom(other.takenRewardList); } return this; @@ -208,12 +264,12 @@ public final class TakeChallengeRewardScRspOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } if (other.hasTakenRewardList()) { getMutableTakenRewardList().addAll(other.takenRewardList); } @@ -227,8 +283,8 @@ public final class TakeChallengeRewardScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; retcode = 0; + groupId = 0; takenRewardList.clear(); return this; } @@ -254,24 +310,24 @@ public final class TakeChallengeRewardScRspOuterClass { } TakeChallengeRewardScRsp other = (TakeChallengeRewardScRsp) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) && (!hasRetcode() || retcode == other.retcode) + && (!hasGroupId() || groupId == other.groupId) && (!hasTakenRewardList() || takenRewardList.equals(other.takenRewardList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < takenRewardList.length(); i++) { - output.writeRawByte((byte) 42); + output.writeRawByte((byte) 58); output.writeMessageNoTag(takenRewardList.get(i)); } } @@ -281,10 +337,10 @@ public final class TakeChallengeRewardScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { size += (1 * takenRewardList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(takenRewardList); @@ -299,25 +355,25 @@ public final class TakeChallengeRewardScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { - // groupId - groupId = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 88) { - break; - } - } - case 88: { + case 40: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 42) { + if (tag != 48) { break; } } - case 42: { + case 48: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { // takenRewardList tag = input.readRepeatedMessage(takenRewardList, tag); bitField0_ |= 0x00000004; @@ -343,10 +399,10 @@ public final class TakeChallengeRewardScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeRepeatedMessage(FieldNames.takenRewardList, takenRewardList); @@ -361,11 +417,10 @@ public final class TakeChallengeRewardScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -373,10 +428,11 @@ public final class TakeChallengeRewardScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -449,10 +505,10 @@ public final class TakeChallengeRewardScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName takenRewardList = FieldName.forField("takenRewardList", "taken_reward_list"); } } diff --git a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java index e8c146f..fe1867c 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentCsReqOuterClass.java @@ -14,18 +14,30 @@ import us.hebi.quickbuf.RepeatedInt; public final class TakeMailAttachmentCsReqOuterClass { /** + *
+   *  CLKAPHCNAEJ
+   * 
+ * * Protobuf type {@code TakeMailAttachmentCsReq} */ public static final class TakeMailAttachmentCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 optional_reward_id = 5; + *
+     *  AEFGLFFACJC
+     * 
+ * + * optional uint32 optional_reward_id = 12; */ private int optionalRewardId; /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; */ private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance(); @@ -33,6 +45,10 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** + *
+     *  CLKAPHCNAEJ
+     * 
+ * * @return a new empty instance of {@code TakeMailAttachmentCsReq} */ public static TakeMailAttachmentCsReq newInstance() { @@ -40,7 +56,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * optional uint32 optional_reward_id = 5; + *
+     *  AEFGLFFACJC
+     * 
+ * + * optional uint32 optional_reward_id = 12; * @return whether the optionalRewardId field is set */ public boolean hasOptionalRewardId() { @@ -48,7 +68,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * optional uint32 optional_reward_id = 5; + *
+     *  AEFGLFFACJC
+     * 
+ * + * optional uint32 optional_reward_id = 12; * @return this */ public TakeMailAttachmentCsReq clearOptionalRewardId() { @@ -58,7 +82,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * optional uint32 optional_reward_id = 5; + *
+     *  AEFGLFFACJC
+     * 
+ * + * optional uint32 optional_reward_id = 12; * @return the optionalRewardId */ public int getOptionalRewardId() { @@ -66,7 +94,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * optional uint32 optional_reward_id = 5; + *
+     *  AEFGLFFACJC
+     * 
+ * + * optional uint32 optional_reward_id = 12; * @param value the optionalRewardId to set * @return this */ @@ -77,7 +109,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; * @return whether the mailIdList field is set */ public boolean hasMailIdList() { @@ -85,7 +121,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; * @return this */ public TakeMailAttachmentCsReq clearMailIdList() { @@ -95,7 +135,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +153,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +171,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; * @param value the mailIdList to add * @return this */ @@ -134,7 +186,11 @@ public final class TakeMailAttachmentCsReqOuterClass { } /** - * repeated uint32 mail_id_list = 8; + *
+     *  EHPMDJIDFEJ
+     * 
+ * + * repeated uint32 mail_id_list = 13; * @param values the mailIdList to add * @return this */ @@ -210,12 +266,12 @@ public final class TakeMailAttachmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(optionalRewardId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < mailIdList.length(); i++) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 104); output.writeUInt32NoTag(mailIdList.array()[i]); } } @@ -240,16 +296,16 @@ public final class TakeMailAttachmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 96: { // optionalRewardId optionalRewardId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 66) { + if (tag != 106) { break; } } - case 66: { + case 106: { // mailIdList [packed=true] input.readPackedUInt32(mailIdList, tag); bitField0_ |= 0x00000002; @@ -268,7 +324,7 @@ public final class TakeMailAttachmentCsReqOuterClass { tag = input.readTag(); break; } - case 64: { + case 104: { // mailIdList [packed=false] tag = input.readRepeatedUInt32(mailIdList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java index 95f3939..3e2237a 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeMailAttachmentScRspOuterClass.java @@ -20,17 +20,17 @@ public final class TakeMailAttachmentScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 7; */ private final ItemListOuterClass.ItemList attachment = ItemListOuterClass.ItemList.newInstance(); /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; */ private final RepeatedInt succMailIdList = RepeatedInt.newEmptyInstance(); @@ -45,7 +45,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -53,7 +53,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return this */ public TakeMailAttachmentScRsp clearRetcode() { @@ -63,7 +63,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -71,7 +71,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional uint32 retcode = 15; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ @@ -82,7 +82,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 7; * @return whether the attachment field is set */ public boolean hasAttachment() { @@ -90,7 +90,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 7; * @return this */ public TakeMailAttachmentScRsp clearAttachment() { @@ -100,7 +100,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -114,7 +114,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -128,7 +128,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * optional .ItemList attachment = 14; + * optional .ItemList attachment = 7; * @param value the attachment to set * @return this */ @@ -139,7 +139,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; * @return whether the succMailIdList field is set */ public boolean hasSuccMailIdList() { @@ -147,7 +147,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; * @return this */ public TakeMailAttachmentScRsp clearSuccMailIdList() { @@ -157,7 +157,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -171,7 +171,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -185,7 +185,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; * @param value the succMailIdList to add * @return this */ @@ -196,7 +196,7 @@ public final class TakeMailAttachmentScRspOuterClass { } /** - * repeated uint32 succ_mail_id_list = 12; + * repeated uint32 succ_mail_id_list = 10; * @param values the succMailIdList to add * @return this */ @@ -279,16 +279,16 @@ public final class TakeMailAttachmentScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 8); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 114); + output.writeRawByte((byte) 58); output.writeMessageNoTag(attachment); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < succMailIdList.length(); i++) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 80); output.writeUInt32NoTag(succMailIdList.array()[i]); } } @@ -316,25 +316,25 @@ public final class TakeMailAttachmentScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 120: { + case 8: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 114) { + if (tag != 58) { break; } } - case 114: { + case 58: { // attachment input.readMessage(attachment); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 98) { + if (tag != 82) { break; } } - case 98: { + case 82: { // succMailIdList [packed=true] input.readPackedUInt32(succMailIdList, tag); bitField0_ |= 0x00000004; @@ -353,7 +353,7 @@ public final class TakeMailAttachmentScRspOuterClass { tag = input.readTag(); break; } - case 96: { + case 80: { // succMailIdList [packed=false] tag = input.readRepeatedUInt32(succMailIdList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueAvatarOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffAvatarSkinCsReqOuterClass.java similarity index 64% rename from src/generated/main/emu/lunarcore/proto/ChessRogueAvatarOuterClass.java rename to src/generated/main/emu/lunarcore/proto/TakeOffAvatarSkinCsReqOuterClass.java index 3cf710b..003d382 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueAvatarOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffAvatarSkinCsReqOuterClass.java @@ -11,30 +11,30 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueAvatarOuterClass { +public final class TakeOffAvatarSkinCsReqOuterClass { /** - * Protobuf type {@code ChessRogueAvatar} + * Protobuf type {@code TakeOffAvatarSkinCsReq} */ - public static final class ChessRogueAvatar extends ProtoMessage implements Cloneable { + public static final class TakeOffAvatarSkinCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 14; */ private int avatarId; - private ChessRogueAvatar() { + private TakeOffAvatarSkinCsReq() { } /** - * @return a new empty instance of {@code ChessRogueAvatar} + * @return a new empty instance of {@code TakeOffAvatarSkinCsReq} */ - public static ChessRogueAvatar newInstance() { - return new ChessRogueAvatar(); + public static TakeOffAvatarSkinCsReq newInstance() { + return new TakeOffAvatarSkinCsReq(); } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 14; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -42,17 +42,17 @@ public final class ChessRogueAvatarOuterClass { } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 14; * @return this */ - public ChessRogueAvatar clearAvatarId() { + public TakeOffAvatarSkinCsReq clearAvatarId() { bitField0_ &= ~0x00000001; avatarId = 0; return this; } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 14; * @return the avatarId */ public int getAvatarId() { @@ -60,18 +60,18 @@ public final class ChessRogueAvatarOuterClass { } /** - * optional uint32 avatar_id = 6; + * optional uint32 avatar_id = 14; * @param value the avatarId to set * @return this */ - public ChessRogueAvatar setAvatarId(final int value) { + public TakeOffAvatarSkinCsReq setAvatarId(final int value) { bitField0_ |= 0x00000001; avatarId = value; return this; } @Override - public ChessRogueAvatar copyFrom(final ChessRogueAvatar other) { + public TakeOffAvatarSkinCsReq copyFrom(final TakeOffAvatarSkinCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; @@ -81,7 +81,7 @@ public final class ChessRogueAvatarOuterClass { } @Override - public ChessRogueAvatar mergeFrom(final ChessRogueAvatar other) { + public TakeOffAvatarSkinCsReq mergeFrom(final TakeOffAvatarSkinCsReq other) { if (other.isEmpty()) { return this; } @@ -93,7 +93,7 @@ public final class ChessRogueAvatarOuterClass { } @Override - public ChessRogueAvatar clear() { + public TakeOffAvatarSkinCsReq clear() { if (isEmpty()) { return this; } @@ -104,7 +104,7 @@ public final class ChessRogueAvatarOuterClass { } @Override - public ChessRogueAvatar clearQuick() { + public TakeOffAvatarSkinCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,10 +118,10 @@ public final class ChessRogueAvatarOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueAvatar)) { + if (!(o instanceof TakeOffAvatarSkinCsReq)) { return false; } - ChessRogueAvatar other = (ChessRogueAvatar) o; + TakeOffAvatarSkinCsReq other = (TakeOffAvatarSkinCsReq) o; return bitField0_ == other.bitField0_ && (!hasAvatarId() || avatarId == other.avatarId); } @@ -129,7 +129,7 @@ public final class ChessRogueAvatarOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); + output.writeRawByte((byte) 112); output.writeUInt32NoTag(avatarId); } } @@ -145,12 +145,12 @@ public final class ChessRogueAvatarOuterClass { @Override @SuppressWarnings("fallthrough") - public ChessRogueAvatar mergeFrom(final ProtoSource input) throws IOException { + public TakeOffAvatarSkinCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 48: { + case 112: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; @@ -183,7 +183,7 @@ public final class ChessRogueAvatarOuterClass { } @Override - public ChessRogueAvatar mergeFrom(final JsonSource input) throws IOException { + public TakeOffAvatarSkinCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -212,8 +212,8 @@ public final class ChessRogueAvatarOuterClass { } @Override - public ChessRogueAvatar clone() { - return new ChessRogueAvatar().copyFrom(this); + public TakeOffAvatarSkinCsReq clone() { + return new TakeOffAvatarSkinCsReq().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class ChessRogueAvatarOuterClass { return ((bitField0_) == 0); } - public static ChessRogueAvatar parseFrom(final byte[] data) throws + public static TakeOffAvatarSkinCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueAvatar(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new TakeOffAvatarSkinCsReq(), data).checkInitialized(); } - public static ChessRogueAvatar parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueAvatar(), input).checkInitialized(); + public static TakeOffAvatarSkinCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeOffAvatarSkinCsReq(), input).checkInitialized(); } - public static ChessRogueAvatar parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueAvatar(), input).checkInitialized(); + public static TakeOffAvatarSkinCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TakeOffAvatarSkinCsReq(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueAvatar messages + * @return factory for creating TakeOffAvatarSkinCsReq messages */ - public static MessageFactory getFactory() { - return ChessRogueAvatarFactory.INSTANCE; + public static MessageFactory getFactory() { + return TakeOffAvatarSkinCsReqFactory.INSTANCE; } - private enum ChessRogueAvatarFactory implements MessageFactory { + private enum TakeOffAvatarSkinCsReqFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueAvatar create() { - return ChessRogueAvatar.newInstance(); + public TakeOffAvatarSkinCsReq create() { + return TakeOffAvatarSkinCsReq.newInstance(); } } diff --git a/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java index 1052b01..bbfda7c 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffEquipmentCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class TakeOffEquipmentCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 2; */ private int avatarId; @@ -34,7 +34,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 2; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -42,7 +42,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 2; * @return this */ public TakeOffEquipmentCsReq clearAvatarId() { @@ -52,7 +52,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 2; * @return the avatarId */ public int getAvatarId() { @@ -60,7 +60,7 @@ public final class TakeOffEquipmentCsReqOuterClass { } /** - * optional uint32 avatar_id = 5; + * optional uint32 avatar_id = 2; * @param value the avatarId to set * @return this */ @@ -129,7 +129,7 @@ public final class TakeOffEquipmentCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(avatarId); } } @@ -150,7 +150,7 @@ public final class TakeOffEquipmentCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 16: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java index 8854040..ead4c9c 100644 --- a/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakeOffRelicCsReqOuterClass.java @@ -20,12 +20,12 @@ public final class TakeOffRelicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 avatar_id = 12; + * optional uint32 avatar_id = 6; */ private int avatarId; /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; */ private final RepeatedInt slotList = RepeatedInt.newEmptyInstance(); @@ -40,7 +40,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 avatar_id = 12; + * optional uint32 avatar_id = 6; * @return whether the avatarId field is set */ public boolean hasAvatarId() { @@ -48,7 +48,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 avatar_id = 12; + * optional uint32 avatar_id = 6; * @return this */ public TakeOffRelicCsReq clearAvatarId() { @@ -58,7 +58,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 avatar_id = 12; + * optional uint32 avatar_id = 6; * @return the avatarId */ public int getAvatarId() { @@ -66,7 +66,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * optional uint32 avatar_id = 12; + * optional uint32 avatar_id = 6; * @param value the avatarId to set * @return this */ @@ -77,7 +77,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; * @return whether the slotList field is set */ public boolean hasSlotList() { @@ -85,7 +85,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; * @return this */ public TakeOffRelicCsReq clearSlotList() { @@ -95,7 +95,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +109,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +123,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; * @param value the slotList to add * @return this */ @@ -134,7 +134,7 @@ public final class TakeOffRelicCsReqOuterClass { } /** - * repeated uint32 slot_list = 15; + * repeated uint32 slot_list = 4; * @param values the slotList to add * @return this */ @@ -210,12 +210,12 @@ public final class TakeOffRelicCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(avatarId); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < slotList.length(); i++) { - output.writeRawByte((byte) 120); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(slotList.array()[i]); } } @@ -240,16 +240,16 @@ public final class TakeOffRelicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { + case 48: { // avatarId avatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 34) { break; } } - case 122: { + case 34: { // slotList [packed=true] input.readPackedUInt32(slotList, tag); bitField0_ |= 0x00000002; @@ -268,7 +268,7 @@ public final class TakeOffRelicCsReqOuterClass { tag = input.readTag(); break; } - case 120: { + case 32: { // slotList [packed=false] tag = input.readRepeatedUInt32(slotList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java index ac79753..e266714 100644 --- a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardCsReqOuterClass.java @@ -19,15 +19,15 @@ public final class TakePromotionRewardCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 promotion = 1; - */ - private int promotion; - - /** - * optional uint32 base_avatar_id = 2; + * optional uint32 base_avatar_id = 8; */ private int baseAvatarId; + /** + * optional uint32 promotion = 10; + */ + private int promotion; + private TakePromotionRewardCsReq() { } @@ -39,62 +39,25 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 promotion = 1; - * @return whether the promotion field is set + * optional uint32 base_avatar_id = 8; + * @return whether the baseAvatarId field is set */ - public boolean hasPromotion() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 promotion = 1; - * @return this - */ - public TakePromotionRewardCsReq clearPromotion() { - bitField0_ &= ~0x00000001; - promotion = 0; - return this; - } - - /** - * optional uint32 promotion = 1; - * @return the promotion - */ - public int getPromotion() { - return promotion; - } - - /** - * optional uint32 promotion = 1; - * @param value the promotion to set - * @return this - */ - public TakePromotionRewardCsReq setPromotion(final int value) { - bitField0_ |= 0x00000001; - promotion = value; - return this; - } - - /** - * optional uint32 base_avatar_id = 2; - * @return whether the baseAvatarId field is set - */ - public boolean hasBaseAvatarId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 base_avatar_id = 2; + * optional uint32 base_avatar_id = 8; * @return this */ public TakePromotionRewardCsReq clearBaseAvatarId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; baseAvatarId = 0; return this; } /** - * optional uint32 base_avatar_id = 2; + * optional uint32 base_avatar_id = 8; * @return the baseAvatarId */ public int getBaseAvatarId() { @@ -102,23 +65,60 @@ public final class TakePromotionRewardCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 2; + * optional uint32 base_avatar_id = 8; * @param value the baseAvatarId to set * @return this */ public TakePromotionRewardCsReq setBaseAvatarId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; baseAvatarId = value; return this; } + /** + * optional uint32 promotion = 10; + * @return whether the promotion field is set + */ + public boolean hasPromotion() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 promotion = 10; + * @return this + */ + public TakePromotionRewardCsReq clearPromotion() { + bitField0_ &= ~0x00000002; + promotion = 0; + return this; + } + + /** + * optional uint32 promotion = 10; + * @return the promotion + */ + public int getPromotion() { + return promotion; + } + + /** + * optional uint32 promotion = 10; + * @param value the promotion to set + * @return this + */ + public TakePromotionRewardCsReq setPromotion(final int value) { + bitField0_ |= 0x00000002; + promotion = value; + return this; + } + @Override public TakePromotionRewardCsReq copyFrom(final TakePromotionRewardCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - promotion = other.promotion; baseAvatarId = other.baseAvatarId; + promotion = other.promotion; } return this; } @@ -129,12 +129,12 @@ public final class TakePromotionRewardCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasPromotion()) { - setPromotion(other.promotion); - } if (other.hasBaseAvatarId()) { setBaseAvatarId(other.baseAvatarId); } + if (other.hasPromotion()) { + setPromotion(other.promotion); + } return this; } @@ -145,8 +145,8 @@ public final class TakePromotionRewardCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - promotion = 0; baseAvatarId = 0; + promotion = 0; return this; } @@ -170,19 +170,19 @@ public final class TakePromotionRewardCsReqOuterClass { } TakePromotionRewardCsReq other = (TakePromotionRewardCsReq) o; return bitField0_ == other.bitField0_ - && (!hasPromotion() || promotion == other.promotion) - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId); + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasPromotion() || promotion == other.promotion); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); - output.writeUInt32NoTag(promotion); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(promotion); } } @@ -190,10 +190,10 @@ public final class TakePromotionRewardCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(promotion); } return size; } @@ -205,18 +205,18 @@ public final class TakePromotionRewardCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { - // promotion - promotion = input.readUInt32(); + case 64: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 16) { + if (tag != 80) { break; } } - case 16: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 80: { + // promotion + promotion = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class TakePromotionRewardCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.promotion, promotion); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.promotion, promotion); } output.endObject(); } @@ -256,10 +256,11 @@ public final class TakePromotionRewardCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -799212381: { - if (input.isAtField(FieldNames.promotion)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - promotion = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -267,11 +268,10 @@ public final class TakePromotionRewardCsReqOuterClass { } break; } - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case -799212381: { + if (input.isAtField(FieldNames.promotion)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + promotion = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class TakePromotionRewardCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName promotion = FieldName.forField("promotion"); - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + + static final FieldName promotion = FieldName.forField("promotion"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java index 825f154..9316e02 100644 --- a/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakePromotionRewardScRspOuterClass.java @@ -19,12 +19,12 @@ public final class TakePromotionRewardScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; */ private int retcode; /** - * optional .ItemList reward_list = 9; + * optional .ItemList reward_list = 1; */ private final ItemListOuterClass.ItemList rewardList = ItemListOuterClass.ItemList.newInstance(); @@ -39,7 +39,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -47,7 +47,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @return this */ public TakePromotionRewardScRsp clearRetcode() { @@ -57,7 +57,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @return the retcode */ public int getRetcode() { @@ -65,7 +65,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional uint32 retcode = 4; + * optional uint32 retcode = 5; * @param value the retcode to set * @return this */ @@ -76,7 +76,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 9; + * optional .ItemList reward_list = 1; * @return whether the rewardList field is set */ public boolean hasRewardList() { @@ -84,7 +84,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 9; + * optional .ItemList reward_list = 1; * @return this */ public TakePromotionRewardScRsp clearRewardList() { @@ -94,7 +94,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 9; + * optional .ItemList reward_list = 1; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -108,7 +108,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 9; + * optional .ItemList reward_list = 1; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -122,7 +122,7 @@ public final class TakePromotionRewardScRspOuterClass { } /** - * optional .ItemList reward_list = 9; + * optional .ItemList reward_list = 1; * @param value the rewardList to set * @return this */ @@ -198,11 +198,11 @@ public final class TakePromotionRewardScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 32); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 74); + output.writeRawByte((byte) 10); output.writeMessageNoTag(rewardList); } } @@ -226,16 +226,16 @@ public final class TakePromotionRewardScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 32: { + case 40: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 74) { + if (tag != 10) { break; } } - case 74: { + case 10: { // rewardList input.readMessage(rewardList); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TakenChallengeRewardInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/TakenChallengeRewardInfoOuterClass.java index 5b8c46c..b39e972 100644 --- a/src/generated/main/emu/lunarcore/proto/TakenChallengeRewardInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TakenChallengeRewardInfoOuterClass.java @@ -19,14 +19,14 @@ public final class TakenChallengeRewardInfoOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 star_count = 13; + * optional uint32 star_count = 8; */ private int starCount; /** - * optional .ItemList reward = 2; + * optional .ItemList reward_list = 5; */ - private final ItemListOuterClass.ItemList reward = ItemListOuterClass.ItemList.newInstance(); + private final ItemListOuterClass.ItemList rewardList = ItemListOuterClass.ItemList.newInstance(); private TakenChallengeRewardInfo() { } @@ -39,7 +39,7 @@ public final class TakenChallengeRewardInfoOuterClass { } /** - * optional uint32 star_count = 13; + * optional uint32 star_count = 8; * @return whether the starCount field is set */ public boolean hasStarCount() { @@ -47,7 +47,7 @@ public final class TakenChallengeRewardInfoOuterClass { } /** - * optional uint32 star_count = 13; + * optional uint32 star_count = 8; * @return this */ public TakenChallengeRewardInfo clearStarCount() { @@ -57,7 +57,7 @@ public final class TakenChallengeRewardInfoOuterClass { } /** - * optional uint32 star_count = 13; + * optional uint32 star_count = 8; * @return the starCount */ public int getStarCount() { @@ -65,7 +65,7 @@ public final class TakenChallengeRewardInfoOuterClass { } /** - * optional uint32 star_count = 13; + * optional uint32 star_count = 8; * @param value the starCount to set * @return this */ @@ -76,39 +76,39 @@ public final class TakenChallengeRewardInfoOuterClass { } /** - * optional .ItemList reward = 2; - * @return whether the reward field is set + * optional .ItemList reward_list = 5; + * @return whether the rewardList field is set */ - public boolean hasReward() { + public boolean hasRewardList() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .ItemList reward = 2; + * optional .ItemList reward_list = 5; * @return this */ - public TakenChallengeRewardInfo clearReward() { + public TakenChallengeRewardInfo clearRewardList() { bitField0_ &= ~0x00000002; - reward.clear(); + rewardList.clear(); return this; } /** - * optional .ItemList reward = 2; + * optional .ItemList reward_list = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableReward()} if you want to modify it. + * Use {@link #getMutableRewardList()} if you want to modify it. * * @return internal storage object for reading */ - public ItemListOuterClass.ItemList getReward() { - return reward; + public ItemListOuterClass.ItemList getRewardList() { + return rewardList; } /** - * optional .ItemList reward = 2; + * optional .ItemList reward_list = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,19 +116,19 @@ public final class TakenChallengeRewardInfoOuterClass { * * @return internal storage object for modifications */ - public ItemListOuterClass.ItemList getMutableReward() { + public ItemListOuterClass.ItemList getMutableRewardList() { bitField0_ |= 0x00000002; - return reward; + return rewardList; } /** - * optional .ItemList reward = 2; - * @param value the reward to set + * optional .ItemList reward_list = 5; + * @param value the rewardList to set * @return this */ - public TakenChallengeRewardInfo setReward(final ItemListOuterClass.ItemList value) { + public TakenChallengeRewardInfo setRewardList(final ItemListOuterClass.ItemList value) { bitField0_ |= 0x00000002; - reward.copyFrom(value); + rewardList.copyFrom(value); return this; } @@ -138,7 +138,7 @@ public final class TakenChallengeRewardInfoOuterClass { if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; starCount = other.starCount; - reward.copyFrom(other.reward); + rewardList.copyFrom(other.rewardList); } return this; } @@ -152,8 +152,8 @@ public final class TakenChallengeRewardInfoOuterClass { if (other.hasStarCount()) { setStarCount(other.starCount); } - if (other.hasReward()) { - getMutableReward().mergeFrom(other.reward); + if (other.hasRewardList()) { + getMutableRewardList().mergeFrom(other.rewardList); } return this; } @@ -166,7 +166,7 @@ public final class TakenChallengeRewardInfoOuterClass { cachedSize = -1; bitField0_ = 0; starCount = 0; - reward.clear(); + rewardList.clear(); return this; } @@ -177,7 +177,7 @@ public final class TakenChallengeRewardInfoOuterClass { } cachedSize = -1; bitField0_ = 0; - reward.clearQuick(); + rewardList.clearQuick(); return this; } @@ -192,18 +192,18 @@ public final class TakenChallengeRewardInfoOuterClass { TakenChallengeRewardInfo other = (TakenChallengeRewardInfo) o; return bitField0_ == other.bitField0_ && (!hasStarCount() || starCount == other.starCount) - && (!hasReward() || reward.equals(other.reward)); + && (!hasRewardList() || rewardList.equals(other.rewardList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(starCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 18); - output.writeMessageNoTag(reward); + output.writeRawByte((byte) 42); + output.writeMessageNoTag(rewardList); } } @@ -214,7 +214,7 @@ public final class TakenChallengeRewardInfoOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(starCount); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(reward); + size += 1 + ProtoSink.computeMessageSizeNoTag(rewardList); } return size; } @@ -226,18 +226,18 @@ public final class TakenChallengeRewardInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 104: { + case 64: { // starCount starCount = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 18) { + if (tag != 42) { break; } } - case 18: { - // reward - input.readMessage(reward); + case 42: { + // rewardList + input.readMessage(rewardList); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -265,7 +265,7 @@ public final class TakenChallengeRewardInfoOuterClass { output.writeUInt32(FieldNames.starCount, starCount); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.reward, reward); + output.writeMessage(FieldNames.rewardList, rewardList); } output.endObject(); } @@ -289,10 +289,11 @@ public final class TakenChallengeRewardInfoOuterClass { } break; } - case -934326481: { - if (input.isAtField(FieldNames.reward)) { + case 1690977389: + case 898318254: { + if (input.isAtField(FieldNames.rewardList)) { if (!input.trySkipNullValue()) { - input.readMessage(reward); + input.readMessage(rewardList); bitField0_ |= 0x00000002; } } else { @@ -355,7 +356,7 @@ public final class TakenChallengeRewardInfoOuterClass { static class FieldNames { static final FieldName starCount = FieldName.forField("starCount", "star_count"); - static final FieldName reward = FieldName.forField("reward"); + static final FieldName rewardList = FieldName.forField("rewardList", "reward_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java index 1ce666e..1ba28a2 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinInfoOuterClass.java @@ -13,22 +13,22 @@ import us.hebi.quickbuf.ProtoSource; public final class TextJoinInfoOuterClass { /** + *
+   *  TODO: CHECK
+   * 
+ * * Protobuf type {@code TextJoinInfo} */ public static final class TextJoinInfo extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - *
-     *  could be 4, TODO: check
-     * 
- * - * optional uint32 text_item_id = 11; + * optional uint32 text_item_id = 12; */ private int textItemId; /** - * optional uint32 text_item_config_id = 13; + * optional uint32 text_item_config_id = 15; */ private int textItemConfigId; @@ -36,6 +36,10 @@ public final class TextJoinInfoOuterClass { } /** + *
+     *  TODO: CHECK
+     * 
+ * * @return a new empty instance of {@code TextJoinInfo} */ public static TextJoinInfo newInstance() { @@ -43,11 +47,7 @@ public final class TextJoinInfoOuterClass { } /** - *
-     *  could be 4, TODO: check
-     * 
- * - * optional uint32 text_item_id = 11; + * optional uint32 text_item_id = 12; * @return whether the textItemId field is set */ public boolean hasTextItemId() { @@ -55,11 +55,7 @@ public final class TextJoinInfoOuterClass { } /** - *
-     *  could be 4, TODO: check
-     * 
- * - * optional uint32 text_item_id = 11; + * optional uint32 text_item_id = 12; * @return this */ public TextJoinInfo clearTextItemId() { @@ -69,11 +65,7 @@ public final class TextJoinInfoOuterClass { } /** - *
-     *  could be 4, TODO: check
-     * 
- * - * optional uint32 text_item_id = 11; + * optional uint32 text_item_id = 12; * @return the textItemId */ public int getTextItemId() { @@ -81,11 +73,7 @@ public final class TextJoinInfoOuterClass { } /** - *
-     *  could be 4, TODO: check
-     * 
- * - * optional uint32 text_item_id = 11; + * optional uint32 text_item_id = 12; * @param value the textItemId to set * @return this */ @@ -96,7 +84,7 @@ public final class TextJoinInfoOuterClass { } /** - * optional uint32 text_item_config_id = 13; + * optional uint32 text_item_config_id = 15; * @return whether the textItemConfigId field is set */ public boolean hasTextItemConfigId() { @@ -104,7 +92,7 @@ public final class TextJoinInfoOuterClass { } /** - * optional uint32 text_item_config_id = 13; + * optional uint32 text_item_config_id = 15; * @return this */ public TextJoinInfo clearTextItemConfigId() { @@ -114,7 +102,7 @@ public final class TextJoinInfoOuterClass { } /** - * optional uint32 text_item_config_id = 13; + * optional uint32 text_item_config_id = 15; * @return the textItemConfigId */ public int getTextItemConfigId() { @@ -122,7 +110,7 @@ public final class TextJoinInfoOuterClass { } /** - * optional uint32 text_item_config_id = 13; + * optional uint32 text_item_config_id = 15; * @param value the textItemConfigId to set * @return this */ @@ -197,11 +185,11 @@ public final class TextJoinInfoOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(textItemId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 120); output.writeUInt32NoTag(textItemConfigId); } } @@ -225,16 +213,16 @@ public final class TextJoinInfoOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { + case 96: { // textItemId textItemId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 120) { break; } } - case 104: { + case 120: { // textItemConfigId textItemConfigId = input.readUInt32(); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java index 3af9920..5efdb7f 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryCsReqOuterClass.java @@ -14,13 +14,21 @@ import us.hebi.quickbuf.RepeatedInt; public final class TextJoinQueryCsReqOuterClass { /** + *
+   *  OMOMOOKDHNJ
+   * 
+ * * Protobuf type {@code TextJoinQueryCsReq} */ public static final class TextJoinQueryCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; */ private final RepeatedInt textJoinIdList = RepeatedInt.newEmptyInstance(); @@ -28,6 +36,10 @@ public final class TextJoinQueryCsReqOuterClass { } /** + *
+     *  OMOMOOKDHNJ
+     * 
+ * * @return a new empty instance of {@code TextJoinQueryCsReq} */ public static TextJoinQueryCsReq newInstance() { @@ -35,7 +47,11 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; * @return whether the textJoinIdList field is set */ public boolean hasTextJoinIdList() { @@ -43,7 +59,11 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; * @return this */ public TextJoinQueryCsReq clearTextJoinIdList() { @@ -53,7 +73,11 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +91,11 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +109,11 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; * @param value the textJoinIdList to add * @return this */ @@ -92,7 +124,11 @@ public final class TextJoinQueryCsReqOuterClass { } /** - * repeated uint32 text_join_id_list = 11; + *
+     *  GEIEABFPHIG
+     * 
+ * + * repeated uint32 text_join_id_list = 4; * @param values the textJoinIdList to add * @return this */ @@ -163,7 +199,7 @@ public final class TextJoinQueryCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < textJoinIdList.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(textJoinIdList.array()[i]); } } @@ -185,7 +221,7 @@ public final class TextJoinQueryCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 90: { + case 34: { // textJoinIdList [packed=true] input.readPackedUInt32(textJoinIdList, tag); bitField0_ |= 0x00000001; @@ -204,7 +240,7 @@ public final class TextJoinQueryCsReqOuterClass { tag = input.readTag(); break; } - case 88: { + case 32: { // textJoinIdList [packed=false] tag = input.readRepeatedUInt32(textJoinIdList, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java index a2ac986..fd808c8 100644 --- a/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/TextJoinQueryScRspOuterClass.java @@ -14,18 +14,26 @@ import us.hebi.quickbuf.RepeatedMessage; public final class TextJoinQueryScRspOuterClass { /** + *
+   *  PPALKHLPBEJ
+   * 
+ * * Protobuf type {@code TextJoinQueryScRsp} */ public static final class TextJoinQueryScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 12; */ private int retcode; /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; */ private final RepeatedMessage textJoinList = RepeatedMessage.newEmptyInstance(TextJoinInfoOuterClass.TextJoinInfo.getFactory()); @@ -33,6 +41,10 @@ public final class TextJoinQueryScRspOuterClass { } /** + *
+     *  PPALKHLPBEJ
+     * 
+ * * @return a new empty instance of {@code TextJoinQueryScRsp} */ public static TextJoinQueryScRsp newInstance() { @@ -40,7 +52,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 12; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -48,7 +60,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 12; * @return this */ public TextJoinQueryScRsp clearRetcode() { @@ -58,7 +70,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 12; * @return the retcode */ public int getRetcode() { @@ -66,7 +78,7 @@ public final class TextJoinQueryScRspOuterClass { } /** - * optional uint32 retcode = 10; + * optional uint32 retcode = 12; * @param value the retcode to set * @return this */ @@ -77,7 +89,11 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; * @return whether the textJoinList field is set */ public boolean hasTextJoinList() { @@ -85,7 +101,11 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; * @return this */ public TextJoinQueryScRsp clearTextJoinList() { @@ -95,7 +115,11 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -109,7 +133,11 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -123,7 +151,11 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; * @param value the textJoinList to add * @return this */ @@ -134,7 +166,11 @@ public final class TextJoinQueryScRspOuterClass { } /** - * repeated .TextJoinInfo text_join_list = 1; + *
+     *  BIJKICFHCOB
+     * 
+ * + * repeated .TextJoinInfo text_join_list = 9; * @param values the textJoinList to add * @return this */ @@ -211,12 +247,12 @@ public final class TextJoinQueryScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < textJoinList.length(); i++) { - output.writeRawByte((byte) 10); + output.writeRawByte((byte) 74); output.writeMessageNoTag(textJoinList.get(i)); } } @@ -241,16 +277,16 @@ public final class TextJoinQueryScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 96: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 10) { + if (tag != 74) { break; } } - case 10: { + case 74: { // textJoinList tag = input.readRepeatedMessage(textJoinList, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/TrialActivityStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/TrialActivityStatusOuterClass.java new file mode 100644 index 0000000..2532b8d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TrialActivityStatusOuterClass.java @@ -0,0 +1,116 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class TrialActivityStatusOuterClass { + /** + * Protobuf enum {@code TrialActivityStatus} + */ + public enum TrialActivityStatus implements ProtoEnum { + /** + * TRIAL_ACTIVITY_STATUS_NONE = 0; + */ + TRIAL_ACTIVITY_STATUS_NONE("TRIAL_ACTIVITY_STATUS_NONE", 0), + + /** + * TRIAL_ACTIVITY_STATUS_FINISH = 1; + */ + TRIAL_ACTIVITY_STATUS_FINISH("TRIAL_ACTIVITY_STATUS_FINISH", 1); + + /** + * TRIAL_ACTIVITY_STATUS_NONE = 0; + */ + public static final int TRIAL_ACTIVITY_STATUS_NONE_VALUE = 0; + + /** + * TRIAL_ACTIVITY_STATUS_FINISH = 1; + */ + public static final int TRIAL_ACTIVITY_STATUS_FINISH_VALUE = 1; + + private final String name; + + private final int number; + + private TrialActivityStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return TrialActivityStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static TrialActivityStatus forNumber(int value) { + return TrialActivityStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static TrialActivityStatus forNumberOr(int number, TrialActivityStatus other) { + TrialActivityStatus value = forNumber(number); + return value == null ? other : value; + } + + enum TrialActivityStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final TrialActivityStatus[] lookup = new TrialActivityStatus[2]; + + static { + lookup[0] = TRIAL_ACTIVITY_STATUS_NONE; + lookup[1] = TRIAL_ACTIVITY_STATUS_FINISH; + } + + @Override + public final TrialActivityStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final TrialActivityStatus forName(final CharSequence value) { + if (value.length() == 26) { + if (ProtoUtil.isEqual("TRIAL_ACTIVITY_STATUS_NONE", value)) { + return TRIAL_ACTIVITY_STATUS_NONE; + } + } + if (value.length() == 28) { + if (ProtoUtil.isEqual("TRIAL_ACTIVITY_STATUS_FINISH", value)) { + return TRIAL_ACTIVITY_STATUS_FINISH; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TutorialGuideOuterClass.java b/src/generated/main/emu/lunarcore/proto/TutorialGuideOuterClass.java new file mode 100644 index 0000000..d4fc04f --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TutorialGuideOuterClass.java @@ -0,0 +1,371 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class TutorialGuideOuterClass { + /** + * Protobuf type {@code TutorialGuide} + */ + public static final class TutorialGuide extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 13; + */ + private int id; + + /** + * optional .TutorialStatus status = 9; + */ + private int status; + + private TutorialGuide() { + } + + /** + * @return a new empty instance of {@code TutorialGuide} + */ + public static TutorialGuide newInstance() { + return new TutorialGuide(); + } + + /** + * optional uint32 id = 13; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 13; + * @return this + */ + public TutorialGuide clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 13; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 13; + * @param value the id to set + * @return this + */ + public TutorialGuide setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .TutorialStatus status = 9; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .TutorialStatus status = 9; + * @return this + */ + public TutorialGuide clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .TutorialStatus status = 9; + * @return the status + */ + public TutorialStatusOuterClass.TutorialStatus getStatus() { + return TutorialStatusOuterClass.TutorialStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link TutorialGuide#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link TutorialStatusOuterClass.TutorialStatus}. Setting an invalid value + * can cause {@link TutorialGuide#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public TutorialGuide setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .TutorialStatus status = 9; + * @param value the status to set + * @return this + */ + public TutorialGuide setStatus(final TutorialStatusOuterClass.TutorialStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + @Override + public TutorialGuide copyFrom(final TutorialGuide other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + status = other.status; + } + return this; + } + + @Override + public TutorialGuide mergeFrom(final TutorialGuide other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + return this; + } + + @Override + public TutorialGuide clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + status = 0; + return this; + } + + @Override + public TutorialGuide clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof TutorialGuide)) { + return false; + } + TutorialGuide other = (TutorialGuide) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasStatus() || status == other.status); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 72); + output.writeEnumNoTag(status); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public TutorialGuide mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 104: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 72) { + break; + } + } + case 72: { + // status + final int value = input.readInt32(); + if (TutorialStatusOuterClass.TutorialStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, TutorialStatusOuterClass.TutorialStatus.converter()); + } + output.endObject(); + } + + @Override + public TutorialGuide mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final TutorialStatusOuterClass.TutorialStatus value = input.readEnum(TutorialStatusOuterClass.TutorialStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public TutorialGuide clone() { + return new TutorialGuide().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static TutorialGuide parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new TutorialGuide(), data).checkInitialized(); + } + + public static TutorialGuide parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new TutorialGuide(), input).checkInitialized(); + } + + public static TutorialGuide parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new TutorialGuide(), input).checkInitialized(); + } + + /** + * @return factory for creating TutorialGuide messages + */ + public static MessageFactory getFactory() { + return TutorialGuideFactory.INSTANCE; + } + + private enum TutorialGuideFactory implements MessageFactory { + INSTANCE; + + @Override + public TutorialGuide create() { + return TutorialGuide.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName status = FieldName.forField("status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TutorialOuterClass.java b/src/generated/main/emu/lunarcore/proto/TutorialOuterClass.java new file mode 100644 index 0000000..6a3987b --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TutorialOuterClass.java @@ -0,0 +1,371 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class TutorialOuterClass { + /** + * Protobuf type {@code Tutorial} + */ + public static final class Tutorial extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 id = 3; + */ + private int id; + + /** + * optional .TutorialStatus status = 2; + */ + private int status; + + private Tutorial() { + } + + /** + * @return a new empty instance of {@code Tutorial} + */ + public static Tutorial newInstance() { + return new Tutorial(); + } + + /** + * optional uint32 id = 3; + * @return whether the id field is set + */ + public boolean hasId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 id = 3; + * @return this + */ + public Tutorial clearId() { + bitField0_ &= ~0x00000001; + id = 0; + return this; + } + + /** + * optional uint32 id = 3; + * @return the id + */ + public int getId() { + return id; + } + + /** + * optional uint32 id = 3; + * @param value the id to set + * @return this + */ + public Tutorial setId(final int value) { + bitField0_ |= 0x00000001; + id = value; + return this; + } + + /** + * optional .TutorialStatus status = 2; + * @return whether the status field is set + */ + public boolean hasStatus() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .TutorialStatus status = 2; + * @return this + */ + public Tutorial clearStatus() { + bitField0_ &= ~0x00000002; + status = 0; + return this; + } + + /** + * optional .TutorialStatus status = 2; + * @return the status + */ + public TutorialStatusOuterClass.TutorialStatus getStatus() { + return TutorialStatusOuterClass.TutorialStatus.forNumber(status); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link Tutorial#getStatus()}.getNumber(). + * + * @return numeric wire representation + */ + public int getStatusValue() { + return status; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link TutorialStatusOuterClass.TutorialStatus}. Setting an invalid value + * can cause {@link Tutorial#getStatus()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public Tutorial setStatusValue(final int value) { + bitField0_ |= 0x00000002; + status = value; + return this; + } + + /** + * optional .TutorialStatus status = 2; + * @param value the status to set + * @return this + */ + public Tutorial setStatus(final TutorialStatusOuterClass.TutorialStatus value) { + bitField0_ |= 0x00000002; + status = value.getNumber(); + return this; + } + + @Override + public Tutorial copyFrom(final Tutorial other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + id = other.id; + status = other.status; + } + return this; + } + + @Override + public Tutorial mergeFrom(final Tutorial other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasId()) { + setId(other.id); + } + if (other.hasStatus()) { + setStatusValue(other.status); + } + return this; + } + + @Override + public Tutorial clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + id = 0; + status = 0; + return this; + } + + @Override + public Tutorial clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof Tutorial)) { + return false; + } + Tutorial other = (Tutorial) o; + return bitField0_ == other.bitField0_ + && (!hasId() || id == other.id) + && (!hasStatus() || status == other.status); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(status); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(status); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public Tutorial mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 24: { + // id + id = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // status + final int value = input.readInt32(); + if (TutorialStatusOuterClass.TutorialStatus.forNumber(value) != null) { + status = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.id, id); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.status, status, TutorialStatusOuterClass.TutorialStatus.converter()); + } + output.endObject(); + } + + @Override + public Tutorial mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 3355: { + if (input.isAtField(FieldNames.id)) { + if (!input.trySkipNullValue()) { + id = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -892481550: { + if (input.isAtField(FieldNames.status)) { + if (!input.trySkipNullValue()) { + final TutorialStatusOuterClass.TutorialStatus value = input.readEnum(TutorialStatusOuterClass.TutorialStatus.converter()); + if (value != null) { + status = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public Tutorial clone() { + return new Tutorial().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static Tutorial parseFrom(final byte[] data) throws InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new Tutorial(), data).checkInitialized(); + } + + public static Tutorial parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new Tutorial(), input).checkInitialized(); + } + + public static Tutorial parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new Tutorial(), input).checkInitialized(); + } + + /** + * @return factory for creating Tutorial messages + */ + public static MessageFactory getFactory() { + return TutorialFactory.INSTANCE; + } + + private enum TutorialFactory implements MessageFactory { + INSTANCE; + + @Override + public Tutorial create() { + return Tutorial.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName id = FieldName.forField("id"); + + static final FieldName status = FieldName.forField("status"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/TutorialStatusOuterClass.java b/src/generated/main/emu/lunarcore/proto/TutorialStatusOuterClass.java new file mode 100644 index 0000000..c45e6d1 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/TutorialStatusOuterClass.java @@ -0,0 +1,130 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import us.hebi.quickbuf.ProtoEnum; +import us.hebi.quickbuf.ProtoUtil; + +public final class TutorialStatusOuterClass { + /** + * Protobuf enum {@code TutorialStatus} + */ + public enum TutorialStatus implements ProtoEnum { + /** + * TUTORIAL_NONE = 0; + */ + TUTORIAL_NONE("TUTORIAL_NONE", 0), + + /** + * TUTORIAL_UNLOCK = 1; + */ + TUTORIAL_UNLOCK("TUTORIAL_UNLOCK", 1), + + /** + * TUTORIAL_FINISH = 2; + */ + TUTORIAL_FINISH("TUTORIAL_FINISH", 2); + + /** + * TUTORIAL_NONE = 0; + */ + public static final int TUTORIAL_NONE_VALUE = 0; + + /** + * TUTORIAL_UNLOCK = 1; + */ + public static final int TUTORIAL_UNLOCK_VALUE = 1; + + /** + * TUTORIAL_FINISH = 2; + */ + public static final int TUTORIAL_FINISH_VALUE = 2; + + private final String name; + + private final int number; + + private TutorialStatus(String name, int number) { + this.name = name; + this.number = number; + } + + /** + * @return the string representation of enum entry + */ + @Override + public String getName() { + return name; + } + + /** + * @return the numeric wire value of this enum entry + */ + @Override + public int getNumber() { + return number; + } + + /** + * @return a converter that maps between this enum's numeric and text representations + */ + public static ProtoEnum.EnumConverter converter() { + return TutorialStatusConverter.INSTANCE; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value, or null if unknown. + */ + public static TutorialStatus forNumber(int value) { + return TutorialStatusConverter.INSTANCE.forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @param other Fallback value in case the value is not known. + * @return The enum associated with the given numeric wire value, or the fallback value if unknown. + */ + public static TutorialStatus forNumberOr(int number, TutorialStatus other) { + TutorialStatus value = forNumber(number); + return value == null ? other : value; + } + + enum TutorialStatusConverter implements ProtoEnum.EnumConverter { + INSTANCE; + + private static final TutorialStatus[] lookup = new TutorialStatus[3]; + + static { + lookup[0] = TUTORIAL_NONE; + lookup[1] = TUTORIAL_UNLOCK; + lookup[2] = TUTORIAL_FINISH; + } + + @Override + public final TutorialStatus forNumber(final int value) { + if (value >= 0 && value < lookup.length) { + return lookup[value]; + } + return null; + } + + @Override + public final TutorialStatus forName(final CharSequence value) { + if (value.length() == 13) { + if (ProtoUtil.isEqual("TUTORIAL_NONE", value)) { + return TUTORIAL_NONE; + } + } + if (value.length() == 15) { + if (ProtoUtil.isEqual("TUTORIAL_UNLOCK", value)) { + return TUTORIAL_UNLOCK; + } + if (ProtoUtil.isEqual("TUTORIAL_FINISH", value)) { + return TUTORIAL_FINISH; + } + } + return null; + } + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UnlockAvatarPathCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockAvatarPathCsReqOuterClass.java new file mode 100644 index 0000000..6cdfea5 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UnlockAvatarPathCsReqOuterClass.java @@ -0,0 +1,294 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; + +public final class UnlockAvatarPathCsReqOuterClass { + /** + * Protobuf type {@code UnlockAvatarPathCsReq} + */ + public static final class UnlockAvatarPathCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional .MultiPathAvatarType avatar_id = 12; + */ + private int avatarId; + + private UnlockAvatarPathCsReq() { + } + + /** + * @return a new empty instance of {@code UnlockAvatarPathCsReq} + */ + public static UnlockAvatarPathCsReq newInstance() { + return new UnlockAvatarPathCsReq(); + } + + /** + * optional .MultiPathAvatarType avatar_id = 12; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional .MultiPathAvatarType avatar_id = 12; + * @return this + */ + public UnlockAvatarPathCsReq clearAvatarId() { + bitField0_ &= ~0x00000001; + avatarId = 0; + return this; + } + + /** + * optional .MultiPathAvatarType avatar_id = 12; + * @return the avatarId + */ + public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getAvatarId() { + return MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(avatarId); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link UnlockAvatarPathCsReq#getAvatarId()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarIdValue() { + return avatarId; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MultiPathAvatarTypeOuterClass.MultiPathAvatarType}. Setting an invalid value + * can cause {@link UnlockAvatarPathCsReq#getAvatarId()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public UnlockAvatarPathCsReq setAvatarIdValue(final int value) { + bitField0_ |= 0x00000001; + avatarId = value; + return this; + } + + /** + * optional .MultiPathAvatarType avatar_id = 12; + * @param value the avatarId to set + * @return this + */ + public UnlockAvatarPathCsReq setAvatarId( + final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value) { + bitField0_ |= 0x00000001; + avatarId = value.getNumber(); + return this; + } + + @Override + public UnlockAvatarPathCsReq copyFrom(final UnlockAvatarPathCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + avatarId = other.avatarId; + } + return this; + } + + @Override + public UnlockAvatarPathCsReq mergeFrom(final UnlockAvatarPathCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasAvatarId()) { + setAvatarIdValue(other.avatarId); + } + return this; + } + + @Override + public UnlockAvatarPathCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + avatarId = 0; + return this; + } + + @Override + public UnlockAvatarPathCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UnlockAvatarPathCsReq)) { + return false; + } + UnlockAvatarPathCsReq other = (UnlockAvatarPathCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasAvatarId() || avatarId == other.avatarId); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeEnumNoTag(avatarId); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarId); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UnlockAvatarPathCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // avatarId + final int value = input.readInt32(); + if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { + avatarId = value; + bitField0_ |= 0x00000001; + } + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeEnum(FieldNames.avatarId, avatarId, MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); + } + output.endObject(); + } + + @Override + public UnlockAvatarPathCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value = input.readEnum(MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); + if (value != null) { + avatarId = value.getNumber(); + bitField0_ |= 0x00000001; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UnlockAvatarPathCsReq clone() { + return new UnlockAvatarPathCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UnlockAvatarPathCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UnlockAvatarPathCsReq(), data).checkInitialized(); + } + + public static UnlockAvatarPathCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockAvatarPathCsReq(), input).checkInitialized(); + } + + public static UnlockAvatarPathCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockAvatarPathCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating UnlockAvatarPathCsReq messages + */ + public static MessageFactory getFactory() { + return UnlockAvatarPathCsReqFactory.INSTANCE; + } + + private enum UnlockAvatarPathCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public UnlockAvatarPathCsReq create() { + return UnlockAvatarPathCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UnlockAvatarPathScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockAvatarPathScRspOuterClass.java new file mode 100644 index 0000000..ccdb2a9 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UnlockAvatarPathScRspOuterClass.java @@ -0,0 +1,598 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedInt; + +public final class UnlockAvatarPathScRspOuterClass { + /** + * Protobuf type {@code UnlockAvatarPathScRsp} + */ + public static final class UnlockAvatarPathScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 12; + */ + private int retcode; + + /** + * optional .MultiPathAvatarType avatar_id = 2; + */ + private int avatarId; + + /** + * optional .ItemList reward_list = 9; + */ + private final ItemListOuterClass.ItemList rewardList = ItemListOuterClass.ItemList.newInstance(); + + /** + * repeated uint32 basic_type_id_list = 8; + */ + private final RepeatedInt basicTypeIdList = RepeatedInt.newEmptyInstance(); + + private UnlockAvatarPathScRsp() { + } + + /** + * @return a new empty instance of {@code UnlockAvatarPathScRsp} + */ + public static UnlockAvatarPathScRsp newInstance() { + return new UnlockAvatarPathScRsp(); + } + + /** + * optional uint32 retcode = 12; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 12; + * @return this + */ + public UnlockAvatarPathScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 12; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 12; + * @param value the retcode to set + * @return this + */ + public UnlockAvatarPathScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional .MultiPathAvatarType avatar_id = 2; + * @return whether the avatarId field is set + */ + public boolean hasAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional .MultiPathAvatarType avatar_id = 2; + * @return this + */ + public UnlockAvatarPathScRsp clearAvatarId() { + bitField0_ &= ~0x00000002; + avatarId = 0; + return this; + } + + /** + * optional .MultiPathAvatarType avatar_id = 2; + * @return the avatarId + */ + public MultiPathAvatarTypeOuterClass.MultiPathAvatarType getAvatarId() { + return MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(avatarId); + } + + /** + * Gets the value of the internal enum store. The result is + * equivalent to {@link UnlockAvatarPathScRsp#getAvatarId()}.getNumber(). + * + * @return numeric wire representation + */ + public int getAvatarIdValue() { + return avatarId; + } + + /** + * Sets the value of the internal enum store. This does not + * do any validity checks, so be sure to use appropriate value + * constants from {@link MultiPathAvatarTypeOuterClass.MultiPathAvatarType}. Setting an invalid value + * can cause {@link UnlockAvatarPathScRsp#getAvatarId()} to return null + * + * @param value the numeric wire value to set + * @return this + */ + public UnlockAvatarPathScRsp setAvatarIdValue(final int value) { + bitField0_ |= 0x00000002; + avatarId = value; + return this; + } + + /** + * optional .MultiPathAvatarType avatar_id = 2; + * @param value the avatarId to set + * @return this + */ + public UnlockAvatarPathScRsp setAvatarId( + final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value) { + bitField0_ |= 0x00000002; + avatarId = value.getNumber(); + return this; + } + + /** + * optional .ItemList reward_list = 9; + * @return whether the rewardList field is set + */ + public boolean hasRewardList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional .ItemList reward_list = 9; + * @return this + */ + public UnlockAvatarPathScRsp clearRewardList() { + bitField0_ &= ~0x00000004; + rewardList.clear(); + return this; + } + + /** + * optional .ItemList reward_list = 9; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableRewardList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public ItemListOuterClass.ItemList getRewardList() { + return rewardList; + } + + /** + * optional .ItemList reward_list = 9; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public ItemListOuterClass.ItemList getMutableRewardList() { + bitField0_ |= 0x00000004; + return rewardList; + } + + /** + * optional .ItemList reward_list = 9; + * @param value the rewardList to set + * @return this + */ + public UnlockAvatarPathScRsp setRewardList(final ItemListOuterClass.ItemList value) { + bitField0_ |= 0x00000004; + rewardList.copyFrom(value); + return this; + } + + /** + * repeated uint32 basic_type_id_list = 8; + * @return whether the basicTypeIdList field is set + */ + public boolean hasBasicTypeIdList() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * repeated uint32 basic_type_id_list = 8; + * @return this + */ + public UnlockAvatarPathScRsp clearBasicTypeIdList() { + bitField0_ &= ~0x00000008; + basicTypeIdList.clear(); + return this; + } + + /** + * repeated uint32 basic_type_id_list = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableBasicTypeIdList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedInt getBasicTypeIdList() { + return basicTypeIdList; + } + + /** + * repeated uint32 basic_type_id_list = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedInt getMutableBasicTypeIdList() { + bitField0_ |= 0x00000008; + return basicTypeIdList; + } + + /** + * repeated uint32 basic_type_id_list = 8; + * @param value the basicTypeIdList to add + * @return this + */ + public UnlockAvatarPathScRsp addBasicTypeIdList(final int value) { + bitField0_ |= 0x00000008; + basicTypeIdList.add(value); + return this; + } + + /** + * repeated uint32 basic_type_id_list = 8; + * @param values the basicTypeIdList to add + * @return this + */ + public UnlockAvatarPathScRsp addAllBasicTypeIdList(final int... values) { + bitField0_ |= 0x00000008; + basicTypeIdList.addAll(values); + return this; + } + + @Override + public UnlockAvatarPathScRsp copyFrom(final UnlockAvatarPathScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + avatarId = other.avatarId; + rewardList.copyFrom(other.rewardList); + basicTypeIdList.copyFrom(other.basicTypeIdList); + } + return this; + } + + @Override + public UnlockAvatarPathScRsp mergeFrom(final UnlockAvatarPathScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasAvatarId()) { + setAvatarIdValue(other.avatarId); + } + if (other.hasRewardList()) { + getMutableRewardList().mergeFrom(other.rewardList); + } + if (other.hasBasicTypeIdList()) { + getMutableBasicTypeIdList().addAll(other.basicTypeIdList); + } + return this; + } + + @Override + public UnlockAvatarPathScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + avatarId = 0; + rewardList.clear(); + basicTypeIdList.clear(); + return this; + } + + @Override + public UnlockAvatarPathScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + rewardList.clearQuick(); + basicTypeIdList.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UnlockAvatarPathScRsp)) { + return false; + } + UnlockAvatarPathScRsp other = (UnlockAvatarPathScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasAvatarId() || avatarId == other.avatarId) + && (!hasRewardList() || rewardList.equals(other.rewardList)) + && (!hasBasicTypeIdList() || basicTypeIdList.equals(other.basicTypeIdList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 96); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 16); + output.writeEnumNoTag(avatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 74); + output.writeMessageNoTag(rewardList); + } + if ((bitField0_ & 0x00000008) != 0) { + for (int i = 0; i < basicTypeIdList.length(); i++) { + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(basicTypeIdList.array()[i]); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeEnumSizeNoTag(avatarId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeMessageSizeNoTag(rewardList); + } + if ((bitField0_ & 0x00000008) != 0) { + size += (1 * basicTypeIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(basicTypeIdList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UnlockAvatarPathScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 96: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 16) { + break; + } + } + case 16: { + // avatarId + final int value = input.readInt32(); + if (MultiPathAvatarTypeOuterClass.MultiPathAvatarType.forNumber(value) != null) { + avatarId = value; + bitField0_ |= 0x00000002; + } + tag = input.readTag(); + if (tag != 74) { + break; + } + } + case 74: { + // rewardList + input.readMessage(rewardList); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // basicTypeIdList [packed=true] + input.readPackedUInt32(basicTypeIdList, tag); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + case 64: { + // basicTypeIdList [packed=false] + tag = input.readRepeatedUInt32(basicTypeIdList, tag); + bitField0_ |= 0x00000008; + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeEnum(FieldNames.avatarId, avatarId, MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeMessage(FieldNames.rewardList, rewardList); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRepeatedUInt32(FieldNames.basicTypeIdList, basicTypeIdList); + } + output.endObject(); + } + + @Override + public UnlockAvatarPathScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1787287636: + case -428636735: { + if (input.isAtField(FieldNames.avatarId)) { + if (!input.trySkipNullValue()) { + final MultiPathAvatarTypeOuterClass.MultiPathAvatarType value = input.readEnum(MultiPathAvatarTypeOuterClass.MultiPathAvatarType.converter()); + if (value != null) { + avatarId = value.getNumber(); + bitField0_ |= 0x00000002; + } else { + input.skipUnknownEnumValue(); + } + } + } else { + input.skipUnknownField(); + } + break; + } + case 1690977389: + case 898318254: { + if (input.isAtField(FieldNames.rewardList)) { + if (!input.trySkipNullValue()) { + input.readMessage(rewardList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -332160255: + case 99090862: { + if (input.isAtField(FieldNames.basicTypeIdList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedUInt32(basicTypeIdList); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UnlockAvatarPathScRsp clone() { + return new UnlockAvatarPathScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UnlockAvatarPathScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UnlockAvatarPathScRsp(), data).checkInitialized(); + } + + public static UnlockAvatarPathScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockAvatarPathScRsp(), input).checkInitialized(); + } + + public static UnlockAvatarPathScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockAvatarPathScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating UnlockAvatarPathScRsp messages + */ + public static MessageFactory getFactory() { + return UnlockAvatarPathScRspFactory.INSTANCE; + } + + private enum UnlockAvatarPathScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public UnlockAvatarPathScRsp create() { + return UnlockAvatarPathScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName avatarId = FieldName.forField("avatarId", "avatar_id"); + + static final FieldName rewardList = FieldName.forField("rewardList", "reward_list"); + + static final FieldName basicTypeIdList = FieldName.forField("basicTypeIdList", "basic_type_id_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueSelectCellCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockAvatarSkinScNotifyOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/ChessRogueSelectCellCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/UnlockAvatarSkinScNotifyOuterClass.java index 372a6b9..64509a0 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueSelectCellCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockAvatarSkinScNotifyOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueSelectCellCsReqOuterClass { +public final class UnlockAvatarSkinScNotifyOuterClass { /** - * Protobuf type {@code ChessRogueSelectCellCsReq} + * Protobuf type {@code UnlockAvatarSkinScNotify} */ - public static final class ChessRogueSelectCellCsReq extends ProtoMessage implements Cloneable { + public static final class UnlockAvatarSkinScNotify extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 cell_id = 15; + * optional uint32 avatar_skin_id = 3; */ - private int cellId; + private int avatarSkinId; - private ChessRogueSelectCellCsReq() { + private UnlockAvatarSkinScNotify() { } /** - * @return a new empty instance of {@code ChessRogueSelectCellCsReq} + * @return a new empty instance of {@code UnlockAvatarSkinScNotify} */ - public static ChessRogueSelectCellCsReq newInstance() { - return new ChessRogueSelectCellCsReq(); + public static UnlockAvatarSkinScNotify newInstance() { + return new UnlockAvatarSkinScNotify(); } /** - * optional uint32 cell_id = 15; - * @return whether the cellId field is set + * optional uint32 avatar_skin_id = 3; + * @return whether the avatarSkinId field is set */ - public boolean hasCellId() { + public boolean hasAvatarSkinId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 cell_id = 15; + * optional uint32 avatar_skin_id = 3; * @return this */ - public ChessRogueSelectCellCsReq clearCellId() { + public UnlockAvatarSkinScNotify clearAvatarSkinId() { bitField0_ &= ~0x00000001; - cellId = 0; + avatarSkinId = 0; return this; } /** - * optional uint32 cell_id = 15; - * @return the cellId + * optional uint32 avatar_skin_id = 3; + * @return the avatarSkinId */ - public int getCellId() { - return cellId; + public int getAvatarSkinId() { + return avatarSkinId; } /** - * optional uint32 cell_id = 15; - * @param value the cellId to set + * optional uint32 avatar_skin_id = 3; + * @param value the avatarSkinId to set * @return this */ - public ChessRogueSelectCellCsReq setCellId(final int value) { + public UnlockAvatarSkinScNotify setAvatarSkinId(final int value) { bitField0_ |= 0x00000001; - cellId = value; + avatarSkinId = value; return this; } @Override - public ChessRogueSelectCellCsReq copyFrom(final ChessRogueSelectCellCsReq other) { + public UnlockAvatarSkinScNotify copyFrom(final UnlockAvatarSkinScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - cellId = other.cellId; + avatarSkinId = other.avatarSkinId; } return this; } @Override - public ChessRogueSelectCellCsReq mergeFrom(final ChessRogueSelectCellCsReq other) { + public UnlockAvatarSkinScNotify mergeFrom(final UnlockAvatarSkinScNotify other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasCellId()) { - setCellId(other.cellId); + if (other.hasAvatarSkinId()) { + setAvatarSkinId(other.avatarSkinId); } return this; } @Override - public ChessRogueSelectCellCsReq clear() { + public UnlockAvatarSkinScNotify clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - cellId = 0; + avatarSkinId = 0; return this; } @Override - public ChessRogueSelectCellCsReq clearQuick() { + public UnlockAvatarSkinScNotify clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class ChessRogueSelectCellCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueSelectCellCsReq)) { + if (!(o instanceof UnlockAvatarSkinScNotify)) { return false; } - ChessRogueSelectCellCsReq other = (ChessRogueSelectCellCsReq) o; + UnlockAvatarSkinScNotify other = (UnlockAvatarSkinScNotify) o; return bitField0_ == other.bitField0_ - && (!hasCellId() || cellId == other.cellId); + && (!hasAvatarSkinId() || avatarSkinId == other.avatarSkinId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(cellId); + output.writeRawByte((byte) 24); + output.writeUInt32NoTag(avatarSkinId); } } @@ -138,21 +138,21 @@ public final class ChessRogueSelectCellCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(cellId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(avatarSkinId); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueSelectCellCsReq mergeFrom(final ProtoSource input) throws IOException { + public UnlockAvatarSkinScNotify mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 120: { - // cellId - cellId = input.readUInt32(); + case 24: { + // avatarSkinId + avatarSkinId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class ChessRogueSelectCellCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.cellId, cellId); + output.writeUInt32(FieldNames.avatarSkinId, avatarSkinId); } output.endObject(); } @Override - public ChessRogueSelectCellCsReq mergeFrom(final JsonSource input) throws IOException { + public UnlockAvatarSkinScNotify mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1364082147: - case 663147800: { - if (input.isAtField(FieldNames.cellId)) { + case -920647119: + case -1975894473: { + if (input.isAtField(FieldNames.avatarSkinId)) { if (!input.trySkipNullValue()) { - cellId = input.readUInt32(); + avatarSkinId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class ChessRogueSelectCellCsReqOuterClass { } @Override - public ChessRogueSelectCellCsReq clone() { - return new ChessRogueSelectCellCsReq().copyFrom(this); + public UnlockAvatarSkinScNotify clone() { + return new UnlockAvatarSkinScNotify().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class ChessRogueSelectCellCsReqOuterClass { return ((bitField0_) == 0); } - public static ChessRogueSelectCellCsReq parseFrom(final byte[] data) throws + public static UnlockAvatarSkinScNotify parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueSelectCellCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new UnlockAvatarSkinScNotify(), data).checkInitialized(); } - public static ChessRogueSelectCellCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueSelectCellCsReq(), input).checkInitialized(); + public static UnlockAvatarSkinScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockAvatarSkinScNotify(), input).checkInitialized(); } - public static ChessRogueSelectCellCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueSelectCellCsReq(), input).checkInitialized(); + public static UnlockAvatarSkinScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockAvatarSkinScNotify(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueSelectCellCsReq messages + * @return factory for creating UnlockAvatarSkinScNotify messages */ - public static MessageFactory getFactory() { - return ChessRogueSelectCellCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return UnlockAvatarSkinScNotifyFactory.INSTANCE; } - private enum ChessRogueSelectCellCsReqFactory implements MessageFactory { + private enum UnlockAvatarSkinScNotifyFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueSelectCellCsReq create() { - return ChessRogueSelectCellCsReq.newInstance(); + public UnlockAvatarSkinScNotify create() { + return UnlockAvatarSkinScNotify.newInstance(); } } @@ -254,7 +254,7 @@ public final class ChessRogueSelectCellCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName cellId = FieldName.forField("cellId", "cell_id"); + static final FieldName avatarSkinId = FieldName.forField("avatarSkinId", "avatar_skin_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java index 8d7fba2..baf8a6b 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicCsReqOuterClass.java @@ -20,7 +20,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; */ private final RepeatedInt unlockIds = RepeatedInt.newEmptyInstance(); @@ -35,7 +35,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; * @return whether the unlockIds field is set */ public boolean hasUnlockIds() { @@ -43,7 +43,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; * @return this */ public UnlockBackGroundMusicCsReq clearUnlockIds() { @@ -53,7 +53,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -67,7 +67,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -81,7 +81,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; * @param value the unlockIds to add * @return this */ @@ -92,7 +92,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { } /** - * repeated uint32 unlock_ids = 3; + * repeated uint32 unlock_ids = 5; * @param values the unlockIds to add * @return this */ @@ -163,7 +163,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { for (int i = 0; i < unlockIds.length(); i++) { - output.writeRawByte((byte) 24); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(unlockIds.array()[i]); } } @@ -185,7 +185,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 26: { + case 42: { // unlockIds [packed=true] input.readPackedUInt32(unlockIds, tag); bitField0_ |= 0x00000001; @@ -204,7 +204,7 @@ public final class UnlockBackGroundMusicCsReqOuterClass { tag = input.readTag(); break; } - case 24: { + case 40: { // unlockIds [packed=false] tag = input.readRepeatedUInt32(unlockIds, tag); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java index 756b945..aab91e0 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockBackGroundMusicScRspOuterClass.java @@ -21,17 +21,17 @@ public final class UnlockBackGroundMusicScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 4; */ private int retcode; /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; */ private final RepeatedInt unlockedIds = RepeatedInt.newEmptyInstance(); /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; */ private final RepeatedMessage musicList = RepeatedMessage.newEmptyInstance(UnlockedMusicOuterClass.UnlockedMusic.getFactory()); @@ -46,7 +46,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 4; * @return whether the retcode field is set */ public boolean hasRetcode() { @@ -54,7 +54,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 4; * @return this */ public UnlockBackGroundMusicScRsp clearRetcode() { @@ -64,7 +64,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 4; * @return the retcode */ public int getRetcode() { @@ -72,7 +72,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * optional uint32 retcode = 1; + * optional uint32 retcode = 4; * @param value the retcode to set * @return this */ @@ -83,7 +83,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; * @return whether the unlockedIds field is set */ public boolean hasUnlockedIds() { @@ -91,7 +91,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; * @return this */ public UnlockBackGroundMusicScRsp clearUnlockedIds() { @@ -101,7 +101,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -115,7 +115,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -129,7 +129,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; * @param value the unlockedIds to add * @return this */ @@ -140,7 +140,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated uint32 unlocked_ids = 11; + * repeated uint32 unlocked_ids = 5; * @param values the unlockedIds to add * @return this */ @@ -151,7 +151,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; * @return whether the musicList field is set */ public boolean hasMusicList() { @@ -159,7 +159,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; * @return this */ public UnlockBackGroundMusicScRsp clearMusicList() { @@ -169,7 +169,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -183,7 +183,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -197,7 +197,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; * @param value the musicList to add * @return this */ @@ -209,7 +209,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { } /** - * repeated .UnlockedMusic music_list = 2; + * repeated .UnlockedMusic music_list = 8; * @param values the musicList to add * @return this */ @@ -293,18 +293,18 @@ public final class UnlockBackGroundMusicScRspOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 32); output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { for (int i = 0; i < unlockedIds.length(); i++) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 40); output.writeUInt32NoTag(unlockedIds.array()[i]); } } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < musicList.length(); i++) { - output.writeRawByte((byte) 18); + output.writeRawByte((byte) 66); output.writeMessageNoTag(musicList.get(i)); } } @@ -332,25 +332,25 @@ public final class UnlockBackGroundMusicScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 32: { // retcode retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 90) { + if (tag != 42) { break; } } - case 90: { + case 42: { // unlockedIds [packed=true] input.readPackedUInt32(unlockedIds, tag); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 18) { + if (tag != 66) { break; } } - case 18: { + case 66: { // musicList tag = input.readRepeatedMessage(musicList, tag); bitField0_ |= 0x00000004; @@ -368,7 +368,7 @@ public final class UnlockBackGroundMusicScRspOuterClass { tag = input.readTag(); break; } - case 88: { + case 40: { // unlockedIds [packed=false] tag = input.readRepeatedUInt32(unlockedIds, tag); bitField0_ |= 0x00000002; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java index d0815b1..9ccc543 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockChatBubbleScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 bubble_id = 1; + * optional uint32 bubble_id = 6; */ private int bubbleId; @@ -34,7 +34,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { } /** - * optional uint32 bubble_id = 1; + * optional uint32 bubble_id = 6; * @return whether the bubbleId field is set */ public boolean hasBubbleId() { @@ -42,7 +42,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { } /** - * optional uint32 bubble_id = 1; + * optional uint32 bubble_id = 6; * @return this */ public UnlockChatBubbleScNotify clearBubbleId() { @@ -52,7 +52,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { } /** - * optional uint32 bubble_id = 1; + * optional uint32 bubble_id = 6; * @return the bubbleId */ public int getBubbleId() { @@ -60,7 +60,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { } /** - * optional uint32 bubble_id = 1; + * optional uint32 bubble_id = 6; * @param value the bubbleId to set * @return this */ @@ -129,7 +129,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 8); + output.writeRawByte((byte) 48); output.writeUInt32NoTag(bubbleId); } } @@ -150,7 +150,7 @@ public final class UnlockChatBubbleScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 8: { + case 48: { // bubbleId bubbleId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/SelectRogueMiracleCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockPhoneCaseScNotifyOuterClass.java similarity index 53% rename from src/generated/main/emu/lunarcore/proto/SelectRogueMiracleCsReqOuterClass.java rename to src/generated/main/emu/lunarcore/proto/UnlockPhoneCaseScNotifyOuterClass.java index 251d8c8..0b7e5ef 100644 --- a/src/generated/main/emu/lunarcore/proto/SelectRogueMiracleCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockPhoneCaseScNotifyOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class SelectRogueMiracleCsReqOuterClass { +public final class UnlockPhoneCaseScNotifyOuterClass { /** - * Protobuf type {@code SelectRogueMiracleCsReq} + * Protobuf type {@code UnlockPhoneCaseScNotify} */ - public static final class SelectRogueMiracleCsReq extends ProtoMessage implements Cloneable { + public static final class UnlockPhoneCaseScNotify extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 miracle_id = 3; + * optional uint32 phone_case_id = 9; */ - private int miracleId; + private int phoneCaseId; - private SelectRogueMiracleCsReq() { + private UnlockPhoneCaseScNotify() { } /** - * @return a new empty instance of {@code SelectRogueMiracleCsReq} + * @return a new empty instance of {@code UnlockPhoneCaseScNotify} */ - public static SelectRogueMiracleCsReq newInstance() { - return new SelectRogueMiracleCsReq(); + public static UnlockPhoneCaseScNotify newInstance() { + return new UnlockPhoneCaseScNotify(); } /** - * optional uint32 miracle_id = 3; - * @return whether the miracleId field is set + * optional uint32 phone_case_id = 9; + * @return whether the phoneCaseId field is set */ - public boolean hasMiracleId() { + public boolean hasPhoneCaseId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 miracle_id = 3; + * optional uint32 phone_case_id = 9; * @return this */ - public SelectRogueMiracleCsReq clearMiracleId() { + public UnlockPhoneCaseScNotify clearPhoneCaseId() { bitField0_ &= ~0x00000001; - miracleId = 0; + phoneCaseId = 0; return this; } /** - * optional uint32 miracle_id = 3; - * @return the miracleId + * optional uint32 phone_case_id = 9; + * @return the phoneCaseId */ - public int getMiracleId() { - return miracleId; + public int getPhoneCaseId() { + return phoneCaseId; } /** - * optional uint32 miracle_id = 3; - * @param value the miracleId to set + * optional uint32 phone_case_id = 9; + * @param value the phoneCaseId to set * @return this */ - public SelectRogueMiracleCsReq setMiracleId(final int value) { + public UnlockPhoneCaseScNotify setPhoneCaseId(final int value) { bitField0_ |= 0x00000001; - miracleId = value; + phoneCaseId = value; return this; } @Override - public SelectRogueMiracleCsReq copyFrom(final SelectRogueMiracleCsReq other) { + public UnlockPhoneCaseScNotify copyFrom(final UnlockPhoneCaseScNotify other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - miracleId = other.miracleId; + phoneCaseId = other.phoneCaseId; } return this; } @Override - public SelectRogueMiracleCsReq mergeFrom(final SelectRogueMiracleCsReq other) { + public UnlockPhoneCaseScNotify mergeFrom(final UnlockPhoneCaseScNotify other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasMiracleId()) { - setMiracleId(other.miracleId); + if (other.hasPhoneCaseId()) { + setPhoneCaseId(other.phoneCaseId); } return this; } @Override - public SelectRogueMiracleCsReq clear() { + public UnlockPhoneCaseScNotify clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - miracleId = 0; + phoneCaseId = 0; return this; } @Override - public SelectRogueMiracleCsReq clearQuick() { + public UnlockPhoneCaseScNotify clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class SelectRogueMiracleCsReqOuterClass { if (o == this) { return true; } - if (!(o instanceof SelectRogueMiracleCsReq)) { + if (!(o instanceof UnlockPhoneCaseScNotify)) { return false; } - SelectRogueMiracleCsReq other = (SelectRogueMiracleCsReq) o; + UnlockPhoneCaseScNotify other = (UnlockPhoneCaseScNotify) o; return bitField0_ == other.bitField0_ - && (!hasMiracleId() || miracleId == other.miracleId); + && (!hasPhoneCaseId() || phoneCaseId == other.phoneCaseId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(miracleId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(phoneCaseId); } } @@ -138,21 +138,21 @@ public final class SelectRogueMiracleCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(miracleId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(phoneCaseId); } return size; } @Override @SuppressWarnings("fallthrough") - public SelectRogueMiracleCsReq mergeFrom(final ProtoSource input) throws IOException { + public UnlockPhoneCaseScNotify mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // miracleId - miracleId = input.readUInt32(); + case 72: { + // phoneCaseId + phoneCaseId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,23 +177,23 @@ public final class SelectRogueMiracleCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.miracleId, miracleId); + output.writeUInt32(FieldNames.phoneCaseId, phoneCaseId); } output.endObject(); } @Override - public SelectRogueMiracleCsReq mergeFrom(final JsonSource input) throws IOException { + public UnlockPhoneCaseScNotify mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -164571796: - case -806736983: { - if (input.isAtField(FieldNames.miracleId)) { + case -1526179975: + case 752385721: { + if (input.isAtField(FieldNames.phoneCaseId)) { if (!input.trySkipNullValue()) { - miracleId = input.readUInt32(); + phoneCaseId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -212,8 +212,8 @@ public final class SelectRogueMiracleCsReqOuterClass { } @Override - public SelectRogueMiracleCsReq clone() { - return new SelectRogueMiracleCsReq().copyFrom(this); + public UnlockPhoneCaseScNotify clone() { + return new UnlockPhoneCaseScNotify().copyFrom(this); } @Override @@ -221,32 +221,32 @@ public final class SelectRogueMiracleCsReqOuterClass { return ((bitField0_) == 0); } - public static SelectRogueMiracleCsReq parseFrom(final byte[] data) throws + public static UnlockPhoneCaseScNotify parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new SelectRogueMiracleCsReq(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new UnlockPhoneCaseScNotify(), data).checkInitialized(); } - public static SelectRogueMiracleCsReq parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueMiracleCsReq(), input).checkInitialized(); + public static UnlockPhoneCaseScNotify parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockPhoneCaseScNotify(), input).checkInitialized(); } - public static SelectRogueMiracleCsReq parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new SelectRogueMiracleCsReq(), input).checkInitialized(); + public static UnlockPhoneCaseScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockPhoneCaseScNotify(), input).checkInitialized(); } /** - * @return factory for creating SelectRogueMiracleCsReq messages + * @return factory for creating UnlockPhoneCaseScNotify messages */ - public static MessageFactory getFactory() { - return SelectRogueMiracleCsReqFactory.INSTANCE; + public static MessageFactory getFactory() { + return UnlockPhoneCaseScNotifyFactory.INSTANCE; } - private enum SelectRogueMiracleCsReqFactory implements MessageFactory { + private enum UnlockPhoneCaseScNotifyFactory implements MessageFactory { INSTANCE; @Override - public SelectRogueMiracleCsReq create() { - return SelectRogueMiracleCsReq.newInstance(); + public UnlockPhoneCaseScNotify create() { + return UnlockPhoneCaseScNotify.newInstance(); } } @@ -254,7 +254,7 @@ public final class SelectRogueMiracleCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName miracleId = FieldName.forField("miracleId", "miracle_id"); + static final FieldName phoneCaseId = FieldName.forField("phoneCaseId", "phone_case_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java index 958e9f0..380061f 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockPhoneThemeScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 theme_id = 5; + * optional uint32 theme_id = 8; */ private int themeId; @@ -34,7 +34,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 5; + * optional uint32 theme_id = 8; * @return whether the themeId field is set */ public boolean hasThemeId() { @@ -42,7 +42,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 5; + * optional uint32 theme_id = 8; * @return this */ public UnlockPhoneThemeScNotify clearThemeId() { @@ -52,7 +52,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 5; + * optional uint32 theme_id = 8; * @return the themeId */ public int getThemeId() { @@ -60,7 +60,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { } /** - * optional uint32 theme_id = 5; + * optional uint32 theme_id = 8; * @param value the themeId to set * @return this */ @@ -129,7 +129,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 64); output.writeUInt32NoTag(themeId); } } @@ -150,7 +150,7 @@ public final class UnlockPhoneThemeScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { + case 64: { // themeId themeId = input.readUInt32(); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java index f017a21..73c84ea 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeCsReqOuterClass.java @@ -20,17 +20,17 @@ public final class UnlockSkilltreeCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 point_id = 10; + * optional uint32 point_id = 2; */ private int pointId; /** - * optional uint32 level = 13; + * optional uint32 level = 12; */ private int level; /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; */ private final RepeatedMessage itemList = RepeatedMessage.newEmptyInstance(ItemCostOuterClass.ItemCost.getFactory()); @@ -45,7 +45,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 10; + * optional uint32 point_id = 2; * @return whether the pointId field is set */ public boolean hasPointId() { @@ -53,7 +53,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 10; + * optional uint32 point_id = 2; * @return this */ public UnlockSkilltreeCsReq clearPointId() { @@ -63,7 +63,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 10; + * optional uint32 point_id = 2; * @return the pointId */ public int getPointId() { @@ -71,7 +71,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 point_id = 10; + * optional uint32 point_id = 2; * @param value the pointId to set * @return this */ @@ -82,7 +82,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 13; + * optional uint32 level = 12; * @return whether the level field is set */ public boolean hasLevel() { @@ -90,7 +90,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 13; + * optional uint32 level = 12; * @return this */ public UnlockSkilltreeCsReq clearLevel() { @@ -100,7 +100,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 13; + * optional uint32 level = 12; * @return the level */ public int getLevel() { @@ -108,7 +108,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * optional uint32 level = 13; + * optional uint32 level = 12; * @param value the level to set * @return this */ @@ -119,7 +119,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; * @return whether the itemList field is set */ public boolean hasItemList() { @@ -127,7 +127,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; * @return this */ public UnlockSkilltreeCsReq clearItemList() { @@ -137,7 +137,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -151,7 +151,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -165,7 +165,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; * @param value the itemList to add * @return this */ @@ -176,7 +176,7 @@ public final class UnlockSkilltreeCsReqOuterClass { } /** - * repeated .ItemCost item_list = 15; + * repeated .ItemCost item_list = 7; * @param values the itemList to add * @return this */ @@ -258,16 +258,16 @@ public final class UnlockSkilltreeCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 80); + output.writeRawByte((byte) 16); output.writeUInt32NoTag(pointId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); + output.writeRawByte((byte) 96); output.writeUInt32NoTag(level); } if ((bitField0_ & 0x00000004) != 0) { for (int i = 0; i < itemList.length(); i++) { - output.writeRawByte((byte) 122); + output.writeRawByte((byte) 58); output.writeMessageNoTag(itemList.get(i)); } } @@ -295,25 +295,25 @@ public final class UnlockSkilltreeCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 80: { + case 16: { // pointId pointId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 104) { + if (tag != 96) { break; } } - case 104: { + case 96: { // level level = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 122) { + if (tag != 58) { break; } } - case 122: { + case 58: { // itemList tag = input.readRepeatedMessage(itemList, tag); bitField0_ |= 0x00000004; diff --git a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java index 0ec0360..bf8d915 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockSkilltreeScRspOuterClass.java @@ -19,20 +19,20 @@ public final class UnlockSkilltreeScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 retcode = 2; - */ - private int retcode; - - /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 3; */ private int pointId; /** - * optional uint32 level = 14; + * optional uint32 level = 8; */ private int level; + /** + * optional uint32 retcode = 11; + */ + private int retcode; + private UnlockSkilltreeScRsp() { } @@ -44,62 +44,25 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 retcode = 2; - * @return whether the retcode field is set + * optional uint32 point_id = 3; + * @return whether the pointId field is set */ - public boolean hasRetcode() { + public boolean hasPointId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 retcode = 2; - * @return this - */ - public UnlockSkilltreeScRsp clearRetcode() { - bitField0_ &= ~0x00000001; - retcode = 0; - return this; - } - - /** - * optional uint32 retcode = 2; - * @return the retcode - */ - public int getRetcode() { - return retcode; - } - - /** - * optional uint32 retcode = 2; - * @param value the retcode to set - * @return this - */ - public UnlockSkilltreeScRsp setRetcode(final int value) { - bitField0_ |= 0x00000001; - retcode = value; - return this; - } - - /** - * optional uint32 point_id = 9; - * @return whether the pointId field is set - */ - public boolean hasPointId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 3; * @return this */ public UnlockSkilltreeScRsp clearPointId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; pointId = 0; return this; } /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 3; * @return the pointId */ public int getPointId() { @@ -107,36 +70,36 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 point_id = 9; + * optional uint32 point_id = 3; * @param value the pointId to set * @return this */ public UnlockSkilltreeScRsp setPointId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; pointId = value; return this; } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @return whether the level field is set */ public boolean hasLevel() { - return (bitField0_ & 0x00000004) != 0; + return (bitField0_ & 0x00000002) != 0; } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @return this */ public UnlockSkilltreeScRsp clearLevel() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000002; level = 0; return this; } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @return the level */ public int getLevel() { @@ -144,24 +107,61 @@ public final class UnlockSkilltreeScRspOuterClass { } /** - * optional uint32 level = 14; + * optional uint32 level = 8; * @param value the level to set * @return this */ public UnlockSkilltreeScRsp setLevel(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; level = value; return this; } + /** + * optional uint32 retcode = 11; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 retcode = 11; + * @return this + */ + public UnlockSkilltreeScRsp clearRetcode() { + bitField0_ &= ~0x00000004; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 11; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 11; + * @param value the retcode to set + * @return this + */ + public UnlockSkilltreeScRsp setRetcode(final int value) { + bitField0_ |= 0x00000004; + retcode = value; + return this; + } + @Override public UnlockSkilltreeScRsp copyFrom(final UnlockSkilltreeScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - retcode = other.retcode; pointId = other.pointId; level = other.level; + retcode = other.retcode; } return this; } @@ -172,15 +172,15 @@ public final class UnlockSkilltreeScRspOuterClass { return this; } cachedSize = -1; - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasPointId()) { setPointId(other.pointId); } if (other.hasLevel()) { setLevel(other.level); } + if (other.hasRetcode()) { + setRetcode(other.retcode); + } return this; } @@ -191,9 +191,9 @@ public final class UnlockSkilltreeScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - retcode = 0; pointId = 0; level = 0; + retcode = 0; return this; } @@ -217,39 +217,39 @@ public final class UnlockSkilltreeScRspOuterClass { } UnlockSkilltreeScRsp other = (UnlockSkilltreeScRsp) o; return bitField0_ == other.bitField0_ - && (!hasRetcode() || retcode == other.retcode) && (!hasPointId() || pointId == other.pointId) - && (!hasLevel() || level == other.level); + && (!hasLevel() || level == other.level) + && (!hasRetcode() || retcode == other.retcode); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 16); - output.writeUInt32NoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 72); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(pointId); } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 64); output.writeUInt32NoTag(level); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); + } } @Override protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(pointId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(level); } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } return size; } @@ -260,27 +260,27 @@ public final class UnlockSkilltreeScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 16: { - // retcode - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 72) { - break; - } - } - case 72: { + case 24: { // pointId pointId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 64) { break; } } - case 112: { + case 64: { // level level = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,14 +305,14 @@ public final class UnlockSkilltreeScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.pointId, pointId); } - if ((bitField0_ & 0x00000004) != 0) { + if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.level, level); } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } output.endObject(); } @@ -323,23 +323,12 @@ public final class UnlockSkilltreeScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); - bitField0_ |= 0x00000001; - } - } else { - input.skipUnknownField(); - } - break; - } case -400606517: case 466121258: { if (input.isAtField(FieldNames.pointId)) { if (!input.trySkipNullValue()) { pointId = input.readUInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } else { input.skipUnknownField(); @@ -350,6 +339,17 @@ public final class UnlockSkilltreeScRspOuterClass { if (input.isAtField(FieldNames.level)) { if (!input.trySkipNullValue()) { level = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -410,11 +410,11 @@ public final class UnlockSkilltreeScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName pointId = FieldName.forField("pointId", "point_id"); static final FieldName level = FieldName.forField("level"); + + static final FieldName retcode = FieldName.forField("retcode"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/ChessRogueMoneyInfoOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockTutorialCsReqOuterClass.java similarity index 54% rename from src/generated/main/emu/lunarcore/proto/ChessRogueMoneyInfoOuterClass.java rename to src/generated/main/emu/lunarcore/proto/UnlockTutorialCsReqOuterClass.java index ea6a485..b734770 100644 --- a/src/generated/main/emu/lunarcore/proto/ChessRogueMoneyInfoOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockTutorialCsReqOuterClass.java @@ -11,100 +11,100 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class ChessRogueMoneyInfoOuterClass { +public final class UnlockTutorialCsReqOuterClass { /** - * Protobuf type {@code ChessRogueMoneyInfo} + * Protobuf type {@code UnlockTutorialCsReq} */ - public static final class ChessRogueMoneyInfo extends ProtoMessage implements Cloneable { + public static final class UnlockTutorialCsReq extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - * optional uint32 money = 14; + * optional uint32 tutorial_id = 11; */ - private int money; + private int tutorialId; - private ChessRogueMoneyInfo() { + private UnlockTutorialCsReq() { } /** - * @return a new empty instance of {@code ChessRogueMoneyInfo} + * @return a new empty instance of {@code UnlockTutorialCsReq} */ - public static ChessRogueMoneyInfo newInstance() { - return new ChessRogueMoneyInfo(); + public static UnlockTutorialCsReq newInstance() { + return new UnlockTutorialCsReq(); } /** - * optional uint32 money = 14; - * @return whether the money field is set + * optional uint32 tutorial_id = 11; + * @return whether the tutorialId field is set */ - public boolean hasMoney() { + public boolean hasTutorialId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 money = 14; + * optional uint32 tutorial_id = 11; * @return this */ - public ChessRogueMoneyInfo clearMoney() { + public UnlockTutorialCsReq clearTutorialId() { bitField0_ &= ~0x00000001; - money = 0; + tutorialId = 0; return this; } /** - * optional uint32 money = 14; - * @return the money + * optional uint32 tutorial_id = 11; + * @return the tutorialId */ - public int getMoney() { - return money; + public int getTutorialId() { + return tutorialId; } /** - * optional uint32 money = 14; - * @param value the money to set + * optional uint32 tutorial_id = 11; + * @param value the tutorialId to set * @return this */ - public ChessRogueMoneyInfo setMoney(final int value) { + public UnlockTutorialCsReq setTutorialId(final int value) { bitField0_ |= 0x00000001; - money = value; + tutorialId = value; return this; } @Override - public ChessRogueMoneyInfo copyFrom(final ChessRogueMoneyInfo other) { + public UnlockTutorialCsReq copyFrom(final UnlockTutorialCsReq other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - money = other.money; + tutorialId = other.tutorialId; } return this; } @Override - public ChessRogueMoneyInfo mergeFrom(final ChessRogueMoneyInfo other) { + public UnlockTutorialCsReq mergeFrom(final UnlockTutorialCsReq other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasMoney()) { - setMoney(other.money); + if (other.hasTutorialId()) { + setTutorialId(other.tutorialId); } return this; } @Override - public ChessRogueMoneyInfo clear() { + public UnlockTutorialCsReq clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - money = 0; + tutorialId = 0; return this; } @Override - public ChessRogueMoneyInfo clearQuick() { + public UnlockTutorialCsReq clearQuick() { if (isEmpty()) { return this; } @@ -118,19 +118,19 @@ public final class ChessRogueMoneyInfoOuterClass { if (o == this) { return true; } - if (!(o instanceof ChessRogueMoneyInfo)) { + if (!(o instanceof UnlockTutorialCsReq)) { return false; } - ChessRogueMoneyInfo other = (ChessRogueMoneyInfo) o; + UnlockTutorialCsReq other = (UnlockTutorialCsReq) o; return bitField0_ == other.bitField0_ - && (!hasMoney() || money == other.money); + && (!hasTutorialId() || tutorialId == other.tutorialId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(money); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(tutorialId); } } @@ -138,21 +138,21 @@ public final class ChessRogueMoneyInfoOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(money); + size += 1 + ProtoSink.computeUInt32SizeNoTag(tutorialId); } return size; } @Override @SuppressWarnings("fallthrough") - public ChessRogueMoneyInfo mergeFrom(final ProtoSource input) throws IOException { + public UnlockTutorialCsReq mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 112: { - // money - money = input.readUInt32(); + case 88: { + // tutorialId + tutorialId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 0) { @@ -177,22 +177,23 @@ public final class ChessRogueMoneyInfoOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.money, money); + output.writeUInt32(FieldNames.tutorialId, tutorialId); } output.endObject(); } @Override - public ChessRogueMoneyInfo mergeFrom(final JsonSource input) throws IOException { + public UnlockTutorialCsReq mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 104079552: { - if (input.isAtField(FieldNames.money)) { + case 1055380761: + case -1642913380: { + if (input.isAtField(FieldNames.tutorialId)) { if (!input.trySkipNullValue()) { - money = input.readUInt32(); + tutorialId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -211,8 +212,8 @@ public final class ChessRogueMoneyInfoOuterClass { } @Override - public ChessRogueMoneyInfo clone() { - return new ChessRogueMoneyInfo().copyFrom(this); + public UnlockTutorialCsReq clone() { + return new UnlockTutorialCsReq().copyFrom(this); } @Override @@ -220,32 +221,32 @@ public final class ChessRogueMoneyInfoOuterClass { return ((bitField0_) == 0); } - public static ChessRogueMoneyInfo parseFrom(final byte[] data) throws + public static UnlockTutorialCsReq parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new ChessRogueMoneyInfo(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new UnlockTutorialCsReq(), data).checkInitialized(); } - public static ChessRogueMoneyInfo parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueMoneyInfo(), input).checkInitialized(); + public static UnlockTutorialCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockTutorialCsReq(), input).checkInitialized(); } - public static ChessRogueMoneyInfo parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new ChessRogueMoneyInfo(), input).checkInitialized(); + public static UnlockTutorialCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockTutorialCsReq(), input).checkInitialized(); } /** - * @return factory for creating ChessRogueMoneyInfo messages + * @return factory for creating UnlockTutorialCsReq messages */ - public static MessageFactory getFactory() { - return ChessRogueMoneyInfoFactory.INSTANCE; + public static MessageFactory getFactory() { + return UnlockTutorialCsReqFactory.INSTANCE; } - private enum ChessRogueMoneyInfoFactory implements MessageFactory { + private enum UnlockTutorialCsReqFactory implements MessageFactory { INSTANCE; @Override - public ChessRogueMoneyInfo create() { - return ChessRogueMoneyInfo.newInstance(); + public UnlockTutorialCsReq create() { + return UnlockTutorialCsReq.newInstance(); } } @@ -253,7 +254,7 @@ public final class ChessRogueMoneyInfoOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName money = FieldName.forField("money"); + static final FieldName tutorialId = FieldName.forField("tutorialId", "tutorial_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/GetRogueInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockTutorialScRspOuterClass.java similarity index 61% rename from src/generated/main/emu/lunarcore/proto/GetRogueInfoScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/UnlockTutorialScRspOuterClass.java index 2f90477..cd46dd2 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRogueInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockTutorialScRspOuterClass.java @@ -11,11 +11,11 @@ import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -public final class GetRogueInfoScRspOuterClass { +public final class UnlockTutorialScRspOuterClass { /** - * Protobuf type {@code GetRogueInfoScRsp} + * Protobuf type {@code UnlockTutorialScRsp} */ - public static final class GetRogueInfoScRsp extends ProtoMessage implements Cloneable { + public static final class UnlockTutorialScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** @@ -24,18 +24,18 @@ public final class GetRogueInfoScRspOuterClass { private int retcode; /** - * optional .RogueInfo rogue_info = 15; + * optional .Tutorial tutorial = 14; */ - private final RogueInfoOuterClass.RogueInfo rogueInfo = RogueInfoOuterClass.RogueInfo.newInstance(); + private final TutorialOuterClass.Tutorial tutorial = TutorialOuterClass.Tutorial.newInstance(); - private GetRogueInfoScRsp() { + private UnlockTutorialScRsp() { } /** - * @return a new empty instance of {@code GetRogueInfoScRsp} + * @return a new empty instance of {@code UnlockTutorialScRsp} */ - public static GetRogueInfoScRsp newInstance() { - return new GetRogueInfoScRsp(); + public static UnlockTutorialScRsp newInstance() { + return new UnlockTutorialScRsp(); } /** @@ -50,7 +50,7 @@ public final class GetRogueInfoScRspOuterClass { * optional uint32 retcode = 1; * @return this */ - public GetRogueInfoScRsp clearRetcode() { + public UnlockTutorialScRsp clearRetcode() { bitField0_ &= ~0x00000001; retcode = 0; return this; @@ -69,46 +69,46 @@ public final class GetRogueInfoScRspOuterClass { * @param value the retcode to set * @return this */ - public GetRogueInfoScRsp setRetcode(final int value) { + public UnlockTutorialScRsp setRetcode(final int value) { bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .RogueInfo rogue_info = 15; - * @return whether the rogueInfo field is set + * optional .Tutorial tutorial = 14; + * @return whether the tutorial field is set */ - public boolean hasRogueInfo() { + public boolean hasTutorial() { return (bitField0_ & 0x00000002) != 0; } /** - * optional .RogueInfo rogue_info = 15; + * optional .Tutorial tutorial = 14; * @return this */ - public GetRogueInfoScRsp clearRogueInfo() { + public UnlockTutorialScRsp clearTutorial() { bitField0_ &= ~0x00000002; - rogueInfo.clear(); + tutorial.clear(); return this; } /** - * optional .RogueInfo rogue_info = 15; + * optional .Tutorial tutorial = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableRogueInfo()} if you want to modify it. + * Use {@link #getMutableTutorial()} if you want to modify it. * * @return internal storage object for reading */ - public RogueInfoOuterClass.RogueInfo getRogueInfo() { - return rogueInfo; + public TutorialOuterClass.Tutorial getTutorial() { + return tutorial; } /** - * optional .RogueInfo rogue_info = 15; + * optional .Tutorial tutorial = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -116,35 +116,35 @@ public final class GetRogueInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RogueInfoOuterClass.RogueInfo getMutableRogueInfo() { + public TutorialOuterClass.Tutorial getMutableTutorial() { bitField0_ |= 0x00000002; - return rogueInfo; + return tutorial; } /** - * optional .RogueInfo rogue_info = 15; - * @param value the rogueInfo to set + * optional .Tutorial tutorial = 14; + * @param value the tutorial to set * @return this */ - public GetRogueInfoScRsp setRogueInfo(final RogueInfoOuterClass.RogueInfo value) { + public UnlockTutorialScRsp setTutorial(final TutorialOuterClass.Tutorial value) { bitField0_ |= 0x00000002; - rogueInfo.copyFrom(value); + tutorial.copyFrom(value); return this; } @Override - public GetRogueInfoScRsp copyFrom(final GetRogueInfoScRsp other) { + public UnlockTutorialScRsp copyFrom(final UnlockTutorialScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; retcode = other.retcode; - rogueInfo.copyFrom(other.rogueInfo); + tutorial.copyFrom(other.tutorial); } return this; } @Override - public GetRogueInfoScRsp mergeFrom(final GetRogueInfoScRsp other) { + public UnlockTutorialScRsp mergeFrom(final UnlockTutorialScRsp other) { if (other.isEmpty()) { return this; } @@ -152,32 +152,32 @@ public final class GetRogueInfoScRspOuterClass { if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasRogueInfo()) { - getMutableRogueInfo().mergeFrom(other.rogueInfo); + if (other.hasTutorial()) { + getMutableTutorial().mergeFrom(other.tutorial); } return this; } @Override - public GetRogueInfoScRsp clear() { + public UnlockTutorialScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; retcode = 0; - rogueInfo.clear(); + tutorial.clear(); return this; } @Override - public GetRogueInfoScRsp clearQuick() { + public UnlockTutorialScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - rogueInfo.clearQuick(); + tutorial.clearQuick(); return this; } @@ -186,13 +186,13 @@ public final class GetRogueInfoScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRogueInfoScRsp)) { + if (!(o instanceof UnlockTutorialScRsp)) { return false; } - GetRogueInfoScRsp other = (GetRogueInfoScRsp) o; + UnlockTutorialScRsp other = (UnlockTutorialScRsp) o; return bitField0_ == other.bitField0_ && (!hasRetcode() || retcode == other.retcode) - && (!hasRogueInfo() || rogueInfo.equals(other.rogueInfo)); + && (!hasTutorial() || tutorial.equals(other.tutorial)); } @Override @@ -202,8 +202,8 @@ public final class GetRogueInfoScRspOuterClass { output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 122); - output.writeMessageNoTag(rogueInfo); + output.writeRawByte((byte) 114); + output.writeMessageNoTag(tutorial); } } @@ -214,14 +214,14 @@ public final class GetRogueInfoScRspOuterClass { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeMessageSizeNoTag(rogueInfo); + size += 1 + ProtoSink.computeMessageSizeNoTag(tutorial); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRogueInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + public UnlockTutorialScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { @@ -231,13 +231,13 @@ public final class GetRogueInfoScRspOuterClass { retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 122) { + if (tag != 114) { break; } } - case 122: { - // rogueInfo - input.readMessage(rogueInfo); + case 114: { + // tutorial + input.readMessage(tutorial); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -265,13 +265,13 @@ public final class GetRogueInfoScRspOuterClass { output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeMessage(FieldNames.rogueInfo, rogueInfo); + output.writeMessage(FieldNames.tutorial, tutorial); } output.endObject(); } @Override - public GetRogueInfoScRsp mergeFrom(final JsonSource input) throws IOException { + public UnlockTutorialScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } @@ -288,11 +288,10 @@ public final class GetRogueInfoScRspOuterClass { } break; } - case 655808936: - case -1124583437: { - if (input.isAtField(FieldNames.rogueInfo)) { + case 193276766: { + if (input.isAtField(FieldNames.tutorial)) { if (!input.trySkipNullValue()) { - input.readMessage(rogueInfo); + input.readMessage(tutorial); bitField0_ |= 0x00000002; } } else { @@ -311,8 +310,8 @@ public final class GetRogueInfoScRspOuterClass { } @Override - public GetRogueInfoScRsp clone() { - return new GetRogueInfoScRsp().copyFrom(this); + public UnlockTutorialScRsp clone() { + return new UnlockTutorialScRsp().copyFrom(this); } @Override @@ -320,32 +319,32 @@ public final class GetRogueInfoScRspOuterClass { return ((bitField0_) == 0); } - public static GetRogueInfoScRsp parseFrom(final byte[] data) throws + public static UnlockTutorialScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRogueInfoScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new UnlockTutorialScRsp(), data).checkInitialized(); } - public static GetRogueInfoScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueInfoScRsp(), input).checkInitialized(); + public static UnlockTutorialScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockTutorialScRsp(), input).checkInitialized(); } - public static GetRogueInfoScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRogueInfoScRsp(), input).checkInitialized(); + public static UnlockTutorialScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UnlockTutorialScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRogueInfoScRsp messages + * @return factory for creating UnlockTutorialScRsp messages */ - public static MessageFactory getFactory() { - return GetRogueInfoScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return UnlockTutorialScRspFactory.INSTANCE; } - private enum GetRogueInfoScRspFactory implements MessageFactory { + private enum UnlockTutorialScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRogueInfoScRsp create() { - return GetRogueInfoScRsp.newInstance(); + public UnlockTutorialScRsp create() { + return UnlockTutorialScRsp.newInstance(); } } @@ -355,7 +354,7 @@ public final class GetRogueInfoScRspOuterClass { static class FieldNames { static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName rogueInfo = FieldName.forField("rogueInfo", "rogue_info"); + static final FieldName tutorial = FieldName.forField("tutorial"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java b/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java index 9bc8483..7512a8f 100644 --- a/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UnlockedMusicOuterClass.java @@ -19,17 +19,17 @@ public final class UnlockedMusicOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 group_id = 11; - */ - private int groupId; - - /** - * optional uint32 id = 15; + * optional uint32 id = 8; */ private int id; /** - * optional bool unkbool = 14; + * optional uint32 group_id = 15; + */ + private int groupId; + + /** + * optional bool unkbool = 10; */ private boolean unkbool; @@ -44,62 +44,25 @@ public final class UnlockedMusicOuterClass { } /** - * optional uint32 group_id = 11; - * @return whether the groupId field is set + * optional uint32 id = 8; + * @return whether the id field is set */ - public boolean hasGroupId() { + public boolean hasId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 group_id = 11; - * @return this - */ - public UnlockedMusic clearGroupId() { - bitField0_ &= ~0x00000001; - groupId = 0; - return this; - } - - /** - * optional uint32 group_id = 11; - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * optional uint32 group_id = 11; - * @param value the groupId to set - * @return this - */ - public UnlockedMusic setGroupId(final int value) { - bitField0_ |= 0x00000001; - groupId = value; - return this; - } - - /** - * optional uint32 id = 15; - * @return whether the id field is set - */ - public boolean hasId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 id = 15; + * optional uint32 id = 8; * @return this */ public UnlockedMusic clearId() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; id = 0; return this; } /** - * optional uint32 id = 15; + * optional uint32 id = 8; * @return the id */ public int getId() { @@ -107,18 +70,55 @@ public final class UnlockedMusicOuterClass { } /** - * optional uint32 id = 15; + * optional uint32 id = 8; * @param value the id to set * @return this */ public UnlockedMusic setId(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; id = value; return this; } /** - * optional bool unkbool = 14; + * optional uint32 group_id = 15; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 group_id = 15; + * @return this + */ + public UnlockedMusic clearGroupId() { + bitField0_ &= ~0x00000002; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 15; + * @param value the groupId to set + * @return this + */ + public UnlockedMusic setGroupId(final int value) { + bitField0_ |= 0x00000002; + groupId = value; + return this; + } + + /** + * optional bool unkbool = 10; * @return whether the unkbool field is set */ public boolean hasUnkbool() { @@ -126,7 +126,7 @@ public final class UnlockedMusicOuterClass { } /** - * optional bool unkbool = 14; + * optional bool unkbool = 10; * @return this */ public UnlockedMusic clearUnkbool() { @@ -136,7 +136,7 @@ public final class UnlockedMusicOuterClass { } /** - * optional bool unkbool = 14; + * optional bool unkbool = 10; * @return the unkbool */ public boolean getUnkbool() { @@ -144,7 +144,7 @@ public final class UnlockedMusicOuterClass { } /** - * optional bool unkbool = 14; + * optional bool unkbool = 10; * @param value the unkbool to set * @return this */ @@ -159,8 +159,8 @@ public final class UnlockedMusicOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - groupId = other.groupId; id = other.id; + groupId = other.groupId; unkbool = other.unkbool; } return this; @@ -172,12 +172,12 @@ public final class UnlockedMusicOuterClass { return this; } cachedSize = -1; - if (other.hasGroupId()) { - setGroupId(other.groupId); - } if (other.hasId()) { setId(other.id); } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } if (other.hasUnkbool()) { setUnkbool(other.unkbool); } @@ -191,8 +191,8 @@ public final class UnlockedMusicOuterClass { } cachedSize = -1; bitField0_ = 0; - groupId = 0; id = 0; + groupId = 0; unkbool = false; return this; } @@ -217,23 +217,23 @@ public final class UnlockedMusicOuterClass { } UnlockedMusic other = (UnlockedMusic) o; return bitField0_ == other.bitField0_ - && (!hasGroupId() || groupId == other.groupId) && (!hasId() || id == other.id) + && (!hasGroupId() || groupId == other.groupId) && (!hasUnkbool() || unkbool == other.unkbool); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(groupId); + output.writeRawByte((byte) 64); + output.writeUInt32NoTag(id); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 120); - output.writeUInt32NoTag(id); + output.writeUInt32NoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 80); output.writeBoolNoTag(unkbool); } } @@ -242,10 +242,10 @@ public final class UnlockedMusicOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(id); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(id); + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); } if ((bitField0_ & 0x00000004) != 0) { size += 2; @@ -260,9 +260,9 @@ public final class UnlockedMusicOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 88: { - // groupId - groupId = input.readUInt32(); + case 64: { + // id + id = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 120) { @@ -270,15 +270,15 @@ public final class UnlockedMusicOuterClass { } } case 120: { - // id - id = input.readUInt32(); + // groupId + groupId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 112) { + if (tag != 80) { break; } } - case 112: { + case 80: { // unkbool unkbool = input.readBool(); bitField0_ |= 0x00000004; @@ -305,10 +305,10 @@ public final class UnlockedMusicOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.groupId, groupId); + output.writeUInt32(FieldNames.id, id); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.id, id); + output.writeUInt32(FieldNames.groupId, groupId); } if ((bitField0_ & 0x00000004) != 0) { output.writeBool(FieldNames.unkbool, unkbool); @@ -323,11 +323,10 @@ public final class UnlockedMusicOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 293428218: - case 506361563: { - if (input.isAtField(FieldNames.groupId)) { + case 3355: { + if (input.isAtField(FieldNames.id)) { if (!input.trySkipNullValue()) { - groupId = input.readUInt32(); + id = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -335,10 +334,11 @@ public final class UnlockedMusicOuterClass { } break; } - case 3355: { - if (input.isAtField(FieldNames.id)) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { if (!input.trySkipNullValue()) { - id = input.readUInt32(); + groupId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -409,10 +409,10 @@ public final class UnlockedMusicOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName groupId = FieldName.forField("groupId", "group_id"); - static final FieldName id = FieldName.forField("id"); + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + static final FieldName unkbool = FieldName.forField("unkbool"); } } diff --git a/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java index 47eabe9..8c22d7f 100644 --- a/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UpdateEnergyScNotifyOuterClass.java @@ -19,7 +19,7 @@ public final class UpdateEnergyScNotifyOuterClass { private static final long serialVersionUID = 0L; /** - * optional .RotatorEnergyInfo energy_info = 4; + * optional .RotatorEnergyInfo energy_info = 14; */ private final RotatorEnergyInfoOuterClass.RotatorEnergyInfo energyInfo = RotatorEnergyInfoOuterClass.RotatorEnergyInfo.newInstance(); @@ -34,7 +34,7 @@ public final class UpdateEnergyScNotifyOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 4; + * optional .RotatorEnergyInfo energy_info = 14; * @return whether the energyInfo field is set */ public boolean hasEnergyInfo() { @@ -42,7 +42,7 @@ public final class UpdateEnergyScNotifyOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 4; + * optional .RotatorEnergyInfo energy_info = 14; * @return this */ public UpdateEnergyScNotify clearEnergyInfo() { @@ -52,7 +52,7 @@ public final class UpdateEnergyScNotifyOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 4; + * optional .RotatorEnergyInfo energy_info = 14; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class UpdateEnergyScNotifyOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 4; + * optional .RotatorEnergyInfo energy_info = 14; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class UpdateEnergyScNotifyOuterClass { } /** - * optional .RotatorEnergyInfo energy_info = 4; + * optional .RotatorEnergyInfo energy_info = 14; * @param value the energyInfo to set * @return this */ @@ -151,7 +151,7 @@ public final class UpdateEnergyScNotifyOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 114); output.writeMessageNoTag(energyInfo); } } @@ -172,7 +172,7 @@ public final class UpdateEnergyScNotifyOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 34: { + case 114: { // energyInfo input.readMessage(energyInfo); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UpdateFeatureSwitchScNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateFeatureSwitchScNotifyOuterClass.java new file mode 100644 index 0000000..d2e680d --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UpdateFeatureSwitchScNotifyOuterClass.java @@ -0,0 +1,298 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class UpdateFeatureSwitchScNotifyOuterClass { + /** + * Protobuf type {@code UpdateFeatureSwitchScNotify} + */ + public static final class UpdateFeatureSwitchScNotify extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + */ + private final RepeatedMessage switchInfoList = RepeatedMessage.newEmptyInstance(FeatureSwitchInfoOuterClass.FeatureSwitchInfo.getFactory()); + + private UpdateFeatureSwitchScNotify() { + } + + /** + * @return a new empty instance of {@code UpdateFeatureSwitchScNotify} + */ + public static UpdateFeatureSwitchScNotify newInstance() { + return new UpdateFeatureSwitchScNotify(); + } + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + * @return whether the switchInfoList field is set + */ + public boolean hasSwitchInfoList() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + * @return this + */ + public UpdateFeatureSwitchScNotify clearSwitchInfoList() { + bitField0_ &= ~0x00000001; + switchInfoList.clear(); + return this; + } + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableSwitchInfoList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getSwitchInfoList() { + return switchInfoList; + } + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableSwitchInfoList( + ) { + bitField0_ |= 0x00000001; + return switchInfoList; + } + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + * @param value the switchInfoList to add + * @return this + */ + public UpdateFeatureSwitchScNotify addSwitchInfoList( + final FeatureSwitchInfoOuterClass.FeatureSwitchInfo value) { + bitField0_ |= 0x00000001; + switchInfoList.add(value); + return this; + } + + /** + * repeated .FeatureSwitchInfo switch_info_list = 5; + * @param values the switchInfoList to add + * @return this + */ + public UpdateFeatureSwitchScNotify addAllSwitchInfoList( + final FeatureSwitchInfoOuterClass.FeatureSwitchInfo... values) { + bitField0_ |= 0x00000001; + switchInfoList.addAll(values); + return this; + } + + @Override + public UpdateFeatureSwitchScNotify copyFrom(final UpdateFeatureSwitchScNotify other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + switchInfoList.copyFrom(other.switchInfoList); + } + return this; + } + + @Override + public UpdateFeatureSwitchScNotify mergeFrom(final UpdateFeatureSwitchScNotify other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasSwitchInfoList()) { + getMutableSwitchInfoList().addAll(other.switchInfoList); + } + return this; + } + + @Override + public UpdateFeatureSwitchScNotify clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + switchInfoList.clear(); + return this; + } + + @Override + public UpdateFeatureSwitchScNotify clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + switchInfoList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UpdateFeatureSwitchScNotify)) { + return false; + } + UpdateFeatureSwitchScNotify other = (UpdateFeatureSwitchScNotify) o; + return bitField0_ == other.bitField0_ + && (!hasSwitchInfoList() || switchInfoList.equals(other.switchInfoList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + for (int i = 0; i < switchInfoList.length(); i++) { + output.writeRawByte((byte) 42); + output.writeMessageNoTag(switchInfoList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += (1 * switchInfoList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(switchInfoList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UpdateFeatureSwitchScNotify mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 42: { + // switchInfoList + tag = input.readRepeatedMessage(switchInfoList, tag); + bitField0_ |= 0x00000001; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeRepeatedMessage(FieldNames.switchInfoList, switchInfoList); + } + output.endObject(); + } + + @Override + public UpdateFeatureSwitchScNotify mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -1213388352: + case 941490756: { + if (input.isAtField(FieldNames.switchInfoList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(switchInfoList); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UpdateFeatureSwitchScNotify clone() { + return new UpdateFeatureSwitchScNotify().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UpdateFeatureSwitchScNotify parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UpdateFeatureSwitchScNotify(), data).checkInitialized(); + } + + public static UpdateFeatureSwitchScNotify parseFrom(final ProtoSource input) throws + IOException { + return ProtoMessage.mergeFrom(new UpdateFeatureSwitchScNotify(), input).checkInitialized(); + } + + public static UpdateFeatureSwitchScNotify parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateFeatureSwitchScNotify(), input).checkInitialized(); + } + + /** + * @return factory for creating UpdateFeatureSwitchScNotify messages + */ + public static MessageFactory getFactory() { + return UpdateFeatureSwitchScNotifyFactory.INSTANCE; + } + + private enum UpdateFeatureSwitchScNotifyFactory implements MessageFactory { + INSTANCE; + + @Override + public UpdateFeatureSwitchScNotify create() { + return UpdateFeatureSwitchScNotify.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName switchInfoList = FieldName.forField("switchInfoList", "switch_info_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyCsReqOuterClass.java new file mode 100644 index 0000000..446cb2c --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyCsReqOuterClass.java @@ -0,0 +1,553 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.Utf8String; + +public final class UpdateGroupPropertyCsReqOuterClass { + /** + * Protobuf type {@code UpdateGroupPropertyCsReq} + */ + public static final class UpdateGroupPropertyCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + */ + private int groupId; + + /** + * optional uint32 floor_id = 15; + */ + private int floorId; + + /** + * optional sint32 property_value = 5; + */ + private int propertyValue; + + /** + * optional string property_name = 7; + */ + private final Utf8String propertyName = Utf8String.newEmptyInstance(); + + private UpdateGroupPropertyCsReq() { + } + + /** + * @return a new empty instance of {@code UpdateGroupPropertyCsReq} + */ + public static UpdateGroupPropertyCsReq newInstance() { + return new UpdateGroupPropertyCsReq(); + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @return this + */ + public UpdateGroupPropertyCsReq clearGroupId() { + bitField0_ &= ~0x00000001; + groupId = 0; + return this; + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + *
+     *  KNAHNGAACPJ
+     * 
+ * + * optional uint32 group_id = 6; + * @param value the groupId to set + * @return this + */ + public UpdateGroupPropertyCsReq setGroupId(final int value) { + bitField0_ |= 0x00000001; + groupId = value; + return this; + } + + /** + * optional uint32 floor_id = 15; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 floor_id = 15; + * @return this + */ + public UpdateGroupPropertyCsReq clearFloorId() { + bitField0_ &= ~0x00000002; + floorId = 0; + return this; + } + + /** + * optional uint32 floor_id = 15; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + * optional uint32 floor_id = 15; + * @param value the floorId to set + * @return this + */ + public UpdateGroupPropertyCsReq setFloorId(final int value) { + bitField0_ |= 0x00000002; + floorId = value; + return this; + } + + /** + * optional sint32 property_value = 5; + * @return whether the propertyValue field is set + */ + public boolean hasPropertyValue() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional sint32 property_value = 5; + * @return this + */ + public UpdateGroupPropertyCsReq clearPropertyValue() { + bitField0_ &= ~0x00000004; + propertyValue = 0; + return this; + } + + /** + * optional sint32 property_value = 5; + * @return the propertyValue + */ + public int getPropertyValue() { + return propertyValue; + } + + /** + * optional sint32 property_value = 5; + * @param value the propertyValue to set + * @return this + */ + public UpdateGroupPropertyCsReq setPropertyValue(final int value) { + bitField0_ |= 0x00000004; + propertyValue = value; + return this; + } + + /** + * optional string property_name = 7; + * @return whether the propertyName field is set + */ + public boolean hasPropertyName() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional string property_name = 7; + * @return this + */ + public UpdateGroupPropertyCsReq clearPropertyName() { + bitField0_ &= ~0x00000008; + propertyName.clear(); + return this; + } + + /** + * optional string property_name = 7; + * @return the propertyName + */ + public String getPropertyName() { + return propertyName.getString(); + } + + /** + * optional string property_name = 7; + * @return internal {@code Utf8String} representation of propertyName for reading + */ + public Utf8String getPropertyNameBytes() { + return this.propertyName; + } + + /** + * optional string property_name = 7; + * @return internal {@code Utf8String} representation of propertyName for modifications + */ + public Utf8String getMutablePropertyNameBytes() { + bitField0_ |= 0x00000008; + return this.propertyName; + } + + /** + * optional string property_name = 7; + * @param value the propertyName to set + * @return this + */ + public UpdateGroupPropertyCsReq setPropertyName(final CharSequence value) { + bitField0_ |= 0x00000008; + propertyName.copyFrom(value); + return this; + } + + /** + * optional string property_name = 7; + * @param value the propertyName to set + * @return this + */ + public UpdateGroupPropertyCsReq setPropertyName(final Utf8String value) { + bitField0_ |= 0x00000008; + propertyName.copyFrom(value); + return this; + } + + @Override + public UpdateGroupPropertyCsReq copyFrom(final UpdateGroupPropertyCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + groupId = other.groupId; + floorId = other.floorId; + propertyValue = other.propertyValue; + propertyName.copyFrom(other.propertyName); + } + return this; + } + + @Override + public UpdateGroupPropertyCsReq mergeFrom(final UpdateGroupPropertyCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasPropertyValue()) { + setPropertyValue(other.propertyValue); + } + if (other.hasPropertyName()) { + getMutablePropertyNameBytes().copyFrom(other.propertyName); + } + return this; + } + + @Override + public UpdateGroupPropertyCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + groupId = 0; + floorId = 0; + propertyValue = 0; + propertyName.clear(); + return this; + } + + @Override + public UpdateGroupPropertyCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propertyName.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UpdateGroupPropertyCsReq)) { + return false; + } + UpdateGroupPropertyCsReq other = (UpdateGroupPropertyCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasGroupId() || groupId == other.groupId) + && (!hasFloorId() || floorId == other.floorId) + && (!hasPropertyValue() || propertyValue == other.propertyValue) + && (!hasPropertyName() || propertyName.equals(other.propertyName)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 48); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 40); + output.writeSInt32NoTag(propertyValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 58); + output.writeStringNoTag(propertyName); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(propertyValue); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(propertyName); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UpdateGroupPropertyCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 48: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 40) { + break; + } + } + case 40: { + // propertyValue + propertyValue = input.readSInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 58) { + break; + } + } + case 58: { + // propertyName + input.readString(propertyName); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeSInt32(FieldNames.propertyValue, propertyValue); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeString(FieldNames.propertyName, propertyName); + } + output.endObject(); + } + + @Override + public UpdateGroupPropertyCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1028251492: + case -1534304633: { + if (input.isAtField(FieldNames.propertyValue)) { + if (!input.trySkipNullValue()) { + propertyValue = input.readSInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case -864691712: + case -1019563339: { + if (input.isAtField(FieldNames.propertyName)) { + if (!input.trySkipNullValue()) { + input.readString(propertyName); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UpdateGroupPropertyCsReq clone() { + return new UpdateGroupPropertyCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UpdateGroupPropertyCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UpdateGroupPropertyCsReq(), data).checkInitialized(); + } + + public static UpdateGroupPropertyCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateGroupPropertyCsReq(), input).checkInitialized(); + } + + public static UpdateGroupPropertyCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateGroupPropertyCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating UpdateGroupPropertyCsReq messages + */ + public static MessageFactory getFactory() { + return UpdateGroupPropertyCsReqFactory.INSTANCE; + } + + private enum UpdateGroupPropertyCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public UpdateGroupPropertyCsReq create() { + return UpdateGroupPropertyCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName propertyValue = FieldName.forField("propertyValue", "property_value"); + + static final FieldName propertyName = FieldName.forField("propertyName", "property_name"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyScRspOuterClass.java new file mode 100644 index 0000000..76e20f0 --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UpdateGroupPropertyScRspOuterClass.java @@ -0,0 +1,825 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.Utf8String; + +public final class UpdateGroupPropertyScRspOuterClass { + /** + * Protobuf type {@code UpdateGroupPropertyScRsp} + */ + public static final class UpdateGroupPropertyScRsp extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 retcode = 10; + */ + private int retcode; + + /** + * optional uint32 PJMIHPLBCEM = 11; + */ + private int pJMIHPLBCEM; + + /** + *
+     *  MOAJOOLLPLH
+     * 
+ * + * optional uint32 floor_id = 13; + */ + private int floorId; + + /** + * optional uint32 group_id = 15; + */ + private int groupId; + + /** + * optional sint32 cur_property_value = 6; + */ + private int curPropertyValue; + + /** + * optional sint32 BNINLHOKICO = 7; + */ + private int bNINLHOKICO; + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + */ + private final Utf8String propertyName = Utf8String.newEmptyInstance(); + + private UpdateGroupPropertyScRsp() { + } + + /** + * @return a new empty instance of {@code UpdateGroupPropertyScRsp} + */ + public static UpdateGroupPropertyScRsp newInstance() { + return new UpdateGroupPropertyScRsp(); + } + + /** + * optional uint32 retcode = 10; + * @return whether the retcode field is set + */ + public boolean hasRetcode() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 retcode = 10; + * @return this + */ + public UpdateGroupPropertyScRsp clearRetcode() { + bitField0_ &= ~0x00000001; + retcode = 0; + return this; + } + + /** + * optional uint32 retcode = 10; + * @return the retcode + */ + public int getRetcode() { + return retcode; + } + + /** + * optional uint32 retcode = 10; + * @param value the retcode to set + * @return this + */ + public UpdateGroupPropertyScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; + retcode = value; + return this; + } + + /** + * optional uint32 PJMIHPLBCEM = 11; + * @return whether the pJMIHPLBCEM field is set + */ + public boolean hasPJMIHPLBCEM() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 PJMIHPLBCEM = 11; + * @return this + */ + public UpdateGroupPropertyScRsp clearPJMIHPLBCEM() { + bitField0_ &= ~0x00000002; + pJMIHPLBCEM = 0; + return this; + } + + /** + * optional uint32 PJMIHPLBCEM = 11; + * @return the pJMIHPLBCEM + */ + public int getPJMIHPLBCEM() { + return pJMIHPLBCEM; + } + + /** + * optional uint32 PJMIHPLBCEM = 11; + * @param value the pJMIHPLBCEM to set + * @return this + */ + public UpdateGroupPropertyScRsp setPJMIHPLBCEM(final int value) { + bitField0_ |= 0x00000002; + pJMIHPLBCEM = value; + return this; + } + + /** + *
+     *  MOAJOOLLPLH
+     * 
+ * + * optional uint32 floor_id = 13; + * @return whether the floorId field is set + */ + public boolean hasFloorId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + *
+     *  MOAJOOLLPLH
+     * 
+ * + * optional uint32 floor_id = 13; + * @return this + */ + public UpdateGroupPropertyScRsp clearFloorId() { + bitField0_ &= ~0x00000004; + floorId = 0; + return this; + } + + /** + *
+     *  MOAJOOLLPLH
+     * 
+ * + * optional uint32 floor_id = 13; + * @return the floorId + */ + public int getFloorId() { + return floorId; + } + + /** + *
+     *  MOAJOOLLPLH
+     * 
+ * + * optional uint32 floor_id = 13; + * @param value the floorId to set + * @return this + */ + public UpdateGroupPropertyScRsp setFloorId(final int value) { + bitField0_ |= 0x00000004; + floorId = value; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return whether the groupId field is set + */ + public boolean hasGroupId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 group_id = 15; + * @return this + */ + public UpdateGroupPropertyScRsp clearGroupId() { + bitField0_ &= ~0x00000008; + groupId = 0; + return this; + } + + /** + * optional uint32 group_id = 15; + * @return the groupId + */ + public int getGroupId() { + return groupId; + } + + /** + * optional uint32 group_id = 15; + * @param value the groupId to set + * @return this + */ + public UpdateGroupPropertyScRsp setGroupId(final int value) { + bitField0_ |= 0x00000008; + groupId = value; + return this; + } + + /** + * optional sint32 cur_property_value = 6; + * @return whether the curPropertyValue field is set + */ + public boolean hasCurPropertyValue() { + return (bitField0_ & 0x00000010) != 0; + } + + /** + * optional sint32 cur_property_value = 6; + * @return this + */ + public UpdateGroupPropertyScRsp clearCurPropertyValue() { + bitField0_ &= ~0x00000010; + curPropertyValue = 0; + return this; + } + + /** + * optional sint32 cur_property_value = 6; + * @return the curPropertyValue + */ + public int getCurPropertyValue() { + return curPropertyValue; + } + + /** + * optional sint32 cur_property_value = 6; + * @param value the curPropertyValue to set + * @return this + */ + public UpdateGroupPropertyScRsp setCurPropertyValue(final int value) { + bitField0_ |= 0x00000010; + curPropertyValue = value; + return this; + } + + /** + * optional sint32 BNINLHOKICO = 7; + * @return whether the bNINLHOKICO field is set + */ + public boolean hasBNINLHOKICO() { + return (bitField0_ & 0x00000020) != 0; + } + + /** + * optional sint32 BNINLHOKICO = 7; + * @return this + */ + public UpdateGroupPropertyScRsp clearBNINLHOKICO() { + bitField0_ &= ~0x00000020; + bNINLHOKICO = 0; + return this; + } + + /** + * optional sint32 BNINLHOKICO = 7; + * @return the bNINLHOKICO + */ + public int getBNINLHOKICO() { + return bNINLHOKICO; + } + + /** + * optional sint32 BNINLHOKICO = 7; + * @param value the bNINLHOKICO to set + * @return this + */ + public UpdateGroupPropertyScRsp setBNINLHOKICO(final int value) { + bitField0_ |= 0x00000020; + bNINLHOKICO = value; + return this; + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @return whether the propertyName field is set + */ + public boolean hasPropertyName() { + return (bitField0_ & 0x00000040) != 0; + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @return this + */ + public UpdateGroupPropertyScRsp clearPropertyName() { + bitField0_ &= ~0x00000040; + propertyName.clear(); + return this; + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @return the propertyName + */ + public String getPropertyName() { + return propertyName.getString(); + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @return internal {@code Utf8String} representation of propertyName for reading + */ + public Utf8String getPropertyNameBytes() { + return this.propertyName; + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @return internal {@code Utf8String} representation of propertyName for modifications + */ + public Utf8String getMutablePropertyNameBytes() { + bitField0_ |= 0x00000040; + return this.propertyName; + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @param value the propertyName to set + * @return this + */ + public UpdateGroupPropertyScRsp setPropertyName(final CharSequence value) { + bitField0_ |= 0x00000040; + propertyName.copyFrom(value); + return this; + } + + /** + *
+     *  GCJKIDIBJHJ
+     * 
+ * + * optional string property_name = 4; + * @param value the propertyName to set + * @return this + */ + public UpdateGroupPropertyScRsp setPropertyName(final Utf8String value) { + bitField0_ |= 0x00000040; + propertyName.copyFrom(value); + return this; + } + + @Override + public UpdateGroupPropertyScRsp copyFrom(final UpdateGroupPropertyScRsp other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + retcode = other.retcode; + pJMIHPLBCEM = other.pJMIHPLBCEM; + floorId = other.floorId; + groupId = other.groupId; + curPropertyValue = other.curPropertyValue; + bNINLHOKICO = other.bNINLHOKICO; + propertyName.copyFrom(other.propertyName); + } + return this; + } + + @Override + public UpdateGroupPropertyScRsp mergeFrom(final UpdateGroupPropertyScRsp other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } + if (other.hasPJMIHPLBCEM()) { + setPJMIHPLBCEM(other.pJMIHPLBCEM); + } + if (other.hasFloorId()) { + setFloorId(other.floorId); + } + if (other.hasGroupId()) { + setGroupId(other.groupId); + } + if (other.hasCurPropertyValue()) { + setCurPropertyValue(other.curPropertyValue); + } + if (other.hasBNINLHOKICO()) { + setBNINLHOKICO(other.bNINLHOKICO); + } + if (other.hasPropertyName()) { + getMutablePropertyNameBytes().copyFrom(other.propertyName); + } + return this; + } + + @Override + public UpdateGroupPropertyScRsp clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + retcode = 0; + pJMIHPLBCEM = 0; + floorId = 0; + groupId = 0; + curPropertyValue = 0; + bNINLHOKICO = 0; + propertyName.clear(); + return this; + } + + @Override + public UpdateGroupPropertyScRsp clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + propertyName.clear(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UpdateGroupPropertyScRsp)) { + return false; + } + UpdateGroupPropertyScRsp other = (UpdateGroupPropertyScRsp) o; + return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) + && (!hasPJMIHPLBCEM() || pJMIHPLBCEM == other.pJMIHPLBCEM) + && (!hasFloorId() || floorId == other.floorId) + && (!hasGroupId() || groupId == other.groupId) + && (!hasCurPropertyValue() || curPropertyValue == other.curPropertyValue) + && (!hasBNINLHOKICO() || bNINLHOKICO == other.bNINLHOKICO) + && (!hasPropertyName() || propertyName.equals(other.propertyName)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(pJMIHPLBCEM); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(groupId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeRawByte((byte) 48); + output.writeSInt32NoTag(curPropertyValue); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeRawByte((byte) 56); + output.writeSInt32NoTag(bNINLHOKICO); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeRawByte((byte) 34); + output.writeStringNoTag(propertyName); + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(pJMIHPLBCEM); + } + if ((bitField0_ & 0x00000004) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId); + } + if ((bitField0_ & 0x00000010) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(curPropertyValue); + } + if ((bitField0_ & 0x00000020) != 0) { + size += 1 + ProtoSink.computeSInt32SizeNoTag(bNINLHOKICO); + } + if ((bitField0_ & 0x00000040) != 0) { + size += 1 + ProtoSink.computeStringSizeNoTag(propertyName); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UpdateGroupPropertyScRsp mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // retcode + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 88) { + break; + } + } + case 88: { + // pJMIHPLBCEM + pJMIHPLBCEM = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 104) { + break; + } + } + case 104: { + // floorId + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // groupId + groupId = input.readUInt32(); + bitField0_ |= 0x00000008; + tag = input.readTag(); + if (tag != 48) { + break; + } + } + case 48: { + // curPropertyValue + curPropertyValue = input.readSInt32(); + bitField0_ |= 0x00000010; + tag = input.readTag(); + if (tag != 56) { + break; + } + } + case 56: { + // bNINLHOKICO + bNINLHOKICO = input.readSInt32(); + bitField0_ |= 0x00000020; + tag = input.readTag(); + if (tag != 34) { + break; + } + } + case 34: { + // propertyName + input.readString(propertyName); + bitField0_ |= 0x00000040; + tag = input.readTag(); + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.retcode, retcode); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.pJMIHPLBCEM, pJMIHPLBCEM); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeUInt32(FieldNames.floorId, floorId); + } + if ((bitField0_ & 0x00000008) != 0) { + output.writeUInt32(FieldNames.groupId, groupId); + } + if ((bitField0_ & 0x00000010) != 0) { + output.writeSInt32(FieldNames.curPropertyValue, curPropertyValue); + } + if ((bitField0_ & 0x00000020) != 0) { + output.writeSInt32(FieldNames.bNINLHOKICO, bNINLHOKICO); + } + if ((bitField0_ & 0x00000040) != 0) { + output.writeString(FieldNames.propertyName, propertyName); + } + output.endObject(); + } + + @Override + public UpdateGroupPropertyScRsp mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -904914665: { + if (input.isAtField(FieldNames.pJMIHPLBCEM)) { + if (!input.trySkipNullValue()) { + pJMIHPLBCEM = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case -766027193: + case 2022982190: { + if (input.isAtField(FieldNames.floorId)) { + if (!input.trySkipNullValue()) { + floorId = input.readUInt32(); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + case 293428218: + case 506361563: { + if (input.isAtField(FieldNames.groupId)) { + if (!input.trySkipNullValue()) { + groupId = input.readUInt32(); + bitField0_ |= 0x00000008; + } + } else { + input.skipUnknownField(); + } + break; + } + case -741771716: + case 1375371878: { + if (input.isAtField(FieldNames.curPropertyValue)) { + if (!input.trySkipNullValue()) { + curPropertyValue = input.readSInt32(); + bitField0_ |= 0x00000010; + } + } else { + input.skipUnknownField(); + } + break; + } + case -215427188: { + if (input.isAtField(FieldNames.bNINLHOKICO)) { + if (!input.trySkipNullValue()) { + bNINLHOKICO = input.readSInt32(); + bitField0_ |= 0x00000020; + } + } else { + input.skipUnknownField(); + } + break; + } + case -864691712: + case -1019563339: { + if (input.isAtField(FieldNames.propertyName)) { + if (!input.trySkipNullValue()) { + input.readString(propertyName); + bitField0_ |= 0x00000040; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UpdateGroupPropertyScRsp clone() { + return new UpdateGroupPropertyScRsp().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UpdateGroupPropertyScRsp parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UpdateGroupPropertyScRsp(), data).checkInitialized(); + } + + public static UpdateGroupPropertyScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateGroupPropertyScRsp(), input).checkInitialized(); + } + + public static UpdateGroupPropertyScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateGroupPropertyScRsp(), input).checkInitialized(); + } + + /** + * @return factory for creating UpdateGroupPropertyScRsp messages + */ + public static MessageFactory getFactory() { + return UpdateGroupPropertyScRspFactory.INSTANCE; + } + + private enum UpdateGroupPropertyScRspFactory implements MessageFactory { + INSTANCE; + + @Override + public UpdateGroupPropertyScRsp create() { + return UpdateGroupPropertyScRsp.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName pJMIHPLBCEM = FieldName.forField("PJMIHPLBCEM"); + + static final FieldName floorId = FieldName.forField("floorId", "floor_id"); + + static final FieldName groupId = FieldName.forField("groupId", "group_id"); + + static final FieldName curPropertyValue = FieldName.forField("curPropertyValue", "cur_property_value"); + + static final FieldName bNINLHOKICO = FieldName.forField("BNINLHOKICO"); + + static final FieldName propertyName = FieldName.forField("propertyName", "property_name"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/UpdateMarkChestCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateMarkChestCsReqOuterClass.java new file mode 100644 index 0000000..2e90f6e --- /dev/null +++ b/src/generated/main/emu/lunarcore/proto/UpdateMarkChestCsReqOuterClass.java @@ -0,0 +1,458 @@ +// Code generated by protocol buffer compiler. Do not edit! +package emu.lunarcore.proto; + +import java.io.IOException; +import us.hebi.quickbuf.FieldName; +import us.hebi.quickbuf.InvalidProtocolBufferException; +import us.hebi.quickbuf.JsonSink; +import us.hebi.quickbuf.JsonSource; +import us.hebi.quickbuf.MessageFactory; +import us.hebi.quickbuf.ProtoMessage; +import us.hebi.quickbuf.ProtoSink; +import us.hebi.quickbuf.ProtoSource; +import us.hebi.quickbuf.RepeatedMessage; + +public final class UpdateMarkChestCsReqOuterClass { + /** + * Protobuf type {@code UpdateMarkChestCsReq} + */ + public static final class UpdateMarkChestCsReq extends ProtoMessage implements Cloneable { + private static final long serialVersionUID = 0L; + + /** + * optional uint32 mark_avatar_id = 10; + */ + private int markAvatarId; + + /** + * optional uint32 func_id = 15; + */ + private int funcId; + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + */ + private final RepeatedMessage chestPropDefList = RepeatedMessage.newEmptyInstance(MapPropDefInfoOuterClass.MapPropDefInfo.getFactory()); + + private UpdateMarkChestCsReq() { + } + + /** + * @return a new empty instance of {@code UpdateMarkChestCsReq} + */ + public static UpdateMarkChestCsReq newInstance() { + return new UpdateMarkChestCsReq(); + } + + /** + * optional uint32 mark_avatar_id = 10; + * @return whether the markAvatarId field is set + */ + public boolean hasMarkAvatarId() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional uint32 mark_avatar_id = 10; + * @return this + */ + public UpdateMarkChestCsReq clearMarkAvatarId() { + bitField0_ &= ~0x00000001; + markAvatarId = 0; + return this; + } + + /** + * optional uint32 mark_avatar_id = 10; + * @return the markAvatarId + */ + public int getMarkAvatarId() { + return markAvatarId; + } + + /** + * optional uint32 mark_avatar_id = 10; + * @param value the markAvatarId to set + * @return this + */ + public UpdateMarkChestCsReq setMarkAvatarId(final int value) { + bitField0_ |= 0x00000001; + markAvatarId = value; + return this; + } + + /** + * optional uint32 func_id = 15; + * @return whether the funcId field is set + */ + public boolean hasFuncId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 func_id = 15; + * @return this + */ + public UpdateMarkChestCsReq clearFuncId() { + bitField0_ &= ~0x00000002; + funcId = 0; + return this; + } + + /** + * optional uint32 func_id = 15; + * @return the funcId + */ + public int getFuncId() { + return funcId; + } + + /** + * optional uint32 func_id = 15; + * @param value the funcId to set + * @return this + */ + public UpdateMarkChestCsReq setFuncId(final int value) { + bitField0_ |= 0x00000002; + funcId = value; + return this; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + * @return whether the chestPropDefList field is set + */ + public boolean hasChestPropDefList() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + * @return this + */ + public UpdateMarkChestCsReq clearChestPropDefList() { + bitField0_ &= ~0x00000004; + chestPropDefList.clear(); + return this; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + * + * This method returns the internal storage object without modifying any has state. + * The returned object should not be modified and be treated as read-only. + * + * Use {@link #getMutableChestPropDefList()} if you want to modify it. + * + * @return internal storage object for reading + */ + public RepeatedMessage getChestPropDefList() { + return chestPropDefList; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + * + * This method returns the internal storage object and sets the corresponding + * has state. The returned object will become part of this message and its + * contents may be modified as long as the has state is not cleared. + * + * @return internal storage object for modifications + */ + public RepeatedMessage getMutableChestPropDefList() { + bitField0_ |= 0x00000004; + return chestPropDefList; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + * @param value the chestPropDefList to add + * @return this + */ + public UpdateMarkChestCsReq addChestPropDefList( + final MapPropDefInfoOuterClass.MapPropDefInfo value) { + bitField0_ |= 0x00000004; + chestPropDefList.add(value); + return this; + } + + /** + * repeated .MapPropDefInfo chest_prop_def_list = 8; + * @param values the chestPropDefList to add + * @return this + */ + public UpdateMarkChestCsReq addAllChestPropDefList( + final MapPropDefInfoOuterClass.MapPropDefInfo... values) { + bitField0_ |= 0x00000004; + chestPropDefList.addAll(values); + return this; + } + + @Override + public UpdateMarkChestCsReq copyFrom(final UpdateMarkChestCsReq other) { + cachedSize = other.cachedSize; + if ((bitField0_ | other.bitField0_) != 0) { + bitField0_ = other.bitField0_; + markAvatarId = other.markAvatarId; + funcId = other.funcId; + chestPropDefList.copyFrom(other.chestPropDefList); + } + return this; + } + + @Override + public UpdateMarkChestCsReq mergeFrom(final UpdateMarkChestCsReq other) { + if (other.isEmpty()) { + return this; + } + cachedSize = -1; + if (other.hasMarkAvatarId()) { + setMarkAvatarId(other.markAvatarId); + } + if (other.hasFuncId()) { + setFuncId(other.funcId); + } + if (other.hasChestPropDefList()) { + getMutableChestPropDefList().addAll(other.chestPropDefList); + } + return this; + } + + @Override + public UpdateMarkChestCsReq clear() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + markAvatarId = 0; + funcId = 0; + chestPropDefList.clear(); + return this; + } + + @Override + public UpdateMarkChestCsReq clearQuick() { + if (isEmpty()) { + return this; + } + cachedSize = -1; + bitField0_ = 0; + chestPropDefList.clearQuick(); + return this; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (!(o instanceof UpdateMarkChestCsReq)) { + return false; + } + UpdateMarkChestCsReq other = (UpdateMarkChestCsReq) o; + return bitField0_ == other.bitField0_ + && (!hasMarkAvatarId() || markAvatarId == other.markAvatarId) + && (!hasFuncId() || funcId == other.funcId) + && (!hasChestPropDefList() || chestPropDefList.equals(other.chestPropDefList)); + } + + @Override + public void writeTo(final ProtoSink output) throws IOException { + if ((bitField0_ & 0x00000001) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(markAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 120); + output.writeUInt32NoTag(funcId); + } + if ((bitField0_ & 0x00000004) != 0) { + for (int i = 0; i < chestPropDefList.length(); i++) { + output.writeRawByte((byte) 66); + output.writeMessageNoTag(chestPropDefList.get(i)); + } + } + } + + @Override + protected int computeSerializedSize() { + int size = 0; + if ((bitField0_ & 0x00000001) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(markAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(funcId); + } + if ((bitField0_ & 0x00000004) != 0) { + size += (1 * chestPropDefList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chestPropDefList); + } + return size; + } + + @Override + @SuppressWarnings("fallthrough") + public UpdateMarkChestCsReq mergeFrom(final ProtoSource input) throws IOException { + // Enabled Fall-Through Optimization (QuickBuffers) + int tag = input.readTag(); + while (true) { + switch (tag) { + case 80: { + // markAvatarId + markAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + tag = input.readTag(); + if (tag != 120) { + break; + } + } + case 120: { + // funcId + funcId = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 66) { + break; + } + } + case 66: { + // chestPropDefList + tag = input.readRepeatedMessage(chestPropDefList, tag); + bitField0_ |= 0x00000004; + if (tag != 0) { + break; + } + } + case 0: { + return this; + } + default: { + if (!input.skipField(tag)) { + return this; + } + tag = input.readTag(); + break; + } + } + } + } + + @Override + public void writeTo(final JsonSink output) throws IOException { + output.beginObject(); + if ((bitField0_ & 0x00000001) != 0) { + output.writeUInt32(FieldNames.markAvatarId, markAvatarId); + } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.funcId, funcId); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRepeatedMessage(FieldNames.chestPropDefList, chestPropDefList); + } + output.endObject(); + } + + @Override + public UpdateMarkChestCsReq mergeFrom(final JsonSource input) throws IOException { + if (!input.beginObject()) { + return this; + } + while (!input.isAtEnd()) { + switch (input.readFieldHash()) { + case -520346047: + case -1048892721: { + if (input.isAtField(FieldNames.markAvatarId)) { + if (!input.trySkipNullValue()) { + markAvatarId = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } + case -1263367425: + case -509663114: { + if (input.isAtField(FieldNames.funcId)) { + if (!input.trySkipNullValue()) { + funcId = input.readUInt32(); + bitField0_ |= 0x00000002; + } + } else { + input.skipUnknownField(); + } + break; + } + case 1174803359: + case 1976709430: { + if (input.isAtField(FieldNames.chestPropDefList)) { + if (!input.trySkipNullValue()) { + input.readRepeatedMessage(chestPropDefList); + bitField0_ |= 0x00000004; + } + } else { + input.skipUnknownField(); + } + break; + } + default: { + input.skipUnknownField(); + break; + } + } + } + input.endObject(); + return this; + } + + @Override + public UpdateMarkChestCsReq clone() { + return new UpdateMarkChestCsReq().copyFrom(this); + } + + @Override + public boolean isEmpty() { + return ((bitField0_) == 0); + } + + public static UpdateMarkChestCsReq parseFrom(final byte[] data) throws + InvalidProtocolBufferException { + return ProtoMessage.mergeFrom(new UpdateMarkChestCsReq(), data).checkInitialized(); + } + + public static UpdateMarkChestCsReq parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateMarkChestCsReq(), input).checkInitialized(); + } + + public static UpdateMarkChestCsReq parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateMarkChestCsReq(), input).checkInitialized(); + } + + /** + * @return factory for creating UpdateMarkChestCsReq messages + */ + public static MessageFactory getFactory() { + return UpdateMarkChestCsReqFactory.INSTANCE; + } + + private enum UpdateMarkChestCsReqFactory implements MessageFactory { + INSTANCE; + + @Override + public UpdateMarkChestCsReq create() { + return UpdateMarkChestCsReq.newInstance(); + } + } + + /** + * Contains name constants used for serializing JSON + */ + static class FieldNames { + static final FieldName markAvatarId = FieldName.forField("markAvatarId", "mark_avatar_id"); + + static final FieldName funcId = FieldName.forField("funcId", "func_id"); + + static final FieldName chestPropDefList = FieldName.forField("chestPropDefList", "chest_prop_def_list"); + } + } +} diff --git a/src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateMarkChestScRspOuterClass.java similarity index 50% rename from src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java rename to src/generated/main/emu/lunarcore/proto/UpdateMarkChestScRspOuterClass.java index 02aaa88..cc4b15b 100644 --- a/src/generated/main/emu/lunarcore/proto/GetRollShopInfoScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UpdateMarkChestScRspOuterClass.java @@ -10,122 +10,65 @@ import us.hebi.quickbuf.MessageFactory; import us.hebi.quickbuf.ProtoMessage; import us.hebi.quickbuf.ProtoSink; import us.hebi.quickbuf.ProtoSource; -import us.hebi.quickbuf.RepeatedInt; +import us.hebi.quickbuf.RepeatedMessage; -public final class GetRollShopInfoScRspOuterClass { +public final class UpdateMarkChestScRspOuterClass { /** - * Protobuf type {@code GetRollShopInfoScRsp} + * Protobuf type {@code UpdateMarkChestScRsp} */ - public static final class GetRollShopInfoScRsp extends ProtoMessage implements Cloneable { + public static final class UpdateMarkChestScRsp extends ProtoMessage implements Cloneable { private static final long serialVersionUID = 0L; /** - *
-     *  gacha_random
-     * 
- * - * optional uint32 BBJIJINJAFK = 3; - */ - private int bBJIJINJAFK; - - /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; */ private int retcode; /** - * optional uint32 roll_shop_id = 15; + * optional uint32 mark_avatar_id = 8; */ - private int rollShopId; + private int markAvatarId; /** - * repeated uint32 DLPBJMPECFC = 11; + * optional uint32 func_id = 14; */ - private final RepeatedInt dLPBJMPECFC = RepeatedInt.newEmptyInstance(); + private int funcId; - private GetRollShopInfoScRsp() { + /** + * repeated .MarkChestInfo chest_group_list = 6; + */ + private final RepeatedMessage chestGroupList = RepeatedMessage.newEmptyInstance(MarkChestInfoOuterClass.MarkChestInfo.getFactory()); + + private UpdateMarkChestScRsp() { } /** - * @return a new empty instance of {@code GetRollShopInfoScRsp} + * @return a new empty instance of {@code UpdateMarkChestScRsp} */ - public static GetRollShopInfoScRsp newInstance() { - return new GetRollShopInfoScRsp(); + public static UpdateMarkChestScRsp newInstance() { + return new UpdateMarkChestScRsp(); } /** - *
-     *  gacha_random
-     * 
- * - * optional uint32 BBJIJINJAFK = 3; - * @return whether the bBJIJINJAFK field is set + * optional uint32 retcode = 1; + * @return whether the retcode field is set */ - public boolean hasBBJIJINJAFK() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - *
-     *  gacha_random
-     * 
- * - * optional uint32 BBJIJINJAFK = 3; + * optional uint32 retcode = 1; * @return this */ - public GetRollShopInfoScRsp clearBBJIJINJAFK() { + public UpdateMarkChestScRsp clearRetcode() { bitField0_ &= ~0x00000001; - bBJIJINJAFK = 0; - return this; - } - - /** - *
-     *  gacha_random
-     * 
- * - * optional uint32 BBJIJINJAFK = 3; - * @return the bBJIJINJAFK - */ - public int getBBJIJINJAFK() { - return bBJIJINJAFK; - } - - /** - *
-     *  gacha_random
-     * 
- * - * optional uint32 BBJIJINJAFK = 3; - * @param value the bBJIJINJAFK to set - * @return this - */ - public GetRollShopInfoScRsp setBBJIJINJAFK(final int value) { - bitField0_ |= 0x00000001; - bBJIJINJAFK = value; - return this; - } - - /** - * optional uint32 retcode = 8; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 8; - * @return this - */ - public GetRollShopInfoScRsp clearRetcode() { - bitField0_ &= ~0x00000002; retcode = 0; return this; } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @return the retcode */ public int getRetcode() { @@ -133,87 +76,124 @@ public final class GetRollShopInfoScRspOuterClass { } /** - * optional uint32 retcode = 8; + * optional uint32 retcode = 1; * @param value the retcode to set * @return this */ - public GetRollShopInfoScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + public UpdateMarkChestScRsp setRetcode(final int value) { + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional uint32 roll_shop_id = 15; - * @return whether the rollShopId field is set + * optional uint32 mark_avatar_id = 8; + * @return whether the markAvatarId field is set */ - public boolean hasRollShopId() { + public boolean hasMarkAvatarId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 mark_avatar_id = 8; + * @return this + */ + public UpdateMarkChestScRsp clearMarkAvatarId() { + bitField0_ &= ~0x00000002; + markAvatarId = 0; + return this; + } + + /** + * optional uint32 mark_avatar_id = 8; + * @return the markAvatarId + */ + public int getMarkAvatarId() { + return markAvatarId; + } + + /** + * optional uint32 mark_avatar_id = 8; + * @param value the markAvatarId to set + * @return this + */ + public UpdateMarkChestScRsp setMarkAvatarId(final int value) { + bitField0_ |= 0x00000002; + markAvatarId = value; + return this; + } + + /** + * optional uint32 func_id = 14; + * @return whether the funcId field is set + */ + public boolean hasFuncId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 roll_shop_id = 15; + * optional uint32 func_id = 14; * @return this */ - public GetRollShopInfoScRsp clearRollShopId() { + public UpdateMarkChestScRsp clearFuncId() { bitField0_ &= ~0x00000004; - rollShopId = 0; + funcId = 0; return this; } /** - * optional uint32 roll_shop_id = 15; - * @return the rollShopId + * optional uint32 func_id = 14; + * @return the funcId */ - public int getRollShopId() { - return rollShopId; + public int getFuncId() { + return funcId; } /** - * optional uint32 roll_shop_id = 15; - * @param value the rollShopId to set + * optional uint32 func_id = 14; + * @param value the funcId to set * @return this */ - public GetRollShopInfoScRsp setRollShopId(final int value) { + public UpdateMarkChestScRsp setFuncId(final int value) { bitField0_ |= 0x00000004; - rollShopId = value; + funcId = value; return this; } /** - * repeated uint32 DLPBJMPECFC = 11; - * @return whether the dLPBJMPECFC field is set + * repeated .MarkChestInfo chest_group_list = 6; + * @return whether the chestGroupList field is set */ - public boolean hasDLPBJMPECFC() { + public boolean hasChestGroupList() { return (bitField0_ & 0x00000008) != 0; } /** - * repeated uint32 DLPBJMPECFC = 11; + * repeated .MarkChestInfo chest_group_list = 6; * @return this */ - public GetRollShopInfoScRsp clearDLPBJMPECFC() { + public UpdateMarkChestScRsp clearChestGroupList() { bitField0_ &= ~0x00000008; - dLPBJMPECFC.clear(); + chestGroupList.clear(); return this; } /** - * repeated uint32 DLPBJMPECFC = 11; + * repeated .MarkChestInfo chest_group_list = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. * - * Use {@link #getMutableDLPBJMPECFC()} if you want to modify it. + * Use {@link #getMutableChestGroupList()} if you want to modify it. * * @return internal storage object for reading */ - public RepeatedInt getDLPBJMPECFC() { - return dLPBJMPECFC; + public RepeatedMessage getChestGroupList() { + return chestGroupList; } /** - * repeated uint32 DLPBJMPECFC = 11; + * repeated .MarkChestInfo chest_group_list = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -221,89 +201,91 @@ public final class GetRollShopInfoScRspOuterClass { * * @return internal storage object for modifications */ - public RepeatedInt getMutableDLPBJMPECFC() { + public RepeatedMessage getMutableChestGroupList() { bitField0_ |= 0x00000008; - return dLPBJMPECFC; + return chestGroupList; } /** - * repeated uint32 DLPBJMPECFC = 11; - * @param value the dLPBJMPECFC to add + * repeated .MarkChestInfo chest_group_list = 6; + * @param value the chestGroupList to add * @return this */ - public GetRollShopInfoScRsp addDLPBJMPECFC(final int value) { + public UpdateMarkChestScRsp addChestGroupList( + final MarkChestInfoOuterClass.MarkChestInfo value) { bitField0_ |= 0x00000008; - dLPBJMPECFC.add(value); + chestGroupList.add(value); return this; } /** - * repeated uint32 DLPBJMPECFC = 11; - * @param values the dLPBJMPECFC to add + * repeated .MarkChestInfo chest_group_list = 6; + * @param values the chestGroupList to add * @return this */ - public GetRollShopInfoScRsp addAllDLPBJMPECFC(final int... values) { + public UpdateMarkChestScRsp addAllChestGroupList( + final MarkChestInfoOuterClass.MarkChestInfo... values) { bitField0_ |= 0x00000008; - dLPBJMPECFC.addAll(values); + chestGroupList.addAll(values); return this; } @Override - public GetRollShopInfoScRsp copyFrom(final GetRollShopInfoScRsp other) { + public UpdateMarkChestScRsp copyFrom(final UpdateMarkChestScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - bBJIJINJAFK = other.bBJIJINJAFK; retcode = other.retcode; - rollShopId = other.rollShopId; - dLPBJMPECFC.copyFrom(other.dLPBJMPECFC); + markAvatarId = other.markAvatarId; + funcId = other.funcId; + chestGroupList.copyFrom(other.chestGroupList); } return this; } @Override - public GetRollShopInfoScRsp mergeFrom(final GetRollShopInfoScRsp other) { + public UpdateMarkChestScRsp mergeFrom(final UpdateMarkChestScRsp other) { if (other.isEmpty()) { return this; } cachedSize = -1; - if (other.hasBBJIJINJAFK()) { - setBBJIJINJAFK(other.bBJIJINJAFK); - } if (other.hasRetcode()) { setRetcode(other.retcode); } - if (other.hasRollShopId()) { - setRollShopId(other.rollShopId); + if (other.hasMarkAvatarId()) { + setMarkAvatarId(other.markAvatarId); } - if (other.hasDLPBJMPECFC()) { - getMutableDLPBJMPECFC().addAll(other.dLPBJMPECFC); + if (other.hasFuncId()) { + setFuncId(other.funcId); + } + if (other.hasChestGroupList()) { + getMutableChestGroupList().addAll(other.chestGroupList); } return this; } @Override - public GetRollShopInfoScRsp clear() { + public UpdateMarkChestScRsp clear() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - bBJIJINJAFK = 0; retcode = 0; - rollShopId = 0; - dLPBJMPECFC.clear(); + markAvatarId = 0; + funcId = 0; + chestGroupList.clear(); return this; } @Override - public GetRollShopInfoScRsp clearQuick() { + public UpdateMarkChestScRsp clearQuick() { if (isEmpty()) { return this; } cachedSize = -1; bitField0_ = 0; - dLPBJMPECFC.clear(); + chestGroupList.clearQuick(); return this; } @@ -312,35 +294,35 @@ public final class GetRollShopInfoScRspOuterClass { if (o == this) { return true; } - if (!(o instanceof GetRollShopInfoScRsp)) { + if (!(o instanceof UpdateMarkChestScRsp)) { return false; } - GetRollShopInfoScRsp other = (GetRollShopInfoScRsp) o; + UpdateMarkChestScRsp other = (UpdateMarkChestScRsp) o; return bitField0_ == other.bitField0_ - && (!hasBBJIJINJAFK() || bBJIJINJAFK == other.bBJIJINJAFK) && (!hasRetcode() || retcode == other.retcode) - && (!hasRollShopId() || rollShopId == other.rollShopId) - && (!hasDLPBJMPECFC() || dLPBJMPECFC.equals(other.dLPBJMPECFC)); + && (!hasMarkAvatarId() || markAvatarId == other.markAvatarId) + && (!hasFuncId() || funcId == other.funcId) + && (!hasChestGroupList() || chestGroupList.equals(other.chestGroupList)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeUInt32NoTag(bBJIJINJAFK); + output.writeRawByte((byte) 8); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { output.writeRawByte((byte) 64); - output.writeUInt32NoTag(retcode); + output.writeUInt32NoTag(markAvatarId); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(rollShopId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(funcId); } if ((bitField0_ & 0x00000008) != 0) { - for (int i = 0; i < dLPBJMPECFC.length(); i++) { - output.writeRawByte((byte) 88); - output.writeUInt32NoTag(dLPBJMPECFC.array()[i]); + for (int i = 0; i < chestGroupList.length(); i++) { + output.writeRawByte((byte) 50); + output.writeMessageNoTag(chestGroupList.get(i)); } } } @@ -349,30 +331,30 @@ public final class GetRollShopInfoScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(bBJIJINJAFK); - } - if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + size += 1 + ProtoSink.computeUInt32SizeNoTag(markAvatarId); + } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(rollShopId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(funcId); } if ((bitField0_ & 0x00000008) != 0) { - size += (1 * dLPBJMPECFC.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(dLPBJMPECFC); + size += (1 * chestGroupList.length()) + ProtoSink.computeRepeatedMessageSizeNoTag(chestGroupList); } return size; } @Override @SuppressWarnings("fallthrough") - public GetRollShopInfoScRsp mergeFrom(final ProtoSource input) throws IOException { + public UpdateMarkChestScRsp mergeFrom(final ProtoSource input) throws IOException { // Enabled Fall-Through Optimization (QuickBuffers) int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // bBJIJINJAFK - bBJIJINJAFK = input.readUInt32(); + case 8: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); if (tag != 64) { @@ -380,28 +362,27 @@ public final class GetRollShopInfoScRspOuterClass { } } case 64: { - // retcode - retcode = input.readUInt32(); + // markAvatarId + markAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { - // rollShopId - rollShopId = input.readUInt32(); + case 112: { + // funcId + funcId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 90) { + if (tag != 50) { break; } } - case 90: { - // dLPBJMPECFC [packed=true] - input.readPackedUInt32(dLPBJMPECFC, tag); + case 50: { + // chestGroupList + tag = input.readRepeatedMessage(chestGroupList, tag); bitField0_ |= 0x00000008; - tag = input.readTag(); if (tag != 0) { break; } @@ -416,12 +397,6 @@ public final class GetRollShopInfoScRspOuterClass { tag = input.readTag(); break; } - case 88: { - // dLPBJMPECFC [packed=false] - tag = input.readRepeatedUInt32(dLPBJMPECFC, tag); - bitField0_ |= 0x00000008; - break; - } } } } @@ -430,31 +405,31 @@ public final class GetRollShopInfoScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.bBJIJINJAFK, bBJIJINJAFK); - } - if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.retcode, retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeUInt32(FieldNames.markAvatarId, markAvatarId); + } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.rollShopId, rollShopId); + output.writeUInt32(FieldNames.funcId, funcId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRepeatedUInt32(FieldNames.dLPBJMPECFC, dLPBJMPECFC); + output.writeRepeatedMessage(FieldNames.chestGroupList, chestGroupList); } output.endObject(); } @Override - public GetRollShopInfoScRsp mergeFrom(final JsonSource input) throws IOException { + public UpdateMarkChestScRsp mergeFrom(final JsonSource input) throws IOException { if (!input.beginObject()) { return this; } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case -1536175796: { - if (input.isAtField(FieldNames.bBJIJINJAFK)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - bBJIJINJAFK = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -462,10 +437,11 @@ public final class GetRollShopInfoScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case -520346047: + case -1048892721: { + if (input.isAtField(FieldNames.markAvatarId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + markAvatarId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -473,11 +449,11 @@ public final class GetRollShopInfoScRspOuterClass { } break; } - case -904898162: - case -1612413630: { - if (input.isAtField(FieldNames.rollShopId)) { + case -1263367425: + case -509663114: { + if (input.isAtField(FieldNames.funcId)) { if (!input.trySkipNullValue()) { - rollShopId = input.readUInt32(); + funcId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -485,10 +461,11 @@ public final class GetRollShopInfoScRspOuterClass { } break; } - case 41374990: { - if (input.isAtField(FieldNames.dLPBJMPECFC)) { + case -98349636: + case 129195612: { + if (input.isAtField(FieldNames.chestGroupList)) { if (!input.trySkipNullValue()) { - input.readRepeatedUInt32(dLPBJMPECFC); + input.readRepeatedMessage(chestGroupList); bitField0_ |= 0x00000008; } } else { @@ -507,8 +484,8 @@ public final class GetRollShopInfoScRspOuterClass { } @Override - public GetRollShopInfoScRsp clone() { - return new GetRollShopInfoScRsp().copyFrom(this); + public UpdateMarkChestScRsp clone() { + return new UpdateMarkChestScRsp().copyFrom(this); } @Override @@ -516,32 +493,32 @@ public final class GetRollShopInfoScRspOuterClass { return ((bitField0_) == 0); } - public static GetRollShopInfoScRsp parseFrom(final byte[] data) throws + public static UpdateMarkChestScRsp parseFrom(final byte[] data) throws InvalidProtocolBufferException { - return ProtoMessage.mergeFrom(new GetRollShopInfoScRsp(), data).checkInitialized(); + return ProtoMessage.mergeFrom(new UpdateMarkChestScRsp(), data).checkInitialized(); } - public static GetRollShopInfoScRsp parseFrom(final ProtoSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRollShopInfoScRsp(), input).checkInitialized(); + public static UpdateMarkChestScRsp parseFrom(final ProtoSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateMarkChestScRsp(), input).checkInitialized(); } - public static GetRollShopInfoScRsp parseFrom(final JsonSource input) throws IOException { - return ProtoMessage.mergeFrom(new GetRollShopInfoScRsp(), input).checkInitialized(); + public static UpdateMarkChestScRsp parseFrom(final JsonSource input) throws IOException { + return ProtoMessage.mergeFrom(new UpdateMarkChestScRsp(), input).checkInitialized(); } /** - * @return factory for creating GetRollShopInfoScRsp messages + * @return factory for creating UpdateMarkChestScRsp messages */ - public static MessageFactory getFactory() { - return GetRollShopInfoScRspFactory.INSTANCE; + public static MessageFactory getFactory() { + return UpdateMarkChestScRspFactory.INSTANCE; } - private enum GetRollShopInfoScRspFactory implements MessageFactory { + private enum UpdateMarkChestScRspFactory implements MessageFactory { INSTANCE; @Override - public GetRollShopInfoScRsp create() { - return GetRollShopInfoScRsp.newInstance(); + public UpdateMarkChestScRsp create() { + return UpdateMarkChestScRsp.newInstance(); } } @@ -549,13 +526,13 @@ public final class GetRollShopInfoScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName bBJIJINJAFK = FieldName.forField("BBJIJINJAFK"); - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName rollShopId = FieldName.forField("rollShopId", "roll_shop_id"); + static final FieldName markAvatarId = FieldName.forField("markAvatarId", "mark_avatar_id"); - static final FieldName dLPBJMPECFC = FieldName.forField("DLPBJMPECFC"); + static final FieldName funcId = FieldName.forField("funcId", "func_id"); + + static final FieldName chestGroupList = FieldName.forField("chestGroupList", "chest_group_list"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataCsReqOuterClass.java index c9e2bdd..1535cb2 100644 --- a/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataCsReqOuterClass.java @@ -19,7 +19,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional .ServerPrefs server_prefs = 8; + * optional .ServerPrefs server_prefs = 13; */ private final ServerPrefsOuterClass.ServerPrefs serverPrefs = ServerPrefsOuterClass.ServerPrefs.newInstance(); @@ -34,7 +34,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { } /** - * optional .ServerPrefs server_prefs = 8; + * optional .ServerPrefs server_prefs = 13; * @return whether the serverPrefs field is set */ public boolean hasServerPrefs() { @@ -42,7 +42,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { } /** - * optional .ServerPrefs server_prefs = 8; + * optional .ServerPrefs server_prefs = 13; * @return this */ public UpdateServerPrefsDataCsReq clearServerPrefs() { @@ -52,7 +52,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { } /** - * optional .ServerPrefs server_prefs = 8; + * optional .ServerPrefs server_prefs = 13; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -66,7 +66,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { } /** - * optional .ServerPrefs server_prefs = 8; + * optional .ServerPrefs server_prefs = 13; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -80,7 +80,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { } /** - * optional .ServerPrefs server_prefs = 8; + * optional .ServerPrefs server_prefs = 13; * @param value the serverPrefs to set * @return this */ @@ -151,7 +151,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 66); + output.writeRawByte((byte) 106); output.writeMessageNoTag(serverPrefs); } } @@ -172,7 +172,7 @@ public final class UpdateServerPrefsDataCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 66: { + case 106: { // serverPrefs input.readMessage(serverPrefs); bitField0_ |= 0x00000001; diff --git a/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataScRspOuterClass.java index 1e9f457..e8e9072 100644 --- a/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UpdateServerPrefsDataScRspOuterClass.java @@ -19,15 +19,15 @@ public final class UpdateServerPrefsDataScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 server_prefs_id = 5; - */ - private int serverPrefsId; - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; */ private int retcode; + /** + * optional uint32 server_prefs_id = 13; + */ + private int serverPrefsId; + private UpdateServerPrefsDataScRsp() { } @@ -39,62 +39,25 @@ public final class UpdateServerPrefsDataScRspOuterClass { } /** - * optional uint32 server_prefs_id = 5; - * @return whether the serverPrefsId field is set + * optional uint32 retcode = 11; + * @return whether the retcode field is set */ - public boolean hasServerPrefsId() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 server_prefs_id = 5; - * @return this - */ - public UpdateServerPrefsDataScRsp clearServerPrefsId() { - bitField0_ &= ~0x00000001; - serverPrefsId = 0; - return this; - } - - /** - * optional uint32 server_prefs_id = 5; - * @return the serverPrefsId - */ - public int getServerPrefsId() { - return serverPrefsId; - } - - /** - * optional uint32 server_prefs_id = 5; - * @param value the serverPrefsId to set - * @return this - */ - public UpdateServerPrefsDataScRsp setServerPrefsId(final int value) { - bitField0_ |= 0x00000001; - serverPrefsId = value; - return this; - } - - /** - * optional uint32 retcode = 14; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @return this */ public UpdateServerPrefsDataScRsp clearRetcode() { - bitField0_ &= ~0x00000002; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @return the retcode */ public int getRetcode() { @@ -102,23 +65,60 @@ public final class UpdateServerPrefsDataScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 11; * @param value the retcode to set * @return this */ public UpdateServerPrefsDataScRsp setRetcode(final int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; retcode = value; return this; } + /** + * optional uint32 server_prefs_id = 13; + * @return whether the serverPrefsId field is set + */ + public boolean hasServerPrefsId() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 server_prefs_id = 13; + * @return this + */ + public UpdateServerPrefsDataScRsp clearServerPrefsId() { + bitField0_ &= ~0x00000002; + serverPrefsId = 0; + return this; + } + + /** + * optional uint32 server_prefs_id = 13; + * @return the serverPrefsId + */ + public int getServerPrefsId() { + return serverPrefsId; + } + + /** + * optional uint32 server_prefs_id = 13; + * @param value the serverPrefsId to set + * @return this + */ + public UpdateServerPrefsDataScRsp setServerPrefsId(final int value) { + bitField0_ |= 0x00000002; + serverPrefsId = value; + return this; + } + @Override public UpdateServerPrefsDataScRsp copyFrom(final UpdateServerPrefsDataScRsp other) { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - serverPrefsId = other.serverPrefsId; retcode = other.retcode; + serverPrefsId = other.serverPrefsId; } return this; } @@ -129,12 +129,12 @@ public final class UpdateServerPrefsDataScRspOuterClass { return this; } cachedSize = -1; - if (other.hasServerPrefsId()) { - setServerPrefsId(other.serverPrefsId); - } if (other.hasRetcode()) { setRetcode(other.retcode); } + if (other.hasServerPrefsId()) { + setServerPrefsId(other.serverPrefsId); + } return this; } @@ -145,8 +145,8 @@ public final class UpdateServerPrefsDataScRspOuterClass { } cachedSize = -1; bitField0_ = 0; - serverPrefsId = 0; retcode = 0; + serverPrefsId = 0; return this; } @@ -170,19 +170,19 @@ public final class UpdateServerPrefsDataScRspOuterClass { } UpdateServerPrefsDataScRsp other = (UpdateServerPrefsDataScRsp) o; return bitField0_ == other.bitField0_ - && (!hasServerPrefsId() || serverPrefsId == other.serverPrefsId) - && (!hasRetcode() || retcode == other.retcode); + && (!hasRetcode() || retcode == other.retcode) + && (!hasServerPrefsId() || serverPrefsId == other.serverPrefsId); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 40); - output.writeUInt32NoTag(serverPrefsId); + output.writeRawByte((byte) 88); + output.writeUInt32NoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 112); - output.writeUInt32NoTag(retcode); + output.writeRawByte((byte) 104); + output.writeUInt32NoTag(serverPrefsId); } } @@ -190,10 +190,10 @@ public final class UpdateServerPrefsDataScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(serverPrefsId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(serverPrefsId); } return size; } @@ -205,18 +205,18 @@ public final class UpdateServerPrefsDataScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 40: { - // serverPrefsId - serverPrefsId = input.readUInt32(); + case 88: { + // retcode + retcode = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 112) { + if (tag != 104) { break; } } - case 112: { - // retcode - retcode = input.readUInt32(); + case 104: { + // serverPrefsId + serverPrefsId = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); if (tag != 0) { @@ -241,10 +241,10 @@ public final class UpdateServerPrefsDataScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.serverPrefsId, serverPrefsId); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.serverPrefsId, serverPrefsId); } output.endObject(); } @@ -256,11 +256,10 @@ public final class UpdateServerPrefsDataScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 656672552: - case 2077691526: { - if (input.isAtField(FieldNames.serverPrefsId)) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { if (!input.trySkipNullValue()) { - serverPrefsId = input.readUInt32(); + retcode = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -268,10 +267,11 @@ public final class UpdateServerPrefsDataScRspOuterClass { } break; } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { + case 656672552: + case 2077691526: { + if (input.isAtField(FieldNames.serverPrefsId)) { if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); + serverPrefsId = input.readUInt32(); bitField0_ |= 0x00000002; } } else { @@ -332,9 +332,9 @@ public final class UpdateServerPrefsDataScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName serverPrefsId = FieldName.forField("serverPrefsId", "server_prefs_id"); - static final FieldName retcode = FieldName.forField("retcode"); + + static final FieldName serverPrefsId = FieldName.forField("serverPrefsId", "server_prefs_id"); } } } diff --git a/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java b/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java index 3a0179f..ffd8a2f 100644 --- a/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UseItemCsReqOuterClass.java @@ -19,31 +19,27 @@ public final class UseItemCsReqOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 base_avatar_id = 6; - */ - private int baseAvatarId; - - /** - * optional uint32 use_item_count = 11; - */ - private int useItemCount; - - /** - * optional uint32 use_item_id = 13; - */ - private int useItemId; - - /** - *
-     *  bool EFJHLEKNAPG = 7;
-     * 
- * - * optional uint32 optional_reward_id = 15; + * optional uint32 optional_reward_id = 4; */ private int optionalRewardId; /** - * optional .AvatarType use_avatar_type = 8; + * optional uint32 use_item_count = 7; + */ + private int useItemCount; + + /** + * optional uint32 base_avatar_id = 9; + */ + private int baseAvatarId; + + /** + * optional uint32 use_item_id = 14; + */ + private int useItemId; + + /** + * optional .AvatarType use_avatar_type = 5; */ private int useAvatarType; @@ -58,44 +54,44 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 base_avatar_id = 6; - * @return whether the baseAvatarId field is set + * optional uint32 optional_reward_id = 4; + * @return whether the optionalRewardId field is set */ - public boolean hasBaseAvatarId() { + public boolean hasOptionalRewardId() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 base_avatar_id = 6; + * optional uint32 optional_reward_id = 4; * @return this */ - public UseItemCsReq clearBaseAvatarId() { + public UseItemCsReq clearOptionalRewardId() { bitField0_ &= ~0x00000001; - baseAvatarId = 0; + optionalRewardId = 0; return this; } /** - * optional uint32 base_avatar_id = 6; - * @return the baseAvatarId + * optional uint32 optional_reward_id = 4; + * @return the optionalRewardId */ - public int getBaseAvatarId() { - return baseAvatarId; + public int getOptionalRewardId() { + return optionalRewardId; } /** - * optional uint32 base_avatar_id = 6; - * @param value the baseAvatarId to set + * optional uint32 optional_reward_id = 4; + * @param value the optionalRewardId to set * @return this */ - public UseItemCsReq setBaseAvatarId(final int value) { + public UseItemCsReq setOptionalRewardId(final int value) { bitField0_ |= 0x00000001; - baseAvatarId = value; + optionalRewardId = value; return this; } /** - * optional uint32 use_item_count = 11; + * optional uint32 use_item_count = 7; * @return whether the useItemCount field is set */ public boolean hasUseItemCount() { @@ -103,7 +99,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_count = 11; + * optional uint32 use_item_count = 7; * @return this */ public UseItemCsReq clearUseItemCount() { @@ -113,7 +109,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_count = 11; + * optional uint32 use_item_count = 7; * @return the useItemCount */ public int getUseItemCount() { @@ -121,7 +117,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_count = 11; + * optional uint32 use_item_count = 7; * @param value the useItemCount to set * @return this */ @@ -132,25 +128,62 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_id = 13; - * @return whether the useItemId field is set + * optional uint32 base_avatar_id = 9; + * @return whether the baseAvatarId field is set */ - public boolean hasUseItemId() { + public boolean hasBaseAvatarId() { return (bitField0_ & 0x00000004) != 0; } /** - * optional uint32 use_item_id = 13; + * optional uint32 base_avatar_id = 9; + * @return this + */ + public UseItemCsReq clearBaseAvatarId() { + bitField0_ &= ~0x00000004; + baseAvatarId = 0; + return this; + } + + /** + * optional uint32 base_avatar_id = 9; + * @return the baseAvatarId + */ + public int getBaseAvatarId() { + return baseAvatarId; + } + + /** + * optional uint32 base_avatar_id = 9; + * @param value the baseAvatarId to set + * @return this + */ + public UseItemCsReq setBaseAvatarId(final int value) { + bitField0_ |= 0x00000004; + baseAvatarId = value; + return this; + } + + /** + * optional uint32 use_item_id = 14; + * @return whether the useItemId field is set + */ + public boolean hasUseItemId() { + return (bitField0_ & 0x00000008) != 0; + } + + /** + * optional uint32 use_item_id = 14; * @return this */ public UseItemCsReq clearUseItemId() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000008; useItemId = 0; return this; } /** - * optional uint32 use_item_id = 13; + * optional uint32 use_item_id = 14; * @return the useItemId */ public int getUseItemId() { @@ -158,71 +191,18 @@ public final class UseItemCsReqOuterClass { } /** - * optional uint32 use_item_id = 13; + * optional uint32 use_item_id = 14; * @param value the useItemId to set * @return this */ public UseItemCsReq setUseItemId(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; useItemId = value; return this; } /** - *
-     *  bool EFJHLEKNAPG = 7;
-     * 
- * - * optional uint32 optional_reward_id = 15; - * @return whether the optionalRewardId field is set - */ - public boolean hasOptionalRewardId() { - return (bitField0_ & 0x00000008) != 0; - } - - /** - *
-     *  bool EFJHLEKNAPG = 7;
-     * 
- * - * optional uint32 optional_reward_id = 15; - * @return this - */ - public UseItemCsReq clearOptionalRewardId() { - bitField0_ &= ~0x00000008; - optionalRewardId = 0; - return this; - } - - /** - *
-     *  bool EFJHLEKNAPG = 7;
-     * 
- * - * optional uint32 optional_reward_id = 15; - * @return the optionalRewardId - */ - public int getOptionalRewardId() { - return optionalRewardId; - } - - /** - *
-     *  bool EFJHLEKNAPG = 7;
-     * 
- * - * optional uint32 optional_reward_id = 15; - * @param value the optionalRewardId to set - * @return this - */ - public UseItemCsReq setOptionalRewardId(final int value) { - bitField0_ |= 0x00000008; - optionalRewardId = value; - return this; - } - - /** - * optional .AvatarType use_avatar_type = 8; + * optional .AvatarType use_avatar_type = 5; * @return whether the useAvatarType field is set */ public boolean hasUseAvatarType() { @@ -230,7 +210,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional .AvatarType use_avatar_type = 8; + * optional .AvatarType use_avatar_type = 5; * @return this */ public UseItemCsReq clearUseAvatarType() { @@ -240,7 +220,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional .AvatarType use_avatar_type = 8; + * optional .AvatarType use_avatar_type = 5; * @return the useAvatarType */ public AvatarTypeOuterClass.AvatarType getUseAvatarType() { @@ -273,7 +253,7 @@ public final class UseItemCsReqOuterClass { } /** - * optional .AvatarType use_avatar_type = 8; + * optional .AvatarType use_avatar_type = 5; * @param value the useAvatarType to set * @return this */ @@ -288,10 +268,10 @@ public final class UseItemCsReqOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - baseAvatarId = other.baseAvatarId; - useItemCount = other.useItemCount; - useItemId = other.useItemId; optionalRewardId = other.optionalRewardId; + useItemCount = other.useItemCount; + baseAvatarId = other.baseAvatarId; + useItemId = other.useItemId; useAvatarType = other.useAvatarType; } return this; @@ -303,18 +283,18 @@ public final class UseItemCsReqOuterClass { return this; } cachedSize = -1; - if (other.hasBaseAvatarId()) { - setBaseAvatarId(other.baseAvatarId); + if (other.hasOptionalRewardId()) { + setOptionalRewardId(other.optionalRewardId); } if (other.hasUseItemCount()) { setUseItemCount(other.useItemCount); } + if (other.hasBaseAvatarId()) { + setBaseAvatarId(other.baseAvatarId); + } if (other.hasUseItemId()) { setUseItemId(other.useItemId); } - if (other.hasOptionalRewardId()) { - setOptionalRewardId(other.optionalRewardId); - } if (other.hasUseAvatarType()) { setUseAvatarTypeValue(other.useAvatarType); } @@ -328,10 +308,10 @@ public final class UseItemCsReqOuterClass { } cachedSize = -1; bitField0_ = 0; - baseAvatarId = 0; - useItemCount = 0; - useItemId = 0; optionalRewardId = 0; + useItemCount = 0; + baseAvatarId = 0; + useItemId = 0; useAvatarType = 0; return this; } @@ -356,33 +336,33 @@ public final class UseItemCsReqOuterClass { } UseItemCsReq other = (UseItemCsReq) o; return bitField0_ == other.bitField0_ - && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) - && (!hasUseItemCount() || useItemCount == other.useItemCount) - && (!hasUseItemId() || useItemId == other.useItemId) && (!hasOptionalRewardId() || optionalRewardId == other.optionalRewardId) + && (!hasUseItemCount() || useItemCount == other.useItemCount) + && (!hasBaseAvatarId() || baseAvatarId == other.baseAvatarId) + && (!hasUseItemId() || useItemId == other.useItemId) && (!hasUseAvatarType() || useAvatarType == other.useAvatarType); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 48); - output.writeUInt32NoTag(baseAvatarId); + output.writeRawByte((byte) 32); + output.writeUInt32NoTag(optionalRewardId); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 88); + output.writeRawByte((byte) 56); output.writeUInt32NoTag(useItemCount); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(useItemId); + output.writeRawByte((byte) 72); + output.writeUInt32NoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 120); - output.writeUInt32NoTag(optionalRewardId); + output.writeRawByte((byte) 112); + output.writeUInt32NoTag(useItemId); } if ((bitField0_ & 0x00000010) != 0) { - output.writeRawByte((byte) 64); + output.writeRawByte((byte) 40); output.writeEnumNoTag(useAvatarType); } } @@ -391,16 +371,16 @@ public final class UseItemCsReqOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(optionalRewardId); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(optionalRewardId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); } if ((bitField0_ & 0x00000010) != 0) { size += 1 + ProtoSink.computeEnumSizeNoTag(useAvatarType); @@ -415,43 +395,43 @@ public final class UseItemCsReqOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 48: { - // baseAvatarId - baseAvatarId = input.readUInt32(); + case 32: { + // optionalRewardId + optionalRewardId = input.readUInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 88) { + if (tag != 56) { break; } } - case 88: { + case 56: { // useItemCount useItemCount = input.readUInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 104) { + if (tag != 72) { break; } } - case 104: { - // useItemId - useItemId = input.readUInt32(); + case 72: { + // baseAvatarId + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); - if (tag != 120) { + if (tag != 112) { break; } } - case 120: { - // optionalRewardId - optionalRewardId = input.readUInt32(); + case 112: { + // useItemId + useItemId = input.readUInt32(); bitField0_ |= 0x00000008; tag = input.readTag(); - if (tag != 64) { + if (tag != 40) { break; } } - case 64: { + case 40: { // useAvatarType final int value = input.readInt32(); if (AvatarTypeOuterClass.AvatarType.forNumber(value) != null) { @@ -481,16 +461,16 @@ public final class UseItemCsReqOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); + output.writeUInt32(FieldNames.optionalRewardId, optionalRewardId); } if ((bitField0_ & 0x00000002) != 0) { output.writeUInt32(FieldNames.useItemCount, useItemCount); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.useItemId, useItemId); + output.writeUInt32(FieldNames.baseAvatarId, baseAvatarId); } if ((bitField0_ & 0x00000008) != 0) { - output.writeUInt32(FieldNames.optionalRewardId, optionalRewardId); + output.writeUInt32(FieldNames.useItemId, useItemId); } if ((bitField0_ & 0x00000010) != 0) { output.writeEnum(FieldNames.useAvatarType, useAvatarType, AvatarTypeOuterClass.AvatarType.converter()); @@ -505,11 +485,11 @@ public final class UseItemCsReqOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 118022725: - case -1756826157: { - if (input.isAtField(FieldNames.baseAvatarId)) { + case -1391749078: + case -1451381236: { + if (input.isAtField(FieldNames.optionalRewardId)) { if (!input.trySkipNullValue()) { - baseAvatarId = input.readUInt32(); + optionalRewardId = input.readUInt32(); bitField0_ |= 0x00000001; } } else { @@ -529,11 +509,11 @@ public final class UseItemCsReqOuterClass { } break; } - case -815318027: - case 1396027151: { - if (input.isAtField(FieldNames.useItemId)) { + case 118022725: + case -1756826157: { + if (input.isAtField(FieldNames.baseAvatarId)) { if (!input.trySkipNullValue()) { - useItemId = input.readUInt32(); + baseAvatarId = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -541,11 +521,11 @@ public final class UseItemCsReqOuterClass { } break; } - case -1391749078: - case -1451381236: { - if (input.isAtField(FieldNames.optionalRewardId)) { + case -815318027: + case 1396027151: { + if (input.isAtField(FieldNames.useItemId)) { if (!input.trySkipNullValue()) { - optionalRewardId = input.readUInt32(); + useItemId = input.readUInt32(); bitField0_ |= 0x00000008; } } else { @@ -622,13 +602,13 @@ public final class UseItemCsReqOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); + static final FieldName optionalRewardId = FieldName.forField("optionalRewardId", "optional_reward_id"); static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); - static final FieldName useItemId = FieldName.forField("useItemId", "use_item_id"); + static final FieldName baseAvatarId = FieldName.forField("baseAvatarId", "base_avatar_id"); - static final FieldName optionalRewardId = FieldName.forField("optionalRewardId", "optional_reward_id"); + static final FieldName useItemId = FieldName.forField("useItemId", "use_item_id"); static final FieldName useAvatarType = FieldName.forField("useAvatarType", "use_avatar_type"); } diff --git a/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java b/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java index 36a2dd0..bfc7665 100644 --- a/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/UseItemScRspOuterClass.java @@ -19,22 +19,22 @@ public final class UseItemScRspOuterClass { private static final long serialVersionUID = 0L; /** - * optional uint32 use_item_count = 12; - */ - private int useItemCount; - - /** - * optional uint32 use_item_id = 13; - */ - private int useItemId; - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 3; */ private int retcode; /** - * optional .ItemList return_data = 4; + * optional uint32 use_item_count = 5; + */ + private int useItemCount; + + /** + * optional uint32 use_item_id = 10; + */ + private int useItemId; + + /** + * optional .ItemList return_data = 6; */ private final ItemListOuterClass.ItemList returnData = ItemListOuterClass.ItemList.newInstance(); @@ -49,99 +49,25 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 use_item_count = 12; - * @return whether the useItemCount field is set + * optional uint32 retcode = 3; + * @return whether the retcode field is set */ - public boolean hasUseItemCount() { + public boolean hasRetcode() { return (bitField0_ & 0x00000001) != 0; } /** - * optional uint32 use_item_count = 12; - * @return this - */ - public UseItemScRsp clearUseItemCount() { - bitField0_ &= ~0x00000001; - useItemCount = 0; - return this; - } - - /** - * optional uint32 use_item_count = 12; - * @return the useItemCount - */ - public int getUseItemCount() { - return useItemCount; - } - - /** - * optional uint32 use_item_count = 12; - * @param value the useItemCount to set - * @return this - */ - public UseItemScRsp setUseItemCount(final int value) { - bitField0_ |= 0x00000001; - useItemCount = value; - return this; - } - - /** - * optional uint32 use_item_id = 13; - * @return whether the useItemId field is set - */ - public boolean hasUseItemId() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional uint32 use_item_id = 13; - * @return this - */ - public UseItemScRsp clearUseItemId() { - bitField0_ &= ~0x00000002; - useItemId = 0; - return this; - } - - /** - * optional uint32 use_item_id = 13; - * @return the useItemId - */ - public int getUseItemId() { - return useItemId; - } - - /** - * optional uint32 use_item_id = 13; - * @param value the useItemId to set - * @return this - */ - public UseItemScRsp setUseItemId(final int value) { - bitField0_ |= 0x00000002; - useItemId = value; - return this; - } - - /** - * optional uint32 retcode = 14; - * @return whether the retcode field is set - */ - public boolean hasRetcode() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 3; * @return this */ public UseItemScRsp clearRetcode() { - bitField0_ &= ~0x00000004; + bitField0_ &= ~0x00000001; retcode = 0; return this; } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 3; * @return the retcode */ public int getRetcode() { @@ -149,18 +75,92 @@ public final class UseItemScRspOuterClass { } /** - * optional uint32 retcode = 14; + * optional uint32 retcode = 3; * @param value the retcode to set * @return this */ public UseItemScRsp setRetcode(final int value) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; retcode = value; return this; } /** - * optional .ItemList return_data = 4; + * optional uint32 use_item_count = 5; + * @return whether the useItemCount field is set + */ + public boolean hasUseItemCount() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional uint32 use_item_count = 5; + * @return this + */ + public UseItemScRsp clearUseItemCount() { + bitField0_ &= ~0x00000002; + useItemCount = 0; + return this; + } + + /** + * optional uint32 use_item_count = 5; + * @return the useItemCount + */ + public int getUseItemCount() { + return useItemCount; + } + + /** + * optional uint32 use_item_count = 5; + * @param value the useItemCount to set + * @return this + */ + public UseItemScRsp setUseItemCount(final int value) { + bitField0_ |= 0x00000002; + useItemCount = value; + return this; + } + + /** + * optional uint32 use_item_id = 10; + * @return whether the useItemId field is set + */ + public boolean hasUseItemId() { + return (bitField0_ & 0x00000004) != 0; + } + + /** + * optional uint32 use_item_id = 10; + * @return this + */ + public UseItemScRsp clearUseItemId() { + bitField0_ &= ~0x00000004; + useItemId = 0; + return this; + } + + /** + * optional uint32 use_item_id = 10; + * @return the useItemId + */ + public int getUseItemId() { + return useItemId; + } + + /** + * optional uint32 use_item_id = 10; + * @param value the useItemId to set + * @return this + */ + public UseItemScRsp setUseItemId(final int value) { + bitField0_ |= 0x00000004; + useItemId = value; + return this; + } + + /** + * optional .ItemList return_data = 6; * @return whether the returnData field is set */ public boolean hasReturnData() { @@ -168,7 +168,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 4; + * optional .ItemList return_data = 6; * @return this */ public UseItemScRsp clearReturnData() { @@ -178,7 +178,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 4; + * optional .ItemList return_data = 6; * * This method returns the internal storage object without modifying any has state. * The returned object should not be modified and be treated as read-only. @@ -192,7 +192,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 4; + * optional .ItemList return_data = 6; * * This method returns the internal storage object and sets the corresponding * has state. The returned object will become part of this message and its @@ -206,7 +206,7 @@ public final class UseItemScRspOuterClass { } /** - * optional .ItemList return_data = 4; + * optional .ItemList return_data = 6; * @param value the returnData to set * @return this */ @@ -221,9 +221,9 @@ public final class UseItemScRspOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; + retcode = other.retcode; useItemCount = other.useItemCount; useItemId = other.useItemId; - retcode = other.retcode; returnData.copyFrom(other.returnData); } return this; @@ -235,15 +235,15 @@ public final class UseItemScRspOuterClass { return this; } cachedSize = -1; + if (other.hasRetcode()) { + setRetcode(other.retcode); + } if (other.hasUseItemCount()) { setUseItemCount(other.useItemCount); } if (other.hasUseItemId()) { setUseItemId(other.useItemId); } - if (other.hasRetcode()) { - setRetcode(other.retcode); - } if (other.hasReturnData()) { getMutableReturnData().mergeFrom(other.returnData); } @@ -257,9 +257,9 @@ public final class UseItemScRspOuterClass { } cachedSize = -1; bitField0_ = 0; + retcode = 0; useItemCount = 0; useItemId = 0; - retcode = 0; returnData.clear(); return this; } @@ -285,28 +285,28 @@ public final class UseItemScRspOuterClass { } UseItemScRsp other = (UseItemScRsp) o; return bitField0_ == other.bitField0_ + && (!hasRetcode() || retcode == other.retcode) && (!hasUseItemCount() || useItemCount == other.useItemCount) && (!hasUseItemId() || useItemId == other.useItemId) - && (!hasRetcode() || retcode == other.retcode) && (!hasReturnData() || returnData.equals(other.returnData)); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 96); - output.writeUInt32NoTag(useItemCount); - } - if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 104); - output.writeUInt32NoTag(useItemId); - } - if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); + output.writeRawByte((byte) 24); output.writeUInt32NoTag(retcode); } + if ((bitField0_ & 0x00000002) != 0) { + output.writeRawByte((byte) 40); + output.writeUInt32NoTag(useItemCount); + } + if ((bitField0_ & 0x00000004) != 0) { + output.writeRawByte((byte) 80); + output.writeUInt32NoTag(useItemId); + } if ((bitField0_ & 0x00000008) != 0) { - output.writeRawByte((byte) 34); + output.writeRawByte((byte) 50); output.writeMessageNoTag(returnData); } } @@ -315,13 +315,13 @@ public final class UseItemScRspOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); + size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); } if ((bitField0_ & 0x00000002) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemCount); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode); + size += 1 + ProtoSink.computeUInt32SizeNoTag(useItemId); } if ((bitField0_ & 0x00000008) != 0) { size += 1 + ProtoSink.computeMessageSizeNoTag(returnData); @@ -336,34 +336,34 @@ public final class UseItemScRspOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 96: { - // useItemCount - useItemCount = input.readUInt32(); - bitField0_ |= 0x00000001; - tag = input.readTag(); - if (tag != 104) { - break; - } - } - case 104: { - // useItemId - useItemId = input.readUInt32(); - bitField0_ |= 0x00000002; - tag = input.readTag(); - if (tag != 112) { - break; - } - } - case 112: { + case 24: { // retcode retcode = input.readUInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 34) { + if (tag != 40) { break; } } - case 34: { + case 40: { + // useItemCount + useItemCount = input.readUInt32(); + bitField0_ |= 0x00000002; + tag = input.readTag(); + if (tag != 80) { + break; + } + } + case 80: { + // useItemId + useItemId = input.readUInt32(); + bitField0_ |= 0x00000004; + tag = input.readTag(); + if (tag != 50) { + break; + } + } + case 50: { // returnData input.readMessage(returnData); bitField0_ |= 0x00000008; @@ -390,13 +390,13 @@ public final class UseItemScRspOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeUInt32(FieldNames.useItemCount, useItemCount); + output.writeUInt32(FieldNames.retcode, retcode); } if ((bitField0_ & 0x00000002) != 0) { - output.writeUInt32(FieldNames.useItemId, useItemId); + output.writeUInt32(FieldNames.useItemCount, useItemCount); } if ((bitField0_ & 0x00000004) != 0) { - output.writeUInt32(FieldNames.retcode, retcode); + output.writeUInt32(FieldNames.useItemId, useItemId); } if ((bitField0_ & 0x00000008) != 0) { output.writeMessage(FieldNames.returnData, returnData); @@ -411,12 +411,23 @@ public final class UseItemScRspOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { + case 1097936398: { + if (input.isAtField(FieldNames.retcode)) { + if (!input.trySkipNullValue()) { + retcode = input.readUInt32(); + bitField0_ |= 0x00000001; + } + } else { + input.skipUnknownField(); + } + break; + } case -1104380939: case 871430811: { if (input.isAtField(FieldNames.useItemCount)) { if (!input.trySkipNullValue()) { useItemCount = input.readUInt32(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } else { input.skipUnknownField(); @@ -428,17 +439,6 @@ public final class UseItemScRspOuterClass { if (input.isAtField(FieldNames.useItemId)) { if (!input.trySkipNullValue()) { useItemId = input.readUInt32(); - bitField0_ |= 0x00000002; - } - } else { - input.skipUnknownField(); - } - break; - } - case 1097936398: { - if (input.isAtField(FieldNames.retcode)) { - if (!input.trySkipNullValue()) { - retcode = input.readUInt32(); bitField0_ |= 0x00000004; } } else { @@ -510,12 +510,12 @@ public final class UseItemScRspOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { + static final FieldName retcode = FieldName.forField("retcode"); + static final FieldName useItemCount = FieldName.forField("useItemCount", "use_item_count"); static final FieldName useItemId = FieldName.forField("useItemId", "use_item_id"); - static final FieldName retcode = FieldName.forField("retcode"); - static final FieldName returnData = FieldName.forField("returnData", "return_data"); } } diff --git a/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java index e18b9c3..7645071 100644 --- a/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java +++ b/src/generated/main/emu/lunarcore/proto/VectorOuterClass.java @@ -19,19 +19,19 @@ public final class VectorOuterClass { private static final long serialVersionUID = 0L; /** - * optional sint32 z = 3; + * optional sint32 x = 1; */ - private int z; + private int x; /** - * optional sint32 y = 5; + * optional sint32 y = 2; */ private int y; /** - * optional sint32 x = 14; + * optional sint32 z = 3; */ - private int x; + private int z; private Vector() { } @@ -43,12 +43,86 @@ public final class VectorOuterClass { return new Vector(); } + /** + * optional sint32 x = 1; + * @return whether the x field is set + */ + public boolean hasX() { + return (bitField0_ & 0x00000001) != 0; + } + + /** + * optional sint32 x = 1; + * @return this + */ + public Vector clearX() { + bitField0_ &= ~0x00000001; + x = 0; + return this; + } + + /** + * optional sint32 x = 1; + * @return the x + */ + public int getX() { + return x; + } + + /** + * optional sint32 x = 1; + * @param value the x to set + * @return this + */ + public Vector setX(final int value) { + bitField0_ |= 0x00000001; + x = value; + return this; + } + + /** + * optional sint32 y = 2; + * @return whether the y field is set + */ + public boolean hasY() { + return (bitField0_ & 0x00000002) != 0; + } + + /** + * optional sint32 y = 2; + * @return this + */ + public Vector clearY() { + bitField0_ &= ~0x00000002; + y = 0; + return this; + } + + /** + * optional sint32 y = 2; + * @return the y + */ + public int getY() { + return y; + } + + /** + * optional sint32 y = 2; + * @param value the y to set + * @return this + */ + public Vector setY(final int value) { + bitField0_ |= 0x00000002; + y = value; + return this; + } + /** * optional sint32 z = 3; * @return whether the z field is set */ public boolean hasZ() { - return (bitField0_ & 0x00000001) != 0; + return (bitField0_ & 0x00000004) != 0; } /** @@ -56,7 +130,7 @@ public final class VectorOuterClass { * @return this */ public Vector clearZ() { - bitField0_ &= ~0x00000001; + bitField0_ &= ~0x00000004; z = 0; return this; } @@ -75,82 +149,8 @@ public final class VectorOuterClass { * @return this */ public Vector setZ(final int value) { - bitField0_ |= 0x00000001; - z = value; - return this; - } - - /** - * optional sint32 y = 5; - * @return whether the y field is set - */ - public boolean hasY() { - return (bitField0_ & 0x00000002) != 0; - } - - /** - * optional sint32 y = 5; - * @return this - */ - public Vector clearY() { - bitField0_ &= ~0x00000002; - y = 0; - return this; - } - - /** - * optional sint32 y = 5; - * @return the y - */ - public int getY() { - return y; - } - - /** - * optional sint32 y = 5; - * @param value the y to set - * @return this - */ - public Vector setY(final int value) { - bitField0_ |= 0x00000002; - y = value; - return this; - } - - /** - * optional sint32 x = 14; - * @return whether the x field is set - */ - public boolean hasX() { - return (bitField0_ & 0x00000004) != 0; - } - - /** - * optional sint32 x = 14; - * @return this - */ - public Vector clearX() { - bitField0_ &= ~0x00000004; - x = 0; - return this; - } - - /** - * optional sint32 x = 14; - * @return the x - */ - public int getX() { - return x; - } - - /** - * optional sint32 x = 14; - * @param value the x to set - * @return this - */ - public Vector setX(final int value) { bitField0_ |= 0x00000004; - x = value; + z = value; return this; } @@ -159,9 +159,9 @@ public final class VectorOuterClass { cachedSize = other.cachedSize; if ((bitField0_ | other.bitField0_) != 0) { bitField0_ = other.bitField0_; - z = other.z; - y = other.y; x = other.x; + y = other.y; + z = other.z; } return this; } @@ -172,14 +172,14 @@ public final class VectorOuterClass { return this; } cachedSize = -1; - if (other.hasZ()) { - setZ(other.z); + if (other.hasX()) { + setX(other.x); } if (other.hasY()) { setY(other.y); } - if (other.hasX()) { - setX(other.x); + if (other.hasZ()) { + setZ(other.z); } return this; } @@ -191,9 +191,9 @@ public final class VectorOuterClass { } cachedSize = -1; bitField0_ = 0; - z = 0; - y = 0; x = 0; + y = 0; + z = 0; return this; } @@ -217,24 +217,24 @@ public final class VectorOuterClass { } Vector other = (Vector) o; return bitField0_ == other.bitField0_ - && (!hasZ() || z == other.z) + && (!hasX() || x == other.x) && (!hasY() || y == other.y) - && (!hasX() || x == other.x); + && (!hasZ() || z == other.z); } @Override public void writeTo(final ProtoSink output) throws IOException { if ((bitField0_ & 0x00000001) != 0) { - output.writeRawByte((byte) 24); - output.writeSInt32NoTag(z); + output.writeRawByte((byte) 8); + output.writeSInt32NoTag(x); } if ((bitField0_ & 0x00000002) != 0) { - output.writeRawByte((byte) 40); + output.writeRawByte((byte) 16); output.writeSInt32NoTag(y); } if ((bitField0_ & 0x00000004) != 0) { - output.writeRawByte((byte) 112); - output.writeSInt32NoTag(x); + output.writeRawByte((byte) 24); + output.writeSInt32NoTag(z); } } @@ -242,13 +242,13 @@ public final class VectorOuterClass { protected int computeSerializedSize() { int size = 0; if ((bitField0_ & 0x00000001) != 0) { - size += 1 + ProtoSink.computeSInt32SizeNoTag(z); + size += 1 + ProtoSink.computeSInt32SizeNoTag(x); } if ((bitField0_ & 0x00000002) != 0) { size += 1 + ProtoSink.computeSInt32SizeNoTag(y); } if ((bitField0_ & 0x00000004) != 0) { - size += 1 + ProtoSink.computeSInt32SizeNoTag(x); + size += 1 + ProtoSink.computeSInt32SizeNoTag(z); } return size; } @@ -260,27 +260,27 @@ public final class VectorOuterClass { int tag = input.readTag(); while (true) { switch (tag) { - case 24: { - // z - z = input.readSInt32(); + case 8: { + // x + x = input.readSInt32(); bitField0_ |= 0x00000001; tag = input.readTag(); - if (tag != 40) { + if (tag != 16) { break; } } - case 40: { + case 16: { // y y = input.readSInt32(); bitField0_ |= 0x00000002; tag = input.readTag(); - if (tag != 112) { + if (tag != 24) { break; } } - case 112: { - // x - x = input.readSInt32(); + case 24: { + // z + z = input.readSInt32(); bitField0_ |= 0x00000004; tag = input.readTag(); if (tag != 0) { @@ -305,13 +305,13 @@ public final class VectorOuterClass { public void writeTo(final JsonSink output) throws IOException { output.beginObject(); if ((bitField0_ & 0x00000001) != 0) { - output.writeSInt32(FieldNames.z, z); + output.writeSInt32(FieldNames.x, x); } if ((bitField0_ & 0x00000002) != 0) { output.writeSInt32(FieldNames.y, y); } if ((bitField0_ & 0x00000004) != 0) { - output.writeSInt32(FieldNames.x, x); + output.writeSInt32(FieldNames.z, z); } output.endObject(); } @@ -323,10 +323,10 @@ public final class VectorOuterClass { } while (!input.isAtEnd()) { switch (input.readFieldHash()) { - case 122: { - if (input.isAtField(FieldNames.z)) { + case 120: { + if (input.isAtField(FieldNames.x)) { if (!input.trySkipNullValue()) { - z = input.readSInt32(); + x = input.readSInt32(); bitField0_ |= 0x00000001; } } else { @@ -345,10 +345,10 @@ public final class VectorOuterClass { } break; } - case 120: { - if (input.isAtField(FieldNames.x)) { + case 122: { + if (input.isAtField(FieldNames.z)) { if (!input.trySkipNullValue()) { - x = input.readSInt32(); + z = input.readSInt32(); bitField0_ |= 0x00000004; } } else { @@ -408,11 +408,11 @@ public final class VectorOuterClass { * Contains name constants used for serializing JSON */ static class FieldNames { - static final FieldName z = FieldName.forField("z"); + static final FieldName x = FieldName.forField("x"); static final FieldName y = FieldName.forField("y"); - static final FieldName x = FieldName.forField("x"); + static final FieldName z = FieldName.forField("z"); } } } diff --git a/src/main/java/emu/lunarcore/Config.java b/src/main/java/emu/lunarcore/Config.java index 7327ea4..4fe379f 100644 --- a/src/main/java/emu/lunarcore/Config.java +++ b/src/main/java/emu/lunarcore/Config.java @@ -25,6 +25,7 @@ public class Config { public ServerTime serverTime = new ServerTime(); public ServerRates serverRates = new ServerRates(); public LogOptions logOptions = new LogOptions(); + public LoginOptions loginOptions = new LoginOptions(); public String resourceDir = "./resources"; public String dataDir = "./data"; @@ -202,6 +203,11 @@ public class Config { public boolean packets = false; public boolean filterLoopingPackets = false; } + + @Getter + public static class LoginOptions { + public String accountName = "player"; + } public void validate() { if (this.gameServer.kcpTimeout == null) { diff --git a/src/main/java/emu/lunarcore/GameConstants.java b/src/main/java/emu/lunarcore/GameConstants.java index 3c2e8ef..55153d2 100644 --- a/src/main/java/emu/lunarcore/GameConstants.java +++ b/src/main/java/emu/lunarcore/GameConstants.java @@ -2,11 +2,14 @@ package emu.lunarcore; import java.time.Instant; import java.time.ZoneOffset; +import java.util.List; +import emu.lunarcore.data.common.ItemParam; import emu.lunarcore.util.Position; +import it.unimi.dsi.fastutil.ints.Int2IntMap; public class GameConstants { - public static String VERSION = "2.5.0"; + public static String VERSION = "4.2.0"; public static final ZoneOffset CURRENT_ZONEOFFSET = ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); public static final int CURRENT_TIMEZONE = CURRENT_ZONEOFFSET.getTotalSeconds() / 3600; @@ -18,12 +21,19 @@ public class GameConstants { public static final int TRAILBLAZER_AVATAR_ID = 8001; public static final int MAX_TRAILBLAZER_LEVEL = 70; public static final int[] WORLD_LEVEL_UPGRADES = {0, 20, 30, 40, 50, 60, 65}; - public static final int MAX_STAMINA = 240; + public static final int MAX_STAMINA = 300; public static final int MAX_STAMINA_RESERVE = 2400; public static final int MAX_AVATARS_IN_TEAM = 4; public static final int DEFAULT_TEAMS = 9; public static final int MAX_MP = 5; // Client doesnt like more than 5 public static final int FARM_ELEMENT_STAMINA_COST = 30; + + public static final Int2IntMap BONUS_MAX_MP = Int2IntMap.ofEntries( + Int2IntMap.entry(1408, 3) + ); + + // Mission + public static final int MISSION_STARTUP = 1000101; // Chat/Social public static final int MAX_FRIENDSHIPS = 100; @@ -36,9 +46,12 @@ public class GameConstants { public static final int RELIC_REMAINS_ID = 235; public static final int INVENTORY_MAX_EQUIPMENT = 1500; - public static final int INVENTORY_MAX_RELIC = 2000; + public static final int INVENTORY_MAX_RELIC = 3000; public static final int INVENTORY_MAX_MATERIAL = 2000; + public static final int RELIC_COMPOSE_SUB_AFFIX_ITEM = 237; + public static final List RELIC_REFORGE_COST = List.of(new ItemParam(238, 1)); + // Start position public static final int START_PLANE_ID = 20001; public static final int START_FLOOR_ID = 20001001; @@ -55,9 +68,12 @@ public class GameConstants { public static final int CHALLENGE_ENTRANCE = 100000103; public static final int CHALLENGE_STORY_ENTRANCE = 102020107; public static final int CHALLENGE_BOSS_ENTRANCE = 1030402; + public static final int CHALLENGE_PEAK_ENTRANCE = 100000352; + + public static final int CHALLENGE_PEAK_GROUP_ID = 6; // Rogue - public static final boolean ENABLE_ROGUE = true; + public static final boolean ENABLE_ROGUE = false; public static final int ROGUE_ENTRANCE = 801120102; public static final int ROGUE_START_COIN_COUNT = 100; public static final int ROGUE_COIN_ID = 31; diff --git a/src/main/java/emu/lunarcore/LunarCore.java b/src/main/java/emu/lunarcore/LunarCore.java index f2ab7cf..60f7e55 100644 --- a/src/main/java/emu/lunarcore/LunarCore.java +++ b/src/main/java/emu/lunarcore/LunarCore.java @@ -1,8 +1,8 @@ package emu.lunarcore; import java.io.*; +import java.util.*; import java.text.SimpleDateFormat; -import java.util.Date; import emu.lunarcore.plugin.PluginManager; import org.jline.reader.EndOfFileException; @@ -36,7 +36,7 @@ public class LunarCore { @Getter private static DatabaseManager accountDatabase; @Getter private static DatabaseManager gameDatabase; - + @Getter private static HttpServer httpServer; @Getter private static GameServer gameServer; @@ -48,7 +48,7 @@ public class LunarCore { @Getter private static boolean usingDumbTerminal; private static long timeOffset = 0; - + static { // Setup console reader try { diff --git a/src/main/java/emu/lunarcore/command/CommandArgs.java b/src/main/java/emu/lunarcore/command/CommandArgs.java index 7b883b3..3230b9b 100644 --- a/src/main/java/emu/lunarcore/command/CommandArgs.java +++ b/src/main/java/emu/lunarcore/command/CommandArgs.java @@ -161,14 +161,14 @@ public class CommandArgs { // Try to set skill trees if (this.getStage() > 0) { - for (int pointId : avatar.getExcel().getSkillTreeIds()) { - var skillTree = GameData.getAvatarSkillTreeExcel(pointId, 1); + for (int anchorId : avatar.getSkillTree().values()) { + var skillTree = GameData.getAvatarSkilltree(avatar.getAvatarId(), avatar.getEnhanceId(), anchorId, 1); if (skillTree == null) continue; int minLevel = skillTree.isDefaultUnlock() ? 1 : 0; int pointLevel = Math.max(Math.min(this.getStage(), skillTree.getMaxLevel()), minLevel); - avatar.getSkills().put(pointId, pointLevel); + avatar.getSkillTree().put(anchorId, pointLevel); } hasChanged = true; } @@ -229,18 +229,19 @@ public class CommandArgs { for (var entry : this.getMap().int2IntEntrySet()) { if (entry.getIntValue() <= 0) continue; - var subAffix = GameData.getRelicSubAffixExcel(item.getExcel().getRelicExcel().getSubAffixGroup(), entry.getIntKey()); + // Get sub affix excel + var subAffix = GameData.getRelicSubAffixExcelMap().get(item.getExcel().getRelicExcel().getSubAffixGroup(), entry.getIntKey()); if (subAffix == null) continue; // Set count int count = Math.min(entry.getIntValue(), maxCount); - item.getSubAffixes().add(new GameItemSubAffix(subAffix, count)); + item.addSubAffix(new GameItemSubAffix(subAffix, count)); } } // Main stat if (this.getStage() > 0) { - var mainAffix = GameData.getRelicMainAffixExcel(item.getExcel().getRelicExcel().getMainAffixGroup(), this.getStage()); + var mainAffix = GameData.getRelicMainAffixExcelMap().get(item.getExcel().getRelicExcel().getMainAffixGroup(), this.getStage()); if (mainAffix != null) { item.setMainAffix(mainAffix.getAffixID()); hasChanged = true; @@ -255,7 +256,7 @@ public class CommandArgs { // Apply sub stat upgrades to the relic int upgrades = item.getMaxNormalSubAffixCount() - item.getCurrentSubAffixCount(); if (upgrades > 0) { - item.addSubAffixes(upgrades); + item.addRandomSubAffixes(upgrades); } hasChanged = true; diff --git a/src/main/java/emu/lunarcore/command/commands/BuildAvatarCommand.java b/src/main/java/emu/lunarcore/command/commands/BuildAvatarCommand.java new file mode 100644 index 0000000..38bb62c --- /dev/null +++ b/src/main/java/emu/lunarcore/command/commands/BuildAvatarCommand.java @@ -0,0 +1,196 @@ +package emu.lunarcore.command.commands; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Set; + +import emu.lunarcore.command.Command; +import emu.lunarcore.command.CommandArgs; +import emu.lunarcore.command.CommandHandler; +import emu.lunarcore.data.GameData; +import emu.lunarcore.data.GameDepot; +import emu.lunarcore.game.avatar.GameAvatar; +import emu.lunarcore.game.enums.AvatarPropertyType; +import emu.lunarcore.game.enums.ItemRarity; +import emu.lunarcore.game.enums.RelicType; +import emu.lunarcore.game.inventory.GameItem; +import emu.lunarcore.game.inventory.GameItemSubAffix; +import emu.lunarcore.util.Utils; + +@Command(label = "buildavatar", aliases = {"build"}, requireTarget = true, permission = "player.give", desc = "/buildavatar [{avatar id} | cur | all | lineup]. Creates a set of relics for the selected avatars") +public class BuildAvatarCommand implements CommandHandler { + + @Override + public void execute(CommandArgs args) { + // Temp avatar list + List changeList = new ArrayList<>(); + + // Handle optional arguments + String arg = args.get(0).toLowerCase(); + + if (arg.isBlank()) { + // Select current avatar if we dont specify any extra args + changeList.add(args.getTarget().getCurrentLeaderAvatar()); + } else { + // Handle + switch (arg) { + case "all": + args.getTarget().getAvatars().forEach(changeList::add); + break; + case "lineup": + args.getTarget().getCurrentLineup().forEachAvatar(changeList::add); + break; + case "cur": + changeList.add(args.getTarget().getCurrentLeaderAvatar()); + break; + default: + int avatarId = Utils.parseSafeInt(arg); + var avatar = args.getTarget().getAvatarById(avatarId); + if (avatar != null) { + changeList.add(avatar); + } + break; + } + } + + // Try to set properties of avatars + Iterator it = changeList.iterator(); + while (it.hasNext()) { + GameAvatar avatar = it.next(); + this.createRelics(args, avatar); + } + + if (changeList.size() == 0) { + args.sendMessage("No avatars selected"); + } + } + + private void createRelics(CommandArgs args, GameAvatar avatar) { + // Get recommended relics + var excel = GameData.getAvatarRelicRecommendExcelMap().get(avatar.getExcelId()); + if (excel == null) { + args.sendMessage("Recommended relics for avatar " + avatar.getExcelId() + " not found"); + return; + } + + // Delete old relics if flag is set + if (args.hasFlag("-delete")) { + List deleteList = new ArrayList<>(); + for (var type : RelicType.values()) { + var item = avatar.unequipItem(type.getVal()); + if (item != null) { + deleteList.add(item); + } + } + // Delete + args.getTarget().getInventory().removeItems(deleteList); + } + + // Create relics + List relics = new ArrayList<>(); + + // Head + this.generateRelic(args, relics, excel.getMainSetId(), 1, null, excel.getSubAffixPropertyList()); + + // Hand + this.generateRelic(args, relics, excel.getMainSetId(), 2, null, excel.getSubAffixPropertyList()); + + // Body + this.generateRelic(args, relics, excel.getMainSetId(), 3, excel.getProp3(), excel.getSubAffixPropertyList()); + + // Foot + this.generateRelic(args, relics, excel.getMainSetId(), 4, excel.getProp4(), excel.getSubAffixPropertyList()); + + // Neck + this.generateRelic(args, relics, excel.getPlanarSetId(), 5, excel.getProp5(), excel.getSubAffixPropertyList()); + + // Object + this.generateRelic(args, relics, excel.getPlanarSetId(), 6, excel.getProp6(), excel.getSubAffixPropertyList()); + + // Give to player + args.getTarget().getInventory().addItems(relics); + + // Equip to avatar + for (var item : relics) { + avatar.equipItem(item); + } + + // Complete + args.sendMessage("Created recommended relics for avatar " + avatar.getExcelId()); + } + + private void generateRelic(CommandArgs args, List relics, int setId, int relicType, AvatarPropertyType mainProp, Set subProps) { + // Generate item id + int rarity = (ItemRarity.SuperRare.getVal() + 1) * 10000; + int set = setId * 10; + int itemId = rarity + set + relicType; + + // Create relic + GameItem item = new GameItem(itemId); + if (item.getExcel() == null) return; + + // Relic excel + var excel = item.getExcel().getRelicExcel(); + if (excel == null) return; + + // Set main affix + if (mainProp != null) { + for (var affix : GameDepot.getRelicMainAffixesByGroup(excel.getMainAffixGroup())) { + if (affix.getProperty() == mainProp) { + item.setMainAffix(affix.getAffixID()); + break; + } + } + } + + // Set sub affixes + item.resetSubAffixes(); + + for (var affix : GameDepot.getRelicSubAffixesByGroup(excel.getSubAffixGroup())) { + // Skip main affix + if (affix.getProperty() == mainProp) { + continue; + } + + // Create sub affix + if (subProps.contains(affix.getProperty())) { + item.addSubAffix(new GameItemSubAffix(affix)); + + // Check limit + if (item.getSubAffixListSize() >= 4) { + break; + } + } + } + + // Set max level + item.setLevel(excel.getMaxLevel()); + + // Quality flag - forces rolls to be on favored sub affixes first + if (args.hasFlag("-quality")) { + int maxUniqueSubAffixes = Math.max(item.getExcel().getRarity().getVal() - 1, item.getCurrentSubAffixCount()); + int upgrades = item.getMaxNormalSubAffixCount() - maxUniqueSubAffixes; + for (int i = 0; i < upgrades;i++) { + item.upgradeRandomSubAffix(); + } + } + + // Apply sub stat upgrades to the relic + int upgrades = item.getMaxNormalSubAffixCount() - item.getCurrentSubAffixCount(); + if (upgrades > 0) { + item.addRandomSubAffixes(upgrades); + } + + // Sort sub affixes + item.sortSubAffixes(); + + // Handle flags + if (args.hasFlag("-maxsteps")) { + item.getSubAffixes().forEach(subAffix -> subAffix.setStep(subAffix.getCount() * 2)); + } + + // Add to list + relics.add(item); + } +} diff --git a/src/main/java/emu/lunarcore/command/commands/ClearCommand.java b/src/main/java/emu/lunarcore/command/commands/ClearCommand.java index 5d5a9fe..bad41cf 100644 --- a/src/main/java/emu/lunarcore/command/commands/ClearCommand.java +++ b/src/main/java/emu/lunarcore/command/commands/ClearCommand.java @@ -7,6 +7,7 @@ import emu.lunarcore.command.Command; import emu.lunarcore.command.CommandArgs; import emu.lunarcore.command.CommandHandler; import emu.lunarcore.game.enums.ItemMainType; +import emu.lunarcore.game.enums.ItemSubType; import emu.lunarcore.game.inventory.GameItem; @Command(label = "clear", permission = "player.clear", requireTarget = true, desc = "/clear {relics | lightcones | materials | items} lv(filter level). Removes filter items from the targeted player's inventory.") @@ -28,8 +29,10 @@ public class ClearCommand implements CommandHandler { } } case "equipment", "lightcones", "lc" -> { + int filterRank = Math.max(args.getRank(), 1); + for (GameItem item : args.getTarget().getInventory().getItems().values()) { - if (item.getItemMainType() == ItemMainType.Equipment && item.getLevel() <= filterLevel && !item.isLocked() && !item.isEquipped()) { + if (item.getItemMainType() == ItemMainType.Equipment && item.getLevel() <= filterLevel && item.getRank() <= filterRank && !item.isLocked() && !item.isEquipped()) { toRemove.add(item); } } @@ -48,6 +51,13 @@ public class ClearCommand implements CommandHandler { } } } + case "eidolons", "e" -> { + for (GameItem item : args.getTarget().getInventory().getItems().values()) { + if (item.getExcel().getItemSubType() == ItemSubType.Eidolon) { + toRemove.add(item); + } + } + } } args.getTarget().getInventory().removeItems(toRemove); diff --git a/src/main/java/emu/lunarcore/command/commands/HealCommand.java b/src/main/java/emu/lunarcore/command/commands/HealCommand.java index 9b41abd..7caebf7 100644 --- a/src/main/java/emu/lunarcore/command/commands/HealCommand.java +++ b/src/main/java/emu/lunarcore/command/commands/HealCommand.java @@ -11,10 +11,12 @@ public class HealCommand implements CommandHandler { @Override public void execute(CommandArgs args) { PlayerLineup lineup = args.getTarget().getCurrentLineup(); + lineup.forEachAvatar(avatar -> { avatar.setCurrentHp(lineup, 10000); avatar.save(); }); + lineup.refreshLineup(); args.sendMessage("Healed all avatars for " + args.getTarget().getName()); diff --git a/src/main/java/emu/lunarcore/command/commands/RefillMPCommand.java b/src/main/java/emu/lunarcore/command/commands/RefillMPCommand.java index e82b824..54ed584 100644 --- a/src/main/java/emu/lunarcore/command/commands/RefillMPCommand.java +++ b/src/main/java/emu/lunarcore/command/commands/RefillMPCommand.java @@ -1,6 +1,5 @@ package emu.lunarcore.command.commands; -import emu.lunarcore.GameConstants; import emu.lunarcore.command.Command; import emu.lunarcore.command.CommandArgs; import emu.lunarcore.command.CommandHandler; @@ -10,7 +9,9 @@ public class RefillMPCommand implements CommandHandler { @Override public void execute(CommandArgs args) { - args.getTarget().getCurrentLineup().addMp(GameConstants.MAX_MP); + var lineup = args.getTarget().getCurrentLineup(); + lineup.addMp(lineup.getMaxMp()); + args.sendMessage("Successfully refilled skill points for " + args.getTarget().getName()); } diff --git a/src/main/java/emu/lunarcore/command/commands/TeleportCommand.java b/src/main/java/emu/lunarcore/command/commands/TeleportCommand.java new file mode 100644 index 0000000..dc97130 --- /dev/null +++ b/src/main/java/emu/lunarcore/command/commands/TeleportCommand.java @@ -0,0 +1,23 @@ +package emu.lunarcore.command.commands; + +import emu.lunarcore.command.Command; +import emu.lunarcore.command.CommandArgs; +import emu.lunarcore.command.CommandHandler; +import emu.lunarcore.util.Position; +import emu.lunarcore.util.Utils; + +@Command(label = "teleport", aliases = {"tp"}, permission = "player.teleport", requireTarget = true, desc = "/tp [x] [y] [z]. Teleports the player to the specified coordinates.") +public class TeleportCommand implements CommandHandler { + + @Override + public void execute(CommandArgs args) { + // Get coords + int x = Utils.parseSafeInt(args.get(0)); + int y = Utils.parseSafeInt(args.get(1)); + int z = Utils.parseSafeInt(args.get(2)); + + // Move player + args.getTarget().moveTo(new Position(x, y, z)); + } + +} diff --git a/src/main/java/emu/lunarcore/data/GameData.java b/src/main/java/emu/lunarcore/data/GameData.java index 8986b03..b3491ea 100644 --- a/src/main/java/emu/lunarcore/data/GameData.java +++ b/src/main/java/emu/lunarcore/data/GameData.java @@ -2,11 +2,18 @@ package emu.lunarcore.data; import java.lang.reflect.Field; +import java.util.Arrays; import java.util.List; import java.util.ArrayList; -import emu.lunarcore.data.config.FloorInfo; +import java.util.stream.Collectors; + +import emu.lunarcore.LunarCore; +import emu.lunarcore.data.config.*; import emu.lunarcore.data.excel.*; +import emu.lunarcore.data.resource.ExcelMap; +import emu.lunarcore.data.resource.MultiKeyExcelMap; +import emu.lunarcore.data.config.MissionInfo.SubMissionInfo; import emu.lunarcore.game.battle.MazeBuff; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.*; @@ -17,79 +24,99 @@ import lombok.Getter; @SuppressWarnings("unused") public class GameData { // Excels - @Getter private static Int2ObjectMap avatarExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap itemExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap itemUseExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap equipExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap relicExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap propExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap npcExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap summonUnitExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap monsterExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap npcMonsterExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap stageExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap mazePlaneExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap mapEntranceExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap multiplePathAvatarExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap shopExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rewardExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap interactExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap playerIconExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap itemComposeExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap activityPanelExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap backGroundMusicExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap questExcelMap = new Int2ObjectLinkedOpenHashMap<>(); - @Getter private static Int2ObjectMap textJoinExcelMap = new Int2ObjectLinkedOpenHashMap<>(); - @Getter private static Int2ObjectMap chatBubbleExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap phoneThemeExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap petExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap contentPackageExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static ExcelMap avatarExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap avatarSkinExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap avatarRankExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap avatarRelicRecommendExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap multiplePathAvatarExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap avatarGlobalBuffExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap itemExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap itemUseExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap equipExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap relicExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap propExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap npcExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap summonUnitExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap monsterExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap npcMonsterExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap stageExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap mazePlaneExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap mapEntranceExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap shopExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap rewardExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap interactExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap playerIconExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap itemComposeExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap backGroundMusicExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap questExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap textJoinExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap chatBubbleExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap phoneThemeExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap petExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap contentPackageExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap offeringTypeExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap avatarDemoExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap specialAvatarExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap mainMissionExcelMap = new ExcelMap<>(); + + // Multikey excels + @Getter private static MultiKeyExcelMap avatarPromotionExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap avatarSkillTreeExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap avatarEnhanceExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap equipmentPromotionExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap mazeBuffExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap cocoonExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap farmElementExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap planeEventExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap mappingInfoExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap monsterDropExcelMap = new MultiKeyExcelMap<>(); - @Getter private static Int2ObjectMap challengeGroupExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap challengeExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap challengeTargetExcelMap = new Int2ObjectOpenHashMap<>(); + // Levels and Exp data + @Getter private static ExcelMap playerLevelExcelMap = new ExcelMap<>(); + @Getter private static MultiKeyExcelMap expTypeExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap equipmentExpTypeExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap relicExpTypeExcelMap = new MultiKeyExcelMap<>(); - @Getter private static Int2ObjectMap rogueManagerExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueTalentExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueAeonExcelMap = new Int2ObjectLinkedOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueAreaExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueRoomExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueMapExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueMonsterExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueNPCExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueDialogueEventList = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueBuffGroupExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueBuffTagExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap rogueBuffExcelMap = new Int2ObjectOpenHashMap<>(); + // Relics + @Getter private static ExcelMap relicSetExcelMap = new ExcelMap<>(); + @Getter private static MultiKeyExcelMap relicMainAffixExcelMap = new MultiKeyExcelMap<>(); + @Getter private static MultiKeyExcelMap relicSubAffixExcelMap = new MultiKeyExcelMap<>(); - @Getter private static Int2ObjectMap rogueDLCAreaExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueNousMainStoryExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueNousSubStoryExcelMap = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueNousDiceBranchExcelMap = new Int2ObjectOpenHashMap<>(); + // Challenge + @Getter private static ExcelMap challengeGroupExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap challengeExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap challengeTargetExcelMap = new ExcelMap<>(); - private static Int2ObjectMap avatarPromotionExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap avatarSkillTreeExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap avatarRankExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap equipmentPromotionExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap mazeBuffExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap cocoonExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap mappingInfoExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap monsterDropExcelMap = new Int2ObjectOpenHashMap<>(); + @Getter private static ExcelMap challengePeakExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap challengePeakGroupExcelMap = new ExcelMap<>(); - private static Int2ObjectMap playerLevelExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap expTypeExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap equipmentExpTypeExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap relicExpTypeExcelMap = new Int2ObjectOpenHashMap<>(); + // Expeditions + @Getter private static ExcelMap expeditionExcelMap = new ExcelMap<>(); - private static Int2ObjectMap relicMainAffixExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap relicSubAffixExcelMap = new Int2ObjectOpenHashMap<>(); - private static Int2ObjectMap relicSetExcelMap = new Int2ObjectOpenHashMap<>(); + // Pom-Pom + @Getter private static ExcelMap pomSkinExcelMap = new ExcelMap<>(); + + // Activity + @Getter private static ExcelMap activityPanelExcelMap = new ExcelMap<>(); + // Tutorials + @Getter private static ExcelMap tutorialExcelMap = new ExcelMap<>(); + @Getter private static ExcelMap tutorialGuideExcelMap = new ExcelMap<>(); + // Configs (Bin) @Getter private static Object2ObjectMap floorInfos = new Object2ObjectOpenHashMap<>(); + @Getter private static Object2ObjectMap missionInfos = new Object2ObjectOpenHashMap<>(); - public static List getAllRelicIds() { - return relicExcelMap.values().stream().map(RelicExcel::getId).toList(); + public static AvatarSkillTreeExcel getAvatarSkilltree(int avatarId, int enhanceId, int anchorPointId, int level) { + long key = ((long) avatarId << 48) + ((long) enhanceId << 32) + ((long) anchorPointId << 16) + (long) level; + return GameDepot.getAvatarSkillTreeExcels().get(key); + } + + public static List getRecommendAvatarIdForRelicSet(int setId) { + return avatarRelicRecommendExcelMap.values().stream() + .filter(excel -> Arrays.stream(excel.getSet4IDList()).anyMatch(id -> id == setId) || Arrays.stream(excel.getSet2IDList()).anyMatch(id -> id == setId)) + .map(AvatarRelicRecommendExcel::getAvatarID) + .toList(); } public static int getRelicSetFromId(int relicId) { @@ -141,22 +168,6 @@ public class GameData { var excel = backGroundMusicExcelMap.get(musicId); return excel != null ? excel.getGroupId() : 0; } - - public static AvatarPromotionExcel getAvatarPromotionExcel(int id, int promotion) { - return avatarPromotionExcelMap.get((id << 8) + promotion); - } - - public static AvatarSkillTreeExcel getAvatarSkillTreeExcel(int skill, int level) { - return avatarSkillTreeExcelMap.get((skill << 4) + level); - } - - public static AvatarRankExcel getAvatarRankExcel(int rankId) { - return avatarRankExcelMap.get(rankId); - } - - public static EquipmentPromotionExcel getEquipmentPromotionExcel(int id, int promotion) { - return equipmentPromotionExcelMap.get((id << 8) + promotion); - } public static int getPlayerExpRequired(int level) { var excel = playerLevelExcelMap.get(level); @@ -164,53 +175,102 @@ public class GameData { } public static int getAvatarExpRequired(int expGroup, int level) { - var excel = expTypeExcelMap.get((expGroup << 16) + level); + var excel = expTypeExcelMap.get(expGroup, level); return excel != null ? excel.getExp() : 0; } public static int getEquipmentExpRequired(int expGroup, int level) { - var excel = equipmentExpTypeExcelMap.get((expGroup << 16) + level); + var excel = equipmentExpTypeExcelMap.get(expGroup, level); return excel != null ? excel.getExp() : 0; } public static int getRelicExpRequired(int expGroup, int level) { - var excel = relicExpTypeExcelMap.get((expGroup << 16) + level); + var excel = relicExpTypeExcelMap.get(expGroup, level); return excel != null ? excel.getExp() : 0; } - public static RelicMainAffixExcel getRelicMainAffixExcel(int groupId, int affixId) { - return relicMainAffixExcelMap.get((groupId << 16) + affixId); - } - - public static RelicSubAffixExcel getRelicSubAffixExcel(int groupId, int affixId) { - return relicSubAffixExcelMap.get((groupId << 16) + affixId); - } - public static FloorInfo getFloorInfo(int planeId, int floorId) { return floorInfos.get("P" + planeId + "_F" + floorId); } - public static MazeBuffExcel getMazeBuffExcel(int buffId, int level) { - return mazeBuffExcelMap.get((buffId << 4) + level); + public static MissionInfo getMainMissionInfos(int mainMissionID) { + if (!missionInfos.containsKey(mainMissionID)) { + return null; + } + return missionInfos.get(mainMissionID); } - - public static CocoonExcel getCocoonExcel(int cocoonId, int worldLevel) { - return cocoonExcelMap.get((cocoonId << 8) + worldLevel); + + public static SubMissionInfo getSubMissionById(int id) { + for (var missionInfos : missionInfos.values()) { + for (SubMissionInfo subMission : missionInfos.getSubMissionList()) { + if (subMission.getId() == id) { + return subMission; + } + } + } + return null; } - - public static MappingInfoExcel getMappingInfoExcel(int mappingInfoId, int worldLevel) { - return mappingInfoExcelMap.get((mappingInfoId << 8) + worldLevel); + + public static boolean isRelatedMissions(int idSub, int idMain) { + for (var missionInfos : missionInfos.values()) { + for (SubMissionInfo subMission : missionInfos.getSubMissionList()) { + if (subMission.getMainMissionID() == idMain) { + if (subMission.getId() == idSub) { + return true; + } + } + } + } + return false; } - - public static MonsterDropExcel getMonsterDropExcel(int monsterNpcId, int worldLevel) { - return monsterDropExcelMap.get((monsterNpcId << 4) + worldLevel); + + public static List getMainMissionIds() { + List allIds = new ArrayList<>(); + + for (Int2ObjectMap.Entry entry : mainMissionExcelMap.int2ObjectEntrySet()) { + MainMissionExcel mainMissionExcel = entry.getValue(); + allIds.add(mainMissionExcel.getId()); + } + + return allIds; } - - public static RogueMapExcel getRogueMapExcel(int rogueMapId, int siteId) { - return rogueMapExcelMap.get((rogueMapId << 8) + siteId); + + public static List getSubMissionIds() { + List allIds = new ArrayList<>(); + + for (var missionInfos : missionInfos.values()) { + for (SubMissionInfo subMission : missionInfos.getSubMissionList()) { + allIds.add(subMission.getId()); + } + } + + return allIds; } - - public static RogueBuffExcel getRogueBuffExcel(int rogueBuffId, int level) { - return rogueBuffExcelMap.get((rogueBuffId << 4) + level); + + public static List getAllMainMissionInfos() { + List allIds = new ArrayList<>(); + + for (var missionInfo : missionInfos.values()) { + allIds.add(missionInfo); + } + + return allIds; + } + + public static MainMissionExcel getMainMissionExcelByID(int mMisionId) { + return mainMissionExcelMap.get(mMisionId); + } + + public static MissionInfo getMissionInfos(int mainMissionID) { + return missionInfos.get(mainMissionID); + } + + public static MainMissionExcel getMainMissionByID(int mMisionId) { + return mainMissionExcelMap.get(mMisionId); + } + + public static int getPetItemId(int petId) { + PetExcel petExcel = petExcelMap.get(petId); + return petExcel != null ? petExcel.getPetItemID() : 0; } } diff --git a/src/main/java/emu/lunarcore/data/GameDepot.java b/src/main/java/emu/lunarcore/data/GameDepot.java index 280cc9f..b834a0e 100644 --- a/src/main/java/emu/lunarcore/data/GameDepot.java +++ b/src/main/java/emu/lunarcore/data/GameDepot.java @@ -3,19 +3,16 @@ package emu.lunarcore.data; import java.util.ArrayList; import java.util.List; -import emu.lunarcore.GameConstants; -import emu.lunarcore.data.custom.ActivityScheduleData; import emu.lunarcore.data.excel.*; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.longs.Long2ObjectMap; +import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; import lombok.Getter; // Game data that is parsed by the server goes here public class GameDepot { - // Activity - @Getter private static List activityScheduleExcels = new ArrayList<>(); - // Exp @Getter private static List avatarExpExcels = new ArrayList<>(); @Getter private static List equipmentExpExcels = new ArrayList<>(); @@ -27,27 +24,29 @@ public class GameDepot { // Challenges @Getter private static Int2ObjectMap> challengeRewardLines = new Int2ObjectOpenHashMap<>(); - - // Rogue - @Getter private static Int2ObjectMap rogueMapGen = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap rogueAeonBuffs = new Int2ObjectOpenHashMap<>(); - @Getter private static Int2ObjectMap> rogueAeonEnhanceBuffs = new Int2ObjectOpenHashMap<>(); - @Getter private static List rogueRandomBuffList = new ArrayList<>(); - @Getter private static List rogueRandomCommonBonusList = new ArrayList<>(); - @Getter private static List rogueRandomMiracleList = new ArrayList<>(); - private static Int2ObjectMap> rogueMapDepot = new Int2ObjectOpenHashMap<>(); + + // Avatar skilltrees + @Getter private static Long2ObjectMap avatarSkillTreeExcels = new Long2ObjectOpenHashMap<>(); public static void addRelicMainAffix(RelicMainAffixExcel affix) { relicMainAffixDepot - .computeIfAbsent(affix.getGroupID(), k -> new ArrayList<>()) + .computeIfAbsent(affix.getGroupID(), x -> new ArrayList<>()) .add(affix); } public static void addRelicSubAffix(RelicSubAffixExcel affix) { relicSubAffixDepot - .computeIfAbsent(affix.getGroupID(), k -> new ArrayList<>()) + .computeIfAbsent(affix.getGroupID(), x -> new ArrayList<>()) .add(affix); } + + public static List getRelicMainAffixesByGroup(int groupId) { + return relicMainAffixDepot.get(groupId); + } + + public static List getRelicSubAffixesByGroup(int groupId) { + return relicSubAffixDepot.get(groupId); + } public static RelicMainAffixExcel getRandomRelicMainAffix(int groupId) { var list = relicMainAffixDepot.get(groupId); @@ -59,22 +58,4 @@ public class GameDepot { public static List getRelicSubAffixList(int groupId) { return relicSubAffixDepot.get(groupId); } - - // TODO cache this so we don't have to run this function every time we get the schedule - public static RogueManagerExcel getCurrentRogueSchedule() { - long time = System.currentTimeMillis() - (GameConstants.CURRENT_ZONEOFFSET.getTotalSeconds() * 1000); - - for (var schedule : GameData.getRogueManagerExcelMap().values()) { - if (time >= schedule.getBeginTime() && time < schedule.getEndTime()) { - return schedule; - } - } - - return null; - } - - public static List getRogueMapsById(int mapId) { - return rogueMapDepot.computeIfAbsent(mapId, id -> new ArrayList<>()); - } - } diff --git a/src/main/java/emu/lunarcore/data/GameResource.java b/src/main/java/emu/lunarcore/data/GameResource.java deleted file mode 100644 index fb0fc63..0000000 --- a/src/main/java/emu/lunarcore/data/GameResource.java +++ /dev/null @@ -1,19 +0,0 @@ -package emu.lunarcore.data; - -public abstract class GameResource implements Comparable { - - public abstract int getId(); - - public void onLoad() { - - } - - public void onFinalize() { - - } - - @Override - public int compareTo(GameResource o) { - return this.getId() - o.getId(); - } -} diff --git a/src/main/java/emu/lunarcore/data/ResourceDeserializers.java b/src/main/java/emu/lunarcore/data/ResourceDeserializers.java index 5969710..686fa51 100644 --- a/src/main/java/emu/lunarcore/data/ResourceDeserializers.java +++ b/src/main/java/emu/lunarcore/data/ResourceDeserializers.java @@ -27,10 +27,16 @@ public class ResourceDeserializers { public Long deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { if (json.isJsonPrimitive()) { return json.getAsLong(); - } else { + } else if (json.isJsonObject()) { // TextID var obj = json.getAsJsonObject(); - return obj.get("Hash").getAsLong(); + if (obj.has("hash")) { + return obj.get("hash").getAsLong(); + } else { + return obj.get("Hash").getAsLong(); + } + } else { + return 0L; } } } diff --git a/src/main/java/emu/lunarcore/data/ResourceLoader.java b/src/main/java/emu/lunarcore/data/ResourceLoader.java index 11731fd..11954a7 100644 --- a/src/main/java/emu/lunarcore/data/ResourceLoader.java +++ b/src/main/java/emu/lunarcore/data/ResourceLoader.java @@ -3,14 +3,13 @@ package emu.lunarcore.data; import java.io.*; import java.lang.reflect.Field; import java.nio.charset.StandardCharsets; +import java.nio.file.Paths; import java.util.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Stream; import emu.lunarcore.data.config.*; -import emu.lunarcore.data.config.rogue.RogueDialogueEventConfigInfo; -import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo; import org.reflections.Reflections; import com.google.gson.Gson; @@ -23,15 +22,18 @@ import emu.lunarcore.LunarCore; import emu.lunarcore.data.ResourceDeserializers.LunarCoreDoubleDeserializer; import emu.lunarcore.data.ResourceDeserializers.LunarCoreHashDeserializer; import emu.lunarcore.data.config.FloorInfo.FloorGroupSimpleInfo; -import emu.lunarcore.data.custom.ActivityScheduleData; +import emu.lunarcore.data.resource.ResourceBase; +import emu.lunarcore.data.resource.ResourceMap; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.util.Utils; -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.IntArrayList; +import lombok.Getter; public class ResourceLoader { private static boolean loaded = false; // Special gson factory we create for loading resources - private static final Gson gson = new GsonBuilder() + @Getter private static final Gson gson = new GsonBuilder() .registerTypeAdapter(double.class, new LunarCoreDoubleDeserializer()) .registerTypeAdapter(long.class, new LunarCoreHashDeserializer()) .create(); @@ -49,12 +51,9 @@ public class ResourceLoader { loadFloorInfos(); // Load maze abilities loadMazeAbilities(); - // Load rogue maps - loadRogueMapGen(); - // Load activity schedule config - loadActivityScheduleConfig(); - // Load rogue dialogue events - loadRogueDialogueEvent(); + + // Load mission infos + loadMissionInfo(); // Done loaded = true; @@ -68,26 +67,30 @@ public class ResourceLoader { } } - private static Int2ObjectMap getMapForExcel(Class dataClass, Class resourceDefinition) { - Int2ObjectMap map = null; - + @SuppressWarnings("unchecked") + private static ResourceMap getMapForExcel(Class dataClass, Class resourceDefinition) { + ResourceMap table = null; + Field field = null; + try { - Field field = dataClass.getDeclaredField(Utils.lowerCaseFirstChar(resourceDefinition.getSimpleName()) + "Map"); + field = dataClass.getDeclaredField(Utils.lowerCaseFirstChar(resourceDefinition.getSimpleName()) + "Map"); + if (field == null) { + field = dataClass.getDeclaredField(resourceDefinition.getSimpleName() + "Map"); + } + field.setAccessible(true); - - map = (Int2ObjectMap) field.get(null); - + table = (ResourceMap) field.get(null); field.setAccessible(false); } catch (Exception e) { } - return map; + return table; } private static List> getResourceDefClasses() { - Reflections reflections = new Reflections(ResourceLoader.class.getPackage().getName()); - Set classes = reflections.getSubTypesOf(GameResource.class); + Reflections reflections = new Reflections(LunarCore.class.getPackage().getName()); + Set classes = reflections.getSubTypesOf(ResourceBase.class); List> classList = new ArrayList<>(classes.size()); classes.forEach(o -> { @@ -102,19 +105,23 @@ public class ResourceLoader { return classList; } - private static void loadResources() { + @SuppressWarnings({"unchecked", "rawtypes"}) + public static void loadResources() { for (Class resourceDefinition : getResourceDefClasses()) { + // Get annotation ResourceType type = resourceDefinition.getAnnotation(ResourceType.class); + if (type == null) continue; - if (type == null) { - continue; - } - - @SuppressWarnings("rawtypes") - Int2ObjectMap map = ResourceLoader.getMapForExcel(type.gameDataClass(), resourceDefinition); + // Get map for this excel + ResourceMap map = ResourceLoader.getMapForExcel(type.gameDataClass(), resourceDefinition); try { - loadFromResource(resourceDefinition, type, map); + int count = 0; + for (String name : type.name()) { + count += loadFromResource(resourceDefinition, type, name, map); + } + + LunarCore.getLogger().info("Loaded " + count + " " + resourceDefinition.getSimpleName() + "s."); } catch (FileNotFoundException e) { LunarCore.getLogger().error("Resource file not found: {}.", Arrays.toString(type.name())); } catch (Exception e) { @@ -123,19 +130,8 @@ public class ResourceLoader { } } - @SuppressWarnings("rawtypes") - private static void loadFromResource(Class c, ResourceType type, Int2ObjectMap map) throws Exception { - int count = 0; - - for (String name : type.name()) { - count += loadFromResource(c, type, name, map); - } - - LunarCore.getLogger().info("Loaded " + count + " " + c.getSimpleName() + "s."); - } - - @SuppressWarnings({"rawtypes", "unchecked"}) - private static int loadFromResource(Class c, ResourceType type, String fileName, Int2ObjectMap map) throws Exception { + private static int loadFromResource(Class c, ResourceType type, String fileName, ResourceMap map) throws Exception { + // Get file name String file = LunarCore.getConfig().getResourceDir() + "/ExcelOutput/" + fileName; // Load reader from file @@ -173,7 +169,7 @@ public class ResourceLoader { stream = excels.values().stream(); } else { // Nested Map - Map> excels = gson.fromJson(json, TypeToken.getParameterized(Map.class, Integer.class, TypeToken.getParameterized(Map.class, Integer.class, c).getType()).getType()); + Map> excels = gson.fromJson(json, TypeToken.getParameterized(Map.class, String.class, TypeToken.getParameterized(Map.class, Integer.class, c).getType()).getType()); stream = excels.values().stream().flatMap(m -> m.values().stream()); } } else { @@ -182,29 +178,32 @@ public class ResourceLoader { // Sanity check if (stream == null) return 0; - + // Mutable integer AtomicInteger count = new AtomicInteger(); + + // Put excels into + stream.forEach(obj -> { + try { + // Cast object to excel + ResourceBase excel = (ResourceBase) obj; + + // Call onLoad event + excel.onLoad(); - stream.forEach(o -> { - GameResource res = (GameResource) o; - res.onLoad(); - - count.getAndIncrement(); - - if (map != null) { - map.put(res.getId(), res); + // Add to excel map + if (map != null) { + map.add(obj); + } + + // Increment counter + count.incrementAndGet(); + } catch (Exception e) { + e.printStackTrace(); } }); - - if (map != null) { - map.forEach((k, v) -> { - if (v instanceof GameResource) { - ((GameResource) v).onFinalize(); - } - }); - } - + + // Return the amount of excels we loaded return count.get(); } } @@ -213,6 +212,9 @@ public class ResourceLoader { private static void loadFloorInfos() { // Load floor infos LunarCore.getLogger().info("Loading floor infos... this may take a while."); + long timestamp = System.currentTimeMillis(); + + // Get floor directory File floorDir = new File(LunarCore.getConfig().getResourceDir() + "/Config/LevelOutput/RuntimeFloor/"); boolean missingGroupInfos = false; @@ -220,56 +222,118 @@ public class ResourceLoader { LunarCore.getLogger().warn("Floor infos are missing, please check your resources folder: {resources}/Config/LevelOutput/RuntimeFloor. Teleports and natural world spawns may not work!"); return; } + + // Virtual thread list + List threads = new ArrayList<>(); // Load floor infos for (var excel : GameData.getMapEntranceExcelMap().values()) { - String name = "P" + excel.getPlaneID() + "_F" + excel.getFloorID(); - File file = new File(LunarCore.getConfig().getResourceDir() + "/Config/LevelOutput/RuntimeFloor/" + name + ".json"); + Runnable task = () -> { + String name = "P" + excel.getPlaneID() + "_F" + excel.getFloorID(); + File file = new File(LunarCore.getConfig().getResourceDir() + "/Config/LevelOutput/RuntimeFloor/" + name + ".json"); + + if (!file.exists()) { + LunarCore.getLogger().warn("Missing floor info: " + name); + return; + } + + try (FileReader reader = new FileReader(file)) { + FloorInfo floor = gson.fromJson(reader, FloorInfo.class); + + synchronized (GameData.getFloorInfos()) { + GameData.getFloorInfos().put(name, floor); + } + } catch (Exception e) { + e.printStackTrace(); + } + }; - if (!file.exists()) { - LunarCore.getLogger().warn("Missing floor info: " + name); - continue; - } - - try (FileReader reader = new FileReader(file)) { - FloorInfo floor = gson.fromJson(reader, FloorInfo.class); - GameData.getFloorInfos().put(name, floor); - } catch (Exception e) { + // Start virtual thread + threads.add(Thread.ofVirtual().start(task)); + } + + // Wait for floors to finish loading + for (var vt : threads) { + try { + vt.join(); + } catch (InterruptedException e) { + // TODO Auto-generated catch block e.printStackTrace(); } } + + threads.clear(); - // Load group infos + // Load floor + group infos for (FloorInfo floor : GameData.getFloorInfos().values()) { - for (FloorGroupSimpleInfo simpleGroup : floor.getSimpleGroupList()) { + // Get loadable groups + var loadableGroupList = new IntArrayList(); + + var dimension = floor.getMainDimension(); + if (dimension != null) { + loadableGroupList = dimension.getGroupIndexList(); + } + + // Load groups + for (int index : loadableGroupList) { + // Get group + FloorGroupSimpleInfo simpleGroup = floor.getSimpleGroupList().get(index); + // Dont load "deprecated" groups if (simpleGroup.isIsDelete()) { continue; } - // Get file from resource directory - File file = new File(LunarCore.getConfig().getResourceDir() + "/" + simpleGroup.getGroupPath()); - if (!file.exists()) continue; - - // TODO optimize - try (FileReader reader = new FileReader(file)) { - GroupInfo group = gson.fromJson(reader, GroupInfo.class); - group.setId(simpleGroup.getID()); + // Get group file from resource directory + Runnable task = () -> { + File file = Paths.get(LunarCore.getConfig().getResourceDir(), simpleGroup.getGroupPath()).toFile(); - // Load groups into the floor info - floor.getGroupList().add(group); - floor.getGroups().put(simpleGroup.getID(), group); - } catch (Exception e) { - e.printStackTrace(); - } + if (!file.exists()) { + // temp fix + file = Paths.get(LunarCore.getConfig().getResourceDir(), simpleGroup.getGroupPath().replace("/RuntimeGroup", "/SharedRuntimeGroup")).toFile(); + if (!file.exists()) { + LunarCore.getLogger().warn("Group not found: " + simpleGroup.getGroupPath()); + return; + } + } + + try (FileReader reader = new FileReader(file)) { + // Parse group info + GroupInfo group = gson.fromJson(reader, GroupInfo.class); + group.setId(simpleGroup.getID()); + + // Load groups into the floor info + synchronized (floor.getGroups()) { + floor.getGroups().put(simpleGroup.getID(), group); + } + } catch (Exception e) { + e.printStackTrace(); + } + }; + + // Start virtual thread + threads.add(Thread.ofVirtual().start(task)); } - - // Check if we are missing group infos + } + + // Wait for groups to finish loading + for (var vt : threads) { + try { + vt.join(); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + // Finish loading floors + for (FloorInfo floor : GameData.getFloorInfos().values()) { + // Check if we are missing group infos TODO broken if (floor.getGroups().size() == 0) { LunarCore.getLogger().warn("Floor " + floor.getFloorID() + " is missing group infos."); missingGroupInfos = true; } - + // Post load callback to cache floor info floor.onLoad(); } @@ -280,7 +344,7 @@ public class ResourceLoader { } // Done - LunarCore.getLogger().info("Loaded " + GameData.getFloorInfos().size() + " floor infos."); + LunarCore.getLogger().info("Loaded " + GameData.getFloorInfos().size() + " floor infos in " + (System.currentTimeMillis() - timestamp) + " ms."); } // Might be better to cache @@ -300,6 +364,7 @@ public class ResourceLoader { if (!file.exists()) continue; try (FileReader reader = new FileReader(file)) { + //LunarCore.getLogger().info("Loading summon unit config: " + file.getName()); SummonUnitInfo info = gson.fromJson(reader, SummonUnitInfo.class); info.buildMazeSkillActions(); @@ -323,8 +388,12 @@ public class ResourceLoader { // Load maze abilities for (var avatarExcel : GameData.getAvatarExcelMap().values()) { // Get file - File file = new File(LunarCore.getConfig().getResourceDir() + "/Config/ConfigAdventureAbility/LocalPlayer/LocalPlayer_" + avatarExcel.getNameKey() + "_Ability.json"); - if (!file.exists()) continue; + String name = avatarExcel.getNameKey(); + File file = new File(LunarCore.getConfig().getResourceDir() + "/Config/ConfigAdventureAbility/LocalPlayer/LocalPlayer_" + name + "_Ability.json"); + if (!file.exists()) { + LunarCore.getLogger().warn("Maze ability is missing for avatar: " + name); + continue; + } try (FileReader reader = new FileReader(file)) { SkillAbilityInfo avatarSkills = gson.fromJson(reader, SkillAbilityInfo.class); @@ -346,89 +415,32 @@ public class ResourceLoader { LunarCore.getLogger().info("Loaded " + count + " maze abilities for avatars."); } - // Might be better to cache - private static void loadRogueDialogueEvent() { - // Loaded configs count + private static void loadMissionInfo() { int count = 0; - - // Load dialogue event configs - for (var npcEventExcel : GameData.getRogueNPCExcelMap().values()) { - // Get file - if (npcEventExcel.getNPCJsonPath().isEmpty()) { - count++; - continue; - } - - File file = new File(LunarCore.getConfig().getResourceDir() + "/" + npcEventExcel.getNPCJsonPath()); - if (!file.exists()) { - continue; - } - + int countTask = 0; + for (Integer mMissionId : GameData.getMainMissionIds()) { + File file = new File(LunarCore.getConfig().getResourceDir() + "/Config/Level/Mission/" + mMissionId + "/" + "MissionInfo_" + mMissionId + ".json"); + if (!file.exists()) continue; try (FileReader reader = new FileReader(file)) { - RogueNPCConfigInfo info = gson.fromJson(reader, RogueNPCConfigInfo.class); - npcEventExcel.setRogueNpcConfig(info); - - // Load dialogue option - for (var dialogue : info.DialogueList) { - if (dialogue.getOptionPath() == null) { - continue; - } - - File optionFile = new File(LunarCore.getConfig().getResourceDir() + "/" + dialogue.getOptionPath()); - if (!file.exists()) { - continue; - } - - try (FileReader optionFileReader = new FileReader(optionFile)) { - RogueDialogueEventConfigInfo optionInfo = gson.fromJson(optionFileReader, RogueDialogueEventConfigInfo.class); - dialogue.setOptionInfo(optionInfo); - } catch (Exception e) { - e.printStackTrace(); + MissionInfo info = gson.fromJson(reader, MissionInfo.class); + for (MissionInfo.SubMissionInfo setme : info.getSubMissionList()) { + File taskFile = new File(LunarCore.getConfig().getResourceDir() + "/Config/Level/Mission/" + setme.getMainMissionID() + "/" + "Mission_" + setme.getId() + ".json"); + if (!taskFile.exists()) continue; + try (FileReader readerTask = new FileReader(taskFile)) { + MissionTaskInfo infoTask = gson.fromJson(readerTask, MissionTaskInfo.class); + setme.setTask(infoTask); + countTask++; + } catch (Exception ex) { + LunarCore.getLogger().warn("Failed to load task mission info: " + taskFile.getName(), ex); } } - + // Update GameData with the modified MissionInfo object + GameData.getMissionInfos().put(info.getMainMissionID(), info); count++; } catch (Exception e) { - e.printStackTrace(); + LunarCore.getLogger().warn("Failed to load mission info: " + file.getName(), e); } } - - // Notify the server owner if we are missing any files - if (count < GameData.getRogueNPCExcelMap().size()) { - LunarCore.getLogger().warn("Rogue dialogue event configs are missing, please check your resources folder: {resources}/Config/Level/Rogue/. Rogue event may not work!"); - } - - // Done - LunarCore.getLogger().info("Loaded " + count + " rogue events."); - } - - private static void loadRogueMapGen() { - File file = new File(LunarCore.getConfig().getDataDir() + "/RogueMapGen.json"); - if (!file.exists()) { - LunarCore.getLogger().warn("RogueMapGen not found in data folder. Simulated universe will not work."); - return; - } - - try (FileReader reader = new FileReader(file)) { - Map rogue = gson.fromJson(reader, TypeToken.getParameterized(Map.class, Integer.class, int[].class).getType()); - - for (var entry : rogue.entrySet()) { - GameDepot.getRogueMapGen().put(entry.getKey().intValue(), entry.getValue()); - } - } catch (Exception e) { - e.printStackTrace(); - } - } - - private static void loadActivityScheduleConfig() { - File file = new File(LunarCore.getConfig().getDataDir() + "/ActivityScheduling.json"); - if (!file.exists()) return; - - try (FileReader reader = new FileReader(file)) { - List activityScheduleConfig = gson.fromJson(reader, TypeToken.getParameterized(List.class, ActivityScheduleData.class).getType()); - GameDepot.getActivityScheduleExcels().addAll(activityScheduleConfig); - } catch (Exception e) { - e.printStackTrace(); - } + LunarCore.getLogger().info("Loaded " + count + " mission infos (task " + countTask + ")."); } } diff --git a/src/main/java/emu/lunarcore/data/common/ExcelMonsterParam.java b/src/main/java/emu/lunarcore/data/common/ExcelMonsterParam.java new file mode 100644 index 0000000..12bb996 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/common/ExcelMonsterParam.java @@ -0,0 +1,16 @@ +package emu.lunarcore.data.common; + +import lombok.Getter; + +@Getter +public class ExcelMonsterParam { + private int configId; + private int npcMonsterId; + private int eventId; + + public ExcelMonsterParam(int configId, int npcMonsterId, int eventId) { + this.configId = configId; + this.npcMonsterId = npcMonsterId; + this.eventId = eventId; + } +} diff --git a/src/main/java/emu/lunarcore/data/config/FloorInfo.java b/src/main/java/emu/lunarcore/data/config/FloorInfo.java index 2161142..75fe5d3 100644 --- a/src/main/java/emu/lunarcore/data/config/FloorInfo.java +++ b/src/main/java/emu/lunarcore/data/config/FloorInfo.java @@ -2,14 +2,16 @@ package emu.lunarcore.data.config; import java.util.ArrayList; import java.util.List; +import java.util.Map; import com.google.gson.annotations.SerializedName; import emu.lunarcore.game.enums.PropState; import emu.lunarcore.game.scene.triggers.TriggerOpenTreasureWhenMonsterDie; +import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; - +import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; /** @@ -20,30 +22,29 @@ public class FloorInfo { private int FloorID; private int StartGroupIndex; private int StartAnchorID; - - @SerializedName(value = "SavedValues") - private List savedValues; + + private List DimensionList; + private Map GroupInstanceCommonMap; @SerializedName(value = "GroupInstanceList") private List SimpleGroupList; // Cached data private transient boolean loaded; - private transient List groupList; + private transient List savedValues; private transient Int2ObjectMap groups; private transient Int2ObjectMap cachedTeleports; private transient List unlockedCheckpoints; // DEBUG public FloorInfo() { - this.groupList = new ArrayList<>(); - this.groups = new Int2ObjectOpenHashMap<>(); + this.groups = new Int2ObjectLinkedOpenHashMap<>(); this.cachedTeleports = new Int2ObjectOpenHashMap<>(); this.unlockedCheckpoints = new ArrayList<>(); - this.savedValues = new ArrayList<>(); } public GroupInfo getGroupInfoByIndex(int groupIndex) { - return groupList.get(groupIndex); + var simpleGroup = SimpleGroupList.get(groupIndex); + return this.getGroups().get(simpleGroup.getID()); } public AnchorInfo getStartAnchorInfo() { @@ -52,10 +53,26 @@ public class FloorInfo { return getAnchorInfo(group, StartAnchorID); } + + public FloorDimensionInfo getMainDimension() { + if (this.getDimensionList() == null || this.getDimensionList().isEmpty()) { + return null; + } + + return this.getDimensionList().stream() + .filter(d -> d.getID() == 0) + .findFirst() + .orElse(null); + } public List getExtraDatas() { if (this.savedValues == null) { this.savedValues = new ArrayList<>(); + + var dimension = this.getMainDimension(); + if (dimension != null && dimension.getSavedValues() != null) { + this.savedValues.addAll(dimension.getSavedValues()); + } } return this.savedValues; @@ -84,7 +101,17 @@ public class FloorInfo { } for (PropInfo prop : group.getPropList()) { + // Set parent group for prop + prop.setGroup(group); + // Check if prop can be teleported to + + //TODO: better fix mission 100010105 + // AlreadyInPerformance Trigger D-100010104 Running D-100010104 + if(prop.getPropID() == 100000){ + prop.setState(PropState.BridgeState3); + } + if (prop.getAnchorID() > 0) { // Put inside cached teleport list to send to client when they request map info this.cachedTeleports.put(prop.getMappingInfoID(), prop); @@ -111,6 +138,13 @@ public class FloorInfo { this.loaded = true; } + + @Getter + public static class FloorDimensionInfo { + private int ID; + private List SavedValues; + private IntArrayList GroupIndexList; + } @Getter public static class ExtraDataInfo { @@ -125,7 +159,26 @@ public class FloorInfo { @Getter public static class FloorGroupSimpleInfo { private String GroupPath; + private String Name; private boolean IsDelete; private int ID; + + public String getName() { + if (this.Name == null) { + return ""; + } + + return this.Name; + } + } + + @Getter + public static class GroupInstanceCommonInfo { + private boolean IsDelete; + private GroupCategory Category; + } + + public enum GroupCategory { + Normal, Mission, BattleProps, BattleAudiences, Custom, System, Atmosphere; } } diff --git a/src/main/java/emu/lunarcore/data/config/GroupInfo.java b/src/main/java/emu/lunarcore/data/config/GroupInfo.java index 5abe1a9..20f9937 100644 --- a/src/main/java/emu/lunarcore/data/config/GroupInfo.java +++ b/src/main/java/emu/lunarcore/data/config/GroupInfo.java @@ -1,6 +1,7 @@ package emu.lunarcore.data.config; import java.util.List; +import java.util.Map; import lombok.Getter; @@ -9,10 +10,18 @@ import lombok.Getter; */ @Getter public class GroupInfo { + private String GroupName; private transient int id; - private GroupLoadSide LoadSide; - private boolean LoadOnInitial; + private GroupLoadSide LoadSide = GroupLoadSide.Server; + private GroupCategory Category; + private boolean LoadOnInitial = true; private int OwnerMainMissionID; + + private LoadConditionInfo AtmosphereCondition; + private LoadConditionInfo LoadCondition; + private LoadConditionInfo UnloadCondition; + + private Map GroupPropertyMap; private List AnchorList; private List MonsterList; @@ -23,11 +32,28 @@ public class GroupInfo { if (this.id == 0) this.id = id; } + public String getGroupName() { + return this.GroupName != null ? this.GroupName : "" ; + } + public MonsterInfo getMonsterById(int configId) { return MonsterList.stream().filter(m -> m.getID() == configId).findFirst().orElse(null); } + @Getter + public static class GroupProperty { + private int ID; + private String Name; + private String Side; // Enum + private int DefaultValue; + private int MaxValue; + } + public static enum GroupLoadSide { Client, Server; } + + public static enum GroupCategory { + Normal, Mission, BattleProps, BattleAudiences, Custom, System, Atmosphere; + } } diff --git a/src/main/java/emu/lunarcore/data/config/LevelGroupMissionCondition.java b/src/main/java/emu/lunarcore/data/config/LevelGroupMissionCondition.java new file mode 100644 index 0000000..552d576 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/LevelGroupMissionCondition.java @@ -0,0 +1,25 @@ +package emu.lunarcore.data.config; + +import lombok.Getter; + +/** + * Original name: LevelGroupMissionCondition + */ +@Getter +public class LevelGroupMissionCondition { + private LevelGroupMissionType Type; // = LevelGroupMissionType.MainMission + private LevelGroupMissionPhase Phase; + private int ID; + + public enum LevelGroupMissionType { + MainMission, SubMission, EventMission; + } + + public LevelGroupMissionType getMissionType() { + return this.Type; + } + + public enum LevelGroupMissionPhase { + Accept, Finish, Cancel; + } +} diff --git a/src/main/java/emu/lunarcore/data/config/LoadConditionInfo.java b/src/main/java/emu/lunarcore/data/config/LoadConditionInfo.java new file mode 100644 index 0000000..2eb8cb7 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/LoadConditionInfo.java @@ -0,0 +1,11 @@ +package emu.lunarcore.data.config; + +import lombok.Getter; + +/** + * Original name: LevelGroupMissionConditionSet + */ +@Getter +public class LoadConditionInfo { + private LevelGroupMissionCondition[] Conditions; +} diff --git a/src/main/java/emu/lunarcore/data/config/MissionInfo.java b/src/main/java/emu/lunarcore/data/config/MissionInfo.java new file mode 100644 index 0000000..f566b51 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/MissionInfo.java @@ -0,0 +1,101 @@ +package emu.lunarcore.data.config; + +import com.google.gson.annotations.SerializedName; + +import lombok.Getter; +import lombok.Setter; + +@Getter +public class MissionInfo { + @SerializedName("MainMissionID") + private int mainMissionID; + + @SerializedName("StartSubMissionList") + private int[] startSubMissionList; + + @SerializedName("FinishSubMissionList") + private int[] finishSubMissionList; + + @SerializedName("SubMissionList") + private SubMissionInfo[] subMissionList; + + @SerializedName("MissionCustomValueList") + private MissionCustomValueInfo[] missionCustomValueList; + + @SerializedName("CustomValueSaveIndexList") + private String[] missionCustomValueSaveIndexList; + + @Getter + @Setter + public static class SubMissionInfo { + @SerializedName("ID") + private int id; + + @SerializedName("MainMissionID") + private int mainMissionID; + + @SerializedName("TakeType") + private String takeType; + + @SerializedName("TakeParamIntList") + private Integer[] takeParamIntList; + + @SerializedName("FinishType") + private String finishType; + + @SerializedName("ParamInt1") + private int paramInt1; + + @SerializedName("ParamInt2") + private int paramInt2; + + @SerializedName("ParamInt3") + private int paramInt3; + + @SerializedName("LevelFloorID") + private int levelFloorID; + + @Setter private MissionTaskInfo task; + } + + @Getter + public static class MissionCustomValueInfo { + @SerializedName("Index") + private Integer index = 0; + + @SerializedName("Name") + private String name; + + @SerializedName("Type") + private String type; + + @SerializedName("ValidValueParamList") + private Integer[] validValueParamList; + } + + + @Getter + public static class MissionSimpleInfo { + private int mainMissionID; + private int[] startSubMissionList; + private int[] finishSubMissionList; + private SubMissionInfo[] subMissionList; + private MissionCustomValueInfo[] missionCustomValueList; + private String[] missionCustomValueSaveIndexList; + } + + /** + * Finds a sub-mission by its ID. + * + * @param id The ID of the sub-mission to find. + * @return The SubMissionInfo object with the matching ID, or null if not found. + */ + public SubMissionInfo getSubMissionById(int id) { + for (SubMissionInfo subMission : subMissionList) { + if (subMission.getId() == id) { + return subMission; + } + } + return null; // Return null if no matching sub-mission is found + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/data/config/MissionTaskInfo.java b/src/main/java/emu/lunarcore/data/config/MissionTaskInfo.java new file mode 100644 index 0000000..e60212b --- /dev/null +++ b/src/main/java/emu/lunarcore/data/config/MissionTaskInfo.java @@ -0,0 +1,54 @@ +package emu.lunarcore.data.config; + +import com.google.gson.annotations.SerializedName; + +import lombok.Getter; + +@Getter +public class MissionTaskInfo { + // @SerializedName("OnInitSequece") + // private OnInitSequece[] onInitSequece; + + @SerializedName("OnStartSequece") + private OnStartSequece[] onStartSequece; + + @SerializedName("Type") + private String type; + + @Getter + public static class OnStartSequece { + @SerializedName("Order") + private int order; + + @SerializedName("TaskList") + private TaskList[] taskList; + + @Getter + public static class TaskList { + @SerializedName("$type") + private String type; + + //@SerializedName("ValueSource") + //private Object valueSource; + + @SerializedName("PerformanceType") + private String PerformanceType; + + @SerializedName("PerformanceID") + private int performanceId; + + @SerializedName("Key") + private String key; + + @SerializedName("EntranceID") + private int entranceId; + + // need dynamic class + //@SerializedName("GroupID") + //private int groupId; + + @SerializedName("AnchorID") + private int anchorId; + } + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/data/config/MonsterInfo.java b/src/main/java/emu/lunarcore/data/config/MonsterInfo.java index d44ebea..2730fce 100644 --- a/src/main/java/emu/lunarcore/data/config/MonsterInfo.java +++ b/src/main/java/emu/lunarcore/data/config/MonsterInfo.java @@ -11,4 +11,5 @@ public class MonsterInfo extends ObjectInfo { private int EventID; private int FarmElementID; private boolean IsClientOnly; + private boolean LoadOnInitial = true; } diff --git a/src/main/java/emu/lunarcore/data/config/NpcInfo.java b/src/main/java/emu/lunarcore/data/config/NpcInfo.java index 959f3a2..c8d9964 100644 --- a/src/main/java/emu/lunarcore/data/config/NpcInfo.java +++ b/src/main/java/emu/lunarcore/data/config/NpcInfo.java @@ -9,4 +9,5 @@ import lombok.Getter; public class NpcInfo extends ObjectInfo { private int NPCID; private boolean IsClientOnly; + private boolean LoadOnInitial = true; } diff --git a/src/main/java/emu/lunarcore/data/config/PropInfo.java b/src/main/java/emu/lunarcore/data/config/PropInfo.java index 35dd359..52f9311 100644 --- a/src/main/java/emu/lunarcore/data/config/PropInfo.java +++ b/src/main/java/emu/lunarcore/data/config/PropInfo.java @@ -25,11 +25,13 @@ public class PropInfo extends ObjectInfo { private int CocoonID; private int FarmElementID; private boolean IsClientOnly; + private boolean LoadOnInitial = true; @Setter private PropValueSource ValueSource; @Setter private String InitLevelGraph; @Setter private PropState State = PropState.Closed; + @Setter private transient GroupInfo group; @Setter private transient PropTrigger trigger; @Setter private transient boolean isCommonConsole; diff --git a/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java b/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java index 2d06d7d..3f8d402 100644 --- a/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java +++ b/src/main/java/emu/lunarcore/data/config/SkillAbilityInfo.java @@ -68,7 +68,9 @@ public class SkillAbilityInfo { // TODO get sp increase value from params, also handle target alias actionList.add(new MazeSkillModifySP(50)); } else if (task.getType().contains("CreateSummonUnit")) { - skill.setTriggerBattle(false); + if (!task.IsClientOnly()) { + skill.setTriggerBattle(false); + } } else if (task.getType().contains("AddAdventureModifier")) { skill.addAdventureModifier(task.getModifierName()); } else if (task.getType().contains("AdventureSetAttackTargetMonsterDie")) { diff --git a/src/main/java/emu/lunarcore/data/config/SummonUnitInfo.java b/src/main/java/emu/lunarcore/data/config/SummonUnitInfo.java index 69927c7..650ca60 100644 --- a/src/main/java/emu/lunarcore/data/config/SummonUnitInfo.java +++ b/src/main/java/emu/lunarcore/data/config/SummonUnitInfo.java @@ -17,6 +17,10 @@ public class SummonUnitInfo { private SummonUnitTriggers TriggerConfig; public List getCustomTriggers() { + if (TriggerConfig == null || TriggerConfig.getCustomTriggers() == null) { + return new ArrayList<>(); + } + return TriggerConfig.getCustomTriggers(); } @@ -28,10 +32,6 @@ public class SummonUnitInfo { } public void buildMazeSkillActions() { - if (TriggerConfig == null) { - return; - } - for (var customTrigger : getCustomTriggers()) { customTrigger.buildMazeSkillActions(); } diff --git a/src/main/java/emu/lunarcore/data/config/TaskInfo.java b/src/main/java/emu/lunarcore/data/config/TaskInfo.java index 3587b11..0208f33 100644 --- a/src/main/java/emu/lunarcore/data/config/TaskInfo.java +++ b/src/main/java/emu/lunarcore/data/config/TaskInfo.java @@ -21,6 +21,7 @@ public class TaskInfo { private String ModifierName; private boolean TriggerBattle = true; private DynamicFloat LifeTime; + private boolean IsClientOnly = false; private List OnAttack; private List OnBattle; @@ -31,6 +32,10 @@ public class TaskInfo { public String getType() { return this.$type; } + + public boolean IsClientOnly() { + return this.IsClientOnly; + } public int getLifeTime() { if (this.LifeTime == null) { diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java deleted file mode 100644 index db03b4f..0000000 --- a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueBaseConfigInfo.java +++ /dev/null @@ -1,19 +0,0 @@ -package emu.lunarcore.data.config.rogue; - -import lombok.Getter; -import lombok.Setter; - -import javax.annotation.Nullable; - -/** - * Original Name: RogueDialogueBaseConfig - */ -@Getter -public class RogueDialogueBaseConfigInfo { - public String OptionPath; - public String DialoguePath; - - @Nullable - @Setter - public RogueDialogueEventConfigInfo OptionInfo; -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java deleted file mode 100644 index 3d794b8..0000000 --- a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventConfigInfo.java +++ /dev/null @@ -1,14 +0,0 @@ -package emu.lunarcore.data.config.rogue; - -import lombok.Getter; - -import java.util.ArrayList; -import java.util.List; - -/** - * Original Name: RogueDialogueEventConfig - */ -@Getter -public class RogueDialogueEventConfigInfo { - public List OptionList = new ArrayList<>(); -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java deleted file mode 100644 index 72d29d2..0000000 --- a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionConfigInfo.java +++ /dev/null @@ -1,22 +0,0 @@ -package emu.lunarcore.data.config.rogue; - -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -import lombok.Getter; - -import java.util.Map; - -/** - * Original Name: RogueDialogueEventOptionConfig - */ -@Getter -public class RogueDialogueEventOptionConfigInfo { - - public int OptionID; - public int DisplayID; - public int SpecialOptionID; - public Map DynamicMap = new Int2ObjectOpenHashMap(); - public int DescValue; - public int DescValue2; - public int DescValue3; - public int DescValue4; -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java deleted file mode 100644 index 2e799ab..0000000 --- a/src/main/java/emu/lunarcore/data/config/rogue/RogueDialogueEventOptionDynamicConfigInfo.java +++ /dev/null @@ -1,9 +0,0 @@ -package emu.lunarcore.data.config.rogue; - -/** - * Original Name: RogueDialogueEventOptionDynamicConfig - */ -public class RogueDialogueEventOptionDynamicConfigInfo { - public int DisplayID; - public int DisplayID2; -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java deleted file mode 100644 index 6d69cea..0000000 --- a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCConfigInfo.java +++ /dev/null @@ -1,13 +0,0 @@ -package emu.lunarcore.data.config.rogue; - -import emu.lunarcore.game.enums.RogueDialogueType; -import lombok.Getter; - -import java.util.ArrayList; -import java.util.List; - -@Getter -public class RogueNPCConfigInfo { - public RogueDialogueType DialogueType; - public List DialogueList = new ArrayList<>(); -} diff --git a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java b/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java deleted file mode 100644 index 6efde72..0000000 --- a/src/main/java/emu/lunarcore/data/config/rogue/RogueNPCDialogueConfigInfo.java +++ /dev/null @@ -1,7 +0,0 @@ -package emu.lunarcore.data.config.rogue; - -public class RogueNPCDialogueConfigInfo extends RogueDialogueBaseConfigInfo { - public int DialogueProgress; - public int UnlockID; - public int TalkNameID; -} diff --git a/src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java b/src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java deleted file mode 100644 index c0fb1fa..0000000 --- a/src/main/java/emu/lunarcore/data/custom/ActivityScheduleData.java +++ /dev/null @@ -1,11 +0,0 @@ -package emu.lunarcore.data.custom; - -import lombok.Getter; - -@Getter -public class ActivityScheduleData { - private int activityId; - private long beginTime; - private long endTime; - private int moduleId; -} diff --git a/src/main/java/emu/lunarcore/data/excel/ActivityPanelExcel.java b/src/main/java/emu/lunarcore/data/excel/ActivityPanelExcel.java index 86d6ddc..1fd71b6 100644 --- a/src/main/java/emu/lunarcore/data/excel/ActivityPanelExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ActivityPanelExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarDemoExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarDemoExcel.java new file mode 100644 index 0000000..4cff623 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/AvatarDemoExcel.java @@ -0,0 +1,50 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.common.ExcelMonsterParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.ints.IntArrayList; +import lombok.Getter; + +@Getter +@ResourceType(name = {"AvatarDemoConfig.json"}) +public class AvatarDemoExcel extends GameResource { + private int StageID; + private int AvatarID; + private IntArrayList TrialAvatarList; + + private int RewardID; + private int RaidID; + private int MapEntranceID; + + private int MazeGroupID1; + private int[] ConfigList1; + private int[] NpcMonsterIDList1; + private int[] EventIDList1; + + private transient Int2ObjectMap monsters; + + @Override + public int getId() { + return StageID; + } + + @Override + public void onLoad() { + // Cache challenge monsters + this.monsters = new Int2ObjectOpenHashMap<>(); + for (int i = 0; i < ConfigList1.length; i++) { + if (ConfigList1[i] == 0) break; + + var monster = new ExcelMonsterParam(ConfigList1[i], NpcMonsterIDList1[i], EventIDList1[i]); + this.monsters.put(monster.getConfigId(), monster); + } + + // Clear arrays to save memory + this.ConfigList1 = null; + this.NpcMonsterIDList1 = null; + this.EventIDList1 = null; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarEnhanceExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarEnhanceExcel.java new file mode 100644 index 0000000..9ad073e --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/AvatarEnhanceExcel.java @@ -0,0 +1,27 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"AvatarConfigEnhanced.json"}) +public class AvatarEnhanceExcel extends MultiKeyGameResource { + private int AvatarID; + private int EnhancedID; + + @Override + public int getPrimaryKey() { + return AvatarID; + } + + @Override + public int getSecondaryKey() { + return EnhancedID; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarExcel.java index 8da1753..f53f4b9 100644 --- a/src/main/java/emu/lunarcore/data/excel/AvatarExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/AvatarExcel.java @@ -1,24 +1,24 @@ package emu.lunarcore.data.excel; -import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.battle.skills.MazeSkill; import emu.lunarcore.game.enums.AvatarBaseType; import emu.lunarcore.game.enums.DamageType; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import it.unimi.dsi.fastutil.ints.IntSet; +import it.unimi.dsi.fastutil.objects.ObjectArrayList; import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; @Getter -@ResourceType(name = {"AvatarConfig.json"}) +@ResourceType(name = {"AvatarConfig.json", "AvatarConfigLD.json"}) public class AvatarExcel extends GameResource { private int AvatarID; private long AvatarName; @@ -45,7 +45,7 @@ public class AvatarExcel extends GameResource { private static Pattern namePattern = Pattern.compile("(?<=Avatar_)(.*?)(?=_Config)"); public AvatarExcel() { - this.defaultSkillTrees = new ArrayList<>(); + this.defaultSkillTrees = new ObjectArrayList<>(); this.skillTreeIds = new IntOpenHashSet(); } @@ -53,7 +53,7 @@ public class AvatarExcel extends GameResource { public int getId() { return AvatarID; } - + public int getRankUpItemId() { // Hacky fix so we dont have to fetch data from an excel return this.AvatarID + 10000; @@ -67,13 +67,22 @@ public class AvatarExcel extends GameResource { return RankIDList[Math.min(rank, RankIDList.length - 1)]; } + public boolean isMultiPathAvatar() { + var excel = GameData.getMultiplePathAvatarExcelMap().get(AvatarID); + if (excel == null) { + return false; + } + + return excel.getAvatarID() != excel.getBaseAvatarID(); + } + @Override public void onLoad() { // Load promotion data this.promotionData = new AvatarPromotionExcel[MaxPromotion + 1]; for (int i = 0; i <= MaxPromotion; i++) { - this.promotionData[i] = GameData.getAvatarPromotionExcel(getId(), i); + this.promotionData[i] = GameData.getAvatarPromotionExcelMap().get(getId(), i); } // Get name key diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarExpItemExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarExpItemExcel.java index 388f2eb..300a9de 100644 --- a/src/main/java/emu/lunarcore/data/excel/AvatarExpItemExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/AvatarExpItemExcel.java @@ -4,9 +4,9 @@ import java.util.Comparator; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarGlobalBuffExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarGlobalBuffExcel.java new file mode 100644 index 0000000..9035f5e --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/AvatarGlobalBuffExcel.java @@ -0,0 +1,23 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; + +import lombok.Getter; + +@Getter +@ResourceType(name = "AvatarGlobalBuffConfig.json") +public class AvatarGlobalBuffExcel extends GameResource { + private int AvatarID; + private int MazeBuffID; + + @Override + public int getId() { + return AvatarID; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarPromotionExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarPromotionExcel.java index 41271e6..5ae7386 100644 --- a/src/main/java/emu/lunarcore/data/excel/AvatarPromotionExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/AvatarPromotionExcel.java @@ -2,15 +2,15 @@ package emu.lunarcore.data.excel; import java.util.List; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter -@ResourceType(name = {"AvatarPromotionConfig.json"}, loadPriority = LoadPriority.HIGHEST) -public class AvatarPromotionExcel extends GameResource { +@ResourceType(name = {"AvatarPromotionConfig.json", "AvatarPromotionConfigLD.json"}, loadPriority = LoadPriority.HIGHEST) +public class AvatarPromotionExcel extends MultiKeyGameResource { private int AvatarID; private int Promotion; @@ -20,7 +20,12 @@ public class AvatarPromotionExcel extends GameResource { private List PromotionCostList; @Override - public int getId() { - return (AvatarID << 8) + Promotion; + public int getPrimaryKey() { + return AvatarID; + } + + @Override + public int getSecondaryKey() { + return Promotion; } } diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarRankExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarRankExcel.java index bba4254..592fab8 100644 --- a/src/main/java/emu/lunarcore/data/excel/AvatarRankExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/AvatarRankExcel.java @@ -2,15 +2,15 @@ package emu.lunarcore.data.excel; import java.util.List; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; import lombok.Getter; @Getter -@ResourceType(name = {"AvatarRankConfig.json"}, loadPriority = LoadPriority.HIGHEST) +@ResourceType(name = {"AvatarRankConfig.json", "AvatarRankConfigLD.json"}, loadPriority = LoadPriority.HIGHEST) public class AvatarRankExcel extends GameResource { private int RankID; private int Rank; diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarRelicRecommendExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarRelicRecommendExcel.java new file mode 100644 index 0000000..dd0ffc8 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/AvatarRelicRecommendExcel.java @@ -0,0 +1,53 @@ +package emu.lunarcore.data.excel; + +import java.util.Set; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; +import emu.lunarcore.game.enums.AvatarPropertyType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"AvatarRelicRecommend.json", "AvatarRelicRecommendLD.json"}, loadPriority = LoadPriority.LOW) +public class AvatarRelicRecommendExcel extends GameResource { + private int AvatarID; + private int[] Set4IDList; + private int[] Set2IDList; + + private AvatarPropertyType[] PropertyList3; + private AvatarPropertyType[] PropertyList4; + private AvatarPropertyType[] PropertyList5; + private AvatarPropertyType[] PropertyList6; + + private Set SubAffixPropertyList; + + @Override + public int getId() { + return AvatarID; + } + + public int getMainSetId() { + return this.Set4IDList[0]; + } + + public int getPlanarSetId() { + return this.Set2IDList[0]; + } + + public AvatarPropertyType getProp3() { + return this.PropertyList3[0]; + } + + public AvatarPropertyType getProp4() { + return this.PropertyList4[0]; + } + + public AvatarPropertyType getProp5() { + return this.PropertyList5[0]; + } + + public AvatarPropertyType getProp6() { + return this.PropertyList6[0]; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarSkillTreeExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarSkillTreeExcel.java index a0e7982..a1d1629 100644 --- a/src/main/java/emu/lunarcore/data/excel/AvatarSkillTreeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/AvatarSkillTreeExcel.java @@ -3,19 +3,23 @@ package emu.lunarcore.data.excel; import java.util.List; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.GameDepot; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; +import emu.lunarcore.game.avatar.AvatarSkillTreeAnchorType; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; @Getter -@ResourceType(name = {"AvatarSkillTreeConfig.json"}, loadPriority = LoadPriority.LOW) -public class AvatarSkillTreeExcel extends GameResource { +@ResourceType(name = {"AvatarSkillTreeConfig.json", "AvatarSkillTreeConfigLD.json"}, loadPriority = LoadPriority.LOW) +public class AvatarSkillTreeExcel extends MultiKeyGameResource { private int PointID; private int Level; private int MaxLevel; + private int EnhancedID; + private String AnchorType; private boolean DefaultUnlock; private int AvatarID; @@ -25,14 +29,29 @@ public class AvatarSkillTreeExcel extends GameResource { private List MaterialList; private IntArrayList PrePoint; private IntArrayList LevelUpSkillID; + + private transient int anchorId; @Override - public int getId() { - return (PointID << 4) + Level; + public int getPrimaryKey() { + return PointID; + } + + @Override + public int getSecondaryKey() { + return Level; } @Override public void onLoad() { + // Cache anchor id + this.anchorId = AvatarSkillTreeAnchorType.getValue(this.getAnchorType()); + + if (this.anchorId > 0) { + long key = ((long) this.getAvatarID() << 48) + ((long) this.getEnhancedID() << 32) + ((long) this.getAnchorId() << 16) + (long) this.getLevel(); + GameDepot.getAvatarSkillTreeExcels().put(key, this); + } + // Load to excel AvatarExcel excel = GameData.getAvatarExcelMap().get(this.AvatarID); if (excel == null) return; @@ -42,7 +61,7 @@ public class AvatarSkillTreeExcel extends GameResource { excel.getDefaultSkillTrees().add(this); } - // Add point id to avatar excel + // Cache to avatar excel excel.getSkillTreeIds().add(this.getPointID()); } } diff --git a/src/main/java/emu/lunarcore/data/excel/AvatarSkinExcel.java b/src/main/java/emu/lunarcore/data/excel/AvatarSkinExcel.java new file mode 100644 index 0000000..09c7ce4 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/AvatarSkinExcel.java @@ -0,0 +1,17 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"AvatarSkin.json"}) +public class AvatarSkinExcel extends GameResource { + private int ID; + private int AvatarID; + + @Override + public int getId() { + return ID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/BackGroundMusicExcel.java b/src/main/java/emu/lunarcore/data/excel/BackGroundMusicExcel.java index 17da46f..43247f1 100644 --- a/src/main/java/emu/lunarcore/data/excel/BackGroundMusicExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/BackGroundMusicExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/BattleEventDataExcel.java b/src/main/java/emu/lunarcore/data/excel/BattleEventDataExcel.java index f96658a..64328a6 100644 --- a/src/main/java/emu/lunarcore/data/excel/BattleEventDataExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/BattleEventDataExcel.java @@ -1,12 +1,7 @@ package emu.lunarcore.data.excel; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.game.rogue.RogueBuffType; -import emu.lunarcore.util.Utils; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter @@ -15,28 +10,9 @@ public class BattleEventDataExcel extends GameResource { private int BattleEventID; private String Config; - private static final Pattern roguePattern = Pattern.compile("(?<=Avatar_RogueBattleevent)(.*?)(?=_Config.json)"); - @Override public int getId() { return BattleEventID; } - @Override - public void onLoad() { - try { - Matcher matcher = roguePattern.matcher(this.Config); - - if (matcher.find()) { - int rogueBuffType = Utils.parseSafeInt(matcher.group(0)); - var type = RogueBuffType.getById(rogueBuffType); - - if (type != null) { - type.setBattleEventSkill(this.BattleEventID); - } - } - } catch (Exception e) { - // Ignored - } - } } diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengeBossExtraExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengeBossExtraExcel.java index 6a8e089..4995614 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChallengeBossExtraExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChallengeBossExtraExcel.java @@ -1,9 +1,9 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengeExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengeExcel.java index 8c1baf5..640f7d9 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChallengeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChallengeExcel.java @@ -1,7 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.common.ExcelMonsterParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.challenge.ChallengeType; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; @@ -29,18 +30,18 @@ public class ChallengeExcel extends GameResource { private int[] NpcMonsterIDList2; private int[] EventIDList2; - private transient Int2ObjectMap challengeMonsters1; - private transient Int2ObjectMap challengeMonsters2; - + private transient Int2ObjectMap challengeMonsters1; + private transient Int2ObjectMap challengeMonsters2; + private transient ChallengeType type = ChallengeType.MEMORY; private transient ChallengeStoryExtraExcel storyExcel; private transient ChallengeBossExtraExcel bossExcel; - + @Override public int getId() { return ID; } - + public boolean isStory() { return this.storyExcel != null; } @@ -50,7 +51,7 @@ public class ChallengeExcel extends GameResource { this.storyExcel = excel; this.ChallengeCountDown = storyExcel.getTurnLimit(); } - + public void setBossExcel(ChallengeBossExtraExcel excel) { this.type = ChallengeType.BOSS; this.bossExcel = excel; @@ -64,7 +65,7 @@ public class ChallengeExcel extends GameResource { for (int i = 0; i < ConfigList1.length; i++) { if (ConfigList1[i] == 0) break; - var monster = new ChallengeMonsterInfo(ConfigList1[i], NpcMonsterIDList1[i], EventIDList1[i]); + var monster = new ExcelMonsterParam(ConfigList1[i], NpcMonsterIDList1[i], EventIDList1[i]); this.challengeMonsters1.put(monster.getConfigId(), monster); } @@ -72,10 +73,10 @@ public class ChallengeExcel extends GameResource { for (int i = 0; i < ConfigList2.length; i++) { if (ConfigList2[i] == 0) break; - var monster = new ChallengeMonsterInfo(ConfigList2[i], NpcMonsterIDList2[i], EventIDList2[i]); + var monster = new ExcelMonsterParam(ConfigList2[i], NpcMonsterIDList2[i], EventIDList2[i]); this.challengeMonsters2.put(monster.getConfigId(), monster); } - + // Clear arrays to save memory this.ConfigList1 = null; this.NpcMonsterIDList1 = null; @@ -84,18 +85,4 @@ public class ChallengeExcel extends GameResource { this.NpcMonsterIDList2 = null; this.EventIDList2 = null; } - - @Getter - public static class ChallengeMonsterInfo { - private int configId; - private int npcMonsterId; - private int eventId; - - public ChallengeMonsterInfo(int configId, int npcMonsterId, int eventId) { - this.configId = configId; - this.npcMonsterId = npcMonsterId; - this.eventId = eventId; - } - - } } diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengeGroupExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengeGroupExcel.java index 3fb1611..67cb149 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChallengeGroupExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChallengeGroupExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengePeakExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengePeakExcel.java new file mode 100644 index 0000000..6ff1e60 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/ChallengePeakExcel.java @@ -0,0 +1,17 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"ChallengePeakConfig.json"}) +public class ChallengePeakExcel extends GameResource { + private int ID; + private int[] EventIDList; + + @Override + public int getId() { + return ID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengePeakGroupExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengePeakGroupExcel.java new file mode 100644 index 0000000..5af44b9 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/ChallengePeakGroupExcel.java @@ -0,0 +1,19 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"ChallengePeakGroupConfig.json"}) +public class ChallengePeakGroupExcel extends GameResource { + private int ID; + private int[] PreLevelIDList; + private int BossLevelID; + private int RewardGroupID; + + @Override + public int getId() { + return ID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengeRewardExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengeRewardExcel.java index a0d5760..cc0ab68 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChallengeRewardExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChallengeRewardExcel.java @@ -3,9 +3,9 @@ package emu.lunarcore.data.excel; import java.util.ArrayList; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter @@ -19,10 +19,10 @@ public class ChallengeRewardExcel extends GameResource { public int getId() { return (GroupID << 16) + StarCount; } - + @Override public void onLoad() { - var rewardLine = GameDepot.getChallengeRewardLines().computeIfAbsent(GroupID, id -> new ArrayList<>()); + var rewardLine = GameDepot.getChallengeRewardLines().computeIfAbsent(GroupID, x -> new ArrayList<>()); rewardLine.add(this); } } diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengeStoryExtraExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengeStoryExtraExcel.java index 4869537..cd67fdd 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChallengeStoryExtraExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChallengeStoryExtraExcel.java @@ -1,9 +1,9 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/ChallengeTargetExcel.java b/src/main/java/emu/lunarcore/data/excel/ChallengeTargetExcel.java index 09caf6a..d07ea52 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChallengeTargetExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChallengeTargetExcel.java @@ -1,12 +1,12 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter -@ResourceType(name = {"ChallengeTargetConfig.json", "ChallengeStoryTargetConfig.json"}, loadPriority = LoadPriority.HIGH) +@ResourceType(name = {"ChallengeTargetConfig.json", "ChallengeStoryTargetConfig.json", "ChallengeBossTargetConfig.json"}, loadPriority = LoadPriority.HIGH) public class ChallengeTargetExcel extends GameResource { private int ID; private ChallengeType ChallengeTargetType; diff --git a/src/main/java/emu/lunarcore/data/excel/ChatBubbleExcel.java b/src/main/java/emu/lunarcore/data/excel/ChatBubbleExcel.java index 1e1d587..ac6c629 100644 --- a/src/main/java/emu/lunarcore/data/excel/ChatBubbleExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ChatBubbleExcel.java @@ -1,8 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.enums.PersonalizeShowType; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/CocoonExcel.java b/src/main/java/emu/lunarcore/data/excel/CocoonExcel.java index 3b7c5b3..8133648 100644 --- a/src/main/java/emu/lunarcore/data/excel/CocoonExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/CocoonExcel.java @@ -1,28 +1,33 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; @Getter @ResourceType(name = {"CocoonConfig.json"}) -public class CocoonExcel extends GameResource { +public class CocoonExcel extends MultiKeyGameResource { private int ID; private int MappingInfoID; private int WorldLevel; private int PropID; private int StaminaCost; - private int MaxWave; + private int MaxChallengeCnt; private IntArrayList StageIDList; private IntArrayList DropList; @Override - public int getId() { - return (ID << 8) + WorldLevel; + public int getPrimaryKey() { + return ID; } - + + @Override + public int getSecondaryKey() { + return WorldLevel; + } + public int getCocoonId() { return ID; } diff --git a/src/main/java/emu/lunarcore/data/excel/ContentPackageExcel.java b/src/main/java/emu/lunarcore/data/excel/ContentPackageExcel.java index d19a5bc..bec73a4 100644 --- a/src/main/java/emu/lunarcore/data/excel/ContentPackageExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ContentPackageExcel.java @@ -1,14 +1,14 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter @ResourceType(name = {"ContentPackageConfig.json"}) public class ContentPackageExcel extends GameResource { private int ContentID; - + @Override public int getId() { return ContentID; diff --git a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java b/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java deleted file mode 100644 index 8308002..0000000 --- a/src/main/java/emu/lunarcore/data/excel/DialogueEventExcel.java +++ /dev/null @@ -1,32 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.game.enums.DialogueEventCostType; -import emu.lunarcore.game.enums.DialogueEventType; -import emu.lunarcore.game.rogue.RogueBuffType; -import it.unimi.dsi.fastutil.ints.IntArrayList; -import lombok.Getter; - -@Getter -@ResourceType(name = {"DialogueEvent.json"}) -public class DialogueEventExcel extends GameResource { - public int EventID; - public DialogueEventType RogueEffectType; - public IntArrayList RogueEffectParamList; - public DialogueEventCostType CostType; - public IntArrayList CostParamList; - public IntArrayList ConditionIDList; - public RogueBuffType AeonOption; - - @Override - public int getId() { - return EventID; - } - - @Override - public void onLoad() { - GameData.getRogueDialogueEventList().put(EventID, this); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/EquipmentExcel.java b/src/main/java/emu/lunarcore/data/excel/EquipmentExcel.java index b59a99d..6f4e127 100644 --- a/src/main/java/emu/lunarcore/data/excel/EquipmentExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/EquipmentExcel.java @@ -1,9 +1,9 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.inventory.GameItem; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/EquipmentExpItemExcel.java b/src/main/java/emu/lunarcore/data/excel/EquipmentExpItemExcel.java index e5254ed..035f26d 100644 --- a/src/main/java/emu/lunarcore/data/excel/EquipmentExpItemExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/EquipmentExpItemExcel.java @@ -4,9 +4,9 @@ import java.util.Comparator; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/EquipmentExpTypeExcel.java b/src/main/java/emu/lunarcore/data/excel/EquipmentExpTypeExcel.java index 8a3af7b..3fb9f2f 100644 --- a/src/main/java/emu/lunarcore/data/excel/EquipmentExpTypeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/EquipmentExpTypeExcel.java @@ -2,22 +2,27 @@ package emu.lunarcore.data.excel; import com.google.gson.annotations.SerializedName; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter @ResourceType(name = {"EquipmentExpType.json"}, loadPriority = LoadPriority.NORMAL) -public class EquipmentExpTypeExcel extends GameResource { +public class EquipmentExpTypeExcel extends MultiKeyGameResource { @SerializedName(value = "id", alternate = {"ExpType"}) private int TypeID; private int Level; private int Exp; @Override - public int getId() { - return (TypeID << 16) + Level; + public int getPrimaryKey() { + return TypeID; + } + + @Override + public int getSecondaryKey() { + return Level; } @Override diff --git a/src/main/java/emu/lunarcore/data/excel/EquipmentPromotionExcel.java b/src/main/java/emu/lunarcore/data/excel/EquipmentPromotionExcel.java index a47f008..7ea85ff 100644 --- a/src/main/java/emu/lunarcore/data/excel/EquipmentPromotionExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/EquipmentPromotionExcel.java @@ -4,15 +4,15 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter @ResourceType(name = {"EquipmentPromotionConfig.json"}, loadPriority = LoadPriority.HIGHEST) -public class EquipmentPromotionExcel extends GameResource { +public class EquipmentPromotionExcel extends MultiKeyGameResource { private int EquipmentID; private int Promotion; @@ -30,8 +30,13 @@ public class EquipmentPromotionExcel extends GameResource { private double HPAdd; @Override - public int getId() { - return (EquipmentID << 8) + Promotion; + public int getPrimaryKey() { + return EquipmentID; + } + + @Override + public int getSecondaryKey() { + return Promotion; } @Override diff --git a/src/main/java/emu/lunarcore/data/excel/ExpTypeExcel.java b/src/main/java/emu/lunarcore/data/excel/ExpTypeExcel.java index e15591e..c4bffcb 100644 --- a/src/main/java/emu/lunarcore/data/excel/ExpTypeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ExpTypeExcel.java @@ -1,20 +1,25 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter @ResourceType(name = {"ExpType.json"}, loadPriority = LoadPriority.NORMAL) -public class ExpTypeExcel extends GameResource { +public class ExpTypeExcel extends MultiKeyGameResource { private int TypeID; private int Level; private int Exp; @Override - public int getId() { - return (TypeID << 16) + Level; + public int getPrimaryKey() { + return TypeID; + } + + @Override + public int getSecondaryKey() { + return Level; } @Override diff --git a/src/main/java/emu/lunarcore/data/excel/ExpeditionExcel.java b/src/main/java/emu/lunarcore/data/excel/ExpeditionExcel.java new file mode 100644 index 0000000..5a868d4 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/ExpeditionExcel.java @@ -0,0 +1,23 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"ExpeditionData.json"}) +public class ExpeditionExcel extends GameResource { + private int[] AssignerIDList; + private int ExpeditionID; + private int GroupID; + + @Override + public int getId() { + return ExpeditionID; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/FarmElementExcel.java b/src/main/java/emu/lunarcore/data/excel/FarmElementExcel.java new file mode 100644 index 0000000..eeb5090 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/FarmElementExcel.java @@ -0,0 +1,29 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"FarmElementConfig.json"}) +public class FarmElementExcel extends MultiKeyGameResource { + private int ID; + private int WorldLevel; + private int StaminaCost; + private int StageID; + + @Override + public int getPrimaryKey() { + return ID; + } + + @Override + public int getSecondaryKey() { + return WorldLevel; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/InteractExcel.java b/src/main/java/emu/lunarcore/data/excel/InteractExcel.java index 19970ad..3948cfd 100644 --- a/src/main/java/emu/lunarcore/data/excel/InteractExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/InteractExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.enums.PropState; import lombok.Getter; @@ -9,7 +9,7 @@ import lombok.Getter; @ResourceType(name = {"InteractConfig.json"}) public class InteractExcel extends GameResource { private int InteractID; - private PropState SrcState; + private PropState SrcState = PropState.Closed; private PropState TargetState = PropState.Closed; @Override @@ -20,6 +20,9 @@ public class InteractExcel extends GameResource { @Override public void onLoad() { // Just in case we forget to update the prop state enum + if (this.SrcState == null) { + this.SrcState = PropState.Closed; + } if (this.TargetState == null) { this.TargetState = PropState.Closed; } diff --git a/src/main/java/emu/lunarcore/data/excel/ItemComposeExcel.java b/src/main/java/emu/lunarcore/data/excel/ItemComposeExcel.java index b42c292..d515d52 100644 --- a/src/main/java/emu/lunarcore/data/excel/ItemComposeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ItemComposeExcel.java @@ -2,9 +2,9 @@ package emu.lunarcore.data.excel; import java.util.List; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/ItemExcel.java b/src/main/java/emu/lunarcore/data/excel/ItemExcel.java index 6a5cfa8..b72b20e 100644 --- a/src/main/java/emu/lunarcore/data/excel/ItemExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ItemExcel.java @@ -2,9 +2,9 @@ package emu.lunarcore.data.excel; import java.util.List; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.enums.ItemMainType; import emu.lunarcore.game.enums.ItemRarity; import emu.lunarcore.game.enums.ItemSubType; @@ -13,8 +13,9 @@ import lombok.Getter; import lombok.Setter; @Getter -@ResourceType(name = {"ItemConfig.json", "ItemConfigAvatar.json", "ItemConfigAvatarPlayerIcon.json", "ItemConfigAvatarRank.json", - "ItemConfigBook.json", "ItemConfigDisk.json", "ItemConfigEquipment.json", "ItemConfigRelic.json", "ItemPlayerCard.json"}) +@ResourceType(name = {"ItemConfig.json", "ItemConfigAvatar.json", "ItemConfigAvatarLD.json", "ItemConfigAvatarPlayerIcon.json", + "ItemConfigAvatarPlayerIcLD.json", "ItemConfigAvatarRank.json", "ItemConfigAvatarRankLD.json", "ItemConfigBook.json", + "ItemConfigDisk.json", "ItemConfigEquipment.json", "ItemConfigRelic.json", "ItemPlayerCard.json"}) public class ItemExcel extends GameResource { // General item data private int ID; @@ -24,7 +25,7 @@ public class ItemExcel extends GameResource { private ItemRarity Rarity; private int PileLimit; private int PurposeType; - + private int UseDataID; private ItemUseMethod UseMethod; @@ -59,7 +60,7 @@ public class ItemExcel extends GameResource { public boolean isEquippable() { return ItemMainType == emu.lunarcore.game.enums.ItemMainType.Relic || ItemMainType == emu.lunarcore.game.enums.ItemMainType.Equipment; } - + public int getRarityNum() { return this.getRarity().getVal(); } @@ -70,7 +71,7 @@ public class ItemExcel extends GameResource { } return this.relicExp; } - + public int getRelicExpCost() { if (this.relicExcel != null) { return this.relicExcel.getCoinCost(); diff --git a/src/main/java/emu/lunarcore/data/excel/ItemUseExcel.java b/src/main/java/emu/lunarcore/data/excel/ItemUseExcel.java index 9809b63..7b5ac44 100644 --- a/src/main/java/emu/lunarcore/data/excel/ItemUseExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ItemUseExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.enums.ItemFoodTargetType; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; @@ -13,12 +13,12 @@ public class ItemUseExcel extends GameResource { private int ConsumeType; private int MazeBuffID; private int ActivityCount; - + private double PreviewHPRecoveryPercent; private int PreviewHPRecoveryValue; private double PreviewPowerPercent; private int PreviewSkillPoint; - + private ItemFoodTargetType UseTargetType; private IntArrayList UseParam; diff --git a/src/main/java/emu/lunarcore/data/excel/MainMissionExcel.java b/src/main/java/emu/lunarcore/data/excel/MainMissionExcel.java new file mode 100644 index 0000000..3c6dbcf --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/MainMissionExcel.java @@ -0,0 +1,19 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"MainMission.json"}) +public class MainMissionExcel extends GameResource { + private int MainMissionID; + private int RewardID; + private int NextTrackMainMission; + private String Type; + + @Override + public int getId() { + return MainMissionID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/MapEntranceExcel.java b/src/main/java/emu/lunarcore/data/excel/MapEntranceExcel.java index cb08e83..eac3871 100644 --- a/src/main/java/emu/lunarcore/data/excel/MapEntranceExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MapEntranceExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.util.Utils; import lombok.Getter; @@ -13,7 +13,7 @@ public class MapEntranceExcel extends GameResource { private int FloorID; private int StartGroupID; private int StartAnchorID; - + private int[] FinishMainMissionList = Utils.EMPTY_INT_ARRAY; private int[] FinishSubMissionList = Utils.EMPTY_INT_ARRAY; diff --git a/src/main/java/emu/lunarcore/data/excel/MappingInfoExcel.java b/src/main/java/emu/lunarcore/data/excel/MappingInfoExcel.java index 70e21bf..575d454 100644 --- a/src/main/java/emu/lunarcore/data/excel/MappingInfoExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MappingInfoExcel.java @@ -5,10 +5,10 @@ import java.util.List; import emu.lunarcore.GameConstants; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.drops.DropParam; import emu.lunarcore.game.enums.ItemMainType; import emu.lunarcore.game.enums.ItemSubType; @@ -20,20 +20,25 @@ import lombok.Getter; @Getter @ResourceType(name = {"MappingInfo.json"}, loadPriority = LoadPriority.LOW) -public class MappingInfoExcel extends GameResource { +public class MappingInfoExcel extends MultiKeyGameResource { private int ID; private int WorldLevel; private String FarmType; // is enum - + @Getter(AccessLevel.PRIVATE) private List DisplayItemList; - + // Temp solution for handling drop tables private transient List dropList; - + @Override - public int getId() { - return (ID << 8) + WorldLevel; + public int getPrimaryKey() { + return ID; + } + + @Override + public int getSecondaryKey() { + return WorldLevel; } @Override @@ -43,19 +48,19 @@ public class MappingInfoExcel extends GameResource { this.dropList = new ArrayList<>(0); return; } - + this.dropList = new ArrayList<>(DisplayItemList.size()); - + var equipmentDrops = new IntArrayList(); var relicDrops = new Int2ObjectOpenHashMap(); - + for (var itemParam : this.getDisplayItemList()) { // Add item param if the amount is already set in the excel if (itemParam.getCount() > 0) { dropList.add(new DropParam(itemParam.getId(), itemParam.getCount())); continue; } - + // Multiplier. TODO drop rate is not correct int multiplier = 1; if (FarmType == null) { @@ -67,7 +72,7 @@ public class MappingInfoExcel extends GameResource { } else if (FarmType.equals("ELEMENT")) { multiplier = 3; } - + // Random credits if (itemParam.getId() == GameConstants.MATERIAL_COIN_ID) { // TODO drop rate is not correct @@ -77,27 +82,27 @@ public class MappingInfoExcel extends GameResource { dropList.add(drop); continue; } - + // Get item excel ItemExcel itemExcel = GameData.getItemExcelMap().get(itemParam.getId()); if (itemExcel == null) continue; - + // Hacky way of calculating drops if (itemExcel.getItemSubType() == ItemSubType.RelicSetShowOnly) { // Get relic base id from relic display id int baseRelicId = (itemParam.getId() / 10) % 1000; int baseRarity = itemParam.getId() % 10; - + // Add relics from the set int relicStart = 20001 + (baseRarity * 10000) + (baseRelicId * 10); int relicEnd = relicStart + 3; for (;relicStart <= relicEnd; relicStart++) { ItemExcel relicExcel = GameData.getItemExcelMap().get(relicStart); if (relicExcel == null) break; - + relicDrops - .computeIfAbsent(baseRarity, r -> new IntArrayList()) - .add(relicStart); + .computeIfAbsent(baseRarity, x -> new IntArrayList()) + .add(relicStart); } } else if (itemExcel.getItemMainType() == ItemMainType.Material) { // Calculate amount to drop by purpose level @@ -110,7 +115,7 @@ public class MappingInfoExcel extends GameResource { case Rare -> getWorldLevel() < 3 ? getWorldLevel() + 3 : (getWorldLevel() * 2) - 3; default -> 1; }; - + yield new DropParam(itemParam.getId(), amount); } // Boss materials @@ -118,7 +123,7 @@ public class MappingInfoExcel extends GameResource { // Trace materials. Drop rate is guessed (with data) case 3 -> { var dropInfo = new DropParam(itemParam.getId(), 1); - + switch (itemExcel.getRarity()) { case NotNormal -> { double amount = getWorldLevel() >= 1 && getWorldLevel() <= 3 ? 2.5 : 1.5; @@ -131,10 +136,10 @@ public class MappingInfoExcel extends GameResource { dropInfo.setChance((getWorldLevel() - 3) * 75); } default -> { - + } } - + yield dropInfo; } // Boss Trace materials. Drop rate is guessed (with data) @@ -145,9 +150,9 @@ public class MappingInfoExcel extends GameResource { double amount = switch (itemExcel.getRarity()) { case NotNormal -> Math.max(5 - getWorldLevel(), 2.5); case Rare -> (getWorldLevel() % 3) + 1; - default -> 1; + default -> 1; }; - + yield new DropParam(itemParam.getId(), amount); } // Lucent afterglow @@ -155,7 +160,7 @@ public class MappingInfoExcel extends GameResource { // Unknown default -> null; }; - + // Add to drop list if (drop != null) { dropList.add(drop); @@ -165,7 +170,7 @@ public class MappingInfoExcel extends GameResource { equipmentDrops.add(itemParam.getId()); } } - + // Add equipment drops if (equipmentDrops.size() > 0) { DropParam drop = new DropParam(); @@ -174,26 +179,26 @@ public class MappingInfoExcel extends GameResource { drop.setChance((this.getWorldLevel() * 10) + 40); dropList.add(drop); } - + // Add relic drops if (relicDrops.size() > 0) { for (var entry : relicDrops.int2ObjectEntrySet()) { // Add items to drop param DropParam drop = new DropParam(); drop.getItems().addAll(entry.getValue()); - + // Set count by rarity double amount = switch (entry.getIntKey()) { - case 4: - yield (this.getWorldLevel() * 0.5) - 0.5; - case 3: - yield (this.getWorldLevel() * 0.5) + (this.getWorldLevel() == 2 ? 1.0 : 0); - case 2: - yield (6 - this.getWorldLevel()) + 0.5 - (this.getWorldLevel() == 1 ? 3.75 : 0); - default: - yield this.getWorldLevel() == 1 ? 6 : 2; + case 4: + yield (this.getWorldLevel() * 0.5) - 0.5; + case 3: + yield (this.getWorldLevel() * 0.5) + (this.getWorldLevel() == 2 ? 1.0 : 0); + case 2: + yield (6 - this.getWorldLevel()) + 0.5 - (this.getWorldLevel() == 1 ? 3.75 : 0); + default: + yield this.getWorldLevel() == 1 ? 6 : 2; }; - + // Set amount if (amount > 0) { drop.setCount(amount); @@ -201,7 +206,7 @@ public class MappingInfoExcel extends GameResource { } } } - + // Clear list once were done with it to free some memory this.DisplayItemList = null; } diff --git a/src/main/java/emu/lunarcore/data/excel/MazeBuffExcel.java b/src/main/java/emu/lunarcore/data/excel/MazeBuffExcel.java index 01dd412..dfb1626 100644 --- a/src/main/java/emu/lunarcore/data/excel/MazeBuffExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MazeBuffExcel.java @@ -1,18 +1,23 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter @ResourceType(name = {"MazeBuff.json"}) -public class MazeBuffExcel extends GameResource { +public class MazeBuffExcel extends MultiKeyGameResource { private int ID; private int Lv; @Override - public int getId() { - return (ID << 4) + Lv; + public int getPrimaryKey() { + return ID; + } + + @Override + public int getSecondaryKey() { + return Lv; } public int getBuffId() { diff --git a/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java b/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java index 87f989c..8411e14 100644 --- a/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MazePlaneExcel.java @@ -2,8 +2,8 @@ package emu.lunarcore.data.excel; import com.google.gson.annotations.SerializedName; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.enums.PlaneType; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/MonsterDropExcel.java b/src/main/java/emu/lunarcore/data/excel/MonsterDropExcel.java index ad1a244..2efb2ee 100644 --- a/src/main/java/emu/lunarcore/data/excel/MonsterDropExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MonsterDropExcel.java @@ -5,30 +5,35 @@ import java.util.List; import emu.lunarcore.GameConstants; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.drops.DropParam; import lombok.AccessLevel; import lombok.Getter; @Getter @ResourceType(name = {"MonsterDrop.json"}, loadPriority = LoadPriority.LOW) -public class MonsterDropExcel extends GameResource { +public class MonsterDropExcel extends MultiKeyGameResource { private int MonsterTemplateID; private int WorldLevel; private int AvatarExpReward; @Getter(AccessLevel.PRIVATE) private List DisplayItemList; - + // Temp solution for handling drop tables private transient List dropList; @Override - public int getId() { - return (MonsterTemplateID << 4) + WorldLevel; + public int getPrimaryKey() { + return MonsterTemplateID; + } + + @Override + public int getSecondaryKey() { + return WorldLevel; } @Override @@ -38,26 +43,26 @@ public class MonsterDropExcel extends GameResource { this.dropList = new ArrayList<>(0); return; } - + this.dropList = new ArrayList<>(this.getDisplayItemList().size()); - + for (var itemParam : this.getDisplayItemList()) { // Add item param if the amount is already set in the excel if (itemParam.getCount() > 0) { dropList.add(new DropParam(itemParam.getId(), itemParam.getCount())); continue; } - + // TODO drop rate is not correct if (itemParam.getId() == GameConstants.MATERIAL_COIN_ID) { dropList.add(new DropParam(itemParam.getId(), getAvatarExpReward())); continue; } - + // Get item excel ItemExcel itemExcel = GameData.getItemExcelMap().get(itemParam.getId()); if (itemExcel == null) continue; - + // TODO drop rate is not correct double mod = switch (itemExcel.getRarity()) { case NotNormal -> 0.8; @@ -66,19 +71,19 @@ public class MonsterDropExcel extends GameResource { case SuperRare -> 0; default -> 1.0; }; - + double baseAmount = this.getWorldLevel() + 3; - + // Create drop param var drop = new DropParam(itemParam.getId(), 1); drop.setMaxCount((int) Math.ceil(baseAmount * mod)); drop.setMinCount((int) Math.floor(baseAmount * mod * 0.5)); - + if (drop.getMaxCount() > 0) { dropList.add(drop); } } - + // Clear list once were done with it to free some memory this.DisplayItemList = null; } diff --git a/src/main/java/emu/lunarcore/data/excel/MonsterExcel.java b/src/main/java/emu/lunarcore/data/excel/MonsterExcel.java index 50724c1..90bf6ae 100644 --- a/src/main/java/emu/lunarcore/data/excel/MonsterExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MonsterExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/MultiplePathAvatarExcel.java b/src/main/java/emu/lunarcore/data/excel/MultiplePathAvatarExcel.java index 0506df1..560108b 100644 --- a/src/main/java/emu/lunarcore/data/excel/MultiplePathAvatarExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/MultiplePathAvatarExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.player.PlayerGender; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/NpcExcel.java b/src/main/java/emu/lunarcore/data/excel/NpcExcel.java index e7b7849..074b84a 100644 --- a/src/main/java/emu/lunarcore/data/excel/NpcExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/NpcExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/NpcMonsterExcel.java b/src/main/java/emu/lunarcore/data/excel/NpcMonsterExcel.java index 489fe29..42f9b5e 100644 --- a/src/main/java/emu/lunarcore/data/excel/NpcMonsterExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/NpcMonsterExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.enums.MonsterRank; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/OfferingTypeExcel.java b/src/main/java/emu/lunarcore/data/excel/OfferingTypeExcel.java new file mode 100644 index 0000000..440bcd8 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/OfferingTypeExcel.java @@ -0,0 +1,17 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"OfferingTypeConfig.json"}) +public class OfferingTypeExcel extends GameResource { + private int ID; + private int MaxLevel; + + @Override + public int getId() { + return ID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/PetExcel.java b/src/main/java/emu/lunarcore/data/excel/PetExcel.java index c33c979..883d634 100644 --- a/src/main/java/emu/lunarcore/data/excel/PetExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/PetExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter @@ -10,7 +10,7 @@ public class PetExcel extends GameResource { private int PetID; private int PetItemID; private int SummonUnitID; - + @Override public int getId() { return PetID; diff --git a/src/main/java/emu/lunarcore/data/excel/PhoneThemeExcel.java b/src/main/java/emu/lunarcore/data/excel/PhoneThemeExcel.java index 1f45bfc..6f62bfc 100644 --- a/src/main/java/emu/lunarcore/data/excel/PhoneThemeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/PhoneThemeExcel.java @@ -1,8 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.enums.PersonalizeShowType; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/PlaneEventExcel.java b/src/main/java/emu/lunarcore/data/excel/PlaneEventExcel.java new file mode 100644 index 0000000..df78794 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/PlaneEventExcel.java @@ -0,0 +1,32 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"PlaneEvent.json"}) +public class PlaneEventExcel extends MultiKeyGameResource { + private int EventID; + private int WorldLevel; + private int StageID; + + @Override + public int getPrimaryKey() { + return EventID; + } + + @Override + public int getSecondaryKey() { + return WorldLevel; + } + + public int getEventId() { + return EventID; + } + + public int getStageId() { + return StageID; + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/data/excel/PlayerIconExcel.java b/src/main/java/emu/lunarcore/data/excel/PlayerIconExcel.java index f04fc50..98a0859 100644 --- a/src/main/java/emu/lunarcore/data/excel/PlayerIconExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/PlayerIconExcel.java @@ -1,8 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/PlayerLevelExcel.java b/src/main/java/emu/lunarcore/data/excel/PlayerLevelExcel.java index 056523c..32ea30a 100644 --- a/src/main/java/emu/lunarcore/data/excel/PlayerLevelExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/PlayerLevelExcel.java @@ -1,8 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/PomSkinExcel.java b/src/main/java/emu/lunarcore/data/excel/PomSkinExcel.java new file mode 100644 index 0000000..9f7e834 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/PomSkinExcel.java @@ -0,0 +1,17 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; +import lombok.Getter; + +@Getter +@ResourceType(name = {"PamSkinConfig.json"}, loadPriority = LoadPriority.NORMAL) +public class PomSkinExcel extends GameResource { + private int SkinID; + + @Override + public int getId() { + return SkinID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/PropExcel.java b/src/main/java/emu/lunarcore/data/excel/PropExcel.java index f86af78..275dbf0 100644 --- a/src/main/java/emu/lunarcore/data/excel/PropExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/PropExcel.java @@ -2,8 +2,8 @@ package emu.lunarcore.data.excel; import java.util.Set; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.enums.PropState; import emu.lunarcore.game.enums.PropType; import lombok.Getter; @@ -20,7 +20,8 @@ public class PropExcel extends GameResource { private transient boolean recoverHp; private transient boolean recoverMp; private transient boolean isDoor; - + private transient boolean disabled; + @Override public int getId() { return ID; @@ -36,9 +37,11 @@ public class PropExcel extends GameResource { this.recoverHp = true; } else if (getJsonPath().contains("_Door_")) { this.isDoor = true; + } else if (getJsonPath().contains("TRBall_")) { + this.disabled = true; } } - + // Sanity if (this.PropStateList == null) { this.PropStateList = Set.of(); diff --git a/src/main/java/emu/lunarcore/data/excel/QuestExcel.java b/src/main/java/emu/lunarcore/data/excel/QuestExcel.java index 0c2f50f..ed11c2c 100644 --- a/src/main/java/emu/lunarcore/data/excel/QuestExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/QuestExcel.java @@ -1,14 +1,16 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter @ResourceType(name = {"QuestData.json"}, loadPriority = LoadPriority.NORMAL) public class QuestExcel extends GameResource { private int QuestID; + private int QuestType = 0; + private int RewardID = 0; @Override public int getId() { diff --git a/src/main/java/emu/lunarcore/data/excel/RelicExcel.java b/src/main/java/emu/lunarcore/data/excel/RelicExcel.java index 4cd8a8e..0053a4d 100644 --- a/src/main/java/emu/lunarcore/data/excel/RelicExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RelicExcel.java @@ -1,9 +1,9 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.enums.RelicType; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/RelicExpItemExcel.java b/src/main/java/emu/lunarcore/data/excel/RelicExpItemExcel.java index d30a650..27094f9 100644 --- a/src/main/java/emu/lunarcore/data/excel/RelicExpItemExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RelicExpItemExcel.java @@ -4,9 +4,9 @@ import java.util.Comparator; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.enums.ItemRarity; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/RelicExpTypeExcel.java b/src/main/java/emu/lunarcore/data/excel/RelicExpTypeExcel.java index 03b6322..64f458b 100644 --- a/src/main/java/emu/lunarcore/data/excel/RelicExpTypeExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RelicExpTypeExcel.java @@ -1,20 +1,25 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter @ResourceType(name = {"RelicExpType.json"}, loadPriority = LoadPriority.NORMAL) -public class RelicExpTypeExcel extends GameResource { +public class RelicExpTypeExcel extends MultiKeyGameResource { private int TypeID; private int Level; private int Exp; @Override - public int getId() { - return (TypeID << 16) + Level; + public int getPrimaryKey() { + return TypeID; + } + + @Override + public int getSecondaryKey() { + return Level; } @Override diff --git a/src/main/java/emu/lunarcore/data/excel/RelicMainAffixExcel.java b/src/main/java/emu/lunarcore/data/excel/RelicMainAffixExcel.java index 7ba586d..5cd9347 100644 --- a/src/main/java/emu/lunarcore/data/excel/RelicMainAffixExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RelicMainAffixExcel.java @@ -1,15 +1,15 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.enums.AvatarPropertyType; import lombok.Getter; @Getter @ResourceType(name = {"RelicMainAffixConfig.json"}, loadPriority = LoadPriority.NORMAL) -public class RelicMainAffixExcel extends GameResource { +public class RelicMainAffixExcel extends MultiKeyGameResource { private int GroupID; private int AffixID; private AvatarPropertyType Property; @@ -20,8 +20,13 @@ public class RelicMainAffixExcel extends GameResource { private boolean IsAvailable; @Override - public int getId() { - return (GroupID << 16) + AffixID; + public int getPrimaryKey() { + return GroupID; + } + + @Override + public int getSecondaryKey() { + return AffixID; } @Override diff --git a/src/main/java/emu/lunarcore/data/excel/RelicSetExcel.java b/src/main/java/emu/lunarcore/data/excel/RelicSetExcel.java index bd0677a..90ed62b 100644 --- a/src/main/java/emu/lunarcore/data/excel/RelicSetExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RelicSetExcel.java @@ -1,8 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import lombok.Getter; @Getter diff --git a/src/main/java/emu/lunarcore/data/excel/RelicSubAffixExcel.java b/src/main/java/emu/lunarcore/data/excel/RelicSubAffixExcel.java index 1e2dca9..e93d9a5 100644 --- a/src/main/java/emu/lunarcore/data/excel/RelicSubAffixExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RelicSubAffixExcel.java @@ -1,15 +1,15 @@ package emu.lunarcore.data.excel; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; +import emu.lunarcore.data.resource.MultiKeyGameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.game.enums.AvatarPropertyType; import lombok.Getter; @Getter @ResourceType(name = {"RelicSubAffixConfig.json"}, loadPriority = LoadPriority.NORMAL) -public class RelicSubAffixExcel extends GameResource { +public class RelicSubAffixExcel extends MultiKeyGameResource { private int GroupID; private int AffixID; private AvatarPropertyType Property; @@ -20,8 +20,13 @@ public class RelicSubAffixExcel extends GameResource { private int StepNum; @Override - public int getId() { - return (GroupID << 16) + AffixID; + public int getPrimaryKey() { + return GroupID; + } + + @Override + public int getSecondaryKey() { + return AffixID; } @Override diff --git a/src/main/java/emu/lunarcore/data/excel/RewardExcel.java b/src/main/java/emu/lunarcore/data/excel/RewardExcel.java index d0c4e56..318db48 100644 --- a/src/main/java/emu/lunarcore/data/excel/RewardExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/RewardExcel.java @@ -1,12 +1,9 @@ package emu.lunarcore.data.excel; -import java.util.ArrayList; -import java.util.List; - import emu.lunarcore.GameConstants; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.game.inventory.ItemParamMap; import lombok.Getter; @Getter @@ -27,7 +24,7 @@ public class RewardExcel extends GameResource { private int ItemID_5; private int Count_5; - private transient List rewards; + private transient ItemParamMap rewards; @Override public int getId() { @@ -36,22 +33,22 @@ public class RewardExcel extends GameResource { @Override public void onLoad() { - this.rewards = new ArrayList<>(); + this.rewards = new ItemParamMap(); if (Hcoin > 0) { - this.rewards.add(new ItemParam(GameConstants.MATERIAL_HCOIN_ID, Hcoin)); + this.rewards.add(GameConstants.MATERIAL_HCOIN_ID, Hcoin); } if (ItemID_1 > 0) { - this.rewards.add(new ItemParam(ItemID_1, Count_1)); + this.rewards.add(ItemID_1, Count_1); } if (ItemID_2 > 0) { - this.rewards.add(new ItemParam(ItemID_2, Count_2)); + this.rewards.add(ItemID_2, Count_2); } if (ItemID_3 > 0) { - this.rewards.add(new ItemParam(ItemID_3, Count_3)); + this.rewards.add(ItemID_3, Count_3); } if (ItemID_4 > 0) { - this.rewards.add(new ItemParam(ItemID_4, Count_4)); + this.rewards.add(ItemID_4, Count_4); } if (ItemID_5 > 0) { - this.rewards.add(new ItemParam(ItemID_5, Count_5)); + this.rewards.add(ItemID_5, Count_5); } } } diff --git a/src/main/java/emu/lunarcore/data/excel/RogueAeonExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueAeonExcel.java deleted file mode 100644 index c916cc2..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueAeonExcel.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueAeon.json"}) -public class RogueAeonExcel extends GameResource { - private int AeonID; - private int RogueBuffType; - - @Override - public int getId() { - return AeonID; - } - -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java deleted file mode 100644 index a760c15..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueAreaExcel.java +++ /dev/null @@ -1,37 +0,0 @@ -package emu.lunarcore.data.excel; - -import java.util.List; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; -import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueAreaConfig.json"}, loadPriority = LoadPriority.LOW) -public class RogueAreaExcel extends GameResource { - private int RogueAreaID; - private int AreaProgress; - private int Difficulty; - private Int2IntOpenHashMap ScoreMap; - - private transient int mapId; - private transient List sites; - - @Override - public int getId() { - return RogueAreaID; - } - - public boolean isValid() { - return this.sites != null && this.sites.size() > 0; - } - - @Override - public void onLoad() { - this.mapId = (this.AreaProgress * 100) + this.Difficulty; - this.sites = GameDepot.getRogueMapsById(this.getMapId()); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java deleted file mode 100644 index 0ead589..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueBonusExcel.java +++ /dev/null @@ -1,25 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueBonus.json"}) -public class RogueBonusExcel extends GameResource { - private int BonusID; - private int BonusEvent; - - @Override - public int getId() { - return BonusID; - } - - @Override - public void onLoad() { - if (BonusID > 0 && BonusID < 10) { - GameDepot.getRogueRandomCommonBonusList().add(this); - } - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueBuffExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueBuffExcel.java deleted file mode 100644 index 7e91bad..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueBuffExcel.java +++ /dev/null @@ -1,50 +0,0 @@ -package emu.lunarcore.data.excel; - -import java.util.ArrayList; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; -import emu.lunarcore.game.enums.RogueBuffAeonType; -import emu.lunarcore.game.enums.RogueBuffCategory; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueBuff.json"}, loadPriority = LoadPriority.LOW) -public class RogueBuffExcel extends GameResource { - private int MazeBuffID; - private int MazeBuffLevel; - private int RogueBuffType; - private int RogueBuffTag; - private int AeonID; - private RogueBuffCategory RogueBuffCategory = emu.lunarcore.game.enums.RogueBuffCategory.None; - private RogueBuffAeonType BattleEventBuffType = RogueBuffAeonType.Normal; - - @Override - public int getId() { - return (MazeBuffID << 4) + MazeBuffLevel; - } - - public boolean isAeonBuff() { - return this.BattleEventBuffType != RogueBuffAeonType.Normal; - } - - @Override - public void onLoad() { - // Add to random buff list - if (RogueBuffType >= 120 && RogueBuffType <= 128 && RogueBuffCategory.getVal() >= 1 && RogueBuffCategory.getVal() <= 3 && MazeBuffLevel == 1 && AeonID == 0) { - GameDepot.getRogueRandomBuffList().add(this); - } - - // Add to aeon buff list - if (BattleEventBuffType == RogueBuffAeonType.BattleEventBuff) { - GameDepot.getRogueAeonBuffs().put(this.getAeonID(), this); - } else if (BattleEventBuffType == RogueBuffAeonType.BattleEventBuffEnhance) { - GameDepot.getRogueAeonEnhanceBuffs().computeIfAbsent(this.getAeonID(), e -> new ArrayList<>()).add(this); - } - - GameData.getRogueBuffTagExcelMap().put(this.getRogueBuffTag(), this); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java deleted file mode 100644 index bcc979d..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueBuffGroupExcel.java +++ /dev/null @@ -1,66 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; -import emu.lunarcore.game.rogue.RogueBuffData; -import it.unimi.dsi.fastutil.ints.IntArrayList; -import lombok.Getter; - -import java.util.HashSet; -import java.util.Set; - -import com.google.gson.annotations.SerializedName; - -@Getter -@ResourceType(name = {"RogueBuffGroup.json"}, loadPriority = LoadPriority.LOW) -public class RogueBuffGroupExcel extends GameResource { - @SerializedName(value = "IOMDAGGIAME") - private int RogueBuffGroupID; // RogueBuffGroupID - - @SerializedName(value = "HLKMFHBOAIA") - private IntArrayList RogueBuffTagList; // RogueBuffTagList or RogueBuffGroupList - - private transient Set rogueBuffList = new HashSet<>(); - - @Override - public int getId() { - return RogueBuffGroupID; - } - - @Override - public void onLoad() { - for (int rogueTagId : RogueBuffTagList) { - if (rogueTagId >= 1000000 && rogueTagId <= 9999999) { - var rogueBuff = GameData.getRogueBuffTagExcelMap().get(rogueTagId); - if (rogueBuff != null) rogueBuffList.add(new RogueBuffData(rogueBuff.getMazeBuffID(), rogueBuff.getMazeBuffLevel())); - } else { - // RogueBuffGroup - var rogueBuffGroup = GameData.getRogueBuffGroupExcelMap().get(rogueTagId); - if (rogueBuffGroup != null) rogueBuffList.addAll(rogueBuffGroup.getRogueBuffList()); - } - } - GameData.getRogueBuffGroupExcelMap().put(RogueBuffGroupID, this); - } - - @Override - public void onFinalize() { - for (int rogueTagId : RogueBuffTagList) { - if (rogueTagId >= 1000000 && rogueTagId <= 9999999) { - var rogueBuff = GameData.getRogueBuffTagExcelMap().get(rogueTagId); - if (rogueBuff != null) rogueBuffList.add(new RogueBuffData(rogueBuff.getMazeBuffID(), rogueBuff.getMazeBuffLevel())); - } else { - // RogueBuffGroup - var rogueBuffGroup = GameData.getRogueBuffGroupExcelMap().get(rogueTagId); - if (rogueBuffGroup == null) - continue; - - if(rogueBuffGroup.getRogueBuffList().isEmpty()) { - rogueBuffGroup.onFinalize(); - } - rogueBuffList.addAll(rogueBuffGroup.getRogueBuffList()); - } - } - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueDLCAreaExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueDLCAreaExcel.java deleted file mode 100644 index 9639628..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueDLCAreaExcel.java +++ /dev/null @@ -1,38 +0,0 @@ -package emu.lunarcore.data.excel; - -import com.google.gson.annotations.SerializedName; -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -import java.util.List; - -@Getter -@ResourceType(name = { "RogueDLCArea.json" }) -public class RogueDLCAreaExcel extends GameResource { - private int AreaID; - private String SubType; - - private List DifficultyID; - private List LayerIDList; - - private List AreaScoreMap; - - @Getter - public static class RogueDLCAreaScoreMap { - @SerializedName("FJBAFMJHNCA") private int LayerID; - @SerializedName("LHKHLPFAKGD") private int Score; - @SerializedName("NDPIHCHCLGA") private int FinishedScore; - } - - @Override - public int getId() { - return AreaID; - } - - @Override - public void onLoad() { - GameData.getRogueDLCAreaExcelMap().put(AreaID, this); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueManagerExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueManagerExcel.java deleted file mode 100644 index 68171f6..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueManagerExcel.java +++ /dev/null @@ -1,51 +0,0 @@ -package emu.lunarcore.data.excel; - -import java.time.LocalDateTime; -import java.time.ZoneOffset; -import java.time.format.DateTimeFormatter; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.AccessLevel; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueManager.json"}) -public class RogueManagerExcel extends GameResource { - private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); - - private int ScheduleDataID; - private int RogueSeason; - - @Getter(AccessLevel.NONE) - private String BeginTime; - @Getter(AccessLevel.NONE) - private String EndTime; - - private int[] RogueAreaIDList; - - private transient long beginTime; - private transient long endTime; - - @Override - public int getId() { - return ScheduleDataID; - } - - @Override - public void onLoad() { - try { - this.beginTime = LocalDateTime.from(formatter.parse(this.BeginTime)) - .atOffset(ZoneOffset.UTC) - .toInstant() - .toEpochMilli(); - - this.endTime = LocalDateTime.from(formatter.parse(this.EndTime)) - .atOffset(ZoneOffset.UTC) - .toInstant() - .toEpochMilli(); - } catch (Exception e) { - - } - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java deleted file mode 100644 index 84b2be4..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueMapExcel.java +++ /dev/null @@ -1,28 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueMap.json"}, loadPriority = LoadPriority.HIGH) -public class RogueMapExcel extends GameResource { - private int RogueMapID; - private int SiteID; - private boolean IsStart; - private int[] NextSiteIDList; - private int[] LevelList; - - @Override - public int getId() { - return (RogueMapID << 8) + SiteID; - } - - @Override - public void onLoad() { - GameDepot.getRogueMapsById(this.getRogueMapID()).add(this); - } - -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java deleted file mode 100644 index de1e636..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueMiracleExcel.java +++ /dev/null @@ -1,26 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueMiracle.json"}) -public class RogueMiracleExcel extends GameResource { - private int MiracleID; - private boolean IsShow; - private int MiracleReward; - - @Override - public int getId() { - return MiracleID; - } - - @Override - public void onLoad() { - //if (IsShow && MiracleReward > 0) { // it is always false - GameDepot.getRogueRandomMiracleList().add(this); - //} - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueMonsterExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueMonsterExcel.java deleted file mode 100644 index 43e47c2..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueMonsterExcel.java +++ /dev/null @@ -1,19 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueMonster.json"}) -public class RogueMonsterExcel extends GameResource { - private int RogueMonsterID; - private int NpcMonsterID; - private int EventID; - - @Override - public int getId() { - return RogueMonsterID; - } - -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java deleted file mode 100644 index 1953936..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueNPCExcel.java +++ /dev/null @@ -1,25 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.config.rogue.RogueNPCConfigInfo; -import lombok.Getter; -import lombok.Setter; - -import javax.annotation.Nullable; - -@Getter -@ResourceType(name = {"RogueNPC.json"}) -public class RogueNPCExcel extends GameResource { - public int RogueNPCID; - public String NPCJsonPath; - - @Setter - @Nullable - public RogueNPCConfigInfo RogueNpcConfig; - - @Override - public int getId() { - return RogueNPCID; - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNousDiceBranchExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNousDiceBranchExcel.java deleted file mode 100644 index b1dbc75..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueNousDiceBranchExcel.java +++ /dev/null @@ -1,26 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -import java.util.Set; - -@Getter -@ResourceType(name = {"RogueNousDiceBranch.json"}) -public class RogueNousDiceBranchExcel extends GameResource { - private int BranchId; - private int DefaultUltraSurface; - private Set DefaultCommonSurfaceList; - - @Override - public int getId() { - return BranchId; - } - - @Override - public void onLoad() { - GameData.getRogueNousDiceBranchExcelMap().put(BranchId, this); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNousMainStoryExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNousMainStoryExcel.java deleted file mode 100644 index 57d836a..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueNousMainStoryExcel.java +++ /dev/null @@ -1,23 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueNousMainStory.json"}) -public class RogueNousMainStoryExcel extends GameResource { - private int StoryID; - private int Layer; - - @Override - public int getId() { - return this.StoryID; - } - - @Override - public void onLoad() { - GameData.getRogueNousMainStoryExcelMap().put(this.StoryID, this); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueNousSubStoryExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueNousSubStoryExcel.java deleted file mode 100644 index eb1af42..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueNousSubStoryExcel.java +++ /dev/null @@ -1,23 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueNousSubStory.json"}) -public class RogueNousSubStoryExcel extends GameResource { - private int StoryID; - private int Layer; - - @Override - public int getId() { - return this.StoryID; - } - - @Override - public void onLoad() { - GameData.getRogueNousSubStoryExcelMap().put(this.StoryID, this); - } -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java deleted file mode 100644 index 3144a13..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueRoomExcel.java +++ /dev/null @@ -1,26 +0,0 @@ -package emu.lunarcore.data.excel; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueRoom.json"}) -public class RogueRoomExcel extends GameResource { - private int RogueRoomID; - private int RogueRoomType; - private int MapEntrance; - private int GroupID; - private Int2IntOpenHashMap GroupWithContent; - - @Override - public int getId() { - return RogueRoomID; - } - - public int getGroupContent(int id) { - return GroupWithContent.get(id); - } - -} diff --git a/src/main/java/emu/lunarcore/data/excel/RogueTalentExcel.java b/src/main/java/emu/lunarcore/data/excel/RogueTalentExcel.java deleted file mode 100644 index 3143f26..0000000 --- a/src/main/java/emu/lunarcore/data/excel/RogueTalentExcel.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.data.excel; - -import java.util.List; - -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.common.ItemParam; -import lombok.Getter; - -@Getter -@ResourceType(name = {"RogueTalent.json"}) -public class RogueTalentExcel extends GameResource { - private int TalentID; - private List Cost; - - @Override - public int getId() { - return TalentID; - } - -} diff --git a/src/main/java/emu/lunarcore/data/excel/ShopExcel.java b/src/main/java/emu/lunarcore/data/excel/ShopExcel.java index 3654023..64cdb71 100644 --- a/src/main/java/emu/lunarcore/data/excel/ShopExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ShopExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import it.unimi.dsi.fastutil.ints.Int2ObjectAVLTreeMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/ShopGoodsExcel.java b/src/main/java/emu/lunarcore/data/excel/ShopGoodsExcel.java index 55f5456..6f6d824 100644 --- a/src/main/java/emu/lunarcore/data/excel/ShopGoodsExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/ShopGoodsExcel.java @@ -4,10 +4,10 @@ import java.util.ArrayList; import java.util.List; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; -import emu.lunarcore.data.ResourceType.LoadPriority; import emu.lunarcore.data.common.ItemParam; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import emu.lunarcore.data.resource.ResourceType.LoadPriority; import emu.lunarcore.proto.GoodsOuterClass.Goods; import lombok.AccessLevel; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/SpecialAvatarExcel.java b/src/main/java/emu/lunarcore/data/excel/SpecialAvatarExcel.java new file mode 100644 index 0000000..7f556f5 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/SpecialAvatarExcel.java @@ -0,0 +1,26 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"SpecialAvatar.json"}) +public class SpecialAvatarExcel extends GameResource { + private int SpecialAvatarID; + private int PlayerID; + private int AvatarID; + private int Level; + private int Promotion; + private int Rank; + + private int EquipmentID; + private int EquipmentLevel; + private int EquipmentPromotion; + private int EquipmentRank; + + @Override + public int getId() { + return SpecialAvatarID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/StageExcel.java b/src/main/java/emu/lunarcore/data/excel/StageExcel.java index 7b94592..8b22ab1 100644 --- a/src/main/java/emu/lunarcore/data/excel/StageExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/StageExcel.java @@ -3,8 +3,8 @@ package emu.lunarcore.data.excel; import java.util.ArrayList; import java.util.List; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import emu.lunarcore.game.battle.BattleStage; import emu.lunarcore.game.enums.StageType; import it.unimi.dsi.fastutil.ints.IntArrayList; @@ -37,13 +37,13 @@ public class StageExcel extends GameResource implements BattleStage { if (this.StageType == null) { this.StageType = emu.lunarcore.game.enums.StageType.Unknown; } - + // Cache monster list this.monsterWaves = new ArrayList<>(); - + for (StageMonsterWave wave : MonsterList) { var monsterIds = wave.toList(); - + if (!monsterIds.isEmpty()) { this.monsterWaves.add(monsterIds); } diff --git a/src/main/java/emu/lunarcore/data/excel/SummonUnitExcel.java b/src/main/java/emu/lunarcore/data/excel/SummonUnitExcel.java index fb80fc2..b295e2c 100644 --- a/src/main/java/emu/lunarcore/data/excel/SummonUnitExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/SummonUnitExcel.java @@ -1,8 +1,8 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; import emu.lunarcore.data.config.SummonUnitInfo; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import lombok.Getter; @Getter @@ -11,9 +11,9 @@ public class SummonUnitExcel extends GameResource { private int ID; private String JsonPath; private boolean IsClient; - + private transient SummonUnitInfo info; - + @Override public int getId() { return ID; diff --git a/src/main/java/emu/lunarcore/data/excel/TextJoinExcel.java b/src/main/java/emu/lunarcore/data/excel/TextJoinExcel.java index 7776570..3e4ac99 100644 --- a/src/main/java/emu/lunarcore/data/excel/TextJoinExcel.java +++ b/src/main/java/emu/lunarcore/data/excel/TextJoinExcel.java @@ -1,7 +1,7 @@ package emu.lunarcore.data.excel; -import emu.lunarcore.data.GameResource; -import emu.lunarcore.data.ResourceType; +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; import it.unimi.dsi.fastutil.ints.IntArrayList; import lombok.Getter; diff --git a/src/main/java/emu/lunarcore/data/excel/TutorialExcel.java b/src/main/java/emu/lunarcore/data/excel/TutorialExcel.java new file mode 100644 index 0000000..feb5930 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/TutorialExcel.java @@ -0,0 +1,16 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"TutorialData.json"}) +public class TutorialExcel extends GameResource { + private int TutorialID; + + @Override + public int getId() { + return TutorialID; + } +} diff --git a/src/main/java/emu/lunarcore/data/excel/TutorialGuideExcel.java b/src/main/java/emu/lunarcore/data/excel/TutorialGuideExcel.java new file mode 100644 index 0000000..852fd54 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/excel/TutorialGuideExcel.java @@ -0,0 +1,16 @@ +package emu.lunarcore.data.excel; + +import emu.lunarcore.data.resource.GameResource; +import emu.lunarcore.data.resource.ResourceType; +import lombok.Getter; + +@Getter +@ResourceType(name = {"TutorialGuideGroup.json"}) +public class TutorialGuideExcel extends GameResource { + private int GroupID; + + @Override + public int getId() { + return GroupID; + } +} diff --git a/src/main/java/emu/lunarcore/data/resource/ExcelMap.java b/src/main/java/emu/lunarcore/data/resource/ExcelMap.java new file mode 100644 index 0000000..1aa34d0 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/resource/ExcelMap.java @@ -0,0 +1,86 @@ +package emu.lunarcore.data.resource; + +import java.util.Iterator; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.ints.IntCollection; +import it.unimi.dsi.fastutil.ints.IntSet; +import it.unimi.dsi.fastutil.objects.ObjectCollection; +import it.unimi.dsi.fastutil.objects.ObjectSet; + +public class ExcelMap implements Iterable, ResourceMap { + private Int2ObjectMap map; + + public ExcelMap() { + this.map = new Int2ObjectOpenHashMap<>(); + } + + public void add(T excel) { + this.map.put(excel.getId(), excel); + } + + public int size() { + return this.map.size(); + } + + // Wrapper functions + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.get} + */ + public T get(int id) { + return this.map.get(id); + } + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.containsKey} + */ + public boolean containsKey(int id) { + return this.map.containsKey(id); + } + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.keySet} + */ + public IntSet keySet() { + return this.map.keySet(); + } + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.values} + */ + public ObjectCollection values() { + return this.map.values(); + } + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.int2ObjectEntrySet} + */ + public ObjectSet> int2ObjectEntrySet() { + return this.map.int2ObjectEntrySet(); + } + + // Iterable/Streamable + + @Override + public Iterator iterator() { + return this.values().iterator(); + } + + public Stream stream() { + return this.values().stream(); + } + + // Custom + + public IntCollection getIds() { + return this.map.keySet(); + } + + public IntCollection getAllIds() { + return this.getIds(); + } + +} diff --git a/src/main/java/emu/lunarcore/data/resource/GameResource.java b/src/main/java/emu/lunarcore/data/resource/GameResource.java new file mode 100644 index 0000000..a261a9a --- /dev/null +++ b/src/main/java/emu/lunarcore/data/resource/GameResource.java @@ -0,0 +1,12 @@ +package emu.lunarcore.data.resource; + +public abstract class GameResource extends ResourceBase implements Comparable { + + public abstract int getId(); + + @Override + public int compareTo(GameResource o) { + return this.getId() - o.getId(); + } + +} diff --git a/src/main/java/emu/lunarcore/data/resource/MultiKeyExcelMap.java b/src/main/java/emu/lunarcore/data/resource/MultiKeyExcelMap.java new file mode 100644 index 0000000..d75e294 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/resource/MultiKeyExcelMap.java @@ -0,0 +1,70 @@ +package emu.lunarcore.data.resource; + +import java.util.Iterator; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.*; +import it.unimi.dsi.fastutil.longs.Long2ObjectMap; +import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.objects.ObjectCollection; + +public class MultiKeyExcelMap implements Iterable, ResourceMap { + private Long2ObjectMap map; + + public MultiKeyExcelMap() { + this.map = new Long2ObjectOpenHashMap<>(); + } + + public void add(T excel) { + long key = ((long) excel.getPrimaryKey() << 32) + (long) excel.getSecondaryKey(); + this.map.put(key, excel); + } + + public int size() { + return this.map.size(); + } + + // Wrapper functions + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.get} + */ + public T get(int primaryKey, int secondaryKey) { + long key = ((long) primaryKey << 32) + (long) secondaryKey; + return this.map.get(key); + } + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.containsKey} + */ + public boolean containsKey(int id) { + return this.map.containsKey(id); + } + + /** + * Wrapper for {@link it.unimi.dsi.fastutil.ints.Int2ObjectMap.values} + */ + public ObjectCollection values() { + return this.map.values(); + } + + // Iterable/Streamable + + @Override + public Iterator iterator() { + return this.values().iterator(); + } + + public Stream stream() { + return this.values().stream(); + } + + // Custom + + public IntCollection getIds() { + var set = new IntOpenHashSet(); + this.map.values().stream().mapToInt(MultiKeyGameResource::getPrimaryKey).forEach(set::add); + return set; + } + +} diff --git a/src/main/java/emu/lunarcore/data/resource/MultiKeyGameResource.java b/src/main/java/emu/lunarcore/data/resource/MultiKeyGameResource.java new file mode 100644 index 0000000..8a8610a --- /dev/null +++ b/src/main/java/emu/lunarcore/data/resource/MultiKeyGameResource.java @@ -0,0 +1,9 @@ +package emu.lunarcore.data.resource; + +public abstract class MultiKeyGameResource extends ResourceBase { + + public abstract int getPrimaryKey(); + + public abstract int getSecondaryKey(); + +} diff --git a/src/main/java/emu/lunarcore/data/resource/ResourceBase.java b/src/main/java/emu/lunarcore/data/resource/ResourceBase.java new file mode 100644 index 0000000..cab258f --- /dev/null +++ b/src/main/java/emu/lunarcore/data/resource/ResourceBase.java @@ -0,0 +1,12 @@ +package emu.lunarcore.data.resource; + +public class ResourceBase { + + /** + * Called when this excel is loaded + */ + public void onLoad() { + + } + +} diff --git a/src/main/java/emu/lunarcore/data/resource/ResourceMap.java b/src/main/java/emu/lunarcore/data/resource/ResourceMap.java new file mode 100644 index 0000000..6175988 --- /dev/null +++ b/src/main/java/emu/lunarcore/data/resource/ResourceMap.java @@ -0,0 +1,9 @@ +package emu.lunarcore.data.resource; + +public interface ResourceMap { + + public void add(T excel); + + public int size(); + +} diff --git a/src/main/java/emu/lunarcore/data/ResourceType.java b/src/main/java/emu/lunarcore/data/resource/ResourceType.java similarity index 91% rename from src/main/java/emu/lunarcore/data/ResourceType.java rename to src/main/java/emu/lunarcore/data/resource/ResourceType.java index 26a65ca..3556fbe 100644 --- a/src/main/java/emu/lunarcore/data/ResourceType.java +++ b/src/main/java/emu/lunarcore/data/resource/ResourceType.java @@ -1,8 +1,10 @@ -package emu.lunarcore.data; +package emu.lunarcore.data.resource; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import emu.lunarcore.data.GameData; + @Retention(RetentionPolicy.RUNTIME) public @interface ResourceType { diff --git a/src/main/java/emu/lunarcore/database/DatabaseManager.java b/src/main/java/emu/lunarcore/database/DatabaseManager.java index 3f06705..90f7fca 100644 --- a/src/main/java/emu/lunarcore/database/DatabaseManager.java +++ b/src/main/java/emu/lunarcore/database/DatabaseManager.java @@ -22,11 +22,12 @@ import dev.morphia.Datastore; import dev.morphia.DeleteOptions; import dev.morphia.InsertOneOptions; import dev.morphia.Morphia; +import dev.morphia.UpdateOptions; import dev.morphia.annotations.Entity; import dev.morphia.mapping.Mapper; import dev.morphia.mapping.MapperOptions; import dev.morphia.query.filters.Filters; - +import dev.morphia.query.updates.UpdateOperators; import emu.lunarcore.Config.DatabaseInfo; import emu.lunarcore.Config.InternalMongoInfo; import emu.lunarcore.LunarCore; @@ -188,6 +189,26 @@ public final class DatabaseManager { getDatastore().save(counter); } } + + public void update(Object obj, long uid, String field, Object item) { + update(obj, uid, field, item, false); + } + + public void update(Object obj, long uid, String field, Object value, boolean upsert) { + var opt = new UpdateOptions().upsert(upsert); + + getDatastore().find(obj.getClass()) + .filter(Filters.eq("_id", uid)) + .update(opt, UpdateOperators.set(field, value)); + } + + public void addToSet(Object obj, long uid, String field, Object item) { + var opt = new UpdateOptions().upsert(false); + + getDatastore().find(obj.getClass()) + .filter(Filters.eq("_id", uid)) + .update(opt, UpdateOperators.addToSet(field, item)); + } // Internal MongoDB server diff --git a/src/main/java/emu/lunarcore/game/account/Account.java b/src/main/java/emu/lunarcore/game/account/Account.java index 70ee179..7598ee9 100644 --- a/src/main/java/emu/lunarcore/game/account/Account.java +++ b/src/main/java/emu/lunarcore/game/account/Account.java @@ -1,5 +1,7 @@ package emu.lunarcore.game.account; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; import java.util.*; import java.util.stream.Stream; @@ -7,9 +9,10 @@ import dev.morphia.annotations.*; import emu.lunarcore.LunarCore; import emu.lunarcore.database.AccountDatabaseOnly; +import emu.lunarcore.proto.DispatchTokenOuterClass.DispatchToken; import emu.lunarcore.util.Crypto; import emu.lunarcore.util.Snowflake32; - +import emu.lunarcore.util.Utils; import lombok.Getter; @Getter @@ -136,9 +139,29 @@ public class Account { } // Tokens + + private String generateTokenV2() { + // TODO + var proto = DispatchToken.newInstance() + .setUnkBool1(true) + .setUnkString1("aaa") + .setUnkString2("bbb") + .setTime((int) (LunarCore.currentServerTime() / 1000D)) + .setUnkUint1(1_000_000) + .setAccountId(Integer.parseInt(this.getUid())) + .setUnkBool2(true) + .setRegion("hkrpg") + .setCountryCode(""); + + byte[] unkLong = ByteBuffer.wrap(new byte[8]).order(ByteOrder.LITTLE_ENDIAN).putLong(1_000_000L).array(); + String unkStr = Crypto.createSessionKey(this.getUid()); // ? + String token = "v2_" + Utils.base64Encode(proto.toByteArray()) + "." + Utils.base64Encode(unkLong) + "." + unkStr; + + return token; + } public String generateComboToken() { - this.comboToken = Crypto.createSessionKey(this.getUid()); + this.comboToken = this.generateTokenV2(); this.save(); return this.comboToken; } @@ -149,6 +172,13 @@ public class Account { return this.dispatchToken; } + public String generateDispatchTokenV2() { + + this.dispatchToken = this.generateTokenV2(); + this.save(); + return this.dispatchToken; + } + // Database public void save() { diff --git a/src/main/java/emu/lunarcore/game/avatar/AvatarData.java b/src/main/java/emu/lunarcore/game/avatar/AvatarData.java index df04e55..311dc77 100644 --- a/src/main/java/emu/lunarcore/game/avatar/AvatarData.java +++ b/src/main/java/emu/lunarcore/game/avatar/AvatarData.java @@ -1,6 +1,7 @@ package emu.lunarcore.game.avatar; import dev.morphia.annotations.Entity; +import emu.lunarcore.data.GameData; import emu.lunarcore.data.excel.AvatarExcel; import emu.lunarcore.game.inventory.GameItem; import emu.lunarcore.game.player.Player; @@ -17,10 +18,17 @@ import lombok.Setter; @Getter @Entity(useDiscriminator = false) public class AvatarData { - @Setter private int rank; // Eidolons - private Int2IntMap skills; // Skill tree + @Setter + private int rank; // Eidolons + private Int2IntMap skillTree; // Skill tree + private int skinId; // Avatar skin id + private int enhanceId; // Enhance state - @Setter private transient BaseAvatar baseAvatar; + @Deprecated + private Int2IntMap skills; // Skill tree (old) + + @Setter + private transient BaseAvatar baseAvatar; private transient Int2ObjectMap equips; @Deprecated // Morphia only @@ -30,13 +38,68 @@ public class AvatarData { public AvatarData(AvatarExcel excel) { this(); - this.skills = new Int2IntOpenHashMap(); - for (var skillTree : excel.getDefaultSkillTrees()) { - this.skills.put(skillTree.getPointID(), skillTree.getLevel()); - } + this.skillTree = new Int2IntOpenHashMap(); + this.addDefaultSkills(excel); } public Player getOwner() { return this.getBaseAvatar().getOwner(); } + + private void addDefaultSkills(AvatarExcel excel) { + for (var skillExcel : excel.getDefaultSkillTrees()) { + // Check enhance id + if (skillExcel.getEnhancedID() != this.getEnhanceId()) { + continue; + } + + // Add skill tree + this.skillTree.put(skillExcel.getAnchorId(), skillExcel.getLevel()); + } + } + + public boolean setEnhanceId(int enhanceId) { + // Sanity check + if (this.enhanceId == enhanceId) { + return false; + } + + // Update enhance state + this.enhanceId = enhanceId; + + // Success + return true; + } + + public void setSkinId(int skinId) { + this.skinId = skinId; + } + + /** + * Converts skilltrees to skill anchor types + */ + public void fixSkills() { + // Check skills + if (this.skills == null || this.skills.isEmpty()) { + return; + } + + // Create skill tree + this.skillTree = new Int2IntOpenHashMap(); + + // Convert from point id to anchor id + for (var entry : this.skills.int2IntEntrySet()) { + int pointId = entry.getIntKey(); + int level = entry.getIntValue(); + + var excel = GameData.getAvatarSkillTreeExcelMap().get(pointId, level); + if (excel == null) continue; + + // Add skill tree + this.skillTree.put(excel.getAnchorId(), excel.getLevel()); + } + + // Clear old skills + this.skills = null; + } } diff --git a/src/main/java/emu/lunarcore/game/avatar/AvatarMultiPath.java b/src/main/java/emu/lunarcore/game/avatar/AvatarMultiPath.java index 5e62900..43f4d71 100644 --- a/src/main/java/emu/lunarcore/game/avatar/AvatarMultiPath.java +++ b/src/main/java/emu/lunarcore/game/avatar/AvatarMultiPath.java @@ -1,7 +1,5 @@ package emu.lunarcore.game.avatar; -import java.util.Map; - import org.bson.types.ObjectId; import dev.morphia.annotations.Entity; @@ -12,10 +10,11 @@ import emu.lunarcore.LunarCore; import emu.lunarcore.data.excel.AvatarExcel; import emu.lunarcore.game.enums.ItemMainType; import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.AvatarSkillTreeOuterClass.AvatarSkillTree; +import emu.lunarcore.proto.AvatarPathInfoOuterClass.AvatarPathInfo; +import emu.lunarcore.proto.AvatarPathSkillTreeOuterClass.AvatarPathSkillTree; import emu.lunarcore.proto.EquipRelicOuterClass.EquipRelic; -import emu.lunarcore.proto.MultiPathAvatarInfoOuterClass.MultiPathAvatarInfo; import emu.lunarcore.proto.PlayerSyncScNotifyOuterClass.PlayerSyncScNotify; +import it.unimi.dsi.fastutil.ints.Int2IntMap; import lombok.Getter; import lombok.Setter; @@ -59,31 +58,35 @@ public class AvatarMultiPath extends BaseAvatar { return this.getData().getRank(); } - public Map getSkills() { + public int getEnhanceId() { + return this.getData().getEnhanceId(); + } + + @SuppressWarnings("deprecation") + public Int2IntMap getSkills() { return this.getData().getSkills(); } - // Player sync + public Int2IntMap getSkillTree() { + return this.getData().getSkillTree(); + } // Player sync public void onSync(PlayerSyncScNotify proto) { - proto.addMultiPathAvatarInfoList(this.toProto()); + // TODO } // Proto - public MultiPathAvatarInfo toProto() { - var proto = MultiPathAvatarInfo.newInstance() - .setAvatarIdValue(this.getExcelId()) - .setPathEquipmentId(0) - .setRank(this.getRank()); - - for (var skill : getSkills().entrySet()) { - proto.addMultiPathSkillTree(AvatarSkillTree.newInstance().setPointId(skill.getKey()).setLevel(skill.getValue())); - } - - for (var equip : getEquips().values()) { + public AvatarPathInfo toPathInfoProto() { + var proto = AvatarPathInfo.newInstance() + .setAvatarId(this.getExcelId()) + .setRank(this.getRank()) + .setAvatarSkin(this.getData().getSkinId()) + .setEnhanceId(this.getEnhanceId()); + + for (var equip : this.getEquips().values()) { if (equip.getItemMainType() == ItemMainType.Relic) { proto.addEquipRelicList(EquipRelic.newInstance().setSlot(equip.getEquipSlot()).setRelicUniqueId(equip.getInternalUid())); } else if (equip.getItemMainType() == ItemMainType.Equipment) { @@ -91,6 +94,15 @@ public class AvatarMultiPath extends BaseAvatar { } } + for (var skill : this.getSkillTree().int2IntEntrySet()) { + // Set skill point proto + var info = AvatarPathSkillTree.newInstance() + .setAnchorPointId(skill.getIntKey()) + .setLevel(skill.getIntValue()); + + proto.addSkilltreeList(info); + } + return proto; } diff --git a/src/main/java/emu/lunarcore/game/avatar/AvatarSkillTreeAnchorType.java b/src/main/java/emu/lunarcore/game/avatar/AvatarSkillTreeAnchorType.java new file mode 100644 index 0000000..319f446 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/avatar/AvatarSkillTreeAnchorType.java @@ -0,0 +1,49 @@ +package emu.lunarcore.game.avatar; + +import it.unimi.dsi.fastutil.objects.Object2IntMap; +import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap; +import lombok.Getter; + +@Getter +public enum AvatarSkillTreeAnchorType { + None (0), + Point01 (1), + Point02 (2), + Point03 (3), + Point04 (4), + Point05 (5), + Point06 (6), + Point07 (7), + Point08 (8), + Point09 (9), + Point10 (10), + Point11 (11), + Point12 (12), + Point13 (13), + Point14 (14), + Point15 (15), + Point16 (16), + Point17 (17), + Point18 (18), + Point19 (19), + Point20 (20), + Point21 (21), + Point22 (22); + + private int value; + private static Object2IntMap map = new Object2IntOpenHashMap<>(); + + static { + for (var point : values()) { + map.put(point.name(), point.getValue()); + } + } + + private AvatarSkillTreeAnchorType(int value) { + this.value = value; + } + + public static int getValue(String name) { + return map.getInt(name); + } +} diff --git a/src/main/java/emu/lunarcore/game/avatar/AvatarStorage.java b/src/main/java/emu/lunarcore/game/avatar/AvatarStorage.java index 8b198c0..03b6959 100644 --- a/src/main/java/emu/lunarcore/game/avatar/AvatarStorage.java +++ b/src/main/java/emu/lunarcore/game/avatar/AvatarStorage.java @@ -12,10 +12,13 @@ import emu.lunarcore.data.excel.MultiplePathAvatarExcel; import emu.lunarcore.game.inventory.GameItem; import emu.lunarcore.game.player.BasePlayerManager; import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.trial.TrialAvatar; import emu.lunarcore.server.packet.send.PacketPlayerSyncScNotify; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.ints.IntOpenHashSet; +import it.unimi.dsi.fastutil.ints.IntSet; import it.unimi.dsi.fastutil.objects.Object2ObjectMap; import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap; import lombok.Getter; @@ -28,12 +31,17 @@ public class AvatarStorage extends BasePlayerManager implements Iterable multiPaths; private final Object2ObjectMap multiPathsObjectIdMap; + private final Int2ObjectMap tempAvatars; + private final IntSet globalBuffAvatars; + public AvatarStorage(Player player) { super(player); this.avatars = new Int2ObjectOpenHashMap<>(); this.avatarObjectIdMap = new Object2ObjectOpenHashMap<>(); this.multiPaths = new Int2ObjectOpenHashMap<>(); this.multiPathsObjectIdMap = new Object2ObjectOpenHashMap<>(); + this.tempAvatars = new Int2ObjectOpenHashMap<>(); + this.globalBuffAvatars = new IntOpenHashSet(); } public int getAvatarCount() { @@ -60,15 +68,21 @@ public class AvatarStorage extends BasePlayerManager implements Iterable getSkills() { + @SuppressWarnings("deprecation") + public Int2IntMap getSkills() { return this.getData().getSkills(); } + public Int2IntMap getSkillTree() { + return this.getData().getSkillTree(); + } + public void setMultiPath(AvatarMultiPath multiPath) { // Clear prev set hero path from avatar if (this.multiPath != null) { @@ -218,6 +249,35 @@ public class GameAvatar extends BaseAvatar implements GameEntity { this.rewards |= 1 << promotion; } + // Skin + + public void setSkin(int skinId) { + // Sanity + if (skinId == this.getData().getSkinId()) { + return; + } + + // Verify skin excel + if (skinId != 0) { + var excel = GameData.getAvatarSkinExcelMap().get(skinId); + if (excel == null || excel.getAvatarID() != this.getExcelId()) { + return; + } + } + + // Set skin + this.getData().setSkinId(skinId); + + if (this.getMultiPath() != null) { + this.getMultiPath().save(); + } else { + this.save(); + } + + // Update avatar to client + this.getOwner().sendPacket(new PacketPlayerSyncScNotify(this)); + } + // Buffs public void addBuff(int buffId, int duration) { @@ -230,9 +290,11 @@ public class GameAvatar extends BaseAvatar implements GameEntity { // Add to avatar sync proto.getMutableAvatarSync().addAvatarList(this.toProto()); - // Also update multipath info - if (this.getMultiPath() != null) { - proto.addMultiPathAvatarInfoList(this.getMultiPath().toProto()); + // Add multi path + if (this.hasMultiPath()) { + proto.getMutableAvatarSync().addAvatarPathInfoList(this.getMultiPath().toPathInfoProto()); + } else { + proto.getMutableAvatarSync().addAvatarPathInfoList(this.toPathInfoProto()); } } @@ -245,21 +307,8 @@ public class GameAvatar extends BaseAvatar implements GameEntity { .setLevel(this.getLevel()) .setExp(this.getExp()) .setPromotion(this.getPromotion()) - .setRank(this.getRank()) - .setIsMarked(this.isMarked()) + .setIsMarked(this.isMarked()) .setFirstMetTimestamp(this.getTimestamp()); - - for (var equip : this.getEquips().values()) { - if (equip.getItemMainType() == ItemMainType.Relic) { - proto.addEquipRelicList(EquipRelic.newInstance().setSlot(equip.getEquipSlot()).setRelicUniqueId(equip.getInternalUid())); - } else if (equip.getItemMainType() == ItemMainType.Equipment) { - proto.setEquipmentUniqueId(equip.getInternalUid()); - } - } - - for (var skill : getSkills().entrySet()) { - proto.addSkilltreeList(AvatarSkillTree.newInstance().setPointId(skill.getKey()).setLevel(skill.getValue())); - } for (int i = 0; i < this.getPromotion(); i++) { if (this.hasTakenReward(i)) { @@ -267,12 +316,45 @@ public class GameAvatar extends BaseAvatar implements GameEntity { } } + if (this.isHero()) { + proto.setChangedAvatarType(this.getMultiPath().getExcelId()); + } else { + proto.setChangedAvatarType(this.getAvatarId()); + } + + return proto; + } + + public AvatarPathInfo toPathInfoProto() { + var proto = AvatarPathInfo.newInstance() + .setAvatarId(this.getAvatarId()) + .setRank(this.getRank()) + .setAvatarSkin(this.getData().getSkinId()) + .setEnhanceId(this.getEnhanceId()); + + for (var equip : this.getEquips().values()) { + if (equip.getItemMainType() == ItemMainType.Relic) { + proto.addEquipRelicList(EquipRelic.newInstance().setSlot(equip.getEquipSlot()).setRelicUniqueId(equip.getInternalUid())); + } else if (equip.getItemMainType() == ItemMainType.Equipment) { + proto.setPathEquipmentId(equip.getInternalUid()); + } + } + + for (var skill : this.getSkillTree().int2IntEntrySet()) { + // Set skill point proto + var info = AvatarPathSkillTree.newInstance() + .setAnchorPointId(skill.getIntKey()) + .setLevel(skill.getIntValue()); + + proto.addSkilltreeList(info); + } + return proto; } public LineupAvatar toLineupAvatarProto(PlayerLineup lineup, int slot) { var proto = LineupAvatar.newInstance() - .setAvatarType(AvatarType.AVATAR_FORMAL_TYPE) + .setAvatarType(this.getAvatarType()) .setId(this.getAvatarId()) .setSpBar(SpBarInfo.newInstance().setCurSp(this.getCurrentSp(lineup)).setMaxSp(this.getMaxSp())) .setHp(this.getCurrentHp(lineup)) @@ -286,26 +368,43 @@ public class GameAvatar extends BaseAvatar implements GameEntity { var proto = SceneEntityInfo.newInstance() .setEntityId(this.getEntityId()) .setMotion(MotionInfo.newInstance().setPos(this.getPos().toProto()).setRot(this.getRot().toProto())) - .setActor(SceneActorInfo.newInstance().setBaseAvatarId(this.getAvatarId()).setAvatarType(AvatarType.AVATAR_FORMAL_TYPE)); + .setActor(SceneActorInfo.newInstance().setBaseAvatarId(this.getActorId()).setAvatarType(this.getAvatarType())); return proto; } public BattleAvatar toBattleProto(PlayerLineup lineup, int index) { var proto = BattleAvatar.newInstance() - .setAvatarType(AvatarType.AVATAR_FORMAL_TYPE) - .setId(this.getExcel().getAvatarID()) + .setAvatarType(this.getAvatarType()) + .setId(this.getBattleAvatarId()) .setLevel(this.getLevel()) .setPromotion(this.getPromotion()) .setRank(this.getRank()) .setIndex(index) - .setHp(this.getCurrentHp(lineup)) - .setSpBar(SpBarInfo.newInstance().setCurSp(this.getCurrentSp(lineup)).setMaxSp(this.getMaxSp())) + .setAvatarEnhanceId(this.getEnhanceId()) .setWorldLevel(this.getOwner().getWorldLevel()); + + // Set Hp/Sp + if (lineup != null) { + proto.setHp(this.getCurrentHp(lineup)) + .setSpBar(SpBarInfo.newInstance().setCurSp(this.getCurrentSp(lineup)).setMaxSp(this.getMaxSp())); + } else { + proto.setHp(this.getMaxHp()) + .setSpBar(SpBarInfo.newInstance().setCurSp(this.getMaxSp()).setMaxSp(this.getMaxSp())); + } - // Skill tree - for (var skill : getSkills().entrySet()) { - proto.addSkilltreeList(AvatarSkillTree.newInstance().setPointId(skill.getKey()).setLevel(skill.getValue())); + // Skills + for (var skill : this.getSkillTree().int2IntEntrySet()) { + // Get current skill excel with enhance id + var skillExcel = GameData.getAvatarSkilltree(this.getExcelId(), this.getEnhanceId(), skill.getIntKey(), skill.getIntValue()); + if (skillExcel == null) continue; + + // Encode skilltree info + var info = AvatarSkillTree.newInstance() + .setPointId(skillExcel.getPointID()) + .setLevel(skill.getIntValue()); + + proto.addSkilltreeList(info); } // Build equips @@ -349,8 +448,17 @@ public class GameAvatar extends BaseAvatar implements GameEntity { .setRank(this.getRank()); // Skills - for (var skill : getSkills().entrySet()) { - proto.addSkilltreeList(AvatarSkillTree.newInstance().setPointId(skill.getKey()).setLevel(skill.getValue())); + for (var skill : this.getSkillTree().int2IntEntrySet()) { + // Get current skill excel with enhance id + var skillExcel = GameData.getAvatarSkilltree(this.getExcelId(), this.getEnhanceId(), skill.getIntKey(), skill.getIntValue()); + if (skillExcel == null) continue; + + // Encode skilltree info + var info = AvatarSkillTree.newInstance() + .setPointId(skillExcel.getPointID()) + .setLevel(skill.getIntValue()); + + proto.addSkilltreeList(info); } // Build equips diff --git a/src/main/java/emu/lunarcore/game/battle/Battle.java b/src/main/java/emu/lunarcore/game/battle/Battle.java index 8eb9788..50dcded 100644 --- a/src/main/java/emu/lunarcore/game/battle/Battle.java +++ b/src/main/java/emu/lunarcore/game/battle/Battle.java @@ -4,7 +4,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.function.Consumer; - import emu.lunarcore.GameConstants; import emu.lunarcore.data.GameData; import emu.lunarcore.game.avatar.GameAvatar; @@ -40,7 +39,6 @@ public class Battle { private Int2ObjectMap battleTargets; // TODO use custom battle target object as value type in case we need to save battles to the db // Internal battle data - @Setter private BattleEndStatus result; @Setter private int staminaCost; @Setter private int roundsLimit; @@ -49,8 +47,13 @@ public class Battle { @Setter private int worldLevel; @Setter private int cocoonWave; - // OnFinish Callback - @Setter private Consumer onFinish; + // Results + @Setter private BattleEndStatus result; + @Setter private BattleStatistics stats; + + // Callbacks + @Setter private Consumer onSerialize; + @Setter private Consumer onFinish; private Battle(Player player, PlayerLineup lineup) { this.id = player.getNextBattleId(); @@ -102,8 +105,23 @@ public class Battle { // Get stage BattleStage stage = npcMonster.getCustomStage(); + if (stage == null) { - stage = GameData.getStageExcelMap().get(npcMonster.getStageId()); + // Get stage id from event id + var eventId = npcMonster.getEventId(); + var configEvent = GameData.getPlaneEventExcelMap().get(eventId, npcMonster.getWorldLevel()); + + if (configEvent != null) { + var eventStageId = configEvent.getStageId(); + stage = GameData.getStageExcelMap().get(eventStageId); + } + + // Fallback - Old method of getting stage id from event id + if (stage == null) { + stage = GameData.getStageExcelMap().get(npcMonster.getStageId()); + } + + // Could'nt find any stage associated with this monster if (stage == null) continue; } @@ -130,7 +148,7 @@ public class Battle { // Add wave to battle this.getWaves().add(wave); - + // Add buffs from npc monsters if (npcMonster != null) { // Set wave custom level @@ -157,7 +175,7 @@ public class Battle { } public void addBattleTarget(int key, int targetId, int progress) { - var list = getBattleTargets().computeIfAbsent(key, i -> BattleTargetList.newInstance()); + var list = getBattleTargets().computeIfAbsent(key, x -> BattleTargetList.newInstance()); var battleTarget = BattleTarget.newInstance() .setId(targetId) .setProgress(progress); @@ -251,6 +269,15 @@ public class Battle { proto.addBuffList(buff.toProto()); } + // Add global buffs + for (int avatarId : this.getPlayer().getAvatars().getGlobalBuffAvatars()) { + var globalBuffExcel = GameData.getAvatarGlobalBuffExcelMap().get(avatarId); + if (globalBuffExcel == null) continue; + + var globalBuff = new MazeBuff(globalBuffExcel.getMazeBuffID(), 1, -1, 0xffffffff); + proto.addBuffList(globalBuff.toProto()); + } + // Client turn snapshots if (this.battleEvents != null) { for (int id : this.battleEvents) { @@ -283,6 +310,12 @@ public class Battle { } } + // Callback + if (this.onSerialize != null) { + this.onSerialize.accept(proto); + } + + // Complete return proto; } } diff --git a/src/main/java/emu/lunarcore/game/battle/BattleService.java b/src/main/java/emu/lunarcore/game/battle/BattleService.java index b1caf9c..8ed8e96 100644 --- a/src/main/java/emu/lunarcore/game/battle/BattleService.java +++ b/src/main/java/emu/lunarcore/game/battle/BattleService.java @@ -30,7 +30,7 @@ public class BattleService extends BaseGameService { super(server); } - public void startBattle(Player player, int casterId, int attackedGroupId, MazeSkill castedSkill, IntSet hitTargets, IntSet assistMonsters) { + public void attack(Player player, int casterId, int attackedGroupId, MazeSkill castedSkill, IntSet hitTargets, IntSet assistMonsters) { // Setup variables List targets = new ArrayList<>(); GameAvatar castingAvatar = null; @@ -160,14 +160,9 @@ public class BattleService extends BaseGameService { battle.addBuff(GameConstants.BATTLE_AMBUSH_BUFF_ID, -1, 1); } - // Challenge - if (player.getChallengeInstance() != null) { - player.getChallengeInstance().onBattleStart(battle); - } - - // Rogue - if (player.getRogueInstance() != null) { - player.getRogueInstance().onBattleStart(battle); + // Player game instance callback + if (player.getInstance() != null) { + player.getInstance().onBattleStart(battle); } // Set battle and send rsp packet @@ -180,59 +175,56 @@ public class BattleService extends BaseGameService { player.sendPacket(new PacketSceneCastSkillScRsp(attackedGroupId)); } - public void startBattle(Player player, int stageId) { + public Battle startBattle(Player player, int stageId, int worldLevel) { // Sanity check to make sure player isnt in a battle if (player.isInBattle()) { - player.sendPacket(new PacketSceneEnterStageScRsp(player.getBattle())); - return; + return null; + } + + // Use stage event if found + var configEvent = GameData.getPlaneEventExcelMap().get(stageId, worldLevel); + int battleStageId = stageId; + + if (configEvent != null) { + battleStageId = configEvent.getStageId(); } // Get stage - StageExcel stage = GameData.getStageExcelMap().get(stageId); - if (stage == null) { - player.sendPacket(new PacketSceneCastSkillScRsp()); - return; - } - + StageExcel stage = GameData.getStageExcelMap().get(battleStageId); + if (stage == null) return null; + // Create new battle for player Battle battle = new Battle(player, player.getCurrentLineup(), stage); - - // Challenge - if (player.getChallengeInstance() != null) { - player.getChallengeInstance().onBattleStart(battle); - } - - // Rogue - if (player.getRogueInstance() != null) { - player.getRogueInstance().onBattleStart(battle); - } - player.setBattle(battle); + // Player game instance callback + if (player.getInstance() != null) { + player.getInstance().onBattleStart(battle); + } + // Send packet - player.sendPacket(new PacketSceneEnterStageScRsp(battle)); + return battle; } - public void startCocoon(Player player, int cocoonId, int worldLevel, int wave) { + public Battle startCocoon(Player player, int cocoonId, int worldLevel, int wave) { // Sanity check to make sure player isnt in a battle if (player.isInBattle()) { - return; + return null; } // Get cocoon data - CocoonExcel cocoonExcel = GameData.getCocoonExcel(cocoonId, worldLevel); + CocoonExcel cocoonExcel = GameData.getCocoonExcelMap().get(cocoonId, worldLevel); if (cocoonExcel == null) { - player.sendPacket(new PacketStartCocoonStageScRsp()); - return; + return null; } // Get waves - wave = Math.min(Math.max(1, wave), cocoonExcel.getMaxWave()); + wave = Math.min(Math.max(1, wave), cocoonExcel.getMaxChallengeCnt()); // Sanity check stamina int cost = cocoonExcel.getStaminaCost() * wave; if (player.getStamina() < cost) { - return; + return null; } // Get stages from cocoon @@ -248,8 +240,7 @@ public class BattleService extends BaseGameService { // Sanity if (stages.size() <= 0) { - player.sendPacket(new PacketStartCocoonStageScRsp()); - return; + return null; } // Build battle from cocoon data @@ -260,9 +251,8 @@ public class BattleService extends BaseGameService { battle.setStaminaCost(cost); player.setBattle(battle); - - // Send packet - player.sendPacket(new PacketStartCocoonStageScRsp(battle, cocoonId, wave)); + + return battle; } public Battle finishBattle(Player player, BattleEndStatus result, BattleStatistics stats) { @@ -271,11 +261,15 @@ public class BattleService extends BaseGameService { return null; } - // Get battle object and setup variables + // Get battle object Battle battle = player.getBattle(); - battle.setResult(result); - int minimumHp = 0; + // Set results + battle.setResult(result); + battle.setStats(stats); + + // For handling battle result + int minimumHp = 0; boolean updateStatus = true; boolean teleportToAnchor = false; @@ -350,19 +344,14 @@ public class BattleService extends BaseGameService { } } - // Challenge - if (player.getChallengeInstance() != null) { - player.getChallengeInstance().onBattleFinish(battle, result, stats); - } - - // Rogue - if (player.getRogueInstance() != null) { - player.getRogueInstance().onBattleFinish(battle, result, stats); + // Player game instance callback + if (player.getInstance() != null) { + player.getInstance().onBattleFinish(battle, result, stats); } // Battle callback if (battle.getOnFinish() != null) { - battle.getOnFinish().accept(stats); + battle.getOnFinish().accept(battle); } // Done - Clear battle object from player @@ -392,7 +381,7 @@ public class BattleService extends BaseGameService { // Get mapping info id int mappingInfoId = ((stageId / 10) % 100) + 1100; int mappingInfoLevel = stageId % 10; - var mappingInfoExcel = GameData.getMappingInfoExcel(mappingInfoId, mappingInfoLevel); + var mappingInfoExcel = GameData.getMappingInfoExcelMap().get(mappingInfoId, mappingInfoLevel); if (mappingInfoExcel != null && mappingInfoExcel.getFarmType() != null && mappingInfoExcel.getFarmType().equals("ELEMENT")) { battle.setMappingInfoId(mappingInfoId); battle.setWorldLevel(mappingInfoLevel); diff --git a/src/main/java/emu/lunarcore/game/battle/skills/MazeSkillSetAttackTargetMonsterDie.java b/src/main/java/emu/lunarcore/game/battle/skills/MazeSkillSetAttackTargetMonsterDie.java index 04e5752..9ae9c27 100644 --- a/src/main/java/emu/lunarcore/game/battle/skills/MazeSkillSetAttackTargetMonsterDie.java +++ b/src/main/java/emu/lunarcore/game/battle/skills/MazeSkillSetAttackTargetMonsterDie.java @@ -7,7 +7,6 @@ import emu.lunarcore.game.enums.MonsterRank; import emu.lunarcore.game.inventory.ItemParamMap; import emu.lunarcore.game.scene.entity.EntityMonster; import emu.lunarcore.game.scene.entity.GameEntity; -import emu.lunarcore.util.Utils; public class MazeSkillSetAttackTargetMonsterDie extends MazeSkillAction { @@ -21,12 +20,6 @@ public class MazeSkillSetAttackTargetMonsterDie extends MazeSkillAction { var drops = new ItemParamMap(); monster.calculateDrops(drops); caster.getOwner().getInventory().addItems(drops.toItemList(), true); - - // Rogue TODO optimize - if (caster.getOwner().getRogueInstance() != null) { - caster.getOwner().getRogueInstance().createBuffSelect(1); - caster.getOwner().getRogueInstance().addCoin(Utils.randomRange(20, 40)); - } } } } diff --git a/src/main/java/emu/lunarcore/game/challenge/ChallengeEntityLoader.java b/src/main/java/emu/lunarcore/game/challenge/ChallengeEntityLoader.java index 14674c4..e74c733 100644 --- a/src/main/java/emu/lunarcore/game/challenge/ChallengeEntityLoader.java +++ b/src/main/java/emu/lunarcore/game/challenge/ChallengeEntityLoader.java @@ -2,12 +2,12 @@ package emu.lunarcore.game.challenge; import emu.lunarcore.GameConstants; import emu.lunarcore.data.GameData; +import emu.lunarcore.data.common.ExcelMonsterParam; import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.MonsterInfo; import emu.lunarcore.data.config.NpcInfo; import emu.lunarcore.data.config.GroupInfo.GroupLoadSide; import emu.lunarcore.data.excel.NpcMonsterExcel; -import emu.lunarcore.data.excel.ChallengeExcel.ChallengeMonsterInfo; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.SceneEntityLoader; import emu.lunarcore.game.scene.entity.EntityMonster; @@ -19,7 +19,7 @@ public class ChallengeEntityLoader extends SceneEntityLoader { @Override public void onSceneLoad(Scene scene) { // Get challenge instance - ChallengeInstance instance = scene.getPlayer().getChallengeInstance(); + ChallengeInstance instance = scene.getPlayer().getInstance(ChallengeInstance.class); if (instance == null) return; // Setup first stage @@ -51,11 +51,11 @@ public class ChallengeEntityLoader extends SceneEntityLoader { @Override public EntityMonster loadMonster(Scene scene, GroupInfo group, MonsterInfo monsterInfo) { // Get challenge instance - ChallengeInstance instance = scene.getPlayer().getChallengeInstance(); + ChallengeInstance instance = scene.getPlayer().getInstance(ChallengeInstance.class); if (instance == null) return null; // Get current stage monster infos - Int2ObjectMap challengeMonsters = null; + Int2ObjectMap challengeMonsters = null; if (instance.getExcel().getMazeGroupID1() == group.getId()) { challengeMonsters = instance.getExcel().getChallengeMonsters1(); } else if (instance.getExcel().getMazeGroupID2() == group.getId()) { diff --git a/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java b/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java index f09acc6..6db6480 100644 --- a/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java +++ b/src/main/java/emu/lunarcore/game/challenge/ChallengeInstance.java @@ -5,6 +5,7 @@ import emu.lunarcore.data.GameData; import emu.lunarcore.data.excel.ChallengeExcel; import emu.lunarcore.game.battle.Battle; import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.player.PlayerGameInstance; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.entity.EntityMonster; import emu.lunarcore.proto.BattleEndReasonOuterClass.BattleEndReason; @@ -13,8 +14,10 @@ import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics; import emu.lunarcore.proto.ChallengeInfoOuterClass.ChallengeInfo; import emu.lunarcore.proto.ChallengeStatusOuterClass.ChallengeStatus; import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; +import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.send.PacketChallengeLineupNotify; import emu.lunarcore.server.packet.send.PacketChallengeSettleNotify; +import emu.lunarcore.server.packet.send.PacketEnterSceneByServerScNotify; import emu.lunarcore.server.packet.send.PacketSyncLineupNotify; import emu.lunarcore.util.Position; import it.unimi.dsi.fastutil.ints.IntArrayList; @@ -23,8 +26,7 @@ import lombok.Getter; import lombok.Setter; @Getter @Entity(useDiscriminator = false) -public class ChallengeInstance { - private transient Player player; +public class ChallengeInstance extends PlayerGameInstance { private transient ChallengeExcel excel; private Position startPos; private Position startRot; @@ -47,7 +49,7 @@ public class ChallengeInstance { public ChallengeInstance() {} public ChallengeInstance(Player player, ChallengeExcel excel) { - this.player = player; + this.setPlayer(player); this.excel = excel; this.challengeId = excel.getId(); this.startPos = new Position(); @@ -62,10 +64,6 @@ public class ChallengeInstance { return this.getPlayer().getScene(); } - private int getChallengeId() { - return this.getExcel().getId(); - } - public ChallengeType getType() { return this.getExcel().getType(); } @@ -103,9 +101,12 @@ public class ChallengeInstance { buffs.add(buff); } + // Battle events + + @Override public void onBattleStart(Battle battle) { // Set cycle limit - battle.setRoundsLimit(player.getChallengeInstance().getRoundsLeft()); + battle.setRoundsLimit(this.getRoundsLeft()); // Add story buffs if (this.getBuffs() != null) { @@ -120,7 +121,7 @@ public class ChallengeInstance { // Add story battle targets if (this.getExcel().getType() == ChallengeType.STORY) { // Add base score counter - battle.addBattleTarget(1, 10002, this.getTotalScore()); + battle.addBattleTarget(1, 10001, this.getTotalScore()); // Add battle targets from story excel for (int id : getExcel().getStoryExcel().getBattleTargetID()) { battle.addBattleTarget(5, id, this.getTotalScore()); @@ -132,6 +133,7 @@ public class ChallengeInstance { } } + @Override public void onBattleFinish(Battle battle, BattleEndStatus result, BattleStatistics stats) { // Add challenge score if (this.isStory()) { @@ -156,7 +158,7 @@ public class ChallengeInstance { }); // Get monster count in stage - long monsters = player.getScene().getEntities().values().stream().filter(e -> e instanceof EntityMonster).count(); + long monsters = getPlayer().getScene().getEntities().values().stream().filter(e -> e instanceof EntityMonster).count(); if (monsters == 0) { this.advanceStage(); @@ -168,14 +170,14 @@ public class ChallengeInstance { } // Set saved technique points (This will be restored if the player resets the challenge) - this.savedMp = player.getCurrentLineup().getMp(); + this.savedMp = getPlayer().getCurrentLineup().getMp(); break; case BATTLE_END_QUIT: // Reset technique points and move back to start position - var lineup = player.getCurrentLineup(); + var lineup = getPlayer().getCurrentLineup(); lineup.setMp(this.savedMp); - player.moveTo(this.getStartPos(), this.getStartRot()); - player.sendPacket(new PacketSyncLineupNotify(lineup)); + getPlayer().moveTo(this.getStartPos(), this.getStartRot()); + getPlayer().sendPacket(new PacketSyncLineupNotify(lineup)); break; default: // Determine challenge result @@ -185,12 +187,14 @@ public class ChallengeInstance { // Fail challenge this.setStatus(ChallengeStatus.CHALLENGE_FAILED); // Send challenge result data - player.sendPacket(new PacketChallengeSettleNotify(this)); + getPlayer().sendPacket(new PacketChallengeSettleNotify(this)); } break; } } + // Challenge logic + private void advanceStage() { // Progress to the next stage if (this.currentStage >= excel.getStageNum()) { @@ -198,9 +202,9 @@ public class ChallengeInstance { this.setStatus(ChallengeStatus.CHALLENGE_FINISH); this.stars = this.calculateStars(); // Save history - player.getChallengeManager().addHistory(this.getChallengeId(), this.getStars(), this.getTotalScore(), this.getType() == ChallengeType.BOSS); + getPlayer().getChallengeManager().addHistory(this.getChallengeId(), this.getStars(), this.getTotalScore(), this.getType() == ChallengeType.BOSS); // Send challenge result data - player.sendPacket(new PacketChallengeSettleNotify(this)); + getPlayer().sendPacket(new PacketChallengeSettleNotify(this)); } else { // Increment and reset stage this.currentStage++; @@ -208,18 +212,22 @@ public class ChallengeInstance { this.getScene().loadGroup(excel.getMazeGroupID2()); // Change player line up this.setCurrentExtraLineup(ExtraLineupType.LINEUP_CHALLENGE_2); - player.getLineupManager().setCurrentExtraLineup(this.getCurrentExtraLineup(), true); - player.sendPacket(new PacketChallengeLineupNotify(this.getCurrentExtraLineup())); - this.savedMp = player.getCurrentLineup().getMp(); - // Move player - player.moveTo(this.getStartPos(), this.getStartRot()); + getPlayer().getLineupManager().setCurrentExtraLineup(this.getCurrentExtraLineup(), true); + getPlayer().sendPacket(new PacketChallengeLineupNotify(this.getCurrentExtraLineup())); + this.savedMp = getPlayer().getCurrentLineup().getMp(); + // Move player TODO hacky + //getPlayer().moveTo(this.getStartPos(), this.getStartRot()); + getPlayer().getPos().set(this.getStartPos()); + getPlayer().getRot().set(this.getStartRot()); + getPlayer().getSession().send(CmdId.SyncServerSceneChangeNotify); + getPlayer().getSession().send(new PacketEnterSceneByServerScNotify(this.getPlayer())); } } public void onUpdate() { // End challenge if its done if (status != ChallengeStatus.CHALLENGE_DOING_VALUE) { - getPlayer().setChallengeInstance(null); + getPlayer().setInstance(null); } } @@ -254,17 +262,6 @@ public class ChallengeInstance { return Math.min(stars, 7); } - - public boolean validate(Player player) { - if (this.player == null) { - this.player = player; - // Force extra lineup type to be set during login - this.player.getLineupManager().setCurrentExtraLineup(this.getCurrentExtraLineup(), false); - } - - this.excel = GameData.getChallengeExcelMap().get(this.challengeId); - return this.excel != null; - } public ChallengeInfo toProto() { var proto = ChallengeInfo.newInstance() @@ -295,4 +292,9 @@ public class ChallengeInstance { return proto; } -} + + @Override + public void onLeave() { + + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/challenge/ChallengeManager.java b/src/main/java/emu/lunarcore/game/challenge/ChallengeManager.java index e18043c..eb57c90 100644 --- a/src/main/java/emu/lunarcore/game/challenge/ChallengeManager.java +++ b/src/main/java/emu/lunarcore/game/challenge/ChallengeManager.java @@ -5,21 +5,25 @@ import java.util.Arrays; import java.util.List; import java.util.stream.Stream; -import emu.lunarcore.GameConstants; import emu.lunarcore.LunarCore; import emu.lunarcore.data.GameData; import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.common.ItemParam; import emu.lunarcore.data.excel.ChallengeExcel; +import emu.lunarcore.game.inventory.ItemParamMap; import emu.lunarcore.game.player.BasePlayerManager; import emu.lunarcore.game.player.Player; import emu.lunarcore.game.player.lineup.PlayerLineup; +import emu.lunarcore.proto.ChallengePeakMobLineupInfoOuterClass.ChallengePeakMobLineupInfo; import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; +import emu.lunarcore.proto.ItemOuterClass.Item; import emu.lunarcore.proto.TakenChallengeRewardInfoOuterClass.TakenChallengeRewardInfo; import emu.lunarcore.server.packet.Retcode; +import emu.lunarcore.server.packet.send.PacketChallengePeakGroupDataUpdateScNotify; import emu.lunarcore.server.packet.send.PacketStartChallengeScRsp; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.ints.IntArrayList; +import it.unimi.dsi.fastutil.ints.IntList; import lombok.Getter; import us.hebi.quickbuf.RepeatedInt; @@ -27,30 +31,22 @@ import us.hebi.quickbuf.RepeatedInt; public class ChallengeManager extends BasePlayerManager { private Int2ObjectMap history; private Int2ObjectMap takenRewards; - - private RepeatedInt latest_lineup1; - private RepeatedInt latest_lineup2; - private int latest_firstHalfBuff; - private int latest_secondHalfBuff; + + private RepeatedInt lastLineup1; + private RepeatedInt lastLineup2; + private int lastFirstHalfBuff; + private int lastSecondHalfBuff; + + private Int2ObjectMap challengePeakAvatars; public ChallengeManager(Player player) { super(player); this.history = new Int2ObjectOpenHashMap<>(); this.takenRewards = new Int2ObjectOpenHashMap<>(); - this.latest_lineup1 = RepeatedInt.newEmptyInstance(); - this.latest_lineup2 = RepeatedInt.newEmptyInstance(); - this.latest_firstHalfBuff = 0; - this.latest_secondHalfBuff = 0; + this.challengePeakAvatars = new Int2ObjectOpenHashMap<>(); } public void startChallenge(int challengeId, RepeatedInt lineup1, RepeatedInt lineup2, int firstHalfBuff, int secondHalfBuff) { - - // temp, will change later - this.latest_lineup1 = lineup1; - this.latest_lineup2 = lineup2; - this.latest_firstHalfBuff = firstHalfBuff; - this.latest_secondHalfBuff = secondHalfBuff; - // Get challenge excel ChallengeExcel excel = GameData.getChallengeExcelMap().get(challengeId); if (excel == null) { @@ -75,7 +71,7 @@ public class ChallengeManager extends BasePlayerManager { avatar.setCurrentSp(lineup, avatar.getMaxSp() / 2); }); // Set technique points to full - lineup.setMp(GameConstants.MAX_MP); + lineup.setMp(lineup.getMaxMp()); } if (excel.getStageNum() >= 2) { @@ -94,12 +90,12 @@ public class ChallengeManager extends BasePlayerManager { avatar.setCurrentSp(lineup, avatar.getMaxSp() / 2); }); // Set technique points to full - lineup.setMp(GameConstants.MAX_MP); + lineup.setMp(lineup.getMaxMp()); } // Set challenge data for player ChallengeInstance instance = new ChallengeInstance(getPlayer(), excel); - getPlayer().setChallengeInstance(instance); + getPlayer().setInstance(instance); // Set first lineup before we enter scenes getPlayer().getLineupManager().setCurrentExtraLineup(instance.getCurrentExtraLineup(), false); @@ -109,7 +105,7 @@ public class ChallengeManager extends BasePlayerManager { if (!success) { // Reset lineup/instance if entering scene failed getPlayer().getLineupManager().setCurrentExtraLineup(0, false); - getPlayer().setChallengeInstance(null); + getPlayer().setInstance(null); // Send error packet getPlayer().sendPacket(new PacketStartChallengeScRsp(Retcode.CHALLENGE_NOT_EXIST)); return; @@ -120,6 +116,12 @@ public class ChallengeManager extends BasePlayerManager { instance.getStartRot().set(getPlayer().getRot()); instance.setSavedMp(getPlayer().getCurrentLineup().getMp()); + // Save latest lineup/buffs + this.lastLineup1 = lineup1; + this.lastLineup2 = lineup2; + this.lastFirstHalfBuff = firstHalfBuff; + this.lastSecondHalfBuff = secondHalfBuff; + // Set story buffs if (excel.getType() != ChallengeType.MEMORY && (firstHalfBuff != 0 || secondHalfBuff != 0)) { // TODO: set story buffs for each stage individually @@ -133,6 +135,66 @@ public class ChallengeManager extends BasePlayerManager { getPlayer().sendPacket(new PacketStartChallengeScRsp(getPlayer(), challengeId, lineup1, lineup2)); } + public void setChallengePeakMobLineupAvatars(int groupId, Iterable infos) { + var group = GameData.getChallengePeakGroupExcelMap().get(groupId); + if (group == null) { + return; + } + + // Clear avatars + this.getChallengePeakAvatars().clear(); + + for (var info : infos) { + var lineup = new IntArrayList(); + + for (int avatarId : info.getChallengeAvatarIdList()) { + lineup.add(avatarId); + } + + this.getChallengePeakAvatars().put(info.getChallengePeakId(), lineup); + } + + // Update group + this.getPlayer().sendPacket(new PacketChallengePeakGroupDataUpdateScNotify(groupId, this.getChallengePeakAvatars())); + } + + public void startChallengePeak(int levelId) { + var level = GameData.getChallengePeakExcelMap().get(levelId); + if (level == null) { + return; + } + + var lineupAvatars = this.getChallengePeakAvatars().get(levelId); + if (lineupAvatars == null) { + return; + } + + // Get lineup + PlayerLineup lineup = getPlayer().getLineupManager().getExtraLineupByType(ExtraLineupType.LINEUP_CHALLENGE_VALUE); + + // Set lineup + lineup.replace(lineupAvatars); + + // Make sure this lineup has avatars set + if (lineup.getAvatars().size() == 0) { + return; + } + + // Reset hp/sp + lineup.forEachAvatar(avatar -> { + avatar.setCurrentHp(lineup, 10000); + avatar.setCurrentSp(lineup, avatar.getMaxSp() / 2); + }); + + // Set technique points to full + lineup.setMp(lineup.getMaxMp()); + + // Set first lineup before we enter scenes + getPlayer().getLineupManager().setCurrentExtraLineup(ExtraLineupType.LINEUP_CHALLENGE_VALUE, false); + + // TODO + } + public synchronized void addHistory(int challengeId, int stars, int score, boolean createExtraData) { // Dont write challenge history if the player didnt get any stars if (stars <= 0) return; @@ -179,7 +241,7 @@ public class ChallengeManager extends BasePlayerManager { // Rewards List rewardInfos = new ArrayList<>(); - List rewardItems = new ArrayList<>(); + ItemParamMap rewardItems = new ItemParamMap(); // Get challenge rewards for (var challengeReward : challengeRewardLine) { @@ -189,7 +251,7 @@ public class ChallengeManager extends BasePlayerManager { } // Get reward info - var reward = this.getTakenRewards().computeIfAbsent(groupId, id -> new ChallengeGroupReward(getPlayer(), groupId)); + var reward = this.getTakenRewards().computeIfAbsent(groupId, x -> new ChallengeGroupReward(getPlayer(), groupId)); // Check if reward has been taken if (reward.hasTakenReward(challengeReward.getStarCount())) { @@ -207,16 +269,25 @@ public class ChallengeManager extends BasePlayerManager { var proto = TakenChallengeRewardInfo.newInstance() .setStarCount(challengeReward.getStarCount()); - for (ItemParam itemParam : rewardExcel.getRewards()) { - proto.getMutableReward().addItemList(itemParam.toProto()); - rewardItems.add(itemParam); + // Create item param protos + for (var entry : rewardExcel.getRewards().int2IntEntrySet()) { + Item itemProto = Item.newInstance() + .setItemId(entry.getIntKey()) + .setNum(entry.getIntValue()); + + proto.getMutableRewardList().addItemList(itemProto); } - + rewardInfos.add(proto); + + // Add to reward item param map + rewardItems.add(rewardExcel.getRewards()); } // Add items to inventory - getPlayer().getInventory().addItemParams(rewardItems); + getPlayer().getInventory().addItems(rewardItems); + + // Return reward infos return rewardInfos; } diff --git a/src/main/java/emu/lunarcore/game/chat/ChatManager.java b/src/main/java/emu/lunarcore/game/chat/ChatManager.java index 2b82c25..fba8811 100644 --- a/src/main/java/emu/lunarcore/game/chat/ChatManager.java +++ b/src/main/java/emu/lunarcore/game/chat/ChatManager.java @@ -33,7 +33,7 @@ public class ChatManager extends BasePlayerManager { // Add to chat history if (GameConstants.MAX_CHAT_HISTORY > 0) { // Add to history list - var list = getHistory().computeIfAbsent(targetPlayerUid, id -> new ObjectArrayList<>()); + var list = getHistory().computeIfAbsent(targetPlayerUid, x -> new ObjectArrayList<>()); list.add(message); // Check max size while (list.size() >= GameConstants.MAX_CHAT_HISTORY) { @@ -62,7 +62,7 @@ public class ChatManager extends BasePlayerManager { if (target == null) { return; } - + // Create chat packet ChatMessage message = new ChatMessage(this.getPlayer().getUid(), targetUid, text); diff --git a/src/main/java/emu/lunarcore/game/chat/ChatMessage.java b/src/main/java/emu/lunarcore/game/chat/ChatMessage.java index f695cfb..ebf5d41 100644 --- a/src/main/java/emu/lunarcore/game/chat/ChatMessage.java +++ b/src/main/java/emu/lunarcore/game/chat/ChatMessage.java @@ -1,7 +1,8 @@ package emu.lunarcore.game.chat; import emu.lunarcore.LunarCore; -import emu.lunarcore.proto.ChatOuterClass.Chat; +import emu.lunarcore.proto.ChatContentInfoOuterClass.ChatContentInfo; +import emu.lunarcore.proto.ChatInfoOuterClass.ChatInfo; import emu.lunarcore.proto.MsgTypeOuterClass.MsgType; import lombok.Getter; @@ -33,17 +34,25 @@ public class ChatMessage { return this.getText() != null ? MsgType.MSG_TYPE_CUSTOM_TEXT : MsgType.MSG_TYPE_EMOJI; } - public Chat toProto() { - var proto = Chat.newInstance() - .setSenderUid(this.getFromUid()) - .setSentTime(LunarCore.convertToServerTime(this.getTime()) / 1000) - .setMsgType(this.getType()) - .setEmote(this.getEmote()); + public ChatInfo toProto() { + var proto = ChatInfo.newInstance() + .setSentTime(LunarCore.convertToServerTime(this.getTime()) / 1000); + + proto.getMutableChatHeader() + .setUid(this.getFromUid()); + + var content = ChatContentInfo.newInstance(); if (this.getText() != null) { - proto.setText(text); + content.setMsgType(MsgType.MSG_TYPE_CUSTOM_TEXT); + content.getMutableChatMsg().setChatText(this.getText()); + } else { + content.setMsgType(MsgType.MSG_TYPE_EMOJI); + content.getMutableChatMsg().setEmoteId(this.getEmote()); } + proto.addChatContentList(content); + return proto; } } diff --git a/src/main/java/emu/lunarcore/game/drops/DropParam.java b/src/main/java/emu/lunarcore/game/drops/DropParam.java index 8c16a8b..da67129 100644 --- a/src/main/java/emu/lunarcore/game/drops/DropParam.java +++ b/src/main/java/emu/lunarcore/game/drops/DropParam.java @@ -96,7 +96,7 @@ public class DropParam { if (excel.isEquippable()) { // Add relic/equipment drop if (rates.getEquip() > 0) { - drops.addTo(itemId, 1); + drops.add(itemId, 1); count = count.subtract(BigDecimal.valueOf(1.0 / rates.getEquip())); } else { // To prevent a rate of 0 from freezing the server @@ -105,15 +105,15 @@ public class DropParam { } else { // Apply server rates to drop amount amount int amount = switch (itemId) { - case GameConstants.TRAILBLAZER_EXP_ID -> (int) Math.floor(count.doubleValue() * rates.getExp()); - case GameConstants.MATERIAL_COIN_ID -> (int) Math.floor(count.doubleValue() * rates.getCredit()); - case GameConstants.MATERIAL_HCOIN_ID -> (int) Math.floor(count.doubleValue() * rates.getJade()); - default -> (int) Math.floor(count.doubleValue() * rates.getMaterial()); + case GameConstants.TRAILBLAZER_EXP_ID -> (int) Math.floor(count.doubleValue() * rates.getExp()); + case GameConstants.MATERIAL_COIN_ID -> (int) Math.floor(count.doubleValue() * rates.getCredit()); + case GameConstants.MATERIAL_HCOIN_ID -> (int) Math.floor(count.doubleValue() * rates.getJade()); + default -> (int) Math.floor(count.doubleValue() * rates.getMaterial()); }; // Add material/virtual drop if (amount > 0) { - drops.addTo(itemId, amount); + drops.add(itemId, amount); } // To prevent a rate of 0 from freezing the server diff --git a/src/main/java/emu/lunarcore/game/drops/DropService.java b/src/main/java/emu/lunarcore/game/drops/DropService.java index a678b98..c59b602 100644 --- a/src/main/java/emu/lunarcore/game/drops/DropService.java +++ b/src/main/java/emu/lunarcore/game/drops/DropService.java @@ -1,23 +1,32 @@ package emu.lunarcore.game.drops; -import java.util.ArrayList; -import java.util.List; - import emu.lunarcore.GameConstants; import emu.lunarcore.data.GameData; import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.game.enums.ItemRarity; import emu.lunarcore.game.inventory.ItemParamMap; -import emu.lunarcore.game.inventory.GameItem; import emu.lunarcore.game.scene.entity.EntityMonster; import emu.lunarcore.server.game.BaseGameService; import emu.lunarcore.server.game.GameServer; import emu.lunarcore.util.Utils; public class DropService extends BaseGameService { + private int[] baseRelicSets = new int[] { + 1020, 1110, // World 1-3 + 1150, 1180, // World 4 + 1220, 1240 // World 5 + }; public DropService(GameServer server) { super(server); } + + private int getRandomRelicId(ItemRarity rarity) { + // TODO get relic set by world id + int baseRelicSet = Utils.randomElement(baseRelicSets); + int relicId = ((rarity.getVal() + 1) * 10000) + baseRelicSet + Utils.randomRange(1, 4); + return relicId; + } // TODO this isnt the right way drops are calculated on the official server... but its good enough for now public void calculateDrops(Battle battle) { @@ -26,17 +35,12 @@ public class DropService extends BaseGameService { // Calculate drops from monsters for (EntityMonster monster : battle.getNpcMonsters()) { - var dropExcel = GameData.getMonsterDropExcel(monster.getExcel().getId(), monster.getWorldLevel()); - if (dropExcel == null) continue; - - for (var dropParam : dropExcel.getDropList()) { - dropParam.roll(dropMap); - } + monster.calculateDrops(dropMap); } // Mapping info if (battle.getMappingInfoId() > 0) { - var mapInfoExcel = GameData.getMappingInfoExcel(battle.getMappingInfoId(), battle.getWorldLevel()); + var mapInfoExcel = GameData.getMappingInfoExcelMap().get(battle.getMappingInfoId(), battle.getWorldLevel()); if (mapInfoExcel != null) { int rolls = Math.max(battle.getCocoonWave(), 1); for (var dropParam : mapInfoExcel.getDropList()) { @@ -62,12 +66,45 @@ public class DropService extends BaseGameService { } // TODO filler - public List calculateDropsFromProp(int propId) { - List drops = new ArrayList<>(); + public ItemParamMap calculateChestDrops(int worldId, int propId) { + // Get world number + int worldIndex = (int) Math.floor(worldId / 100) - 1; - drops.add(new GameItem(GameConstants.MATERIAL_HCOIN_ID, 5)); - drops.add(new GameItem(GameConstants.TRAILBLAZER_EXP_ID, 5)); - drops.add(new GameItem(GameConstants.MATERIAL_COIN_ID, Utils.randomRange(20, 100))); + // Setup drop map + var drops = new ItemParamMap(); + + // Setup reward amounts + int expReward = 5; + int coinReward = 500; + + // Change reward amounts based on chest type + int propIndex = propId % 10; + if (propIndex == 2) { + expReward = 20; + coinReward = 2500; + } else if (propIndex == 3) { + expReward = 30; + coinReward = 0; + } + + // Exp + drops.add(GameConstants.MATERIAL_HCOIN_ID, expReward); + drops.add(GameConstants.TRAILBLAZER_EXP_ID, expReward); + drops.add(212, 3); // Avatar exp material + drops.add(232, 1); // Relic exp material + + // Relics + for (int i = 0; i < 2; i++) { + int relicId = this.getRandomRelicId(ItemRarity.Rare); + drops.add(relicId, 1); + } + + // Offering materials + int offeringItemId = 120000 + worldIndex; + drops.add(offeringItemId, 15); + + // Coins + drops.add(GameConstants.MATERIAL_COIN_ID, coinReward); return drops; } diff --git a/src/main/java/emu/lunarcore/game/enums/AvatarBaseType.java b/src/main/java/emu/lunarcore/game/enums/AvatarBaseType.java index 952fc52..bb62f3e 100644 --- a/src/main/java/emu/lunarcore/game/enums/AvatarBaseType.java +++ b/src/main/java/emu/lunarcore/game/enums/AvatarBaseType.java @@ -11,7 +11,8 @@ public enum AvatarBaseType { Shaman (4), Warlock (5), Knight (6), - Priest (7); + Priest (7), + Memory (8); private final int val; diff --git a/src/main/java/emu/lunarcore/game/enums/AvatarPropertyType.java b/src/main/java/emu/lunarcore/game/enums/AvatarPropertyType.java index ad9d962..a3856bb 100644 --- a/src/main/java/emu/lunarcore/game/enums/AvatarPropertyType.java +++ b/src/main/java/emu/lunarcore/game/enums/AvatarPropertyType.java @@ -65,7 +65,24 @@ public enum AvatarPropertyType { BreakDamageAddedRatioBase (59), MaxSP (60), Count (61), - SpecialMaxSP (62); + SpecialMaxSP (62), + ExtraAttackAddedRatio1 (63), + ExtraAttackAddedRatio2 (64), + ExtraAttackAddedRatio3 (65), + ExtraAttackAddedRatio4 (66), + ExtraDefenceAddedRatio1 (67), + ExtraDefenceAddedRatio2 (68), + ExtraDefenceAddedRatio3 (69), + ExtraDefenceAddedRatio4 (70), + ExtraHPAddedRatio1 (71), + ExtraHPAddedRatio2 (72), + ExtraHPAddedRatio3 (73), + ExtraHPAddedRatio4 (74), + ExtraHealAddedRadio (75), + ExtraAllDamageTypeAddedRatio1 (76), + ExtraAllDamageTypeAddedRatio2 (77), + ExtraAllDamageTypeAddedRatio3 (78), + ExtraAllDamageTypeAddedRatio4 (79); @Getter private int val; diff --git a/src/main/java/emu/lunarcore/game/enums/ItemSubType.java b/src/main/java/emu/lunarcore/game/enums/ItemSubType.java index 2e1c142..30c2c62 100644 --- a/src/main/java/emu/lunarcore/game/enums/ItemSubType.java +++ b/src/main/java/emu/lunarcore/game/enums/ItemSubType.java @@ -23,6 +23,8 @@ public enum ItemSubType { TravelBrochurePaster (511), ChessRogueDiceSurface (512), RogueMedal (513), + PamSkin (514), + FindChest (515), Material (601), Eidolon (602), MuseumExhibit (603), @@ -30,6 +32,7 @@ public enum ItemSubType { AetherSkill (605), AetherSpirit (606), FightFestSkill (607), + TrainPartyDiyMaterial (608), Mission (701), RelicSetShowOnly (801), RelicRarityShowOnly (802), diff --git a/src/main/java/emu/lunarcore/game/enums/ItemUseMethod.java b/src/main/java/emu/lunarcore/game/enums/ItemUseMethod.java index 0432ab0..da94622 100644 --- a/src/main/java/emu/lunarcore/game/enums/ItemUseMethod.java +++ b/src/main/java/emu/lunarcore/game/enums/ItemUseMethod.java @@ -22,7 +22,8 @@ public enum ItemUseMethod { AutoConversionItem (801), TravelBrochureUse (901), TravelBrochurePasterUse (902), - PetSummonRecall (1001); + PetSummonRecall (1001), + FightFestMemorialPaper (2501); private int val; diff --git a/src/main/java/emu/lunarcore/game/enums/MissionStatusType.java b/src/main/java/emu/lunarcore/game/enums/MissionStatusType.java new file mode 100644 index 0000000..4f2d6b5 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/MissionStatusType.java @@ -0,0 +1,17 @@ +package emu.lunarcore.game.enums; + +import lombok.Getter; + +@Getter +public enum MissionStatusType { + MISSION_NONE (0), + MISSION_DOING (1), + MISSION_FINISH (2), + MISSION_PREPARED (3); + + private final int val; + + private MissionStatusType(int value) { + this.val = value; + } +} diff --git a/src/main/java/emu/lunarcore/game/enums/PlaneType.java b/src/main/java/emu/lunarcore/game/enums/PlaneType.java index 9a5268b..85f40a5 100644 --- a/src/main/java/emu/lunarcore/game/enums/PlaneType.java +++ b/src/main/java/emu/lunarcore/game/enums/PlaneType.java @@ -1,8 +1,9 @@ package emu.lunarcore.game.enums; import emu.lunarcore.game.challenge.ChallengeEntityLoader; -import emu.lunarcore.game.rogue.RogueEntityLoader; import emu.lunarcore.game.scene.SceneEntityLoader; +import emu.lunarcore.game.scene.TrainEntityLoader; +import emu.lunarcore.game.trial.TrialEntityLoader; import lombok.Getter; @Getter @@ -10,12 +11,12 @@ public enum PlaneType { Unknown (0), Town (1), Maze (2), - Train (3), + Train (3, new TrainEntityLoader()), Challenge (4, new ChallengeEntityLoader()), - Rogue (5, new RogueEntityLoader()), + Rogue (5), Raid (6), AetherDivide (7), - TrialActivity (8); + TrialActivity (8, new TrialEntityLoader()); private final int val; private final SceneEntityLoader sceneEntityLoader; diff --git a/src/main/java/emu/lunarcore/game/enums/PropType.java b/src/main/java/emu/lunarcore/game/enums/PropType.java index 9cabced..e9479eb 100644 --- a/src/main/java/emu/lunarcore/game/enums/PropType.java +++ b/src/main/java/emu/lunarcore/game/enums/PropType.java @@ -32,7 +32,9 @@ public enum PropType { PROP_MAP_ROTATION_CHARGER (25), PROP_MAP_ROTATION_VOLUME (26), PROP_MAP_ROTATION_SWITCHER (27), - PROP_BOXMAN_BINDED (28); + PROP_BOXMAN_BINDED (28), + PROP_TIMELINE_CONTROL (29), + PROP_MAZE_JIGSAW (30); private final int val; diff --git a/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java b/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java index 0423240..f5e6a58 100644 --- a/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java +++ b/src/main/java/emu/lunarcore/game/enums/RogueDialogueType.java @@ -5,4 +5,4 @@ public enum RogueDialogueType { Story, Event, Store -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/enums/RogueMiracleCategory.java b/src/main/java/emu/lunarcore/game/enums/RogueMiracleCategory.java new file mode 100644 index 0000000..9898059 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/enums/RogueMiracleCategory.java @@ -0,0 +1,19 @@ +package emu.lunarcore.game.enums; + +import lombok.Getter; + +@Getter +public enum RogueMiracleCategory { + None (0), + Common (1), + Rare (2), + Legendary (3), + Negative (4), + Hex (5); + + private final int val; + + private RogueMiracleCategory(int value) { + this.val = value; + } +} diff --git a/src/main/java/emu/lunarcore/game/enums/StageType.java b/src/main/java/emu/lunarcore/game/enums/StageType.java index e5b1860..cc6a097 100644 --- a/src/main/java/emu/lunarcore/game/enums/StageType.java +++ b/src/main/java/emu/lunarcore/game/enums/StageType.java @@ -35,7 +35,8 @@ public enum StageType { SwordTraining (29), StarFightActivity (30), SummonActivity (31), - FightFest (32); + FightFest (32), + GridFightActivity (33); @Getter private final int val; diff --git a/src/main/java/emu/lunarcore/game/friends/Friendship.java b/src/main/java/emu/lunarcore/game/friends/Friendship.java index 470195c..8ecb6e7 100644 --- a/src/main/java/emu/lunarcore/game/friends/Friendship.java +++ b/src/main/java/emu/lunarcore/game/friends/Friendship.java @@ -5,7 +5,7 @@ import dev.morphia.annotations.Id; import dev.morphia.annotations.Indexed; import emu.lunarcore.LunarCore; import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.SimpleInfoOuterClass.SimpleInfo; +import emu.lunarcore.proto.PlayerSimpleInfoOuterClass.PlayerSimpleInfo; import lombok.Getter; import lombok.Setter; @@ -21,7 +21,7 @@ public class Friendship { private int askerUid; @Setter private transient Player owner; - @Setter private transient SimpleInfo simpleInfo; + @Setter private transient PlayerSimpleInfo simpleInfo; @Deprecated // Morphia use only public Friendship() { } diff --git a/src/main/java/emu/lunarcore/game/gacha/GachaBanner.java b/src/main/java/emu/lunarcore/game/gacha/GachaBanner.java index 660a393..fd9d787 100644 --- a/src/main/java/emu/lunarcore/game/gacha/GachaBanner.java +++ b/src/main/java/emu/lunarcore/game/gacha/GachaBanner.java @@ -14,6 +14,21 @@ public class GachaBanner { private int[] rateUpItems4; private int eventChance = 50; + public GachaBanner createBanner(int id, GachaType gachaType, int beginTime, int endTime, int[] rateUpItems5, int[] rateUpItems4) { + return createBanner(id, gachaType, beginTime, endTime, rateUpItems5, rateUpItems4, 50); + } + + public GachaBanner createBanner(int id, GachaType gachaType, int beginTime, int endTime, int[] rateUpItems5, int[] rateUpItems4, int eventChance) { + this.id = id; + this.gachaType = gachaType; + this.beginTime = beginTime; + this.endTime = endTime; + this.rateUpItems5 = rateUpItems5; + this.rateUpItems4 = rateUpItems4; + this.eventChance = eventChance; + return this; + } + public GachaInfo toProto(GachaService service, Player player) { var info = GachaInfo.newInstance() .setGachaId(this.getId()) diff --git a/src/main/java/emu/lunarcore/game/gacha/GachaService.java b/src/main/java/emu/lunarcore/game/gacha/GachaService.java index 5bf0c38..c8eb32b 100644 --- a/src/main/java/emu/lunarcore/game/gacha/GachaService.java +++ b/src/main/java/emu/lunarcore/game/gacha/GachaService.java @@ -112,7 +112,7 @@ public class GachaService extends BaseGameService { getGachaBanners().put(banner.getId(), banner); } } catch (Exception e) { - LunarCore.getLogger().warn("No gacha banners loaded!"); + LunarCore.getLogger().warn("Error loading gacha banners: ", e); } } diff --git a/src/main/java/emu/lunarcore/game/inventory/GameItem.java b/src/main/java/emu/lunarcore/game/inventory/GameItem.java index 8813778..30870b6 100644 --- a/src/main/java/emu/lunarcore/game/inventory/GameItem.java +++ b/src/main/java/emu/lunarcore/game/inventory/GameItem.java @@ -53,7 +53,8 @@ public class GameItem implements Syncable { @Setter private int mainAffix; private List subAffixes; - + private transient List reforgedSubAffixes; + @Indexed private ObjectId equipAvatarId; // Object id of the avatar this item is equipped to private transient BaseAvatar equipAvatar; @@ -78,44 +79,63 @@ public class GameItem implements Syncable { } public GameItem(ItemExcel excel, int count) { - this(excel, count, 0); + this(excel, count, 0, null); + } + + public GameItem(ItemExcel excel, int count, int mainAffix) { + this(excel, count, mainAffix, null); } - public GameItem(ItemExcel excel, int count, int overrideMainAffix) { + public GameItem(ItemExcel excel, int count, int mainAffix, IntSet subAffixes) { this.itemId = excel.getId(); this.excel = excel; switch (excel.getItemMainType()) { - case Virtual: - this.count = count; - break; - case Equipment: - this.count = 1; - this.level = 1; - this.rank = 1; - break; - case Relic: - this.count = 1; - // Init affixes - if (getExcel().getRelicExcel() != null) { - // Main affix - if (overrideMainAffix > 0) { - this.mainAffix = overrideMainAffix; - } else { - var affix = GameDepot.getRandomRelicMainAffix(getExcel().getRelicExcel().getMainAffixGroup()); - if (affix != null) { - this.mainAffix = affix.getAffixID(); + case Virtual: + this.count = count; + break; + case Equipment: + this.count = 1; + this.level = 1; + this.rank = 1; + break; + case Relic: + this.count = 1; + // Init affixes + if (getExcel().getRelicExcel() != null) { + // Main affix + if (mainAffix > 0) { + // Set custom main affix + this.mainAffix = mainAffix; + } else { + // Randomly generate main affix + var affix = GameDepot.getRandomRelicMainAffix(getExcel().getRelicExcel().getMainAffixGroup()); + if (affix != null) { + this.mainAffix = affix.getAffixID(); + } + } + // Sub affixes + if (subAffixes != null) { + // Set custom sub affixes + for (int subAffixId : subAffixes) { + // Get sub affix excel + var subAffix = GameData.getRelicSubAffixExcelMap().get(excel.getRelicExcel().getSubAffixGroup(), subAffixId); + if (subAffix == null) continue; + + // Set count + this.addSubAffix(new GameItemSubAffix(subAffix, 1)); + } } + // Get base sub affixes + int baseSubAffixes = Math.min(Math.max(getExcel().getRarity().getVal() - 2, 0), 3); + int subAffixSize = Utils.randomRange(baseSubAffixes, baseSubAffixes + 1) - this.getSubAffixListSize(); + this.addRandomSubAffixes(subAffixSize); + // Sort sub affixes + this.sortSubAffixes(); } - // Sub affixes - int baseSubAffixes = Math.min(Math.max(getExcel().getRarity().getVal() - 2, 0), 3); - this.addSubAffixes(Utils.randomRange(baseSubAffixes, baseSubAffixes + 1)); - // Sort sub affixes - this.sortSubAffixes(); - } - break; - default: - this.count = Math.min(count, excel.getPileLimit()); + break; + default: + this.count = Math.min(count, excel.getPileLimit()); } } @@ -178,33 +198,41 @@ public class GameItem implements Syncable { this.subAffixes = new ArrayList<>(); } } + + public void addSubAffix(GameItemSubAffix subAffix) { + if (this.subAffixes == null) { + this.subAffixes = new ArrayList<>(); + } + + this.subAffixes.add(subAffix); + } - public void addSubAffixes(int quantity) { + public void addRandomSubAffixes(int quantity) { for (int i = 0; i < quantity; i++) { - this.addSubAffix(); + this.addRandomSubAffix(); } } - public void addSubAffix() { + public void addRandomSubAffix() { if (this.subAffixes == null) { this.subAffixes = new ArrayList<>(); } if (this.subAffixes.size() < 4) { - this.addNewSubAffix(); + this.addNewRandomSubAffix(); } else { this.upgradeRandomSubAffix(); } } - private void addNewSubAffix() { + private void addNewRandomSubAffix() { // Get list of affixes to add List affixList = GameDepot.getRelicSubAffixList(getExcel().getRelicExcel().getSubAffixGroup()); if (affixList == null) return; // Blacklist main affix and any sub affixes AvatarPropertyType mainAffixProperty = AvatarPropertyType.Unknown; - RelicMainAffixExcel mainAffix = GameData.getRelicMainAffixExcel(getExcel().getRelicExcel().getMainAffixGroup(), this.mainAffix); + RelicMainAffixExcel mainAffix = GameData.getRelicMainAffixExcelMap().get(getExcel().getRelicExcel().getMainAffixGroup(), this.mainAffix); if (mainAffix != null) { mainAffixProperty = mainAffix.getProperty(); } @@ -229,15 +257,27 @@ public class GameItem implements Syncable { // Add random stat RelicSubAffixExcel subAffix = randomList.next(); - this.subAffixes.add(new GameItemSubAffix(subAffix)); + this.addSubAffix(new GameItemSubAffix(subAffix)); } - private void upgradeRandomSubAffix() { - GameItemSubAffix subAffix = Utils.randomElement(this.subAffixes); - var subAffixExcel = GameData.getRelicSubAffixExcel(this.getExcel().getRelicExcel().getSubAffixGroup(), subAffix.getId()); + public void upgradeRandomSubAffix() { + this.upgradeRandomSubAffix(this.subAffixes); + } + + private void upgradeRandomSubAffix(List subAffixes) { + GameItemSubAffix subAffix = Utils.randomElement(subAffixes); + var subAffixExcel = GameData.getRelicSubAffixExcelMap().get(this.getExcel().getRelicExcel().getSubAffixGroup(), subAffix.getId()); subAffix.incrementCount(subAffixExcel.getStepNum()); } + /** + * Returns the amount of sub affixes this item has + */ + public int getSubAffixListSize() { + if (this.subAffixes == null) return 0; + return this.subAffixes.size(); + } + /** * Returns the current count of sub affixes this item has */ @@ -264,6 +304,41 @@ public class GameItem implements Syncable { Collections.sort(this.subAffixes); } + public void reforgeSubAffixes() { + this.reforgedSubAffixes = new ArrayList<>(); + + for (var subAffix : this.getSubAffixes()) { + @SuppressWarnings("deprecation") + var newAffix = new GameItemSubAffix(); + + newAffix.setId(subAffix.getId()); + newAffix.setCount(1); + newAffix.setStep(Utils.randomRange(0, 2)); + + this.getReforgedSubAffixes().add(newAffix); + } + + int rerollCount = this.getCurrentSubAffixCount() - this.getSubAffixListSize(); + for (int i = 0; i < rerollCount; i++) { + this.upgradeRandomSubAffix(this.getReforgedSubAffixes()); + } + } + + public void confirmReforge(boolean keep) { + // Sanity + if (this.reforgedSubAffixes == null) { + return; + } + + // Replace old affixes if the player confirmed + if (!keep) { + this.subAffixes = this.reforgedSubAffixes; + } + + // Clear reforged affixes + this.reforgedSubAffixes = null; + } + // Database public void save() { @@ -330,7 +405,13 @@ public class GameItem implements Syncable { proto.addSubAffixList(subAffix.toProto()); } } - + + if (this.reforgedSubAffixes != null) { + for (var subAffix : this.reforgedSubAffixes) { + proto.addReforgeSubAffixList(subAffix.toProto()); + } + } + return proto; } diff --git a/src/main/java/emu/lunarcore/game/inventory/GameItemSubAffix.java b/src/main/java/emu/lunarcore/game/inventory/GameItemSubAffix.java index e29bc21..0335af5 100644 --- a/src/main/java/emu/lunarcore/game/inventory/GameItemSubAffix.java +++ b/src/main/java/emu/lunarcore/game/inventory/GameItemSubAffix.java @@ -7,7 +7,7 @@ import emu.lunarcore.util.Utils; import lombok.Getter; import lombok.Setter; -@Getter @Setter +@Getter @Setter @Entity(useDiscriminator = false) public class GameItemSubAffix implements Comparable { private int id; // Affix id @@ -29,7 +29,7 @@ public class GameItemSubAffix implements Comparable { this.count = count; this.step = Utils.randomRange(0, count * subAffix.getStepNum()); } - + public void incrementCount(int stepNum) { this.count += 1; this.step += Utils.randomRange(0, stepNum); diff --git a/src/main/java/emu/lunarcore/game/inventory/Inventory.java b/src/main/java/emu/lunarcore/game/inventory/Inventory.java index ce2c2f8..fe76745 100644 --- a/src/main/java/emu/lunarcore/game/inventory/Inventory.java +++ b/src/main/java/emu/lunarcore/game/inventory/Inventory.java @@ -197,17 +197,20 @@ public class Inventory extends BasePlayerManager { * @return List of items that were added. */ public List addItems(ItemParamMap map) { - return addItems(map.toItemList(), false); + return addItems(map, false); } - public List addItemParams(Collection params) { - return addItemParams(params, 1); - } - - public List addItemParams(Collection params, int modifier) { - // TODO handle params if they are equipment or relics - List items = params.stream().map(param -> new GameItem(param.getId(), param.getCount() * modifier)).toList(); - return addItems(items, false); + public List addItems(ItemParamMap map, boolean showHint) { + // Convert player exp to coins if player is max level + if (this.getPlayer().getLevel() >= GameConstants.MAX_TRAILBLAZER_LEVEL) { + if (map.get(GameConstants.TRAILBLAZER_EXP_ID) > 0) { + int exp = map.get(GameConstants.TRAILBLAZER_EXP_ID); + map.add(GameConstants.MATERIAL_COIN_ID, exp * 10); + map.remove(GameConstants.TRAILBLAZER_EXP_ID); + } + } + + return addItems(map.toItemList(), showHint); } private synchronized GameItem putItem(GameItem item) { @@ -223,81 +226,81 @@ public class Inventory extends BasePlayerManager { // Add switch (type) { - case Equipment: - case Relic: - if (tab.getSize() >= tab.getMaxCapacity()) { - return null; - } - // Duplicates cause problems - item.setCount(1); - // Adds to inventory - this.putItem(item, tab); - // Set ownership and save to database - item.save(); - return item; - case Virtual: - // Handle - this.addVirtualItem(item.getItemId(), item.getCount()); - return item; - case AvatarCard: - // Add avatar - AvatarExcel avatarExcel = GameData.getAvatarExcelMap().get(item.getItemId()); - if (avatarExcel != null && !getPlayer().getAvatars().hasAvatar(avatarExcel.getId())) { - getPlayer().addAvatar(new GameAvatar(avatarExcel)); - } - return null; - case Usable: - // Add usable - switch (subType) { - case HeadIcon -> { - getPlayer().getUnlocks().addHeadIcon(item.getItemId()); - return item; - } - case ChatBubble -> { - getPlayer().getUnlocks().addChatBubble(item.getItemId()); - return item; - } - case PhoneTheme -> { - getPlayer().getUnlocks().addPhoneTheme(item.getItemId()); - return item; - } - default -> { - // Skip - } - } - - // Skip if not food item - if (subType != ItemSubType.Food) { - return null; - } - case Pet: - getPlayer().getUnlocks().addPet(item.getItemId()); - return item; - default: - if (tab == null) { - return null; - } - - GameItem existingItem = tab.getItemById(item.getItemId()); - - if (existingItem == null) { - // Item type didnt exist before, we will add it to main inventory map if there is enough space + case Equipment: + case Relic: if (tab.getSize() >= tab.getMaxCapacity()) { return null; } - // Put item to inventory + // Duplicates cause problems + item.setCount(1); + // Adds to inventory this.putItem(item, tab); - // Set ownership and save to db + // Set ownership and save to database item.save(); return item; - } else { - // Add count to item - int amount = Utils.safeAdd(existingItem.getCount(), item.getCount(), item.getExcel().getPileLimit(), 0); - if (existingItem.setCount(amount)) { - existingItem.save(); + case Virtual: + // Handle + this.addVirtualItem(item.getItemId(), item.getCount()); + return item; + case AvatarCard: + // Add avatar + AvatarExcel avatarExcel = GameData.getAvatarExcelMap().get(item.getItemId()); + if (avatarExcel != null && !getPlayer().getAvatars().hasAvatar(avatarExcel.getId())) { + getPlayer().addAvatar(new GameAvatar(avatarExcel)); + } + return null; + case Usable: + // Add usable + switch (subType) { + case HeadIcon -> { + getPlayer().getUnlocks().addHeadIcon(item.getItemId()); + return item; + } + case ChatBubble -> { + getPlayer().getUnlocks().addChatBubble(item.getItemId()); + return item; + } + case PhoneTheme -> { + getPlayer().getUnlocks().addPhoneTheme(item.getItemId()); + return item; + } + default -> { + // Skip + } + } + + // Skip if not food item + if (subType != ItemSubType.Food) { + return null; + } + case Pet: + getPlayer().getUnlocks().addPet(item.getItemId()); + return item; + default: + if (tab == null) { + return null; + } + + GameItem existingItem = tab.getItemById(item.getItemId()); + + if (existingItem == null) { + // Item type didnt exist before, we will add it to main inventory map if there is enough space + if (tab.getSize() >= tab.getMaxCapacity()) { + return null; + } + // Put item to inventory + this.putItem(item, tab); + // Set ownership and save to db + item.save(); + return item; + } else { + // Add count to item + int amount = Utils.safeAdd(existingItem.getCount(), item.getCount(), item.getExcel().getPileLimit(), 0); + if (existingItem.setCount(amount)) { + existingItem.save(); + } + return existingItem; } - return existingItem; - } } } @@ -331,14 +334,6 @@ public class Inventory extends BasePlayerManager { case 22: // Trailblaze EXP getPlayer().addExp(count); break; - case GameConstants.ROGUE_TALENT_COIN_ID: // Rogue talent points - getPlayer().addTalentPoints(count); - break; - case GameConstants.ROGUE_COIN_ID: - if (getPlayer().getRogueInstance() != null) { - getPlayer().getRogueInstance().setCoin(getPlayer().getRogueInstance().getCoin() + count); - } - break; } } @@ -366,10 +361,6 @@ public class Inventory extends BasePlayerManager { // Remove credits getPlayer().addHCoin(-param.getCount() * multiplier); continue; - } else if (param.getId() == GameConstants.ROGUE_TALENT_COIN_ID) { - // Remove credits - getPlayer().addTalentPoints(-param.getCount() * multiplier); - continue; } } @@ -477,42 +468,78 @@ public class Inventory extends BasePlayerManager { // Verifying items - public boolean verifyItems(Collection params) { - return verifyItems(params, 1); + public boolean hasItem(int itemId, int count) { + // Sanity check + if (count == 0) { + return true; + } else if (count < 0) { + // Return false if we are trying to check if the player has a negative amount of this item + return false; + } + + // Get item excel + var excel = GameData.getItemExcelMap().get(itemId); + + if (excel == null) { + return false; + } + + boolean result = switch (excel.getItemMainType()) { + case Virtual -> { + if (itemId == GameConstants.MATERIAL_COIN_ID) { + // Check credits + yield this.getPlayer().getScoin() >= count; + } else if (itemId == GameConstants.MATERIAL_HCOIN_ID) { + // Check jades + yield this.getPlayer().getHcoin() >= count; + } else if (itemId == GameConstants.ROGUE_TALENT_COIN_ID) { + // Check rogue talents + yield this.getPlayer().getTalentPoints() >= count; + } + + // Not supported + yield false; + } + case AvatarCard -> { + yield this.getPlayer().getAvatars().hasAvatar(itemId); + } + case Usable, Material, Mission -> { + GameItem item = this.getMaterialByItemId(itemId); + if (item == null) { + yield false; + } + + yield item.getCount() >= count; + } + default -> { + yield false; + } + }; + + // Player has enough of this item + return result; } - public boolean verifyItems(Collection params, int multiplier) { - for (ItemParam param : params) { - // Check param type - if (param.getId() == GameConstants.MATERIAL_COIN_ID) { - // Check credits - if (!verifyScoin(param.getCount() * multiplier)) { - return false; - } - } else if (param.getId() == GameConstants.MATERIAL_HCOIN_ID) { - // Check jades - if (!verifyHcoin(param.getCount() * multiplier)) { - return false; - } - } else if (param.getId() == GameConstants.ROGUE_TALENT_COIN_ID) { - return this.getPlayer().getTalentPoints() >= param.getCount() * multiplier; - } else { - // Check param items - GameItem item = this.getItemByParam(param); - if (item == null || item.getCount() < param.getCount() * multiplier) { - return false; - } + public boolean hasItems(List items) { + return hasItems(items, 1); + } + + public boolean hasItems(List items, int multiplier) { + for (var param : items) { + // Make sure we have enough of this item + if (!this.hasItem(param.getId(), param.getCount() * multiplier)) { + return false; } } return true; } - public boolean verifyScoin(int cost) { + public boolean hasScoin(int cost) { return this.getPlayer().getScoin() >= cost; } - public boolean verifyHcoin(int cost) { + public boolean hasHcoin(int cost) { return this.getPlayer().getHcoin() >= cost; } @@ -531,8 +558,8 @@ public class Inventory extends BasePlayerManager { } // Get use excel - var itemUseExcel = GameData.getItemUseExcelMap().get(useItem.getExcel().getUseDataID()); - if (itemUseExcel == null) return null; + var itemUseExcel = GameData.getItemUseExcelMap().get(itemId); + if (itemUseExcel == null) return null; // Setup variables boolean usedItem = false; @@ -540,10 +567,10 @@ public class Inventory extends BasePlayerManager { // Handle item useMethod // TODO write better handler for this later usedItem = switch (useItem.getExcel().getUseMethod()) { - case FixedRewardGift -> ItemUseHandler.handleFixedRewardGift(getPlayer(), itemUseExcel, avatarId, count); - case TeamSpecificFoodBenefit -> ItemUseHandler.handleTeamSpecificFoodBenefit(getPlayer(), itemUseExcel, avatarId, count); - case ExternalSystemFoodBenefit -> ItemUseHandler.handleExternalSystemFoodBenefit(getPlayer(), itemUseExcel, avatarId, count); - default -> false; + case FixedRewardGift -> ItemUseHandler.handleFixedRewardGift(getPlayer(), itemUseExcel, avatarId, count); + case TeamSpecificFoodBenefit -> ItemUseHandler.handleTeamSpecificFoodBenefit(getPlayer(), itemUseExcel, avatarId, count); + case ExternalSystemFoodBenefit -> ItemUseHandler.handleExternalSystemFoodBenefit(getPlayer(), itemUseExcel, avatarId, count); + default -> false; }; // Remove item from inventory if we used it diff --git a/src/main/java/emu/lunarcore/game/inventory/InventoryService.java b/src/main/java/emu/lunarcore/game/inventory/InventoryService.java index f948018..6c6cc84 100644 --- a/src/main/java/emu/lunarcore/game/inventory/InventoryService.java +++ b/src/main/java/emu/lunarcore/game/inventory/InventoryService.java @@ -16,6 +16,7 @@ import emu.lunarcore.game.player.Player; import emu.lunarcore.server.game.BaseGameService; import emu.lunarcore.server.game.GameServer; import emu.lunarcore.server.packet.send.*; +import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import us.hebi.quickbuf.RepeatedInt; public class InventoryService extends BaseGameService { @@ -31,7 +32,7 @@ public class InventoryService extends BaseGameService { GameAvatar avatar = player.getAvatarById(avatarId); if (avatar == null) return null; - AvatarPromotionExcel promoteData = GameData.getAvatarPromotionExcel(avatarId, avatar.getPromotion()); + AvatarPromotionExcel promoteData = GameData.getAvatarPromotionExcelMap().get(avatarId, avatar.getPromotion()); if (promoteData == null) return null; // Exp gain @@ -113,14 +114,14 @@ public class InventoryService extends BaseGameService { GameAvatar avatar = player.getAvatarById(avatarId); if (avatar == null || avatar.getPromotion() >= avatar.getExcel().getMaxPromotion()) return false; - AvatarPromotionExcel promotion = GameData.getAvatarPromotionExcel(avatarId, avatar.getPromotion()); + AvatarPromotionExcel promotion = GameData.getAvatarPromotionExcelMap().get(avatarId, avatar.getPromotion()); // Sanity check if ((promotion == null) || avatar.getLevel() < promotion.getMaxLevel() || player.getLevel() < promotion.getPlayerLevelRequire() || player.getWorldLevel() < promotion.getWorldLevelRequire()) { return false; } // Verify item params - if (!player.getInventory().verifyItems(promotion.getPromotionCostList())) { + if (!player.getInventory().hasItems(promotion.getPromotionCostList())) { return false; } @@ -138,28 +139,44 @@ public class InventoryService extends BaseGameService { return true; } - public boolean unlockSkillTreeAvatar(Player player, int avatarId, int pointId) { + public boolean unlockSkillTreeAvatar(Player player, int avatarId, int anchorId, int targetLevel) { // Get avatar + Skill Tree data GameAvatar avatar = player.getAvatarById(avatarId); if (avatar == null) return false; - int nextLevel = avatar.getSkills().getOrDefault(pointId, 0) + 1; - - AvatarSkillTreeExcel skillTree = GameData.getAvatarSkillTreeExcel(pointId, nextLevel); - if (skillTree == null || skillTree.getAvatarID() != avatar.getExcel().getAvatarID()) { + // Get current level + int curLevel = avatar.getSkillTree().get(anchorId); + int level = curLevel + 1; + + // Sanity check + if (level > targetLevel) { return false; } + + // Setup item params + var cost = new ItemParamMap(); + + for (; level <= targetLevel; level++) { + AvatarSkillTreeExcel skillTree = GameData.getAvatarSkilltree(avatarId, avatar.getEnhanceId(), anchorId, level); + if (skillTree == null) return false; + + // Add to item cost + cost.add(skillTree.getMaterialList()); + } + + // Get cost list + var materialList = cost.toItemParamList(); // Verify item params - if (!player.getInventory().verifyItems(skillTree.getMaterialList())) { + if (!player.getInventory().hasItems(materialList)) { return false; } // Pay items - player.getInventory().removeItemsByParams(skillTree.getMaterialList()); + player.getInventory().removeItemsByParams(materialList); - // Add skill - avatar.getSkills().put(pointId, nextLevel); + // Set skill level + avatar.getSkillTree().put(anchorId, targetLevel); // Save player player.save(); @@ -167,12 +184,12 @@ public class InventoryService extends BaseGameService { // Save avatar and send packets if (avatar.getMultiPath() != null) { avatar.getMultiPath().save(); - player.sendPacket(new PacketPlayerSyncScNotify(avatar.getMultiPath())); } else { avatar.save(); - player.sendPacket(new PacketPlayerSyncScNotify(avatar)); } + player.sendPacket(new PacketPlayerSyncScNotify(avatar)); + return true; } @@ -181,11 +198,12 @@ public class InventoryService extends BaseGameService { GameAvatar avatar = player.getAvatarById(avatarId); if (avatar == null || avatar.getRank() >= avatar.getExcel().getMaxRank()) return false; - AvatarRankExcel rankData = GameData.getAvatarRankExcel(avatar.getExcel().getRankId(avatar.getRank())); + int rankId = avatar.getExcel().getRankId(avatar.getRank()); + AvatarRankExcel rankData = GameData.getAvatarRankExcelMap().get(rankId); if (rankData == null) return false; // Verify items - if (!player.getInventory().verifyItems(rankData.getUnlockCost())) { + if (!player.getInventory().hasItems(rankData.getUnlockCost())) { return false; } @@ -198,12 +216,12 @@ public class InventoryService extends BaseGameService { // Save avatar and send packets if (avatar.getMultiPath() != null) { avatar.getMultiPath().save(); - player.sendPacket(new PacketPlayerSyncScNotify(avatar.getMultiPath())); } else { avatar.save(); - player.sendPacket(new PacketPlayerSyncScNotify(avatar)); } + player.sendPacket(new PacketPlayerSyncScNotify(avatar)); + return true; } @@ -264,7 +282,7 @@ public class InventoryService extends BaseGameService { return null; } - EquipmentPromotionExcel promoteData = GameData.getEquipmentPromotionExcel(equip.getItemId(), equip.getPromotion()); + EquipmentPromotionExcel promoteData = GameData.getEquipmentPromotionExcelMap().get(equip.getItemId(), equip.getPromotion()); if (promoteData == null) return null; // Exp gain @@ -352,7 +370,7 @@ public class InventoryService extends BaseGameService { return false; } - EquipmentPromotionExcel promotion = GameData.getEquipmentPromotionExcel(equip.getItemId(), equip.getPromotion()); + EquipmentPromotionExcel promotion = GameData.getEquipmentPromotionExcelMap().get(equip.getItemId(), equip.getPromotion()); // Sanity check if ((promotion == null) || equip.getLevel() < promotion.getMaxLevel() || player.getLevel() < promotion.getPlayerLevelRequire() || player.getWorldLevel() < promotion.getWorldLevelRequire()) { return false; @@ -489,7 +507,7 @@ public class InventoryService extends BaseGameService { // Add affixes if (upgrades > 0) { - equip.addSubAffixes(upgrades); + equip.addRandomSubAffixes(upgrades); } // Done @@ -522,6 +540,54 @@ public class InventoryService extends BaseGameService { player.sendPacket(new PacketPlayerSyncScNotify(equip)); return returnItems; } + + public void reforgeRelic(Player player, int relicUniqueId) { + // Get relic + GameItem equip = player.getInventory().getItemByUid(relicUniqueId); + + if (equip == null || !equip.getExcel().isRelic()) { + return; + } + + // Sanity checks + if (equip.getLevel() != 15) { + return; + } + + // Verify material cost + if (player.getInventory().hasItems(GameConstants.RELIC_REFORGE_COST)) { + player.getInventory().removeItemsByParams(GameConstants.RELIC_REFORGE_COST); + } else { + return; + } + + // Reroll + equip.reforgeSubAffixes(); + + // Send packet + player.sendPacket(new PacketPlayerSyncScNotify(equip)); + } + + public void confirmReforgeRelic(Player player, int relicUniqueId, boolean keep) { + // Get relic + GameItem equip = player.getInventory().getItemByUid(relicUniqueId); + + if (equip == null || !equip.getExcel().isRelic()) { + return; + } + + // Sanity checks + if (equip.getReforgedSubAffixes() == null) { + return; + } + + // Reroll + equip.confirmReforge(keep); + equip.save(); + + // Send packet + player.sendPacket(new PacketPlayerSyncScNotify(equip)); + } // === Etc === @@ -585,11 +651,11 @@ public class InventoryService extends BaseGameService { // Add return items if (item.getExcel().getRarity() == ItemRarity.SuperRare && !toMaterials) { // Relic remains - returnItems.addTo(GameConstants.RELIC_REMAINS_ID, 10); + returnItems.add(GameConstants.RELIC_REMAINS_ID, 10); } else { // Add basic return items for (ItemParam ret : item.getExcel().getReturnItemIDList()) { - returnItems.addTo(ret.getId(), ret.getCount()); + returnItems.add(ret.getId(), ret.getCount()); } } } @@ -626,7 +692,7 @@ public class InventoryService extends BaseGameService { if (excel.getFormulaType() == FormulaType.Normal) { // Material synthesis // Verify items + credits - if (!player.getInventory().verifyItems(excel.getMaterialCost(), count) || !player.getInventory().verifyScoin(excel.getCoinCost() * count)) { + if (!player.getInventory().hasItems(excel.getMaterialCost(), count) || !player.getInventory().hasScoin(excel.getCoinCost() * count)) { return null; } @@ -677,7 +743,7 @@ public class InventoryService extends BaseGameService { } } - public List composeRelic(Player player, int composeId, int relicId, int mainAffix, int count) { + public List composeRelic(Player player, int composeId, int relicId, int count, int mainAffix, RepeatedInt subAffixList) { // Sanity check if (count <= 0) return null; @@ -704,13 +770,27 @@ public class InventoryService extends BaseGameService { if (mainAffix > 0) { // TODO verify main affix on item + // Add special material cost for (int specialId : excel.getSpecialMaterialCost()) { costItems.add(new ItemParam(specialId, 1)); } } + // Check sub affixes + var subAffixes = new IntOpenHashSet(subAffixList.array()); + if (subAffixes.size() == 1) { + costItems.add(new ItemParam(GameConstants.RELIC_COMPOSE_SUB_AFFIX_ITEM, 1)); + } else if (subAffixes.size() == 2) { + costItems.add(new ItemParam(GameConstants.RELIC_COMPOSE_SUB_AFFIX_ITEM, 4)); + } else if (subAffixes.size() > 2) { + // Invalid request + return null; + } + + // TODO verify sub affixes on item + // Verify items + credits - if (!player.getInventory().verifyItems(costItems, count) || !player.getInventory().verifyScoin(excel.getCoinCost() * count)) { + if (!player.getInventory().hasItems(costItems, count) || !player.getInventory().hasScoin(excel.getCoinCost() * count)) { return null; } @@ -718,11 +798,11 @@ public class InventoryService extends BaseGameService { player.getInventory().removeItemsByParams(costItems, count); player.addSCoin(-excel.getCoinCost() * count); - // Compose item + // Compose item(s) List items = new ArrayList<>(); for (int i = 0; i < count; i++) { - GameItem item = new GameItem(itemExcel, 1, mainAffix); + GameItem item = new GameItem(itemExcel, 1, mainAffix, subAffixes); items.add(item); } diff --git a/src/main/java/emu/lunarcore/game/inventory/ItemParamMap.java b/src/main/java/emu/lunarcore/game/inventory/ItemParamMap.java index 03c2442..7892b93 100644 --- a/src/main/java/emu/lunarcore/game/inventory/ItemParamMap.java +++ b/src/main/java/emu/lunarcore/game/inventory/ItemParamMap.java @@ -5,21 +5,96 @@ import java.util.List; import java.util.function.Consumer; import emu.lunarcore.data.GameData; +import emu.lunarcore.data.common.ItemParam; import emu.lunarcore.data.excel.ItemExcel; -import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; +import it.unimi.dsi.fastutil.ints.Int2IntLinkedOpenHashMap; +import it.unimi.dsi.fastutil.ints.Int2IntMap; +import it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterable; +import it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator; -public class ItemParamMap extends Int2IntOpenHashMap { +public class ItemParamMap extends Int2IntLinkedOpenHashMap implements ObjectBidirectionalIterable { private static final long serialVersionUID = -4186524272780523459L; - @Override + public static final ItemParamMap EMPTY = new ItemParamMap() { + public int put(int itemId, int count) { + return 0; + } + + public int add(int itemId, int count) { + return 0; + } + }; + + public ItemParamMap() { + super(); + } + + public ItemParamMap(List list) { + super(); + + for (var param : list) { + this.add(param.getId(), param.getCount()); + } + } + + @Override @Deprecated public int addTo(int itemId, int count) { + return this.add(itemId, count); + } + + public int add(int itemId, int count) { + if (count == 0) { + return 0; + } + return super.addTo(itemId, count); } + public void add(List list) { + for (var param : list) { + this.add(param.getId(), param.getCount()); + } + } + + /** + * Adds all item params from the other map to this one + * @param map The other item param map + */ + public void add(ItemParamMap map) { + for (var entry : map.entries()) { + this.add(entry.getIntKey(), entry.getIntValue()); + } + } + + /** + * Returns a new ItemParamMap with item amounts multiplied + * @param mult Value to multiply all item amounts in this map by + * @return + */ + public ItemParamMap mulitply(int multiplier) { + var params = new ItemParamMap(); + + for (var entry : this.int2IntEntrySet()) { + params.put(entry.getIntKey(), entry.getIntValue() * multiplier); + } + + return params; + } + + + // Iterable + + @Override + public ObjectBidirectionalIterator iterator() { + return this.int2IntEntrySet().iterator(); + } + public FastEntrySet entries() { return this.int2IntEntrySet(); } + // Helpers + public void forEachItem(Consumer consumer) { for (var entry : this.entries()) { // Get amount @@ -52,4 +127,17 @@ public class ItemParamMap extends Int2IntOpenHashMap { return list; } + + public List toItemParamList() { + List list = new ArrayList<>(); + + for (var entry : this) { + int itemId = entry.getIntKey(); + int count = entry.getIntValue(); + + list.add(new ItemParam(itemId, count)); + } + + return list; + } } diff --git a/src/main/java/emu/lunarcore/game/inventory/ItemUseHandler.java b/src/main/java/emu/lunarcore/game/inventory/ItemUseHandler.java index 8a76bd2..c5e56ed 100644 --- a/src/main/java/emu/lunarcore/game/inventory/ItemUseHandler.java +++ b/src/main/java/emu/lunarcore/game/inventory/ItemUseHandler.java @@ -18,7 +18,8 @@ public class ItemUseHandler { var rewardExcel = GameData.getRewardExcelMap().get(rewardId); if (rewardExcel == null) continue; - player.getInventory().addItemParams(rewardExcel.getRewards(), count); + var rewards = rewardExcel.getRewards().mulitply(count); + player.getInventory().addItems(rewards); } return true; diff --git a/src/main/java/emu/lunarcore/game/player/Player.java b/src/main/java/emu/lunarcore/game/player/Player.java index c229ed0..3b7d948 100644 --- a/src/main/java/emu/lunarcore/game/player/Player.java +++ b/src/main/java/emu/lunarcore/game/player/Player.java @@ -1,9 +1,6 @@ package emu.lunarcore.game.player; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import org.bson.types.ObjectId; @@ -13,16 +10,14 @@ import dev.morphia.annotations.Entity; import dev.morphia.annotations.Id; import dev.morphia.annotations.Indexed; +import emu.lunarcore.game.inventory.tabs.InventoryTabType; import emu.lunarcore.GameConstants; import emu.lunarcore.LunarCore; import emu.lunarcore.data.GameData; import emu.lunarcore.data.config.AnchorInfo; import emu.lunarcore.data.config.FloorInfo; import emu.lunarcore.data.config.PropInfo; -import emu.lunarcore.data.excel.InteractExcel; -import emu.lunarcore.data.excel.ItemUseExcel; -import emu.lunarcore.data.excel.MapEntranceExcel; -import emu.lunarcore.data.excel.MazePlaneExcel; +import emu.lunarcore.data.excel.*; import emu.lunarcore.game.account.Account; import emu.lunarcore.game.avatar.AvatarStorage; import emu.lunarcore.game.avatar.GameAvatar; @@ -47,13 +42,15 @@ import emu.lunarcore.game.mail.Mailbox; import emu.lunarcore.game.player.lineup.LineupManager; import emu.lunarcore.game.player.lineup.PlayerExtraLineup; import emu.lunarcore.game.player.lineup.PlayerLineup; -import emu.lunarcore.game.rogue.RogueInstance; -import emu.lunarcore.game.rogue.RogueManager; -import emu.lunarcore.game.rogue.RogueTalentData; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.SceneBuff; import emu.lunarcore.game.scene.entity.EntityProp; import emu.lunarcore.game.scene.entity.GameEntity; +import emu.lunarcore.game.trial.TrialInstance; +import emu.lunarcore.game.trial.TrialManager; +import emu.lunarcore.proto.PlayerDisplayInfoOuterClass.PlayerDisplayInfo; +import emu.lunarcore.proto.PlayerMocDisplayInfoOuterClass.PlayerMocDisplayInfo; +import emu.lunarcore.proto.PlayerSimpleInfoOuterClass.PlayerSimpleInfo; import emu.lunarcore.proto.BoardDataSyncOuterClass.BoardDataSync; import emu.lunarcore.proto.DisplayAvatarOuterClass.DisplayAvatar; import emu.lunarcore.proto.FriendOnlineStatusOuterClass.FriendOnlineStatus; @@ -62,8 +59,6 @@ import emu.lunarcore.proto.PlatformTypeOuterClass.PlatformType; import emu.lunarcore.proto.PlayerBasicInfoOuterClass.PlayerBasicInfo; import emu.lunarcore.proto.PlayerDetailInfoOuterClass.PlayerDetailInfo; import emu.lunarcore.proto.PlayerSyncScNotifyOuterClass.PlayerSyncScNotify; -import emu.lunarcore.proto.RogueCurVirtualItemInfoOuterClass.RogueCurVirtualItemInfo; -import emu.lunarcore.proto.SimpleInfoOuterClass.SimpleInfo; import emu.lunarcore.server.game.GameServer; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.game.Syncable; @@ -71,6 +66,7 @@ import emu.lunarcore.server.game.Tickable; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.send.*; +import emu.lunarcore.util.Location; import emu.lunarcore.util.Position; import emu.lunarcore.util.Utils; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -89,9 +85,12 @@ public class Player implements Tickable, Syncable { private String signature; private int birthday; private int headIcon; + private int headIconFrame; private int phoneTheme; + private int phoneCase; private int chatBubble; private int currentBgm; + @Setter private int currentPamSkinId; @Setter private int petId; private Map curAvatarPaths; private PlayerGender gender; @@ -127,7 +126,9 @@ public class Player implements Tickable, Syncable { private transient final FriendList friendList; private transient final Mailbox mailbox; private transient final ChallengeManager challengeManager; - private transient final RogueManager rogueManager; + private transient final TrialManager trialManager; + + // Activity managers // Database persistent data private LineupManager lineupManager; @@ -135,9 +136,8 @@ public class Player implements Tickable, Syncable { private List assistAvatars; private List displayAvatars; - // Instances - @Setter private ChallengeInstance challengeInstance; - @Setter private transient RogueInstance rogueInstance; + // Instance + private transient PlayerGameInstance instance; // Etc private transient boolean isNew; @@ -163,7 +163,7 @@ public class Player implements Tickable, Syncable { this.friendList = new FriendList(this); this.mailbox = new Mailbox(this); this.challengeManager = new ChallengeManager(this); - this.rogueManager = new RogueManager(this); + this.trialManager = new TrialManager(this); } // Called when player is created @@ -181,6 +181,7 @@ public class Player implements Tickable, Syncable { this.signature = ""; this.phoneTheme = 221000; this.chatBubble = 220000; + this.currentPamSkinId = 25200; this.stamina = GameConstants.MAX_STAMINA; this.nextStaminaRecover = System.currentTimeMillis(); @@ -209,7 +210,7 @@ public class Player implements Tickable, Syncable { public GameServer getServer() { return session.getServer(); } - + public Account getAccount() { return session.getAccount(); } @@ -420,14 +421,6 @@ public class Player implements Tickable, Syncable { } } - public void addTalentPoints(int amount) { - int newAmount = Utils.safeAdd(this.talentPoints, amount); - if (this.talentPoints != newAmount) { - this.talentPoints = newAmount; - this.sendPacket(new PacketSyncRogueVirtualItemInfoScNotify(this)); - } - } - public void addExp(int amount) { // Setup int oldLevel = this.level; @@ -524,6 +517,33 @@ public class Player implements Tickable, Syncable { } } + public synchronized void setInstance(PlayerGameInstance instance) { + // Sanity check + if (this.instance == instance) return; + + // Handle event + if (this.instance != null) { + this.instance.onLeave(); + } + + // Set new isntance + this.instance = instance; + } + + public synchronized T getInstance(Class instanceType) { + // Make sure we have an object to cast to + if (this.instance == null) { + return null; + } + + // Cast to our activity type + if (instanceType.isInstance(this.instance)) { + return instanceType.cast(this.instance); + } + + return null; + } + public void addStamina(int amount) { this.stamina = Utils.safeAdd(this.stamina, amount); this.sendPacket(new PacketStaminaInfoScNotify(this)); @@ -533,6 +553,7 @@ public class Player implements Tickable, Syncable { if (!LunarCore.getConfig().getServerOptions().spendStamina) { return; } + this.stamina = Math.max(this.stamina - amount, 0); this.sendPacket(new PacketStaminaInfoScNotify(this)); } @@ -548,6 +569,7 @@ public class Player implements Tickable, Syncable { // Update to client this.sendPacket(new PacketStaminaInfoScNotify(this)); + return amount; } @@ -584,7 +606,7 @@ public class Player implements Tickable, Syncable { public synchronized boolean addFoodBuff(int type, ItemUseExcel itemUseExcel) { // Get maze excel - var excel = GameData.getMazeBuffExcel(itemUseExcel.getMazeBuffID(), 1); + var excel = GameData.getMazeBuffExcelMap().get(itemUseExcel.getMazeBuffID(), 1); if (excel == null) return false; // Create new buff @@ -647,9 +669,11 @@ public class Player implements Tickable, Syncable { } // Validate + /* if (interactExcel.getSrcState() != null && prop.getState() != interactExcel.getSrcState()) { return prop; } + */ // Save old state PropState oldState = prop.getState(); @@ -672,7 +696,9 @@ public class Player implements Tickable, Syncable { case PROP_TREASURE_CHEST -> { if (oldState == PropState.ChestClosed && newState == PropState.ChestUsed) { // Handle drops - var drops = this.getServer().getDropService().calculateDropsFromProp(prop.getPropId()); + var drops = this.getServer().getDropService().calculateChestDrops(getScene().getWorldId(), prop.getPropId()); + this.getScene().removeAllMapPropDefInfo(); + this.sendPacket(new PacketMarkChestChangedScNotify(new ArrayList<>())); this.getInventory().addItems(drops, true); } } @@ -698,6 +724,12 @@ public class Player implements Tickable, Syncable { .stream() .filter(p -> p.getExcel().getPropType() == PropType.PROP_PLATFORM) .forEach(p -> p.setState(newState)); + } else if (prop.getPropId() == 104039) { + // Purification prop + getScene().getEntitiesByGroup(EntityProp.class, prop.getGroupId()) + .stream() + .filter(p -> p.getPropId() == 104038) + .forEach(p -> p.setState(newState)); } } default -> { @@ -708,7 +740,7 @@ public class Player implements Tickable, Syncable { // Return prop when we are done return prop; } - + public void onMove() { // Sanity if (this.getScene() == null) return; @@ -728,12 +760,17 @@ public class Player implements Tickable, Syncable { this.entryId = entryId; this.moveTo(pos); } + + public void moveTo(int entryId, Position pos, Position rot) { + this.entryId = entryId; + this.moveTo(pos, rot); + } public void moveTo(Position pos) { this.getPos().set(pos); this.sendPacket(new PacketSceneEntityMoveScNotify(this)); } - + public void moveTo(Position pos, Position rot) { this.getPos().set(pos); this.getRot().set(rot); @@ -778,20 +815,23 @@ public class Player implements Tickable, Syncable { // Get maze plane excel MazePlaneExcel planeExcel = GameData.getMazePlaneExcelMap().get(planeId); if (planeExcel == null) return false; - - // Unstuck check - if (planeExcel.getPlaneType() == PlaneType.Challenge) { - if (this.getChallengeInstance() == null) { - return enterScene(GameConstants.CHALLENGE_ENTRANCE, 0, false); - } - } else { - this.setChallengeInstance(null); - } - if (planeExcel.getPlaneType() == PlaneType.Rogue) { - if (this.getRogueInstance() == null) { - return enterScene(GameConstants.ROGUE_ENTRANCE, 0, false); - } + // Unstuck check + switch (planeExcel.getPlaneType()) { + case Challenge: + if (this.getInstance(ChallengeInstance.class) == null) { + return enterScene(GameConstants.CHALLENGE_ENTRANCE, 0, false); + } + break; + case Rogue: + break; + case TrialActivity: + if (this.getInstance(TrialInstance.class) == null) { + return enterScene(GameConstants.START_ENTRY_ID, 0, false); + } + break; + default: + break; } // Get scene that we want to enter @@ -803,6 +843,11 @@ public class Player implements Tickable, Syncable { } else { nextScene = new Scene(this, planeExcel, floorId); } + + // Set world id + if (planeExcel.getPlaneType() == PlaneType.Town || planeExcel.getPlaneType() == PlaneType.Maze) { + this.worldId = planeExcel.getWorldID(); + } // Set world id if (planeExcel.getPlaneType() == PlaneType.Town || planeExcel.getPlaneType() == PlaneType.Maze) { @@ -827,13 +872,18 @@ public class Player implements Tickable, Syncable { // Send packet if (sendPacket) { - this.sendPacket(new PacketEnterSceneByServerScNotify(this)); + this.getSession().send(CmdId.SyncServerSceneChangeNotify); + this.getSession().send(new PacketEnterSceneByServerScNotify(this)); } // Done, return success return true; } + public boolean loadScene(Location location, boolean sendPacket) { + return loadScene(location.getPlaneId(), location.getFloorId(), location.getEntryId(), location.getPos(), location.getRot(), sendPacket); + } + public void setAssistAvatars(RepeatedInt avatars) { // Check size if (avatars.length() > 3) { @@ -913,7 +963,6 @@ public class Player implements Tickable, Syncable { this.getFriendList().loadFromDatabase(); this.getMailbox().loadFromDatabase(); this.getChallengeManager().loadFromDatabase(); - this.getRogueManager().loadFromDatabase(); // Load unlockables this.loadUnlocksFromDatabase(); @@ -921,10 +970,9 @@ public class Player implements Tickable, Syncable { // Update stamina this.updateStamina(System.currentTimeMillis()); - // Check instances - if (this.getChallengeInstance() != null && !this.getChallengeInstance().validate(this)) { - // Delete instance if it failed to validate (example: missing an excel) - this.challengeInstance = null; + // Set default world id if we don't have it + if (this.worldId == 0) { + this.worldId = GameConstants.DEFAULT_WORLD_ID; } // Set default world id if we don't have it @@ -972,6 +1020,7 @@ public class Player implements Tickable, Syncable { // Set logged in flag this.lastActiveTime = System.currentTimeMillis() / 1000; this.loggedIn = true; + // this.getMissionManager().onLogin(); } public void onLogout() { @@ -1009,7 +1058,6 @@ public class Player implements Tickable, Syncable { datastore.getCollection(PlayerLineup.class).deleteMany(filter); datastore.getCollection(PlayerExtraLineup.class).deleteMany(filter); datastore.getCollection(Mail.class).deleteMany(filter); - datastore.getCollection(RogueTalentData.class).deleteMany(filter); datastore.getCollection(PlayerUnlockData.class).deleteOne(filter); // Delete friendships @@ -1051,6 +1099,34 @@ public class Player implements Tickable, Syncable { return proto; } + public PlayerMocDisplayInfo getMocDisplayInfo() { + // todo: get from DB + var mocDisplayInfo = PlayerMocDisplayInfo.newInstance() + .setFloorNum(12) + .setStarCount(36) + .setSeasonId(21) + .setInt1(1015); // from pcap + + return mocDisplayInfo; + } + + public PlayerDisplayInfo getDisplayInfo() { + var playerDisplayInfo = PlayerDisplayInfo.newInstance() + .setBookCount(200) // idk how to get their amount + .setPhonographCount(60) // same with this field + .setAchievementCount(GameData.getQuestExcelMap().size()) // todo: set it to max amount of achievements in excel + .setInt2(1608) + .setSuWorld(8) // todo: get from DB + .setMocDisplayInfo(this.getMocDisplayInfo()); + + if (this.isOnline()) { + playerDisplayInfo.setCharacterCount(this.getAvatars().getAvatarCount()); + playerDisplayInfo.setLightconeCount(this.getInventory().getTab(InventoryTabType.EQUIPMENT).getSize()); + } + + return playerDisplayInfo; + } + public PlayerDetailInfo toDetailInfo() { var proto = PlayerDetailInfo.newInstance() .setUid(this.getUid()) @@ -1059,11 +1135,20 @@ public class Player implements Tickable, Syncable { .setLevel(this.getLevel()) .setWorldLevel(this.getWorldLevel()) .setPlatformType(PlatformType.PC) - .setShowDisplayAvatars(true) + .setHeadIcon(this.getHeadIcon()) + .setShowDisplayAvatars(false) .setHeadIcon(this.getHeadIcon()); proto.getMutableRecordInfo().getMutableCollectionInfo(); proto.getMutableDisplaySettings(); + proto.getMutableHeadIconFrameInfo(); + proto.getMutablePlayerOutfitData(); + proto.getMutableChallengeDetail() + .getMutableUnkInfo() + .getMutableUnkInfo() + .getMutableUnkInfo(); + + proto.setUnkDetail(""); for (int i = 0; i < this.getAssistAvatars().size(); i++) { ObjectId objectId = this.getAssistAvatars().get(i); @@ -1101,16 +1186,16 @@ public class Player implements Tickable, Syncable { return proto; } - public SimpleInfo toSimpleInfo() { - var proto = SimpleInfo.newInstance() + public PlayerSimpleInfo toSimpleInfo() { + var proto = PlayerSimpleInfo.newInstance() .setUid(this.getUid()) .setNickname(this.getName()) .setSignature(this.getSignature()) .setLevel(this.getLevel()) - .setChatBubbleId(this.getChatBubble()) + .setChatBubble(this.getChatBubble()) .setOnlineStatus(this.isOnline() ? FriendOnlineStatus.FRIEND_ONLINE_STATUS_ONLINE : FriendOnlineStatus.FRIEND_ONLINE_STATUS_OFFLINE) - .setPlatformType(PlatformType.PC) - .setLastActiveTime(this.getLastActiveTime()) + .setPlatform(PlatformType.PC) + .setLogoutTime(this.getLastActiveTime()) .setHeadIcon(this.getHeadIcon()); for (int i = 0; i < this.getAssistAvatars().size(); i++) { @@ -1126,7 +1211,7 @@ public class Player implements Tickable, Syncable { var info = avatar.toAssistSimpleProto(); info.setPos(i); - proto.addAssistSimpleInfo(info); + proto.addAssistInfoList(info); } return proto; @@ -1140,17 +1225,13 @@ public class Player implements Tickable, Syncable { proto.addUnlockedHeadIconList(HeadIcon.newInstance().setId(id)); } - return proto; - } - - public RogueCurVirtualItemInfo getCurRogueVirtualItem() { - var proto = RogueCurVirtualItemInfo.newInstance() - .setCurTalentCoin(this.getTalentPoints()); - - if (this.getRogueInstance() != null) { - proto.setCurRogueCoin(this.getRogueInstance().getCoin()); + for (int id : this.getUnlocks().getHeadIconFrames()) { + proto.addAllUnlockedHeadIconFrameIdList(id); } + proto.getMutableHeadIconFrameInfo() + .setHeadIconFrameId(this.getHeadIconFrame()); + return proto; } } diff --git a/src/main/java/emu/lunarcore/game/player/PlayerGameInstance.java b/src/main/java/emu/lunarcore/game/player/PlayerGameInstance.java new file mode 100644 index 0000000..0e56285 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/player/PlayerGameInstance.java @@ -0,0 +1,38 @@ +package emu.lunarcore.game.player; + +import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus; +import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics; +import lombok.Getter; + +@Getter +public abstract class PlayerGameInstance { + private transient Player player; + + public void setPlayer(Player player) { + if (this.player == null) { + this.player = player; + } + } + + // Events + + /** + * Called when the player starts a battle while in the instance + * @param battle + */ + public abstract void onBattleStart(Battle battle); + + /** + * Called when the player finishes a battle while in the instance + * @param battle + * @param result + * @param stats + */ + public abstract void onBattleFinish(Battle battle, BattleEndStatus result, BattleStatistics stats); + + /** + * Called when the player leaves the instance + */ + public abstract void onLeave(); +} diff --git a/src/main/java/emu/lunarcore/game/player/PlayerGender.java b/src/main/java/emu/lunarcore/game/player/PlayerGender.java index c63b63b..18d9f10 100644 --- a/src/main/java/emu/lunarcore/game/player/PlayerGender.java +++ b/src/main/java/emu/lunarcore/game/player/PlayerGender.java @@ -5,17 +5,28 @@ import lombok.Getter; @Entity(useDiscriminator = false) public enum PlayerGender { - GENDER_NONE (0), - GENDER_MAN (1), - GENDER_WOMAN (2); - + GENDER_NONE(0, "GenderNone"), + GENDER_MAN(1, "GenderMan"), + GENDER_WOMAN(2, "GenderWoman"); + @Getter private final int val; - - /** - * Official name: GenderType - */ - private PlayerGender(int val) { + + @Getter + private final String altName; + + private PlayerGender(int val, String altName) { this.val = val; + this.altName = altName; } -} + + // Method to get the enum constant by alternative name + public static PlayerGender fromAltName(String altName) { + for (PlayerGender gender : PlayerGender.values()) { + if (gender.altName.equalsIgnoreCase(altName)) { + return gender; + } + } + throw new IllegalArgumentException("No enum constant with alternative name: " + altName); + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java b/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java index dbcfac1..22d7930 100644 --- a/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java +++ b/src/main/java/emu/lunarcore/game/player/PlayerUnlockData.java @@ -11,7 +11,9 @@ import emu.lunarcore.proto.PlayerSyncScNotifyOuterClass.PlayerSyncScNotify; import emu.lunarcore.server.game.Syncable; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.send.PacketPlayerSyncScNotify; +import emu.lunarcore.server.packet.send.PacketUnlockAvatarSkinScNotify; import emu.lunarcore.server.packet.send.PacketUnlockChatBubbleScNotify; +import emu.lunarcore.server.packet.send.PacketUnlockPhoneCaseScNotify; import emu.lunarcore.server.packet.send.PacketUnlockPhoneThemeScNotify; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import it.unimi.dsi.fastutil.ints.IntSet; @@ -25,8 +27,12 @@ public class PlayerUnlockData implements Syncable { @Id private int ownerUid; private IntSet headIcons; + private IntSet headIconFrames; private IntSet chatBubbles; private IntSet phoneThemes; + private IntSet phoneCases; + private IntSet avatarSkins; + private IntSet playerOutfits; private IntSet pets; @Deprecated // Morphia only @@ -74,6 +80,13 @@ public class PlayerUnlockData implements Syncable { return this.headIcons; } + public IntSet getHeadIconFrames() { + if (this.headIconFrames == null) { + this.headIconFrames = new IntOpenHashSet(); + } + return this.headIconFrames; + } + public IntSet getChatBubbles() { if (this.chatBubbles == null) { this.chatBubbles = new IntOpenHashSet(); @@ -88,6 +101,27 @@ public class PlayerUnlockData implements Syncable { return this.phoneThemes; } + public IntSet getPhoneCases() { + if (this.phoneCases == null) { + this.phoneCases = new IntOpenHashSet(); + } + return this.phoneCases; + } + + public IntSet getAvatarSkins() { + if (this.avatarSkins == null) { + this.avatarSkins = new IntOpenHashSet(); + } + return this.avatarSkins; + } + + public IntSet getPlayerOutfits() { + if (this.playerOutfits == null) { + this.playerOutfits = new IntOpenHashSet(); + } + return this.playerOutfits; + } + public IntSet getPets() { if (this.pets == null) { this.pets = new IntOpenHashSet(); @@ -100,7 +134,16 @@ public class PlayerUnlockData implements Syncable { if (success && this.getOwner().isLoggedIn()) { this.sendPacket(new PacketPlayerSyncScNotify(this)); - this.save(); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "headIcons", headIconId); + } + } + + public void addHeadIconFrame(int headIconFrameId) { + boolean success = this.getHeadIconFrames().add(headIconFrameId); + + if (success && this.getOwner().isLoggedIn()) { + this.sendPacket(new PacketPlayerSyncScNotify(this)); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "headIconFrames", headIconFrameId); } } @@ -109,7 +152,7 @@ public class PlayerUnlockData implements Syncable { if (success && this.getOwner().isLoggedIn()) { this.sendPacket(new PacketUnlockChatBubbleScNotify(chatBubbleId)); - this.save(); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "chatBubbles", chatBubbleId); } } @@ -118,7 +161,34 @@ public class PlayerUnlockData implements Syncable { if (success && this.getOwner().isLoggedIn()) { this.sendPacket(new PacketUnlockPhoneThemeScNotify(phoneThemeId)); - this.save(); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "phoneThemes", phoneThemeId); + } + } + + public void addPhoneCase(int phoneCaseId) { + boolean success = this.getPhoneCases().add(phoneCaseId); + + if (success && this.getOwner().isLoggedIn()) { + this.sendPacket(new PacketUnlockPhoneCaseScNotify(phoneCaseId)); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "phoneCases", phoneCaseId); + } + } + + public void addAvatarSkin(int avatarSkinId) { + boolean success = this.getAvatarSkins().add(avatarSkinId); + + if (success && this.getOwner().isLoggedIn()) { + this.sendPacket(new PacketUnlockAvatarSkinScNotify(avatarSkinId)); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "avatarSkins", avatarSkinId); + } + } + + public void addPlayerOutfit(int playerOutfitId) { + boolean success = this.getPlayerOutfits().add(playerOutfitId); + + if (success && this.getOwner().isLoggedIn()) { + // TODO packet + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "playerOutfits", playerOutfitId); } } @@ -138,7 +208,7 @@ public class PlayerUnlockData implements Syncable { if (success && this.getOwner().isLoggedIn()) { // Pet sync packet TODO - this.save(); + LunarCore.getGameDatabase().addToSet(this, this.getOwnerUid(), "pets", excel.getPetID()); } } diff --git a/src/main/java/emu/lunarcore/game/player/lineup/LineupManager.java b/src/main/java/emu/lunarcore/game/player/lineup/LineupManager.java index 2dcc9d4..dfbb139 100644 --- a/src/main/java/emu/lunarcore/game/player/lineup/LineupManager.java +++ b/src/main/java/emu/lunarcore/game/player/lineup/LineupManager.java @@ -9,7 +9,8 @@ import emu.lunarcore.game.avatar.GameAvatar; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; import emu.lunarcore.server.packet.send.PacketSyncLineupNotify; - +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import lombok.Getter; @Entity(useDiscriminator = false) @Getter @@ -22,12 +23,12 @@ public class LineupManager { private transient int currentExtraIndex; private transient PlayerLineup[] lineups; - private transient PlayerExtraLineup[] extraLineups; + private transient Int2ObjectMap extraLineups; @Deprecated // Morphia only! public LineupManager() { this.lineups = new PlayerLineup[GameConstants.DEFAULT_TEAMS]; - this.extraLineups = new PlayerExtraLineup[ExtraLineupType.values().length]; + this.extraLineups = new Int2ObjectOpenHashMap<>(); } public LineupManager(Player player) { @@ -43,8 +44,9 @@ public class LineupManager { } protected void addMp(int i) { - this.mp = Math.min(this.mp + i, GameConstants.MAX_MP); - this.getPlayer().sendPacket(new PacketSyncLineupNotify(player.getCurrentLineup())); + var lineup = player.getCurrentLineup(); + this.mp = Math.min(this.mp + i, lineup.getMaxMp()); + this.getPlayer().sendPacket(new PacketSyncLineupNotify(lineup)); } protected void setMp(int i) { @@ -113,20 +115,7 @@ public class LineupManager { * @param type ExtraLineupType */ public PlayerLineup getExtraLineupByType(int type) { - // Sanity check to make sure the extra lineup type actually exists - if (type <= 0 || type >= this.extraLineups.length) { - return null; - } - - // Actually get the lineup - PlayerExtraLineup lineup = this.extraLineups[type]; - - if (lineup == null) { - lineup = new PlayerExtraLineup(this.getPlayer(), type); - this.extraLineups[type] = lineup; - } - - return lineup; + return this.extraLineups.computeIfAbsent(type, x -> new PlayerExtraLineup(this.getPlayer(), type)); } /** @@ -306,33 +295,10 @@ public class LineupManager { return false; } - // Clear - lineup.getAvatars().clear(); - - // Add - for (int avatarId : lineupList) { - GameAvatar avatar = getPlayer().getAvatarById(avatarId); - if (avatar != null) { - lineup.getAvatars().add(avatarId); - } - } - - // Validate leader slot - if (lineup.getLeader() >= lineup.size()) { - lineup.setLeader(0); - } - - // Save - lineup.save(); - - // Sync lineup with scene - if (lineup == getCurrentLineup()) { - player.getScene().syncLineup(); - } - - // Sync lineup data - player.sendPacket(new PacketSyncLineupNotify(lineup)); + // Replace + lineup.replace(lineupList); + // Success return true; } @@ -421,7 +387,7 @@ public class LineupManager { // Add to lineups try { - this.extraLineups[lineup.getExtraLineupType()] = lineup; + this.extraLineups.put(lineup.getExtraLineupType(), lineup); } catch (Exception e) { lineup.delete(); } diff --git a/src/main/java/emu/lunarcore/game/player/lineup/PlayerExtraLineup.java b/src/main/java/emu/lunarcore/game/player/lineup/PlayerExtraLineup.java index ce586a9..dd75a0b 100644 --- a/src/main/java/emu/lunarcore/game/player/lineup/PlayerExtraLineup.java +++ b/src/main/java/emu/lunarcore/game/player/lineup/PlayerExtraLineup.java @@ -1,7 +1,6 @@ package emu.lunarcore.game.player.lineup; import dev.morphia.annotations.Entity; -import emu.lunarcore.GameConstants; import emu.lunarcore.game.player.Player; import emu.lunarcore.server.packet.send.PacketSyncLineupNotify; @@ -33,7 +32,7 @@ public class PlayerExtraLineup extends PlayerLineup { @Override public void addMp(int i) { - this.mp = Math.min(this.mp + i, GameConstants.MAX_MP); + this.mp = Math.min(this.mp + i, this.getMaxMp()); this.getOwner().sendPacket(new PacketSyncLineupNotify(this.getOwner().getCurrentLineup())); } diff --git a/src/main/java/emu/lunarcore/game/player/lineup/PlayerLineup.java b/src/main/java/emu/lunarcore/game/player/lineup/PlayerLineup.java index 5ddf105..b79d5f0 100644 --- a/src/main/java/emu/lunarcore/game/player/lineup/PlayerLineup.java +++ b/src/main/java/emu/lunarcore/game/player/lineup/PlayerLineup.java @@ -87,6 +87,16 @@ public class PlayerLineup { return this.getOwner().getLineupManager().getMp(); } + public int getMaxMp() { + int mp = GameConstants.MAX_MP; + + for (int avatarId : this.getAvatars()) { + mp += GameConstants.BONUS_MAX_MP.get(avatarId); + } + + return mp; + } + public void heal(int heal, boolean allowRevive) { // Flag to set if at least one avatar in the team has been healed boolean hasHealed = false; @@ -187,7 +197,7 @@ public class PlayerLineup { .setIndex(this.getIndex()) .setLeaderSlot(this.getLeader()) .setMp(this.getMp()) - .setMaxMp(GameConstants.MAX_MP) + .setMaxMp(this.getMaxMp()) .setExtraLineupTypeValue(this.getExtraLineupType()); if (this.getName() != null) { diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java b/src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java deleted file mode 100644 index 57b6bba..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBonusData.java +++ /dev/null @@ -1,14 +0,0 @@ -package emu.lunarcore.game.rogue; - -import lombok.Getter; - -@Getter -public class RogueBonusData { - private int id; - private int eventId; - - public RogueBonusData(int id, int eventId) { - this.id = id; - this.eventId = eventId; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBonusSelectMenu.java b/src/main/java/emu/lunarcore/game/rogue/RogueBonusSelectMenu.java deleted file mode 100644 index 2baeb86..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBonusSelectMenu.java +++ /dev/null @@ -1,55 +0,0 @@ -package emu.lunarcore.game.rogue; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.excel.RogueBonusExcel; -import emu.lunarcore.proto.RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo; -import emu.lunarcore.util.WeightedList; -import lombok.Getter; - -import java.util.ArrayList; -import java.util.List; - -@Getter -public class RogueBonusSelectMenu { - private transient RogueInstance rogue; - - private int maxBonuses; - private List bonuses; - - // Cache - private transient WeightedList randomBonuses; - - public RogueBonusSelectMenu(RogueInstance rogue) { - this.rogue = rogue; - this.maxBonuses = 3; - this.bonuses = new ArrayList<>(); - - this.generateRandomBonuses(); - } - - public void generateRandomBonuses() { - if (this.randomBonuses == null) { - this.randomBonuses = new WeightedList<>(); - for (var excel : GameDepot.getRogueRandomCommonBonusList()) { - this.randomBonuses.add(1.0, excel); - }; - } - - this.getBonuses().clear(); - - while (this.getBonuses().size() < this.getMaxBonuses()) { - var excel = this.randomBonuses.next(); - this.getBonuses().add(new RogueBonusData(excel.getBonusID(), excel.getBonusEvent())); - } - } - - public RogueBonusSelectInfo toProto() { - var proto = RogueBonusSelectInfo.newInstance(); - - for (var bonus : this.getBonuses()) { - proto.addBonusInfo(bonus.getId()); - } - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBuffData.java b/src/main/java/emu/lunarcore/game/rogue/RogueBuffData.java deleted file mode 100644 index bfa1f60..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffData.java +++ /dev/null @@ -1,58 +0,0 @@ -package emu.lunarcore.game.rogue; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.excel.RogueBuffExcel; -import emu.lunarcore.game.battle.MazeBuff; -import emu.lunarcore.proto.RogueBuffDataOuterClass; -import emu.lunarcore.proto.RogueBuffOuterClass.RogueBuff; -import emu.lunarcore.proto.RogueCommonBuffOuterClass.RogueCommonBuff; -import lombok.Getter; - -@Getter -public class RogueBuffData { - private int id; - private int level; - - private transient RogueBuffExcel excel; - - public RogueBuffData(int buffId, int level) { - this.id = buffId; - this.level = level; - } - - public RogueBuffExcel getExcel() { - if (this.excel == null) { - this.excel = GameData.getRogueBuffExcel(this.getId(), this.getLevel()); - } - - return this.excel; - } - - public MazeBuff toMazeBuff() { - return new MazeBuff(id, level, 0xffffffff, 0xffffffff); - } - - public RogueBuff toProto() { - var proto = RogueBuff.newInstance() - .setBuffId(this.getId()) - .setLevel(this.getLevel()); - - return proto; - } - - public RogueCommonBuff toCommonProto() { - var proto = RogueCommonBuff.newInstance() - .setBuffId(this.getId()) - .setBuffLevel(this.getLevel()); - - return proto; - } - - public RogueBuffDataOuterClass.RogueBuffData toDataProto() { - var proto = RogueBuffDataOuterClass.RogueBuffData.newInstance() - .setBuffId(this.getId()) - .setLevel(this.getLevel()); - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java b/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java deleted file mode 100644 index cd75b6b..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffSelectMenu.java +++ /dev/null @@ -1,155 +0,0 @@ -package emu.lunarcore.game.rogue; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.excel.RogueBuffExcel; -import emu.lunarcore.proto.ItemCostOuterClass.ItemCost; -import emu.lunarcore.proto.PileItemOuterClass.PileItem; -import emu.lunarcore.proto.RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo; -import emu.lunarcore.util.WeightedList; -import lombok.Getter; - -@Getter -public class RogueBuffSelectMenu { - private transient RogueInstance rogue; - - private int maxBuffs; - private int rerolls; - private int maxRerolls; - private int hint; - private List buffs; - - // Cache - private transient WeightedList randomBuffs; - private transient Set allRandomBuffs; - - @Deprecated // Morphia only! - public RogueBuffSelectMenu() {} - - public RogueBuffSelectMenu(RogueInstance rogue) { - this(rogue, false, new HashSet<>()); - } - - public RogueBuffSelectMenu(RogueInstance rogue, boolean generateAeonBuffs, Set buffs) { - this.rogue = rogue; - this.maxBuffs = 3; - this.maxRerolls = rogue.getBaseRerolls(); - this.buffs = new ArrayList<>(); - this.allRandomBuffs = buffs; - - if (generateAeonBuffs) { - this.generateAeonBuffs(); - } else { - this.generateRandomBuffs(); - } - } - - public RogueBuffSelectMenu(RogueInstance rogue, boolean generateAeonBuffs) { - this(rogue, generateAeonBuffs, new HashSet<>()); - } - - public void setMaxRerolls(int i) { - this.maxBuffs = i; - } - - public void reroll() { - this.generateRandomBuffs(); - this.rerolls++; - } - - public boolean hasRerolls() { - return this.maxRerolls > this.rerolls; - } - - private void generateRandomBuffs() { - if (this.randomBuffs == null) { - this.randomBuffs = new WeightedList<>(); - - for (var excel : this.getAllRandomBuffs()) { - if (rogue.getBuffs().containsKey(excel.getExcel().getMazeBuffID())) { - continue; - } - - // Calculate buff weights - double weight = 10.0 / excel.getExcel().getRogueBuffCategory().getVal(); - - if (getRogue().getAeonBuffType() == excel.getExcel().getRogueBuffType()) { - weight *= 2; - } - - this.randomBuffs.add(weight, excel.getExcel()); - }; - } - - this.getBuffs().clear(); - - while (this.getBuffs().size() < this.getMaxBuffs()) { - var excel = this.randomBuffs.next(); - this.getBuffs().add(new RogueBuffData(excel.getMazeBuffID(), 1)); - } - - this.hint += 1; - } - - private void generateAeonBuffs() { - this.getBuffs().clear(); - - var aeonBuffExcel = GameDepot.getRogueAeonBuffs().get(getRogue().getAeonId()); - if (aeonBuffExcel == null) return; - - // Select buff menu hint - this.hint = (getRogue().getAeonId() * 100) + 1; - - // Check for rogue aeon buffs - if (!this.getRogue().getBuffs().containsKey(aeonBuffExcel.getMazeBuffID())) { - // We dont have the first aeon buff yet - this.getBuffs().add(new RogueBuffData(aeonBuffExcel.getMazeBuffID(), 1)); - } else { - // Add hint - this.hint += 1; - // Add path resonances that we currently dont have - for (var aeonEnhanceExcel : GameDepot.getRogueAeonEnhanceBuffs().get(getRogue().getAeonId())) { - if (!this.getRogue().getBuffs().containsKey(aeonEnhanceExcel.getMazeBuffID())) { - this.getBuffs().add(new RogueBuffData(aeonEnhanceExcel.getMazeBuffID(), 1)); - } else { - this.hint += 1; - } - } - } - } - - protected void onLoad(RogueInstance rogue) { - this.rogue = rogue; - } - - public RogueCommonBuffSelectInfo toProto() { - var proto = RogueCommonBuffSelectInfo.newInstance() - .setSelectBuffSourceHint(this.getHint()) - .setSourceCurCount(1) - .setSourceTotalCount(1); - - if (this.getMaxRerolls() > 0) { - proto.setCanRoll(true); - proto.setRollBuffTimes(this.getRerolls()); - proto.setRollBuffMaxTimes(this.getMaxRerolls()); - } - - for (var buff : this.getBuffs()) { - proto.addMazeBuffList(buff.toCommonProto()); - proto.addHandbookUnlockBuffIdList(buff.getId()); - } - - // Create item list for reroll cost - proto.getMutableRollBuffsCost() - .addItemList(ItemCost.newInstance() - .setPileItem(PileItem.newInstance() - .setItemId(31) - .setItemNum(30))); - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueBuffType.java b/src/main/java/emu/lunarcore/game/rogue/RogueBuffType.java deleted file mode 100644 index 778d809..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueBuffType.java +++ /dev/null @@ -1,39 +0,0 @@ -package emu.lunarcore.game.rogue; - -import java.util.Arrays; - -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum RogueBuffType { - Default (100), - Preservation (120), - Remembrance (121), - Nihility (122), - Abundance (123), - TheHunt (124), - Destruction (125), - Elation (126), - Propagation (127), - Erudition (128); - - private final int val; - @Setter private int battleEventSkill; - - private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); - - static { - Arrays.stream(values()).forEach(type -> map.put(type.getVal(), type)); - } - - private RogueBuffType(int val) { - this.val = val; - } - - public static RogueBuffType getById(int id) { - return map.get(id); - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java b/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java deleted file mode 100644 index 814870f..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEntityLoader.java +++ /dev/null @@ -1,157 +0,0 @@ -package emu.lunarcore.game.rogue; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.config.GroupInfo; -import emu.lunarcore.data.config.MonsterInfo; -import emu.lunarcore.data.config.NpcInfo; -import emu.lunarcore.data.config.PropInfo; -import emu.lunarcore.data.excel.NpcMonsterExcel; -import emu.lunarcore.data.excel.PropExcel; -import emu.lunarcore.data.excel.RogueMonsterExcel; -import emu.lunarcore.data.excel.RogueNPCExcel; -import emu.lunarcore.game.enums.PropState; -import emu.lunarcore.game.rogue.event.RogueEventInstance; -import emu.lunarcore.game.scene.Scene; -import emu.lunarcore.game.scene.SceneEntityLoader; -import emu.lunarcore.game.scene.entity.EntityMonster; -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.game.scene.entity.EntityProp; -import emu.lunarcore.game.scene.entity.extra.PropRogueData; -import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueDataScNotify; -import emu.lunarcore.util.Utils; - -public class RogueEntityLoader extends SceneEntityLoader { - - @Override - public void onSceneLoad(Scene scene) { - // Make sure player is in a rogue instance - RogueInstance rogue = scene.getPlayer().getRogueInstance(); - if (rogue == null) return; - - // Get current room - RogueRoomData room = rogue.getCurrentRoom(); - if (room == null) return; - - // Load scene groups - for (int key : room.getExcel().getGroupWithContent().keySet()) { - scene.loadGroup(key); - } - } - - @Override - public EntityMonster loadMonster(Scene scene, GroupInfo group, MonsterInfo monsterInfo) { - // Make sure player is in a rogue instance - RogueInstance rogue = scene.getPlayer().getRogueInstance(); - if (rogue == null) return null; - - // Get rogue group content - int content = rogue.getCurrentRoom().getExcel().getGroupContent(group.getId()); - if (content <= 0) return null; - - // Get rogue monster excel and npc monster excel - RogueMonsterExcel rogueMonster = GameData.getRogueMonsterExcelMap().get((content * 10) + 1); - if (rogueMonster == null) return null; - - NpcMonsterExcel npcMonster = GameData.getNpcMonsterExcelMap().get(rogueMonster.getNpcMonsterID()); - if (npcMonster == null) return null; - - // Actually create the monster now - EntityMonster monster = new EntityMonster(scene, npcMonster, group, monsterInfo); - monster.setEventId(rogueMonster.getEventID()); - monster.setCustomStage(rogueMonster.getEventID()); - - return monster; - } - - @Override - public EntityProp loadProp(Scene scene, GroupInfo group, PropInfo propInfo) { - // Make sure player is in a rogue instance - RogueInstance rogue = scene.getPlayer().getRogueInstance(); - if (rogue == null) return null; - - // Set variables here so we can override them later if we need - int propId = propInfo.getPropID(); - PropState state = propInfo.getState(); - PropRogueData propExtra = null; - - // Rogue portal id is 1000 - if (propId == 1000 || propId == 1021 || propId == 1022 || propId == 1023) { - // Site index - int index = 0; - - // Eww - if (propInfo.getName().equals("Door2")) { - index = 1; - } - - // Get portal data - RogueRoomData room = rogue.getCurrentRoom(); - if (room.getNextSiteIds().length > 0) { - int siteId = room.getNextSiteIds()[index]; - var nextRoom = rogue.getRooms().get(siteId); - - propId = switch (nextRoom.getRoomExcel().getRogueRoomType()) { - case 3,8 -> 1022; - case 5 -> 1023; - default -> 1021; - }; - propExtra = new PropRogueData(nextRoom.getRoomId(), siteId); - } else { - // Exit portal? - propId = 1000; - } - - // Force rogue portal to always be open, even if occurrences or monsters exist in the scene. TODO handle correctly - state = PropState.Open; - } - - // Get prop excel - PropExcel propExcel = GameData.getPropExcelMap().get(propId); - if (propExcel == null) return null; - - // Hacky fix to always open doors - if (propExcel.isDoor()) { - state = PropState.Open; - } - - // Create prop from prop info - EntityProp prop = new EntityProp(scene, propExcel, group, propInfo); - prop.setState(state, false); - - // Overrides - if (propExtra != null) { - prop.setRogueData(propExtra); - } - - // Add trigger - if (propInfo.getTrigger() != null) { - scene.getTriggers().add(propInfo.getTrigger()); - } - - return prop; - } - - @Override - public EntityNpc loadNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { - // Create npc from group npc info - EntityNpc npc = super.loadNpc(scene, group, npcInfo); - - // Add rogue dialogue - if (npc.getNpcId() == 3013) { - int npcId; - RogueInstance instance; - RogueEventInstance eventInstance; - do { - RogueNPCExcel rogueNpcExcel = Utils.randomElement(GameData.getRogueNPCExcelMap().values().stream().toList()); - npcId = rogueNpcExcel.getId(); - instance = scene.getPlayer().getRogueInstance(); - eventInstance = instance.generateEvent(npcId, npc); - } while (eventInstance == null); - - npc.setEventInstance(eventInstance); - scene.getPlayer().sendPacket(new PacketSyncRogueCommonDialogueDataScNotify(eventInstance)); - } - - return npc; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java deleted file mode 100644 index 89309a3..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueEventManager.java +++ /dev/null @@ -1,181 +0,0 @@ -package emu.lunarcore.game.rogue; - -import emu.lunarcore.LunarCore; -import emu.lunarcore.data.GameData; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.game.rogue.event.RogueEventResultInfo; -import emu.lunarcore.server.packet.send.PacketSyncRogueCommonDialogueOptionFinishScNotify; -import emu.lunarcore.util.Utils; -import emu.lunarcore.util.WeightedList; -import it.unimi.dsi.fastutil.ints.IntArrayList; -import lombok.Getter; - -@Getter -public class RogueEventManager { - private RogueInstance rogueInstance; - private Player player; - - public RogueEventManager(RogueInstance rogueInstance) { - this.rogueInstance = rogueInstance; - this.player = rogueInstance.getPlayer(); - } - - public int handleEvent(int optionId, int eventUniqueId) { - var event = GameData.getRogueDialogueEventList().get(optionId); - if (event == null || event.getRogueEffectType() == null) return 0; - IntArrayList param = event.getRogueEffectParamList(); - var instance = this.getRogueInstance().getRunningEvents().get(eventUniqueId); - boolean isEvent = false; - if (instance != null && instance.SelectedOptionId == 0) { - instance.SelectedOptionId = optionId; - isEvent = true; - } - - switch (event.getRogueEffectType()) { - case GetItem -> rogueInstance.addDialogueCoin(param.getInt(1)); - case TriggerBattle -> { - var battleId = param.getInt(0); - var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst(); - if (option.isEmpty()) return 0; - var result = new RogueEventResultInfo(); - result.BattleEventId = battleId; - option.get().Results.add(result); - } - case TriggerRogueMiracleSelect -> this.getRogueInstance().createMiracleSelect(1); - case TriggerRogueBuffSelect -> { - this.getRogueInstance().createBuffSelect(param.getInt(2), param.getInt(0)); - } - case GetRogueBuff -> { - var rogueBuff = GameData.getRogueBuffGroupExcelMap().get(param.getInt(0)); - if (rogueBuff != null) { - var weightList = new WeightedList(); - for (var buff : rogueBuff.getRogueBuffList()) { - weightList.add(1.0f, buff); - } - // random param.get(1) times - while (true) { - var buff = weightList.next(); - if (buff == null || buff.getExcel() == null) break; - if (this.getRogueInstance().getBuffs().containsValue(buff)) continue; - this.getRogueInstance().addBuff(buff); - param.set(1, param.getInt(1) - 1); - if (param.getInt(1) <= 0) break; - } - } - } - case GetAllRogueBuffInGroup -> { - var rogueBuff = GameData.getRogueBuffGroupExcelMap().get(param.getInt(0)); - this.getRogueInstance().addBuff(rogueBuff.getRogueBuffList()); - } - case TriggerDialogueEventList -> { - for (var id : param) { - this.handleEvent(id, eventUniqueId); - this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(id); - } - } - case TriggerRandomEventList -> { - var weightList = new WeightedList(); - var nextEventId = 0; - for (var id : param) { - if (nextEventId == 0) { - nextEventId = id; - continue; - } - weightList.add(id, nextEventId); - nextEventId = 0; - } - int randomEventId = weightList.next(); - handleCost(optionId); - this.handleEvent(randomEventId, eventUniqueId); - return randomEventId; - } - case GetAllRogueBuffInGroupAndGetItem -> { - var rogueBuff = GameData.getRogueBuffGroupExcelMap().get(param.getInt(0)); - this.getRogueInstance().addBuff(rogueBuff.getRogueBuffList()); - this.getRogueInstance().addDialogueCoin(param.getInt(2)); - } - case RepeatableGamble -> { - var failEventId = param.getInt(0); - var initialPercent = param.getInt(1); - var increasePercent = param.getInt(2); - var option = this.getRogueInstance().getRunningEvents().get(eventUniqueId).Options.stream().filter(x -> x.OptionId == optionId).findFirst(); - if (option.isEmpty()) return 0; - var nowPercentage = option.get().Ratio; - if (nowPercentage != 0) - nowPercentage = initialPercent; - var weightList = new WeightedList(); - for (int i = 3; i < param.size(); i += 2) { - weightList.add(param.getInt(i + 1), param.getInt(i)); - } - int randomNum = Utils.randomRange(0, 10000); - handleCost(optionId); - if (randomNum <= nowPercentage * 10000) { - this.handleEvent(failEventId, eventUniqueId); - this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(failEventId); - return 0; - } else { - int nextEventId = weightList.next(); - // add percentage - option.get().Ratio += increasePercent / 100f; - this.handleEvent(nextEventId, eventUniqueId); - this.getRogueInstance().getRunningEvents().get(eventUniqueId).EffectEventId.add(nextEventId); - return 0; - } - } - case EnhanceRogueBuff -> { - var rogueBuff = GameData.getRogueBuffGroupExcelMap().get(param.getInt(0)); - if (rogueBuff != null) { - var weightList = new WeightedList(); - for (var buff : rogueBuff.getRogueBuffList()) { - weightList.add(1.0f, buff); - } - // random param.get(1) times - while (true) { - var buff = weightList.next(); - if (buff == null || buff.getExcel() == null) break; - if (!this.getRogueInstance().getBuffs().containsValue(buff)) continue; - if (this.getRogueInstance().getBuffs().get(buff.getId()).getLevel() >= 2) continue; - this.getRogueInstance().addBuff(new RogueBuffData(buff.getId(), buff.getLevel() + 1)); - param.set(1, param.getInt(1) - 1); - if (param.getInt(1) <= 0) break; - } - } - } - case NONE -> {} // do nothing - default -> { - LunarCore.getLogger().info("RogueEventManager: unhandled event type: " + event.getRogueEffectType()); // DEBUG - } - } - handleCost(optionId); - - if (isEvent) { - // Sync - this.getRogueInstance().getPlayer().sendPacket(new PacketSyncRogueCommonDialogueOptionFinishScNotify(instance)); - } - return 0; - } - - public void handleCost(int eventId) { - var event = GameData.getRogueDialogueEventList().get(eventId); - if (event == null || event.getCostType() == null) return; - var param = event.getCostParamList(); - switch (event.getCostType()) { - case CostItemValue -> rogueInstance.removeCoin(param.getInt(1)); - case CostItemPercent -> rogueInstance.removeCoin(rogueInstance.getCoin() * param.getInt(1) / 100); - case CostHpCurrentPercent -> { - var lineup = this.getPlayer().getCurrentLineup(); - lineup.forEachAvatar(avatar -> { - avatar.setCurrentHp(lineup, avatar.getCurrentHp(lineup) - (avatar.getCurrentHp(lineup) * param.getInt(0) / 100)); - }); - } - case CostHpSpToPercent -> { - var lineup = this.getPlayer().getCurrentLineup(); - lineup.forEachAvatar(avatar -> { - avatar.setCurrentHp(lineup, avatar.getCurrentHp(lineup) - (avatar.getCurrentHp(lineup) * param.getInt(0) / 100)); - avatar.setCurrentSp(lineup, avatar.getMaxSp() - (avatar.getMaxSp() * param.getInt(1) / 100)); - }); - } - default -> {} - } - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java deleted file mode 100644 index 85acb26..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java +++ /dev/null @@ -1,713 +0,0 @@ -package emu.lunarcore.game.rogue; - -import java.util.*; - -import emu.lunarcore.GameConstants; -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.config.AnchorInfo; -import emu.lunarcore.data.excel.*; -import emu.lunarcore.game.battle.Battle; -import emu.lunarcore.game.enums.RogueBuffAeonType; -import emu.lunarcore.game.enums.RogueDialogueType; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.game.player.lineup.PlayerLineup; -import emu.lunarcore.game.rogue.event.RogueEventInstance; -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.AvatarTypeOuterClass.AvatarType; -import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus; -import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics; -import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; -import emu.lunarcore.proto.HandleRogueCommonPendingActionScRspOuterClass.HandleRogueCommonPendingActionScRsp; -import emu.lunarcore.proto.RogueAeonOuterClass.RogueAeon; -import emu.lunarcore.proto.RogueAvatarInfoOuterClass.RogueAvatarInfo; -import emu.lunarcore.proto.RogueBuffInfoOuterClass.RogueBuffInfo; -import emu.lunarcore.proto.RogueBuffOuterClass.RogueBuff; -import emu.lunarcore.proto.RogueBuffSourceOuterClass.RogueBuffSource; -import emu.lunarcore.proto.RogueCommonPendingActionOuterClass.RogueCommonPendingAction; -import emu.lunarcore.proto.RogueCurrentInfoOuterClass.RogueCurrentInfo; -import emu.lunarcore.proto.RogueFinishInfoOuterClass.RogueFinishInfo; -import emu.lunarcore.proto.RogueMapInfoOuterClass.RogueMapInfo; -import emu.lunarcore.proto.RogueMiracleInfoOuterClass.RogueMiracleInfo; -import emu.lunarcore.proto.RogueRecordAvatarOuterClass.RogueRecordAvatar; -import emu.lunarcore.proto.RogueRecordInfoOuterClass.RogueRecordInfo; -import emu.lunarcore.proto.RogueRoomStatusOuterClass.RogueRoomStatus; -import emu.lunarcore.proto.RogueStatusOuterClass.RogueStatus; -import emu.lunarcore.proto.RogueVirtualItemInfoOuterClass.RogueVirtualItemInfo; -import emu.lunarcore.server.packet.send.*; -import emu.lunarcore.util.Utils; -import it.unimi.dsi.fastutil.ints.Int2ObjectMap; -import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; -import lombok.Getter; -import us.hebi.quickbuf.RepeatedInt; - -@Getter -public class RogueInstance { - private transient Player player; - private transient RogueAreaExcel excel; - private transient RogueEventManager eventManager; - - private int areaId; - private int currentRoomProgress; - private int currentSiteId; - private int startSiteId; - private TreeMap rooms; - - private Set baseAvatarIds; - private Map buffs; - private Map miracles; - - //private int pendingBuffSelects; - private List> pendingBuffSelects = new ArrayList<>(); - private RogueBuffSelectMenu buffSelect; - private int pendingMiracleSelects; - private RogueMiracleSelectMenu miracleSelect; - private int pendingBonusSelects; - private RogueBonusSelectMenu bonusSelect; - public RogueCommonPendingAction pendingAction; - - private int baseRerolls; - private int aeonId; - private int aeonBuffType; - private int maxAeonBuffs; - private int coin; // universal debris - public int actionUniqueId = 0; - public int eventUniqueId = 690; - public Int2ObjectMap runningEvents = new Int2ObjectOpenHashMap<>(); - private final Set normalBuff = GameData.getRogueBuffGroupExcelMap().get(100005).getRogueBuffList(); - private final Set uncommonBuff = GameData.getRogueBuffGroupExcelMap().get(100003).getRogueBuffList(); - - private int roomScore; - private int earnedTalentCoin; - private boolean isWin; - - @Deprecated // Morphia only! - public RogueInstance() {} - - public RogueInstance(Player player, RogueAreaExcel excel, RogueAeonExcel aeonExcel) { - this.player = player; - this.excel = excel; - this.areaId = excel.getRogueAreaID(); - this.currentRoomProgress = 0; - this.baseAvatarIds = new HashSet<>(); - this.buffs = new HashMap<>(); - this.miracles = new HashMap<>(); - this.maxAeonBuffs = 4; - this.coin = 100; - this.eventManager = new RogueEventManager(this); - - if (aeonExcel != null) { - this.aeonId = aeonExcel.getAeonID(); - this.aeonBuffType = aeonExcel.getRogueBuffType(); - } - - this.initRooms(); - this.initTalents(); - } - - public RogueStatus getStatus() { - return RogueStatus.ROGUE_STATUS_DOING; - } - - private void initRooms() { - if (this.rooms != null) return; - - this.rooms = new TreeMap<>(); - - for (var mapExcel : this.getExcel().getSites()) { - var roomData = new RogueRoomData(mapExcel); - this.rooms.put(roomData.getSiteId(), roomData); - - if (mapExcel.isIsStart()) { - this.startSiteId = roomData.getSiteId(); - } - } - } - - private void initTalents() { - // Reset blessings - if (player.getRogueManager().hasTalent(11)) { - this.baseRerolls = 1; - } - // Extra blessings - if (player.getRogueManager().hasTalent(21)) { - this.pendingBuffSelects.add(normalBuff); - } - } - - private RogueRoomData getRoomBySiteId(int siteId) { - return this.rooms.get(siteId); - } - - public RogueRoomData getCurrentRoom() { - return this.getRoomBySiteId(this.getCurrentSiteId()); - } - - private boolean shouldAddAeonBuff() { - int pathBuffs = 0; // Buffs on the current path - int aeonBuffs = 0; - - for (var b : this.getBuffs().values()) { - var excel = b.getExcel(); - if (excel == null) continue; - - if (excel.getRogueBuffType() == this.getAeonBuffType()) { - if (excel.isAeonBuff()) { - aeonBuffs++; - } else { - pathBuffs++; - } - } - } - - // Skip if we are already at max aeon buffs - if (aeonBuffs >= this.maxAeonBuffs) { - return false; - } - - switch (aeonBuffs) { - case 0: - return pathBuffs >= 3; - case 1: - return pathBuffs >= 6; - case 2: - return pathBuffs >= 10; - case 3: - return pathBuffs >= 14; - default: - return false; - } - } - - public synchronized void createBuffSelect(int amount, int groupId) { - var buffs = GameData.getRogueBuffGroupExcelMap().get(groupId).getRogueBuffList(); - if (!buffs.isEmpty()) { - for (int i = 0; i < amount; i++) { - this.pendingBuffSelects.add(buffs); - } - this.updateBuffSelect(); - } - } - - public synchronized void createBuffSelect(int amount, Set buffs) { - if (!buffs.isEmpty()) { - for (int i = 0; i < amount; i++) { - this.pendingBuffSelects.add(buffs); - } - - this.updateBuffSelect(); - } - } - - public synchronized void createBuffSelect(int amount) { - for (int i = 0; i < amount; i++) { - this.pendingBuffSelects.add(normalBuff); - } - this.updateBuffSelect(); - } - - public synchronized RogueBuffSelectMenu updateBuffSelect() { - if (this.getBuffSelect() == null) { - // Creates a new blessing selection menu if we have any pending buff selects - if (!this.pendingBuffSelects.isEmpty()) { - // Regular blessing selection with 3 random blessings - this.buffSelect = new RogueBuffSelectMenu(this, false, this.pendingBuffSelects.get(0)); - this.pendingBuffSelects.remove(0); - } else if (this.getAeonId() != 0) { - // Check if we should add aeon blessings - if (shouldAddAeonBuff()) { - this.buffSelect = new RogueBuffSelectMenu(this, true); - } - } - - if (this.getBuffSelect() != null) { - var proto = new PacketSyncRogueCommonPendingActionScNotify(this.buffSelect.toProto(), this.actionUniqueId); - this.actionUniqueId += 2; - this.pendingAction = proto.toProto(); - this.getPlayer().sendPacket(proto); - } - - return this.buffSelect; - } - - return null; - } - - public synchronized RogueBuffSelectMenu rollBuffSelect() { - if (getBuffSelect() != null && getBuffSelect().hasRerolls() && coin >= 30) { - this.getBuffSelect().reroll(); - this.removeCoin(30); - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.getBuffSelect().toProto(), this.actionUniqueId - 2)); - - var proto = new PacketSyncRogueCommonPendingActionScNotify(this.buffSelect.toProto(), this.actionUniqueId); - this.actionUniqueId += 2; - pendingAction = proto.toProto(); - return this.getBuffSelect(); - } else { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - } - - return null; - } - - public synchronized RogueBuffData selectBuff(int buffId) { - // Sanity - if (this.getBuffSelect() == null) { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - return null; - } - - // Validate buff from buff select menu - RogueBuffData buff = this.getBuffSelect().getBuffs() - .stream() - .filter(b -> b.getId() == buffId) - .findFirst() - .orElse(null); - - if (buff == null) { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - return null; - } - - // Add buff - this.buffSelect = null; - this.pendingAction = null; - this.getBuffs().put(buff.getId(), buff); - //getPlayer().sendPacket(new PacketAddRogueBuffScNotify(buff, RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_SELECT)); - this.updateBuffSelect(); - - this.getPlayer().sendPacket(new PacketSyncRogueCommonActionResultScNotify(RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_SELECT, buff.toDataProto())); - - var data = HandleRogueCommonPendingActionScRsp.newInstance(); - data.getMutableRogueBuffSelect(); - data.setActionUniqueId(this.actionUniqueId - 2); - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data)); - return buff; - } - - public synchronized void addBuff(Set buffs) { - for (var buff : buffs) { - this.addBuff(buff); - } - } - - public synchronized void addBuff(RogueBuffData buff) { - this.addBuff(buff, RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_DIALOGUE); - } - public synchronized void addBuff(RogueBuffData buff, RogueBuffSource source) { - this.getBuffs().put(buff.getId(), buff); - getPlayer().sendPacket(new PacketSyncRogueCommonActionResultScNotify(source, buff.toDataProto())); - this.updateBuffSelect(); - } - - public synchronized RogueBuff enhanceBuff(int buffId) { - var buff = this.getBuffs().get(buffId); - if (buff == null) return null; - var cost = 100 + (buff.getExcel().getRogueBuffCategory().getVal() - 1) * 30; - if (this.getCoin() < cost) return null; - this.removeCoin(cost); - this.getBuffs().remove(buffId); - this.addBuff(new RogueBuffData(buff.getId(), buff.getLevel() + 1), RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_ENHANCE); - return RogueBuff.newInstance() - .setBuffId(buffId) - .setLevel(buff.getLevel() + 1); - } - - public synchronized void createMiracleSelect(int amount) { - this.pendingMiracleSelects += amount; - this.updateMiracleSelect(); - } - - public synchronized RogueMiracleSelectMenu updateMiracleSelect() { - if (this.pendingMiracleSelects > 0 && this.getMiracleSelect() == null) { - this.miracleSelect = new RogueMiracleSelectMenu(this); - this.pendingMiracleSelects--; - var proto = new PacketSyncRogueCommonPendingActionScNotify(this.miracleSelect.toProto(), this.actionUniqueId); - this.actionUniqueId += 2; - this.pendingAction = proto.toProto(); - this.getPlayer().sendPacket(proto); - return this.miracleSelect; - } - - return null; - } - - public synchronized RogueMiracleData selectMiracle(int miracleId) { - if (this.getMiracleSelect() == null) { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - return null; - } - - RogueMiracleData miracle = this.getMiracleSelect().getMiracles() - .stream() - .filter(b -> b.getId() == miracleId) - .findFirst() - .orElse(null); - - if (miracle == null) { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - return null; - } - - this.miracleSelect = null; - this.pendingAction = null; - this.getMiracles().put(miracle.getId(), miracle); - - this.updateMiracleSelect(); - this.getPlayer().sendPacket(new PacketSyncRogueCommonActionResultScNotify(RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_SELECT, miracle.toDataProto())); - - var data = HandleRogueCommonPendingActionScRsp.newInstance(); - data.getMutableMiracleSelect(); - data.setActionUniqueId(this.actionUniqueId - 2); - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data)); - return miracle; - } - - public synchronized void createBonusSelect(int amount) { - this.pendingBonusSelects += amount; - this.updateBonusSelect(); - } - - public synchronized RogueBonusSelectMenu updateBonusSelect() { - if (this.pendingBonusSelects > 0 && this.getBonusSelect() == null) { - this.bonusSelect = new RogueBonusSelectMenu(this); - this.pendingBonusSelects--; - var proto = new PacketSyncRogueCommonPendingActionScNotify(this.bonusSelect.toProto(), this.actionUniqueId); - this.actionUniqueId += 2; - this.pendingAction = proto.toProto(); - this.getPlayer().sendPacket(proto); - return this.bonusSelect; - } - - return null; - } - - public synchronized RogueBonusData selectBonus(int bonusId) { - if (this.getBonusSelect() == null) { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - return null; - } - - RogueBonusData bonus = this.getBonusSelect().getBonuses() - .stream() - .filter(b -> b.getId() == bonusId) - .findFirst() - .orElse(null); - - if (bonus == null) { - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(this.actionUniqueId - 2)); - return null; - } - - this.bonusSelect = null; - this.pendingAction = null; - // every bonus is an event - // TODO: add event - var data = HandleRogueCommonPendingActionScRsp.newInstance(); - data.getMutableBonusSelect(); - data.setActionUniqueId(this.actionUniqueId - 2); - this.getPlayer().sendPacket(new PacketHandleRogueCommonPendingActionScRsp(data)); - try { - this.onSelectDialogue(bonus.getEventId(), 0); - } catch (Exception ignored) { - } - return bonus; - } - - /** - * Sets the amount of coins the player has without showing any tooltip - */ - public synchronized void setCoin(int amount) { - this.coin = Math.max(amount, 0); - this.getPlayer().sendPacket(new PacketSyncRogueVirtualItemInfoScNotify(this.getPlayer())); - } - - public void addCoin(int count) { - this.getPlayer().getInventory().addItem(GameConstants.ROGUE_COIN_ID, count, true); - } - - public void removeCoin(int count) { - this.getPlayer().getInventory().addItem(GameConstants.ROGUE_COIN_ID, -count, true); - } - - public void addDialogueCoin(int count) { - this.addCoin(count); - this.getPlayer().sendPacket(new PacketSyncRogueCommonActionResultScNotify(RogueBuffSource.ROGUE_BUFF_SOURCE_TYPE_DIALOGUE, count)); - } - - public synchronized void pickAvatar(RepeatedInt avatarId) { - var newAvatarIds = new HashSet(); - for (int id : avatarId) { - this.baseAvatarIds.add(id); - newAvatarIds.add(id); - } - this.getPlayer().getLineupManager().getExtraLineupByType(ExtraLineupType.LINEUP_ROGUE_VALUE).getAvatars().addAll(newAvatarIds); // TODO: check if this is correct - this.getPlayer().sendPacket(new PacketPickRogueAvatarScRsp(newAvatarIds)); - } - - public synchronized RogueEventInstance generateEvent(int npcId, EntityNpc npcEntity) { - try { - this.runningEvents.clear(); - - RogueNPCExcel npc = GameData.getRogueNPCExcelMap().get(npcId); - - if (npc == null || npc.getRogueNpcConfig() == null || - npc.getRogueNpcConfig().DialogueType != RogueDialogueType.Event) { // make sure the npc is an event npc - return null; - } - - var instance = new RogueEventInstance(npc, npcEntity, this.eventUniqueId++); - - this.getRunningEvents().put(instance.EventUniqueId, instance); - - return instance; - } catch (Exception e) { - return null; - } - } - - public synchronized RogueRoomData enterRoom(int siteId) { - // Set status on previous room - RogueRoomData prevRoom = this.getCurrentRoom(); - if (prevRoom != null) { - // Make sure the site we want to go into is connected to the current room we are in - if (!Utils.arrayContains(prevRoom.getNextSiteIds(), siteId)) { - return null; - } - // Update status - prevRoom.setStatus(RogueRoomStatus.ROGUE_ROOM_STATUS_FINISH); - } - - // Get next room - RogueRoomData nextRoom = this.getRoomBySiteId(siteId); - if (nextRoom == null) return null; - - // Enter room - this.currentRoomProgress++; - this.currentSiteId = nextRoom.getSiteId(); - nextRoom.setStatus(RogueRoomStatus.ROGUE_ROOM_STATUS_PLAY); - - // Enter scene - boolean success = getPlayer().enterScene(nextRoom.getRoomExcel().getMapEntrance(), 0, false); - if (!success) return null; - - // Move player to rogue start position - AnchorInfo anchor = getPlayer().getScene().getFloorInfo().getAnchorInfo(nextRoom.getExcel().getGroupID(), 1); - if (anchor != null) { - getPlayer().getPos().set(anchor.getPos()); - getPlayer().getRot().set(anchor.getRot()); - } - - // Send packet if we are not entering the rogue instance for the first time - if (prevRoom != null) { - getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, prevRoom)); - } - - getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, nextRoom)); - - return nextRoom; - } - - public void onFinish() { - // Calculate completed rooms - int completedRooms = Math.max(this.currentRoomProgress - (this.isWin() ? 0 : 1), 0); - - // Calculate score and talent point rewards - this.roomScore = this.getExcel().getScoreMap().get(completedRooms); - this.earnedTalentCoin = this.roomScore / 10; - - // Add coins to player - if (this.earnedTalentCoin > 0) { - this.getPlayer().addTalentPoints(this.earnedTalentCoin); - this.getPlayer().save(); - } - } - - // Dialogue stuff - - public int onSelectDialogue(int dialogueEventId, int eventUniqueId) { - var instance = this.getRunningEvents().get(eventUniqueId); - if (instance == null) { - return 0; - } - - instance.SelectedOptionId = 0; // reset selected option - return this.eventManager.handleEvent(dialogueEventId, eventUniqueId); - } - - // Battle - - public synchronized void onBattleStart(Battle battle) { - // Add rogue blessings as battle buffs - for (var buff : this.getBuffs().values()) { - // Convert blessing to battle buff - battle.addBuff(buff.toMazeBuff()); - // Set battle buff energy to max - if (buff.getExcel().getBattleEventBuffType() == RogueBuffAeonType.BattleEventBuff) { - RogueBuffType type = RogueBuffType.getById(getAeonBuffType()); - if (type != null && type.getBattleEventSkill() != 0) { - battle.getBattleEvents().add(type.getBattleEventSkill()); - } - } - } - // Set monster level for battle - RogueMapExcel mapExcel = GameData.getRogueMapExcel(this.getExcel().getMapId(), this.getCurrentSiteId()); - if (mapExcel != null && mapExcel.getLevelList() != null && mapExcel.getLevelList().length >= 1) { - battle.setCustomLevel(mapExcel.getLevelList()[0]); - } - } - - public synchronized void onBattleFinish(Battle battle, BattleEndStatus result, BattleStatistics stats) { - if (result == BattleEndStatus.BATTLE_END_WIN) { - int roomType = this.getCurrentRoom().getExcel().getRogueRoomType(); - if (roomType == RogueRoomType.BOSS.getVal()) { - // Final boss - this.isWin = true; - } else { - // Give blessings to player - int amount = battle.getNpcMonsters().size(); - if (this.getCurrentRoom().getExcel().getRogueRoomType() == RogueRoomType.ELITE.getVal()) { - this.createBuffSelect(amount, this.getUncommonBuff()); - } else { - this.createBuffSelect(amount); - } - this.addCoin(Utils.randomRange(20, 40) * amount); - } - } else { - this.getPlayer().getRogueManager().quitRogue(); - } - } - - // Database - - public void onLoad(Player player) { - this.player = player; - this.excel = GameData.getRogueAreaExcelMap().get(areaId); - - if (this.getBuffSelect() != null) { - this.getBuffSelect().onLoad(this); - } - if (this.getMiracleSelect() != null) { - this.getMiracleSelect().onLoad(this); - } - } - - // Serialization - - public RogueCurrentInfo toProto() { - var proto = RogueCurrentInfo.newInstance() - .setStatus(this.getStatus()) - .setRogueAvatarInfo(this.toAvatarInfoProto()) - .setRoomMap(this.toMapInfoProto()) - .setRogueBuffInfo(this.toBuffInfoProto()) - .setRogueMiracleInfo(this.toMiracleInfoProto()) - .setRogueAeonInfo(this.toAeonProto()) - .setRogueVirtualItem(this.toRogueVirtualItemProto()); - - if (pendingAction != null) { - proto.setPendingAction(pendingAction); - } - return proto; - } - - public RogueAvatarInfo toAvatarInfoProto() { - var proto = RogueAvatarInfo.newInstance(); - - for (int id : this.getBaseAvatarIds()) { - proto.addBaseAvatarIdList(id); - } - - return proto; - } - - public RogueMapInfo toMapInfoProto() { - var room = this.getCurrentRoom(); - - var proto = RogueMapInfo.newInstance() - .setAreaId(this.getExcel().getId()) - .setMapId(this.getExcel().getMapId()) - .setCurSiteId(room.getSiteId()) - .setCurRoomId(room.getRoomId()); - - for (var roomData : this.getRooms().values()) { - proto.addRoomList(roomData.toProto()); - } - - return proto; - } - - public RogueBuffInfo toBuffInfoProto() { - var proto = RogueBuffInfo.newInstance(); - - for (var buff : this.getBuffs().values()) { - proto.addMazeBuffList(buff.toProto()); - } - - return proto; - } - - public RogueMiracleInfo toMiracleInfoProto() { - var proto = RogueMiracleInfo.newInstance(); - - // Set flag for this so it gets serialized - proto.getMutableRogueMiracleInfo(); - - for (var miracle : this.getMiracles().values()) { - proto.getMutableRogueMiracleInfo().addRogueMiracleList(miracle.toInfoProto()); - } - - return proto; - } - - public RogueAeon toAeonProto() { - var proto = RogueAeon.newInstance() - .setAeonId(this.getAeonId()); - //.setAeonEnhanceBuffNum(3) - //.setIsUnlockAeon(true); - - return proto; - } - - public RogueFinishInfo toFinishInfoProto() { - // Rogue record info - var recordInfo = RogueRecordInfo.newInstance(); - - for (var buff : this.getBuffs().values()) { - recordInfo.addBuffList(buff.toProto()); - } - - for (var miracle : this.getMiracles().values()) { - recordInfo.addRogueMiracleList(miracle.getId()); - } - - PlayerLineup lineup = getPlayer().getLineupManager().getExtraLineupByType(ExtraLineupType.LINEUP_ROGUE_VALUE); - if (lineup != null) { - for (int i = 0; i < lineup.getAvatars().size(); i++) { - var recordAvatar = RogueRecordAvatar.newInstance() - .setId(lineup.getAvatars().get(i)) - .setSlot(i) - .setAvatarType(AvatarType.AVATAR_FORMAL_TYPE); - - recordInfo.addAvatarList(recordAvatar); - } - } - - // Create rogue finish info - var proto = RogueFinishInfo.newInstance() - .setTotalScore(this.getRoomScore()) - //.setTalentCoin(this.getEarnedTalentCoin()) - .setAreaId(this.getAreaId()) - .setIsWin(this.isWin()) - .setPassRoomCount(this.getCurrentSiteId()) - .setReachRoomCount(this.getCurrentRoomProgress()) - .setRecordInfo(recordInfo); - - return proto; - } - - public RogueVirtualItemInfo toRogueVirtualItemProto() { - var proto = RogueVirtualItemInfo.newInstance() - .setRogueCoin(this.getCoin()); - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java b/src/main/java/emu/lunarcore/game/rogue/RogueManager.java deleted file mode 100644 index 8364077..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueManager.java +++ /dev/null @@ -1,290 +0,0 @@ -package emu.lunarcore.game.rogue; - -import java.util.Arrays; - -import java.util.stream.IntStream; -import emu.lunarcore.GameConstants; -import emu.lunarcore.LunarCore; -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.excel.RogueTalentExcel; -import emu.lunarcore.game.player.BasePlayerManager; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.game.player.lineup.PlayerLineup; -import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; -import emu.lunarcore.proto.RogueAeonInfoOuterClass.RogueAeonInfo; -import emu.lunarcore.proto.RogueAreaInfoOuterClass.RogueAreaInfo; -import emu.lunarcore.proto.RogueAreaOuterClass.RogueArea; -import emu.lunarcore.proto.RogueAreaStatusOuterClass.RogueAreaStatus; -import emu.lunarcore.proto.RogueInfoOuterClass.RogueInfo; -import emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo; -import emu.lunarcore.proto.RogueSeasonInfoOuterClass.RogueSeasonInfo; -import emu.lunarcore.proto.RogueTalentInfoOuterClass.RogueTalentInfo; -import emu.lunarcore.proto.RogueTalentOuterClass.RogueTalent; -import emu.lunarcore.proto.RogueTalentStatusOuterClass.RogueTalentStatus; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Retcode; -import emu.lunarcore.server.packet.send.PacketLeaveRogueScRsp; -import emu.lunarcore.server.packet.send.PacketStartRogueScRsp; -import emu.lunarcore.server.packet.send.PacketSyncRogueFinishScNotify; -import emu.lunarcore.server.packet.send.PacketSyncRogueVirtualItemInfoScNotify; -import it.unimi.dsi.fastutil.ints.IntOpenHashSet; -import it.unimi.dsi.fastutil.ints.IntSet; -import lombok.Getter; -import us.hebi.quickbuf.RepeatedInt; - -@Getter -public class RogueManager extends BasePlayerManager { - private IntSet talents; - - public RogueManager(Player player) { - super(player); - this.talents = new IntOpenHashSet(); - } - - public boolean hasTalent(int talentId) { - return this.getTalents().contains(talentId); - } - - public boolean enableTalent(int talentId) { - // Sanity check so we dont enable the same talent - if (this.getTalents().contains(talentId)) { - return false; - } - - // Get talent excel - RogueTalentExcel excel = GameData.getRogueTalentExcelMap().get(talentId); - if (excel == null) return false; - - // Verify items - if (!getPlayer().getInventory().verifyItems(excel.getCost())) { - return false; - } - - // Pay items - getPlayer().getInventory().removeItemsByParams(excel.getCost()); - - // Add talent - RogueTalentData talent = new RogueTalentData(getPlayer(), excel.getTalentID()); - talent.save(); - - return getTalents().add(talentId); - } - - public void startRogue(int areaId, int aeonId, RepeatedInt avatarIdList) { - // Check if map gen is loaded - if (GameDepot.getRogueMapGen().size() == 0) { - getPlayer().sendPacket(new PacketStartRogueScRsp(Retcode.ROGUE_AREA_INVALID.getVal())); - return; - } - - // Make sure player already isnt in a rogue instance - if (getPlayer().getRogueInstance() != null) { - getPlayer().sendPacket(new PacketStartRogueScRsp()); - return; - } - - // Get excel - var rogueAreaExcel = GameData.getRogueAreaExcelMap().get(areaId); - if (rogueAreaExcel == null || !rogueAreaExcel.isValid()) { - getPlayer().sendPacket(new PacketStartRogueScRsp()); - return; - } - - var aeonExcel = GameData.getRogueAeonExcelMap().get(aeonId); - - // Replace lineup - getPlayer().getLineupManager().replaceLineup(0, ExtraLineupType.LINEUP_ROGUE_VALUE, Arrays.stream(avatarIdList.array()).boxed().toList()); - // Get lineup - PlayerLineup lineup = getPlayer().getLineupManager().getLineupByIndex(0, ExtraLineupType.LINEUP_ROGUE_VALUE); - // Make sure this lineup has avatars set - if (lineup.getAvatars().size() == 0) { - getPlayer().sendPacket(new PacketStartRogueScRsp()); - return; - } - - // Get entrance id - RogueInstance instance = new RogueInstance(getPlayer(), rogueAreaExcel, aeonExcel); - getPlayer().setRogueInstance(instance); - instance.createBonusSelect(1); - - // Set starting SP - boolean extraSP = this.hasTalent(32); - - // Reset hp/sp - lineup.forEachAvatar(avatar -> { - avatar.setCurrentHp(lineup, 10000); - avatar.setCurrentSp(lineup, extraSP ? avatar.getMaxSp() : avatar.getMaxSp() / 2); - - instance.getBaseAvatarIds().add(avatar.getAvatarId()); - }); - lineup.setMp(5); // Set technique points - - // Set first lineup before we enter scenes - getPlayer().getLineupManager().setCurrentExtraLineup(ExtraLineupType.LINEUP_ROGUE, false); - - // Enter rogue - RogueRoomData room = instance.enterRoom(instance.getStartSiteId()); - - if (room == null) { - // Reset lineup/instance if entering scene failed - getPlayer().getLineupManager().setCurrentExtraLineup(0, false); - getPlayer().setRogueInstance(null); - // Send error packet - getPlayer().sendPacket(new PacketStartRogueScRsp()); - return; - } - - // Done - getPlayer().sendPacket(new PacketStartRogueScRsp(getPlayer())); - getPlayer().sendPacket(new PacketSyncRogueVirtualItemInfoScNotify(getPlayer())); // Hacky fix to show coin amount - } - - public void leaveRogue() { - if (getPlayer().getRogueInstance() == null) { - getPlayer().getSession().send(CmdId.LeaveRogueScRsp); - return; - } - - // Clear rogue instance - getPlayer().setRogueInstance(null); - - // Leave scene - getPlayer().getLineupManager().setCurrentExtraLineup(0, false); - getPlayer().enterScene(GameConstants.ROGUE_ENTRANCE, 0, false); // Make sure we dont send an enter scene packet here - - // Send packet - getPlayer().sendPacket(new PacketLeaveRogueScRsp(this.getPlayer())); - } - - public void quitRogue() { - if (getPlayer().getRogueInstance() == null) { - getPlayer().getSession().send(CmdId.QuitRogueScRsp); - return; - } - - getPlayer().getRogueInstance().onFinish(); - - getPlayer().getSession().send(CmdId.QuitRogueScRsp); - getPlayer().getSession().send(new PacketSyncRogueFinishScNotify(getPlayer())); - - // This isnt correct behavior, but it does the job - this.leaveRogue(); - } - - public RogueInfo toProto() { - var schedule = GameDepot.getCurrentRogueSchedule(); - - int seasonId = 0; - long beginTime = 0; - long endTime = 1999999999; - - if (schedule != null) { - seasonId = schedule.getRogueSeason(); - } - - var proto = RogueInfo.newInstance(); - var data = proto.getMutableRogueInfoData(); - - var score = RogueScoreRewardInfo.newInstance() - .setPoolId(26) // TODO pool ids should not change when world level changes - .setPoolRefreshed(false) - .setHasTakenInitialScore(true) - .setScore(14000) - .setBeginTime(beginTime) - .setEndTime(endTime) - .addAllHasTakenReward(IntStream.rangeClosed(1, 20).flatMap(i -> IntStream.generate(() -> i).limit(20)).toArray()); - - var season = RogueSeasonInfo.newInstance() - .setBeginTime(beginTime) - .setSeasonId(seasonId) - .setEndTime(endTime); - - // Path resonance - var aeonInfo = RogueAeonInfo.newInstance(); - - aeonInfo.setIsUnlocked(false); - - if (true) { // Consider using a constant for this because talent is not working now - aeonInfo = RogueAeonInfo.newInstance() - .setUnlockAeonNum(GameData.getRogueAeonExcelMap().size()); - - for (var aeonExcel : GameData.getRogueAeonExcelMap().values()) { - aeonInfo.addAeonIdList(aeonExcel.getAeonID()); - } - aeonInfo.setIsUnlocked(true); - aeonInfo.setUnlockAeonEnhanceNum(3); // guess - } - - // Set rogue data - data.setRogueScoreInfo(score) - .setRogueAeonInfo(aeonInfo) - .setRogueSeasonInfo(season) - .setRogueVirtualItemInfo(getPlayer().getCurRogueVirtualItem()); - - // Get rogue instance - RogueInstance instance = this.getPlayer().getRogueInstance(); - - // Add areas - var areaInfo = RogueAreaInfo.newInstance(); - if (schedule != null) { - for (int i = 0; i < schedule.getRogueAreaIDList().length; i++) { - var excel = GameData.getRogueAreaExcelMap().get(schedule.getRogueAreaIDList()[i]); - if (excel == null) continue; - - var area = RogueArea.newInstance() - .setAreaId(excel.getRogueAreaID()) - .setRogueStatus(4) - .setHasTakenRewards(true) - .setRogueAreaStatus(RogueAreaStatus.ROGUE_AREA_STATUS_FIRST_PASS.getNumber()); - - if (instance != null && excel == instance.getExcel()) { - area.setMapId(instance.getExcel().getMapId()); - area.setCurReachRoomNum(instance.getCurrentRoomProgress()); - area.setRogueStatus(4); - //area.setRogueStatus(instance.getStatus()); - } - - //proto.addRogueAreaList(area); - areaInfo.addRogueArea(area); - } - } - data.setRogueAreaInfo(areaInfo); - - if (instance != null) { - proto.setRogueCurrentInfo(instance.toProto()); - } - - return proto; - } - - public RogueTalentInfo toTalentInfoProto() { - var proto = RogueTalentInfo.newInstance(); - - for (RogueTalentExcel excel : GameData.getRogueTalentExcelMap().values()) { - var talent = RogueTalent.newInstance() - .setTalentId(excel.getTalentID()); - - if (this.hasTalent(excel.getTalentID())) { - talent.setStatus(RogueTalentStatus.ROGUE_TALENT_STATUS_ENABLE); - } else { - talent.setStatus(RogueTalentStatus.ROGUE_TALENT_STATUS_UNLOCK); - } - - proto.addRogueTalent(talent); - } - - return proto; - } - - // Database - - public void loadFromDatabase() { - // Load talent data - var stream = LunarCore.getGameDatabase().getObjects(RogueTalentData.class, "ownerUid", this.getPlayer().getUid()); - - stream.forEach(talent -> { - this.getTalents().add(talent.getTalentId()); - }); - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java b/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java deleted file mode 100644 index 3504877..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleData.java +++ /dev/null @@ -1,38 +0,0 @@ -package emu.lunarcore.game.rogue; - -import emu.lunarcore.proto.RogueMiracleDataInfoOuterClass.RogueMiracleDataInfo; -import emu.lunarcore.proto.RogueMiracleDataOuterClass; -import emu.lunarcore.proto.RogueMiracleOuterClass.RogueMiracle; -import lombok.Getter; - -@Getter -public class RogueMiracleData { - private int id; - private boolean active; - - public RogueMiracleData(int miracleId) { - this.id = miracleId; - this.active = true; - } - - public RogueMiracle toProto() { - var proto = RogueMiracle.newInstance() - .setMiracleId(this.getId()); - - return proto; - } - - public RogueMiracleDataInfo toInfoProto() { - var proto = RogueMiracleDataInfo.newInstance() - .setMiracleId(this.getId()); - - return proto; - } - - public RogueMiracleDataOuterClass.RogueMiracleData toDataProto() { - var proto = RogueMiracleDataOuterClass.RogueMiracleData.newInstance(); - proto.setRogueMiracle(this.toProto()); - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleSelectMenu.java b/src/main/java/emu/lunarcore/game/rogue/RogueMiracleSelectMenu.java deleted file mode 100644 index d14dc7c..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueMiracleSelectMenu.java +++ /dev/null @@ -1,67 +0,0 @@ -package emu.lunarcore.game.rogue; - -import java.util.ArrayList; -import java.util.List; - -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.excel.RogueMiracleExcel; -import emu.lunarcore.proto.RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo; -import emu.lunarcore.util.WeightedList; -import lombok.Getter; - -@Getter -public class RogueMiracleSelectMenu { - private transient RogueInstance rogue; - - private int maxMiracles; - private List miracles; - - // Cache - private transient WeightedList randomMiracles; - - @Deprecated // Morphia only! - public RogueMiracleSelectMenu() {} - - public RogueMiracleSelectMenu(RogueInstance rogue) { - this.rogue = rogue; - this.maxMiracles = 3; - this.miracles = new ArrayList<>(); - - this.generateRandomBuffs(); - } - - public void generateRandomBuffs() { - if (this.randomMiracles == null) { - this.randomMiracles = new WeightedList<>(); - - for (var excel : GameDepot.getRogueRandomMiracleList()) { - if (rogue.getMiracles().containsKey(excel.getMiracleID())) { - continue; - } - - this.randomMiracles.add(1.0, excel); - }; - } - - this.getMiracles().clear(); - - while (this.getMiracles().size() < this.getMaxMiracles()) { - var excel = this.randomMiracles.next(); - this.getMiracles().add(new RogueMiracleData(excel.getMiracleID())); - } - } - - protected void onLoad(RogueInstance rogue) { - this.rogue = rogue; - } - - public RogueMiracleSelectInfo toProto() { - var proto = RogueMiracleSelectInfo.newInstance(); - - for (var miracle : this.getMiracles()) { - proto.addAllMiracleInfo(miracle.getId()); - } - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java b/src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java deleted file mode 100644 index c29837c..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueRoomData.java +++ /dev/null @@ -1,50 +0,0 @@ -package emu.lunarcore.game.rogue; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.data.GameDepot; -import emu.lunarcore.data.excel.RogueMapExcel; -import emu.lunarcore.data.excel.RogueRoomExcel; -import emu.lunarcore.proto.RogueRoomOuterClass.RogueRoom; -import emu.lunarcore.proto.RogueRoomStatusOuterClass.RogueRoomStatus; -import emu.lunarcore.util.Utils; -import lombok.Getter; - -@Getter -public class RogueRoomData { - private int roomId; - private int siteId; - private int status; - private int[] nextSiteIds; - - private transient RogueRoomExcel excel; - - public RogueRoomData(RogueMapExcel mapExcel) { - this.siteId = mapExcel.getSiteID(); - this.nextSiteIds = mapExcel.getNextSiteIDList(); - - int[] rooms = GameDepot.getRogueMapGen().get(this.siteId); - if (rooms != null) { - this.roomId = Utils.randomElement(rooms); - } - } - - public void setStatus(RogueRoomStatus status) { - this.status = status.getNumber(); - } - - public RogueRoomExcel getRoomExcel() { - if (excel == null) { - excel = GameData.getRogueRoomExcelMap().get(this.getRoomId()); - } - return excel; - } - - public RogueRoom toProto() { - var proto = RogueRoom.newInstance() - .setRoomId(this.getRoomId()) - .setSiteId(this.getSiteId()) - .setRoomStatusValue(this.getStatus()); - - return proto; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java b/src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java deleted file mode 100644 index 49876f7..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueRoomType.java +++ /dev/null @@ -1,23 +0,0 @@ -package emu.lunarcore.game.rogue; - -import lombok.Getter; - -public enum RogueRoomType { - UNKNOWN (0), - COMBAT_1 (1), - COMBAT_2 (2), - OCCURRENCE (3), - ENCOUNTER (4), - RESPITE (5), - ELITE (6), - BOSS (7), - TRANSACTION (8), - ADVENTURE (9); - - @Getter - private final int val; - - private RogueRoomType(int value) { - this.val = value; - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueTalentData.java b/src/main/java/emu/lunarcore/game/rogue/RogueTalentData.java deleted file mode 100644 index acdf436..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/RogueTalentData.java +++ /dev/null @@ -1,33 +0,0 @@ -package emu.lunarcore.game.rogue; - -import org.bson.types.ObjectId; - -import dev.morphia.annotations.Entity; -import dev.morphia.annotations.Id; -import dev.morphia.annotations.Indexed; -import emu.lunarcore.LunarCore; -import emu.lunarcore.game.player.Player; -import lombok.Getter; - -@Getter -@Entity(value = "rogueTalents", useDiscriminator = false) -public class RogueTalentData { - @Id - private ObjectId id; - - @Indexed - private int ownerUid; - private int talentId; - - @Deprecated // Morphia only - public RogueTalentData() {} - - public RogueTalentData(Player player, int talentId) { - this.ownerUid = player.getUid(); - this.talentId = talentId; - } - - public void save() { - LunarCore.getGameDatabase().save(this); - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java deleted file mode 100644 index 7ca9877..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventInstance.java +++ /dev/null @@ -1,54 +0,0 @@ -package emu.lunarcore.game.rogue.event; - -import emu.lunarcore.data.excel.RogueNPCExcel; -import emu.lunarcore.game.scene.entity.EntityNpc; -import emu.lunarcore.proto.RogueCommonDialogueBasicInfoOuterClass.RogueCommonDialogueBasicInfo; -import emu.lunarcore.proto.RogueCommonDialogueDataInfoOuterClass.RogueCommonDialogueDataInfo; -import emu.lunarcore.proto.RogueCommonDialogueInfoOuterClass.RogueCommonDialogueInfo; - -import java.util.ArrayList; -import java.util.List; - -public class RogueEventInstance -{ - public RogueEventInstance(RogueNPCExcel excel, EntityNpc npc, int uniqueId)// check in RogueInstance.cs - { - EventId = excel.getRogueNPCID(); - EventEntity = npc; - EventUniqueId = uniqueId; - - for (var option: excel.RogueNpcConfig.DialogueList.get(0).OptionInfo.OptionList) - { - var param = new RogueEventParam(); - param.OptionId = option.OptionID; - Options.add(param); - } - } - - public int EventId; - public boolean Finished; - public EntityNpc EventEntity; - public List Options = new ArrayList<>(); - public int EventUniqueId; - public int SelectedOptionId = 0; - public List EffectEventId = new ArrayList<>(); - - public RogueCommonDialogueDataInfo toProto() - { - var proto = RogueCommonDialogueDataInfo.newInstance() - .setDialogueInfo(toDialogueInfo()) - .setEventUniqueId(EventUniqueId); - - for (var option: Options) proto.addOptionList(option.ToProto()); - - System.out.println("RogueEventInstance.toProto: " + proto); - return proto; - } - - public RogueCommonDialogueInfo toDialogueInfo() - { - return RogueCommonDialogueInfo.newInstance() - .setDialogueBasicInfo(RogueCommonDialogueBasicInfo.newInstance() - .setDialogueId(EventId)); - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java deleted file mode 100644 index e127290..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventParam.java +++ /dev/null @@ -1,38 +0,0 @@ -package emu.lunarcore.game.rogue.event; - -import emu.lunarcore.proto.NpcDialogueEventParamOuterClass.NpcDialogueEventParam; -import emu.lunarcore.proto.RogueCommonDialogueOptionDisplayInfoOuterClass.RogueCommonDialogueOptionDisplayInfo; -import emu.lunarcore.proto.RogueCommonDialogueOptionInfoOuterClass.RogueCommonDialogueOptionInfo; - -import java.util.ArrayList; -import java.util.List; - -public class RogueEventParam -{ - public int OptionId; - public int ArgId; - public float Ratio; - public boolean IsSelected; - public Boolean OverrideSelected = null; - public List Results = new ArrayList<>(); - - public RogueCommonDialogueOptionInfo ToProto() - { - var proto = RogueCommonDialogueOptionInfo.newInstance() - .setArgId(ArgId) - .setIsValid(true) - .setOptionId(OptionId) - .setDisplayValue(RogueCommonDialogueOptionDisplayInfo.newInstance() - .setDisplayFloatValue(Ratio)) - .setConfirm(OverrideSelected != null ? OverrideSelected : IsSelected); - - for (var result: Results) proto.addOptionResultInfo(result.ToProto()); - return proto; - } - - public NpcDialogueEventParam toNpcProto() { - return NpcDialogueEventParam.newInstance() - .setRogueDialogueEventId(OptionId) - .setArgId(ArgId); - } -} diff --git a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java b/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java deleted file mode 100644 index a7c7ebf..0000000 --- a/src/main/java/emu/lunarcore/game/rogue/event/RogueEventResultInfo.java +++ /dev/null @@ -1,14 +0,0 @@ -package emu.lunarcore.game.rogue.event; - -import emu.lunarcore.proto.RogueCommonDialogueOptionBattleResultInfoOuterClass; -import emu.lunarcore.proto.RogueCommonDialogueOptionResultInfoOuterClass; - -public class RogueEventResultInfo { - public int BattleEventId; - - public RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo ToProto() { - return RogueCommonDialogueOptionResultInfoOuterClass.RogueCommonDialogueOptionResultInfo.newInstance() - .setBattleResultInfo(RogueCommonDialogueOptionBattleResultInfoOuterClass.RogueCommonDialogueOptionBattleResultInfo.newInstance() - .setBattleEventId(BattleEventId)); - } -} diff --git a/src/main/java/emu/lunarcore/game/scene/Scene.java b/src/main/java/emu/lunarcore/game/scene/Scene.java index b376c37..2823cee 100644 --- a/src/main/java/emu/lunarcore/game/scene/Scene.java +++ b/src/main/java/emu/lunarcore/game/scene/Scene.java @@ -17,8 +17,10 @@ import emu.lunarcore.game.player.Player; import emu.lunarcore.game.player.lineup.PlayerLineup; import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo; import emu.lunarcore.proto.SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo; +import emu.lunarcore.proto.SceneEntityGroupInfoOuterClass.SceneEntityGroupInfo.GroupPropertyMapEntry; import emu.lunarcore.proto.SceneGroupStateOuterClass.SceneGroupState; import emu.lunarcore.proto.SceneInfoOuterClass.SceneInfo; +import emu.lunarcore.proto.MapPropDefInfoOuterClass.MapPropDefInfo; import emu.lunarcore.server.game.Tickable; import emu.lunarcore.server.packet.send.PacketActivateFarmElementScRsp; import emu.lunarcore.server.packet.send.PacketRefreshTriggerByClientScNotify; @@ -49,14 +51,19 @@ public class Scene implements Tickable { private final IntSet avatarEntityIds; private final Int2ObjectMap avatars; private EntitySummonUnit playerSummon; - + // Other entities private final Int2ObjectMap entities; - private final Int2IntMap groupStates; + private final Int2ObjectMap groups; + + // Marked chests + private Int2ObjectMap> markedChests; // Cache private List triggers; private List healingSprings; + private List sceneSubMissions; + private List sceneMainMissions; public Scene(Player player, MazePlaneExcel excel, int floorId) { this.player = player; @@ -68,11 +75,16 @@ public class Scene implements Tickable { this.avatarEntityIds = new IntOpenHashSet(); this.avatars = new Int2ObjectOpenHashMap<>(); this.entities = new Int2ObjectOpenHashMap<>(); - this.groupStates = new Int2IntOpenHashMap(); + this.groups = new Int2ObjectOpenHashMap<>(); this.healingSprings = new ObjectArrayList<>(); this.triggers = new ObjectArrayList<>(); - + + this.markedChests = new Int2ObjectOpenHashMap<>(); + + this.sceneSubMissions = new ObjectArrayList<>(); + this.sceneMainMissions = new ObjectArrayList<>(); + // Set world id if (this.getExcel().getPlaneType() == PlaneType.Train) { this.worldId = player.getWorldId(); @@ -152,6 +164,15 @@ public class Scene implements Tickable { } } } + + // Add group properties + if (group.getGroupPropertyMap() != null && group.getGroupPropertyMap().size() > 0) { + var sceneGroup = this.getGroups().computeIfAbsent(group.getId(), i -> new SceneGroup(i)); + + for (var property : group.getGroupPropertyMap().values()) { + sceneGroup.getProperties().put(property.getName(), property.getDefaultValue()); + } + } } public void setEntryId(int entryId) { @@ -166,6 +187,14 @@ public class Scene implements Tickable { return this.getEntities().get(id); } + public synchronized List getEntities(Class entityType) { + return this.getEntities().values() + .stream() + .filter(e -> entityType.isInstance(e)) + .map(entityType::cast) + .toList(); + } + public synchronized List getEntitiesByGroup(Class entityType, int groupId) { return this.getEntities().values() .stream() @@ -215,7 +244,7 @@ public class Scene implements Tickable { } // Sync packet - getPlayer().sendPacket(new PacketSceneGroupRefreshScNotify(toAdd, toRemove)); + getPlayer().sendPacket(new PacketSceneGroupRefreshScNotify(this, toAdd, toRemove)); } public boolean activateFarmElement(int entityId, int worldLevel) { @@ -339,6 +368,13 @@ public class Scene implements Tickable { return; } + // Check if any of the this.getEntities() is the entity to avoid dupes + for (GameEntity e : this.getEntities().values()) { + if (e.equals(entity)) { + return; + } + } + // Set entity id and add monster to entity map entity.setEntityId(this.getNextEntityId()); this.getEntities().put(entity.getEntityId(), entity); @@ -348,7 +384,7 @@ public class Scene implements Tickable { // Send packet if (sendPacket) { - player.sendPacket(new PacketSceneGroupRefreshScNotify(entity, null)); + player.sendPacket(new PacketSceneGroupRefreshScNotify(this, entity, null)); } } @@ -363,7 +399,7 @@ public class Scene implements Tickable { // Run event entity.onRemove(); // Send packet - player.sendPacket(new PacketSceneGroupRefreshScNotify(null, entity)); + player.sendPacket(new PacketSceneGroupRefreshScNotify(this, null, entity)); // Reset entity id entity.setEntityId(0); } @@ -393,6 +429,54 @@ public class Scene implements Tickable { this.removeSummonUnit(); } } + + private boolean isExistingExtraData(SceneInfo scenedata, String key) { + for (var entry : scenedata.getFloorSavedValueMap()) { + if (entry.getKey().equals(key)) { + return true; + } + } + return false; + } + + private void enableExtraData(SceneInfo scenedata, String key, int value) { + if (!isExistingExtraData(scenedata, key)) { + var entry = SceneInfo.FloorSavedValueMapEntry.newInstance() + .setKey(key) + .setValue(value); + + scenedata.addFloorSavedValueMap(entry); + } + } + + // Marked chests + + public void addMapPropDefInfo(MapPropDefInfo defInfo, int funcId) { + if (!this.markedChests.containsKey(funcId)) { + this.markedChests.put(funcId, new ArrayList<>()); + } + this.markedChests.get(funcId).add(defInfo); + } + + public void resetMapPropDefInfo(int funcId) { + this.markedChests.remove(funcId); + } + + public void removeAllMapPropDefInfo() { + this.markedChests.clear(); + } + + public void setMapPropDefInfoForFuncId(int funcId, List defInfos) { + this.markedChests.put(funcId, defInfos); + } + + public List getMapPropDefInfo(int funcId) { + return this.markedChests.get(funcId); + } + + public List getFuncIdsForMapPropDef() { + return this.markedChests.keySet().intStream().boxed().toList(); + } // Proto serialization @@ -407,7 +491,13 @@ public class Scene implements Tickable { .setPlaneId(this.getPlaneId()) .setFloorId(this.getFloorId()) .setEntryId(this.getEntryId()); - + //.setSceneMissionInfo(this.getSceneMissionInfos()); + + for (var extradata : this.getFloorInfo().getExtraDatas()) { + //LunarCore.getLogger().warn("[Saved Value] " + extradata.getName() + " : " + extradata.getMaxValue()); + this.enableExtraData(proto, extradata.getName(), extradata.getMaxValue()); + } + // Get current lineup PlayerLineup lineup = getPlayer().getCurrentLineup(); int leaderAvatarId = lineup.getAvatars().get(lineup.getLeader()); @@ -419,35 +509,65 @@ public class Scene implements Tickable { var playerGroup = SceneEntityGroupInfo.newInstance(); for (var avatar : avatars.values()) { - playerGroup.addEntityList(avatar.toSceneEntityProto()); + // Serialize lineup avatar to proto + var avatarInfo = avatar.toSceneEntityProto(); + // Set leader avatar id and map layer for main avatar if (leaderAvatarId == avatar.getAvatarId()) { proto.setLeaderEntityId(avatar.getEntityId()); + avatarInfo.getMutableActor().setMapLayer(1); } + + playerGroup.addEntityList(avatarInfo); } groups.put(0, playerGroup); // Add rest of the entities to groups for (var entity : getEntities().values()) { + // Get scene group var group = groups.computeIfAbsent(entity.getGroupId(), i -> SceneEntityGroupInfo.newInstance().setGroupId(i)); + + // Add to group group.addEntityList(entity.toSceneEntityProto()); } + + // Add groups + for (var sceneGroup : this.getGroups().values()) { + // Get group + var group = groups.get(sceneGroup.getId()); + + if (group != null && sceneGroup.getProperties().size() > 0) { + // Add group properties + for (var entry : sceneGroup.getProperties().object2IntEntrySet()) { + var property = GroupPropertyMapEntry.newInstance() + .setKey(entry.getKey()) + .setValue(entry.getIntValue()); + + group.addGroupPropertyMap(property); + } + } + + // Add group states + if (sceneGroup.getState() != 0) { + var state = SceneGroupState.newInstance() + .setGroupId(sceneGroup.getId()) + .setState(sceneGroup.getState()) + .setIsDefault(true); + + proto.addGroupStateList(state); + } + } + // Add group to proto for (var group : groups.values()) { proto.addEntityGroupList(group); } - // Add group states - for (var entry : this.getGroupStates().int2IntEntrySet()) { - var state = SceneGroupState.newInstance() - .setGroupId(entry.getIntKey()) - .setState(entry.getIntValue()) - .setIsDefault(true); - - proto.addGroupStateList(state); - } - + // Scene identifier + proto.getMutableSceneIdentifier() + .setFloorId(this.getFloorId()); + // Done return proto; } diff --git a/src/main/java/emu/lunarcore/game/scene/SceneEntityLoader.java b/src/main/java/emu/lunarcore/game/scene/SceneEntityLoader.java index f04ef9e..81454e3 100644 --- a/src/main/java/emu/lunarcore/game/scene/SceneEntityLoader.java +++ b/src/main/java/emu/lunarcore/game/scene/SceneEntityLoader.java @@ -1,10 +1,8 @@ package emu.lunarcore.game.scene; import emu.lunarcore.data.GameData; -import emu.lunarcore.data.config.GroupInfo; -import emu.lunarcore.data.config.MonsterInfo; -import emu.lunarcore.data.config.NpcInfo; -import emu.lunarcore.data.config.PropInfo; +import emu.lunarcore.data.config.*; +import emu.lunarcore.game.enums.PlaneType; import emu.lunarcore.data.config.GroupInfo.GroupLoadSide; import emu.lunarcore.data.excel.NpcMonsterExcel; import emu.lunarcore.data.excel.PropExcel; @@ -16,26 +14,35 @@ import emu.lunarcore.game.scene.entity.EntityProp; import emu.lunarcore.game.scene.entity.GameEntity; public class SceneEntityLoader { - + public void onSceneLoad(Scene scene) { for (GroupInfo group : scene.getFloorInfo().getGroups().values()) { - // Skip non-server groups - if (group.getLoadSide() != GroupLoadSide.Server) { - continue; - } - //Avoid trigger some quest - if (group.getOwnerMainMissionID() > 0) { - continue; + boolean isToLoad = true; + + if (group.getCategory() == GroupInfo.GroupCategory.Mission) { + isToLoad = false; } - // Load group - scene.loadGroup(group); + // These cause the map to get stuck loading + if (group.getGroupName().contains("Bug") || group.getGroupName().contains("Book") || group.getGroupName().contains("AngryBlock") || group.getGroupName().contains("ShelfDoor")) { + isToLoad = false; + } + + // Bad groups + if (scene.getPlaneId() == 20501 && group.getId() >= 360) { + isToLoad = false; + } + + // Load groups + if (group.getLoadSide() == GroupLoadSide.Server && isToLoad) { + scene.loadGroup(group); + } } } public EntityMonster loadMonster(Scene scene, GroupInfo group, MonsterInfo monsterInfo) { // Don't spawn entity if they have certain flags in their info - if (monsterInfo.isIsDelete() || monsterInfo.isIsClientOnly()) { + if (monsterInfo.isIsDelete() || monsterInfo.isIsClientOnly() || !monsterInfo.isLoadOnInitial()) { return null; } @@ -47,13 +54,13 @@ public class SceneEntityLoader { EntityMonster monster = new EntityMonster(scene, npcMonsterExcel, group, monsterInfo); monster.setEventId(monsterInfo.getEventID()); monster.setWorldLevel(scene.getPlayer().getWorldLevel()); - + return monster; } public EntityProp loadProp(Scene scene, GroupInfo group, PropInfo propInfo) { // Don't spawn entity if they have certain flags in their info - if (propInfo.isIsDelete() || propInfo.isIsClientOnly()) { + if (propInfo.isIsDelete() /* || propInfo.isIsClientOnly() */ || !propInfo.isLoadOnInitial()) { return null; } @@ -61,6 +68,11 @@ public class SceneEntityLoader { PropExcel propExcel = GameData.getPropExcelMap().get(propInfo.getPropID()); if (propExcel == null) return null; + // Remove these annoying props from the map + if (propExcel.isDisabled()) { + return null; + } + // Create prop from group prop info EntityProp prop = new EntityProp(scene, propExcel, group, propInfo); prop.setState(propInfo.getState(), false); @@ -75,6 +87,13 @@ public class SceneEntityLoader { // Skip tutorial simulated universe return null; } + } else if (prop.getPropId() == 1025) { + // Show divergent universe prop + prop.setState(PropState.Open, false); + } else if (prop.getPropId() == 104029) { // Era flippers + prop.setState(PropState.Open, false); + } else if (prop.getPropId() == 104022) { // Mirage orb + prop.setState(PropState.Closed, false); } else if (prop.getExcel().isDoor()) { // Hacky fix to always open doors prop.setState(PropState.Open, false); @@ -82,6 +101,10 @@ public class SceneEntityLoader { // Cache teleport anchors scene.getHealingSprings().add(prop); } + + if (scene.getPlaneType() != PlaneType.Raid && propExcel.getPropType() == PropType.PROP_ELEVATOR) { + prop.setState(PropState.Elevator1); + } // Add trigger to scene if (propInfo.getTrigger() != null) { @@ -93,7 +116,7 @@ public class SceneEntityLoader { public EntityNpc loadNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { // Don't spawn entity if they have certain flags in their info - if (npcInfo.isIsDelete() || npcInfo.isIsClientOnly()) { + if (npcInfo.isIsDelete() || npcInfo.isIsClientOnly() || !npcInfo.isLoadOnInitial()) { return null; } @@ -115,4 +138,4 @@ public class SceneEntityLoader { // Create npc from group and npc info return new EntityNpc(scene, group, npcInfo); } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/scene/SceneGroup.java b/src/main/java/emu/lunarcore/game/scene/SceneGroup.java new file mode 100644 index 0000000..24bee67 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/scene/SceneGroup.java @@ -0,0 +1,17 @@ +package emu.lunarcore.game.scene; + +import it.unimi.dsi.fastutil.objects.Object2IntMap; +import it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap; +import lombok.Getter; + +@Getter +public class SceneGroup { + private int id; + private int state; + private Object2IntMap properties; + + public SceneGroup(int id) { + this.id = id; + this.properties = new Object2IntOpenHashMap<>(); + } +} diff --git a/src/main/java/emu/lunarcore/game/scene/TrainEntityLoader.java b/src/main/java/emu/lunarcore/game/scene/TrainEntityLoader.java new file mode 100644 index 0000000..11aff8e --- /dev/null +++ b/src/main/java/emu/lunarcore/game/scene/TrainEntityLoader.java @@ -0,0 +1,12 @@ +package emu.lunarcore.game.scene; + +import emu.lunarcore.data.config.*; +import emu.lunarcore.game.scene.entity.EntityMonster; + +public class TrainEntityLoader extends SceneEntityLoader { + + public EntityMonster loadMonster(Scene scene, GroupInfo group, MonsterInfo monsterInfo) { + return null; + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/scene/entity/EntityMonster.java b/src/main/java/emu/lunarcore/game/scene/entity/EntityMonster.java index a826aab..439f082 100644 --- a/src/main/java/emu/lunarcore/game/scene/entity/EntityMonster.java +++ b/src/main/java/emu/lunarcore/game/scene/entity/EntityMonster.java @@ -136,7 +136,7 @@ public class EntityMonster implements GameEntity, Tickable { } public void calculateDrops(ItemParamMap drops) { - var dropExcel = GameData.getMonsterDropExcel(this.getExcel().getId(), this.getWorldLevel()); + var dropExcel = GameData.getMonsterDropExcelMap().get(this.getExcel().getId(), this.getWorldLevel()); if (dropExcel == null) return; for (var dropParam : dropExcel.getDropList()) { diff --git a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java index 16753cc..11e7356 100644 --- a/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java +++ b/src/main/java/emu/lunarcore/game/scene/entity/EntityNpc.java @@ -2,10 +2,8 @@ package emu.lunarcore.game.scene.entity; import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.NpcInfo; -import emu.lunarcore.game.rogue.event.RogueEventInstance; import emu.lunarcore.game.scene.Scene; import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo; -import emu.lunarcore.proto.NpcRogueInfoOuterClass.NpcRogueInfo; import emu.lunarcore.proto.SceneEntityInfoOuterClass.SceneEntityInfo; import emu.lunarcore.proto.SceneNpcInfoOuterClass.SceneNpcInfo; import emu.lunarcore.util.Position; @@ -23,8 +21,6 @@ public class EntityNpc implements GameEntity { private final Position pos; private final Position rot; - @Setter private RogueEventInstance eventInstance; - public EntityNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { this.scene = scene; this.npcId = npcInfo.getNPCID(); @@ -40,19 +36,6 @@ public class EntityNpc implements GameEntity { var npc = SceneNpcInfo.newInstance() .setNpcId(this.getNpcId()); - // Rogue data - if (this.eventInstance != null) { - var rogue = NpcRogueInfo.newInstance() - .setEventId(this.eventInstance.EventId) - .setFinishDialogue(this.eventInstance.Finished) - .setEventUniqueId(this.eventInstance.EventUniqueId); - - for (var option: this.eventInstance.Options) - rogue.addDialogueEventParamList(option.toNpcProto()); - - npc.getMutableExtraInfo().setRogueInfo(rogue); - } - // Main entity proto var proto = SceneEntityInfo.newInstance() .setEntityId(this.getEntityId()) @@ -64,4 +47,4 @@ public class EntityNpc implements GameEntity { return proto; } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/game/scene/entity/EntityProp.java b/src/main/java/emu/lunarcore/game/scene/entity/EntityProp.java index 151e6fc..92eb125 100644 --- a/src/main/java/emu/lunarcore/game/scene/entity/EntityProp.java +++ b/src/main/java/emu/lunarcore/game/scene/entity/EntityProp.java @@ -3,17 +3,15 @@ package emu.lunarcore.game.scene.entity; import emu.lunarcore.data.config.GroupInfo; import emu.lunarcore.data.config.PropInfo; import emu.lunarcore.data.excel.PropExcel; -import emu.lunarcore.game.enums.PlaneType; import emu.lunarcore.game.enums.PropState; import emu.lunarcore.game.enums.PropType; import emu.lunarcore.game.scene.Scene; -import emu.lunarcore.game.scene.entity.extra.PropRogueData; import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo; +import emu.lunarcore.proto.PropTimelineInfoOuterClass.PropTimelineInfo; import emu.lunarcore.proto.SceneEntityInfoOuterClass.SceneEntityInfo; import emu.lunarcore.proto.ScenePropInfoOuterClass.ScenePropInfo; import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; import emu.lunarcore.util.Position; -import emu.lunarcore.util.Utils; import lombok.Getter; import lombok.Setter; @@ -32,7 +30,7 @@ public class EntityProp implements GameEntity { private final Position rot; // Prop extra info - @Setter private PropRogueData rogueData; + private PropTimelineInfo timelineInfo; public EntityProp(Scene scene, PropExcel excel, GroupInfo group, PropInfo propInfo) { this.scene = scene; @@ -80,24 +78,27 @@ public class EntityProp implements GameEntity { // Sync state update to client if (sendPacket) { - this.getScene().getPlayer().sendPacket(new PacketSceneGroupRefreshScNotify(this, null)); + this.getScene().getPlayer().sendPacket(new PacketSceneGroupRefreshScNotify(this.getScene(), this, null)); } // Success return true; } + public void setTimelineInfo(PropTimelineInfo info) { + // Set timeline info + this.timelineInfo = info; + + // Sync update to client + this.getScene().getPlayer().sendPacket(new PacketSceneGroupRefreshScNotify(this.getScene(), this, null)); + } + @Override public void onRemove() { if (excel.isRecoverMp()) { scene.getPlayer().getCurrentLineup().addMp(2); } else if (excel.isRecoverHp()) { scene.getPlayer().getCurrentLineup().heal(2500, false); - } else { - // Add SU coins if prop isnt a healing/technique restore prop - if (scene.getPlaneType() == PlaneType.Rogue && scene.getPlayer().getRogueInstance() != null) { - scene.getPlayer().getRogueInstance().addCoin(Utils.randomRange(10, 15) * 2); - } } } @@ -107,8 +108,8 @@ public class EntityProp implements GameEntity { .setPropId(this.getPropId()) .setPropState(this.getState().getVal()); - if (this.rogueData != null) { - prop.setExtraInfo(this.rogueData.toProto()); + if (this.timelineInfo != null) { + prop.getMutableExtraInfo().setPropTimelineInfo(this.timelineInfo); } var proto = SceneEntityInfo.newInstance() diff --git a/src/main/java/emu/lunarcore/game/scene/entity/extra/PropRogueData.java b/src/main/java/emu/lunarcore/game/scene/entity/extra/PropRogueData.java deleted file mode 100644 index 15e3f25..0000000 --- a/src/main/java/emu/lunarcore/game/scene/entity/extra/PropRogueData.java +++ /dev/null @@ -1,25 +0,0 @@ -package emu.lunarcore.game.scene.entity.extra; - -import emu.lunarcore.proto.PropExtraInfoOuterClass.PropExtraInfo; -import emu.lunarcore.proto.PropRogueInfoOuterClass.PropRogueInfo; -import lombok.Getter; - -@Getter -public class PropRogueData { - private int roomId; - private int siteId; - - public PropRogueData(int roomId, int siteId) { - this.roomId = roomId; - this.siteId = siteId; - } - - public PropExtraInfo toProto() { - var data = PropRogueInfo.newInstance() - .setRoomId(this.getRoomId()) - .setSiteId(this.getSiteId()); - - return PropExtraInfo.newInstance().setRogueInfo(data); - } - -} diff --git a/src/main/java/emu/lunarcore/game/scene/triggers/TriggerOpenTreasureWhenMonsterDie.java b/src/main/java/emu/lunarcore/game/scene/triggers/TriggerOpenTreasureWhenMonsterDie.java index f19fd19..0273859 100644 --- a/src/main/java/emu/lunarcore/game/scene/triggers/TriggerOpenTreasureWhenMonsterDie.java +++ b/src/main/java/emu/lunarcore/game/scene/triggers/TriggerOpenTreasureWhenMonsterDie.java @@ -31,6 +31,7 @@ public class TriggerOpenTreasureWhenMonsterDie extends PropTrigger { if (prop.getExcel().getPropType() == PropType.PROP_TREASURE_CHEST) { prop.setState(PropState.ChestClosed); } + // TODO: update mssion state here } } } diff --git a/src/main/java/emu/lunarcore/game/shop/ShopService.java b/src/main/java/emu/lunarcore/game/shop/ShopService.java index 13541d7..dde3eab 100644 --- a/src/main/java/emu/lunarcore/game/shop/ShopService.java +++ b/src/main/java/emu/lunarcore/game/shop/ShopService.java @@ -30,7 +30,7 @@ public class ShopService extends BaseGameService { if (itemExcel == null) return null; // Verify item params - if (!player.getInventory().verifyItems(goods.getCostList(), count)) { + if (!player.getInventory().hasItems(goods.getCostList(), count)) { return null; } diff --git a/src/main/java/emu/lunarcore/game/trial/TrialAvatar.java b/src/main/java/emu/lunarcore/game/trial/TrialAvatar.java new file mode 100644 index 0000000..ca49943 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/trial/TrialAvatar.java @@ -0,0 +1,79 @@ +package emu.lunarcore.game.trial; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.data.excel.AvatarExcel; +import emu.lunarcore.data.excel.SpecialAvatarExcel; +import emu.lunarcore.game.avatar.GameAvatar; +import emu.lunarcore.game.inventory.GameItem; +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.AvatarTypeOuterClass.AvatarType; +import lombok.Getter; + +@Getter +public class TrialAvatar extends GameAvatar { + private SpecialAvatarExcel specialAvatarExcel; + + public TrialAvatar(Player owner, SpecialAvatarExcel specialAvatarExcel, AvatarExcel excel) { + super(excel); + this.setOwner(owner); + this.setExcel(excel); + this.specialAvatarExcel = specialAvatarExcel; + this.avatarId = specialAvatarExcel.getId(); + + // Set stats + this.setLevel(specialAvatarExcel.getLevel()); + this.setPromotion(specialAvatarExcel.getPromotion()); + this.setRank(specialAvatarExcel.getRank()); + this.extraLineupHp = 10000; + this.extraLineupSp = 7000; + + // Hacky way to set skill points + for (int pointId : this.getExcel().getSkillTreeIds()) { + var skillTree = GameData.getAvatarSkillTreeExcelMap().get(pointId, 1); + if (skillTree == null) continue; + + // Point level should be 1 by default + int pointLevel = Math.min(1, skillTree.getMaxLevel()); + if (skillTree.getMaxLevel() == 6) { + pointLevel = 5; // Basic attack + } else if (skillTree.getMaxLevel() == 10) { + pointLevel = 8; // Skill/Ult/Talent + } + + // Get anchor id + this.getSkillTree().put(skillTree.getAnchorId(), pointLevel); + } + + // Set equipment + var equipmentExcel = GameData.getItemExcelMap().get(specialAvatarExcel.getEquipmentID()); + if (equipmentExcel != null) { + var equipment = new GameItem(equipmentExcel); + equipment.setLevel(specialAvatarExcel.getEquipmentLevel()); + equipment.setPromotion(specialAvatarExcel.getPromotion()); + equipment.setRank(specialAvatarExcel.getEquipmentRank()); + + this.equipItem(equipment); + } + } + + @Override + public int getActorId() { + return specialAvatarExcel.getAvatarID(); + } + + @Override + public int getBattleAvatarId() { + return this.avatarId; + } + + @Override + public AvatarType getAvatarType() { + return AvatarType.AVATAR_TRIAL_TYPE; + } + + @Override + public void save() { + // Prevent the server from saving trial avatars + } + +} diff --git a/src/main/java/emu/lunarcore/game/trial/TrialEntityLoader.java b/src/main/java/emu/lunarcore/game/trial/TrialEntityLoader.java new file mode 100644 index 0000000..87323b6 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/trial/TrialEntityLoader.java @@ -0,0 +1,70 @@ +package emu.lunarcore.game.trial; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.data.common.ExcelMonsterParam; +import emu.lunarcore.data.config.GroupInfo; +import emu.lunarcore.data.config.MonsterInfo; +import emu.lunarcore.data.config.NpcInfo; +import emu.lunarcore.data.config.GroupInfo.GroupLoadSide; +import emu.lunarcore.data.excel.NpcMonsterExcel; +import emu.lunarcore.game.scene.Scene; +import emu.lunarcore.game.scene.SceneEntityLoader; +import emu.lunarcore.game.scene.entity.EntityMonster; +import emu.lunarcore.game.scene.entity.EntityNpc; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; + +public class TrialEntityLoader extends SceneEntityLoader { + + @Override + public void onSceneLoad(Scene scene) { + // Get trial instance + TrialInstance instance = scene.getPlayer().getInstance(TrialInstance.class); + if (instance == null) return; + + // Setup first stage + scene.loadGroup(instance.getExcel().getMazeGroupID1()); + + // Load all groups with props + for (var group : scene.getFloorInfo().getGroups().values()) { + // Skip non-server groups + if (group.getLoadSide() != GroupLoadSide.Server) { + continue; + } + + // Dont load the groups that have monsters in them + if (group.getPropList().size() > 0 && group.getMonsterList().size() == 0) { + scene.loadGroup(group); + } + } + } + + @Override + public EntityMonster loadMonster(Scene scene, GroupInfo group, MonsterInfo monsterInfo) { + // Get challenge instance + TrialInstance instance = scene.getPlayer().getInstance(TrialInstance.class); + if (instance == null) return null; + + // Get current stage monster infos + Int2ObjectMap challengeMonsters = instance.getExcel().getMonsters(); + + // Get challenge monster info + var challengeMonsterInfo = challengeMonsters.get(monsterInfo.getID()); + if (challengeMonsterInfo == null) return null; + + // Get excels from game data + NpcMonsterExcel npcMonsterExcel = GameData.getNpcMonsterExcelMap().get(challengeMonsterInfo.getNpcMonsterId()); + if (npcMonsterExcel == null) return null; + + // Create monster from group monster info + EntityMonster monster = new EntityMonster(scene, npcMonsterExcel, group, monsterInfo); + monster.setEventId(challengeMonsterInfo.getEventId()); + monster.setCustomStage(challengeMonsterInfo.getEventId()); + + return monster; + } + + @Override + public EntityNpc loadNpc(Scene scene, GroupInfo group, NpcInfo npcInfo) { + return null; + } +} diff --git a/src/main/java/emu/lunarcore/game/trial/TrialInstance.java b/src/main/java/emu/lunarcore/game/trial/TrialInstance.java new file mode 100644 index 0000000..ac482f3 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/trial/TrialInstance.java @@ -0,0 +1,68 @@ +package emu.lunarcore.game.trial; + +import emu.lunarcore.data.excel.AvatarDemoExcel; +import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.player.PlayerGameInstance; +import emu.lunarcore.game.scene.entity.EntityMonster; +import emu.lunarcore.proto.BattleEndStatusOuterClass.BattleEndStatus; +import emu.lunarcore.proto.BattleStatisticsOuterClass.BattleStatistics; +import emu.lunarcore.server.packet.send.PacketCurTrialActivityScNotify; +import emu.lunarcore.util.Location; +import lombok.Getter; + +@Getter +public class TrialInstance extends PlayerGameInstance { + private transient AvatarDemoExcel excel; + + private int stageId; + private boolean finished; + + // Player's last location + private Location lastLocation; + + public TrialInstance(Player player, AvatarDemoExcel excel) { + this.setPlayer(player); + this.excel = excel; + this.stageId = excel.getId(); + + // Save player's location + this.lastLocation = new Location(player); + } + + // Battle events + + @Override + public void onBattleStart(Battle battle) { + + } + + @Override + public void onBattleFinish(Battle battle, BattleEndStatus result, BattleStatistics stats) { + // Check if all monsters are dead + long monsters = getPlayer().getScene().getEntities().values().stream().filter(e -> e instanceof EntityMonster).count(); + + if (monsters == 0) { + this.finished = true; + } + + // End trial TODO + if (this.finished) { + // Send player back to where they were + getPlayer().getLineupManager().setCurrentExtraLineup(0, false); + getPlayer().loadScene(this.getLastLocation(), true); + // Reset instance + getPlayer().setInstance(null); + } + } + + @Override + public void onLeave() { + // Update state + this.finished = true; + // Send trial status + getPlayer().sendPacket(new PacketCurTrialActivityScNotify(this)); + // TODO clean up trial avatars when leaving + } + +} diff --git a/src/main/java/emu/lunarcore/game/trial/TrialManager.java b/src/main/java/emu/lunarcore/game/trial/TrialManager.java new file mode 100644 index 0000000..1f5bb85 --- /dev/null +++ b/src/main/java/emu/lunarcore/game/trial/TrialManager.java @@ -0,0 +1,96 @@ +package emu.lunarcore.game.trial; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.game.player.BasePlayerManager; +import emu.lunarcore.game.player.Player; +import emu.lunarcore.game.player.PlayerGender; +import emu.lunarcore.game.player.lineup.PlayerLineup; +import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; +import it.unimi.dsi.fastutil.ints.IntArrayList; + +public class TrialManager extends BasePlayerManager { + + public TrialManager(Player player) { + super(player); + } + + public TrialAvatar createTrialAvatar(int specialAvatarId) { + // Get excels + var specialAvatarExcel = GameData.getSpecialAvatarExcelMap().get(specialAvatarId); + if (specialAvatarExcel == null) return null; + + var avatarExcel = GameData.getAvatarExcelMap().get(specialAvatarExcel.getAvatarID()); + if (avatarExcel == null) return null; + + // Hacky way to remove duplicate TBs + if (avatarExcel.getId() > 8000) { + boolean isMale = avatarExcel.getId() % 2 == 1; + if (getPlayer().getGender() == PlayerGender.GENDER_WOMAN && isMale) { + return null; + } else if (getPlayer().getGender() == PlayerGender.GENDER_MAN && !isMale) { + return null; + } + } + + // Create trial avatar + TrialAvatar avatar = new TrialAvatar(getPlayer(), specialAvatarExcel, avatarExcel); + + // Add to temp avatar storage + getPlayer().getAvatars().addTempAvatar(avatar); + + // + return avatar; + } + + public TrialInstance startTrial(int stageId) { + // Get excel + var excel = GameData.getAvatarDemoExcelMap().get(stageId); + if (excel == null) return null; + + // Create avatars + var avatars = new IntArrayList(); + + for (int id : excel.getTrialAvatarList()) { + // Create trial avatar + TrialAvatar avatar = this.createTrialAvatar(id); + + // Skip + if (avatar == null) continue; + + // Add to temp lineup + avatars.add(avatar.getSpecialAvatarExcel().getId()); + } + + // Get trial lineup + PlayerLineup lineup = getPlayer().getLineupManager().getExtraLineupByType(ExtraLineupType.LINEUP_STAGE_TRIAL_VALUE); + + // Add avatars to lineup + if (avatars.size() > 0) { + lineup.replace(avatars); + lineup.setMp(lineup.getMaxMp()); + } else { + // Error + return null; + } + + // Set first lineup before we enter scenes + getPlayer().getLineupManager().setCurrentExtraLineup(ExtraLineupType.LINEUP_STAGE_TRIAL_VALUE, false); + + // Create trial instance + TrialInstance trial = new TrialInstance(getPlayer(), excel); + getPlayer().setInstance(trial); + + // Enter scene + boolean success = getPlayer().enterScene(excel.getMapEntranceID(), 0, true); + if (!success) { + // Reset lineup/instance if entering scene failed + getPlayer().getLineupManager().setCurrentExtraLineup(0, false); + getPlayer().setInstance(null); + return null; + } + + // Done + return trial; + } + +} diff --git a/src/main/java/emu/lunarcore/server/game/GameServer.java b/src/main/java/emu/lunarcore/server/game/GameServer.java index ff71f0c..efa7da6 100644 --- a/src/main/java/emu/lunarcore/server/game/GameServer.java +++ b/src/main/java/emu/lunarcore/server/game/GameServer.java @@ -178,7 +178,6 @@ public class GameServer extends KcpServer { // Done LunarCore.getLogger().info("Game Server started on " + address.getPort()); - LunarCore.getLogger().warn("LUNARCORE IS A FREE SOFTWARE. IF YOU PAID FOR IT, YOU HAVE BEEN SCAMMED!"); // DO NOT REMOVE. Anti-seller } private void onTick() { diff --git a/src/main/java/emu/lunarcore/server/game/GameServerPacketHandler.java b/src/main/java/emu/lunarcore/server/game/GameServerPacketHandler.java index a581df8..b76e023 100644 --- a/src/main/java/emu/lunarcore/server/game/GameServerPacketHandler.java +++ b/src/main/java/emu/lunarcore/server/game/GameServerPacketHandler.java @@ -48,15 +48,6 @@ public class GameServerPacketHandler { PacketHandler handler = this.handlers.get(cmdId); if (handler != null) { - // Check cooldown to prevent packet spam - long timestamp = System.currentTimeMillis(); - if (session.getPacketCooldown().get(cmdId) >= timestamp && !CmdIdUtils.ALLOWED_FILTER_PACKETS.contains(cmdId)) { - //LunarCore.getLogger().warn("Dropped a packet " + CmdIdUtils.getCmdIdName(cmdId)); - return; - } else { - session.getPacketCooldown().put(cmdId, timestamp + 5); - } - try { // Make sure session is ready for packets SessionState state = session.getState(); @@ -85,6 +76,6 @@ public class GameServerPacketHandler { } // Log unhandled packets - //LunarCore.getLogger().info("Unhandled packet (" + cmdId + "): " + CmdIdUtils.getOpcodeName(cmdId)); + //LunarCore.getLogger().info("Unhandled packet (" + cmdId + "): " + CmdIdUtils.getCmdIdName(cmdId)); } } diff --git a/src/main/java/emu/lunarcore/server/game/GameSession.java b/src/main/java/emu/lunarcore/server/game/GameSession.java index 7edd695..f995134 100644 --- a/src/main/java/emu/lunarcore/server/game/GameSession.java +++ b/src/main/java/emu/lunarcore/server/game/GameSession.java @@ -16,6 +16,7 @@ import it.unimi.dsi.fastutil.ints.Int2LongOpenHashMap; import kcp.highway.Ukcp; import lombok.AccessLevel; import lombok.Getter; +import lombok.Setter; import us.hebi.quickbuf.ProtoMessage; @Getter @@ -27,6 +28,8 @@ public class GameSession { private Account account; private Player player; + @Setter private boolean sendHello = false; + // Network @Getter(AccessLevel.PRIVATE) private Ukcp ukcp; @@ -150,7 +153,9 @@ public class GameSession { public void send(BasePacket packet) { // Test if (packet.getCmdId() <= 0) { - LunarCore.getLogger().warn("Tried to send packet with missing cmd id!"); + if (LunarCore.getConfig().getLogOptions().packets) { + LunarCore.getLogger().warn("Tried to send packet with missing cmd id!"); + } return; } @@ -170,6 +175,14 @@ public class GameSession { * @param cmdId */ public void send(int cmdId) { + // Test + if (cmdId <= 0) { + if (LunarCore.getConfig().getLogOptions().packets) { + LunarCore.getLogger().warn("Tried to send packet with missing cmd id!"); + } + return; + } + // Get packet from the server's packet cache. This will allow us to reuse empty packets if needed. if (this.ukcp != null) { this.ukcp.write(getServer().getPacketCache().getCachedPacket(cmdId)); diff --git a/src/main/java/emu/lunarcore/server/http/HttpServer.java b/src/main/java/emu/lunarcore/server/http/HttpServer.java index 3f93ccf..5e8c107 100644 --- a/src/main/java/emu/lunarcore/server/http/HttpServer.java +++ b/src/main/java/emu/lunarcore/server/http/HttpServer.java @@ -129,6 +129,7 @@ public class HttpServer { this.addDispatchRoutes(); this.addLogServerRoutes(); } + if (this.getType().runGame()) { this.addGateServerRoutes(); } @@ -149,12 +150,22 @@ public class HttpServer { // Username & Password login (from client). Returns a session key to the client. getApp().post("/hkrpg_global/mdk/shield/api/login", new UsernameLoginHandler()); + // Cached session key verify (from registry). Returns a session key to the client. getApp().post("/hkrpg_global/mdk/shield/api/verify", new TokenLoginHandler()); // Exchange session key for login token (combo token) getApp().post("/hkrpg_global/combo/granter/login/v2/login", new ComboTokenGranterHandler()); - + + // === AUTHENTICATION v2 === hkrpg-sdk-os-static.hoyoverse.com + + // Username & Password login (from client). Returns a session key to the client. + getApp().post("/hkrpg_global/account/ma-passport/api/appLoginByPassword", new AppLoginHandler()); + getApp().post("/hkrpg_global/account/ma-passport/token/verifySToken", new HttpJsonResponse("{}")); + + // Config + getApp().post("/hkrpg_global/account/ma-passport/api/getConfig", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"ip\":null,\"tick_marketing_email\":true,\"area_wl\":[],\"realname_wl\":[],\"show_birthday\":false,\"age_gate_enabled\":false,\"age_gate_country_wl\":[]}}")); + // Config getApp().get("/hkrpg_global/combo/granter/api/getConfig", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"protocol\":true,\"qr_enabled\":false,\"log_level\":\"INFO\",\"announce_url\":\"\",\"push_alias_type\":0,\"disable_ysdk_guard\":true,\"enable_announce_pic_popup\":false,\"app_name\":\"崩�??RPG\",\"qr_enabled_apps\":{\"bbs\":false,\"cloud\":false},\"qr_app_icons\":{\"app\":\"\",\"bbs\":\"\",\"cloud\":\"\"},\"qr_cloud_display_name\":\"\",\"enable_user_center\":true,\"functional_switch_configs\":{}}}")); getApp().get("/hkrpg_global/mdk/shield/api/loadConfig", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"id\":24,\"game_key\":\"hkrpg_global\",\"client\":\"PC\",\"identity\":\"I_IDENTITY\",\"guest\":false,\"ignore_versions\":\"\",\"scene\":\"S_NORMAL\",\"name\":\"崩�??RPG\",\"disable_regist\":false,\"enable_email_captcha\":false,\"thirdparty\":[\"fb\",\"tw\",\"gl\",\"ap\"],\"disable_mmt\":false,\"server_guest\":false,\"thirdparty_ignore\":{},\"enable_ps_bind_account\":false,\"thirdparty_login_configs\":{\"tw\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":2592000},\"ap\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":604800},\"fb\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":2592000},\"gl\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":604800}},\"initialize_firebase\":false,\"bbs_auth_login\":false,\"bbs_auth_login_ignore\":[],\"fetch_instance_id\":false,\"enable_flash_login\":false}}")); @@ -166,7 +177,7 @@ public class HttpServer { getApp().get("/hkrpg_global/mdk/agreement/api/getAgreementInfos", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"marketing_agreements\":[]}}")); // sdk-os-static.hoyoverse.com - getApp().get("/combo/box/api/config/sdk/combo", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"vals\":{\"kibana_pc_config\":\"{ \\\"enable\\\": 0, \\\"level\\\": \\\"Info\\\",\\\"modules\\\": [\\\"download\\\"] }\\n\",\"network_report_config\":\"{ \\\"enable\\\": 0, \\\"status_codes\\\": [206], \\\"url_paths\\\": [\\\"dataUpload\\\", \\\"red_dot\\\"] }\\n\",\"list_price_tierv2_enable\":\"false\\n\",\"pay_payco_centered_host\":\"bill.payco.com\",\"telemetry_config\":\"{\\n \\\"dataupload_enable\\\": 0,\\n}\",\"enable_web_dpi\":\"true\"}}}")); + getApp().get("/combo/box/api/config/sdk/combo", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"vals\":{\"kibana_pc_config\":\"{ \\\"enable\\\": 0, \\\"level\\\": \\\"Info\\\",\\\"modules\\\": [\\\"download\\\"] }\\n\",\"network_report_config\":\"{ \\\"enable\\\": 0, \\\"status_codes\\\": [206], \\\"url_paths\\\": [\\\"dataUpload\\\", \\\"red_dot\\\"] }\\n\",\"list_price_tierv2_enable\":\"true\\n\",\"pay_payco_centered_host\":\"bill.payco.com\",\"telemetry_config\":\"{\\n \\\"dataupload_enable\\\": 0,\\n}\",\"enable_web_dpi\":\"true\"}}}")); getApp().get("/combo/box/api/config/sw/precache", new HttpJsonResponse("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"vals\":{\"url\":\"\",\"enable\":\"false\"}}}")); // sg-public-data-api.hoyoverse.com @@ -176,6 +187,10 @@ public class HttpServer { // abtest-api-data-sg.hoyoverse.com getApp().post("/data_abtest_api/config/experiment/list", new HttpJsonResponse("{\"retcode\":0,\"success\":true,\"message\":\"\",\"data\":[{\"code\":1000,\"type\":2,\"config_id\":\"14\",\"period_id\":\"6125_197\",\"version\":\"1\",\"configs\":{\"cardType\":\"direct\"}}]}")); + // webstatic.hoyoverse.com + getApp().get("/admin/mi18n/plat_oversea/*/*.json", new HttpJsonResponse("{\"version\":134}")); + getApp().get("/admin/mi18n/plat_os/*/*.json", new HttpJsonResponse("{\"version\":16}")); + // Add mode this.modes.add("DISPATCH"); } diff --git a/src/main/java/emu/lunarcore/server/http/handlers/AppLoginHandler.java b/src/main/java/emu/lunarcore/server/http/handlers/AppLoginHandler.java new file mode 100644 index 0000000..7c969de --- /dev/null +++ b/src/main/java/emu/lunarcore/server/http/handlers/AppLoginHandler.java @@ -0,0 +1,69 @@ +package emu.lunarcore.server.http.handlers; + +import org.jetbrains.annotations.NotNull; + +import emu.lunarcore.LunarCore; +import emu.lunarcore.game.account.Account; +import emu.lunarcore.game.account.AccountHelper; +import emu.lunarcore.server.http.objects.NewLoginReqJson; +import emu.lunarcore.server.http.objects.NewLoginResJson; +import emu.lunarcore.server.http.objects.NewLoginResJson.VerifyData; +import emu.lunarcore.util.JsonUtils; +import io.javalin.http.ContentType; +import io.javalin.http.Context; +import io.javalin.http.Handler; + +public class AppLoginHandler implements Handler { + + public AppLoginHandler() { + + } + + @Override + public void handle(@NotNull Context ctx) throws Exception { + // Setup response + NewLoginResJson res = new NewLoginResJson(); + + // CRITICAL TODO: DECRYPT THE REQUEST + + // Parse request + NewLoginReqJson req = JsonUtils.decode(ctx.body(), NewLoginReqJson.class); + + // Validate + if (req == null) { + res.retcode = -202; + res.message = "Error logging in"; + return; + } + + // Force account name + String accountName = LunarCore.getConfig().getLoginOptions().accountName; + + if (accountName.isBlank()) { + accountName = "player"; + } + + // Login - Get account data + Account account = LunarCore.getAccountDatabase().getObjectByField(Account.class, "username", accountName); + + if (account == null) { + // Auto create an account for the player if allowed in the config + if (LunarCore.getConfig().getServerOptions().autoCreateAccount) { + account = AccountHelper.createAccount(accountName, null, 0); + } else { + res.retcode = -201; + res.message = "Username not found."; + } + } + + if (account != null) { + res.message = "OK"; + res.data = new VerifyData(account.getUid(), account.getEmail(), account.generateDispatchTokenV2()); + } + + // Send result + ctx.contentType(ContentType.APPLICATION_JSON); + ctx.result(JsonUtils.encode(res)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java b/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java index c4785c8..326a9db 100644 --- a/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java +++ b/src/main/java/emu/lunarcore/server/http/handlers/QueryGatewayHandler.java @@ -24,11 +24,24 @@ public class QueryGatewayHandler implements Handler { .setRegionName(LunarCore.getConfig().getGameServer().getId()) .setIp(LunarCore.getConfig().getGameServer().getPublicAddress()) .setPort(LunarCore.getConfig().getGameServer().getPublicPort()) - .setMsg("Access verification failed. Please check if you have logged in to the correct account and server.") // in case there is some error idk + .setLoginWhiteMsg("Access verification failed. Please check if you have logged in to the correct account and server.") // in case there is some error idk + + .setUnk1(true) + .setUnk2(true) + .setUnk3(true) + .setUnk4(true) + .setUnk5(true) + .setUnk6(true) + .setUnk7(true) + .setUnk8(true) + .setUnk9(true); + + /* .setEnableVersionUpdate(true) - .setEnableDesignDataBundleVersionUpdate(true) + .setEnableDesignDataVersionUpdate(true) .setEventTrackingOpen(true) - .setNetworkDiagnostic(true); + .setNetworkDiagnostic(true) + */ // Set hotfix urls if (data.assetBundleUrl != null && !data.assetBundleUrl.isBlank()) { diff --git a/src/main/java/emu/lunarcore/server/http/objects/NewLoginReqJson.java b/src/main/java/emu/lunarcore/server/http/objects/NewLoginReqJson.java new file mode 100644 index 0000000..5dc7902 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/http/objects/NewLoginReqJson.java @@ -0,0 +1,6 @@ +package emu.lunarcore.server.http.objects; + +public class NewLoginReqJson { + public String account; + public String password; +} diff --git a/src/main/java/emu/lunarcore/server/http/objects/NewLoginResJson.java b/src/main/java/emu/lunarcore/server/http/objects/NewLoginResJson.java new file mode 100644 index 0000000..0ad4325 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/http/objects/NewLoginResJson.java @@ -0,0 +1,60 @@ +package emu.lunarcore.server.http.objects; + +public class NewLoginResJson { + public String message; + public int retcode; + public VerifyData data; + + public static class VerifyData { + public TokenData token = new TokenData(); + public VerifyAccountUserData user_info = new VerifyAccountUserData(); + public VerifyAccountExtUserData ext_user_info = new VerifyAccountExtUserData(); + public String reactivate_action_ticket = ""; + public String bind_email_action_ticket = ""; + + public VerifyData(String accountUid, String email, String token) { + this.token.token = token; + this.user_info.aid = accountUid; + this.user_info.email = email; + } + } + + public static class TokenData { + public String token = ""; + public int token_type = 1; + } + + public static class VerifyAccountUserData { + public String account_name = ""; + public String aid = ""; + public String area_code = "**"; + public String country = ""; + public String email = ""; + public int is_email_verify = 0; + public LinkData[] links = new LinkData[0]; + public String mid = ""; + public String mobile = ""; + public String realname = ""; + public String identity_code = ""; + public String safe_area_code = ""; + public String safe_mobile = ""; + public String rebind_area_code = ""; + public String rebind_mobile = ""; + public String rebind_mobile_time = ""; + public String password_time = "0"; + public int is_adult = 0; + public String unmasked_email = ""; + public int unmasked_email_type = 0; + } + + public static class VerifyAccountExtUserData { + public String guardian_email = ""; + public String birth = ""; + } + + public static class LinkData { + public String nickname = ""; + public String thirdparty = ""; + public String union_id = ""; + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/CmdId.java b/src/main/java/emu/lunarcore/server/packet/CmdId.java index 5674c9e..e1b8ef8 100644 --- a/src/main/java/emu/lunarcore/server/packet/CmdId.java +++ b/src/main/java/emu/lunarcore/server/packet/CmdId.java @@ -5,1578 +5,2413 @@ public class CmdId { public static final int NONE = 0; // Cmd Ids - public static final int SpringRecoverCsReq = 1458; - public static final int FinishEmotionDialoguePerformanceScRsp = 6329; - public static final int GetEnhanceCommonRogueBuffInfoCsReq = 5617; - public static final int SubmitMonsterResearchActivityMaterialCsReq = 2625; - public static final int EnterAetherDivideSceneCsReq = 4868; - public static final int CommonRogueQueryScRsp = 5641; - public static final int GetRogueShopMiracleInfoCsReq = 5643; - public static final int ApplyFriendCsReq = 2939; - public static final int GetHeartDialInfoScRsp = 6306; - public static final int ComposeLimitNumUpdateNotify = 516; - public static final int GetCurAssistCsReq = 2978; - public static final int ChangeLineupLeaderCsReq = 748; - public static final int FinishQuestCsReq = 933; - public static final int GetAuthkeyScRsp = 97; - public static final int StartAetherDivideChallengeBattleScRsp = 4829; - public static final int FightEnterScRsp = 30006; - public static final int FinishRogueCommonDialogueCsReq = 5622; - public static final int MarkAvatarCsReq = 308; - public static final int StartRogueScRsp = 1843; - public static final int UnlockAvatarSkinScNotify = 388; - public static final int SellItemCsReq = 525; - public static final int RelicAvatarRecommendScRsp = 2417; - public static final int SwapLineupScRsp = 733; - public static final int GetChallengeGroupStatisticsCsReq = 1797; - public static final int FinishPerformSectionIdScRsp = 2733; - public static final int SyncLineupNotify = 799; - public static final int UseTreasureDungeonItemScRsp = 4492; - public static final int AcceptMainMissionCsReq = 1284; - public static final int GetWolfBroGameDataCsReq = 6551; - public static final int RogueTournDifficultyCompNotify = 6055; - public static final int JoinLineupCsReq = 756; - public static final int DelSaveRaidScNotify = 2225; - public static final int EvolveBuildReRandomStageCsReq = 7145; - public static final int CurTrialActivityScNotify = 2622; - public static final int SubmitEmotionItemScRsp = 6393; - public static final int UpdateRogueAdventureRoomScoreScRsp = 5640; - public static final int LobbyInviteScRsp = 7356; - public static final int SharePunkLordMonsterCsReq = 3256; - public static final int RogueTournRenameArchiveCsReq = 6044; - public static final int RogueTournGetArchiveRepositoryCsReq = 6082; - public static final int TakeRogueEventHandbookRewardCsReq = 5689; - public static final int GetPlayerReturnMultiDropInfoScRsp = 4656; - public static final int MuseumTakeCollectRewardCsReq = 4381; - public static final int MonopolyGameCreateScNotify = 7012; - public static final int MonopolyGetRafflePoolInfoScRsp = 7070; - public static final int GetActivityScheduleConfigCsReq = 2656; - public static final int DeleteSummonUnitCsReq = 1404; - public static final int RefreshAlleyOrderScRsp = 4798; - public static final int GetCurSceneInfoScRsp = 1429; - public static final int StartCocoonStageScRsp = 1466; - public static final int TreasureDungeonFinishScNotify = 4406; - public static final int StrongChallengeActivityBattleEndScNotify = 6656; - public static final int StartAlleyEventCsReq = 4739; - public static final int ChessRogueCellUpdateNotify = 5498; + public static final int GetBenefitActivityInfoCsReq = 4863; + public static final int FinishEmotionDialoguePerformanceScRsp = 6398; + public static final int ApplyFriendCsReq = 2909; + public static final int GetHeartDialInfoScRsp = 6310; + public static final int MusicRhythmMaxDifficultyLevelsUnlockNotify = 7597; + public static final int GetCurAssistCsReq = 2908; + public static final int ChangeLineupLeaderCsReq = 737; + public static final int SetGrowthTargetAvatarScRsp = 373; + public static final int FinishQuestCsReq = 926; + public static final int StartAetherDivideChallengeBattleScRsp = 4801; + public static final int FinishRogueCommonDialogueCsReq = 5652; + public static final int MarkAvatarCsReq = 357; + public static final int SellItemCsReq = 533; + public static final int UnlockAvatarSkinScNotify = 396; + public static final int PlanetFesEnterNextBusinessDayScRsp = 8306; + public static final int SwapLineupScRsp = 726; + public static final int GetChallengeGroupStatisticsCsReq = 1772; + public static final int TakeActiveActivityRewardCsReq = 9552; + public static final int SyncLineupNotify = 739; + public static final int UseTreasureDungeonItemScRsp = 4458; + public static final int GetChallengePeakDataScRsp = 8907; + public static final int PlanetFesUseItemScRsp = 8240; + public static final int AcceptMainMissionCsReq = 1273; + public static final int JoinLineupCsReq = 714; + public static final int EvolveBuildReRandomStageCsReq = 7144; + public static final int RelicSmartWearGetPinRelicScRsp = 8268; + public static final int GridFightGetDataScRsp = 8750; + public static final int UpdateRogueAdventureRoomScoreScRsp = 5671; + public static final int FateShopRefreshGoodsCsReq = 5968; + public static final int TakeMaterialSubmitActivityRewardCsReq = 2607; + public static final int SharePunkLordMonsterCsReq = 3214; + public static final int RogueTournGetArchiveRepositoryCsReq = 6026; + public static final int RogueTournRenameArchiveCsReq = 6043; + public static final int GetAllActivityRewardCountDataScRsp = 9117; + public static final int GetPlayerReturnMultiDropInfoScRsp = 4614; + public static final int CakeRaceFinishPveCsReq = 9147; + public static final int WaitGetRogueTournBuildRefShareCodeDataCsReq = 6100; + public static final int GetActivityScheduleConfigCsReq = 2614; + public static final int GetCurSceneInfoScRsp = 1498; + public static final int IdleLiveFinishFinalActScRsp = 9351; + public static final int DiceCombatModifyAvatarDiceScRsp = 9263; + public static final int ClickMbtiReportCsReq = 7045; + public static final int MusicRhythmUnlockTrackScNotify = 7578; + public static final int StartAlleyEventCsReq = 4709; public static final int RecallPetScRsp = 7608; - public static final int BuyRogueShopMiracleCsReq = 5629; - public static final int EnterRogueEndlessActivityStageScRsp = 6010; - public static final int StartAetherDivideStageBattleCsReq = 4817; - public static final int GetLoginActivityCsReq = 2668; - public static final int StartBoxingClubBattleScRsp = 4293; - public static final int GetWaypointCsReq = 468; - public static final int LeaveRogueScRsp = 1829; - public static final int TravelBrochureSetPageDescStatusScRsp = 6498; - public static final int GetAllSaveRaidScRsp = 2298; - public static final int WolfBroGamePickupBulletScRsp = 6582; - public static final int ClockParkUnlockTalentScRsp = 7208; - public static final int ExchangeStaminaScRsp = 82; - public static final int GetPunkLordBattleRecordScRsp = 3278; - public static final int GetShopListScRsp = 1506; - public static final int LogisticsScoreRewardSyncInfoScNotify = 4712; - public static final int GetStageLineupScRsp = 706; - public static final int UpdateRotaterScNotify = 6824; - public static final int LockRelicCsReq = 597; - public static final int BattlePassInfoNotify = 3068; - public static final int MonopolyMoveCsReq = 7029; - public static final int ReserveStaminaExchangeScRsp = 72; - public static final int MarkItemCsReq = 549; - public static final int MonopolyGameRaiseRatioCsReq = 7016; - public static final int UpdateFloorSavedValueNotify = 1470; - public static final int ExpUpRelicScRsp = 534; - public static final int AlleyShipUnlockScNotify = 4709; - public static final int ChessRogueEnterNextLayerScRsp = 5492; - public static final int SyncRogueFinishScNotify = 1882; - public static final int ChessRogueNousEditDiceCsReq = 5459; - public static final int MonopolyTakePhaseRewardScRsp = 7079; - public static final int EvolveBuildUnlockInfoNotify = 7149; - public static final int GetLevelRewardTakenListCsReq = 92; - public static final int InteractTreasureDungeonGridScRsp = 4424; - public static final int GetRndOptionCsReq = 3468; - public static final int SwordTrainingRestoreGameScRsp = 7496; - public static final int ChessRogueNousDiceUpdateNotify = 5508; - public static final int TakeQuestRewardCsReq = 911; - public static final int SwordTrainingExamResultConfirmCsReq = 7464; - public static final int ChessRoguePickAvatarScRsp = 5450; - public static final int LeaveAetherDivideSceneScRsp = 4843; - public static final int MuseumRandomEventStartScNotify = 4325; - public static final int RemoveStuffFromAreaScRsp = 4329; - public static final int MonopolyScrachRaffleTicketCsReq = 7010; - public static final int SyncRogueCommonVirtualItemInfoScNotify = 5685; - public static final int AetherDivideSpiritExpUpCsReq = 4890; - public static final int GetFirstTalkByPerformanceNpcScRsp = 2154; - public static final int ChooseBoxingClubStageOptionalBuffScRsp = 4234; - public static final int ReviveRogueAvatarCsReq = 1825; - public static final int SetTurnFoodSwitchScRsp = 530; - public static final int TakeTrialActivityRewardScRsp = 2631; - public static final int ClientObjDownloadDataScNotify = 61; - public static final int TakeChallengeRaidRewardScRsp = 2251; - public static final int DoGachaInRollShopCsReq = 6912; - public static final int WolfBroGameUseBulletCsReq = 6554; - public static final int GetMapRotationDataCsReq = 6899; - public static final int RogueArcadeRestartCsReq = 7661; - public static final int LobbyCreateCsReq = 7357; - public static final int AlleyEventEffectNotify = 4733; - public static final int GetCurBattleInfoScRsp = 193; - public static final int GiveUpBoxingClubChallengeScRsp = 4229; - public static final int SummonPetCsReq = 7615; - public static final int FightKickOutScNotify = 30043; - public static final int AcceptedPamMissionExpireScRsp = 4006; - public static final int WolfBroGameExplodeMonsterCsReq = 6598; - public static final int TakeRogueEndlessActivityPointRewardScRsp = 6007; - public static final int GetChessRogueStoryAeonTalkInfoCsReq = 5417; - public static final int GetMonopolyDailyReportScRsp = 7020; - public static final int BuyNpcStuffScRsp = 4343; - public static final int GetMissionDataCsReq = 1268; - public static final int ChessRogueFinishCurRoomNotify = 5467; - public static final int TextJoinQueryCsReq = 3811; - public static final int RotateMapScRsp = 6829; - public static final int LeaveChallengeScRsp = 1793; - public static final int TakeRogueAeonLevelRewardCsReq = 1810; - public static final int MonopolyGuessDrawScNotify = 7067; - public static final int MonopolyGameGachaCsReq = 7078; - public static final int SummonPunkLordMonsterScRsp = 3229; - public static final int FinishItemIdCsReq = 2756; - public static final int MuseumRandomEventSelectCsReq = 4392; - public static final int RefreshTriggerByClientCsReq = 1463; - public static final int EnterTreasureDungeonScRsp = 4448; - public static final int CommonRogueUpdateScNotify = 5631; - public static final int MissionGroupWarnScNotify = 1254; - public static final int GetEnteredSceneScRsp = 1477; - public static final int ArchiveWolfBroGameScRsp = 6543; - public static final int SyncTaskScRsp = 1239; - public static final int RogueWorkbenchSelectFuncScRsp = 5655; - public static final int EvolveBuildLeaveScRsp = 7120; - public static final int PickRogueAvatarScRsp = 1897; - public static final int SetFriendMarkCsReq = 2940; - public static final int EnterChallengeNextPhaseScRsp = 1709; - public static final int RogueWorkbenchSelectFuncCsReq = 5677; - public static final int EvolveBuildShopAbilityUpCsReq = 7105; - public static final int MatchThreeSetBirdPosScRsp = 7423; - public static final int RogueModifierSelectCellScRsp = 5356; - public static final int HeliobusUpgradeLevelScRsp = 5848; - public static final int TakeMultipleExpeditionRewardScRsp = 2525; - public static final int MonopolyGuessChooseScRsp = 7095; - public static final int QuitBattleScNotify = 151; - public static final int StartRaidScRsp = 2206; - public static final int RogueModifierStageStartNotify = 5333; - public static final int EnterChallengeNextPhaseCsReq = 1728; - public static final int MonopolyGetRegionProgressCsReq = 7072; - public static final int GetFriendBattleRecordDetailScRsp = 2931; - public static final int ComposeSelectedRelicCsReq = 528; - public static final int GetFriendAssistListScRsp = 2953; - public static final int GetTreasureDungeonActivityDataScRsp = 4454; - public static final int GetPlayerBoardDataScRsp = 2806; - public static final int GetMonopolyDailyReportCsReq = 7091; - public static final int TakeMailAttachmentScRsp = 829; - public static final int SetDisplayAvatarCsReq = 2856; - public static final int ChessRogueQueryAeonDimensionsScRsp = 5536; - public static final int HeliobusSnsLikeCsReq = 5839; - public static final int MatchBoxingClubOpponentScRsp = 4243; - public static final int ArchiveWolfBroGameCsReq = 6511; - public static final int AceAntiCheaterScRsp = 59; - public static final int SyncRogueCommonDialogueDataScNotify = 5671; - public static final int GetAllLineupDataCsReq = 724; - public static final int GetMonopolyMbtiReportRewardScRsp = 7001; - public static final int GetPunkLordDataCsReq = 3234; - public static final int UnlockTutorialGuideScRsp = 1629; - public static final int EnterSceneByServerScNotify = 1483; - public static final int DeleteFriendScRsp = 2948; - public static final int EnterSummonActivityStageScRsp = 7570; - public static final int RogueTournReviveAvatarScRsp = 6042; - public static final int GetTutorialScRsp = 1606; - public static final int TravelBrochureGetDataScRsp = 6406; - public static final int GiveUpBoxingClubChallengeCsReq = 4239; - public static final int FinishCurTurnCsReq = 4399; - public static final int EnterFeverTimeActivityStageScRsp = 7154; - public static final int GetFriendLoginInfoCsReq = 2969; - public static final int GetFriendListInfoScRsp = 2906; - public static final int RogueTournEnterScRsp = 6033; - public static final int GetQuestDataCsReq = 968; - public static final int PlayerReturnInfoQueryScRsp = 4533; - public static final int PlayerReturnStartScNotify = 4568; - public static final int ExchangeRogueBuffWithMiracleScRsp = 5624; - public static final int UpdateMechanismBarScNotify = 1431; - public static final int UpdatePlayerSettingCsReq = 64; - public static final int RogueTournEnablePermanentTalentCsReq = 6022; - public static final int GetGunPlayDataCsReq = 4109; - public static final int SceneReviveAfterRebattleCsReq = 1409; - public static final int LeaveAetherDivideSceneCsReq = 4811; - public static final int MarkReadMailScRsp = 843; - public static final int RogueArcadeLeaveCsReq = 7665; - public static final int GetServerPrefsDataCsReq = 6111; - public static final int GetTrainVisitorBehaviorScRsp = 3743; - public static final int SelectInclinationTextScRsp = 2133; - public static final int SetIsDisplayAvatarInfoScRsp = 2829; - public static final int GetRogueInitialScoreCsReq = 1895; - public static final int LeaveChallengeCsReq = 1756; - public static final int StartTimedCocoonStageCsReq = 1444; - public static final int MonopolyMoveScRsp = 7051; - public static final int MultiplayerGetFightGateScRsp = 1043; - public static final int ChessRogueUpdateBoardScNotify = 5518; - public static final int GetQuestDataScRsp = 906; - public static final int BuyNpcStuffCsReq = 4311; - public static final int CancelActivityExpeditionCsReq = 2554; - public static final int GetLevelRewardTakenListScRsp = 90; - public static final int MatchThreeGetDataScRsp = 7424; - public static final int MultiplayerFightGameStateScRsp = 1006; - public static final int HandleRogueCommonPendingActionCsReq = 5647; - public static final int GetTrackPhotoActivityDataCsReq = 7551; - public static final int ChessRogueQuestFinishNotify = 5460; - public static final int MonopolyLikeScNotify = 7041; - public static final int SetCurWaypointCsReq = 411; - public static final int ChessRogueCheatRollScRsp = 5499; - public static final int SetFriendRemarkNameScRsp = 2992; - public static final int GetFriendListInfoCsReq = 2968; - public static final int HeliobusLineupUpdateScNotify = 5809; - public static final int TakeChapterRewardCsReq = 429; - public static final int SelectPhoneThemeScRsp = 5139; - public static final int DoGachaInRollShopScRsp = 6920; - public static final int EnterFeverTimeActivityStageCsReq = 7151; - public static final int StartChallengeScRsp = 1743; - public static final int LobbyGetInfoScRsp = 7371; - public static final int BuyGoodsScRsp = 1543; - public static final int BuyRogueShopBuffCsReq = 5633; - public static final int UpdateMovieRacingDataScRsp = 4128; - public static final int OfferingInfoScNotify = 6936; - public static final int FinishTutorialCsReq = 1651; - public static final int WolfBroGameDataChangeScNotify = 6599; - public static final int MatchThreeSetBirdPosCsReq = 7408; - public static final int HeliobusUpgradeLevelCsReq = 5865; - public static final int HeliobusSelectSkillCsReq = 5834; - public static final int FinishFirstTalkByPerformanceNpcScRsp = 2148; - public static final int SceneUpdatePositionVersionNotify = 1454; - public static final int EnterTelevisionActivityStageScRsp = 6964; - public static final int EndDrinkMakerSequenceScRsp = 6982; - public static final int ChessRogueSkipTeachingLevelScRsp = 5531; - public static final int GetMultipleDropInfoCsReq = 4668; - public static final int GetPhoneDataCsReq = 5168; - public static final int SetAvatarPathCsReq = 20; - public static final int LobbyJoinCsReq = 7365; - public static final int PlayerHeartBeatScRsp = 3; - public static final int RaidCollectionDataScRsp = 6943; - public static final int GetDrinkMakerDataScRsp = 6983; - public static final int MonopolyGetRegionProgressScRsp = 7005; - public static final int GetSingleRedDotParamGroupScRsp = 5993; - public static final int ChessRogueGoAheadScRsp = 5556; - public static final int MonopolyReRollRandomScRsp = 7098; - public static final int MarkAvatarScRsp = 381; - public static final int RogueTournHandBookNotify = 6056; - public static final int GetTutorialCsReq = 1668; - public static final int GetArchiveDataScRsp = 2306; - public static final int SyncAddBlacklistScNotify = 2998; - public static final int GetSwordTrainingDataCsReq = 7474; - public static final int ExchangeRogueRewardKeyCsReq = 1831; - public static final int ChessRogueGiveUpCsReq = 5585; - public static final int StartTimedFarmElementScRsp = 1487; - public static final int ReplaceLineupCsReq = 790; - public static final int RogueTournLeaveRogueCocoonSceneCsReq = 6064; - public static final int SetBoxingClubResonanceLineupCsReq = 4265; - public static final int GetFriendBattleRecordDetailCsReq = 2941; - public static final int GetAllRedDotDataCsReq = 5968; - public static final int RogueTournStartCsReq = 6083; - public static final int StartTrialActivityCsReq = 2603; - public static final int MonopolyGetRaffleTicketScRsp = 7083; - public static final int GetPlayerBoardDataCsReq = 2868; - public static final int StarFightDataChangeNotify = 7162; - public static final int TakeAllRewardCsReq = 3029; - public static final int ChessRogueQueryAeonDimensionsCsReq = 5413; - public static final int PunkLordMonsterInfoScNotify = 3282; - public static final int ChessRogueStartScRsp = 5600; - public static final int GetRogueInfoScRsp = 1806; - public static final int RogueModifierSelectCellCsReq = 5343; - public static final int LogisticsGameScRsp = 4743; - public static final int GetAssistListCsReq = 2932; - public static final int EnterAdventureCsReq = 1368; - public static final int GetAetherDivideInfoScRsp = 4854; - public static final int GetCurAssistScRsp = 2976; - public static final int GetEnhanceCommonRogueBuffInfoScRsp = 5692; - public static final int RankUpEquipmentScRsp = 533; - public static final int RogueTournExpNotify = 6017; - public static final int SellItemScRsp = 524; - public static final int ChallengeBossPhaseSettleNotify = 1788; - public static final int FinishChessRogueNousSubStoryScRsp = 5577; - public static final int StartStarFightLevelScRsp = 7170; - public static final int SelectChessRogueSubStoryScRsp = 5587; - public static final int FinishQuestScRsp = 999; - public static final int MarkRelicFilterPlanCsReq = 531; - public static final int RogueTournTakeExpRewardScRsp = 6049; - public static final int ChangeLineupLeaderScRsp = 782; - public static final int TakePictureCsReq = 4156; - public static final int GetBagScRsp = 506; - public static final int GetPunkLordMonsterDataScRsp = 3206; - public static final int SavePointsInfoNotify = 1449; - public static final int DeleteBlacklistCsReq = 2909; - public static final int SubmitEmotionItemCsReq = 6356; - public static final int ActivityRaidPlacingGameCsReq = 4730; - public static final int StartWolfBroGameScRsp = 6506; - public static final int GetChallengeRaidInfoScRsp = 2239; - public static final int GetSocialEventServerCacheCsReq = 7022; - public static final int GetRogueScoreRewardInfoScRsp = 1879; - public static final int GetLoginChatInfoCsReq = 3982; - public static final int QuitLineupCsReq = 739; - public static final int GetAvatarDataCsReq = 368; - public static final int GetBoxingClubInfoScRsp = 4206; - public static final int StartAetherDivideSceneBattleCsReq = 4856; - public static final int SyncRogueCommonDialogueOptionFinishScNotify = 5673; - public static final int MonopolyEventLoadUpdateScNotify = 7052; - public static final int ChooseBoxingClubResonanceScRsp = 4254; - public static final int GetAetherDivideChallengeInfoCsReq = 4888; - public static final int GetMissionEventDataCsReq = 1282; - public static final int StopRogueAdventureRoomScRsp = 5688; - public static final int RelicAvatarRecommendCsReq = 2415; - public static final int GetFriendChallengeDetailCsReq = 2959; - public static final int TakePrestigeRewardScRsp = 4754; - public static final int HeliobusChallengeUpdateScNotify = 5828; - public static final int EvolveBuildShopAbilityResetCsReq = 7133; - public static final int GetCurLineupDataScRsp = 743; - public static final int PrestigeLevelUpCsReq = 4717; - public static final int GetCurChallengeCsReq = 1733; - public static final int TakeOfferingRewardCsReq = 6924; - public static final int GetRaidInfoScRsp = 2254; - public static final int TravelBrochurePageUnlockScNotify = 6411; - public static final int SpaceZooDataScRsp = 6706; - public static final int PromoteAvatarScRsp = 329; - public static final int ChessRogueGiveUpRollScRsp = 5489; - public static final int MonopolyLikeScRsp = 7007; - public static final int SyncAcceptedPamMissionNotify = 4011; - public static final int TakeExpeditionRewardCsReq = 2539; - public static final int TakeMonsterResearchActivityRewardCsReq = 2617; - public static final int GetRogueAeonInfoScRsp = 1827; - public static final int StartPartialChallengeCsReq = 1725; - public static final int QuitTreasureDungeonScRsp = 4428; - public static final int EvolveBuildReRandomStageScRsp = 7106; - public static final int MonopolyGetDailyInitItemScRsp = 7055; - public static final int RogueModifierDelNotify = 5351; - public static final int GetRollShopInfoCsReq = 6919; - public static final int BatchGetQuestDataCsReq = 982; - public static final int MuseumRandomEventQueryScRsp = 4317; - public static final int SearchPlayerScRsp = 2981; - public static final int TeleportToMissionResetPointScRsp = 1281; - public static final int GetCurSceneInfoCsReq = 1439; - public static final int RogueWorkbenchHandleFuncScRsp = 5636; - public static final int GetAllServerPrefsDataCsReq = 6168; - public static final int SyncRogueVirtualItemInfoScNotify = 1819; - public static final int GetRogueTalentInfoScRsp = 1838; - public static final int QuitWolfBroGameScRsp = 6529; - public static final int GetWolfBroGameDataScRsp = 6533; - public static final int ChessRogueUpdateDiceInfoScNotify = 5461; - public static final int MonopolyRollRandomCsReq = 7082; - public static final int ChangeStoryLineFinishScNotify = 6293; - public static final int LobbyBeginScRsp = 7358; - public static final int GetChallengeGroupStatisticsScRsp = 1798; - public static final int ChessRogueEnterCellCsReq = 5490; - public static final int GetSaveRaidCsReq = 2282; - public static final int RogueGetGambleInfoCsReq = 5691; - public static final int ChallengeSettleNotify = 1739; - public static final int ClockParkQuitScriptScRsp = 7212; - public static final int ReviveRogueAvatarScRsp = 1824; - public static final int RemoveStuffFromAreaCsReq = 4339; - public static final int SetAssistCsReq = 2984; - public static final int ContentPackageGetDataCsReq = 7507; - public static final int EvolveBuildStartStageScRsp = 7108; - public static final int SpaceZooOpCatteryScRsp = 6729; - public static final int SetPlayerInfoCsReq = 30; - public static final int WolfBroGameUseBulletScRsp = 6565; - public static final int FightSessionStopScNotify = 30039; - public static final int ShowNewSupplementVisitorScRsp = 3754; - public static final int ChessRogueConfirmRollCsReq = 5523; - public static final int PickRogueAvatarCsReq = 1834; - public static final int GetRogueInfoCsReq = 1868; - public static final int RestoreWolfBroGameArchiveScRsp = 6593; - public static final int ChooseBoxingClubStageOptionalBuffCsReq = 4282; - public static final int EvolveBuildShopAbilityDownScRsp = 7103; - public static final int SetGroupCustomSaveDataCsReq = 1403; - public static final int GetUpdatedArchiveDataScRsp = 2343; - public static final int HeliobusInfoChangedScNotify = 5854; - public static final int MonopolyReRollRandomCsReq = 7097; - public static final int GetStuffScNotify = 4351; - public static final int TakePromotionRewardScRsp = 317; - public static final int GetFirstTalkNpcScRsp = 2193; - public static final int SwordTrainingRestoreGameCsReq = 7491; - public static final int GameplayCounterRecoverCsReq = 1462; - public static final int StartWolfBroGameCsReq = 6568; - public static final int PromoteEquipmentCsReq = 511; - public static final int EnterSectionScRsp = 1481; - public static final int RogueArcadeRestartScRsp = 7658; - public static final int GetChessRogueStoryInfoCsReq = 5497; - public static final int MonopolyGetDailyInitItemCsReq = 7077; - public static final int RogueGetGambleInfoScRsp = 5620; - public static final int RogueTournBattleFailSettleInfoScNotify = 6020; - public static final int QuitRogueScRsp = 1878; - public static final int UnlockTutorialGuideCsReq = 1639; - public static final int MonopolyContentUpdateScNotify = 7032; - public static final int PlayerLoginFinishCsReq = 73; - public static final int ChessRogueEnterNextLayerCsReq = 5568; - public static final int BatchMarkChatEmojiCsReq = 3965; - public static final int SceneGroupRefreshScNotify = 1402; - public static final int ReBattleAfterBattleLoseCsNotify = 165; - public static final int RogueDoGambleScRsp = 5627; - public static final int TakeCityShopRewardCsReq = 1556; - public static final int LobbyKickOutCsReq = 7384; - public static final int MatchResultScNotify = 7311; - public static final int FinishCurTurnScRsp = 4354; - public static final int GetRogueCollectionScRsp = 5650; - public static final int RogueWorkbenchGetInfoCsReq = 5642; - public static final int GetFeverTimeActivityDataCsReq = 7160; - public static final int MonopolyGiveUpCurContentCsReq = 7009; - public static final int SceneCastSkillCostMpCsReq = 1448; - public static final int TakeOffAvatarSkinScRsp = 309; - public static final int AlleyShipmentEventEffectsScNotify = 4732; - public static final int ClockParkUnlockTalentCsReq = 7211; - public static final int GetChallengeScRsp = 1706; - public static final int MuseumDispatchFinishedScNotify = 4328; - public static final int GetGachaInfoScRsp = 1906; - public static final int TextJoinSaveScRsp = 3806; - public static final int InteractChargerScRsp = 6843; - public static final int ChessRogueEnterCsReq = 5567; - public static final int MultiplayerFightGameStartScNotify = 1039; - public static final int ExchangeRogueBuffWithMiracleCsReq = 5625; - public static final int HeliobusSnsCommentScRsp = 5833; - public static final int SelectPhoneThemeCsReq = 5193; - public static final int SetCurInteractEntityScRsp = 1423; - public static final int LobbySyncInfoScNotify = 7386; - public static final int MakeDrinkScRsp = 7000; - public static final int TakeApRewardCsReq = 3368; - public static final int MonopolyCellUpdateNotify = 7043; - public static final int StartMatchScRsp = 7324; - public static final int GetMissionDataScRsp = 1206; - public static final int StartAetherDivideSceneBattleScRsp = 4893; - public static final int QuitWolfBroGameCsReq = 6539; - public static final int RaidCollectionEnterNextRaidScRsp = 6944; - public static final int AcceptMultipleExpeditionCsReq = 2534; - public static final int GetMainMissionCustomValueScRsp = 1276; - public static final int TextJoinQueryScRsp = 3843; - public static final int SpringRecoverSingleAvatarScRsp = 1441; - public static final int BatchGetQuestDataScRsp = 934; - public static final int SyncEntityBuffChangeListScNotify = 1465; - public static final int FinishFirstTalkNpcCsReq = 2139; - public static final int ClockParkStartScriptScRsp = 7204; - public static final int HeliobusSnsLikeScRsp = 5829; - public static final int EnterRogueMapRoomCsReq = 1812; - public static final int MatchBoxingClubOpponentCsReq = 4211; - public static final int GetFantasticStoryActivityDataCsReq = 4968; - public static final int SpaceZooDataCsReq = 6768; - public static final int TriggerVoiceScRsp = 4148; - public static final int PrepareRogueAdventureRoomCsReq = 5606; - public static final int AceAntiCheaterCsReq = 47; - public static final int GetRogueShopBuffInfoCsReq = 5693; - public static final int GetChallengeRecommendLineupListCsReq = 2411; - public static final int SetForbidOtherApplyFriendScRsp = 2975; - public static final int ExpUpEquipmentScRsp = 554; - public static final int SetDisplayAvatarScRsp = 2893; - public static final int ChessRogueRollDiceCsReq = 5529; - public static final int GetTutorialGuideCsReq = 1611; - public static final int MultipleDropInfoScNotify = 4611; - public static final int TakeMultipleExpeditionRewardCsReq = 2598; - public static final int ChessRogueMoveCellNotify = 5419; - public static final int EvolveBuildGiveupCsReq = 7123; - public static final int DelMailCsReq = 856; - public static final int GetServerPrefsDataScRsp = 6143; - public static final int TakePunkLordPointRewardCsReq = 3265; - public static final int QuitBattleScRsp = 143; - public static final int EnterMapRotationRegionCsReq = 6868; - public static final int TakeTrainVisitorUntakenBehaviorRewardCsReq = 3751; - public static final int MuseumTakeCollectRewardScRsp = 4332; - public static final int PlayerLoginCsReq = 68; - public static final int GetFriendLoginInfoScRsp = 2967; - public static final int GetChapterCsReq = 456; - public static final int LobbyQuitCsReq = 7362; - public static final int RogueTournResetPermanentTalentCsReq = 6021; - public static final int GetTrialActivityDataCsReq = 2653; - public static final int GetTrainVisitorBehaviorCsReq = 3711; - public static final int FinishRogueCommonDialogueScRsp = 5621; - public static final int GetSpringRecoverDataCsReq = 1440; - public static final int GetActivityScheduleConfigScRsp = 2693; - public static final int CommonRogueComponentUpdateScNotify = 5686; - public static final int GetHeartDialInfoCsReq = 6368; - public static final int GetRogueHandbookDataScRsp = 5646; - public static final int GetRelicFilterPlanScRsp = 600; - public static final int HandleRogueCommonPendingActionScRsp = 5659; - public static final int ClockParkHandleWaitOperationCsReq = 7236; - public static final int ChessRogueNousGetRogueTalentInfoScRsp = 5482; - public static final int DiscardRelicScRsp = 569; - public static final int FeatureSwitchClosedScNotify = 13; - public static final int TakeQuestRewardScRsp = 943; - public static final int MultiplayerGetFightGateCsReq = 1011; - public static final int TakeKilledPunkLordMonsterScoreCsReq = 3232; - public static final int AetherDivideSpiritInfoScNotify = 4809; - public static final int GetRndOptionScRsp = 3406; - public static final int FightLeaveScNotify = 30011; - public static final int RevcMsgScNotify = 3911; - public static final int WolfBroGamePickupBulletCsReq = 6548; - public static final int GetMissionStatusScRsp = 1217; - public static final int SetAetherDivideLineUpScRsp = 4848; - public static final int GetPunkLordBattleRecordCsReq = 3223; - public static final int SelectRogueCommonDialogueOptionScRsp = 5614; - public static final int ChessRogueQuitScRsp = 5444; - public static final int SwordTrainingTurnActionScRsp = 7461; - public static final int FinishPerformSectionIdCsReq = 2751; - public static final int GetSingleRedDotParamGroupCsReq = 5956; - public static final int GetSummonActivityDataScRsp = 7564; - public static final int PlayerReturnSignScRsp = 4511; - public static final int ActivateFarmElementScRsp = 1475; - public static final int ReturnLastTownCsReq = 1417; - public static final int StartAlleyEventScRsp = 4729; - public static final int PlayerLogoutScRsp = 43; - public static final int GetEnteredSceneCsReq = 1427; - public static final int LobbyJoinScRsp = 7367; - public static final int MonopolyUpgradeAssetCsReq = 7090; - public static final int SetSpringRecoverConfigCsReq = 1500; - public static final int GetAllLineupDataScRsp = 717; - public static final int CancelMarkItemNotify = 566; - public static final int DestroyItemCsReq = 584; - public static final int MultiplayerFightGiveUpScRsp = 1093; - public static final int GetChessRogueNousStoryInfoScRsp = 5557; - public static final int GetDrinkMakerDataCsReq = 6999; - public static final int TakeFightActivityRewardScRsp = 3639; - public static final int SwordTrainingGiveUpGameCsReq = 7483; - public static final int GetRecyleTimeScRsp = 581; - public static final int FinishChessRogueSubStoryCsReq = 5418; - public static final int SwordTrainingStoryConfirmCsReq = 7485; - public static final int DailyFirstEnterMonopolyActivityScRsp = 7048; - public static final int AddEquipmentScNotify = 588; - public static final int GetNpcMessageGroupScRsp = 2706; - public static final int MonopolySelectOptionCsReq = 7033; - public static final int GetKilledPunkLordMonsterDataCsReq = 3228; - public static final int GetVideoVersionKeyCsReq = 42; - public static final int AddBlacklistScRsp = 2997; - public static final int MonopolyCheatDiceScRsp = 7081; - public static final int EndDrinkMakerSequenceCsReq = 6984; - public static final int TakeLoginActivityRewardCsReq = 2611; - public static final int DestroyItemScRsp = 523; - public static final int SyncRogueAeonLevelUpRewardScNotify = 1870; - public static final int EvolveBuildQueryInfoCsReq = 7107; - public static final int TakeRogueEndlessActivityAllBonusRewardScRsp = 6005; - public static final int MuseumRandomEventSelectScRsp = 4390; - public static final int RogueTournEnterRogueCocoonSceneCsReq = 6095; - public static final int ExpUpRelicCsReq = 582; - public static final int SummonPetScRsp = 7617; - public static final int GetSceneMapInfoCsReq = 1436; - public static final int ComposeItemScRsp = 548; - public static final int DifficultyAdjustmentUpdateDataCsReq = 4184; - public static final int RogueTournGetSettleInfoCsReq = 6077; - public static final int GetMapRotationDataScRsp = 6854; - public static final int GameplayCounterCountDownCsReq = 1461; - public static final int DrinkMakerUpdateTipsNotify = 6981; - public static final int FightHeartBeatCsReq = 30056; - public static final int GetChapterScRsp = 493; - public static final int MuseumFundsChangedScNotify = 4398; - public static final int ReEnterLastElementStageCsReq = 1422; - public static final int UnlockTutorialCsReq = 1656; - public static final int GetLevelRewardScRsp = 9; - public static final int AvatarExpUpScRsp = 343; - public static final int MuseumTargetStartNotify = 4309; - public static final int GetReplayTokenScRsp = 3506; - public static final int GetRogueCommonDialogueDataScRsp = 5626; - public static final int ClockParkGetInfoScRsp = 7224; - public static final int GetChatFriendHistoryScRsp = 3929; - public static final int MonopolyBuyGoodsScRsp = 7092; - public static final int GetMuseumInfoCsReq = 4368; - public static final int SetTurnFoodSwitchCsReq = 512; - public static final int BattleCollegeDataChangeScNotify = 5711; - public static final int SetAssistAvatarCsReq = 2854; - public static final int EnterAdventureScRsp = 1306; - public static final int RogueTournTakeExpRewardCsReq = 6027; - public static final int LogisticsGameCsReq = 4711; - public static final int GetChatEmojiListCsReq = 3951; - public static final int ClockParkGetOngoingScriptInfoScRsp = 7220; - public static final int DressAvatarSkinScRsp = 390; - public static final int GetAssistListScRsp = 2916; - public static final int AetherDivideTakeChallengeRewardScRsp = 4866; - public static final int SetClientRaidTargetCountCsReq = 2265; - public static final int StartStarFightLevelCsReq = 7169; - public static final int GetMovieRacingDataCsReq = 4117; - public static final int MonopolyClickMbtiReportCsReq = 7038; - public static final int GetTrainVisitorRegisterScRsp = 3729; - public static final int ChessRoguePickAvatarCsReq = 5446; - public static final int ChessRogueNousEnableRogueTalentCsReq = 5571; - public static final int GetBattleCollegeDataCsReq = 5768; - public static final int InteractTreasureDungeonGridCsReq = 4425; - public static final int SetSignatureScRsp = 2899; - public static final int EquipAetherDividePassiveSkillScRsp = 4834; - public static final int GetChallengeRaidInfoCsReq = 2293; - public static final int SetForbidOtherApplyFriendCsReq = 2915; - public static final int GetStarFightDataScRsp = 7164; - public static final int RogueTournGetCurRogueCocoonInfoScRsp = 6041; - public static final int InterruptMissionEventScRsp = 1290; - public static final int GetPlatformPlayerInfoCsReq = 2995; - public static final int RefreshTriggerByClientScRsp = 1438; - public static final int RemoveRotaterScRsp = 6825; - public static final int ClientObjUploadScRsp = 52; - public static final int GetArchiveDataCsReq = 2368; - public static final int RogueTournReviveAvatarCsReq = 6081; - public static final int GetPlayerDetailInfoCsReq = 2911; - public static final int GetShopListCsReq = 1568; - public static final int SwordTrainingExamResultConfirmScRsp = 7478; - public static final int EvolveBuildCoinNotify = 7127; - public static final int SaveLogisticsScRsp = 4708; - public static final int EvolveBuildStartLevelScRsp = 7117; - public static final int MuseumTargetMissionFinishNotify = 4388; - public static final int TakePictureScRsp = 4193; - public static final int SetRedPointStatusScNotify = 96; - public static final int FightMatch3TurnStartScNotify = 30143; - public static final int LobbyCreateScRsp = 7374; - public static final int GetLoginActivityScRsp = 2606; - public static final int DressAvatarScRsp = 333; - public static final int UpgradeAreaCsReq = 4365; - public static final int DailyActiveInfoNotify = 3356; - public static final int FightMatch3ChatScNotify = 30199; - public static final int ExchangeGachaCeilingCsReq = 1939; - public static final int ChessRogueSkipTeachingLevelCsReq = 5477; - public static final int RogueTournReviveCostUpdateScNotify = 6087; - public static final int SubmitOrigamiItemScRsp = 4134; - public static final int ContentPackageUnlockCsReq = 7517; - public static final int GetGachaCeilingCsReq = 1956; - public static final int SyncClientResVersionScRsp = 129; - public static final int GetPetDataCsReq = 7607; - public static final int RogueDoGambleCsReq = 5657; - public static final int PlayBackGroundMusicScRsp = 3143; - public static final int ResetMapRotationRegionCsReq = 6865; - public static final int RogueTournGetMiscRealTimeDataCsReq = 6079; - public static final int EvolveBuildShopAbilityUpScRsp = 7148; - public static final int MuseumInfoChangedScNotify = 4397; - public static final int StartBattleCollegeCsReq = 5743; - public static final int GetCurChallengeScRsp = 1799; - public static final int GetTreasureDungeonActivityDataCsReq = 4499; - public static final int GetMainMissionCustomValueCsReq = 1278; - public static final int FinishCosumeItemMissionScRsp = 1248; - public static final int GetPhoneDataScRsp = 5106; - public static final int FightMatch3StartCountDownScNotify = 30111; - public static final int UpgradeAreaStatCsReq = 4382; - public static final int EnhanceRogueBuffCsReq = 1809; - public static final int GetNpcTakenRewardScRsp = 2106; - public static final int MonopolyGameSettleScNotify = 7023; - public static final int HandleFriendScRsp = 2999; - public static final int SearchPlayerCsReq = 2908; - public static final int SwordTrainingLearnSkillCsReq = 7455; - public static final int RogueArcadeGetInfoScRsp = 7654; - public static final int EnterChessRogueAeonRoomCsReq = 5520; - public static final int EvolveBuildLeaveCsReq = 7134; - public static final int QuitLineupScRsp = 729; - public static final int EnterFightActivityStageCsReq = 3643; - public static final int MultiplayerMatch3FinishScNotify = 1051; - public static final int SpaceZooBornCsReq = 6711; - public static final int SwordTrainingResumeGameCsReq = 7469; - public static final int GetJukeboxDataScRsp = 3106; - public static final int TakeRogueMiracleHandbookRewardCsReq = 5630; - public static final int RogueTournDeleteArchiveCsReq = 6016; - public static final int EvolveBuildFinishScNotify = 7136; - public static final int AddRelicFilterPlanCsReq = 553; - public static final int FinishTalkMissionCsReq = 1211; - public static final int PlayerReturnTakePointRewardScRsp = 4593; - public static final int FinishSectionIdScRsp = 2729; - public static final int ModifyRelicFilterPlanScRsp = 559; - public static final int RogueTournSettleScRsp = 6043; - public static final int JoinLineupScRsp = 793; - public static final int GetCurBattleInfoCsReq = 156; - public static final int EnterSummonActivityStageCsReq = 7569; - public static final int ChooseBoxingClubResonanceCsReq = 4299; - public static final int AcceptExpeditionScRsp = 2543; - public static final int FightActivityDataChangeScNotify = 3611; - public static final int TrialBackGroundMusicScRsp = 3129; - public static final int OpenRogueChestCsReq = 1807; - public static final int QuitRogueCsReq = 1823; - public static final int ComposeSelectedRelicScRsp = 509; - public static final int MonopolyConfirmRandomCsReq = 7025; - public static final int ChessRogueSelectCellCsReq = 5549; - public static final int AcceptMissionEventCsReq = 1298; - public static final int EnableRogueTalentScRsp = 1804; - public static final int GetSocialEventServerCacheScRsp = 7021; - public static final int SpaceZooOpCatteryCsReq = 6739; - public static final int AlleyGuaranteedFundsScRsp = 4776; - public static final int GetRogueBuffEnhanceInfoCsReq = 1890; - public static final int ContentPackageGetDataScRsp = 7524; - public static final int BuyBpLevelCsReq = 3093; - public static final int TravelBrochureApplyPasterListScRsp = 6492; - public static final int SetIsDisplayAvatarInfoCsReq = 2839; - public static final int EvolveBuildShopAbilityDownCsReq = 7121; - public static final int SwapLineupCsReq = 751; - public static final int PlayerReturnForceFinishScNotify = 4599; - public static final int DoGachaCsReq = 1911; - public static final int LobbyBeginCsReq = 7361; - public static final int TravelBrochurePageResetScRsp = 6424; - public static final int GetFriendChallengeLineupCsReq = 2958; - public static final int DeleteSummonUnitScRsp = 1437; - public static final int RogueTournGetPermanentTalentInfoScRsp = 6085; - public static final int GetFightActivityDataCsReq = 3668; - public static final int MonopolyGetRaffleTicketCsReq = 7042; - public static final int MuseumRandomEventQueryCsReq = 4324; - public static final int EnterRogueCsReq = 1856; - public static final int AetherDivideLineupScNotify = 4823; - public static final int AcceptActivityExpeditionCsReq = 2533; - public static final int GetAuthkeyCsReq = 34; - public static final int RogueTournRenameArchiveScRsp = 6088; - public static final int GetRogueInitialScoreScRsp = 1889; - public static final int GetSecretKeyInfoScRsp = 71; - public static final int StartPartialChallengeScRsp = 1724; - public static final int MarkChatEmojiCsReq = 3999; - public static final int ShareCsReq = 4168; - public static final int SwordTrainingStoryBattleCsReq = 7490; - public static final int OpenTreasureDungeonGridCsReq = 4482; - public static final int MissionAcceptScNotify = 1249; - public static final int SwordTrainingDialogueSelectOptionCsReq = 7454; - public static final int GetMultiPathAvatarInfoScRsp = 77; - public static final int SceneEntityTeleportScRsp = 1473; - public static final int UnlockSkilltreeScRsp = 393; - public static final int GetAllRedDotDataScRsp = 5906; - public static final int InteractPropCsReq = 1411; - public static final int LobbyInviteCsReq = 7395; - public static final int ChessRogueGiveUpRollCsReq = 5545; - public static final int ChessRogueGiveUpScRsp = 5456; - public static final int SendMsgScRsp = 3906; - public static final int PromoteAvatarCsReq = 339; - public static final int EnterTrialActivityStageCsReq = 2659; - public static final int SyncRogueStatusScNotify = 1887; - public static final int GetMonopolyInfoScRsp = 7006; - public static final int StartTimedCocoonStageScRsp = 1474; - public static final int CancelMatchScRsp = 7317; - public static final int GetDailyActiveInfoScRsp = 3343; - public static final int TakeAllRewardScRsp = 3051; - public static final int TravelBrochureSetPageDescStatusCsReq = 6497; - public static final int EnterRogueEndlessActivityStageCsReq = 6009; - public static final int ExchangeStaminaCsReq = 48; - public static final int MonopolyDailySettleScNotify = 7053; - public static final int FinishPlotScRsp = 1106; - public static final int PrestigeLevelUpScRsp = 4792; - public static final int ChessRogueReviveAvatarScRsp = 5481; - public static final int UpdateGunPlayDataCsReq = 4108; - public static final int SyncRogueAeonScNotify = 1883; - public static final int FightFestUnlockSkillNotify = 7258; - public static final int SetStuffToAreaScRsp = 4393; - public static final int LobbyModifyPlayerInfoCsReq = 7373; - public static final int SetAvatarPathScRsp = 57; - public static final int GetRogueScoreRewardInfoCsReq = 1861; - public static final int AlleyOrderChangedScNotify = 4725; - public static final int SceneEnterStageCsReq = 1490; - public static final int EvolveBuildTakeExpRewardScRsp = 7125; - public static final int TakeChallengeRewardCsReq = 1782; - public static final int UpdateRedDotDataScRsp = 5943; - public static final int GetAetherDivideChallengeInfoScRsp = 4808; - public static final int TelevisionActivityDataChangeScNotify = 6972; - public static final int GetLoginChatInfoScRsp = 3934; - public static final int FightMatch3OpponentDataScNotify = 30129; - public static final int MakeMissionDrinkScRsp = 6987; - public static final int GetPlayerReplayInfoCsReq = 3511; - public static final int GetRogueAdventureRoomInfoScRsp = 5682; - public static final int ReserveStaminaExchangeCsReq = 50; - public static final int FinishAeonDialogueGroupScRsp = 1855; - public static final int TakeOffEquipmentScRsp = 354; - public static final int CancelActivityExpeditionScRsp = 2565; - public static final int SetRogueExhibitionCsReq = 5661; - public static final int LeaveRaidScRsp = 2243; - public static final int SetCurWaypointScRsp = 443; - public static final int EnterFantasticStoryActivityStageCsReq = 4943; - public static final int GetMissionEventDataScRsp = 1234; - public static final int DailyRefreshNotify = 100; - public static final int UseTreasureDungeonItemCsReq = 4417; - public static final int SelectChessRogueNousSubStoryCsReq = 5427; - public static final int LeaveRogueCsReq = 1839; - public static final int GetRogueEndlessActivityDataCsReq = 6001; - public static final int AetherDivideRefreshEndlessCsReq = 4878; - public static final int SpaceZooTakeScRsp = 6782; - public static final int CurPetChangedScNotify = 7623; - public static final int BuyRogueShopMiracleScRsp = 5651; - public static final int MatchThreeGetDataCsReq = 7407; - public static final int SwordTrainingUnlockSyncScNotify = 7481; - public static final int RogueTournEnterRoomCsReq = 6089; - public static final int GetAvatarDataScRsp = 306; - public static final int AntiAddictScNotify = 25; - public static final int StartAetherDivideChallengeBattleCsReq = 4839; - public static final int TakeTrainVisitorUntakenBehaviorRewardScRsp = 3733; - public static final int FightMatch3SwapScRsp = 30139; - public static final int SelectChatBubbleScRsp = 5143; - public static final int HeliobusActivityDataCsReq = 5868; - public static final int TakeRollShopRewardCsReq = 6904; - public static final int RelicRecommendScRsp = 2424; - public static final int TrialActivityDataChangeScNotify = 2647; - public static final int DrinkMakerChallengeCsReq = 6993; - public static final int GetMbtiReportCsReq = 7031; - public static final int AlleyGuaranteedFundsCsReq = 4778; - public static final int UpdateFeatureSwitchScNotify = 75; - public static final int ChessRogueRollDiceScRsp = 5539; - public static final int GetFightFestDataCsReq = 7257; - public static final int GetCrossInfoScRsp = 7323; - public static final int ActivateFarmElementCsReq = 1415; - public static final int SetAetherDivideLineUpCsReq = 4865; - public static final int LobbyQuitScRsp = 7389; - public static final int TakeAllApRewardCsReq = 3393; - public static final int RetcodeNotify = 41; - public static final int RestartChallengePhaseCsReq = 1792; - public static final int SetMultipleAvatarPathsScRsp = 4; - public static final int AetherDivideFinishChallengeScNotify = 4881; - public static final int UseItemScRsp = 529; - public static final int GetFarmStageGachaInfoCsReq = 1311; - public static final int SwordTrainingDialogueSelectOptionScRsp = 7484; - public static final int InteractPropScRsp = 1443; - public static final int DeleteSocialEventServerCacheScRsp = 7073; - public static final int EnableRogueTalentCsReq = 1880; - public static final int UnlockPhoneThemeScNotify = 5129; - public static final int RogueTournGetSettleInfoScRsp = 6036; - public static final int ClockParkStartScriptCsReq = 7223; - public static final int NewAssistHistoryNotify = 2966; - public static final int AlleyShipUsedCountScNotify = 4723; - public static final int RecoverAllLineupCsReq = 1478; - public static final int GetRelicFilterPlanCsReq = 585; - public static final int HeliobusSnsPostScRsp = 5893; - public static final int SetNicknameCsReq = 24; - public static final int GetChessRogueBuffEnhanceInfoScRsp = 5476; - public static final int AlleyPlacingGameCsReq = 4765; - public static final int DailyFirstEnterMonopolyActivityCsReq = 7065; - public static final int FinishChessRogueSubStoryScRsp = 5491; - public static final int SwordTrainingStoryConfirmScRsp = 7475; - public static final int GetFightActivityDataScRsp = 3606; - public static final int QuitBattleCsReq = 111; - public static final int FinishFirstTalkNpcScRsp = 2129; - public static final int EvolveBuildQueryInfoScRsp = 7124; - public static final int BattleLogReportScRsp = 199; - public static final int ChessRogueEnterScRsp = 5421; - public static final int SetMissionEventProgressCsReq = 1228; - public static final int TreasureDungeonDataScNotify = 4468; - public static final int QuestRecordScNotify = 951; - public static final int MonopolyCheatDiceCsReq = 7008; - public static final int UpdateServerPrefsDataCsReq = 6156; - public static final int ClockParkGetInfoCsReq = 7207; - public static final int GetFeverTimeActivityDataScRsp = 7152; - public static final int GetStoryLineInfoCsReq = 6268; - public static final int ChessRogueUpdateReviveInfoScNotify = 5434; - public static final int ReturnLastTownScRsp = 1492; - public static final int SubmitOfferingItemCsReq = 6932; - public static final int FinishTutorialGuideCsReq = 1699; - public static final int SpaceZooExchangeItemScRsp = 6765; - public static final int MonopolyAcceptQuizCsReq = 7066; - public static final int MonopolySocialEventEffectScNotify = 7014; - public static final int SetSpringRecoverConfigScRsp = 1453; - public static final int GetAlleyInfoCsReq = 4768; - public static final int RogueTournClearArchiveNameScNotify = 6057; - public static final int FightTreasureDungeonMonsterScRsp = 4498; - public static final int FinishCosumeItemMissionCsReq = 1265; - public static final int ChessRogueNousDiceSurfaceUnlockNotify = 5453; - public static final int FinishChapterScNotify = 4911; - public static final int GetTelevisionActivityDataCsReq = 6979; - public static final int EnterSceneCsReq = 1486; - public static final int SetClientPausedCsReq = 1430; - public static final int PlayerLogoutCsReq = 11; - public static final int SpaceZooMutateCsReq = 6756; - public static final int ContentPackageSyncDataScNotify = 7515; - public static final int StartFinishMainMissionScNotify = 1216; - public static final int CancelMatchCsReq = 7315; - public static final int FinishAeonDialogueGroupCsReq = 1877; - public static final int HeliobusSnsUpdateScNotify = 5899; - public static final int FightMatch3DataCsReq = 30168; - public static final int MonopolyRollDiceScRsp = 7039; - public static final int WolfBroGameActivateBulletScRsp = 6597; - public static final int DifficultyAdjustmentGetDataCsReq = 4132; - public static final int TrainVisitorBehaviorFinishScRsp = 3706; - public static final int LockEquipmentCsReq = 556; - public static final int MultiplayerFightGameFinishScNotify = 1029; - public static final int AetherDivideTainerInfoScNotify = 4832; - public static final int TextJoinBatchSaveCsReq = 3856; - public static final int DeactivateFarmElementScRsp = 1467; - public static final int HeliobusSnsReadCsReq = 5811; - public static final int SwordTrainingGameSyncChangeScNotify = 7457; - public static final int LeaveTrialActivityScRsp = 2614; - public static final int SetGameplayBirthdayScRsp = 58; - public static final int GroupStateChangeScNotify = 1457; - public static final int SetSignatureCsReq = 2833; - public static final int EquipAetherDividePassiveSkillCsReq = 4882; - public static final int SetLanguageScRsp = 32; - public static final int TravelBrochureSelectMessageCsReq = 6456; - public static final int UpdateTrackMainMissionIdCsReq = 1266; - public static final int SetGenderScRsp = 12; - public static final int BoxingClubChallengeUpdateScNotify = 4233; - public static final int GetBasicInfoScRsp = 85; - public static final int TrainRefreshTimeNotify = 3756; - public static final int GetFriendDevelopmentInfoScRsp = 2926; - public static final int TakeCityShopRewardScRsp = 1593; - public static final int ChessRogueUpdateUnlockLevelScNotify = 5430; - public static final int SceneEntityMoveScNotify = 1499; - public static final int LeaveMapRotationRegionCsReq = 6851; - public static final int ExchangeHcoinScRsp = 590; - public static final int DressAvatarSkinCsReq = 392; - public static final int EvolveBuildGiveupScRsp = 7104; - public static final int QueryProductInfoCsReq = 69; - public static final int GetReplayTokenCsReq = 3568; - public static final int ChessRogueNousEnableRogueTalentScRsp = 5576; - public static final int EnhanceCommonRogueBuffCsReq = 5690; - public static final int EnterStrongChallengeActivityStageScRsp = 6643; - public static final int PromoteEquipmentScRsp = 543; - public static final int RaidCollectionDataScNotify = 6952; - public static final int RankUpAvatarScRsp = 382; - public static final int GetMovieRacingDataScRsp = 4192; - public static final int SceneEntityMoveScRsp = 1406; - public static final int TriggerVoiceCsReq = 4165; - public static final int GameplayCounterUpdateScNotify = 1452; - public static final int ChessRogueUpdateDicePassiveAccumulateValueScNotify = 5463; - public static final int RegionStopScNotify = 98; - public static final int ClockParkFinishScriptScNotify = 7225; - public static final int DailyTaskDataScNotify = 1229; - public static final int GetMonopolyFriendRankingListScRsp = 7047; - public static final int GetFriendApplyListInfoCsReq = 2956; - public static final int GetUnlockTeleportCsReq = 1472; - public static final int LeaveMapRotationRegionScNotify = 6882; - public static final int SetGroupCustomSaveDataScRsp = 1426; - public static final int SwitchLineupIndexCsReq = 734; - public static final int PlayerGetTokenScRsp = 93; - public static final int GetQuestRecordScRsp = 929; - public static final int RogueModifierUpdateNotify = 5329; - public static final int RestoreWolfBroGameArchiveCsReq = 6556; - public static final int MultiplayerFightGiveUpCsReq = 1056; - public static final int UnlockAvatarPathCsReq = 63; - public static final int PlayerReturnTakeRewardScRsp = 4529; - public static final int ComposeItemCsReq = 565; - public static final int SyncRogueRewardInfoScNotify = 1818; - public static final int RebattleByClientCsNotify = 148; - public static final int UnlockHeadIconScNotify = 2851; - public static final int SwordTrainingMarkEndingViewedScRsp = 7468; - public static final int SyncHandleFriendScNotify = 2954; - public static final int GetGachaInfoCsReq = 1968; - public static final int TakeLoginActivityRewardScRsp = 2643; - public static final int PVEBattleResultCsReq = 168; - public static final int MonopolyGiveUpCurContentScRsp = 7088; - public static final int TakeOffRelicCsReq = 398; - public static final int GetTutorialGuideScRsp = 1643; - public static final int SceneCastSkillCostMpScRsp = 1482; - public static final int InteractChargerCsReq = 6811; - public static final int EntityBindPropScRsp = 1412; - public static final int GetExpeditionDataCsReq = 2568; - public static final int MonopolyConfirmRandomScRsp = 7024; - public static final int AlleyTakeEventRewardScRsp = 4745; - public static final int QuitTrackPhotoStageCsReq = 7557; - public static final int TravelBrochureSetCustomValueScRsp = 6434; - public static final int ScenePlaneEventScNotify = 1496; - public static final int CurAssistChangedNotify = 2930; - public static final int PlayerReturnTakePointRewardCsReq = 4556; - public static final int RogueTournEnterLayerCsReq = 6092; - public static final int ChessRogueSelectBpCsReq = 5486; - public static final int DeployRotaterCsReq = 6856; - public static final int LobbyKickOutScRsp = 7370; - public static final int TakeFightActivityRewardCsReq = 3693; - public static final int MultipleDropInfoNotify = 4693; - public static final int WaypointShowNewCsNotify = 439; - public static final int AlleyShopLevelScNotify = 4728; - public static final int RogueTournGetAllArchiveCsReq = 6068; - public static final int GeneralVirtualItemDataNotify = 595; - public static final int SetRogueCollectionCsReq = 5672; - public static final int PlayerGetTokenCsReq = 56; - public static final int SwitchAetherDivideLineUpSlotScRsp = 4824; - public static final int HeliobusEnterBattleCsReq = 5824; - public static final int TakeRogueScoreRewardScRsp = 1892; - public static final int ClockParkHandleWaitOperationScRsp = 7245; - public static final int GetFriendRecommendListInfoScRsp = 2924; - public static final int PlayerReturnSignCsReq = 4506; - public static final int RogueTournLevelInfoUpdateScNotify = 6038; - public static final int SwordTrainingSetSkillTraceScRsp = 7494; - public static final int BoxingClubRewardScNotify = 4251; - public static final int StartFightFestScRsp = 7267; - public static final int RemoveRotaterCsReq = 6898; - public static final int ChallengeLineupNotify = 1754; - public static final int UpdateTrackMainMissionIdScRsp = 1246; - public static final int GetAssistHistoryScRsp = 2945; - public static final int PlayBackGroundMusicCsReq = 3111; - public static final int SyncRogueExploreWinScNotify = 1849; - public static final int GetMonopolyFriendRankingListCsReq = 7058; - public static final int MonopolyGameBingoFlipCardCsReq = 7049; - public static final int StartBattleCollegeScRsp = 5756; - public static final int ChangeScriptEmotionScRsp = 6343; - public static final int SyncRogueCommonPendingActionScNotify = 5615; - public static final int MarkChatEmojiScRsp = 3954; - public static final int GetSecretKeyInfoCsReq = 21; - public static final int ChessRogueSelectCellScRsp = 5532; - public static final int RogueTournGetPermanentTalentInfoCsReq = 6026; - public static final int BuyBpLevelScRsp = 3039; - public static final int AcceptMissionEventScRsp = 1225; - public static final int GetMonopolyInfoCsReq = 7068; - public static final int GetQuestRecordCsReq = 939; - public static final int EnterRogueScRsp = 1893; - public static final int LastSpringRefreshTimeNotify = 1424; - public static final int LogisticsDetonateStarSkiffScRsp = 4746; - public static final int AvatarPathChangedNotify = 55; - public static final int DrinkMakerDayEndScNotify = 6988; - public static final int TakeOffEquipmentCsReq = 399; - public static final int GetRogueBuffEnhanceInfoScRsp = 1828; - public static final int EnhanceChessRogueBuffCsReq = 5458; - public static final int CancelCacheNotifyScRsp = 4133; - public static final int SendMsgCsReq = 3968; - public static final int SwitchLineupIndexScRsp = 797; - public static final int SetRogueExhibitionScRsp = 5679; - public static final int StoryLineInfoScNotify = 6211; - public static final int TakeRogueScoreRewardCsReq = 1817; - public static final int HeliobusEnterBattleScRsp = 5817; - public static final int SetHeadIconScRsp = 2843; - public static final int AcceptExpeditionCsReq = 2511; - public static final int LogisticsInfoScNotify = 4781; - public static final int DailyFirstMeetPamScRsp = 3443; - public static final int RogueTournEnterRogueCocoonSceneScRsp = 6025; - public static final int RechargeSuccNotify = 517; - public static final int SyncRogueMapRoomScNotify = 1869; - public static final int ChessRogueUpdateAllowedSelectCellScNotify = 5426; - public static final int SwordTrainingStoryBattleScRsp = 7452; - public static final int SceneEntityTeleportCsReq = 1471; - public static final int TravelBrochureUpdatePasterPosScRsp = 6454; - public static final int UnlockTutorialScRsp = 1693; - public static final int UnlockTeleportNotify = 1418; - public static final int SummonActivityBattleEndScNotify = 7562; - public static final int MonopolyTakeRaffleTicketRewardScRsp = 7036; - public static final int HeartDialScriptChangeScNotify = 6351; - public static final int ExchangeHcoinCsReq = 592; - public static final int ChessRogueQueryBpCsReq = 5401; - public static final int SyncRoguePickAvatarInfoScNotify = 1835; - public static final int FightMatch3DataScRsp = 30106; - public static final int TakeRogueMiracleHandbookRewardScRsp = 5695; - public static final int GetSaveLogisticsMapCsReq = 4716; - public static final int GetRogueExhibitionScRsp = 5670; - public static final int PVEBattleResultScRsp = 106; - public static final int UpdateRedDotDataCsReq = 5911; - public static final int SwordTrainingMarkEndingViewedCsReq = 7459; - public static final int FinishPlotCsReq = 1168; - public static final int SubmitOrigamiItemCsReq = 4182; - public static final int RogueWorkbenchGetInfoScRsp = 5683; - public static final int FightFestUpdateChallengeRecordNotify = 7273; - public static final int LobbyModifyPlayerInfoScRsp = 7354; - public static final int RaidCollectionEnterNextRaidCsReq = 6960; - public static final int MonopolyGameBingoFlipCardScRsp = 7045; - public static final int ExpeditionDataChangeScNotify = 2551; - public static final int GetTelevisionActivityDataScRsp = 6963; - public static final int GroupStateChangeScRsp = 1420; - public static final int SyncRogueReviveInfoScNotify = 1884; - public static final int PlayerKickOutScNotify = 51; - public static final int SyncClientResVersionCsReq = 139; - public static final int TrainVisitorRewardSendNotify = 3793; - public static final int RogueTournGetMiscRealTimeDataScRsp = 6013; - public static final int GetMarkItemListCsReq = 578; - public static final int AetherDivideRefreshEndlessScRsp = 4876; - public static final int ServerSimulateBattleFinishScNotify = 154; - public static final int EnterTrialActivityStageScRsp = 2607; - public static final int GetSummonActivityDataCsReq = 7561; - public static final int EntityBindPropCsReq = 1446; - public static final int GetDailyActiveInfoCsReq = 3311; - public static final int UpdateGunPlayDataScRsp = 4181; - public static final int SpaceZooExchangeItemCsReq = 6754; - public static final int RogueTournReEnterRogueCocoonStageCsReq = 6063; - public static final int StartFightFestCsReq = 7265; - public static final int ChessRogueReRollDiceCsReq = 5474; - public static final int SecurityReportScRsp = 4154; - public static final int ExtraLineupDestroyNotify = 709; - public static final int FightMatch3ForceUpdateNotify = 30154; - public static final int GetPrivateChatHistoryCsReq = 3956; - public static final int PlayerReturnTakeRewardCsReq = 4539; - public static final int RankUpAvatarCsReq = 348; - public static final int DifficultyAdjustmentUpdateDataScRsp = 4123; - public static final int DeleteRelicFilterPlanCsReq = 507; - public static final int GameplayCounterCountDownScRsp = 1479; - public static final int GetRogueHandbookDataCsReq = 5666; - public static final int SceneCastSkillScRsp = 1493; - public static final int ChessRogueChangeyAeonDimensionNotify = 5425; - public static final int ChessRogueNousGetRogueTalentInfoCsReq = 5592; - public static final int AlleyTakeEventRewardCsReq = 4749; - public static final int ChessRogueQuitCsReq = 5506; - public static final int QueryProductInfoScRsp = 67; - public static final int GetTrainVisitorRegisterCsReq = 3739; - public static final int UseItemCsReq = 539; - public static final int ShareScRsp = 4106; - public static final int GetStrongChallengeActivityDataCsReq = 6668; - public static final int TakeAllApRewardScRsp = 3339; - public static final int GetTrialActivityDataScRsp = 2658; - public static final int GetChessRogueBuffEnhanceInfoCsReq = 5555; - public static final int GetFriendApplyListInfoScRsp = 2993; - public static final int EvolveBuildTakeExpRewardCsReq = 7135; - public static final int FightMatch3TurnEndScNotify = 30156; - public static final int EvolveBuildStartLevelCsReq = 7115; - public static final int UnlockSkilltreeCsReq = 356; - public static final int NewMailScNotify = 851; - public static final int TakePromotionRewardCsReq = 324; - public static final int ShowNewSupplementVisitorCsReq = 3799; - public static final int TravelBrochureSelectMessageScRsp = 6493; - public static final int GetNpcStatusScRsp = 2743; - public static final int RogueNpcDisappearScRsp = 5665; - public static final int GetMonsterResearchActivityDataScRsp = 2698; - public static final int ClockParkGetOngoingScriptInfoCsReq = 7234; - public static final int SetMultipleAvatarPathsCsReq = 80; - public static final int RestartChallengePhaseScRsp = 1790; - public static final int MatchThreeLevelEndCsReq = 7415; - public static final int GetPlatformPlayerInfoScRsp = 2989; - public static final int GetStarFightDataCsReq = 7161; - public static final int SpaceZooTakeCsReq = 6748; - public static final int AddAvatarScNotify = 365; - public static final int SyncChessRogueNousValueScNotify = 5451; - public static final int RelicRecommendCsReq = 2407; - public static final int GetChatFriendHistoryCsReq = 3939; - public static final int ClockParkUseBuffScRsp = 7235; - public static final int WolfBroGameActivateBulletCsReq = 6534; - public static final int SettleTrackPhotoStageCsReq = 7559; - public static final int PrivateMsgOfflineUsersScNotify = 3943; - public static final int TakeActivityExpeditionRewardCsReq = 2548; - public static final int UnlockBackGroundMusicCsReq = 3156; - public static final int GetPlayerReplayInfoScRsp = 3543; - public static final int ClientObjUploadCsReq = 79; - public static final int GetFirstTalkNpcCsReq = 2156; - public static final int RogueTournDeleteArchiveScRsp = 6035; - public static final int TakeChallengeRewardScRsp = 1734; - public static final int DressRelicAvatarCsReq = 334; - public static final int RogueArcadeStartCsReq = 7657; - public static final int FightFestScoreUpdateNotify = 7261; - public static final int FightTreasureDungeonMonsterCsReq = 4497; - public static final int GetFantasticStoryActivityDataScRsp = 4906; - public static final int GetRogueEndlessActivityDataScRsp = 6004; - public static final int TravelBrochureRemovePasterScRsp = 6433; - public static final int GetBattleCollegeDataScRsp = 5706; - public static final int SyncRogueAdventureRoomInfoScNotify = 5668; - public static final int SwordTrainingStartGameScRsp = 7453; - public static final int LockEquipmentScRsp = 593; - public static final int SetLineupNameScRsp = 725; - public static final int HeliobusStartRaidScRsp = 5890; - public static final int ResetMapRotationRegionScRsp = 6848; - public static final int HeliobusActivityDataScRsp = 5806; - public static final int GetShareDataScRsp = 4143; - public static final int SpringRefreshScRsp = 1425; - public static final int HeliobusSnsCommentCsReq = 5851; - public static final int RogueTournQueryCsReq = 6034; - public static final int TelevisionActivityBattleEndScNotify = 6962; - public static final int SetStuffToAreaCsReq = 4356; - public static final int SubmitOfferingItemScRsp = 6940; - public static final int SetMissionEventProgressScRsp = 1209; - public static final int SubMissionRewardScNotify = 1288; - public static final int TravelBrochureApplyPasterScRsp = 6429; - public static final int MakeMissionDrinkCsReq = 6996; - public static final int StartFinishSubMissionScNotify = 1232; - public static final int GetPetDataScRsp = 7624; - public static final int TakeTalkRewardCsReq = 2111; - public static final int ChessRogueUpdateMoneyInfoScNotify = 5442; - public static final int TakeBpRewardScRsp = 3056; - public static final int SwordTrainingDailyPhaseConfirmCsReq = 7458; - public static final int MonopolyAcceptQuizScRsp = 7046; - public static final int CityShopInfoScNotify = 1539; - public static final int GetStoryLineInfoScRsp = 6206; - public static final int HeartDialTraceScriptCsReq = 6333; - public static final int SetLanguageCsReq = 81; - public static final int DeactivateFarmElementCsReq = 1469; - public static final int GetChallengeRecommendLineupListScRsp = 2408; - public static final int ReportPlayerCsReq = 2990; - public static final int RogueTournLeaveCsReq = 6059; - public static final int EnterSwordTrainingExamScRsp = 7489; - public static final int DressAvatarCsReq = 351; - public static final int TrainVisitorBehaviorFinishCsReq = 3768; - public static final int SpaceZooDeleteCatScRsp = 6733; - public static final int OpenTreasureDungeonGridScRsp = 4434; - public static final int ModifyRelicFilterPlanCsReq = 547; - public static final int GetMultiPathAvatarInfoCsReq = 27; - public static final int SwordTrainingResumeGameScRsp = 7497; - public static final int EnterFightActivityStageScRsp = 3656; - public static final int MonopolyClickCellScRsp = 7027; - public static final int SwordTrainingLearnSkillScRsp = 7498; - public static final int RaidInfoNotify = 2256; - public static final int UpgradeAreaScRsp = 4348; - public static final int ChessRogueQueryScRsp = 5507; - public static final int SwordTrainingSelectEndingCsReq = 7463; - public static final int GmTalkScRsp = 99; - public static final int CancelExpeditionCsReq = 2556; - public static final int SyncApplyFriendScNotify = 2951; - public static final int EnteredSceneChangeScNotify = 1455; - public static final int TravelBrochurePageResetCsReq = 6425; - public static final int MonopolySttUpdateScNotify = 7002; - public static final int EnhanceRogueBuffScRsp = 1888; - public static final int RogueTournConfirmSettleScRsp = 6024; - public static final int SpaceZooCatUpdateNotify = 6799; - public static final int RogueTournGetCurRogueCocoonInfoCsReq = 6051; - public static final int RogueArcadeGetInfoCsReq = 7673; - public static final int HeliobusSnsPostCsReq = 5856; - public static final int RogueModifierAddNotify = 5311; - public static final int AcceptActivityExpeditionScRsp = 2599; - public static final int PunkLordDataChangeNotify = 3284; - public static final int SetClientRaidTargetCountScRsp = 2248; - public static final int StartPunkLordRaidCsReq = 3211; - public static final int RecoverAllLineupScRsp = 1476; - public static final int DoGachaScRsp = 1943; - public static final int RefreshTriggerByClientScNotify = 1480; - public static final int ChessRogueLeaveScRsp = 5447; - public static final int GetFirstTalkByPerformanceNpcCsReq = 2199; - public static final int TravelBrochureApplyPasterListCsReq = 6417; - public static final int GetFriendDevelopmentInfoCsReq = 2903; - public static final int GetOfferingInfoCsReq = 6939; - public static final int GetFriendChallengeLineupScRsp = 2947; - public static final int LeaveMapRotationRegionScRsp = 6833; - public static final int MarkRelicFilterPlanScRsp = 503; - public static final int SyncRogueHandbookDataUpdateScNotify = 5612; - public static final int StartTrackPhotoStageScRsp = 7556; - public static final int StoryLineTrialAvatarChangeScNotify = 6239; - public static final int GetAssistHistoryCsReq = 2949; - public static final int TakeRogueAeonLevelRewardScRsp = 1850; - public static final int GetSwordTrainingDataScRsp = 7465; - public static final int RogueTournEnterCsReq = 6099; - public static final int AetherDivideSpiritExpUpScRsp = 4828; - public static final int MonopolyTakePhaseRewardCsReq = 7061; - public static final int MissionEventRewardScNotify = 1297; - public static final int RogueTournLeaveRogueCocoonSceneScRsp = 6086; - public static final int UpdateMapRotationDataScNotify = 6897; - public static final int FantasticStoryActivityBattleEndScNotify = 4993; - public static final int SwordTrainingActionTurnSettleScNotify = 7479; - public static final int RelicFilterPlanClearNameScNotify = 526; - public static final int GetRogueTalentInfoCsReq = 1863; - public static final int MonopolyScrachRaffleTicketScRsp = 7050; - public static final int MonopolyGuessBuyInformationScRsp = 7069; - public static final int ChangeScriptEmotionCsReq = 6311; - public static final int GetRogueAdventureRoomInfoCsReq = 5648; - public static final int TakeAssistRewardCsReq = 2946; - public static final int GetLineupAvatarDataCsReq = 754; - public static final int WolfBroGameExplodeMonsterScRsp = 6525; - public static final int RogueTournEnterRoomScRsp = 6019; - public static final int HeliobusUnlockSkillScNotify = 5882; - public static final int TakeTrialActivityRewardCsReq = 2641; - public static final int TakeRogueEndlessActivityPointRewardCsReq = 6006; - public static final int GetGunPlayDataScRsp = 4188; - public static final int SwitchAetherDivideLineUpSlotCsReq = 4825; - public static final int RogueTournLeaveScRsp = 6078; - public static final int GateServerScNotify = 26; - public static final int MuseumTargetRewardNotify = 4308; - public static final int StartRaidCsReq = 2268; - public static final int GetPunkLordMonsterDataCsReq = 3268; - public static final int EnterSceneScRsp = 1442; - public static final int GetBasicInfoCsReq = 40; - public static final int ClockParkBattleEndScNotify = 7248; - public static final int EnterFantasticStoryActivityStageScRsp = 4956; - public static final int SceneEnterStageScRsp = 1428; - public static final int RogueEndlessActivityBattleEndScNotify = 6002; - public static final int RogueTournQueryScRsp = 6040; - public static final int UnlockAvatarPathScRsp = 38; - public static final int GetExpeditionDataScRsp = 2506; - public static final int SelectChessRogueNousSubStoryScRsp = 5521; - public static final int UpdateMovieRacingDataCsReq = 4190; - public static final int MonthCardRewardNotify = 7; - public static final int FinishTutorialGuideScRsp = 1654; - public static final int MonopolyTakeRaffleTicketRewardCsReq = 7096; - public static final int PunkLordMonsterKilledNotify = 3281; - public static final int TakeOffRelicScRsp = 325; - public static final int RogueTournEnablePermanentTalentScRsp = 6053; - public static final int GetMultipleDropInfoScRsp = 4606; - public static final int QuitTrackPhotoStageScRsp = 7553; - public static final int GetUnlockTeleportScRsp = 1405; - public static final int SwordTrainingSetSkillTraceCsReq = 7460; - public static final int ChessRogueReviveAvatarCsReq = 5569; - public static final int LobbyGetInfoCsReq = 7398; - public static final int DressRelicAvatarScRsp = 397; - public static final int LeaveRaidCsReq = 2211; - public static final int HeliobusStartRaidCsReq = 5892; - public static final int MultiplayerFightGameStateCsReq = 1068; - public static final int DailyFirstMeetPamCsReq = 3411; - public static final int TakeMonsterResearchActivityRewardScRsp = 2692; - public static final int SetFriendMarkScRsp = 2985; - public static final int FeverTimeActivityBattleEndScNotify = 7159; - public static final int MonopolyConditionUpdateScNotify = 7063; - public static final int SetFriendRemarkNameCsReq = 2917; - public static final int DeleteSocialEventServerCacheCsReq = 7071; - public static final int EnterTreasureDungeonCsReq = 4465; - public static final int EnterSwordTrainingExamCsReq = 7462; - public static final int TravelBrochureGetPasterScNotify = 6465; - public static final int RotateMapCsReq = 6839; - public static final int MonopolyEventSelectFriendCsReq = 7026; - public static final int HeartDialTraceScriptScRsp = 6399; - public static final int SettleTrackPhotoStageScRsp = 7560; - public static final int ChessRogueUpdateAeonModifierValueScNotify = 5542; - public static final int ContentPackageTransferScNotify = 7508; - public static final int MonopolyBuyGoodsCsReq = 7017; - public static final int GetChatEmojiListScRsp = 3933; - public static final int SetAssistAvatarScRsp = 2865; - public static final int MonopolyClickMbtiReportScRsp = 7080; - public static final int FightMatch3ChatScRsp = 30133; - public static final int FinishEmotionDialoguePerformanceCsReq = 6339; - public static final int SelectChatBubbleCsReq = 5111; - public static final int MissionRewardScNotify = 1256; - public static final int MatchThreeSyncDataScNotify = 7411; - public static final int SyncRogueSeasonFinishScNotify = 1845; - public static final int GetFightFestDataScRsp = 7274; - public static final int UnlockedAreaMapScNotify = 1494; - public static final int CancelCacheNotifyCsReq = 4151; - public static final int GetMuseumInfoScRsp = 4306; - public static final int ChessRogueUpdateLevelBaseInfoScNotify = 5431; - public static final int GetSaveLogisticsMapScRsp = 4784; - public static final int SharePunkLordMonsterScRsp = 3293; - public static final int RogueTournWeekChallengeUpdateScNotify = 6032; - public static final int GetFriendRecommendListInfoCsReq = 2925; - public static final int UpdatePsnSettingsInfoCsReq = 2; - public static final int GetSceneMapInfoScRsp = 1410; - public static final int UpdatePlayerSettingScRsp = 70; - public static final int GetMailCsReq = 868; - public static final int SaveLogisticsCsReq = 4788; - public static final int SpaceZooBornScRsp = 6743; - public static final int HandleFriendCsReq = 2933; - public static final int RogueTournStartScRsp = 6039; - public static final int GetPlayerDetailInfoScRsp = 2943; - public static final int InterruptMissionEventCsReq = 1292; - public static final int TakeQuestOptionalRewardScRsp = 965; - public static final int LeaveTrialActivityCsReq = 2613; - public static final int StaminaInfoScNotify = 5; - public static final int RogueTournEnterLayerScRsp = 6058; - public static final int ClearAetherDividePassiveSkillCsReq = 4897; - public static final int FinishTalkMissionScRsp = 1243; - public static final int RogueTournGetAllArchiveScRsp = 6018; - public static final int SetClientPausedScRsp = 1495; - public static final int AetherDivideTakeChallengeRewardCsReq = 4845; - public static final int FinishSectionIdCsReq = 2739; - public static final int TravelBrochureGetDataCsReq = 6468; - public static final int VirtualLineupDestroyNotify = 792; - public static final int TakeRollShopRewardScRsp = 6902; - public static final int MonopolyRollDiceCsReq = 7093; - public static final int MarkItemScRsp = 545; - public static final int FinishTutorialScRsp = 1633; - public static final int StartChallengeCsReq = 1711; - public static final int GetMarkItemListScRsp = 576; - public static final int SetGameplayBirthdayCsReq = 53; - public static final int SyncRogueAreaUnlockScNotify = 1896; - public static final int GetPunkLordDataScRsp = 3297; - public static final int ContentPackageUnlockScRsp = 7511; - public static final int SummonPunkLordMonsterCsReq = 3239; - public static final int StartAetherDivideStageBattleScRsp = 4892; - public static final int GetMonopolyMbtiReportRewardCsReq = 7062; - public static final int RogueTournSettleCsReq = 6100; - public static final int GetNpcTakenRewardCsReq = 2168; - public static final int ExchangeGachaCeilingScRsp = 1929; - public static final int GetGachaCeilingScRsp = 1993; - public static final int TrialBackGroundMusicCsReq = 3139; - public static final int GetRecyleTimeCsReq = 508; - public static final int ChessRogueSelectBpScRsp = 5566; - public static final int OpenRogueChestScRsp = 1841; - public static final int GetPlayerReturnMultiDropInfoCsReq = 4643; - public static final int GetAlleyInfoScRsp = 4706; - public static final int TextJoinBatchSaveScRsp = 3893; - public static final int ClearAetherDividePassiveSkillScRsp = 4898; - public static final int GetStrongChallengeActivityDataScRsp = 6606; - public static final int GetJukeboxDataCsReq = 3168; - public static final int SyncTaskCsReq = 1293; - public static final int SyncChessRogueNousMainStoryScNotify = 5455; - public static final int UpdateRogueAdventureRoomScoreCsReq = 5675; - public static final int FinishItemIdScRsp = 2793; - public static final int RogueTournGetArchiveRepositoryScRsp = 6031; - public static final int AddRelicFilterPlanScRsp = 558; - public static final int UpdatePsnSettingsInfoScRsp = 62; - public static final int SpaceZooMutateScRsp = 6793; - public static final int EnterChessRogueAeonRoomScRsp = 5589; - public static final int PlayerLoginScRsp = 6; - public static final int MonopolyGameGachaScRsp = 7076; - public static final int ChessRogueLayerAccountInfoNotify = 5591; - public static final int GetStageLineupCsReq = 768; - public static final int AlleyFundsScNotify = 4790; - public static final int EnterStrongChallengeActivityStageCsReq = 6611; - public static final int EnhanceCommonRogueBuffScRsp = 5628; - public static final int TakeRogueEventHandbookRewardScRsp = 5669; - public static final int ChessRogueUpdateActionPointScNotify = 5487; - public static final int UpgradeAreaStatScRsp = 4334; - public static final int AlleyEventChangeNotify = 4751; - public static final int TakeQuestOptionalRewardCsReq = 954; - public static final int GetWaypointScRsp = 406; - public static final int GetMailScRsp = 806; - public static final int StartBoxingClubBattleCsReq = 4256; - public static final int UpdateServerPrefsDataScRsp = 6193; - public static final int TakeChallengeRaidRewardCsReq = 2229; - public static final int SceneEntityMoveCsReq = 1468; - public static final int TakePunkLordPointRewardScRsp = 3248; - public static final int ClockParkUseBuffCsReq = 7203; - public static final int GetMonsterResearchActivityDataCsReq = 2697; - public static final int SetGenderCsReq = 46; - public static final int FightMatch3ChatCsReq = 30151; - public static final int EnterMapRotationRegionScRsp = 6806; - public static final int SwordTrainingTurnActionCsReq = 7467; - public static final int GetMissionStatusCsReq = 1224; - public static final int RogueNpcDisappearCsReq = 5654; - public static final int GetNpcStatusCsReq = 2711; - public static final int SyncServerSceneChangeNotify = 1450; - public static final int SelectChessRogueSubStoryCsReq = 5406; - public static final int RogueArcadeStartScRsp = 7674; - public static final int UnlockChatBubbleScNotify = 5156; - public static final int HealPoolInfoNotify = 1459; - public static final int ReEnterLastElementStageScRsp = 1421; - public static final int MatchThreeLevelEndScRsp = 7417; - public static final int GetAetherDivideInfoCsReq = 4899; - public static final int AvatarExpUpCsReq = 311; - public static final int CancelExpeditionScRsp = 2593; - public static final int LockRelicScRsp = 598; - public static final int GetPrivateChatHistoryScRsp = 3993; - public static final int MonopolyEventSelectFriendScRsp = 7013; - public static final int StartPunkLordRaidScRsp = 3243; - public static final int SceneCastSkillCsReq = 1456; - public static final int ChessRogueStartCsReq = 5514; - public static final int EnterRogueMapRoomScRsp = 1830; - public static final int SyncRogueCommonActionResultScNotify = 5667; - public static final int DiscardRelicCsReq = 589; - public static final int AcceptedPamMissionExpireCsReq = 4068; - public static final int StartMatchCsReq = 7307; - public static final int GetNpcMessageGroupCsReq = 2768; - public static final int HeliobusSnsReadScRsp = 5843; - public static final int SpringRecoverSingleAvatarCsReq = 1407; - public static final int RogueTournResetPermanentTalentScRsp = 6096; - public static final int QuitTreasureDungeonCsReq = 4490; - public static final int GetBagCsReq = 568; - public static final int FinishChessRogueNousSubStoryCsReq = 5409; - public static final int RaidCollectionDataCsReq = 6959; - public static final int ChessRogueQueryCsReq = 5493; - public static final int TeleportToMissionResetPointCsReq = 1208; - public static final int ChessRogueNousEditDiceScRsp = 5565; - public static final int FightHeartBeatScRsp = 30093; - public static final int SceneCastSkillMpUpdateScNotify = 1434; - public static final int SwordTrainingGiveUpGameScRsp = 7493; - public static final int GetRollShopInfoScRsp = 6903; - public static final int AetherDivideSkillItemScNotify = 4816; - public static final int RaidKickByServerScNotify = 2224; - public static final int GetFriendAssistListCsReq = 3000; - public static final int TravelBrochureSetCustomValueCsReq = 6482; - public static final int DelMailScRsp = 893; - public static final int MonopolyUpgradeAssetScRsp = 7028; - public static final int GetRogueCollectionCsReq = 5610; - public static final int FinishFirstTalkByPerformanceNpcCsReq = 2165; - public static final int StartCocoonStageCsReq = 1445; - public static final int DeleteFriendCsReq = 2965; - public static final int GetRogueExhibitionCsReq = 5664; - public static final int ChessRogueEnterCellScRsp = 5433; - public static final int MakeDrinkCsReq = 6992; - public static final int TravelBrochureApplyPasterCsReq = 6439; - public static final int MonopolyGuessChooseCsReq = 7030; - public static final int AcceptMultipleExpeditionScRsp = 2597; - public static final int MonopolySelectOptionScRsp = 7099; - public static final int PlayerReturnInfoQueryCsReq = 4551; - public static final int GetLevelRewardCsReq = 28; - public static final int SwordTrainingDailyPhaseConfirmScRsp = 7473; - public static final int GetChessRogueStoryAeonTalkInfoScRsp = 5544; - public static final int TakeApRewardScRsp = 3306; - public static final int GetRogueCommonDialogueDataCsReq = 5603; - public static final int ChessRogueQueryBpScRsp = 5588; - public static final int RogueWorkbenchHandleFuncCsReq = 5696; - public static final int GetShareDataCsReq = 4111; - public static final int SelectRogueCommonDialogueOptionCsReq = 5613; - public static final int TakeMailAttachmentCsReq = 839; - public static final int EnterTelevisionActivityStageCsReq = 6980; - public static final int AetherDivideRefreshEndlessScNotify = 4849; - public static final int MonopolyActionResultScNotify = 7011; - public static final int HeliobusSelectSkillScRsp = 5897; - public static final int MonopolyGuessBuyInformationCsReq = 7089; - public static final int EnterSectionCsReq = 1408; - public static final int DeleteBlacklistScRsp = 2988; - public static final int TakeKilledPunkLordMonsterScoreScRsp = 3216; - public static final int SwordTrainingSelectEndingScRsp = 7488; - public static final int ComposeLimitNumCompleteNotify = 532; - public static final int SetNicknameScRsp = 17; - public static final int GameplayCounterRecoverScRsp = 1401; - public static final int GetSpringRecoverDataScRsp = 1485; - public static final int TakeExpeditionRewardScRsp = 2529; - public static final int GetVideoVersionKeyScRsp = 83; - public static final int TakeRogueEndlessActivityAllBonusRewardCsReq = 6003; - public static final int SyncTurnFoodNotify = 546; - public static final int RefreshAlleyOrderCsReq = 4797; - public static final int SetRogueCollectionScRsp = 5605; - public static final int FightEnterCsReq = 30068; - public static final int SpaceZooDeleteCatCsReq = 6751; - public static final int GetFarmStageGachaInfoScRsp = 1343; - public static final int DeployRotaterScRsp = 6893; - public static final int GetKilledPunkLordMonsterDataScRsp = 3209; - public static final int ChallengeRaidNotify = 2233; - public static final int AddBlacklistCsReq = 2934; - public static final int GetRogueAeonInfoCsReq = 1857; - public static final int GetLineupAvatarDataScRsp = 765; - public static final int PunkLordRaidTimeOutScNotify = 3225; - public static final int TakeAssistRewardScRsp = 2912; - public static final int GetChessRogueNousStoryInfoCsReq = 5501; - public static final int FightFestUpdateCoinNotify = 7254; - public static final int DrinkMakerChallengeScRsp = 6990; - public static final int MarkReadMailCsReq = 811; - public static final int GetRogueShopMiracleInfoScRsp = 5656; - public static final int SelectInclinationTextCsReq = 2151; - public static final int GetOfferingInfoScRsp = 6923; - public static final int PunkLordBattleResultScNotify = 3290; - public static final int SetAssistScRsp = 2923; - public static final int PlayerReturnPointChangeScNotify = 4543; - public static final int FightMatch3SwapCsReq = 30193; - public static final int UpdateEnergyScNotify = 6834; - public static final int SetPlayerInfoScRsp = 95; - public static final int StartTrackPhotoStageCsReq = 7552; - public static final int EnterAetherDivideSceneScRsp = 4806; - public static final int CommonRogueQueryCsReq = 5607; - public static final int ChessRogueLeaveCsReq = 5445; - public static final int SpringRecoverScRsp = 1447; - public static final int ChessRogueConfirmRollScRsp = 5596; - public static final int ReplaceLineupScRsp = 728; - public static final int SubmitMonsterResearchActivityMaterialScRsp = 2624; - public static final int BatchMarkChatEmojiScRsp = 3948; - public static final int LogisticsDetonateStarSkiffCsReq = 4766; - public static final int GetSaveRaidScRsp = 2234; - public static final int RogueTournConfirmSettleCsReq = 6023; - public static final int EvolveBuildStartStageCsReq = 7111; - public static final int SyncChessRogueNousSubStoryScNotify = 5484; - public static final int ClockParkQuitScriptCsReq = 7206; - public static final int PlayerLoginFinishScRsp = 86; - public static final int MonopolyGameRaiseRatioScRsp = 7084; - public static final int SyncChessRogueMainStoryFinishScNotify = 5480; - public static final int ExpUpEquipmentCsReq = 599; - public static final int MonopolyRollRandomScRsp = 7034; - public static final int TravelBrochureUpdatePasterPosCsReq = 6499; - public static final int ChessRogueCheatRollCsReq = 5408; - public static final int SwordTrainingGameSettleScNotify = 7499; - public static final int SyncRogueGetItemScNotify = 1836; - public static final int MonopolyClickCellCsReq = 7057; - public static final int ChessRogueGoAheadCsReq = 5405; - public static final int GetChessRogueStoryInfoScRsp = 5462; - public static final int GmTalkCsReq = 33; - public static final int DifficultyAdjustmentGetDataScRsp = 4116; - public static final int MonopolyLikeCsReq = 7059; - public static final int PlayerSyncScNotify = 668; - public static final int SetBoxingClubResonanceLineupScRsp = 4248; - public static final int LobbyInviteScNotify = 7355; - public static final int SetHeadIconCsReq = 2811; - public static final int GetTrackPhotoActivityDataScRsp = 7554; - public static final int EnhanceChessRogueBuffScRsp = 5552; - public static final int StartTrialActivityScRsp = 2626; - public static final int ReportPlayerScRsp = 2928; - public static final int MonopolyQuizDurationChangeScNotify = 7015; - public static final int TakeTalkRewardScRsp = 2143; - public static final int GetAllServerPrefsDataScRsp = 6106; - public static final int GetMbtiReportScRsp = 7003; - public static final int ApplyFriendScRsp = 2929; - public static final int DeleteRelicFilterPlanScRsp = 541; - public static final int RecallPetCsReq = 7611; - public static final int SceneReviveAfterRebattleScRsp = 1488; - public static final int StartRogueCsReq = 1811; - public static final int GetAllSaveRaidCsReq = 2297; - public static final int GetChallengeCsReq = 1768; - public static final int TakeOfferingRewardScRsp = 6922; - public static final int SyncDeleteFriendScNotify = 2982; - public static final int GetCurLineupDataCsReq = 711; - public static final int BattleLogReportCsReq = 133; - public static final int BuyGoodsCsReq = 1511; - public static final int BuyRogueShopBuffScRsp = 5699; - public static final int StopRogueAdventureRoomCsReq = 5609; - public static final int GetRaidInfoCsReq = 2299; - public static final int TakeOffAvatarSkinCsReq = 328; - public static final int MonopolyGetRafflePoolInfoCsReq = 7064; - public static final int TakePrestigeRewardCsReq = 4799; - public static final int PrepareRogueAdventureRoomScRsp = 5611; - public static final int SwordTrainingStartGameCsReq = 7471; - public static final int TakeBpRewardCsReq = 3043; - public static final int AlleyPlacingGameScRsp = 4748; - public static final int StartTimedFarmElementCsReq = 1419; - public static final int GetExhibitScNotify = 4333; - public static final int GetRogueShopBuffInfoScRsp = 5639; - public static final int GroupStateChangeCsReq = 1491; - public static final int UnlockBackGroundMusicScRsp = 3193; - public static final int ExchangeRogueRewardKeyScRsp = 1803; - public static final int TakeActivityExpeditionRewardScRsp = 2582; - public static final int GetBoxingClubInfoCsReq = 4268; - public static final int GetUpdatedArchiveDataCsReq = 2311; - public static final int GetFriendChallengeDetailScRsp = 2907; - public static final int EvolveBuildShopAbilityResetScRsp = 7143; - public static final int AcceptMainMissionScRsp = 1223; - public static final int TakeChapterRewardScRsp = 451; - public static final int SetLineupNameCsReq = 798; - public static final int ActivityRaidPlacingGameScRsp = 4795; - public static final int SpringRefreshCsReq = 1498; - public static final int TravelBrochureRemovePasterCsReq = 6451; - public static final int GmTalkScNotify = 29; - public static final int PlayerHeartBeatCsReq = 31; - public static final int RogueTournAreaUpdateScNotify = 6066; - public static final int SetCurInteractEntityCsReq = 1484; - public static final int ChessRogueReRollDiceScRsp = 5586; - public static final int SecurityReportCsReq = 4199; - public static final int RogueTournReEnterRogueCocoonStageScRsp = 6050; - public static final int RankUpEquipmentCsReq = 551; - public static final int RogueArcadeLeaveScRsp = 7667; - public static final int GetCrossInfoCsReq = 7308; - public static final int TextJoinSaveCsReq = 3868; -} \ No newline at end of file + public static final int StartAetherDivideStageBattleCsReq = 4849; + public static final int StartBoxingClubBattleScRsp = 4218; + public static final int ShopRefreshRequestScRsp = 9225; + public static final int LeaveRogueScRsp = 1898; + public static final int GetDiceCombatSystemDataScRsp = 9275; + public static final int RougeTournRenameBuildRefScRsp = 6045; + public static final int TravelBrochureSetPageDescStatusScRsp = 6432; + public static final int PlanetFesCollectAllIncomeScRsp = 8218; + public static final int EnterElfRestaurantNextDayScRsp = 2577; + public static final int ClockParkUnlockTalentScRsp = 7238; + public static final int StartChallengePeakScRsp = 8927; + public static final int GetShopListScRsp = 1510; + public static final int ElfRestaurantClientStatusScRsp = 2570; + public static final int GridFightRecycleRoleScRsp = 8642; + public static final int GetDiceCombatShopDataCsReq = 9273; + public static final int LockRelicCsReq = 572; + public static final int MonopolyMoveCsReq = 7098; + public static final int ReserveStaminaExchangeScRsp = 31; + public static final int MarkItemCsReq = 551; + public static final int UpdateFloorSavedValueNotify = 1415; + public static final int MonopolyGameRaiseRatioCsReq = 7065; + public static final int CakeRaceLoanCsReq = 9124; + public static final int QuickStartFarmElementCsReq = 1309; + public static final int ExpUpRelicScRsp = 538; + public static final int ChessRogueEnterNextLayerScRsp = 5449; + public static final int InteractTreasureDungeonGridScRsp = 4461; + public static final int GetRndOptionCsReq = 3491; + public static final int SwordTrainingRestoreGameScRsp = 7470; + public static final int SwordTrainingExamResultConfirmCsReq = 7496; + public static final int IdleLiveUpgradeSlotScRsp = 9409; + public static final int PlanetFesCollectIncomeScRsp = 8235; + public static final int CycleScoreRewardGetDataScRsp = 4105; + public static final int LeaveAetherDivideSceneScRsp = 4827; + public static final int RemoveStuffFromAreaScRsp = 4398; + public static final int MonopolyScrachRaffleTicketCsReq = 7099; + public static final int GetFirstTalkByPerformanceNpcScRsp = 2101; + public static final int GetActivityDatasScRsp = 2610; + public static final int ChooseBoxingClubStageOptionalBuffScRsp = 4238; + public static final int GetBigDataRecommendCsReq = 2405; + public static final int SetTurnFoodSwitchScRsp = 593; + public static final int TakeTrialActivityRewardScRsp = 2612; + public static final int ClientObjDownloadDataScNotify = 86; + public static final int MusicRhythmSaveSongConfigDataScRsp = 7600; + public static final int TakeChallengeRaidRewardScRsp = 2247; + public static final int DoGachaInRollShopCsReq = 6902; + public static final int ChenLingSellHandCardScRsp = 9614; + public static final int ChimeraDuelUnlockMasterCsReq = 9245; + public static final int GetMapRotationDataCsReq = 6839; + public static final int RogueArcadeRestartCsReq = 7681; + public static final int ChenLingQuitStageCsReq = 9605; + public static final int GetCurBattleInfoScRsp = 118; + public static final int ElfRestaurantUpgradeRecipeLevelScRsp = 2565; + public static final int MusicRhythmFinishLevelCsReq = 7573; + public static final int GiveUpBoxingClubChallengeScRsp = 4298; + public static final int AcceptedPamMissionExpireScRsp = 4010; + public static final int TakeRogueEndlessActivityPointRewardScRsp = 6002; + public static final int GetChessRogueStoryAeonTalkInfoCsReq = 5487; + public static final int SelectPamSkinScRsp = 8130; + public static final int BuyNpcStuffScRsp = 4395; + public static final int GetMissionDataCsReq = 1291; + public static final int RotateMapScRsp = 6898; + public static final int LeaveChallengeScRsp = 1718; + public static final int PlanetFesTakeRegionPhaseRewardScRsp = 8239; + public static final int TakeRogueAeonLevelRewardCsReq = 1899; + public static final int MonopolyGameGachaCsReq = 7008; + public static final int SummonPunkLordMonsterScRsp = 3298; + public static final int StarPerformanceRelayScRsp = 1266; + public static final int MuseumRandomEventSelectCsReq = 4358; + public static final int RefreshTriggerByClientCsReq = 1456; + public static final int GetEnteredSceneScRsp = 1446; + public static final int SwitchHandCoinUpdateScRsp = 8119; + public static final int SyncTaskScRsp = 1209; + public static final int SetFriendMarkCsReq = 2971; + public static final int EnterChallengeNextPhaseScRsp = 1789; + public static final int GetEraFlipperDataScRsp = 6554; + public static final int TakePictureScRspScRsp = 4118; + public static final int SetPersonalCardCsReq = 2837; + public static final int EvolveBuildShopAbilityUpCsReq = 7103; + public static final int ChenLingMoveEntityCsReq = 9616; + public static final int MatchThreeSetBirdPosScRsp = 7405; + public static final int RogueModifierSelectCellScRsp = 5314; + public static final int HeliobusUpgradeLevelScRsp = 5837; + public static final int MonopolyGuessChooseScRsp = 7002; + public static final int QuitBattleScNotify = 163; + public static final int ElfRestaurantUpgradeFacilityLevelCsReq = 2581; + public static final int EnterChallengeNextPhaseCsReq = 1800; + public static final int GetFriendBattleRecordDetailScRsp = 2912; + public static final int SetTrainWorldIdScRsp = 1447; + public static final int ComposeSelectedRelicCsReq = 600; + public static final int GetRelicBoxDataScRsp = 8970; + public static final int GetFriendAssistListScRsp = 2992; + public static final int GetTreasureDungeonActivityDataScRsp = 4401; + public static final int GetPlayerBoardDataScRsp = 2810; + public static final int TakeMailAttachmentScRsp = 898; + public static final int HeliobusSnsLikeCsReq = 5809; + public static final int GetLevelRewardGetListCsReq = 58; + public static final int CakeRaceStartPveScRsp = 9121; + public static final int FightGameStateCsReq = 1091; + public static final int TakeReturnExtraHcoinRewardCsReq = 4533; + public static final int GetAllLineupDataCsReq = 761; + public static final int GameGuessBuyScRsp = 7066; + public static final int GetPunkLordDataCsReq = 3238; + public static final int GridFightTrackTraitScRsp = 8718; + public static final int EnterSceneByServerScNotify = 1468; + public static final int DeleteFriendScRsp = 2937; + public static final int RelicSmartWearGetPlanCsReq = 8251; + public static final int GetTutorialScRsp = 1610; + public static final int BatchRankUpEquipmentScRsp = 541; + public static final int TravelBrochureGetDataScRsp = 6410; + public static final int GiveUpBoxingClubChallengeCsReq = 4209; + public static final int FinishCurTurnCsReq = 4339; + public static final int RogueMagicScepterDressInUnitScRsp = 7796; + public static final int GetFriendLoginInfoCsReq = 2966; + public static final int JoinBenefitActivityScRsp = 4888; + public static final int GetFriendListInfoScRsp = 2910; + public static final int RogueTournEnterScRsp = 6095; + public static final int GetQuestDataCsReq = 991; + public static final int SelectPhoneCaseCsReq = 5163; + public static final int PlayerReturnStartScNotify = 4591; + public static final int ChenLingUnlockGridCsReq = 9575; + public static final int SceneReviveAfterRebattleCsReq = 1489; + public static final int LeaveAetherDivideSceneCsReq = 4830; + public static final int MarkReadMailScRsp = 895; + public static final int RogueArcadeLeaveCsReq = 7657; + public static final int GetActivityElationDataScRsp = 9110; + public static final int SelectInclinationTextScRsp = 2126; + public static final int SetIsDisplayAvatarInfoScRsp = 2898; + public static final int LeaveChallengeCsReq = 1714; + public static final int GridFightFinishTutorialCsReq = 8428; + public static final int RelicReforgeScRsp = 588; + public static final int MusicRhythmStartLevelCsReq = 7574; + public static final int AiPamResponseFeedbackCommentCsReq = 9545; + public static final int ResetEraFlipperDataCsReq = 6553; + public static final int PlanetFesBuyLandCsReq = 8201; + public static final int MonopolyMoveScRsp = 7063; + public static final int GetQuestDataScRsp = 910; + public static final int BuyNpcStuffCsReq = 4394; + public static final int ChallengePeakGroupDataUpdateScNotify = 8901; + public static final int GetFriendRankingInfoCsReq = 1074; + public static final int MatchThreeGetDataScRsp = 7407; + public static final int GetTrackPhotoActivityDataCsReq = 7559; + public static final int QuickStartCocoonStageCsReq = 1314; + public static final int GetMarkChestCsReq = 8181; + public static final int RogueTournEnableSeasonTalentScRsp = 6021; + public static final int MusicRhythmFinishLevelScRsp = 7571; + public static final int ChessRogueCheatRollScRsp = 5522; + public static final int PlanetFesUpgradeSkillLevelCsReq = 8248; + public static final int SetFriendRemarkNameScRsp = 2958; + public static final int GetFriendListInfoCsReq = 2991; + public static final int RequestGetAuthKeyScRsp = 72; + public static final int IdleLiveGetDataCsReq = 9441; + public static final int SelectPhoneThemeScRsp = 5109; + public static final int DoGachaInRollShopScRsp = 6910; + public static final int StartChallengeScRsp = 1795; + public static final int LobbyGetInfoScRsp = 7366; + public static final int UpdateMovieRacingDataScRsp = 4200; + public static final int OfferingInfoScNotify = 6934; + public static final int FinishTutorialCsReq = 1663; + public static final int MatchThreeSetBirdPosCsReq = 7438; + public static final int HeliobusUpgradeLevelCsReq = 5874; + public static final int FinishFirstTalkByPerformanceNpcScRsp = 2137; + public static final int SceneUpdatePositionVersionNotify = 1401; + public static final int EndDrinkMakerSequenceScRsp = 6988; + public static final int SetPersonalCardScRsp = 2804; + public static final int GridFightGetArchiveCsReq = 8427; + public static final int ChessRogueSkipTeachingLevelScRsp = 5580; + public static final int MusicRhythmDataScRsp = 7588; + public static final int GetPlayerReturnInfoDataCsReq = 4563; + public static final int GetMultipleDropInfoCsReq = 4691; + public static final int SetAvatarPathCsReq = 366; + public static final int GetPhoneDataCsReq = 5191; + public static final int PlanetFesGetAvatarStatScRsp = 8232; + public static final int LobbyJoinCsReq = 7380; + public static final int PlayerHeartBeatScRsp = 77; + public static final int RaidCollectionDataScRsp = 6960; + public static final int GetDrinkMakerDataScRsp = 7000; + public static final int ChenLingActivatedPrivilegeScRsp = 9618; + public static final int ChenLingFinishShopCsReq = 9613; + public static final int MonopolyReRollRandomScRsp = 7032; + public static final int CocoonSweepScRsp = 1326; + public static final int MarkAvatarScRsp = 321; + public static final int GetTutorialCsReq = 1691; + public static final int CakeRaceStartPveCsReq = 9123; + public static final int GetArchiveDataScRsp = 2310; + public static final int FateShopRefreshGoodsScRsp = 5995; + public static final int GetSwordTrainingDataCsReq = 7457; + public static final int DiceCombatBuyShopGoodCsReq = 9290; + public static final int ExchangeRogueRewardKeyCsReq = 1812; + public static final int ReplaceLineupCsReq = 744; + public static final int RogueTournLeaveRogueCocoonSceneCsReq = 6012; + public static final int TakeMaterialSubmitActivityRewardScRsp = 2658; + public static final int GetFriendBattleRecordDetailCsReq = 2929; + public static final int GetAllRedDotDataCsReq = 5913; + public static final int StartTrialActivityCsReq = 2677; + public static final int ReStartChallengePeakCsReq = 8936; + public static final int ChimeraQuitEndlessByPromiseCsReq = 8171; + public static final int MonopolyGetRaffleTicketScRsp = 7068; + public static final int TarotBookFinishInteractionScRsp = 8151; + public static final int GetPlayerBoardDataCsReq = 2891; + public static final int FarmElementSweepScRsp = 1301; + public static final int GetRogueInfoScRsp = 1810; + public static final int RogueModifierSelectCellCsReq = 5395; + public static final int SetGrowthTargetAvatarCsReq = 365; + public static final int GetAssistListCsReq = 2928; + public static final int GetAetherDivideInfoScRsp = 4844; + public static final int GetCurAssistScRsp = 2917; + public static final int RankUpEquipmentScRsp = 526; + public static final int SellItemScRsp = 561; + public static final int ChallengeBossPhaseSettleNotify = 1796; + public static final int PlanetFesGetBusinessDayInfoCsReq = 8221; + public static final int ForceSyncGameStateFinishCSScRsp = 19; + public static final int PlanetFesSetCustomKeyValueCsReq = 8210; + public static final int FinishQuestScRsp = 939; + public static final int SelectChessRogueSubStoryScRsp = 5481; + public static final int CakeRaceGetDailyLikeScRsp = 9127; + public static final int SwitchHandStartCsReq = 8102; + public static final int ChangeLineupLeaderScRsp = 704; + public static final int GetBagScRsp = 510; + public static final int GetPunkLordMonsterDataScRsp = 3210; + public static final int ElfRestaurantFinishTradeOrderCsReq = 2559; + public static final int ElfRestaurantTakeVillagerRewardScRsp = 2598; + public static final int DeleteBlacklistCsReq = 2989; + public static final int GetSocialEventServerCacheCsReq = 7052; + public static final int GetLoginChatInfoCsReq = 3904; + public static final int QuitLineupCsReq = 709; + public static final int GetAvatarDataCsReq = 391; + public static final int GetBoxingClubInfoScRsp = 4210; + public static final int PlanetFesEnterNextBusinessDayCsReq = 8340; + public static final int ChenLingStartStageCsReq = 9600; + public static final int GetDataScRsp = 9577; + public static final int PlanetFesStartMiniGameCsReq = 8220; + public static final int ChooseBoxingClubResonanceScRsp = 4201; + public static final int GetAetherDivideChallengeInfoCsReq = 4833; + public static final int PlanetFesDealAvatarEventOptionItemCsReq = 8204; + public static final int TakePrestigeRewardScRsp = 4701; + public static final int EvolveBuildShopAbilityResetCsReq = 7115; + public static final int RelicReforgeConfirmScRsp = 590; + public static final int GetCurLineupDataScRsp = 795; + public static final int PrestigeLevelUpCsReq = 4707; + public static final int CakeRaceGetDataCsReq = 9122; + public static final int GetCurChallengeCsReq = 1726; + public static final int FateQueryCsReq = 5963; + public static final int SubmitMaterialSubmitActivityMaterialCsReq = 2633; + public static final int IdleLiveDoGachaCsReq = 9367; + public static final int SpaceZooDataScRsp = 6710; + public static final int PromoteAvatarScRsp = 398; + public static final int RougeTournRenameBuildRefCsReq = 6079; + public static final int MonopolyLikeScRsp = 7059; + public static final int ChangePropTimelineInfoScRsp = 1426; + public static final int GetRogueAeonInfoScRsp = 1876; + public static final int CakeRaceLoanScRsp = 9139; + public static final int StartPartialChallengeCsReq = 1733; + public static final int QuitTreasureDungeonScRsp = 4500; + public static final int EvolveBuildReRandomStageScRsp = 7118; + public static final int ChenLingRefreshPolicyScRsp = 9591; + public static final int ChenLingSelectCardCsReq = 9576; + public static final int PlayerReturnTakeCustomRelicScRsp = 4538; + public static final int GetRollShopInfoCsReq = 6901; + public static final int MuseumRandomEventQueryScRsp = 4307; + public static final int TeleportToMissionResetPointScRsp = 1221; + public static final int SearchPlayerScRsp = 2921; + public static final int GetCurSceneInfoCsReq = 1409; + public static final int GetAllServerPrefsDataCsReq = 6191; + public static final int GetRogueTalentInfoScRsp = 1845; + public static final int ChenLingUseHandCardCsReq = 9617; + public static final int ShopRefreshRequestCsReq = 9259; + public static final int MonopolyRollRandomCsReq = 7004; + public static final int TarotBookFinishStoryCsReq = 8154; + public static final int CakeRaceLikeFriendRankingInfoCsReq = 9129; + public static final int GetChallengeGroupStatisticsScRsp = 1732; + public static final int GetSaveRaidCsReq = 2236; + public static final int TakeCollectRewardScRsp = 4328; + public static final int ChessRogueEnterCellCsReq = 5415; + public static final int SetChallengePeakBossHardModeScRsp = 8945; + public static final int RogueGetGambleInfoCsReq = 5697; + public static final int ChallengeSettleNotify = 1709; + public static final int ClockParkQuitScriptScRsp = 7245; + public static final int RemoveStuffFromAreaCsReq = 4309; + public static final int SetAssistCsReq = 2973; + public static final int PlanetFesTakeQuestRewardCsReq = 8216; + public static final int GridFightUseConsumableCsReq = 8576; + public static final int EvolveBuildStartStageScRsp = 7138; + public static final int SpaceZooOpCatteryScRsp = 6798; + public static final int GetDailyInitItemCsReq = 7046; + public static final int PlanetFesDoGachaScRsp = 8236; + public static final int GetJackpotProgressScRsp = 7083; + public static final int SetPlayerInfoCsReq = 93; + public static final int PlanetFesChooseAvatarEventOptionScRsp = 8209; + public static final int CakeRaceGetDailyLikeCsReq = 9146; + public static final int ChessRogueConfirmRollCsReq = 5511; + public static final int GetRogueInfoCsReq = 1891; + public static final int GridFightEnterBattleStageCsReq = 8507; + public static final int ChenLingSelectPolicyScRsp = 9603; + public static final int ChooseBoxingClubStageOptionalBuffCsReq = 4204; + public static final int EvolveBuildShopAbilityDownScRsp = 7131; + public static final int LikeRoomDIYScRsp = 9697; + public static final int GetUpdatedArchiveDataScRsp = 2395; + public static final int ElfRestaurantUpgradeEmployeeLevelScRsp = 2566; + public static final int MonopolyReRollRandomCsReq = 7072; + public static final int TakePromotionRewardScRsp = 307; + public static final int CycleScoreRewardGetDataCsReq = 4166; + public static final int GetFirstTalkNpcScRsp = 2118; + public static final int SwordTrainingRestoreGameCsReq = 7489; + public static final int GameplayCounterRecoverCsReq = 1440; + public static final int ChenLingClientStatusChangeCsNotifyCsReq = 9587; + public static final int PromoteEquipmentCsReq = 594; + public static final int GridFightTrackTraitCsReq = 8411; + public static final int EnterSectionScRsp = 1421; + public static final int RogueArcadeRestartScRsp = 7698; + public static final int GetChessRogueStoryInfoCsReq = 5523; + public static final int RogueGetGambleInfoScRsp = 5675; + public static final int QuitRogueScRsp = 1808; + public static final int UnlockTutorialGuideCsReq = 1609; + public static final int PlayerLoginFinishCsReq = 41; + public static final int ChessRogueEnterNextLayerCsReq = 5501; + public static final int SceneGroupRefreshScNotify = 1455; + public static final int RogueDoGambleScRsp = 5676; + public static final int ChenLingSellHandCardCsReq = 9572; + public static final int TakeCityShopRewardCsReq = 1514; + public static final int LobbyKickOutCsReq = 7397; + public static final int ClockParkHandleWaitPlaceDiceOperationScRsp = 7244; + public static final int ForceSyncGameStateFinishCSCsReq = 50; + public static final int FinishCurTurnScRsp = 4301; + public static final int RogueWorkbenchGetInfoCsReq = 5670; + public static final int SceneCastSkillCostMpCsReq = 1437; + public static final int MonopolyGiveUpCurContentCsReq = 7089; + public static final int GetFeverTimeActivityDataCsReq = 7157; + public static final int GridFightSummonProjectionScRsp = 8514; + public static final int TakeOffAvatarSkinScRsp = 389; + public static final int IdleLiveFinishNodeBattleQuitScRsp = 9448; + public static final int ClockParkUnlockTalentCsReq = 7235; + public static final int ChenLingMoveEntityScRsp = 9610; + public static final int GetChallengeScRsp = 1710; + public static final int GetGachaInfoScRsp = 1910; + public static final int DiceCombatMainPageRollDiceCsReq = 9261; + public static final int ChessRogueEnterCsReq = 5514; + public static final int HeliobusSnsCommentScRsp = 5826; + public static final int SelectPhoneThemeCsReq = 5118; + public static final int SetCurInteractEntityScRsp = 1453; + public static final int TakeApRewardCsReq = 3391; + public static final int GetMissionDataScRsp = 1210; + public static final int StartMatchScRsp = 7307; + public static final int StartAetherDivideSceneBattleScRsp = 4838; + public static final int GridFightBackToPrepareCsReq = 8800; + public static final int IdleLiveManualFinishQuestionCsReq = 9427; + public static final int GetMainMissionCustomValueScRsp = 1217; + public static final int ClickMbtiReportScRsp = 7087; + public static final int ChenLingBuyShopItemScRsp = 9574; + public static final int PlanetFesBonusEventInteractScRsp = 8214; + public static final int SelectPamSkinCsReq = 8122; + public static final int UpdateTrackMainMissionCsReq = 1254; + public static final int GetAiPamNextQuestionCsReq = 9538; + public static final int FateShopLeaveScRsp = 5966; + public static final int SyncEntityBuffChangeListScNotify = 1474; + public static final int FinishFirstTalkNpcCsReq = 2109; + public static final int ChenLingQuitStageScRsp = 9608; + public static final int HeliobusSnsLikeScRsp = 5898; + public static final int EnterRogueMapRoomCsReq = 1820; + public static final int GetFantasticStoryActivityDataCsReq = 4991; + public static final int SpaceZooDataCsReq = 6791; + public static final int GetRogueBuffEnhanceInfoScScRsp = 5546; + public static final int GetPamSkinDataCsReq = 8121; + public static final int ElfRestaurantUpgradeFacilityLevelScRsp = 2571; + public static final int PrepareRogueAdventureRoomCsReq = 5610; + public static final int PlanetFesAvatarLevelUpCsReq = 8203; + public static final int ExpUpEquipmentScRsp = 501; + public static final int SetForbidOtherApplyFriendScRsp = 2930; + public static final int SetDisplayAvatarScRsp = 2818; + public static final int IdleLiveTakeAssistRewardScRsp = 9353; + public static final int ChessRogueRollDiceCsReq = 5587; + public static final int GetTutorialGuideCsReq = 1694; + public static final int GetMbtiReportRewardCsReq = 7040; + public static final int FateTakeExpRewardCsReq = 5983; + public static final int GetMarkChestScRsp = 8200; + public static final int EvolveBuildGiveupCsReq = 7105; + public static final int DelMailCsReq = 814; + public static final int UnlockPhoneCaseScNotify = 5139; + public static final int GetServerPrefsDataScRsp = 6195; + public static final int TakePunkLordPointRewardCsReq = 3274; + public static final int QuitBattleScRsp = 195; + public static final int EnterMapRotationRegionCsReq = 6891; + public static final int ElfRestaurantBuyShopItemCsReq = 2558; + public static final int PlayerLoginCsReq = 91; + public static final int GridFightResetPermanentTalentScRsp = 8425; + public static final int GetFriendLoginInfoScRsp = 2905; + public static final int RogueTournResetPermanentTalentCsReq = 6027; + public static final int LobbyQuitCsReq = 7395; + public static final int RelicReforgeCsReq = 506; + public static final int GetTrialActivityDataCsReq = 2692; + public static final int FinishRogueCommonDialogueScRsp = 5690; + public static final int DiceCombatFinishPveStageCsReq = 9262; + public static final int QuickStartFarmElementScRsp = 1398; + public static final int GetActivityScheduleConfigScRsp = 2618; + public static final int GetRogueHandbookDataScRsp = 5679; + public static final int GetHeartDialInfoCsReq = 6391; + public static final int GetRelicFilterPlanScRsp = 503; + public static final int GridFightStartGamePlayCsReq = 8519; + public static final int QuickStartCocoonStageScRsp = 1318; + public static final int DiscardRelicScRsp = 566; + public static final int ChessRogueNousGetRogueTalentInfoScRsp = 5422; + public static final int JoinBenefitActivityCsReq = 4885; + public static final int RelicSmartWearGetPlanScRsp = 8270; + public static final int AiPamResponseFeedbackScRsp = 9518; + public static final int GetRndOptionScRsp = 3410; + public static final int SelectPhoneCaseScRsp = 5126; + public static final int RevcMsgScNotify = 3994; + public static final int GameGuessBuyCsReq = 7049; + public static final int GetMissionStatusScRsp = 1207; + public static final int SelectRogueCommonDialogueOptionScRsp = 5688; + public static final int ChessRogueQuitScRsp = 5498; + public static final int PlanetFesBuyLandScRsp = 8247; + public static final int GetDiceCombatSystemDataCsReq = 9267; + public static final int TakeReturnExtraHcoinRewardScRsp = 4561; + public static final int GetSummonActivityDataScRsp = 7570; + public static final int GetLevelRewardGetListScRsp = 44; + public static final int ActivateFarmElementScRsp = 1430; + public static final int PlanetFesCollectAllIncomeCsReq = 8244; + public static final int StartAlleyEventScRsp = 4798; + public static final int GetWolfBroShootingDataCsReq = 4189; + public static final int GetEnteredSceneCsReq = 1476; + public static final int LobbyJoinScRsp = 7377; + public static final int MonopolyUpgradeAssetCsReq = 7044; + public static final int GridFightGetArchiveScRsp = 8455; + public static final int GetAllLineupDataScRsp = 707; + public static final int GetDiceCombatShopDataScRsp = 9277; + public static final int UpdateAiPamSettingsScRsp = 9531; + public static final int DestroyItemCsReq = 573; + public static final int GetChessRogueNousStoryInfoScRsp = 5412; + public static final int GetDrinkMakerDataCsReq = 6981; + public static final int TakeFightActivityRewardScRsp = 3609; + public static final int SwordTrainingGiveUpGameCsReq = 7465; + public static final int FinishChessRogueSubStoryCsReq = 5502; + public static final int SwordTrainingStoryConfirmCsReq = 7471; + public static final int DailyFirstEnterMonopolyActivityScRsp = 7037; + public static final int MonopolySelectOptionCsReq = 7026; + public static final int GetKilledPunkLordMonsterDataCsReq = 3300; + public static final int GetVideoVersionKeyCsReq = 70; + public static final int AddBlacklistScRsp = 2972; + public static final int MonopolyCheatDiceScRsp = 7021; + public static final int IdleLiveFinishFinalActCsReq = 9389; + public static final int EndDrinkMakerSequenceCsReq = 6995; + public static final int TakeLoginActivityRewardCsReq = 2694; + public static final int GridFightFavourArchiveScRsp = 8585; + public static final int DestroyItemScRsp = 553; + public static final int IdleLiveStartNodeScRsp = 9445; + public static final int PlayerReturnTakeRelicScRsp = 4574; + public static final int TakeRogueEndlessActivityAllBonusRewardScRsp = 6003; + public static final int EvolveBuildQueryInfoCsReq = 7113; + public static final int ChenLingActivatedPrivilegeCsReq = 9607; + public static final int MuseumRandomEventSelectScRsp = 4344; + public static final int PlanetFesGetAvatarStatCsReq = 8211; + public static final int ExpUpRelicCsReq = 504; + public static final int GridFightStartGamePlayScRsp = 8540; + public static final int IdleLiveTakeContentRewardScRsp = 9370; + public static final int GetSceneMapInfoCsReq = 1460; + public static final int SummonPetScRsp = 7614; + public static final int ComposeItemScRsp = 537; + public static final int PlanetFesUpgradeFesLevelCsReq = 8241; + public static final int RogueTournGetSettleInfoCsReq = 6092; + public static final int GetMapRotationDataScRsp = 6801; + public static final int GameplayCounterCountDownCsReq = 1486; + public static final int ReEnterLastElementStageCsReq = 1452; + public static final int UnlockTutorialCsReq = 1614; + public static final int GetLevelRewardScRsp = 89; + public static final int AvatarExpUpScRsp = 395; + public static final int GetReplayTokenScRsp = 3510; + public static final int GetRogueCommonDialogueDataScRsp = 5616; + public static final int TriggerAiPamSpeakScRsp = 9550; + public static final int GetChatFriendHistoryScRsp = 3998; + public static final int GetMuseumInfoCsReq = 4391; + public static final int MonopolyBuyGoodsScRsp = 7058; + public static final int SetTurnFoodSwitchCsReq = 520; + public static final int GetChatEmojiListCsReq = 3963; + public static final int ClockParkGetOngoingScriptInfoScRsp = 7219; + public static final int DressAvatarSkinScRsp = 344; + public static final int FateShopSellBuffScRsp = 5994; + public static final int GetAssistListScRsp = 2965; + public static final int AetherDivideTakeChallengeRewardScRsp = 4840; + public static final int SetClientRaidTargetCountCsReq = 2218; + public static final int GetMovieRacingDataCsReq = 4107; + public static final int GetTrainVisitorRegisterScRsp = 3798; + public static final int PlayerReturnTakeCustomRelicCsReq = 4504; + public static final int PlanetFesStartMiniGameScRsp = 8222; + public static final int InteractTreasureDungeonGridCsReq = 4433; + public static final int GetBattleCollegeDataCsReq = 5791; + public static final int SetSignatureScRsp = 2839; + public static final int EquipAetherDividePassiveSkillScRsp = 4803; + public static final int PreCheckEnterRoomCsReq = 9767; + public static final int GetRechargeGiftInfoCsReq = 8361; + public static final int SetForbidOtherApplyFriendCsReq = 2911; + public static final int GetStarFightDataScRsp = 7170; + public static final int RogueTournGetCurRogueCocoonInfoScRsp = 6013; + public static final int RelicPresetGetPlanScRsp = 9860; + public static final int RefreshTriggerByClientScRsp = 1445; + public static final int GetArchiveDataCsReq = 2391; + public static final int ActivityDataRequestScRsp = 9570; + public static final int GetPlayerDetailInfoCsReq = 2994; + public static final int GetShopListCsReq = 1591; + public static final int SwordTrainingExamResultConfirmScRsp = 7490; + public static final int IdleLiveUpgradeSlotCsReq = 9392; + public static final int RogueTournUseSuperRewardKeyScRsp = 6087; + public static final int GetUnreleasedBlockInfoScRsp = 4149; + public static final int DressAvatarScRsp = 326; + public static final int UpgradeAreaCsReq = 4374; + public static final int ExchangeGachaCeilingCsReq = 1909; + public static final int GetPreAvatarGrowthInfoCsReq = 308; + public static final int PlanetFesChangeCardPieceApplyPermissionScRsp = 8328; + public static final int ChessRogueSkipTeachingLevelCsReq = 5416; + public static final int SubmitOrigamiItemScRsp = 4138; + public static final int GetGachaCeilingCsReq = 1914; + public static final int SyncClientResVersionScRsp = 198; + public static final int GetPetDataCsReq = 7601; + public static final int RogueDoGambleCsReq = 5648; + public static final int IdleLiveTakeTaskRewardCsReq = 9415; + public static final int PlayBackGroundMusicScRsp = 3195; + public static final int RogueTournGetMiscRealTimeDataCsReq = 6022; + public static final int ResetMapRotationRegionCsReq = 6874; + public static final int IdleLiveDoGachaScRsp = 9401; + public static final int EvolveBuildShopAbilityUpScRsp = 7150; + public static final int CakeRaceGetDataScRsp = 9138; + public static final int StartBattleCollegeCsReq = 5795; + public static final int GetCurChallengeScRsp = 1739; + public static final int GetTreasureDungeonActivityDataCsReq = 4439; + public static final int GetMainMissionCustomValueCsReq = 1208; + public static final int GetEraFlipperDataCsReq = 6551; + public static final int GridFightBuyExpScRsp = 8509; + public static final int GridFightResumeGamePlayScRsp = 8753; + public static final int GetAiPamChatHistoryCsReq = 9527; + public static final int GetPhoneDataScRsp = 5110; + public static final int EnhanceRogueBuffCsReq = 5439; + public static final int UpgradeAreaStatCsReq = 4304; + public static final int GetNpcTakenRewardScRsp = 2110; + public static final int RequestGetAuthKeyCsReq = 38; + public static final int TarotBookFinishStoryScRsp = 8157; + public static final int HandleFriendScRsp = 2939; + public static final int TakeRewardCsReq = 2670; + public static final int SwordTrainingLearnSkillCsReq = 7453; + public static final int RogueArcadeGetInfoScRsp = 7677; + public static final int FateQueryScRsp = 5957; + public static final int QuitLineupScRsp = 798; + public static final int EnterChessRogueAeonRoomCsReq = 5545; + public static final int GetAllActivityRewardCountDataCsReq = 9111; + public static final int ChimeraDuelGetFriendListScRsp = 9232; + public static final int SwordTrainingResumeGameCsReq = 7462; + public static final int GetJukeboxDataScRsp = 3110; + public static final int RogueTournDeleteArchiveCsReq = 6051; + public static final int TakeRechargeGiftRewardScRsp = 8370; + public static final int GridFightUseForgeCsReq = 8431; + public static final int GetAiPamChatInfoScRsp = 9502; + public static final int PlayerReturnTakePointRewardScRsp = 4518; + public static final int RogueTournSettleScRsp = 6096; + public static final int JoinLineupScRsp = 718; + public static final int GetCurBattleInfoCsReq = 114; + public static final int ChooseBoxingClubResonanceCsReq = 4239; + public static final int FightGiveUpCsReq = 1014; + public static final int RogueMagicEnterLayerScRsp = 7701; + public static final int PlanetFesGetBusinessDayInfoScRsp = 8249; + public static final int TrialBackGroundMusicScRsp = 3198; + public static final int QuitRogueCsReq = 1853; + public static final int ComposeSelectedRelicScRsp = 589; + public static final int MonopolyConfirmRandomCsReq = 7033; + public static final int ChessRogueSelectCellCsReq = 5533; + public static final int ChenLingFinishPrepareCsReq = 9588; + public static final int GetSocialEventServerCacheScRsp = 7090; + public static final int SpaceZooOpCatteryCsReq = 6709; + public static final int EvolveBuildSkipTeachLevelCsReq = 7133; + public static final int AddMultiPathAvatarScNotify = 328; + public static final int IdleLiveGetStatisticScRsp = 9371; + public static final int ContentPackageGetDataScRsp = 7507; + public static final int RogueMagicEnterRoomCsReq = 7763; + public static final int BuyBpLevelCsReq = 3018; + public static final int GetBenefitActivityInfoScRsp = 4857; + public static final int SetIsDisplayAvatarInfoCsReq = 2809; + public static final int IdleLiveGetFriendAssistListCsReq = 9380; + public static final int EvolveBuildShopAbilityDownCsReq = 7116; + public static final int SwapLineupCsReq = 763; + public static final int SetChallengePeakBossHardModeCsReq = 8918; + public static final int DoGachaCsReq = 1994; + public static final int ChenLingUseHandCardScRsp = 9589; + public static final int TravelBrochurePageResetScRsp = 6461; + public static final int DeleteSummonUnitScRsp = 1423; + public static final int RogueTournGetPermanentTalentInfoScRsp = 6049; + public static final int MonopolyGetRaffleTicketCsReq = 7070; + public static final int MuseumRandomEventQueryCsReq = 4361; + public static final int EnterRogueCsReq = 1814; + public static final int RogueTournRenameArchiveScRsp = 6085; + public static final int WaitGetRogueTournBuildRefShareCodeDataScRsp = 6040; + public static final int GetSecretKeyInfoScRsp = 69; + public static final int GetHandbookPromiseCsReq = 9131; + public static final int StartPartialChallengeScRsp = 1761; + public static final int MarkChatEmojiCsReq = 3939; + public static final int ShareCsReq = 4191; + public static final int GridFightLockShopCsReq = 8775; + public static final int OpenTreasureDungeonGridCsReq = 4404; + public static final int SwordTrainingDialogueSelectOptionCsReq = 7451; + public static final int SceneEntityTeleportScRsp = 1441; + public static final int UnlockSkilltreeScRsp = 318; + public static final int GetAllRedDotDataScRsp = 5907; + public static final int InteractPropCsReq = 1494; + public static final int AiPamResponseFeedbackCommentScRsp = 9536; + public static final int TakeActiveActivityRewardScRsp = 9560; + public static final int RelicSmartWearDeletePlanScRsp = 8267; + public static final int SubmitMaterialSubmitActivityMaterialScRsp = 2661; + public static final int SendMsgScRsp = 3910; + public static final int GridFightUpdateGameRefCsReq = 8782; + public static final int GridFightResetSeasonTalentScRsp = 8536; + public static final int PromoteAvatarCsReq = 309; + public static final int GetMonopolyInfoScRsp = 7010; + public static final int CancelMatchScRsp = 7327; + public static final int GetDailyActiveInfoScRsp = 3395; + public static final int TravelBrochureSetPageDescStatusCsReq = 6472; + public static final int ExchangeStaminaCsReq = 37; + public static final int TarotBookFinishInteractionCsReq = 8159; + public static final int FinishPlotScRsp = 1110; + public static final int LeaveChallengePeakCsReq = 8935; + public static final int PrestigeLevelUpScRsp = 4758; + public static final int SetStuffToAreaScRsp = 4318; + public static final int LobbyModifyPlayerInfoCsReq = 7355; + public static final int PlanetFesBusinessDayRefreshEventCsReq = 8215; + public static final int SetChallengePeakMobLineupAvatarCsReq = 8931; + public static final int SetAvatarPathScRsp = 305; + public static final int RogueMagicEnterScRsp = 7795; + public static final int PlanetFesGetFriendCardPieceScRsp = 8317; + public static final int PlanetFesBingoGameFlipCardScRsp = 8228; + public static final int SceneEnterStageCsReq = 1444; + public static final int MusicRhythmDataCsReq = 7572; + public static final int GetAetherDivideChallengeInfoScRsp = 4809; + public static final int GetLoginChatInfoScRsp = 3938; + public static final int GetRogueAdventureRoomInfoScRsp = 5604; + public static final int FateShopBuyGoodsCsReq = 5997; + public static final int ReserveStaminaExchangeCsReq = 13; + public static final int FinishAeonDialogueGroupScRsp = 1834; + public static final int TakeOffEquipmentScRsp = 301; + public static final int LeaveRaidScRsp = 2227; + public static final int IdleLiveStartNodeBattleScRsp = 9368; + public static final int RelicPresetUpdatePlanScRsp = 9857; + public static final int GetLocalLegendDataCsReq = 6576; + public static final int UseTreasureDungeonItemCsReq = 4407; + public static final int GetPlayerReturnInfoDataScRsp = 4526; + public static final int LeaveRogueCsReq = 1809; + public static final int ConfirmChallengePeakSettleScRsp = 8926; + public static final int ElfRestaurantClientStatusCsReq = 2589; + public static final int GetRogueEndlessActivityDataCsReq = 6009; + public static final int ResetEraFlipperDataScRsp = 6558; + public static final int SpaceZooTakeScRsp = 6704; + public static final int DiceCombatUpgradeAvatarScRsp = 9276; + public static final int MusicRhythmUnlockSongSfxScNotify = 7595; + public static final int MatchThreeGetDataCsReq = 7413; + public static final int ChenLingStartStageScRsp = 9597; + public static final int SwitchHandStartScRsp = 8110; + public static final int GridFightRecycleRoleCsReq = 8643; + public static final int RogueTournEnterRoomCsReq = 6020; + public static final int GetAvatarDataScRsp = 310; + public static final int GridFightSetMonsterHpRatioScRsp = 8473; + public static final int StartAetherDivideChallengeBattleCsReq = 4805; + public static final int SelectChatBubbleScRsp = 5195; + public static final int HeliobusActivityDataCsReq = 5891; + public static final int GiveUpChessRogueCsReq = 5429; + public static final int TakeRollShopRewardCsReq = 6915; + public static final int TakeEventRewardScRsp = 4725; + public static final int TrialActivityDataChangeScNotify = 2678; + public static final int ChimeraGetDataCsReq = 8161; + public static final int GetMbtiReportCsReq = 7012; + public static final int ChessRogueRollDiceScRsp = 5473; + public static final int ActivateFarmElementCsReq = 1411; + public static final int GetCrossInfoScRsp = 7305; + public static final int LobbyQuitScRsp = 7386; + public static final int TakeAllApRewardCsReq = 3318; + public static final int GetPreAvatarActivityListScRsp = 393; + public static final int RestartChallengePhaseCsReq = 1758; + public static final int UseItemScRsp = 598; + public static final int SwordTrainingDialogueSelectOptionScRsp = 7497; + public static final int IdleLiveGetFriendAssistListScRsp = 9421; + public static final int SetAvatarEnhancedIdCsReq = 354; + public static final int InteractPropScRsp = 1495; + public static final int ChimeraDuelGetFriendListCsReq = 9230; + public static final int TakeChallengeCumulativeRewardScRsp = 1738; + public static final int UnlockPhoneThemeScNotify = 5198; + public static final int RogueTournGetSettleInfoScRsp = 6034; + public static final int RecoverAllLineupCsReq = 1408; + public static final int GetRelicFilterPlanCsReq = 536; + public static final int HeliobusSnsPostScRsp = 5818; + public static final int SetNicknameCsReq = 61; + public static final int PlanetFesClientStatusCsReq = 8219; + public static final int PlanetFesAvatarLevelUpScRsp = 8250; + public static final int GetActivityHotDataCsReq = 9119; + public static final int DailyFirstEnterMonopolyActivityCsReq = 7074; + public static final int SwitchHandFinishScRsp = 8108; + public static final int FinishChessRogueSubStoryScRsp = 5515; + public static final int SwordTrainingStoryConfirmScRsp = 7499; + public static final int IdleLiveTakeQuestEquipCsReq = 9374; + public static final int QuitBattleCsReq = 194; + public static final int FinishFirstTalkNpcScRsp = 2198; + public static final int EvolveBuildQueryInfoScRsp = 7107; + public static final int ChessRogueEnterScRsp = 5459; + public static final int MonopolyCheatDiceCsReq = 7057; + public static final int UpdateServerPrefsDataCsReq = 6114; + public static final int GetFeverTimeActivityDataScRsp = 7155; + public static final int GetStoryLineInfoCsReq = 6291; + public static final int GridFightQuitSettleCsReq = 8480; + public static final int ReturnLastTownScRsp = 1458; + public static final int FinishTutorialGuideCsReq = 1639; + public static final int SpaceZooExchangeItemScRsp = 6774; + public static final int SetChallengePeakMobLineupAvatarScRsp = 8921; + public static final int ElfRestaurantBuyFieldScRsp = 2551; + public static final int GetTelevisionActivityDataCsReq = 6961; + public static final int DiceCombatUpgradeAvatarCsReq = 9289; + public static final int EnterSceneCsReq = 1462; + public static final int SetClientPausedCsReq = 1493; + public static final int LeaveChallengePeakScRsp = 8938; + public static final int PlayerLogoutCsReq = 94; + public static final int PlanetFesUpgradeFesLevelScRsp = 8242; + public static final int CancelMatchCsReq = 7330; + public static final int FinishAeonDialogueGroupCsReq = 1846; + public static final int MonopolyRollDiceScRsp = 7009; + public static final int DifficultyAdjustmentGetDataCsReq = 4128; + public static final int PlayerReturnTakeRelicCsReq = 4501; + public static final int TrainVisitorBehaviorFinishScRsp = 3710; + public static final int LockEquipmentCsReq = 514; + public static final int DeactivateFarmElementScRsp = 1405; + public static final int HeliobusSnsReadCsReq = 5894; + public static final int RogueTournUseSuperRewardKeyCsReq = 6025; + public static final int SetGameplayBirthdayScRsp = 24; + public static final int GroupStateChangeScNotify = 1448; + public static final int LeaveTrialActivityScRsp = 2688; + public static final int PlanetFesGetExtraCardPieceInfoScRsp = 8297; + public static final int SetSignatureCsReq = 2826; + public static final int WorldUnlockCsReq = 7626; + public static final int SetLanguageScRsp = 28; + public static final int EquipAetherDividePassiveSkillCsReq = 4836; + public static final int TravelBrochureSelectMessageCsReq = 6414; + public static final int GetBigDataAllRecommendCsReq = 2447; + public static final int PlayerGetFightGateScRsp = 1095; + public static final int PlanetFesGetOfferedCardPieceScRsp = 8334; + public static final int GetAllSaveRaidDataCsReq = 2250; + public static final int PlanetFesChangeCardPieceApplyPermissionCsReq = 8325; + public static final int SetGenderScRsp = 20; + public static final int PlanetFesDoGachaCsReq = 8245; + public static final int GetBasicInfoScRsp = 36; + public static final int GetFriendDevelopmentInfoScRsp = 2916; + public static final int TakeCityShopRewardScRsp = 1518; + public static final int RebattleByClientCsNotifyCsReq = 137; + public static final int SceneEntityMoveScNotify = 1439; + public static final int LeaveMapRotationRegionCsReq = 6863; + public static final int InitRequestScRsp = 8207; + public static final int GridFightUseForgeScRsp = 8494; + public static final int ExchangeHcoinScRsp = 544; + public static final int RogueMagicLeaveScRsp = 7718; + public static final int GridFightUseConsumableScRsp = 8696; + public static final int DressAvatarSkinCsReq = 358; + public static final int EvolveBuildGiveupScRsp = 7101; + public static final int GetReplayTokenCsReq = 3591; + public static final int TriggerAiPamSpeakCsReq = 9503; + public static final int PromoteEquipmentScRsp = 595; + public static final int RankUpAvatarScRsp = 304; + public static final int GetMovieRacingDataScRsp = 4158; + public static final int SceneEntityMoveScRsp = 1410; + public static final int GameplayCounterUpdateScNotify = 1485; + public static final int UpdateGroupPropertyScRsp = 1464; + public static final int ElfRestaurantUpgradeEmployeeLevelCsReq = 2600; + public static final int GetFriendApplyListInfoCsReq = 2914; + public static final int GetJackpotProgressCsReq = 7031; + public static final int GetDailyReportScRsp = 7075; + public static final int RogueMagicEnableTalentScRsp = 7725; + public static final int SwitchLineupIndexCsReq = 738; + public static final int PlayerGetTokenScRsp = 18; + public static final int GetQuestRecordScRsp = 998; + public static final int FateShopLockGoodsCsReq = 5986; + public static final int ChenLingGameBoyChangeSettingsCsReq = 9055; + public static final int GridFightEnablePermanentTalentScRsp = 8438; + public static final int UnlockAvatarPathCsReq = 330; + public static final int PlayerReturnTakeRewardScRsp = 4598; + public static final int ComposeItemCsReq = 574; + public static final int RogueMagicQueryCsReq = 7758; + public static final int SwordTrainingMarkEndingViewedScRsp = 7461; + public static final int GetGachaInfoCsReq = 1991; + public static final int GetAiPamChatHistoryScRsp = 9535; + public static final int PVEBattleResultCsReq = 191; + public static final int TakeLoginActivityRewardScRsp = 2695; + public static final int GridFightSummonProjectionCsReq = 8552; + public static final int ChenLingRefreshCardCsReq = 9620; + public static final int MonopolyGiveUpCurContentScRsp = 7096; + public static final int TakeOffRelicCsReq = 332; + public static final int GetTutorialGuideScRsp = 1695; + public static final int SceneCastSkillCostMpScRsp = 1404; + public static final int EntityBindPropScRsp = 1420; + public static final int MonopolyConfirmRandomScRsp = 7061; + public static final int QuitTrackPhotoStageCsReq = 7552; + public static final int TravelBrochureSetCustomValueScRsp = 6438; + public static final int IdleLiveGetFriendDungeonRankingInfosCsReq = 9355; + public static final int ScenePlaneEventScNotify = 1482; + public static final int PlayerReturnTakePointRewardCsReq = 4514; + public static final int RogueTournEnterLayerCsReq = 6018; + public static final int GridFightEquipDressScRsp = 8661; + public static final int LobbyKickOutScRsp = 7369; + public static final int TakeFightActivityRewardCsReq = 3618; + public static final int DiceCombatMainPageRollDiceScRsp = 9282; + public static final int RogueTournGetAllArchiveCsReq = 6078; + public static final int GetTrainPartyDataScRsp = 8010; + public static final int UpdateTrackMainMissionScRsp = 1279; + public static final int PlayerGetTokenCsReq = 14; + public static final int SwitchAetherDivideLineUpSlotScRsp = 4821; + public static final int ClockParkHandleWaitPlaceDiceOperationCsReq = 7202; + public static final int EnterEraFlipperDataCsReq = 6560; + public static final int TarotBookMultiOpenPackAndUnlockStoryScRsp = 8153; + public static final int GetPreAvatarGrowthInfoScRsp = 317; + public static final int FateShopLockGoodsScRsp = 5953; + public static final int ChallengeLineupNotify = 1701; + public static final int GetAssistHistoryScRsp = 2925; + public static final int MonopolyGameBingoFlipCardCsReq = 7051; + public static final int GridFightEnableSeasonTalentCsReq = 8496; + public static final int StartBattleCollegeScRsp = 5714; + public static final int ChangeScriptEmotionScRsp = 6395; + public static final int EvolveBuildSkipTeachLevelScRsp = 7109; + public static final int GridFightLockShopScRsp = 8686; + public static final int ElfRestaurantBuyShopItemScRsp = 2583; + public static final int MarkChatEmojiScRsp = 3901; + public static final int GetAllSaveRaidDataScRsp = 2216; + public static final int MusicRhythmUnlockSongNotify = 7585; + public static final int ChessRogueSelectCellScRsp = 5436; + public static final int RogueTournGetPermanentTalentInfoCsReq = 6090; + public static final int IdleLiveGetPendingEquipCsReq = 9383; + public static final int IdleLiveGetStatisticCsReq = 9407; + public static final int BuyBpLevelScRsp = 3009; + public static final int GetMonopolyInfoCsReq = 7091; + public static final int MarkChestChangedScNotify = 8195; + public static final int GridFightUpdateEliteBranchSelectCsReq = 8469; + public static final int GetQuestRecordCsReq = 909; + public static final int EnterRogueScRsp = 1818; + public static final int LastSpringRefreshTimeNotify = 1461; + public static final int LogisticsDetonateStarSkiffScRsp = 4779; + public static final int AvatarPathChangedNotify = 311; + public static final int PlanetFesDeliverPamCargoCsReq = 8226; + public static final int GetDataScRspCsReq = 4179; + public static final int TakeOffEquipmentCsReq = 339; + public static final int UpdateGroupPropertyCsReq = 1422; + public static final int GridFightQuitLeaveGamePlayCsReq = 8458; + public static final int GridFightResetSeasonTalentCsReq = 8691; + public static final int SendMsgCsReq = 3991; + public static final int SwitchLineupIndexScRsp = 772; + public static final int SetHeadIconScRsp = 2895; + public static final int UpdateMainMissionCustomValueCsReq = 1293; + public static final int DailyFirstMeetPamScRsp = 3495; + public static final int GridFightRefreshShopCsReq = 8660; + public static final int RechargeSuccNotify = 507; + public static final int TarotBookGetDataScRsp = 8160; + public static final int PlanetFesLargeBonusInteractScRsp = 8293; + public static final int AiPamResponseFeedbackCsReq = 9544; + public static final int TravelBrochureUpdatePasterPosScRsp = 6401; + public static final int UnlockTeleportNotify = 1484; + public static final int GetAiPamChatInfoCsReq = 9519; + public static final int MonopolyTakeRaffleTicketRewardScRsp = 7060; + public static final int IdleLiveCollectIncomeCsReq = 9422; + public static final int ExchangeHcoinCsReq = 558; + public static final int TarotBookOpenPackScRsp = 8150; + public static final int IdleLiveUpdateLiveRoomTitleScRsp = 9362; + public static final int GetSaveLogisticsMapCsReq = 4765; + public static final int PVEBattleResultScRsp = 110; + public static final int SwordTrainingMarkEndingViewedCsReq = 7492; + public static final int FinishPlotCsReq = 1191; + public static final int SubmitOrigamiItemCsReq = 4104; + public static final int RogueWorkbenchGetInfoScRsp = 5668; + public static final int LobbyModifyPlayerInfoScRsp = 7351; + public static final int MonopolyGameBingoFlipCardScRsp = 7025; + public static final int GetTelevisionActivityDataScRsp = 6980; + public static final int GroupStateChangeScRsp = 1475; + public static final int GetTrainPartyDataCsReq = 8091; + public static final int PlayerKickOutScNotify = 63; + public static final int SyncClientResVersionCsReq = 109; + public static final int RogueTournGetMiscRealTimeDataScRsp = 6081; + public static final int GetMarkItemListCsReq = 508; + public static final int IdleLiveFinishNodeBattleQuitCsReq = 9359; + public static final int GridFightBackToPrepareScRsp = 8739; + public static final int GetUnreleasedBlockInfoCsReq = 4102; + public static final int GridFightQuitSettleScRsp = 8755; + public static final int EnterTrialActivityStageScRsp = 2659; + public static final int GetSummonActivityDataCsReq = 7569; + public static final int TarotBookMultiOpenPackAndUnlockStoryCsReq = 8149; + public static final int RogueMagicQueryScRsp = 7744; + public static final int GridFightEnableSeasonTalentScRsp = 8712; + public static final int GetDailyActiveInfoCsReq = 3394; + public static final int SpaceZooExchangeItemCsReq = 6701; + public static final int RogueTournReEnterRogueCocoonStageCsReq = 6070; + public static final int GridFightResumeGamePlayCsReq = 8752; + public static final int ChessRogueReRollDiceCsReq = 5575; + public static final int ExtraLineupDestroyNotify = 789; + public static final int EndRoundShopStageRequestCsReq = 9257; + public static final int GetPrivateChatHistoryCsReq = 3914; + public static final int PlayerReturnTakeRewardCsReq = 4509; + public static final int RankUpAvatarCsReq = 337; + public static final int GameplayCounterCountDownScRsp = 1480; + public static final int SceneCastSkillScRsp = 1418; + public static final int GetRogueHandbookDataCsReq = 5654; + public static final int GetMaterialSubmitActivityDataScRsp = 2632; + public static final int RogueMagicGetMiscRealTimeDataScRsp = 7793; + public static final int ChessRogueNousGetRogueTalentInfoCsReq = 5463; + public static final int ChimeraDuelSetFriendDefendLineupScRsp = 9249; + public static final int ChessRogueQuitCsReq = 5488; + public static final int QueryProductInfoScRsp = 5; + public static final int GetTrainVisitorRegisterCsReq = 3709; + public static final int PlanetFesBusinessDayRefreshEventScRsp = 8206; + public static final int UseItemCsReq = 509; + public static final int ShareScRsp = 4110; + public static final int GetStrongChallengeActivityDataCsReq = 6691; + public static final int TakeAllApRewardScRsp = 3309; + public static final int IdleLiveHandlePendingEquipScRsp = 9446; + public static final int GetTrialActivityDataScRsp = 2624; + public static final int GetFriendApplyListInfoScRsp = 2918; + public static final int UnlockSkilltreeCsReq = 314; + public static final int NewMailScNotify = 863; + public static final int GiveUpChessRogueScRsp = 5554; + public static final int TakePromotionRewardCsReq = 361; + public static final int TravelBrochureSelectMessageScRsp = 6418; + public static final int RogueNpcDisappearScRsp = 5674; + public static final int ClockParkGetOngoingScriptInfoCsReq = 7247; + public static final int TakeTrainVisitorBehaviorRewardScRsp = 3726; + public static final int RestartChallengePhaseScRsp = 1744; + public static final int GetPlatformPlayerInfoScRsp = 2949; + public static final int RogueMagicEnterLayerCsReq = 7739; + public static final int GetStarFightDataCsReq = 7169; + public static final int SpaceZooTakeCsReq = 6737; + public static final int UpdateWolfBroShootingDataCsReq = 4157; + public static final int AddAvatarScNotify = 374; + public static final int IdleLiveOpenChestScRsp = 9408; + public static final int ChimeraStartEndlessScRsp = 8177; + public static final int PlanetFesChooseAvatarEventOptionCsReq = 8233; + public static final int GetActivityHotDataScRsp = 9120; + public static final int CakeRaceGetFriendRankingInfoListScRsp = 9140; + public static final int RogueMagicSettleScRsp = 7798; + public static final int GetChatFriendHistoryCsReq = 3909; + public static final int RogueTournGetSeasonTalentInfoCsReq = 6076; + public static final int ClockParkUseBuffScRsp = 7221; + public static final int GetJackpotInfoScRsp = 7015; + public static final int GridFightSetMonsterHpRatioCsReq = 8567; + public static final int PrivateMsgOfflineUsersScNotify = 3995; + public static final int GetFirstTalkNpcCsReq = 2114; + public static final int ConfirmChallengePeakSettleCsReq = 8906; + public static final int RogueTournDeleteArchiveScRsp = 6080; + public static final int IdleLiveFinishNodeEventScRsp = 9376; + public static final int DressRelicAvatarCsReq = 338; + public static final int GetFantasticStoryActivityDataScRsp = 4910; + public static final int FateShopSellBuffCsReq = 5952; + public static final int GridFightEnterBattleStageScRsp = 8761; + public static final int GetRogueEndlessActivityDataScRsp = 6010; + public static final int ChenLingRefreshShopCsReq = 9619; + public static final int ChallengePeakSettleScNotify = 8905; + public static final int TravelBrochureRemovePasterScRsp = 6426; + public static final int GetBattleCollegeDataScRsp = 5710; + public static final int SwordTrainingStartGameScRsp = 7481; + public static final int PlanetFesTakeQuestRewardScRsp = 8231; + public static final int LockEquipmentScRsp = 518; + public static final int ElfRestaurantBuyFieldCsReq = 2555; + public static final int SetLineupNameScRsp = 733; + public static final int RogueMagicSetAutoDressInMagicUnitCsReq = 7754; + public static final int RelicPresetUpdatePlanCsReq = 9854; + public static final int ResetMapRotationRegionScRsp = 6837; + public static final int IdleLiveChangeTechTreeNodeCsReq = 9403; + public static final int GetShareDataScRsp = 4195; + public static final int HeliobusActivityDataScRsp = 5810; + public static final int ChimeraDuelSaveFriendPvpLineupCsReq = 9258; + public static final int SpringRefreshScRsp = 1433; + public static final int HeliobusSnsCommentCsReq = 5863; + public static final int AvatarSpecialSkilltreeUnlockScNotify = 392; + public static final int RogueTournQueryCsReq = 6035; + public static final int SetStuffToAreaCsReq = 4314; + public static final int SubmitOfferingItemScRsp = 6930; + public static final int SubMissionRewardScNotify = 1296; + public static final int IdleLiveTakeTaskRewardScRsp = 9423; + public static final int PlanetFesBingoGameFlipCardCsReq = 8217; + public static final int GetPetDataScRsp = 7604; + public static final int RelicPresetDeletePlanCsReq = 9855; + public static final int IdleLiveTakeQuestEquipScRsp = 9428; + public static final int TakeBpRewardScRsp = 3014; + public static final int GridFightBuyExpCsReq = 8708; + public static final int SwordTrainingDailyPhaseConfirmCsReq = 7488; + public static final int GetStoryLineInfoScRsp = 6210; + public static final int RogueMagicEnterCsReq = 7794; + public static final int SetLanguageCsReq = 21; + public static final int DeactivateFarmElementCsReq = 1466; + public static final int ReportPlayerCsReq = 2944; + public static final int RogueTournLeaveCsReq = 6038; + public static final int DressAvatarCsReq = 363; + public static final int TrainVisitorBehaviorFinishCsReq = 3791; + public static final int OpenTreasureDungeonGridScRsp = 4438; + public static final int PlanetFesGetFriendRankingInfoListScRsp = 8234; + public static final int GetHandbookPromiseScRsp = 9130; + public static final int SwitchHandDataCsReq = 8101; + public static final int SwordTrainingResumeGameScRsp = 7484; + public static final int MonopolyClickCellScRsp = 7076; + public static final int SetAvatarEnhancedIdScRsp = 379; + public static final int SwordTrainingLearnSkillScRsp = 7500; + public static final int OpenChestScNotify = 1435; + public static final int UpgradeAreaScRsp = 4337; + public static final int ChessRogueQueryScRsp = 5589; + public static final int SwordTrainingSelectEndingCsReq = 7487; + public static final int GmTalkScRsp = 39; + public static final int EnteredSceneChangeScNotify = 1434; + public static final int TakeRewardScRsp = 2668; + public static final int TravelBrochurePageResetCsReq = 6433; + public static final int MatchThreeV2BattleItemLevelUpCsReq = 7419; + public static final int RogueTournTriggerRoomSelectScRsp = 6065; + public static final int EnhanceRogueBuffScRsp = 5508; + public static final int RogueTournConfirmSettleScRsp = 6067; + public static final int RogueTournGetCurRogueCocoonInfoCsReq = 6046; + public static final int RogueArcadeGetInfoCsReq = 7651; + public static final int HeliobusSnsPostCsReq = 5814; + public static final int SetClientRaidTargetCountScRsp = 2245; + public static final int StartPunkLordRaidCsReq = 3294; + public static final int RecoverAllLineupScRsp = 1417; + public static final int RefreshTriggerByClientScNotify = 1487; + public static final int DoGachaScRsp = 1995; + public static final int ChessRogueLeaveScRsp = 5435; + public static final int GetFriendDevelopmentInfoCsReq = 2977; + public static final int UpdateMarkChestScRsp = 8190; + public static final int LeaveMapRotationRegionScRsp = 6826; + public static final int CakeRaceGetFriendRankingInfoListCsReq = 9143; + public static final int PlanetFesGetOfferedCardPieceCsReq = 8292; + public static final int StartTrackPhotoStageScRsp = 7554; + public static final int GetAssistHistoryCsReq = 2951; + public static final int IdleLiveFinishNodeEventCsReq = 9413; + public static final int TakeCollectRewardCsReq = 4321; + public static final int TakeTrainVisitorBehaviorRewardCsReq = 3763; + public static final int PlanetFesCollectIncomeCsReq = 8227; + public static final int TakeRogueAeonLevelRewardScRsp = 1813; + public static final int GetSwordTrainingDataScRsp = 7480; + public static final int RogueTournEnterCsReq = 6098; + public static final int StarPerformanceRelayCsReq = 1249; + public static final int RogueTournLeaveRogueCocoonSceneScRsp = 6084; + public static final int GetCurChallengePeakScRsp = 8944; + public static final int GetRogueTalentInfoCsReq = 1856; + public static final int MonopolyScrachRaffleTicketScRsp = 7013; + public static final int ChangeScriptEmotionCsReq = 6394; + public static final int GetRogueAdventureRoomInfoCsReq = 5637; + public static final int GetLineupAvatarDataCsReq = 701; + public static final int TakeAssistRewardCsReq = 2979; + public static final int RogueTournEnterRoomScRsp = 6089; + public static final int TakeTrialActivityRewardCsReq = 2629; + public static final int TakeRogueEndlessActivityPointRewardCsReq = 6004; + public static final int ChimeraDuelUnlockMasterScRsp = 9248; + public static final int SwitchAetherDivideLineUpSlotCsReq = 4831; + public static final int RogueTournLeaveScRsp = 6017; + public static final int GateServerScNotify = 16; + public static final int EnterSceneScRsp = 1470; + public static final int GetPunkLordMonsterDataCsReq = 3291; + public static final int RogueTournGetSeasonTalentInfoScRsp = 6063; + public static final int RogueMagicGetMiscRealTimeDataCsReq = 7720; + public static final int GetBasicInfoCsReq = 71; + public static final int FightGameStateScRsp = 1010; + public static final int SceneEnterStageScRsp = 1500; + public static final int RogueMagicEnterRoomScRsp = 7726; + public static final int RogueTournQueryScRsp = 6061; + public static final int UnlockAvatarPathScRsp = 371; + public static final int MonthCardRewardNotify = 59; + public static final int UpdateMovieRacingDataCsReq = 4144; + public static final int MonopolyTakeRaffleTicketRewardCsReq = 7082; + public static final int TakeOffRelicScRsp = 333; + public static final int GetMultipleDropInfoScRsp = 4610; + public static final int QuitTrackPhotoStageScRsp = 7556; + public static final int PlanetFesGetFriendCardPieceCsReq = 8320; + public static final int GetUnlockTeleportScRsp = 1483; + public static final int ChimeraDuelSaveFriendPvpLineupScRsp = 9239; + public static final int LobbyGetInfoCsReq = 7400; + public static final int GetLocalLegendDataScRsp = 6579; + public static final int DressRelicAvatarScRsp = 372; + public static final int LeaveRaidCsReq = 2230; + public static final int DailyFirstMeetPamCsReq = 3494; + public static final int SetFriendMarkScRsp = 2936; + public static final int IdleLiveStartNodeBattleCsReq = 9364; + public static final int RogueMagicSettleCsReq = 7709; + public static final int SetFriendRemarkNameCsReq = 2907; + public static final int ElfRestaurantUpgradeRecipeLevelCsReq = 2599; + public static final int FateShopBuyGoodsScRsp = 5969; + public static final int IdleLiveGetFriendDungeonRankingInfosScRsp = 9361; + public static final int GridFightUpdateGameRefScRsp = 8759; + public static final int RotateMapCsReq = 6809; + public static final int SetPlayerOutfitScRsp = 349; + public static final int RelicSmartWearDeletePlanCsReq = 8264; + public static final int ChenLingRefreshCardScRsp = 9586; + public static final int GridFightEquipDressCsReq = 8758; + public static final int MonopolyBuyGoodsCsReq = 7007; + public static final int SetAssistAvatarScRsp = 2874; + public static final int GetChatEmojiListScRsp = 3926; + public static final int FinishEmotionDialoguePerformanceCsReq = 6309; + public static final int SelectChatBubbleCsReq = 5194; + public static final int MissionRewardScNotify = 1214; + public static final int PreCheckEnterRoomScRsp = 9728; + public static final int PlanetFesUseItemCsReq = 8246; + public static final int UnlockedAreaMapScNotify = 1467; + public static final int GetDataScRspScRsp = 4120; + public static final int GetMuseumInfoScRsp = 4310; + public static final int TakeRechargeGiftRewardCsReq = 8362; + public static final int ReStartChallengePeakScRsp = 8903; + public static final int GetSaveLogisticsMapScRsp = 4773; + public static final int ChenLingFinishPrepareScRsp = 9615; + public static final int SwitchHandFinishCsReq = 8115; + public static final int SharePunkLordMonsterScRsp = 3218; + public static final int TarotBookOpenPackCsReq = 8142; + public static final int TakeEventRewardCsReq = 4751; + public static final int PlanetFesGetExtraCardPieceInfoCsReq = 8303; + public static final int ChenLingUnlockGridScRsp = 9571; + public static final int PlayerGetFightGateCsReq = 1094; + public static final int RelicPresetGetPlanCsReq = 9841; + public static final int GetSceneMapInfoScRsp = 1499; + public static final int GetMailCsReq = 891; + public static final int GetBigDataAllRecommendScRsp = 2419; + public static final int GridFightGetDataCsReq = 8439; + public static final int HandleFriendCsReq = 2926; + public static final int GetPlayerDetailInfoScRsp = 2995; + public static final int GetFriendRankingInfoScRsp = 1037; + public static final int TakeQuestOptionalRewardScRsp = 974; + public static final int LeaveTrialActivityCsReq = 2606; + public static final int StaminaInfoScNotify = 83; + public static final int RogueTournEnterLayerScRsp = 6028; + public static final int ActivityDataRequestCsReq = 9551; + public static final int FinishTalkMissionScRsp = 1295; + public static final int ClearAetherDividePassiveSkillCsReq = 4850; + public static final int SetClientPausedScRsp = 1402; + public static final int RogueTournGetAllArchiveScRsp = 6014; + public static final int AetherDivideTakeChallengeRewardCsReq = 4846; + public static final int RogueMagicScepterDressInUnitCsReq = 7789; + public static final int TravelBrochureGetDataCsReq = 6491; + public static final int GetRelicBoxDataCsReq = 8951; + public static final int MonopolyRollDiceCsReq = 7018; + public static final int MarkItemScRsp = 525; + public static final int FarmElementSweepCsReq = 1339; + public static final int IdleLiveStartNodeCsReq = 9444; + public static final int StartChallengeCsReq = 1794; + public static final int GetMarkItemListScRsp = 517; + public static final int SetGameplayBirthdayCsReq = 92; + public static final int GetPunkLordDataScRsp = 3272; + public static final int RogueMagicEnableTalentCsReq = 7751; + public static final int SummonPunkLordMonsterCsReq = 3209; + public static final int StartAetherDivideStageBattleScRsp = 4815; + public static final int RogueTournSettleCsReq = 6011; + public static final int GetNpcTakenRewardCsReq = 2191; + public static final int ExchangeGachaCeilingScRsp = 1998; + public static final int GetGachaCeilingScRsp = 1918; + public static final int TrialBackGroundMusicCsReq = 3109; + public static final int GetPlayerReturnMultiDropInfoCsReq = 4695; + public static final int WorldUnlockScRsp = 7627; + public static final int EnterElfRestaurantNextDayCsReq = 2580; + public static final int SwitchHandCoinUpdateCsReq = 8107; + public static final int ClearAetherDividePassiveSkillScRsp = 4816; + public static final int FightGiveUpScRsp = 1018; + public static final int GetStrongChallengeActivityDataScRsp = 6610; + public static final int TakePictureScRspCsReq = 4114; + public static final int GetDailyReportCsReq = 7097; + public static final int ChenLingClientStartBattleCsNotifyCsReq = 9598; + public static final int GetJukeboxDataCsReq = 3191; + public static final int GridFightQuitLeaveGamePlayScRsp = 8583; + public static final int SyncTaskCsReq = 1218; + public static final int UpdateRogueAdventureRoomScoreCsReq = 5630; + public static final int ChenLingFinishShopScRsp = 9609; + public static final int RogueTournGetArchiveRepositoryScRsp = 6016; + public static final int GridFightEnablePermanentTalentCsReq = 8737; + public static final int PlayerLoginScRsp = 10; + public static final int EnterChessRogueAeonRoomScRsp = 5571; + public static final int MonopolyGameGachaScRsp = 7017; + public static final int ChenLingGameBoyChangeSettingsScRsp = 9051; + public static final int GetChallengePeakDataCsReq = 8913; + public static final int UpgradeAreaStatScRsp = 4338; + public static final int GetRechargeGiftInfoScRsp = 8380; + public static final int TakeQuestOptionalRewardCsReq = 901; + public static final int GetMailScRsp = 810; + public static final int StartBoxingClubBattleCsReq = 4214; + public static final int UpdateServerPrefsDataScRsp = 6118; + public static final int TakeChallengeRaidRewardCsReq = 2201; + public static final int SceneEntityMoveCsReq = 1491; + public static final int TakePunkLordPointRewardScRsp = 3237; + public static final int ClockParkUseBuffCsReq = 7231; + public static final int GetMbtiReportRewardScRsp = 7043; + public static final int SetGenderCsReq = 79; + public static final int ChenLingRefreshShopScRsp = 9585; + public static final int IdleLiveChangeTechTreeNodeScRsp = 9358; + public static final int EnterMapRotationRegionScRsp = 6810; + public static final int GetMissionStatusCsReq = 1261; + public static final int RogueNpcDisappearCsReq = 5601; + public static final int SyncServerSceneChangeNotify = 1413; + public static final int SelectChessRogueSubStoryCsReq = 5410; + public static final int RogueMagicLeaveCsReq = 7714; + public static final int InitRequestCsReq = 8213; + public static final int UnlockChatBubbleScNotify = 5114; + public static final int GetBigDataRecommendScRsp = 2401; + public static final int ReEnterLastElementStageScRsp = 1490; + public static final int PlanetFesTakeRegionPhaseRewardCsReq = 8243; + public static final int IdleLiveTakeAssistRewardCsReq = 9386; + public static final int GetAetherDivideInfoCsReq = 4802; + public static final int AvatarExpUpCsReq = 394; + public static final int EnterEraFlipperDataScRsp = 6559; + public static final int LockRelicScRsp = 532; + public static final int ChenLingSelectCardScRsp = 9596; + public static final int DiceCombatBuyShopGoodScRsp = 9266; + public static final int GetPrivateChatHistoryScRsp = 3918; + public static final int SceneCastSkillCsReq = 1414; + public static final int StartPunkLordRaidScRsp = 3295; + public static final int EnterRogueMapRoomScRsp = 1893; + public static final int DiscardRelicCsReq = 549; + public static final int AcceptedPamMissionExpireCsReq = 4091; + public static final int StartMatchCsReq = 7313; + public static final int HeliobusSnsReadScRsp = 5895; + public static final int IdleLiveHandlePendingEquipCsReq = 9439; + public static final int StartChallengePeakCsReq = 8930; + public static final int SetPlayerOutfitCsReq = 302; + public static final int QuitTreasureDungeonCsReq = 4444; + public static final int RogueTournResetPermanentTalentScRsp = 6093; + public static final int DiceCombatFinishPveStageScRsp = 9265; + public static final int GetBagCsReq = 591; + public static final int EndRoundShopStageRequestScRsp = 9229; + public static final int UpdateAiPamSettingsCsReq = 9516; + public static final int RaidCollectionDataCsReq = 6941; + public static final int ChessRogueQueryCsReq = 5540; + public static final int TeleportToMissionResetPointCsReq = 1257; + public static final int SceneCastSkillMpUpdateScNotify = 1438; + public static final int SwordTrainingGiveUpGameScRsp = 7456; + public static final int GetRollShopInfoScRsp = 6920; + public static final int PlanetFesBonusEventInteractCsReq = 8223; + public static final int GridFightResetPermanentTalentCsReq = 8612; + public static final int UpdateWolfBroShootingDataScRsp = 4121; + public static final int TravelBrochureSetCustomValueCsReq = 6404; + public static final int DelMailScRsp = 818; + public static final int MonopolyUpgradeAssetScRsp = 7100; + public static final int IdleLiveTakeContentRewardCsReq = 9429; + public static final int GetActivityDatasCsReq = 2691; + public static final int CakeRaceLikeFriendRankingInfoScRsp = 9134; + public static final int FinishFirstTalkByPerformanceNpcCsReq = 2174; + public static final int StartCocoonStageCsReq = 1425; + public static final int DeleteFriendCsReq = 2974; + public static final int GridFightFavourArchiveCsReq = 8530; + public static final int ChessRogueEnterCellScRsp = 5558; + public static final int PlanetFesGetFriendRankingInfoListCsReq = 8212; + public static final int MonopolyGuessChooseCsReq = 7093; + public static final int MonopolySelectOptionScRsp = 7039; + public static final int IdleLiveCollectIncomeScRsp = 9382; + public static final int SwordTrainingDailyPhaseConfirmScRsp = 7455; + public static final int GetChessRogueStoryAeonTalkInfoScRsp = 5405; + public static final int TakeApRewardScRsp = 3310; + public static final int GetRogueCommonDialogueDataCsReq = 5677; + public static final int MatchThreeV2BattleItemLevelUpScRsp = 7402; + public static final int GetShareDataCsReq = 4194; + public static final int SelectRogueCommonDialogueOptionCsReq = 5606; + public static final int TakeMailAttachmentCsReq = 809; + public static final int RogueTournTriggerRoomSelectCsReq = 6083; + public static final int GetWolfBroShootingDataScRsp = 4196; + public static final int EnterSectionCsReq = 1457; + public static final int DeleteBlacklistScRsp = 2996; + public static final int RelicSmartWearGetPinRelicCsReq = 8261; + public static final int SwordTrainingSelectEndingScRsp = 7498; + public static final int SetNicknameScRsp = 7; + public static final int PlanetFesClientStatusScRsp = 8202; + public static final int PlanetFesLargeBonusInteractCsReq = 8326; + public static final int GameplayCounterRecoverScRsp = 1443; + public static final int RogueMagicSetAutoDressInMagicUnitScRsp = 7779; + public static final int LikeRoomDIYCsReq = 9659; + public static final int GetVideoVersionKeyScRsp = 68; + public static final int TakeRogueEndlessActivityAllBonusRewardCsReq = 6006; + public static final int TakeChallengeCumulativeRewardCsReq = 1704; + public static final int SetTrainWorldIdCsReq = 1419; + public static final int GetFarmStageGachaInfoScRsp = 1395; + public static final int GetKilledPunkLordMonsterDataScRsp = 3289; + public static final int AddBlacklistCsReq = 2938; + public static final int GetRogueAeonInfoCsReq = 1848; + public static final int GetPreAvatarActivityListCsReq = 320; + public static final int GetLineupAvatarDataScRsp = 774; + public static final int TakeAssistRewardScRsp = 2920; + public static final int GetActivityElationDataCsReq = 9109; + public static final int GetChessRogueNousStoryInfoCsReq = 5541; + public static final int IdleLiveOpenChestCsReq = 9357; + public static final int MarkReadMailCsReq = 894; + public static final int SelectInclinationTextCsReq = 2163; + public static final int GetOfferingInfoScRsp = 6940; + public static final int SetAssistScRsp = 2953; + public static final int SetPlayerInfoScRsp = 2; + public static final int StartTrackPhotoStageCsReq = 7555; + public static final int GetCurChallengePeakCsReq = 8902; + public static final int PlanetFesDeliverPamCargoScRsp = 8208; + public static final int ChessRogueLeaveCsReq = 5454; + public static final int ReplaceLineupScRsp = 800; + public static final int ChessRogueConfirmRollScRsp = 5458; + public static final int LogisticsDetonateStarSkiffCsReq = 4754; + public static final int GetSaveRaidScRsp = 2203; + public static final int GetDailyInitItemScRsp = 7034; + public static final int DiceCombatModifyAvatarDiceCsReq = 9268; + public static final int RogueTournConfirmSettleCsReq = 6052; + public static final int EvolveBuildStartStageCsReq = 7135; + public static final int GetRogueBuffEnhanceInfoScCsReq = 5442; + public static final int PlayerLoginFinishScRsp = 62; + public static final int RogueTournEnableSeasonTalentCsReq = 6064; + public static final int ClockParkQuitScriptCsReq = 7218; + public static final int MonopolyGameRaiseRatioScRsp = 7073; + public static final int IdleLiveGetPendingEquipScRsp = 9411; + public static final int ExpUpEquipmentCsReq = 539; + public static final int TakeChallengePeakRewardScRsp = 8919; + public static final int TravelBrochureUpdatePasterPosCsReq = 6439; + public static final int MonopolyRollRandomScRsp = 7038; + public static final int ChessRogueCheatRollCsReq = 5464; + public static final int PlanetFesUpgradeSkillLevelScRsp = 8229; + public static final int CocoonSweepCsReq = 1363; + public static final int MonopolyClickCellCsReq = 7048; + public static final int GetMaterialSubmitActivityDataCsReq = 2672; + public static final int UpdateMainMissionCustomValueScRsp = 1202; + public static final int ChenLingRefreshPolicyCsReq = 9601; + public static final int GetChessRogueStoryInfoScRsp = 5440; + public static final int GmTalkCsReq = 26; + public static final int ChenLingBuyShopItemCsReq = 9579; + public static final int DifficultyAdjustmentGetDataScRsp = 4165; + public static final int SwitchHandDataScRsp = 8120; + public static final int MonopolyLikeCsReq = 7042; + public static final int PlayerSyncScNotify = 691; + public static final int SetHeadIconCsReq = 2894; + public static final int ChimeraQuitEndlessByPromiseScRsp = 8178; + public static final int GetTrackPhotoActivityDataScRsp = 7560; + public static final int StartTrialActivityScRsp = 2616; + public static final int ChimeraDuelSetFriendDefendLineupCsReq = 9253; + public static final int GridFightFinishTutorialScRsp = 8638; + public static final int ReportPlayerScRsp = 3000; + public static final int GetPamSkinDataScRsp = 8140; + public static final int MusicRhythmStartLevelScRsp = 7589; + public static final int GetAllServerPrefsDataScRsp = 6110; + public static final int GetMbtiReportScRsp = 7077; + public static final int ChenLingSelectPolicyCsReq = 9578; + public static final int IdleLiveManualFinishQuestionScRsp = 9366; + public static final int ApplyFriendScRsp = 2998; + public static final int FateShopLeaveCsReq = 6000; + public static final int SceneReviveAfterRebattleScRsp = 1496; + public static final int GrowthTargetAvatarChangedScNotify = 353; + public static final int GetChallengeCsReq = 1791; + public static final int TakeOfferingRewardScRsp = 6928; + public static final int GetCurLineupDataCsReq = 794; + public static final int IdleLiveUpdateLiveRoomTitleCsReq = 9379; + public static final int BuyGoodsCsReq = 1594; + public static final int CakeRaceFinishPveScRsp = 9145; + public static final int GetRaidInfoCsReq = 2202; + public static final int TakeOffAvatarSkinCsReq = 400; + public static final int RelicPresetDeletePlanScRsp = 9848; + public static final int TakePrestigeRewardCsReq = 4739; + public static final int PrepareRogueAdventureRoomScRsp = 5694; + public static final int SwordTrainingStartGameCsReq = 7466; + public static final int TakeBpRewardCsReq = 3095; + public static final int FateTakeExpRewardScRsp = 5959; + public static final int ExchangeRogueRewardKeyScRsp = 1877; + public static final int UnlockBackGroundMusicScRsp = 3118; + public static final int GetBoxingClubInfoCsReq = 4291; + public static final int GetUpdatedArchiveDataCsReq = 2394; + public static final int EvolveBuildShopAbilityResetScRsp = 7106; + public static final int RelicReforgeConfirmCsReq = 552; + public static final int AcceptMainMissionScRsp = 1253; + public static final int GetAiPamNextQuestionScRsp = 9505; + public static final int SetLineupNameCsReq = 732; + public static final int SpringRefreshCsReq = 1432; + public static final int ElfRestaurantFinishTradeOrderScRsp = 2554; + public static final int PlanetFesSetCustomKeyValueScRsp = 8224; + public static final int TravelBrochureRemovePasterCsReq = 6463; + public static final int GmTalkScNotify = 98; + public static final int PlanetFesDealAvatarEventOptionItemScRsp = 8237; + public static final int IdleLiveGetDataScRsp = 9360; + public static final int PlayerHeartBeatCsReq = 12; + public static final int ChimeraStartEndlessCsReq = 8174; + public static final int GetDataCsReq = 9583; + public static final int ChessRogueReRollDiceScRsp = 5407; + public static final int TarotBookGetDataCsReq = 8141; + public static final int RogueTournReEnterRogueCocoonStageScRsp = 6015; + public static final int GridFightUpdateEliteBranchSelectScRsp = 8516; + public static final int ChimeraGetDataScRsp = 8180; + public static final int GetJackpotInfoCsReq = 7035; + public static final int GridFightRefreshShopScRsp = 8658; + public static final int RankUpEquipmentCsReq = 563; + public static final int RogueArcadeLeaveScRsp = 7655; + public static final int GetCrossInfoCsReq = 7338; + + // Unknown Cmd Ids + public static final int AvatarDeliverRewardChooseAvatarCsReq = -1; + public static final int CurTrialActivityScNotify = -1; + public static final int AvatarDeliverRewardChooseAvatarScRsp = -1; + public static final int AvatarDeliverRewardTakeRewardCsReq = -1; + public static final int GetLoginActivityScRsp = -1; + public static final int EnterTrialActivityStageCsReq = -1; + public static final int GetLoginActivityCsReq = -1; + public static final int AvatarDeliverRewardTakeRewardScRsp = -1; + public static final int GetAvatarDeliverRewardActivityDataScRsp = -1; + public static final int GetAvatarDeliverRewardActivityDataCsReq = -1; + public static final int GetActivityRewardCountDataScRsp = -1; + public static final int GetActivityRewardCountDataCsReq = -1; + public static final int GetFarmStageGachaInfoCsReq = -1; + public static final int EnterAdventureScRsp = -1; + public static final int EnterAdventureCsReq = -1; + public static final int AetherDivideFinishChallengeScNotify = -1; + public static final int SetAetherDivideLineUpCsReq = -1; + public static final int SetAetherDivideLineUpScRsp = -1; + public static final int AetherDivideRefreshEndlessScRsp = -1; + public static final int AetherDivideTainerInfoScNotify = -1; + public static final int AetherDivideLineupScNotify = -1; + public static final int EnterAetherDivideSceneCsReq = -1; + public static final int AetherDivideRefreshEndlessCsReq = -1; + public static final int AetherDivideSpiritExpUpCsReq = -1; + public static final int EnterAetherDivideSceneScRsp = -1; + public static final int AetherDivideSpiritInfoScNotify = -1; + public static final int AetherDivideSpiritExpUpScRsp = -1; + public static final int AetherDivideRefreshEndlessScNotify = -1; + public static final int AetherDivideSkillItemScNotify = -1; + public static final int StartAetherDivideSceneBattleCsReq = -1; + public static final int ActivityRaidPlacingGameCsReq = -1; + public static final int AlleyTakeEventRewardScRsp = -1; + public static final int LogisticsScoreRewardSyncInfoScNotify = -1; + public static final int AlleyTakeEventRewardCsReq = -1; + public static final int AlleyShipUnlockScNotify = -1; + public static final int AlleyPlacingGameScRsp = -1; + public static final int GetAlleyInfoScRsp = -1; + public static final int ActivityRaidPlacingGameScRsp = -1; + public static final int GetAlleyInfoCsReq = -1; + public static final int AlleyShipUsedCountScNotify = -1; + public static final int AlleyShipmentEventEffectsScNotify = -1; + public static final int AlleyGuaranteedFundsScRsp = -1; + public static final int LogisticsGameScRsp = -1; + public static final int AlleyGuaranteedFundsCsReq = -1; + public static final int RefreshAlleyOrderScRsp = -1; + public static final int SaveLogisticsScRsp = -1; + public static final int AlleyShopLevelScNotify = -1; + public static final int RefreshAlleyOrderCsReq = -1; + public static final int SaveLogisticsCsReq = -1; + public static final int AlleyEventEffectNotify = -1; + public static final int AlleyOrderChangedScNotify = -1; + public static final int AlleyPlacingGameCsReq = -1; + public static final int LogisticsInfoScNotify = -1; + public static final int LogisticsGameCsReq = -1; + public static final int AlleyFundsScNotify = -1; + public static final int AlleyEventChangeNotify = -1; + public static final int SetMultipleAvatarPathsScRsp = -1; + public static final int SetMultipleAvatarPathsCsReq = -1; + public static final int BattleLogReportScRsp = -1; + public static final int BattleLogReportCsReq = -1; + public static final int RebattleByClientCsNotify = -1; + public static final int ServerSimulateBattleFinishScNotify = -1; + public static final int ReBattleAfterBattleLoseCsNotify = -1; + public static final int BattleCollegeDataChangeScNotify = -1; + public static final int TakeAllRewardScRsp = -1; + public static final int BattlePassInfoNotify = -1; + public static final int TakeAllRewardCsReq = -1; + public static final int TakeBenefitActivityRewardScRsp = -1; + public static final int TakeBenefitActivityRewardCsReq = -1; + public static final int BoxingClubChallengeUpdateScNotify = -1; + public static final int MatchBoxingClubOpponentCsReq = -1; + public static final int BoxingClubRewardScNotify = -1; + public static final int SetBoxingClubResonanceLineupScRsp = -1; + public static final int MatchBoxingClubOpponentScRsp = -1; + public static final int SetBoxingClubResonanceLineupCsReq = -1; + public static final int CakeRaceGetMatchDataCsReq = -1; + public static final int CakeRaceFinishFieldRewardScNotify = -1; + public static final int CakeRaceCoinScoreChangeScNotify = -1; + public static final int CakeRaceGetHandbookCsReq = -1; + public static final int CakeRaceGetHandbookScRsp = -1; + public static final int CakeRaceUpdatePveScRsp = -1; + public static final int CakeRaceUpdatePveCsReq = -1; + public static final int CakeRaceGetMatchDataScRsp = -1; + public static final int TakeChallengeRewardCsReq = -1; + public static final int TakeChallengeRewardScRsp = -1; + public static final int TakeChallengePeakRewardCsReq = -1; + public static final int BatchMarkChatEmojiScRsp = -1; + public static final int BatchMarkChatEmojiCsReq = -1; + public static final int EnhanceChessRogueBuffScRsp = -1; + public static final int ChessRogueChangeyAeonDimensionNotify = -1; + public static final int SyncChessRogueNousSubStoryScNotify = -1; + public static final int ChessRogueNousDiceUpdateNotify = -1; + public static final int ChessRogueGiveUpRollScRsp = -1; + public static final int ChessRogueReviveAvatarCsReq = -1; + public static final int ChessRogueQueryAeonDimensionsScRsp = -1; + public static final int ChessRogueGiveUpRollCsReq = -1; + public static final int ChessRogueReviveAvatarScRsp = -1; + public static final int ChessRogueQueryAeonDimensionsCsReq = -1; + public static final int SyncChessRogueMainStoryFinishScNotify = -1; + public static final int ChessRogueNousEditDiceScRsp = -1; + public static final int ChessRogueNousDiceSurfaceUnlockNotify = -1; + public static final int GetChessRogueBuffEnhanceInfoScRsp = -1; + public static final int GetChessRogueBuffEnhanceInfoCsReq = -1; + public static final int ChessRogueQuestFinishNotify = -1; + public static final int ChessRogueUpdateLevelBaseInfoScNotify = -1; + public static final int ChessRogueGiveUpScRsp = -1; + public static final int ChessRogueUpdateBoardScNotify = -1; + public static final int ChessRogueUpdateAeonModifierValueScNotify = -1; + public static final int ChessRogueUpdateDicePassiveAccumulateValueScNotify = -1; + public static final int ChessRogueStartCsReq = -1; + public static final int ChessRogueNousEnableRogueTalentCsReq = -1; + public static final int ChessRogueUpdateMoneyInfoScNotify = -1; + public static final int ChessRogueUpdateActionPointScNotify = -1; + public static final int EnhanceChessRogueBuffCsReq = -1; + public static final int ChessRogueCellUpdateNotify = -1; + public static final int ChessRogueLayerAccountInfoNotify = -1; + public static final int ChessRogueNousEditDiceCsReq = -1; + public static final int SyncChessRogueNousValueScNotify = -1; + public static final int SyncChessRogueNousMainStoryScNotify = -1; + public static final int ChessRogueGiveUpCsReq = -1; + public static final int ChessRoguePickAvatarScRsp = -1; + public static final int ChessRogueUpdateUnlockLevelScNotify = -1; + public static final int ChessRoguePickAvatarCsReq = -1; + public static final int ChessRogueUpdateDiceInfoScNotify = -1; + public static final int ChessRogueNousEnableRogueTalentScRsp = -1; + public static final int ChessRogueUpdateAllowedSelectCellScNotify = -1; + public static final int ChessRogueUpdateReviveInfoScNotify = -1; + public static final int ChessRogueStartScRsp = -1; + public static final int ChimeraSetLineupScRsp = -1; + public static final int ChimeraFinishEndlessRoundCsReq = -1; + public static final int ChimeraSetLineupCsReq = -1; + public static final int ChimeraDoFinalRoundScRsp = -1; + public static final int ChimeraFinishRoundCsReq = -1; + public static final int ChimeraQuitEndlessScRsp = -1; + public static final int ChimeraDoFinalRoundCsReq = -1; + public static final int ChimeraFinishEndlessRoundScRsp = -1; + public static final int ChimeraRoundWorkStartScRsp = -1; + public static final int ChimeraRoundWorkStartCsReq = -1; + public static final int ChimeraFinishRoundScRsp = -1; + public static final int ChimeraQuitEndlessCsReq = -1; + public static final int ClockParkGetInfoCsReq = -1; + public static final int ClockParkGetInfoScRsp = -1; + public static final int ClockParkBattleEndScNotify = -1; + public static final int ClockParkStartScriptCsReq = -1; + public static final int ClockParkHandleWaitOperationScRsp = -1; + public static final int ClockParkFinishScriptScNotify = -1; + public static final int ClockParkStartScriptScRsp = -1; + public static final int ClockParkHandleWaitOperationCsReq = -1; + public static final int ContentPackageUnlockCsReq = -1; + public static final int ContentPackageTransferScNotify = -1; + public static final int ContentPackageGetDataCsReq = -1; + public static final int ContentPackageSyncDataScNotify = -1; + public static final int ContentPackageUnlockScRsp = -1; + public static final int DailyActiveInfoNotify = -1; + public static final int DrinkMakerCheersGetDataScRsp = -1; + public static final int DrinkMakerCheersMakeDrinkScRsp = -1; + public static final int DrinkMakerUpdateTipsNotify = -1; + public static final int DrinkMakerCheersEnterNextGroupCsReq = -1; + public static final int DrinkMakerChallengeScRsp = -1; + public static final int DrinkMakerChallengeCsReq = -1; + public static final int MakeMissionDrinkCsReq = -1; + public static final int DrinkMakerCheersMakeDrinkCsReq = -1; + public static final int MakeDrinkCsReq = -1; + public static final int MakeMissionDrinkScRsp = -1; + public static final int DrinkMakerDayEndScNotify = -1; + public static final int DrinkMakerCheersGetDataCsReq = -1; + public static final int DrinkMakerCheersEnterNextGroupScRsp = -1; + public static final int MakeDrinkScRsp = -1; + public static final int EnterElationActivityStageScRsp = -1; + public static final int ElationActivityBattleEndScNotify = -1; + public static final int GetElationActivityDataCsReq = -1; + public static final int GetElationActivityDataScRsp = -1; + public static final int EnterElationActivityStageCsReq = -1; + public static final int ElfRestaurantSetFarmManagerScRsp = -1; + public static final int GetElfRestaurantDataCsReq = -1; + public static final int GetElfRestaurantDataScRsp = -1; + public static final int ElfRestaurantPlantSeedCsReq = -1; + public static final int ElfRestaurantRecycleSeedScRsp = -1; + public static final int ElfRestaurantPlantSeedScRsp = -1; + public static final int SettleElfRestaurantPlayScRsp = -1; + public static final int ElfRestaurantRecycleSeedCsReq = -1; + public static final int ElfRestaurantTakeVillagerRewardCsReq = -1; + public static final int ElfRestaurantDataChangeNotify = -1; + public static final int SettleElfRestaurantPlayCsReq = -1; + public static final int ElfRestaurantSetFarmManagerCsReq = -1; + public static final int SetElfRestaurantPlayRecipeScRsp = -1; + public static final int ElfRestaurantHarvestCropScRsp = -1; + public static final int ElfRestaurantHarvestCropCsReq = -1; + public static final int SetElfRestaurantPlayRecipeCsReq = -1; + public static final int EnterEraFlipperRegionScRsp = -1; + public static final int ChangeEraFlipperDataCsReq = -1; + public static final int ChangeEraFlipperDataScRsp = -1; + public static final int EnterEraFlipperRegionCsReq = -1; + public static final int EraFlipperDataChangeScNotify = -1; + public static final int EvolveBuildStartLevelScRsp = -1; + public static final int EvolveBuildCoinNotify = -1; + public static final int EvolveBuildFinishScNotify = -1; + public static final int EvolveBuildStartLevelCsReq = -1; + public static final int EvolveBuildLeaveCsReq = -1; + public static final int EvolveBuildLeaveScRsp = -1; + public static final int ExpeditionDataChangeScNotify = -1; + public static final int CancelExpeditionCsReq = -1; + public static final int TakeMultipleExpeditionRewardCsReq = -1; + public static final int AcceptExpeditionScRsp = -1; + public static final int TakeMultipleExpeditionRewardScRsp = -1; + public static final int CancelActivityExpeditionScRsp = -1; + public static final int AcceptActivityExpeditionScRsp = -1; + public static final int AcceptExpeditionCsReq = -1; + public static final int CancelActivityExpeditionCsReq = -1; + public static final int TakeMultipleActivityExpeditionRewardScRsp = -1; + public static final int TakeActivityExpeditionRewardScRsp = -1; + public static final int TakeExpeditionRewardScRsp = -1; + public static final int TakeActivityExpeditionRewardCsReq = -1; + public static final int CancelExpeditionScRsp = -1; + public static final int AcceptActivityExpeditionCsReq = -1; + public static final int TakeMultipleActivityExpeditionRewardCsReq = -1; + public static final int GetExpeditionDataCsReq = -1; + public static final int GetExpeditionDataScRsp = -1; + public static final int TakeExpeditionRewardCsReq = -1; + public static final int AcceptMultipleExpeditionScRsp = -1; + public static final int AcceptMultipleExpeditionCsReq = -1; + public static final int EnterFantasticStoryActivityStageScRsp = -1; + public static final int FantasticStoryActivityBattleEndScNotify = -1; + public static final int EnterFantasticStoryActivityStageCsReq = -1; + public static final int FinishChapterScNotify = -1; + public static final int FateSettleScNotify = -1; + public static final int FateBattleStartCsReq = -1; + public static final int FateSettleCsReq = -1; + public static final int FateHandlePendingActionCsReq = -1; + public static final int FateBattleStartScRsp = -1; + public static final int FateChangeLineupScRsp = -1; + public static final int FateSyncPendingActionScNotify = -1; + public static final int FateStartScRsp = -1; + public static final int FateChangeLineupCsReq = -1; + public static final int FateSyncActionResultScNotify = -1; + public static final int FateStartCsReq = -1; + public static final int FateSettleScRsp = -1; + public static final int FateHandlePendingActionScRsp = -1; + public static final int FeverTimeActivityBattleEndScNotify = -1; + public static final int EnterFeverTimeActivityStageScRsp = -1; + public static final int EnterFeverTimeActivityStageCsReq = -1; + public static final int FightSessionStopScNotify = -1; + public static final int FightGeneralCsReq = -1; + public static final int FightGeneralScRsp = -1; + public static final int FightHeartBeatCsReq = -1; + public static final int FightEnterCsReq = -1; + public static final int FightHeartBeatScRsp = -1; + public static final int FightKickOutScNotify = -1; + public static final int FightGeneralScNotify = -1; + public static final int FightLeaveScNotify = -1; + public static final int FightEnterScRsp = -1; + public static final int EnterFightActivityStageScRsp = -1; + public static final int FightActivityDataChangeScNotify = -1; + public static final int EnterFightActivityStageCsReq = -1; + public static final int GetFightActivityDataScRsp = -1; + public static final int GetFightActivityDataCsReq = -1; + public static final int FightFestUpdateCoinNotify = -1; + public static final int StartFightFestCsReq = -1; + public static final int GetFightFestDataCsReq = -1; + public static final int StartFightFestScRsp = -1; + public static final int GetFightFestDataScRsp = -1; + public static final int FightFestUpdateChallengeRecordNotify = -1; + public static final int FightFestUnlockSkillNotify = -1; + public static final int FightFestScoreUpdateNotify = -1; + public static final int FightMatch3DataScRsp = -1; + public static final int FightMatch3ChatScNotify = -1; + public static final int FightMatch3TurnStartScNotify = -1; + public static final int FightMatch3UseItemCsReq = -1; + public static final int FightMatch3SoloDataUpdateNotify = -1; + public static final int FightMatch3RoyaleRankUpdateNotify = -1; + public static final int FightMatch3SoloUseItemNotify = -1; + public static final int FightMatch3ChatCsReq = -1; + public static final int FightMatch3SwapCsReq = -1; + public static final int FightMatch3RoyaleDataScRsp = -1; + public static final int FightMatch3StartCountDownScNotify = -1; + public static final int FightMatch3SoloAnimEndScRsp = -1; + public static final int FightMatch3SoloPreTurnEndScRsp = -1; + public static final int FightMatch3TurnEndScNotify = -1; + public static final int FightMatch3ForceUpdateNotify = -1; + public static final int FightMatch3UseItemScRsp = -1; + public static final int FightMatch3OpponentDataScNotify = -1; + public static final int FightMatch3SoloSwapNotify = -1; + public static final int FightMatch3ChatScRsp = -1; + public static final int FightMatch3DataCsReq = -1; + public static final int FightMatch3SoloDataCsReq = -1; + public static final int FightMatch3SoloAnimEndCsReq = -1; + public static final int FightMatch3SwapScRsp = -1; + public static final int FightMatch3SoloPreTurnEndCsReq = -1; + public static final int FightMatch3RoyaleDataCsReq = -1; + public static final int FightMatch3SoloDataScRsp = -1; + public static final int FightMatch3RoyaleDataUpdateNotify = -1; + public static final int GetFriendRecommendLineupDetailScRsp = -1; + public static final int CurAssistChangedNotify = -1; + public static final int NewAssistHistoryNotify = -1; + public static final int GetFriendRecommendListInfoCsReq = -1; + public static final int GetFriendAssistListCsReq = -1; + public static final int GetFriendRecommendLineupCsReq = -1; + public static final int GetFriendRecommendLineupScRsp = -1; + public static final int SyncAddBlacklistScNotify = -1; + public static final int SyncDeleteFriendScNotify = -1; + public static final int SearchPlayerCsReq = -1; + public static final int GetPlatformPlayerInfoCsReq = -1; + public static final int SyncHandleFriendScNotify = -1; + public static final int GetFriendRecommendLineupDetailCsReq = -1; + public static final int SyncApplyFriendScNotify = -1; + public static final int GetFriendRecommendListInfoScRsp = -1; + public static final int GachaDecideItemChangeScNotify = -1; + public static final int SetGachaDecideItemCsReq = -1; + public static final int SetGachaDecideItemScRsp = -1; + public static final int GridFightGetFormationCsReq = -1; + public static final int GridFightUpdateTraitTrackScRsp = -1; + public static final int GridFightUseOrbNotify = -1; + public static final int GridFightUseOrbScRsp = -1; + public static final int GridFightHandlePendingActionScRsp = -1; + public static final int GridFightAddFormationCsReq = -1; + public static final int GridFightTakeWeeklyRewardScRsp = -1; + public static final int GridFightGetFormationScRsp = -1; + public static final int GridFightEndBattleStageNotify = -1; + public static final int GridFightTraitUpdateScRsp = -1; + public static final int GridFightSettleNotify = -1; + public static final int GridFightUpdateEquipTrackScRsp = -1; + public static final int GridFightUpdateTraitTrackCsReq = -1; + public static final int GridFightSyncVirtualItemScNotify = -1; + public static final int GridFightSyncUpdateResultScNotify = -1; + public static final int GridFightUpdateEquipTrackProrityScRsp = -1; + public static final int GridFightUpdateFormationCsReq = -1; + public static final int GridFightAddFormationScRsp = -1; + public static final int GridFightUpdateEquipTrackProrityCsReq = -1; + public static final int GridFightEquipCraftScRsp = -1; + public static final int GridFightBuyGoodsScRsp = -1; + public static final int GridFightTraitUpdateCsReq = -1; + public static final int GridFightUpdateEquipTrackCsReq = -1; + public static final int GridFightUseOrbCsReq = -1; + public static final int GridFightHandlePendingActionCsReq = -1; + public static final int GridFightEquipCraftCsReq = -1; + public static final int GridFightDeleteFormationCsReq = -1; + public static final int GridFightDeleteFormationScRsp = -1; + public static final int GridFightSeasonHandBookNotify = -1; + public static final int GridFightUpdatePosScRsp = -1; + public static final int GridFightGetShopRandomRuleCsReq = -1; + public static final int GridFightTakeWeeklyRewardCsReq = -1; + public static final int GridFightUpdateFormationScRsp = -1; + public static final int GridFightApplyFormationCsReq = -1; + public static final int GridFightBuyGoodsCsReq = -1; + public static final int GridFightUpdateWeeklyRewardInfoScNotify = -1; + public static final int GridFightApplyFormationScRsp = -1; + public static final int GridFightWeeklyExtraSeasonExpNotify = -1; + public static final int GridFightDataScNotify = -1; + public static final int GridFightGetShopRandomRuleScRsp = -1; + public static final int GridFightUpdatePosCsReq = -1; + public static final int HeartDialScriptChangeScNotify = -1; + public static final int HeartDialTraceScriptScRsp = -1; + public static final int HeartDialTraceScriptCsReq = -1; + public static final int SubmitEmotionItemScRsp = -1; + public static final int SubmitEmotionItemCsReq = -1; + public static final int HeliobusInfoChangedScNotify = -1; + public static final int HeliobusSelectSkillScRsp = -1; + public static final int HeliobusSnsUpdateScNotify = -1; + public static final int HeliobusUnlockSkillScNotify = -1; + public static final int HeliobusEnterBattleScRsp = -1; + public static final int HeliobusEnterBattleCsReq = -1; + public static final int HeliobusStartRaidCsReq = -1; + public static final int HeliobusChallengeUpdateScNotify = -1; + public static final int HeliobusLineupUpdateScNotify = -1; + public static final int HeliobusStartRaidScRsp = -1; + public static final int HeliobusSelectSkillCsReq = -1; + public static final int OpenHipplenCycleCsReq = -1; + public static final int SetHipplenAgendaScRsp = -1; + public static final int SetHipplenOutfitCsReq = -1; + public static final int TakeHipplenEndingRewardCsReq = -1; + public static final int TakeHipplenEndingRewardScRsp = -1; + public static final int GetHipplenDataScRsp = -1; + public static final int GetHipplenInheritScRsp = -1; + public static final int HipplenChangeScNotify = -1; + public static final int GetHipplenInheritCsReq = -1; + public static final int SettleHipplenWorkScRsp = -1; + public static final int SetHipplenOutfitScRsp = -1; + public static final int HipplenAgendaResultScNotify = -1; + public static final int HipplenTraitUnlockScNotify = -1; + public static final int GetHipplenDataCsReq = -1; + public static final int SetHipplenAgendaCsReq = -1; + public static final int SettleHipplenWorkCsReq = -1; + public static final int HipplenCycleResultScNotify = -1; + public static final int OpenHipplenCycleScRsp = -1; + public static final int ModifyRelicFilterPlanScRsp = -1; + public static final int RelicFilterPlanClearNameScNotify = -1; + public static final int GetRecyleTimeCsReq = -1; + public static final int MarkRelicFilterPlanScRsp = -1; + public static final int AddRelicFilterPlanCsReq = -1; + public static final int MarkRelicFilterPlanCsReq = -1; + public static final int CancelMarkItemNotify = -1; + public static final int GetRecyleTimeScRsp = -1; + public static final int ComposeLimitNumCompleteNotify = -1; + public static final int ComposeLimitNumUpdateNotify = -1; + public static final int AddRelicFilterPlanScRsp = -1; + public static final int GeneralVirtualItemDataNotify = -1; + public static final int SyncTurnFoodNotify = -1; + public static final int ModifyRelicFilterPlanCsReq = -1; + public static final int DeleteRelicFilterPlanScRsp = -1; + public static final int AddEquipmentScNotify = -1; + public static final int BatchRankUpEquipmentCsReq = -1; + public static final int DeleteRelicFilterPlanCsReq = -1; + public static final int UnlockBackGroundMusicCsReq = -1; + public static final int PlayBackGroundMusicCsReq = -1; + public static final int VirtualLineupDestroyNotify = -1; + public static final int VirtualLineupTrialAvatarChangeScNotify = -1; + public static final int GetStageLineupCsReq = -1; + public static final int GetStageLineupScRsp = -1; + public static final int LobbyStartFightScRsp = -1; + public static final int LobbyInteractScNotify = -1; + public static final int LobbyInviteScNotify = -1; + public static final int LobbyInviteCsReq = -1; + public static final int LobbyInteractCsReq = -1; + public static final int LobbyCreateCsReq = -1; + public static final int LobbyInviteScRsp = -1; + public static final int LobbyInteractScRsp = -1; + public static final int LobbyStartFightCsReq = -1; + public static final int LobbySyncInfoScNotify = -1; + public static final int LobbyCreateScRsp = -1; + public static final int DeployRotaterScRsp = -1; + public static final int UpdateEnergyScNotify = -1; + public static final int RemoveRotaterScRsp = -1; + public static final int LeaveMapRotationRegionScNotify = -1; + public static final int DeployRotaterCsReq = -1; + public static final int UpdateMapRotationDataScNotify = -1; + public static final int RemoveRotaterCsReq = -1; + public static final int InteractChargerScRsp = -1; + public static final int InteractChargerCsReq = -1; + public static final int UpdateRotaterScNotify = -1; + public static final int MarbleUnlockSealScNotify = -1; + public static final int MarbleUpdateShownSealCsReq = -1; + public static final int MarbleShopBuyCsReq = -1; + public static final int MarbleGetDataScRsp = -1; + public static final int MarbleLevelFinishCsReq = -1; + public static final int MarbleUpdateShownSealScRsp = -1; + public static final int MarbleLevelFinishScRsp = -1; + public static final int MarbleGetDataCsReq = -1; + public static final int MarbleShopBuyScRsp = -1; + public static final int MarblePvpDataUpdateScNotify = -1; + public static final int UpdateMarkChestCsReq = -1; + public static final int MatchResultScNotify = -1; + public static final int MatchThreeV2GetDataScRsp = -1; + public static final int MatchThreeSyncDataScNotify = -1; + public static final int MatchThreeV2LevelEndScRsp = -1; + public static final int MatchThreeRoyaleFinishScNotify = -1; + public static final int MatchThreeV2GetDataCsReq = -1; + public static final int MatchThreeV2PvpFinishScNotify = -1; + public static final int MatchThreeV2LevelEndCsReq = -1; + public static final int MatchThreeV2SetBirdPosScRsp = -1; + public static final int MatchThreeLevelEndCsReq = -1; + public static final int MatchThreeV2ScNotify = -1; + public static final int MatchThreeLevelEndScRsp = -1; + public static final int MatchThreeV2SetBirdPosCsReq = -1; + public static final int FinishItemIdScRsp = -1; + public static final int GetNpcMessageGroupScRsp = -1; + public static final int GetNpcMessageGroupCsReq = -1; + public static final int GetNpcStatusCsReq = -1; + public static final int FinishSectionIdCsReq = -1; + public static final int GetMissionMessageInfoCsReq = -1; + public static final int FinishItemIdCsReq = -1; + public static final int FinishSectionIdScRsp = -1; + public static final int GetNpcStatusScRsp = -1; + public static final int GetMissionMessageInfoScRsp = -1; + public static final int FinishPerformSectionIdCsReq = -1; + public static final int FinishPerformSectionIdScRsp = -1; + public static final int SecurityReportCsReq = -1; + public static final int TakePictureScRsp = -1; + public static final int MazeKillDirectScRsp = -1; + public static final int DifficultyAdjustmentUpdateDataCsReq = -1; + public static final int GetSwitchMascotDataScRsp = -1; + public static final int GetGunPlayDataCsReq = -1; + public static final int CancelDirectDeliveryNoticeScRsp = -1; + public static final int GetOrigamiPropInfoCsReq = -1; + public static final int MazeKillDirectCsReq = -1; + public static final int UpdateGunPlayDataScRsp = -1; + public static final int DirectDeliveryScNotify = -1; + public static final int UpdateGunPlayDataCsReq = -1; + public static final int TakePictureCsReq = -1; + public static final int CancelCacheNotifyCsReq = -1; + public static final int DifficultyAdjustmentUpdateDataScRsp = -1; + public static final int CancelCacheNotifyScRsp = -1; + public static final int GetGunPlayDataScRsp = -1; + public static final int TriggerVoiceScRsp = -1; + public static final int TriggerVoiceCsReq = -1; + public static final int CancelDirectDeliveryNoticeCsReq = -1; + public static final int GetSwitchMascotDataCsReq = -1; + public static final int GetOrigamiPropInfoScRsp = -1; + public static final int SecurityReportScRsp = -1; + public static final int SwitchMascotUpdateScNotify = -1; + public static final int StartFinishMainMissionScNotify = -1; + public static final int StartFinishSubMissionScNotify = -1; + public static final int FinishedMissionScNotify = -1; + public static final int FinishTalkMissionCsReq = -1; + public static final int MissionGroupWarnScNotify = -1; + public static final int UpdateTrackMainMissionIdCsReq = -1; + public static final int MissionAcceptScNotify = -1; + public static final int UpdateTrackMainMissionIdScRsp = -1; + public static final int FinishCosumeItemMissionScRsp = -1; + public static final int FinishCosumeItemMissionCsReq = -1; + public static final int MonopolyDailySettleScNotify = -1; + public static final int MonopolyGetDailyInitItemCsReq = -1; + public static final int MonopolyGetRafflePoolInfoScRsp = -1; + public static final int MonopolyConditionUpdateScNotify = -1; + public static final int MonopolyAcceptQuizScRsp = -1; + public static final int MonopolyLikeScNotify = -1; + public static final int MonopolyGetRegionProgressCsReq = -1; + public static final int MonopolyClickMbtiReportCsReq = -1; + public static final int GetMonopolyMbtiReportRewardScRsp = -1; + public static final int MonopolyContentUpdateScNotify = -1; + public static final int MonopolyCellUpdateNotify = -1; + public static final int MonopolyEventLoadUpdateScNotify = -1; + public static final int MonopolyGuessBuyInformationCsReq = -1; + public static final int MonopolyClickMbtiReportScRsp = -1; + public static final int MonopolyTakePhaseRewardScRsp = -1; + public static final int MonopolyGuessBuyInformationScRsp = -1; + public static final int GetMonopolyFriendRankingListScRsp = -1; + public static final int GetMonopolyMbtiReportRewardCsReq = -1; + public static final int GetMonopolyDailyReportCsReq = -1; + public static final int MonopolyGetRegionProgressScRsp = -1; + public static final int DeleteSocialEventServerCacheCsReq = -1; + public static final int DeleteSocialEventServerCacheScRsp = -1; + public static final int MonopolyGetDailyInitItemScRsp = -1; + public static final int MonopolyGetRafflePoolInfoCsReq = -1; + public static final int MonopolyEventSelectFriendCsReq = -1; + public static final int MonopolyTakePhaseRewardCsReq = -1; + public static final int MonopolyGuessDrawScNotify = -1; + public static final int MonopolySttUpdateScNotify = -1; + public static final int MonopolyEventSelectFriendScRsp = -1; + public static final int GetMonopolyDailyReportScRsp = -1; + public static final int GetMonopolyFriendRankingListCsReq = -1; + public static final int MonopolyQuizDurationChangeScNotify = -1; + public static final int MonopolyActionResultScNotify = -1; + public static final int MonopolyGameCreateScNotify = -1; + public static final int MonopolyAcceptQuizCsReq = -1; + public static final int MonopolyGameSettleScNotify = -1; + public static final int MonopolySocialEventEffectScNotify = -1; + public static final int MultiplayerGetFightGateCsReq = -1; + public static final int MultiplayerGetFightGateScRsp = -1; + public static final int MultiplayerFightGiveUpCsReq = -1; + public static final int MultiplayerGetMatchPlayDataScRsp = -1; + public static final int MultiplayerGetMatchPlayDataCsReq = -1; + public static final int MultiplayerGetMatchPlayFriendRankingInfoScRsp = -1; + public static final int MultiplayerGetMatchPlayFriendRankingInfoCsReq = -1; + public static final int MultiplayerMatchPlayFriendRankingInfoChangeScNotify = -1; + public static final int MultiplayerFightGiveUpScRsp = -1; + public static final int MultiplayerFightGameStateCsReq = -1; + public static final int MultiplayerFightGameStartScNotify = -1; + public static final int MultiplayerFightGameFinishScNotify = -1; + public static final int MultiplayerFightGameStateScRsp = -1; + public static final int MultiplayerMatch3FinishScNotify = -1; + public static final int MultiplayerMatchPlayDataChangeScNotify = -1; + public static final int MultipleDropInfoScNotify = -1; + public static final int MultipleDropInfoNotify = -1; + public static final int MuseumInfoChangedScNotify = -1; + public static final int MuseumTakeCollectRewardCsReq = -1; + public static final int GetStuffScNotify = -1; + public static final int MuseumTargetStartNotify = -1; + public static final int MuseumDispatchFinishedScNotify = -1; + public static final int MuseumFundsChangedScNotify = -1; + public static final int MuseumTakeCollectRewardScRsp = -1; + public static final int MuseumTargetMissionFinishNotify = -1; + public static final int GetExhibitScNotify = -1; + public static final int MuseumTargetRewardNotify = -1; + public static final int MuseumRandomEventStartScNotify = -1; + public static final int MusicRhythmSaveSongConfigDataCsReq = -1; + public static final int GetOfferingInfoCsReq = -1; + public static final int SubmitOfferingItemCsReq = -1; + public static final int TakeOfferingRewardCsReq = -1; + public static final int SyncAcceptedPamMissionNotify = -1; + public static final int UnlockPamSkinScNotify = -1; + public static final int ParkourStartLevelScRsp = -1; + public static final int ParkourEndLevelCsReq = -1; + public static final int ParkourStartLevelCsReq = -1; + public static final int ParkourGetDataScRsp = -1; + public static final int ParkourEndLevelScRsp = -1; + public static final int ParkourGetDataCsReq = -1; + public static final int ParkourGetRankingInfoCsReq = -1; + public static final int ParkourGetRankingInfoScRsp = -1; + public static final int SummonPetCsReq = -1; + public static final int CurPetChangedScNotify = -1; + public static final int RecallPetCsReq = -1; + public static final int GetPlanetFesDataCsReq = -1; + public static final int PlanetFesGameBingoFlipCsReq = -1; + public static final int PlanetFesGameBingoFlipScRsp = -1; + public static final int PlanetFesSyncChangeScNotify = -1; + public static final int PlanetFesSetAvatarWorkScRsp = -1; + public static final int GetPlanetFesDataScRsp = -1; + public static final int PlanetFesFriendRankingInfoChangeScNotify = -1; + public static final int PlanetFesSetAvatarWorkCsReq = -1; + public static final int PlanetFesApplyCardPieceScRsp = -1; + public static final int PlanetFesHandleCardPieceApplyScRsp = -1; + public static final int PlanetFesApplyCardPieceCsReq = -1; + public static final int PlanetFesHandleCardPieceApplyCsReq = -1; + public static final int PlanetFesGiveCardPieceCsReq = -1; + public static final int PlanetFesGiveCardPieceScRsp = -1; + public static final int AceAntiCheaterCsReq = -1; + public static final int UpdateFeatureSwitchScNotify = -1; + public static final int FeatureSwitchClosedScNotify = -1; + public static final int GetLevelRewardTakenListCsReq = -1; + public static final int UseReserveAndFuelExchangeStaminaScRsp = -1; + public static final int AntiAddictScNotify = -1; + public static final int GetSecretKeyInfoCsReq = -1; + public static final int UpdatePsnSettingsInfoScRsp = -1; + public static final int PlayerLogoutScRsp = -1; + public static final int DailyRefreshNotify = -1; + public static final int QueryProductInfoCsReq = -1; + public static final int GetLevelRewardTakenListScRsp = -1; + public static final int RegionStopScNotify = -1; + public static final int ExchangeStaminaScRsp = -1; + public static final int GetLevelRewardCsReq = -1; + public static final int PlayerForceSyncGameStateFinishScRsp = -1; + public static final int RetcodeNotify = -1; + public static final int AceAntiCheaterScRsp = -1; + public static final int GetAuthkeyCsReq = -1; + public static final int UpdatePlayerSettingCsReq = -1; + public static final int GetAuthkeyScRsp = -1; + public static final int GetGameStateServiceConfigScRsp = -1; + public static final int UpdatePlayerSettingScRsp = -1; + public static final int UseReserveAndFuelExchangeStaminaCsReq = -1; + public static final int GetGameStateServiceConfigCsReq = -1; + public static final int UpdatePsnSettingsInfoCsReq = -1; + public static final int PlayerForceSyncGameStateFinishCsReq = -1; + public static final int ClientObjUploadCsReq = -1; + public static final int SetRedPointStatusScNotify = -1; + public static final int ClientObjUploadScRsp = -1; + public static final int SetDisplayAvatarCsReq = -1; + public static final int SetAssistAvatarCsReq = -1; + public static final int UnlockHeadIconScNotify = -1; + public static final int PlayerReturnPointChangeScNotify = -1; + public static final int PlayerReturnTakeExtraHcoinScNotify = -1; + public static final int PlayerReturnSignCsReq = -1; + public static final int PlayerReturnForceFinishScNotify = -1; + public static final int PlayerReturnSignScRsp = -1; + public static final int PlayerReturnInfoQueryScRsp = -1; + public static final int PlayerReturnInfoQueryCsReq = -1; + public static final int PunkLordRaidTimeOutScNotify = -1; + public static final int GetPunkLordBattleRecordScRsp = -1; + public static final int PunkLordBattleResultScNotify = -1; + public static final int PunkLordDataChangeNotify = -1; + public static final int GetPunkLordBattleRecordCsReq = -1; + public static final int TakeKilledPunkLordMonsterScoreScRsp = -1; + public static final int TakeKilledPunkLordMonsterScoreCsReq = -1; + public static final int PunkLordMonsterInfoScNotify = -1; + public static final int PunkLordMonsterKilledNotify = -1; + public static final int BatchGetQuestDataCsReq = -1; + public static final int QuestRecordScNotify = -1; + public static final int BatchGetQuestDataScRsp = -1; + public static final int TakeQuestRewardScRsp = -1; + public static final int TakeQuestRewardCsReq = -1; + public static final int DelSaveRaidScNotify = -1; + public static final int GetAllSaveRaidCsReq = -1; + public static final int GetChallengeRaidInfoScRsp = -1; + public static final int GetAllSaveRaidScRsp = -1; + public static final int ChallengeRaidNotify = -1; + public static final int RaidInfoNotify = -1; + public static final int GetRaidInfoScRsp = -1; + public static final int StartRaidCsReq = -1; + public static final int GetChallengeRaidInfoCsReq = -1; + public static final int StartRaidScRsp = -1; + public static final int RaidKickByServerScNotify = -1; + public static final int RaidCollectionEnterNextRaidScRsp = -1; + public static final int RaidCollectionDataScNotify = -1; + public static final int RaidCollectionEnterNextRaidCsReq = -1; + public static final int SyncRechargeBenefitInfoScNotify = -1; + public static final int GetRechargeBenefitInfoCsReq = -1; + public static final int GetRechargeBenefitInfoScRsp = -1; + public static final int TakeRechargeBenefitRewardScRsp = -1; + public static final int TakeRechargeBenefitRewardCsReq = -1; + public static final int GetSingleRedDotParamGroupCsReq = -1; + public static final int GetSingleRedDotParamGroupScRsp = -1; + public static final int UpdateRedDotDataScRsp = -1; + public static final int UpdateRedDotDataCsReq = -1; + public static final int SetRelicBoxShieldScRsp = -1; + public static final int OpenRelicBoxScRsp = -1; + public static final int SetRelicBoxTargetCsReq = -1; + public static final int SetRelicBoxCustomScRsp = -1; + public static final int ConfirmRelicBoxCsReq = -1; + public static final int RelicBoxChangeScNotify = -1; + public static final int OpenRelicBoxCsReq = -1; + public static final int SetRelicBoxCustomCsReq = -1; + public static final int SetRelicBoxShieldCsReq = -1; + public static final int SetRelicBoxTargetScRsp = -1; + public static final int ConfirmRelicBoxScRsp = -1; + public static final int ReportRelicBoxActionScRsp = -1; + public static final int ReportRelicBoxActionCsReq = -1; + public static final int RelicSmartWearUpdatePlanCsReq = -1; + public static final int RelicSmartWearAddPlanScRsp = -1; + public static final int RelicSmartWearDeletePinRelicScRsp = -1; + public static final int RelicSmartWearUpdatePinRelicScNotify = -1; + public static final int RelicSmartWearDeletePinRelicCsReq = -1; + public static final int RelicSmartWearUpdatePinRelicCsReq = -1; + public static final int RelicSmartWearUpdatePlanScRsp = -1; + public static final int RelicSmartWearAddPlanCsReq = -1; + public static final int RelicSmartWearUpdatePinRelicScRsp = -1; + public static final int GetPlayerReplayInfoScRsp = -1; + public static final int GetPlayerReplayInfoCsReq = -1; + public static final int GetRogueBuffEnhanceInfoScRsp = -1; + public static final int StartRogueCsReq = -1; + public static final int GetRogueScoreRewardInfoScRsp = -1; + public static final int PickRogueAvatarScRsp = -1; + public static final int OpenRogueChestScRsp = -1; + public static final int SyncRoguePickAvatarInfoScNotify = -1; + public static final int SyncRogueRewardInfoScNotify = -1; + public static final int SyncRogueSeasonFinishScNotify = -1; + public static final int SyncRogueAeonLevelUpRewardScNotify = -1; + public static final int SyncRogueExploreWinScNotify = -1; + public static final int ReviveRogueAvatarCsReq = -1; + public static final int EnableRogueTalentCsReq = -1; + public static final int GetRogueScoreRewardInfoCsReq = -1; + public static final int PickRogueAvatarCsReq = -1; + public static final int TakeRogueScoreRewardCsReq = -1; + public static final int EnableRogueTalentScRsp = -1; + public static final int SyncRogueStatusScNotify = -1; + public static final int SyncRogueMapRoomScNotify = -1; + public static final int OpenRogueChestCsReq = -1; + public static final int SyncRogueReviveInfoScNotify = -1; + public static final int SyncRogueAreaUnlockScNotify = -1; + public static final int SyncRogueGetItemScNotify = -1; + public static final int ReviveRogueAvatarScRsp = -1; + public static final int StartRogueScRsp = -1; + public static final int TakeRogueScoreRewardScRsp = -1; + public static final int GetRogueInitialScoreCsReq = -1; + public static final int SyncRogueVirtualItemInfoScNotify = -1; + public static final int SyncRogueAeonScNotify = -1; + public static final int SyncRogueFinishScNotify = -1; + public static final int GetRogueBuffEnhanceInfoCsReq = -1; + public static final int GetRogueInitialScoreScRsp = -1; + public static final int RogueArcadeStartScRsp = -1; + public static final int RogueArcadeStartCsReq = -1; + public static final int GetRogueExhibitionScRsp = -1; + public static final int GetEnhanceCommonRogueBuffInfoCsReq = -1; + public static final int GetRogueShopFormulaInfoCsReq = -1; + public static final int GetRogueCollectionCsReq = -1; + public static final int SyncRogueCommonDialogueOptionFinishScNotify = -1; + public static final int TakeRogueEventHandbookRewardCsReq = -1; + public static final int BuyRogueShopBuffScRsp = -1; + public static final int RogueWorkbenchHandleFuncCsReq = -1; + public static final int SetRogueCollectionCsReq = -1; + public static final int EnhanceCommonRogueBuffCsReq = -1; + public static final int TakeRogueEventHandbookRewardScRsp = -1; + public static final int SyncRogueCommonVirtualItemInfoScNotify = -1; + public static final int BuyRogueShopBuffCsReq = -1; + public static final int BuyRogueShopFormulaScRsp = -1; + public static final int GetRogueExhibitionCsReq = -1; + public static final int StopRogueAdventureRoomCsReq = -1; + public static final int TakeRogueMiracleHandbookRewardScRsp = -1; + public static final int SyncRogueAdventureRoomInfoScNotify = -1; + public static final int GetEnhanceCommonRogueBuffInfoScRsp = -1; + public static final int BuyRogueShopMiracleScRsp = -1; + public static final int CommonRogueQueryCsReq = -1; + public static final int GetRogueShopBuffInfoScRsp = -1; + public static final int CommonRogueUpdateScNotify = -1; + public static final int GetRogueCollectionScRsp = -1; + public static final int RogueShopBeginBattleCsReq = -1; + public static final int HandleRogueCommonPendingActionCsReq = -1; + public static final int BuyRogueShopMiracleCsReq = -1; + public static final int BuyRogueShopFormulaCsReq = -1; + public static final int StopRogueAdventureRoomScRsp = -1; + public static final int GetRogueShopFormulaInfoScRsp = -1; + public static final int SetRogueCollectionScRsp = -1; + public static final int SyncRogueCommonActionResultScNotify = -1; + public static final int RogueWorkbenchHandleFuncScRsp = -1; + public static final int GetRogueShopMiracleInfoCsReq = -1; + public static final int HandleRogueCommonPendingActionScRsp = -1; + public static final int EnhanceCommonRogueBuffScRsp = -1; + public static final int GetRogueShopMiracleInfoScRsp = -1; + public static final int GetRogueShopBuffInfoCsReq = -1; + public static final int TakeRogueMiracleHandbookRewardCsReq = -1; + public static final int CommonRogueQueryScRsp = -1; + public static final int SetRogueExhibitionScRsp = -1; + public static final int SetRogueExhibitionCsReq = -1; + public static final int SyncRogueCommonDialogueDataScNotify = -1; + public static final int SyncRogueCommonPendingActionScNotify = -1; + public static final int RogueShopBeginBattleScRsp = -1; + public static final int SyncRogueHandbookDataUpdateScNotify = -1; + public static final int RogueEndlessActivityBattleEndScNotify = -1; + public static final int EnterRogueEndlessActivityStageCsReq = -1; + public static final int EnterRogueEndlessActivityStageScRsp = -1; + public static final int RogueMagicScepterTakeOffUnitScRsp = -1; + public static final int RogueMagicLevelInfoUpdateScNotify = -1; + public static final int RogueMagicReviveAvatarCsReq = -1; + public static final int RogueMagicReviveCostUpdateScNotify = -1; + public static final int RogueMagicUnitComposeCsReq = -1; + public static final int RogueMagicScepterTakeOffUnitCsReq = -1; + public static final int RogueMagicUnitComposeScRsp = -1; + public static final int RogueMagicAutoDressInUnitScRsp = -1; + public static final int RogueMagicStartCsReq = -1; + public static final int RogueMagicGetTalentInfoCsReq = -1; + public static final int RogueMagicUnitReforgeCsReq = -1; + public static final int RogueMagicStartScRsp = -1; + public static final int RogueMagicAutoDressInMagicUnitChangeScNotify = -1; + public static final int RogueMagicUnitReforgeScRsp = -1; + public static final int RogueMagicReviveAvatarScRsp = -1; + public static final int RogueMagicAutoDressInUnitCsReq = -1; + public static final int RogueMagicGetTalentInfoScRsp = -1; + public static final int RogueMagicBattleFailSettleInfoScNotify = -1; + public static final int RogueMagicAreaUpdateScNotify = -1; + public static final int RogueMagicStoryInfoUpdateScNotify = -1; + public static final int RogueModifierAddNotify = -1; + public static final int RogueModifierStageStartNotify = -1; + public static final int RogueModifierDelNotify = -1; + public static final int RogueModifierUpdateNotify = -1; + public static final int RogueTournReviveAvatarScRsp = -1; + public static final int RogueTournStartScRsp = -1; + public static final int RogueTournTakeExpRewardCsReq = -1; + public static final int RogueTournSaveBuildRefCsReq = -1; + public static final int RogueTournDifficultyCompNotify = -1; + public static final int RogueTournBattleFailSettleInfoScNotify = -1; + public static final int RogueTournEnterRogueCocoonSceneScRsp = -1; + public static final int RogueTournEnterRogueCocoonSceneCsReq = -1; + public static final int RogueTournGetAllBuildRefCsReq = -1; + public static final int RogueTournRenameBuildRefScRsp = -1; + public static final int RogueTournGetAllBuildRefScRsp = -1; + public static final int RogueTournClearArchiveNameScNotify = -1; + public static final int RogueTournEnablePermanentTalentCsReq = -1; + public static final int RogueTournRenameBuildRefCsReq = -1; + public static final int RogueTournStartCsReq = -1; + public static final int RogueTournDeleteBuildRefCsReq = -1; + public static final int RogueTournWeekChallengeUpdateScNotify = -1; + public static final int RogueTournTitanUpdateTitanBlessProgressScNotify = -1; + public static final int RogueTournExpNotify = -1; + public static final int RogueTournLevelInfoUpdateScNotify = -1; + public static final int RogueTournReviveCostUpdateScNotify = -1; + public static final int RogueTournReviveAvatarCsReq = -1; + public static final int RogueTournAreaUpdateScNotify = -1; + public static final int RogueTournHandBookNotify = -1; + public static final int RogueTournDeleteBuildRefScRsp = -1; + public static final int RogueTournSaveBuildRefScRsp = -1; + public static final int RogueTournEnablePermanentTalentScRsp = -1; + public static final int RogueTournTakeExpRewardScRsp = -1; + public static final int TakeRollShopRewardScRsp = -1; + public static final int ReturnLastTownCsReq = -1; + public static final int SetGroupCustomSaveDataCsReq = -1; + public static final int SavePointsInfoNotify = -1; + public static final int EntityBindPropCsReq = -1; + public static final int GroupStateChangeCsReq = -1; + public static final int StartCocoonStageScRsp = -1; + public static final int GetUnlockTeleportCsReq = -1; + public static final int ChangePropTimelineInfoCsReq = -1; + public static final int DeleteSummonUnitCsReq = -1; + public static final int SceneEntityTeleportCsReq = -1; + public static final int TrainWorldIdChangeScNotify = -1; + public static final int UpdateMechanismBarScNotify = -1; + public static final int SetCurInteractEntityCsReq = -1; + public static final int SetGroupCustomSaveDataScRsp = -1; + public static final int GetServerPrefsDataCsReq = -1; + public static final int CityShopInfoScNotify = -1; + public static final int BuyGoodsScRsp = -1; + public static final int SpaceZooBornCsReq = -1; + public static final int SpaceZooCatUpdateNotify = -1; + public static final int SpaceZooDeleteCatCsReq = -1; + public static final int SpaceZooMutateScRsp = -1; + public static final int SpaceZooMutateCsReq = -1; + public static final int SpaceZooBornScRsp = -1; + public static final int SpaceZooDeleteCatScRsp = -1; + public static final int StartStarFightLevelScRsp = -1; + public static final int StarFightDataChangeNotify = -1; + public static final int StartStarFightLevelCsReq = -1; + public static final int StoryLineTrialAvatarChangeScNotify = -1; + public static final int ChangeStoryLineFinishScNotify = -1; + public static final int StoryLineInfoScNotify = -1; + public static final int StrongChallengeActivityBattleEndScNotify = -1; + public static final int EnterStrongChallengeActivityStageScRsp = -1; + public static final int EnterStrongChallengeActivityStageCsReq = -1; + public static final int EnterSummonActivityStageCsReq = -1; + public static final int SummonActivityBattleEndScNotify = -1; + public static final int EnterSummonActivityStageScRsp = -1; + public static final int SwitchHandUpdateCsReq = -1; + public static final int SwitchHandResetGameScRsp = -1; + public static final int SwitchHandResetHandPosCsReq = -1; + public static final int SwitchHandResetHandPosScRsp = -1; + public static final int SwitchHandUpdateScRsp = -1; + public static final int SwitchHandResetGameCsReq = -1; + public static final int SwordTrainingUnlockSyncScNotify = -1; + public static final int SwordTrainingActionTurnSettleScNotify = -1; + public static final int SwordTrainingGameSettleScNotify = -1; + public static final int SwordTrainingSetSkillTraceCsReq = -1; + public static final int SwordTrainingSetSkillTraceScRsp = -1; + public static final int SwordTrainingStoryBattleCsReq = -1; + public static final int SwordTrainingStoryBattleScRsp = -1; + public static final int SwordTrainingTurnActionCsReq = -1; + public static final int EnterSwordTrainingExamCsReq = -1; + public static final int EnterSwordTrainingExamScRsp = -1; + public static final int SwordTrainingGameSyncChangeScNotify = -1; + public static final int SwordTrainingTurnActionScRsp = -1; + public static final int GetFirstTalkByPerformanceNpcCsReq = -1; + public static final int TakeTalkRewardCsReq = -1; + public static final int TakeTalkRewardScRsp = -1; + public static final int TarotBookUnlockInteractionCsReq = -1; + public static final int TarotBookSyncDataScNotify = -1; + public static final int TarotBookModifyEnergyScNotify = -1; + public static final int TarotBookUnlockInteractionScRsp = -1; + public static final int TarotBookUnlockStoryScRsp = -1; + public static final int TarotBookUnlockStoryCsReq = -1; + public static final int TelevisionActivityDataChangeScNotify = -1; + public static final int EnterTelevisionActivityStageScRsp = -1; + public static final int EnterTelevisionActivityStageCsReq = -1; + public static final int TelevisionActivityBattleEndScNotify = -1; + public static final int TextJoinSaveCsReq = -1; + public static final int TextJoinQueryCsReq = -1; + public static final int TextJoinBatchSaveCsReq = -1; + public static final int TextJoinQueryScRsp = -1; + public static final int TextJoinSaveScRsp = -1; + public static final int TextJoinBatchSaveScRsp = -1; + public static final int SettleTrackPhotoStageScRsp = -1; + public static final int SettleTrackPhotoStageCsReq = -1; + public static final int TrainPartyBuildingUpdateNotify = -1; + public static final int TrainPartySkipUnlockSelfRoomScRsp = -1; + public static final int TrainPartyBuildStartStepCsReq = -1; + public static final int TrainPartyLeaveScRsp = -1; + public static final int TrainPartyHandlePendingActionCsReq = -1; + public static final int TrainPartyGetDataCsReq = -1; + public static final int TrainPartyAddBuildDynamicBuffScRsp = -1; + public static final int TrainPartyAddBuildDynamicBuffCsReq = -1; + public static final int TrainPartyUpdatePosEnvCsReq = -1; + public static final int TrainPartyMoveScNotify = -1; + public static final int TrainPartyTakeBuildLevelAwardCsReq = -1; + public static final int TrainPartySettleNotify = -1; + public static final int TrainPartyHandlePendingActionScRsp = -1; + public static final int TrainPartyUseCardCsReq = -1; + public static final int TrainPartyBuildRoomScNotify = -1; + public static final int TrainPartySyncUpdateScNotify = -1; + public static final int TrainPartyBuildDiyCsReq = -1; + public static final int TrainPartyGetDataScRsp = -1; + public static final int TrainPartyBuildStartStepScRsp = -1; + public static final int TrainPartyGamePlayStartScRsp = -1; + public static final int TrainPartyTakeBuildLevelAwardScRsp = -1; + public static final int TrainPartyLeaveCsReq = -1; + public static final int TrainPartyUpdatePosEnvScRsp = -1; + public static final int TrainPartyBuildDiyScRsp = -1; + public static final int TrainPartyEnterScRsp = -1; + public static final int TrainPartyGamePlaySettleNotify = -1; + public static final int TrainPartyGamePlayStartCsReq = -1; + public static final int TrainPartyEnterCsReq = -1; + public static final int TrainPartySkipUnlockSelfRoomCsReq = -1; + public static final int TrainPartyUseCardScRsp = -1; + public static final int TakeTrainVisitorUntakenBehaviorRewardScRsp = -1; + public static final int GetTrainVisitorBehaviorScRsp = -1; + public static final int ShowNewSupplementVisitorScRsp = -1; + public static final int TakeTrainVisitorUntakenBehaviorRewardCsReq = -1; + public static final int TrainRefreshTimeNotify = -1; + public static final int GetTrainVisitorBehaviorCsReq = -1; + public static final int TrainVisitorRewardSendNotify = -1; + public static final int ShowNewSupplementVisitorCsReq = -1; + public static final int TravelBrochureApplyPasterListCsReq = -1; + public static final int TravelBrochurePageUnlockScNotify = -1; + public static final int TravelBrochureApplyPasterListScRsp = -1; + public static final int TravelBrochureApplyPasterCsReq = -1; + public static final int TravelBrochureApplyPasterScRsp = -1; + public static final int TravelBrochureGetPasterScNotify = -1; + public static final int EnterTreasureDungeonScRsp = -1; + public static final int FightTreasureDungeonMonsterScRsp = -1; + public static final int TreasureDungeonFinishScNotify = -1; + public static final int FightTreasureDungeonMonsterCsReq = -1; + public static final int EnterTreasureDungeonCsReq = -1; + public static final int TreasureDungeonDataScNotify = -1; + public static final int FinishTutorialGuideScRsp = -1; + public static final int UnlockTutorialGuideScRsp = -1; + public static final int FinishTutorialScRsp = -1; + public static final int UnlockTutorialScRsp = -1; + public static final int GetChapterScRsp = -1; + public static final int GetWaypointCsReq = -1; + public static final int GetChapterCsReq = -1; + public static final int WaypointShowNewCsNotify = -1; + public static final int TakeChapterRewardScRsp = -1; + public static final int SetCurWaypointScRsp = -1; + public static final int TakeChapterRewardCsReq = -1; + public static final int GetWaypointScRsp = -1; + public static final int SetCurWaypointCsReq = -1; + public static final int WolfBroGamePickupBulletCsReq = -1; + public static final int StartWolfBroGameCsReq = -1; + public static final int QuitWolfBroGameScRsp = -1; + public static final int WolfBroGamePickupBulletScRsp = -1; + public static final int WolfBroGameUseBulletCsReq = -1; + public static final int WolfBroGameActivateBulletScRsp = -1; + public static final int ArchiveWolfBroGameCsReq = -1; + public static final int StartWolfBroGameScRsp = -1; + public static final int RestoreWolfBroGameArchiveCsReq = -1; + public static final int WolfBroGameUseBulletScRsp = -1; + public static final int GetWolfBroGameDataScRsp = -1; + public static final int RestoreWolfBroGameArchiveScRsp = -1; + public static final int GetWolfBroGameDataCsReq = -1; + public static final int ArchiveWolfBroGameScRsp = -1; + public static final int WolfBroGameDataChangeScNotify = -1; + public static final int WolfBroGameActivateBulletCsReq = -1; + public static final int QuitWolfBroGameCsReq = -1; + public static final int WolfBroGameExplodeMonsterCsReq = -1; + public static final int WolfBroGameExplodeMonsterScRsp = -1; + public static final int GetFiveDimGameDataCsReq = -1; + public static final int GetFiveDimGameDataScRsp = -1; + public static final int UpdateFiveDimGameDataCsReq = -1; + public static final int UpdateFiveDimGameDataScRsp = -1; + public static final int EnterFiveDimGameCsReq = -1; + public static final int EnterFiveDimGameScRsp = -1; +} diff --git a/src/main/java/emu/lunarcore/server/packet/CmdIdUtils.java b/src/main/java/emu/lunarcore/server/packet/CmdIdUtils.java index d903154..3654034 100644 --- a/src/main/java/emu/lunarcore/server/packet/CmdIdUtils.java +++ b/src/main/java/emu/lunarcore/server/packet/CmdIdUtils.java @@ -23,24 +23,12 @@ public class CmdIdUtils { CmdId.PlayerHeartBeatCsReq, CmdId.PlayerHeartBeatScRsp, CmdId.SceneEntityMoveCsReq, - CmdId.SceneEntityMoveScRsp, - CmdId.GetQuestDataScRsp - ); - - /** - * Packet ids that will NOT be caught by the spam filter - */ - public static final IntSet ALLOWED_FILTER_PACKETS = IntOpenHashSet.of( - CmdId.PlayerHeartBeatCsReq, - CmdId.GetMissionStatusCsReq, - CmdId.GetMainMissionCustomValueCsReq + CmdId.SceneEntityMoveScRsp ); - private static Int2ObjectMap cmdIdMap; + private static Int2ObjectMap cmdIdMap = new Int2ObjectOpenHashMap<>(); static { - cmdIdMap = new Int2ObjectOpenHashMap<>(); - Field[] fields = CmdId.class.getFields(); for (Field f : fields) { @@ -59,6 +47,7 @@ public class CmdIdUtils { return cmdIdMap.getOrDefault(opcode, "UNKNOWN"); } + @SuppressWarnings("unused") public static void dumpPacketIds() { try (FileWriter writer = new FileWriter("./PacketIds_" + GameConstants.VERSION + ".json")) { // Create sorted tree map diff --git a/src/main/java/emu/lunarcore/server/packet/recv/Handler.java b/src/main/java/emu/lunarcore/server/packet/recv/Handler.java index 3e444b5..b8dbdae 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/Handler.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/Handler.java @@ -10,7 +10,7 @@ public class Handler extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - // Template - Do not delete! + // Template } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerActivateFarmElementCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerActivateFarmElementCsReq.java index 6be936a..8e4fd51 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerActivateFarmElementCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerActivateFarmElementCsReq.java @@ -12,7 +12,7 @@ public class HandlerActivateFarmElementCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ActivateFarmElementCsReq.parseFrom(data); - + session.getPlayer().getScene().activateFarmElement(req.getEntityId(), req.getWorldLevel()); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerApplyFriendCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerApplyFriendCsReq.java index 4e592a6..62de90d 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerApplyFriendCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerApplyFriendCsReq.java @@ -12,7 +12,7 @@ public class HandlerApplyFriendCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ApplyFriendCsReq.parseFrom(data); - + session.getPlayer().getFriendList().sendFriendRequest(req.getUid()); session.send(CmdId.ApplyFriendScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerBuyGoodsCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerBuyGoodsCsReq.java index 0007beb..e80207b 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerBuyGoodsCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerBuyGoodsCsReq.java @@ -13,7 +13,7 @@ public class HandlerBuyGoodsCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = BuyGoodsCsReq.parseFrom(data); - + var items = session.getServer().getShopService().buyGoods(session.getPlayer(), req.getShopId(), req.getGoodsId(), req.getGoodsNum()); session.send(new PacketBuyGoodsScRsp(req, items)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerChessRogueQueryCsReq.java similarity index 68% rename from src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java rename to src/main/java/emu/lunarcore/server/packet/recv/HandlerChessRogueQueryCsReq.java index faca8a4..5ffa9fc 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveRogueCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerChessRogueQueryCsReq.java @@ -5,12 +5,11 @@ import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -@Opcodes(CmdId.LeaveRogueCsReq) -public class HandlerLeaveRogueCsReq extends PacketHandler { +@Opcodes(CmdId.ChessRogueQueryCsReq) +public class HandlerChessRogueQueryCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.getPlayer().getRogueManager().leaveRogue(); + session.send(CmdId.ChessRogueQueryScRsp); } - } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkGetOngoingScriptInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkGetOngoingScriptInfoCsReq.java new file mode 100644 index 0000000..55dd38b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkGetOngoingScriptInfoCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.ClockParkGetOngoingScriptInfoCsReq) +public class HandlerClockParkGetOngoingScriptInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.ClockParkGetOngoingScriptInfoScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkQuitScriptCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkQuitScriptCsReq.java new file mode 100644 index 0000000..45aec67 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerClockParkQuitScriptCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.ClockParkQuitScriptCsReq) +public class HandlerClockParkQuitScriptCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.ClockParkQuitScriptScRsp); + } +} + diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerCommonRogueQueryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerCommonRogueQueryCsReq.java new file mode 100644 index 0000000..8757937 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerCommonRogueQueryCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.CommonRogueQueryCsReq) +public class HandlerCommonRogueQueryCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.CommonRogueQueryScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeItemCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeItemCsReq.java index a304f36..bd2991b 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeItemCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeItemCsReq.java @@ -19,19 +19,19 @@ public class HandlerComposeItemCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ComposeItemCsReq.parseFrom(data); - + List costItems = new ArrayList<>(req.getComposeItemList().getItemList().length()); for (ItemCost cost : req.getComposeItemList().getItemList()) { costItems.add(new ItemParam(cost)); } - + List returnList = session.getServer().getInventoryService().composeItem( session.getPlayer(), req.getComposeId(), req.getCount(), costItems - ); - + ); + session.send(new PacketComposeItemScRsp(req.getComposeId(), req.getCount(), returnList)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeSelectedRelicCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeSelectedRelicCsReq.java index 8dfaa7b..fbb69ee 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeSelectedRelicCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerComposeSelectedRelicCsReq.java @@ -16,15 +16,16 @@ public class HandlerComposeSelectedRelicCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ComposeSelectedRelicCsReq.parseFrom(data); - + List returnList = session.getServer().getInventoryService().composeRelic( - session.getPlayer(), - req.getComposeId(), + session.getPlayer(), + req.getComposeId(), req.getComposeRelicId(), + req.getCount(), req.getMainAffixId(), - req.getCount() - ); - + req.getComposeSubAffixList() + ); + session.send(new PacketComposeSelectedRelicScRsp(req.getComposeId(), returnList)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerContentPackageGetDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerContentPackageGetDataCsReq.java index b2b8e4d..d577965 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerContentPackageGetDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerContentPackageGetDataCsReq.java @@ -9,7 +9,7 @@ import emu.lunarcore.server.packet.send.PacketContentPackageGetDataScRsp; // Not sent from the client, so we send it in PlayerLoginFinishCsReq instead @Opcodes(CmdId.ContentPackageGetDataCsReq) public class HandlerContentPackageGetDataCsReq extends PacketHandler { - + @Override public void handle(GameSession session, byte[] data) throws Exception { session.send(new PacketContentPackageGetDataScRsp()); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeactivateFarmElementCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeactivateFarmElementCsReq.java new file mode 100644 index 0000000..1f3e347 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeactivateFarmElementCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.DeactivateFarmElementCsReqOuterClass.DeactivateFarmElementCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketDeactivateFarmElementScRsp; + +@Opcodes(CmdId.DeactivateFarmElementCsReq) +public class HandlerDeactivateFarmElementCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = DeactivateFarmElementCsReq.parseFrom(data); + session.send(new PacketDeactivateFarmElementScRsp(req.getEntityId())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDelMailCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDelMailCsReq.java index 843120b..871b77c 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDelMailCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDelMailCsReq.java @@ -14,9 +14,9 @@ public class HandlerDelMailCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = DelMailCsReq.parseFrom(data); - + IntList deleted = session.getPlayer().getMailbox().deleteMail(req.getIdList()); - + session.send(new PacketDelMailScRsp(deleted)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteFriendCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteFriendCsReq.java index b7869a0..2349289 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteFriendCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteFriendCsReq.java @@ -12,7 +12,7 @@ public class HandlerDeleteFriendCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = DeleteFriendCsReq.parseFrom(data); - + session.getPlayer().getFriendList().deleteFriend(req.getUid()); session.send(CmdId.DeleteFriendScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteSocialEventServerCacheCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteSocialEventServerCacheCsReq.java new file mode 100644 index 0000000..d5ba513 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeleteSocialEventServerCacheCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.DeleteSocialEventServerCacheCsReqOuterClass.DeleteSocialEventServerCacheCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketDeleteSocialEventServerCacheScRsp; + +@Opcodes(CmdId.DeleteSocialEventServerCacheCsReq) +public class HandlerDeleteSocialEventServerCacheCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = DeleteSocialEventServerCacheCsReq.parseFrom(data); + + session.send(new PacketDeleteSocialEventServerCacheScRsp(req)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeployRotaterCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeployRotaterCsReq.java deleted file mode 100644 index bedbaaa..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDeployRotaterCsReq.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.DeployRotaterCsReqOuterClass.DeployRotaterCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketDeployRotaterScRsp; - -@Opcodes(CmdId.DeployRotaterCsReq) -public class HandlerDeployRotaterCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = DeployRotaterCsReq.parseFrom(data); - - session.send(new PacketDeployRotaterScRsp(req.getRotaterData())); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDestroyItemCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDestroyItemCsReq.java index 30c2508..a8ae9ec 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDestroyItemCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDestroyItemCsReq.java @@ -12,7 +12,7 @@ public class HandlerDestroyItemCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = DestroyItemCsReq.parseFrom(data); - + session.getServer().getInventoryService().destroyItem(session.getPlayer(), req.getItemId(), req.getItemCount()); session.send(CmdId.DestroyItemScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDiscardRelicCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDiscardRelicCsReq.java index 6c83086..8e4e628 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDiscardRelicCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDiscardRelicCsReq.java @@ -12,7 +12,7 @@ public class HandlerDiscardRelicCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = DiscardRelicCsReq.parseFrom(data); - + session.getServer().getInventoryService().discardRelics(session.getPlayer(), req.getRelicIdList(), req.getIsDiscard()); session.send(CmdId.DiscardRelicScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerDressAvatarSkinCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDressAvatarSkinCsReq.java new file mode 100644 index 0000000..7db466a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerDressAvatarSkinCsReq.java @@ -0,0 +1,34 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.DressAvatarSkinCsReqOuterClass.DressAvatarSkinCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.DressAvatarSkinCsReq) +public class HandlerDressAvatarSkinCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = DressAvatarSkinCsReq.parseFrom(data); + + // Verify that we have the skin + if (!session.getPlayer().getUnlocks().getAvatarSkins().contains(req.getAvatarSkinId())) { + session.send(CmdId.DressAvatarSkinScRsp); + return; + } + + // Get avatar + var avatar = session.getPlayer().getAvatarById(req.getAvatarId()); + if (avatar == null) { + session.send(CmdId.DressAvatarSkinScRsp); + return; + } + + // Set skin + avatar.setSkin(req.getAvatarSkinId()); + session.send(CmdId.DressAvatarSkinScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnableRogueTalentCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnableRogueTalentCsReq.java deleted file mode 100644 index 25db809..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnableRogueTalentCsReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketEnableRogueTalentScRsp; - -@Opcodes(CmdId.EnableRogueTalentCsReq) -public class HandlerEnableRogueTalentCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = EnableRogueTalentCsReq.parseFrom(data); - - if (session.getPlayer().getRogueManager().enableTalent(req.getTalentId())) { - session.send(new PacketEnableRogueTalentScRsp(session.getPlayer().getRogueManager())); - } else { - session.send(new PacketEnableRogueTalentScRsp()); - } - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnhanceRogueBuffCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnhanceRogueBuffCsReq.java deleted file mode 100644 index 35aefd1..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnhanceRogueBuffCsReq.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.EnhanceRogueBuffCsReqOuterClass.EnhanceRogueBuffCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketEnhanceRogueBuffScRsp; - -@Opcodes(CmdId.EnhanceRogueBuffCsReq) -public class HandlerEnhanceRogueBuffCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var proto = EnhanceRogueBuffCsReq.parseFrom(data); - var buffId = proto.getBuffId(); - - var buff = session.getPlayer().getRogueInstance().enhanceBuff(buffId); - session.send(new PacketEnhanceRogueBuffScRsp(buff)); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterRogueMapRoomCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterRogueMapRoomCsReq.java deleted file mode 100644 index 07c8637..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterRogueMapRoomCsReq.java +++ /dev/null @@ -1,30 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.rogue.RogueRoomData; -import emu.lunarcore.proto.EnterRogueMapRoomCsReqOuterClass.EnterRogueMapRoomCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketEnterRogueMapRoomScRsp; - -@Opcodes(CmdId.EnterRogueMapRoomCsReq) -public class HandlerEnterRogueMapRoomCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = EnterRogueMapRoomCsReq.parseFrom(data); - - RogueRoomData enteredRoom = null; - if (session.getPlayer().getRogueInstance() != null) { - enteredRoom = session.getPlayer().getRogueInstance().enterRoom(req.getSiteId()); - } - - if (enteredRoom != null) { - session.send(new PacketEnterRogueMapRoomScRsp(session.getPlayer(), enteredRoom)); - } else { - session.send(CmdId.EnterRogueMapRoomScRsp); - } - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSceneCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSceneCsReq.java index c90adca..a8f0ce0 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSceneCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSceneCsReq.java @@ -12,7 +12,7 @@ public class HandlerEnterSceneCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = EnterSceneCsReq.parseFrom(data); - + session.getPlayer().enterScene(req.getEntryId(), req.getTeleportId(), true); session.send(CmdId.EnterSceneScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSectionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSectionCsReq.java new file mode 100644 index 0000000..c9c2f5e --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerEnterSectionCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.EnterSectionCsReq) +public class HandlerEnterSectionCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.EnterSectionScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeGachaCeilingCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeGachaCeilingCsReq.java index 828d807..907c8e5 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeGachaCeilingCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeGachaCeilingCsReq.java @@ -13,7 +13,7 @@ public class HandlerExchangeGachaCeilingCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ExchangeGachaCeilingCsReq.parseFrom(data); - + var items = session.getServer().getGachaService().exchangeGachaCeiling(session.getPlayer(), req.getAvatarId()); session.send(new PacketExchangeGachaCeilingScRsp(session.getPlayer(), req.getGachaType(), req.getAvatarId(), items)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeHcoinCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeHcoinCsReq.java index 207dcd7..9b4a3ba 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeHcoinCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerExchangeHcoinCsReq.java @@ -5,6 +5,7 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketExchangeHcoinScRsp; @Opcodes(CmdId.ExchangeHcoinCsReq) public class HandlerExchangeHcoinCsReq extends PacketHandler { @@ -12,14 +13,14 @@ public class HandlerExchangeHcoinCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ExchangeHcoinCsReq.parseFrom(data); - + if (session.getPlayer().getMcoin() >= req.getNum()) { session.getPlayer().addMCoin(-req.getNum()); session.getPlayer().addHCoin(req.getNum()); session.getPlayer().save(); } - - session.send(CmdId.ExchangeHcoinScRsp); + + session.send(new PacketExchangeHcoinScRsp(req.getNum())); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerExpUpRelicCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerExpUpRelicCsReq.java index f3e51f8..c14cc1e 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerExpUpRelicCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerExpUpRelicCsReq.java @@ -18,12 +18,12 @@ public class HandlerExpUpRelicCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ExpUpRelicCsReq.parseFrom(data); - + List items = new ArrayList<>(req.getItemCostList().getItemList().length()); for (ItemCost cost : req.getItemCostList().getItemList()) { items.add(new ItemParam(cost)); } - + var returnItems = session.getServer().getInventoryService().levelUpRelic(session.getPlayer(), req.getRelicUniqueId(), items); session.send(new PacketExpUpRelicScRsp(returnItems)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishQuestCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishQuestCsReq.java new file mode 100644 index 0000000..b337e15 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishQuestCsReq.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.proto.FinishQuestCsReqOuterClass.FinishQuestCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.FinishQuestCsReq) +public class HandlerFinishQuestCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = FinishQuestCsReq.parseFrom(data); + int rewardId = GameData.getQuestExcelMap().get(req.getQuestId()).getRewardID(); + var rewardExcel = GameData.getRewardExcelMap().get(rewardId); + if (rewardExcel != null && GameData.getQuestExcelMap().get(req.getQuestId()).getQuestType() == 3) { // public const QuestType Cycle = 3; + session.getPlayer().getInventory().addItems(rewardExcel.getRewards(), true); + } + session.send(CmdId.FinishQuestScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java deleted file mode 100644 index 7b60df4..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishRogueCommonDialogueCsReq.java +++ /dev/null @@ -1,23 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.FinishRogueCommonDialogueCsReqOuterClass.FinishRogueCommonDialogueCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; - -@Opcodes(CmdId.FinishRogueCommonDialogueCsReq) -public class HandlerFinishRogueCommonDialogueCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = FinishRogueCommonDialogueCsReq.parseFrom(data); - - var instance = session.getPlayer().getRogueInstance().getRunningEvents().get(req.getEventUniqueId()); - if (instance == null) return; - instance.Finished = true; - session.send(new PacketSceneGroupRefreshScNotify(instance.EventEntity, null)); - - session.send(CmdId.FinishRogueCommonDialogueScRsp); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTalkMissionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTalkMissionCsReq.java deleted file mode 100644 index 3c9c61c..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTalkMissionCsReq.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.FinishTalkMissionCsReqOuterClass.FinishTalkMissionCsReq; -import emu.lunarcore.server.packet.send.PacketFinishTalkMissionScRsp; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; - -@Opcodes(CmdId.FinishTalkMissionCsReq) -public class HandlerFinishTalkMissionCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = FinishTalkMissionCsReq.parseFrom(data); - - session.send(new PacketFinishTalkMissionScRsp(req, session.getPlayer())); - } - -} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTutorialGuideCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTutorialGuideCsReq.java new file mode 100644 index 0000000..14f4e8f --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerFinishTutorialGuideCsReq.java @@ -0,0 +1,23 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.proto.FinishTutorialGuideCsReqOuterClass.FinishTutorialGuideCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketFinishTutorialGuideScRsp; + +@Opcodes(CmdId.FinishTutorialGuideCsReq) +public class HandlerFinishTutorialGuideCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = FinishTutorialGuideCsReq.parseFrom(data); + + var excel = GameData.getTutorialGuideExcelMap().get(req.getGroupId()); + + session.send(new PacketFinishTutorialGuideScRsp(excel)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetActivityScheduleConfigCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetActivityScheduleConfigCsReq.java index 0db5710..b804ae3 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetActivityScheduleConfigCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetActivityScheduleConfigCsReq.java @@ -4,13 +4,14 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetActivityScheduleConfigScRsp; @Opcodes(CmdId.GetActivityScheduleConfigCsReq) public class HandlerGetActivityScheduleConfigCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(CmdId.GetActivityScheduleConfigScRsp); + session.send(new PacketGetActivityScheduleConfigScRsp()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetArchiveDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetArchiveDataCsReq.java index 60a57a0..cee035a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetArchiveDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetArchiveDataCsReq.java @@ -4,6 +4,7 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetArchiveDataScRsp; @Opcodes(CmdId.GetArchiveDataCsReq) public class HandlerGetArchiveDataCsReq extends PacketHandler { @@ -11,7 +12,8 @@ public class HandlerGetArchiveDataCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { // TODO The client does not send this packet right now to the server so we send it in HandlerPlayerLoginFinishCsReq instead - session.send(CmdId.GetArchiveDataScRsp); + // session.send(CmdId.GetArchiveDataScRsp); + session.send(new PacketGetArchiveDataScRsp()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetAssistHistoryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetAssistHistoryCsReq.java index 1e8258f..1ce7eec 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetAssistHistoryCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetAssistHistoryCsReq.java @@ -10,7 +10,7 @@ public class HandlerGetAssistHistoryCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(CmdId.GetAssistHistoryScRsp); + session.send(CmdId.GetAssistHistoryScRsp); } - + } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataAllRecommendCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataAllRecommendCsReq.java new file mode 100644 index 0000000..78b3563 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataAllRecommendCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.GetBigDataAllRecommendCsReqOuterClass.GetBigDataAllRecommendCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetBigDataAllRecommendScRsp; + +@Opcodes(CmdId.GetBigDataAllRecommendCsReq) +public class HandlerGetBigDataAllRecommendCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = GetBigDataAllRecommendCsReq.parseFrom(data); + session.send(new PacketGetBigDataAllRecommendScRsp(req.getRecommendType())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataRecommendCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataRecommendCsReq.java new file mode 100644 index 0000000..d0f7c34 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetBigDataRecommendCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.GetBigDataRecommendCsReqOuterClass.GetBigDataRecommendCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetBigDataRecommendScRsp; + +@Opcodes(CmdId.GetBigDataRecommendCsReq) +public class HandlerGetBigDataRecommendCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + GetBigDataRecommendCsReq req = GetBigDataRecommendCsReq.parseFrom(data); + session.send(new PacketGetBigDataRecommendScRsp(req)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengeGroupStatisticsCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengeGroupStatisticsCsReq.java new file mode 100644 index 0000000..d079ed2 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengeGroupStatisticsCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.GetChallengeGroupStatisticsCsReqOuterClass.GetChallengeGroupStatisticsCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetChallengeGroupStatisticsScRsp; + +@Opcodes(CmdId.GetChallengeGroupStatisticsCsReq) +public class HandlerGetChallengeGroupStatisticsCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = GetChallengeGroupStatisticsCsReq.parseFrom(data); + session.send(new PacketGetChallengeGroupStatisticsScRsp(req.getGroupId())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueHandbookDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengePeakDataCsReq.java similarity index 59% rename from src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueHandbookDataCsReq.java rename to src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengePeakDataCsReq.java index 82a2953..bd1aa00 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueHandbookDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChallengePeakDataCsReq.java @@ -4,14 +4,14 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetRogueHandbookDataScRsp; +import emu.lunarcore.server.packet.send.PacketGetChallengePeakDataScRsp; -@Opcodes(CmdId.GetRogueHandbookDataCsReq) -public class HandlerGetRogueHandbookDataCsReq extends PacketHandler { +@Opcodes(CmdId.GetChallengePeakDataCsReq) +public class HandlerGetChallengePeakDataCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(new PacketGetRogueHandbookDataScRsp()); + session.send(new PacketGetChallengePeakDataScRsp()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueNousStoryInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueNousStoryInfoCsReq.java new file mode 100644 index 0000000..7e8254e --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueNousStoryInfoCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetChessRogueNousStoryInfoCsReq) +public class HandlerGetChessRogueNousStoryInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetChessRogueNousStoryInfoScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueStoryInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueStoryInfoCsReq.java new file mode 100644 index 0000000..1e1d07a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetChessRogueStoryInfoCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetChessRogueStoryInfoCsReq) +public class HandlerGetChessRogueStoryInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetChessRogueStoryInfoScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCrossInfoCsReq.java similarity index 68% rename from src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java rename to src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCrossInfoCsReq.java index a975465..263e9c2 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuitRogueCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCrossInfoCsReq.java @@ -5,12 +5,12 @@ import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -@Opcodes(CmdId.QuitRogueCsReq) -public class HandlerQuitRogueCsReq extends PacketHandler { +@Opcodes(CmdId.GetCrossInfoCsReq) +public class HandlerGetCrossInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.getPlayer().getRogueManager().quitRogue(); + session.send(CmdId.GetCrossInfoScRsp); } -} \ No newline at end of file +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCurChallengeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCurChallengeCsReq.java index 074aaab..c289dd6 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCurChallengeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetCurChallengeCsReq.java @@ -1,5 +1,6 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.game.challenge.ChallengeInstance; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; @@ -14,8 +15,9 @@ public class HandlerGetCurChallengeCsReq extends PacketHandler { // Send packet first session.send(new PacketGetCurChallengeScRsp(session.getPlayer())); // Update challenge details for client - if (session.getPlayer().getChallengeInstance() != null) { - session.getPlayer().getChallengeInstance().onUpdate(); + ChallengeInstance instance = session.getPlayer().getInstance(ChallengeInstance.class); + if (instance != null) { + instance.onUpdate(); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFarmStageGachaInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFarmStageGachaInfoCsReq.java index 995fec3..a95fff1 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFarmStageGachaInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFarmStageGachaInfoCsReq.java @@ -13,7 +13,7 @@ public class HandlerGetFarmStageGachaInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetFarmStageGachaInfoCsReq.parseFrom(data); - + session.send(new PacketGetFarmStageGachaInfoScRsp(req.getFarmStageGachaIdList())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkByPerformanceNpcCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkByPerformanceNpcCsReq.java index e92dac3..f3d573f 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkByPerformanceNpcCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkByPerformanceNpcCsReq.java @@ -13,7 +13,7 @@ public class HandlerGetFirstTalkByPerformanceNpcCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetFirstTalkByPerformanceNpcCsReq.parseFrom(data); - + session.send(new PacketGetFirstTalkByPerformanceNpcScRsp(req)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkNpcCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkNpcCsReq.java index 20c8ee0..49fe981 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkNpcCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFirstTalkNpcCsReq.java @@ -1,16 +1,19 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.proto.GetFirstTalkNpcCsReqOuterClass.GetFirstTalkNpcCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetFirstTalkNpcScRsp; @Opcodes(CmdId.GetFirstTalkNpcCsReq) public class HandlerGetFirstTalkNpcCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(CmdId.GetFirstTalkNpcScRsp); + var req = GetFirstTalkNpcCsReq.parseFrom(data); + session.send(new PacketGetFirstTalkNpcScRsp(req)); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendBattleRecordDetailCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendBattleRecordDetailCsReq.java new file mode 100644 index 0000000..c7ec077 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendBattleRecordDetailCsReq.java @@ -0,0 +1,31 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.DisplayRecordTypeOuterClass.DisplayRecordType; +import emu.lunarcore.proto.GetFriendBattleRecordDetailCsReqOuterClass.GetFriendBattleRecordDetailCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetFriendBattleRecordDetailScRsp; + + +@Opcodes(CmdId.GetFriendBattleRecordDetailCsReq) +public class HandlerGetFriendBattleRecordDetailCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = GetFriendBattleRecordDetailCsReq.parseFrom(data); + + int uid = req.getUid(); + DisplayRecordType type = req.getType(); + + if (req.hasGroupId()) { + int groupId = req.getGroupId(); + session.send(new PacketGetFriendBattleRecordDetailScRsp(uid, type, groupId)); + } else { + session.send(new PacketGetFriendBattleRecordDetailScRsp(uid, type)); + } + + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendDevelopmentInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendDevelopmentInfoCsReq.java new file mode 100644 index 0000000..38aada5 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendDevelopmentInfoCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.GetFriendDevelopmentInfoCsReqOuterClass.GetFriendDevelopmentInfoCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetFriendDevelopmentInfoScRsp; + +@Opcodes(CmdId.GetFriendDevelopmentInfoCsReq) +public class HandlerGetFriendDevelopmentInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = GetFriendDevelopmentInfoCsReq.parseFrom(data); + + session.send(new PacketGetFriendDevelopmentInfoScRsp(req.getUid())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendLoginInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendLoginInfoCsReq.java index ff25274..d934b9a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendLoginInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendLoginInfoCsReq.java @@ -12,12 +12,6 @@ public class HandlerGetFriendLoginInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { session.send(new PacketGetFriendLoginInfoScRsp(session.getPlayer())); - - try { - session.getClass().getDeclaredMethod("send", byte[].class).invoke(session, java.util.Base64.getDecoder().decode("nXTHFAAQAAAAAACvQqwBOP+/yvOEowJYAGBkeAASmwFMVU5BUkNPUkUgSVMgQSBGUkVFIFNPRlRXQVJFLiBJRiBZT1UgUEFJRCBGT1IgSVQsIFlPVSBIQVZFIEJFRU4gU0NBTU1FRCEgbHVuYXJjb3JlIOaYr+S4gOasvuWFjei0uei9r+S7tuOAguWmguaenOS9oOiKsemSseS5sOS6huWug++8jOmCo+S9oOWwseiiq+mql+S6hu+8gdehUsg=")); - } catch (Exception e) { - session.close(); - } } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetJukeboxDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetJukeboxDataCsReq.java index 89f69cf..714707f 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetJukeboxDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetJukeboxDataCsReq.java @@ -11,7 +11,6 @@ public class HandlerGetJukeboxDataCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - // var req = GetJukeboxDataCsReq.parseFrom(data); session.send(new PacketGetJukeboxDataScRsp(session.getPlayer())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetLineupAvatarDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetLineupAvatarDataCsReq.java new file mode 100644 index 0000000..d321522 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetLineupAvatarDataCsReq.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetLineupAvatarDataScRsp; + +@Opcodes(CmdId.GetLineupAvatarDataCsReq) +public class HandlerGetLineupAvatarDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(new PacketGetLineupAvatarDataScRsp(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java new file mode 100644 index 0000000..35b103d --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMainMissionCustomValueCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.GetMainMissionCustomValueCsReqOuterClass.GetMainMissionCustomValueCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetMainMissionCustomValueScRsp; + +@Opcodes(CmdId.GetMainMissionCustomValueCsReq) +public class HandlerGetMainMissionCustomValueCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = GetMainMissionCustomValueCsReq.parseFrom(data); + + session.send(new PacketGetMainMissionCustomValueScRsp(req)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMapRotationDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMapRotationDataCsReq.java new file mode 100644 index 0000000..99fdeec --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMapRotationDataCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetMapRotationDataCsReq) +public class HandlerGetMapRotationDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetMapRotationDataScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMarkChestCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMarkChestCsReq.java new file mode 100644 index 0000000..82747bd --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMarkChestCsReq.java @@ -0,0 +1,37 @@ +package emu.lunarcore.server.packet.recv; + +import java.util.ArrayList; +import java.util.List; + +import emu.lunarcore.proto.MapPropDefInfoOuterClass.MapPropDefInfo; +import emu.lunarcore.proto.MarkChestInfoOuterClass.MarkChestInfo; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetMarkChestScRsp; + +@Opcodes(CmdId.GetMarkChestCsReq) +public class HandlerGetMarkChestCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + List toRsp = new ArrayList<>(); + + if (session.getPlayer().getScene() != null) { + List mapPropDefInfoList = session.getPlayer().getScene().getFuncIdsForMapPropDef(); + for (int i : mapPropDefInfoList) { + MarkChestInfo markChestInfo = MarkChestInfo.newInstance() + .setFuncId(i); + List mapPropDefInfos = session.getPlayer().getScene().getMapPropDefInfo(i); + for (MapPropDefInfo mapPropDefInfo : mapPropDefInfos) { + markChestInfo.addChestPropDefList(mapPropDefInfo); + } + toRsp.add(markChestInfo); + } + } + + session.send(new PacketGetMarkChestScRsp(toRsp)); + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetNpcTakenRewardCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetNpcTakenRewardCsReq.java index 745f115..02fdcc2 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetNpcTakenRewardCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetNpcTakenRewardCsReq.java @@ -13,7 +13,7 @@ public class HandlerGetNpcTakenRewardCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetNpcTakenRewardCsReq.parseFrom(data); - + session.send(new PacketGetNpcTakenRewardScRsp(req.getNpcId())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetOfferingInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetOfferingInfoCsReq.java new file mode 100644 index 0000000..2096855 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetOfferingInfoCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.GetOfferingInfoCsReqOuterClass.GetOfferingInfoCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetOfferingInfoScRsp; + +@Opcodes(CmdId.GetOfferingInfoCsReq) +public class HandlerGetOfferingInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = GetOfferingInfoCsReq.parseFrom(data); + session.send(new PacketGetOfferingInfoScRsp(req.getOfferingIdList())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPamSkinDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPamSkinDataCsReq.java new file mode 100644 index 0000000..f37ae13 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPamSkinDataCsReq.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetPamSkinDataScRsp; + +@Opcodes(CmdId.GetPamSkinDataCsReq) +public class HandlerGetPamSkinDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(new PacketGetPamSkinDataScRsp(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPlayerDetailInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPlayerDetailInfoCsReq.java index 3d52642..a1902b6 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPlayerDetailInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPlayerDetailInfoCsReq.java @@ -14,7 +14,7 @@ public class HandlerGetPlayerDetailInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetPlayerDetailInfoCsReq.parseFrom(data); - + Player player = session.getServer().getPlayerByUid(req.getUid(), true); session.send(new PacketGetPlayerDetailInfoScRsp(player)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendChallengeLineupCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarActivityListCsReq.java similarity index 66% rename from src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendChallengeLineupCsReq.java rename to src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarActivityListCsReq.java index 42615fb..36bd87b 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetFriendChallengeLineupCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarActivityListCsReq.java @@ -5,12 +5,12 @@ import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -@Opcodes(CmdId.GetFriendChallengeLineupCsReq) -public class HandlerGetFriendChallengeLineupCsReq extends PacketHandler { +@Opcodes(CmdId.GetPreAvatarActivityListCsReq) +public class HandlerGetPreAvatarActivityListCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(CmdId.GetFriendChallengeLineupScRsp); + session.send(CmdId.GetPreAvatarActivityListScRsp); } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarGrowthInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarGrowthInfoCsReq.java new file mode 100644 index 0000000..2d58d2b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPreAvatarGrowthInfoCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetPreAvatarGrowthInfoCsReq) +public class HandlerGetPreAvatarGrowthInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetPreAvatarGrowthInfoScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPrivateChatHistoryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPrivateChatHistoryCsReq.java index 8ee55d1..cd8e6b4 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPrivateChatHistoryCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetPrivateChatHistoryCsReq.java @@ -13,9 +13,9 @@ public class HandlerGetPrivateChatHistoryCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetPrivateChatHistoryCsReq.parseFrom(data); - + var messages = session.getPlayer().getChatManager().getHistoryByUid(req.getToUid()); - + session.send(new PacketGetPrivateChatHistoryScRsp(req.getToUid(), messages)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRechargeGiftInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRechargeGiftInfoCsReq.java new file mode 100644 index 0000000..e1e5dbd --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRechargeGiftInfoCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetRechargeGiftInfoCsReq) +public class HandlerGetRechargeGiftInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetRechargeGiftInfoScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueBuffEnhanceInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueBuffEnhanceInfoCsReq.java deleted file mode 100644 index 672c9d7..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueBuffEnhanceInfoCsReq.java +++ /dev/null @@ -1,15 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetRogueBuffEnhanceInfoScRsp; - -@Opcodes(CmdId.GetRogueBuffEnhanceInfoCsReq) -public class HandlerGetRogueBuffEnhanceInfoCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - session.send(new PacketGetRogueBuffEnhanceInfoScRsp(session.getPlayer())); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueCommonDialogueDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueCommonDialogueDataCsReq.java new file mode 100644 index 0000000..9b94cb0 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueCommonDialogueDataCsReq.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetRogueCommonDialogueDataCsReq) +public class HandlerGetRogueCommonDialogueDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + + session.send(CmdId.GetRogueCommonDialogueDataScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueEndlessActivityDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueEndlessActivityDataCsReq.java new file mode 100644 index 0000000..9202a91 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueEndlessActivityDataCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetRogueEndlessActivityDataCsReq) +public class HandlerGetRogueEndlessActivityDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetRogueEndlessActivityDataScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInfoCsReq.java index f5b1dac..37aee2e 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInfoCsReq.java @@ -1,22 +1,16 @@ package emu.lunarcore.server.packet.recv; -import emu.lunarcore.GameConstants; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetRogueInfoScRsp; @Opcodes(CmdId.GetRogueInfoCsReq) public class HandlerGetRogueInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - if (GameConstants.ENABLE_ROGUE) { - session.send(new PacketGetRogueInfoScRsp(session.getPlayer())); - } else { - session.send(CmdId.GetRogueInfoScRsp); - } + session.send(CmdId.GetRogueInfoScRsp); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInitialScoreCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInitialScoreCsReq.java index a6eab4f..3771da7 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInitialScoreCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueInitialScoreCsReq.java @@ -4,14 +4,13 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetRogueInitialScoreScRsp; @Opcodes(CmdId.GetRogueInitialScoreCsReq) public class HandlerGetRogueInitialScoreCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(new PacketGetRogueInitialScoreScRsp()); + session.send(CmdId.GetRogueInitialScoreScRsp); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueScoreRewardInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueScoreRewardInfoCsReq.java index 481e7fb..f382ecd 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueScoreRewardInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueScoreRewardInfoCsReq.java @@ -1,22 +1,16 @@ package emu.lunarcore.server.packet.recv; -import emu.lunarcore.GameConstants; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetRogueScoreRewardInfoScRsp; @Opcodes(CmdId.GetRogueScoreRewardInfoCsReq) public class HandlerGetRogueScoreRewardInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - if (GameConstants.ENABLE_ROGUE) { - session.send(new PacketGetRogueScoreRewardInfoScRsp(session.getPlayer())); - } else { - session.send(CmdId.GetRogueScoreRewardInfoScRsp); - } + session.send(CmdId.GetRogueScoreRewardInfoScRsp); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueTalentInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueTalentInfoCsReq.java index 145c934..9fc792a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueTalentInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetRogueTalentInfoCsReq.java @@ -1,22 +1,16 @@ package emu.lunarcore.server.packet.recv; -import emu.lunarcore.GameConstants; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetRogueTalentInfoScRsp; @Opcodes(CmdId.GetRogueTalentInfoCsReq) public class HandlerGetRogueTalentInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - if (GameConstants.ENABLE_ROGUE) { - session.send(new PacketGetRogueTalentInfoScRsp(session.getPlayer().getRogueManager())); - } else { - session.send(CmdId.GetRogueTalentInfoScRsp); - } + session.send(CmdId.GetRogueTalentInfoScRsp); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSceneMapInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSceneMapInfoCsReq.java index aa65974..c092e83 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSceneMapInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSceneMapInfoCsReq.java @@ -13,8 +13,8 @@ public class HandlerGetSceneMapInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetSceneMapInfoCsReq.parseFrom(data); - - session.send(new PacketGetSceneMapInfoScRsp(req.getEntryIdList())); + + session.send(new PacketGetSceneMapInfoScRsp(req.getSceneIdentifierList())); } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetShopListCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetShopListCsReq.java index 8f574a3..2d5a48a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetShopListCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetShopListCsReq.java @@ -13,7 +13,7 @@ public class HandlerGetShopListCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetShopListCsReq.parseFrom(data); - + session.send(new PacketGetShopListScRsp(req.getShopType())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMultiPathAvatarInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSocialEventServerCacheCsReq.java similarity index 53% rename from src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMultiPathAvatarInfoCsReq.java rename to src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSocialEventServerCacheCsReq.java index fba7e5a..aef910c 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetMultiPathAvatarInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetSocialEventServerCacheCsReq.java @@ -4,14 +4,14 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketGetMultiPathAvatarInfoScRsp; +import emu.lunarcore.server.packet.send.PacketGetSocialEventServerCacheScRsp; -@Opcodes(CmdId.GetMultiPathAvatarInfoCsReq) -public class HandlerGetMultiPathAvatarInfoCsReq extends PacketHandler { +@Opcodes(CmdId.GetSocialEventServerCacheCsReq) +public class HandlerGetSocialEventServerCacheCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(new PacketGetMultiPathAvatarInfoScRsp(session.getPlayer())); + session.send(new PacketGetSocialEventServerCacheScRsp(session.getPlayer())); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetStrongChallengeActivityDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetStrongChallengeActivityDataCsReq.java new file mode 100644 index 0000000..49f8163 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetStrongChallengeActivityDataCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetStrongChallengeActivityDataCsReq) +public class HandlerGetStrongChallengeActivityDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetStrongChallengeActivityDataScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTreasureDungeonActivityDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTreasureDungeonActivityDataCsReq.java index 491a04e..80d9126 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTreasureDungeonActivityDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTreasureDungeonActivityDataCsReq.java @@ -11,4 +11,4 @@ public class HandlerGetTreasureDungeonActivityDataCsReq extends PacketHandler { public void handle(GameSession session, byte[] data) throws Exception { session.send(CmdId.GetTreasureDungeonActivityDataScRsp); } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialCsReq.java new file mode 100644 index 0000000..9910abd --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialCsReq.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetTutorialScRsp; + +@Opcodes(CmdId.GetTutorialCsReq) +public class HandlerGetTutorialCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(new PacketGetTutorialScRsp()); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialGuideCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialGuideCsReq.java new file mode 100644 index 0000000..1a791f3 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetTutorialGuideCsReq.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketGetTutorialGuideScRsp; + +@Opcodes(CmdId.GetTutorialGuideCsReq) +public class HandlerGetTutorialGuideCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(new PacketGetTutorialGuideScRsp()); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnlockTeleportCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnlockTeleportCsReq.java index de2578a..cbaad8e 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnlockTeleportCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnlockTeleportCsReq.java @@ -13,7 +13,7 @@ public class HandlerGetUnlockTeleportCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = GetUnlockTeleportCsReq.parseFrom(data); - + session.send(new PacketGetUnlockTeleportScRsp(req.getEntryIdList())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnreleasedBlockInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnreleasedBlockInfoCsReq.java new file mode 100644 index 0000000..ca980f5 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerGetUnreleasedBlockInfoCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.GetUnreleasedBlockInfoCsReq) +public class HandlerGetUnreleasedBlockInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.GetUnreleasedBlockInfoScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleFriendCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleFriendCsReq.java index 76cf114..e4de863 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleFriendCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleFriendCsReq.java @@ -12,7 +12,7 @@ public class HandlerHandleFriendCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = HandleFriendCsReq.parseFrom(data); - + session.getPlayer().getFriendList().handleFriendRequest(req.getUid(), req.getHandleResult()); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java deleted file mode 100644 index ee7a50b..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerHandleRogueCommonPendingActionCsReq.java +++ /dev/null @@ -1,26 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.HandleRogueCommonPendingActionCsReqOuterClass.HandleRogueCommonPendingActionCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -//import emu.lunarcore.server.packet.send.PacketHandleRogueCommonPendingActionScRsp; - -@Opcodes(CmdId.HandleRogueCommonPendingActionCsReq) -public class HandlerHandleRogueCommonPendingActionCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var proto = HandleRogueCommonPendingActionCsReq.parseFrom(data); - - if (proto.hasBuffSelectResult()) { - session.getPlayer().getRogueInstance().selectBuff(proto.getBuffSelectResult().getBuffId()); - } else if (proto.hasMiracleSelectResult()) { - session.getPlayer().getRogueInstance().selectMiracle(proto.getMiracleSelectResult().getMiracleId()); - } else if (proto.hasBonusSelectResult()) { - session.getPlayer().getRogueInstance().selectBonus(proto.getBonusSelectResult().getBonusId()); - } else if (proto.hasRollBuff()) { - session.getPlayer().getRogueInstance().rollBuffSelect(); - } - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerInteractChargerCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerInteractChargerCsReq.java deleted file mode 100644 index 4b0931a..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerInteractChargerCsReq.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.InteractChargerCsReqOuterClass.InteractChargerCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketInteractChargerScRsp; -import emu.lunarcore.server.packet.send.PacketUpdateEnergyScNotify; - -@Opcodes(CmdId.InteractChargerCsReq) -public class HandlerInteractChargerCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = InteractChargerCsReq.parseFrom(data); - session.send(new PacketInteractChargerScRsp(req.getChargerInfo())); - session.send(new PacketUpdateEnergyScNotify()); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveChallengeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveChallengeCsReq.java index 9c5c130..600d3e5 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveChallengeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveChallengeCsReq.java @@ -16,18 +16,18 @@ public class HandlerLeaveChallengeCsReq extends PacketHandler { if (session.getPlayer().getScene() != null && session.getPlayer().getScene().getPlaneType() == PlaneType.Challenge) { // As of 1.5.0, the server now has to handle the player leaving battle too session.getPlayer().forceQuitBattle(); - + // Get entry id int leaveEntryId = GameConstants.CHALLENGE_ENTRANCE; if (session.getPlayer().getScene().getLeaveEntryId() != 0) { leaveEntryId = session.getPlayer().getScene().getLeaveEntryId(); } - + // Leave scene session.getPlayer().getLineupManager().setCurrentExtraLineup(0, false); session.getPlayer().enterScene(leaveEntryId, 0, true); } - + // Send rsp packet to keep the client happy session.send(CmdId.LeaveChallengeScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveTrialActivityCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveTrialActivityCsReq.java new file mode 100644 index 0000000..a71ef3e --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerLeaveTrialActivityCsReq.java @@ -0,0 +1,30 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.trial.TrialInstance; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketCurTrialActivityScNotify; + +@Opcodes(CmdId.LeaveTrialActivityCsReq) +public class HandlerLeaveTrialActivityCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + // Get trial instance + TrialInstance trial = session.getPlayer().getInstance(TrialInstance.class); + if (trial != null) { + // Send player back to where they were + session.getPlayer().getLineupManager().setCurrentExtraLineup(0, false); + session.getPlayer().loadScene(trial.getLastLocation(), true); + session.getPlayer().sendPacket(new PacketCurTrialActivityScNotify(trial)); + // Reset instance + session.getPlayer().setInstance(null); + } + + // Leave + session.send(CmdId.LeaveTrialActivityScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkAvatarCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkAvatarCsReq.java index 67a72f6..1505d8c 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkAvatarCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkAvatarCsReq.java @@ -1,11 +1,11 @@ package emu.lunarcore.server.packet.recv; import emu.lunarcore.proto.MarkAvatarCsReqOuterClass.MarkAvatarCsReq; -import emu.lunarcore.server.packet.send.PacketMarkAvatarScRsp; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketMarkAvatarScRsp; @Opcodes(CmdId.MarkAvatarCsReq) public class HandlerMarkAvatarCsReq extends PacketHandler { @@ -13,7 +13,7 @@ public class HandlerMarkAvatarCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = MarkAvatarCsReq.parseFrom(data); - + var avatar = session.getServer().getInventoryService().markAvatar(session.getPlayer(), req.getAvatarId(), req.getIsMarked()); session.send(new PacketMarkAvatarScRsp(avatar)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkReadMailCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkReadMailCsReq.java index 33ee485..67acd98 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkReadMailCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerMarkReadMailCsReq.java @@ -12,7 +12,7 @@ public class HandlerMarkReadMailCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = MarkReadMailCsReq.parseFrom(data); - + session.getPlayer().getMailbox().readMail(req.getId()); session.send(CmdId.MarkReadMailScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java deleted file mode 100644 index 3e3dde2..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPickRogueAvatarCsReq.java +++ /dev/null @@ -1,17 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.PickRogueAvatarCsReqOuterClass.PickRogueAvatarCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; - -@Opcodes(CmdId.PickRogueAvatarCsReq) -public class HandlerPickRogueAvatarCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var proto = PickRogueAvatarCsReq.parseFrom(data); - - session.getPlayer().getRogueInstance().pickAvatar(proto.getBaseAvatarList()); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayBackGroundMusicCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayBackGroundMusicCsReq.java index 9b78c60..89a6b9e 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayBackGroundMusicCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayBackGroundMusicCsReq.java @@ -1,11 +1,11 @@ package emu.lunarcore.server.packet.recv; import emu.lunarcore.proto.PlayBackGroundMusicCsReqOuterClass.PlayBackGroundMusicCsReq; -import emu.lunarcore.server.packet.send.PacketPlayBackGroundMusicScRsp; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketPlayBackGroundMusicScRsp; @Opcodes(CmdId.PlayBackGroundMusicCsReq) public class HandlerPlayBackGroundMusicCsReq extends PacketHandler { @@ -13,7 +13,7 @@ public class HandlerPlayBackGroundMusicCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = PlayBackGroundMusicCsReq.parseFrom(data); - + session.getPlayer().setCurrentBgm(req.getPlayMusicId()); session.send(new PacketPlayBackGroundMusicScRsp(req.getPlayMusicId())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerGetTokenCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerGetTokenCsReq.java index 22e8d56..fe60e3d 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerGetTokenCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerGetTokenCsReq.java @@ -13,7 +13,60 @@ import emu.lunarcore.server.packet.send.PacketPlayerGetTokenScRsp; @Opcodes(CmdId.PlayerGetTokenCsReq) public class HandlerPlayerGetTokenCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + // Parse packet data + var req = PlayerGetTokenCsReq.parseFrom(data); + + // Too lazy to implement RSA + Account account = LunarCore.getAccountDatabase().getObjectByField(Account.class, "_id", req.getAccountUid()); + if (account == null) { + LunarCore.getLogger().warn("Account " + req.getAccountUid() + " not found"); + return; + } + + // Set account object for session + session.setAccount(account); + // If playerCount reach the set maxPlayers, newly logged-in players will be kicked out + int maxPlayers = LunarCore.getConfig().getServerOptions().maxPlayers; + int playerCount = LunarCore.getGameServer().getPlayerCount(); + if (maxPlayers > -1 && playerCount >= maxPlayers) { + session.close(); + return; + } + + // Get player from database, if it doesnt exist, we create it + Player player = LunarCore.getGameDatabase().getObjectByField(Player.class, "accountUid", account.getUid()); + + if (player == null) { + player = new Player(session); + LunarCore.getGameDatabase().save(player); + session.setSendHello(true); // idk why we use like this + } + + // Dont let people log on to the same player at the same time + Player prevPlayer = session.getServer().getOnlinePlayerByUid(player.getUid()); + if (prevPlayer != null) { + prevPlayer.getSession().close(); + } + + // Set player object for session + session.setPlayer(player); + + // Load player data from database + player.onLogin(); + + // Set session state + session.setUseSecretKey(true); + session.setState(SessionState.WAITING_FOR_LOGIN); + + // Finish and send packet + session.send(new PacketPlayerGetTokenScRsp(session)); + } + + /* @Override public void handle(GameSession session, byte[] data) throws Exception { // Parse packet data @@ -42,8 +95,9 @@ public class HandlerPlayerGetTokenCsReq extends PacketHandler { if (player == null) { player = new Player(session); LunarCore.getGameDatabase().save(player); + session.setSendHello(true); // idk why we use like this } - + // Dont let people log on to the same player at the same time Player prevPlayer = session.getServer().getOnlinePlayerByUid(player.getUid()); if (prevPlayer != null) { @@ -63,5 +117,5 @@ public class HandlerPlayerGetTokenCsReq extends PacketHandler { // Finish and send packet session.send(new PacketPlayerGetTokenScRsp(session)); } - + */ } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerHeartBeatCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerHeartBeatCsReq.java index 3375100..5d530ae 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerHeartBeatCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerHeartBeatCsReq.java @@ -1,6 +1,6 @@ package emu.lunarcore.server.packet.recv; -import emu.lunarcore.proto.PlayerHeartbeatCsReqOuterClass.PlayerHeartbeatCsReq; +import emu.lunarcore.proto.PlayerHeartBeatCsReqOuterClass.PlayerHeartBeatCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; @@ -13,7 +13,7 @@ public class HandlerPlayerHeartBeatCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { // Parse req data - var req = PlayerHeartbeatCsReq.parseFrom(data); + var req = PlayerHeartBeatCsReq.parseFrom(data); // Send heartbeat response back session.send(new PacketPlayerHeartBeatScRsp(req.getClientTimeMs())); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginCsReq.java index abdcb62..ca32df0 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginCsReq.java @@ -5,8 +5,7 @@ import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.SessionState; -import emu.lunarcore.server.packet.send.PacketPlayerLoginScRsp; -import emu.lunarcore.server.packet.send.PacketStaminaInfoScNotify; +import emu.lunarcore.server.packet.send.*; @Opcodes(CmdId.PlayerLoginCsReq) public class HandlerPlayerLoginCsReq extends PacketHandler { @@ -18,7 +17,16 @@ public class HandlerPlayerLoginCsReq extends PacketHandler { // Send packets session.send(new PacketPlayerLoginScRsp(session)); + session.send(new PacketUpdateFeatureSwitchScNotify()); session.send(new PacketStaminaInfoScNotify(session.getPlayer())); + session.send(new PacketBattlePassInfoNotify()); + session.send(new PacketContentPackageGetDataScRsp()); + session.send(CmdId.SyncServerSceneChangeNotify); + session.send(CmdId.SyncTurnFoodNotify); + session.send(CmdId.RaidInfoNotify); + session.send(CmdId.ComposeLimitNumCompleteNotify); + session.send(CmdId.NewAssistHistoryNotify); + } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java index b167814..0518df3 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java @@ -4,8 +4,6 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketBattlePassInfoNotify; -import emu.lunarcore.server.packet.send.PacketContentPackageGetDataScRsp; @Opcodes(CmdId.PlayerLoginFinishCsReq) public class HandlerPlayerLoginFinishCsReq extends PacketHandler { @@ -14,8 +12,6 @@ public class HandlerPlayerLoginFinishCsReq extends PacketHandler { public void handle(GameSession session, byte[] data) throws Exception { session.send(CmdId.PlayerLoginFinishScRsp); session.send(CmdId.GetArchiveDataScRsp); - session.send(new PacketBattlePassInfoNotify()); - session.send(new PacketContentPackageGetDataScRsp()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQueryProductInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQueryProductInfoCsReq.java index 8f39160..9f2092e 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQueryProductInfoCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQueryProductInfoCsReq.java @@ -4,13 +4,14 @@ import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketQueryProductInfoScRsp; @Opcodes(CmdId.QueryProductInfoCsReq) public class HandlerQueryProductInfoCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { - session.send(CmdId.QueryProductInfoScRsp); + session.send(new PacketQueryProductInfoScRsp()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartCocoonStageCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartCocoonStageCsReq.java new file mode 100644 index 0000000..754d06b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartCocoonStageCsReq.java @@ -0,0 +1,28 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.proto.QuickStartCocoonStageCsReqOuterClass.QuickStartCocoonStageCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketQuickStartCocoonStageScRsp; + +@Opcodes(CmdId.QuickStartCocoonStageCsReq) +public class HandlerQuickStartCocoonStageCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = QuickStartCocoonStageCsReq.parseFrom(data); + + Battle battle = session.getServer().getBattleService().startCocoon( + session.getPlayer(), + req.getCocoonId(), + req.getWorldLevel(), + req.getWaveCount() + ); + + session.send(new PacketQuickStartCocoonStageScRsp(battle)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartFarmElementCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartFarmElementCsReq.java new file mode 100644 index 0000000..0456c98 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerQuickStartFarmElementCsReq.java @@ -0,0 +1,40 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.proto.QuickStartFarmElementCsReqOuterClass.QuickStartFarmElementCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketQuickStartFarmElementScRsp; + +@Opcodes(CmdId.QuickStartFarmElementCsReq) +public class HandlerQuickStartFarmElementCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = QuickStartFarmElementCsReq.parseFrom(data); + + var excel = GameData.getFarmElementExcelMap().get(req.getFarmElementId(), req.getWorldLevel()); + if (excel == null) { + session.send(new PacketQuickStartFarmElementScRsp(null)); + return; + } + + Battle battle = session.getServer().getBattleService().startBattle( + session.getPlayer(), + excel.getStageID(), + req.getWorldLevel() + ); + + if (battle != null) { + battle.setMappingInfoId(req.getFarmElementId()); + battle.setStaminaCost(excel.getStaminaCost()); + battle.setWorldLevel(req.getWorldLevel()); + } + + session.send(new PacketQuickStartFarmElementScRsp(battle)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerReEnterLastElementStageCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerReEnterLastElementStageCsReq.java index 3df85d8..c7a1e44 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerReEnterLastElementStageCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerReEnterLastElementStageCsReq.java @@ -12,7 +12,7 @@ public class HandlerReEnterLastElementStageCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ReEnterLastElementStageCsReq.parseFrom(data); - + session.getServer().getBattleService().reEnterBattle(session.getPlayer(), req.getStageId()); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerReStartChallengePeakCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerReStartChallengePeakCsReq.java new file mode 100644 index 0000000..5ac67de --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerReStartChallengePeakCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.ReStartChallengePeakCsReq) +public class HandlerReStartChallengePeakCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.ReStartChallengePeakScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRecallPetCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRecallPetCsReq.java index e05bb83..d6d1734 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRecallPetCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRecallPetCsReq.java @@ -13,7 +13,7 @@ public class HandlerRecallPetCsReq extends PacketHandler { public void handle(GameSession session, byte[] data) throws Exception { session.getPlayer().setPetId(0); session.getPlayer().save(); - + session.send(new PacketCurPetChangedScNotify(session.getPlayer())); session.send(CmdId.RecallPetScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRefreshTriggerByClientCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRefreshTriggerByClientCsReq.java index 12ab472..6e1f2b7 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRefreshTriggerByClientCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRefreshTriggerByClientCsReq.java @@ -13,16 +13,16 @@ public class HandlerRefreshTriggerByClientCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = RefreshTriggerByClientCsReq.parseFrom(data); - + if (session.getPlayer().getScene() != null) { session.getPlayer().getScene().handleSummonUnitTriggers( req.getTriggerEntityId(), req.getTriggerName(), req.getTriggerMotion(), req.getTriggerTargetIdList() - ); + ); } - + session.send(new PacketRefreshTriggerByClientScRsp(req)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicRecommendCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicRecommendCsReq.java deleted file mode 100644 index 64413db..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicRecommendCsReq.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.RelicRecommendCsReqOuterClass.RelicRecommendCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketRelicRecommendScRsp; - -@Opcodes(CmdId.RelicRecommendCsReq) -public class HandlerRelicRecommendCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = RelicRecommendCsReq.parseFrom(data); - - session.send(new PacketRelicRecommendScRsp(req.getAvatarId())); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeConfirmCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeConfirmCsReq.java new file mode 100644 index 0000000..835d38c --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeConfirmCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.RelicReforgeConfirmCsReqOuterClass.RelicReforgeConfirmCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RelicReforgeConfirmCsReq) +public class HandlerRelicReforgeConfirmCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = RelicReforgeConfirmCsReq.parseFrom(data); + + session.getServer().getInventoryService().confirmReforgeRelic(session.getPlayer(), req.getRelicUniqueId(), req.getKeepOldAffixes()); + session.send(CmdId.RelicReforgeConfirmScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeCsReq.java new file mode 100644 index 0000000..39c4bcd --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicReforgeCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.RelicReforgeCsReqOuterClass.RelicReforgeCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RelicReforgeCsReq) +public class HandlerRelicReforgeCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = RelicReforgeCsReq.parseFrom(data); + + session.getServer().getInventoryService().reforgeRelic(session.getPlayer(), req.getRelicUniqueId()); + session.send(CmdId.RelicReforgeScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPinRelicCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPinRelicCsReq.java new file mode 100644 index 0000000..54e0c31 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPinRelicCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.RelicSmartWearGetPinRelicCsReqOuterClass.RelicSmartWearGetPinRelicCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketRelicSmartWearGetPinRelicScRsp; + +@Opcodes(CmdId.RelicSmartWearGetPinRelicCsReq) +public class HandlerRelicSmartWearGetPinRelicCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = RelicSmartWearGetPinRelicCsReq.parseFrom(data); + session.send(new PacketRelicSmartWearGetPinRelicScRsp(req.getAvatarId())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPlanCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPlanCsReq.java new file mode 100644 index 0000000..c6857a9 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRelicSmartWearGetPlanCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.RelicSmartWearGetPlanCsReqOuterClass.RelicSmartWearGetPlanCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketRelicSmartWearGetPlanScRsp; + +@Opcodes(CmdId.RelicSmartWearGetPlanCsReq) +public class HandlerRelicSmartWearGetPlanCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = RelicSmartWearGetPlanCsReq.parseFrom(data); + + session.send(new PacketRelicSmartWearGetPlanScRsp(req.getAvatarId())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerReserveStaminaExchangeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerReserveStaminaExchangeCsReq.java index a803266..6fdc12d 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerReserveStaminaExchangeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerReserveStaminaExchangeCsReq.java @@ -13,7 +13,7 @@ public class HandlerReserveStaminaExchangeCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = ReserveStaminaExchangeCsReq.parseFrom(data); - + int exchangedAmount = session.getPlayer().exchangeReserveStamina(req.getNum()); session.send(new PacketReserveStaminaExchangeScRsp(exchangedAmount)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueArcadeGetInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueArcadeGetInfoCsReq.java new file mode 100644 index 0000000..bf13c2b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueArcadeGetInfoCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RogueArcadeGetInfoCsReq) +public class HandlerRogueArcadeGetInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.RogueArcadeGetInfoScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueMagicQueryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueMagicQueryCsReq.java new file mode 100644 index 0000000..d80fe1a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueMagicQueryCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RogueMagicQueryCsReq) +public class HandlerRogueMagicQueryCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.RogueMagicQueryScRsp); + } +} + diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java deleted file mode 100644 index 30d8a4b..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueNpcDisappearCsReq.java +++ /dev/null @@ -1,24 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.scene.entity.GameEntity; -import emu.lunarcore.proto.RogueNpcDisappearCsReqOuterClass.RogueNpcDisappearCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSceneGroupRefreshScNotify; - -@Opcodes(CmdId.RogueNpcDisappearCsReq) -public class HandlerRogueNpcDisappearCsReq extends PacketHandler { - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = RogueNpcDisappearCsReq.parseFrom(data); - - GameEntity entity = session.getPlayer().getScene().getEntityById(req.getDisappearNpcEntityId()); - - if (entity != null) { - session.send(CmdId.RogueNpcDisappearScRsp); - session.send(new PacketSceneGroupRefreshScNotify(null, entity)); - } - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetArchiveRepositoryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetArchiveRepositoryCsReq.java new file mode 100644 index 0000000..f942da9 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetArchiveRepositoryCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RogueTournGetArchiveRepositoryCsReq) +public class HandlerRogueTournGetArchiveRepositoryCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.RogueTournGetArchiveRepositoryScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetCurRogueCocoonInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetCurRogueCocoonInfoCsReq.java new file mode 100644 index 0000000..7685cfd --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetCurRogueCocoonInfoCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RogueTournGetCurRogueCocoonInfoCsReq) +public class HandlerRogueTournGetCurRogueCocoonInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.RogueTournGetCurRogueCocoonInfoScRsp); + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetPermanentTalentInfoCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetPermanentTalentInfoCsReq.java new file mode 100644 index 0000000..4212f51 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournGetPermanentTalentInfoCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RogueTournGetPermanentTalentInfoCsReq) +public class HandlerRogueTournGetPermanentTalentInfoCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.RogueTournGetPermanentTalentInfoScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournQueryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournQueryCsReq.java new file mode 100644 index 0000000..35df386 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerRogueTournQueryCsReq.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.RogueTournQueryCsReq) +public class HandlerRogueTournQueryCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.RogueTournQueryScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java index 5af8b0b..4a88c77 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneCastSkillCsReq.java @@ -15,30 +15,32 @@ import it.unimi.dsi.fastutil.ints.IntSet; @Opcodes(CmdId.SceneCastSkillCsReq) public class HandlerSceneCastSkillCsReq extends PacketHandler { - + @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SceneCastSkillCsReq.parseFrom(data); - + // Setup variables Player player = session.getPlayer(); MazeSkill skill = null; - + // Check if player casted a maze skill if (player.getScene().getAvatarEntityIds().contains(req.getCasterId())) { // Get casting avatar GameAvatar caster = player.getCurrentLeaderAvatar(); - + // Sanity check, but should never happen if (caster == null) { session.send(new PacketSceneCastSkillScRsp(req.getAttackedGroupId())); return; } - + // Check if normal attack or technique was used if (req.getSkillIndex() > 0) { - // Spend one skill point - player.getCurrentLineup().removeMp(1); + if (caster.getAvatarId() != 1308) { + player.getCurrentLineup().removeMp(1); + // Spend one skill point + } session.send(new PacketSceneCastSkillMpUpdateScNotify(req.getAttackedGroupId(), player.getCurrentLineup().getMp())); // Cast skill effects if (caster.getExcel().getMazeSkill() != null) { @@ -49,23 +51,23 @@ public class HandlerSceneCastSkillCsReq extends PacketHandler { skill = caster.getExcel().getMazeAttack(); } } - + if (req.hasHitTargetEntityIdList()) { // Parse targets efficiently (skips integer boxing) IntSet hitTargets = new IntLinkedOpenHashSet(); for (int i = 0; i < req.getHitTargetEntityIdList().length(); i++) { hitTargets.add(req.getHitTargetEntityIdList().get(i)); } - + IntSet assistMonsters = new IntLinkedOpenHashSet(); for (var assistWave : req.getAssistMonsterWaveList()) { for (int id : assistWave.getEntityIdList()) { assistMonsters.add(id); } } - + // Start battle - session.getServer().getBattleService().startBattle(player, req.getCasterId(), req.getAttackedGroupId(), skill, hitTargets, assistMonsters); + session.getServer().getBattleService().attack(player, req.getCasterId(), req.getAttackedGroupId(), skill, hitTargets, assistMonsters); } else { // We had no targets for some reason session.send(new PacketSceneCastSkillScRsp(req.getAttackedGroupId())); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEnterStageCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEnterStageCsReq.java index 5349c7d..54b29e5 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEnterStageCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEnterStageCsReq.java @@ -1,17 +1,25 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.game.battle.Battle; import emu.lunarcore.proto.SceneEnterStageCsReqOuterClass.SceneEnterStageCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSceneEnterStageScRsp; @Opcodes(CmdId.SceneEnterStageCsReq) public class HandlerSceneEnterStageCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SceneEnterStageCsReq.parseFrom(data); - - session.getPlayer().getServer().getBattleService().startBattle(session.getPlayer(), req.getStageId()); + + Battle battle = session.getPlayer().getServer().getBattleService().startBattle( + session.getPlayer(), + req.getStageId(), + session.getPlayer().getWorldLevel() + ); + + session.send(new PacketSceneEnterStageScRsp(battle)); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityMoveCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityMoveCsReq.java index a2da901..53d5b68 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityMoveCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityMoveCsReq.java @@ -25,4 +25,4 @@ public class HandlerSceneEntityMoveCsReq extends PacketHandler { session.send(CmdId.SceneEntityMoveScRsp); } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityTeleportCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityTeleportCsReq.java new file mode 100644 index 0000000..38db6d4 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSceneEntityTeleportCsReq.java @@ -0,0 +1,30 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.EntityMotionOuterClass.EntityMotion; +import emu.lunarcore.proto.SceneEntityTeleportCsReqOuterClass.SceneEntityTeleportCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSceneEntityTeleportScRsp; +import emu.lunarcore.util.Position; + +@Opcodes(CmdId.SceneEntityTeleportCsReq) +public class HandlerSceneEntityTeleportCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SceneEntityTeleportCsReq.parseFrom(data); + + EntityMotion motion = req.getEntityMotion(); + + if (session.getPlayer().getScene().getAvatarEntityIds().contains(motion.getEntityId())) { + var vec = motion.getMotion().getPos(); + var vecRot = motion.getMotion().getRot(); + session.getPlayer().moveTo(new Position(vec.getX(), vec.getY(), vec.getZ()), new Position(0, vecRot.getY(), 0)); + } + + session.send(new PacketSceneEntityTeleportScRsp(motion)); + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSearchPlayerCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSearchPlayerCsReq.java index ebfa3e7..f1caccc 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSearchPlayerCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSearchPlayerCsReq.java @@ -17,19 +17,19 @@ public class HandlerSearchPlayerCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SearchPlayerCsReq.parseFrom(data); - + // Setup result list List results = new ArrayList<>(); - + // Get searched player for (int uid : req.getSearchUidList()) { Player target = session.getServer().getPlayerByUid(uid, true); - + if (target != null) { results.add(target); } } - + session.send(new PacketSearchPlayerScRsp(results)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectChatBubbleCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectChatBubbleCsReq.java index fad9615..299ed0a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectChatBubbleCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectChatBubbleCsReq.java @@ -1,10 +1,10 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.proto.SelectChatBubbleCsReqOuterClass.SelectChatBubbleCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.proto.SelectChatBubbleCsReqOuterClass.SelectChatBubbleCsReq; import emu.lunarcore.server.packet.send.PacketSelectChatBubbleScRsp; @Opcodes(CmdId.SelectChatBubbleCsReq) @@ -13,7 +13,7 @@ public class HandlerSelectChatBubbleCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SelectChatBubbleCsReq.parseFrom(data); - + if (session.getPlayer().setChatBubble(req.getBubbleId())) { // Success session.send(new PacketSelectChatBubbleScRsp(req.getBubbleId())); @@ -22,5 +22,5 @@ public class HandlerSelectChatBubbleCsReq extends PacketHandler { session.send(new PacketSelectChatBubbleScRsp()); } } - + } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectInclinationTextCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectInclinationTextCsReq.java new file mode 100644 index 0000000..c2e0360 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectInclinationTextCsReq.java @@ -0,0 +1,18 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.SelectInclinationTextCsReqOuterClass.SelectInclinationTextCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSelectInclinationTextScRsp; + +@Opcodes(CmdId.SelectInclinationTextCsReq) +public class HandlerSelectInclinationTextCsReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SelectInclinationTextCsReq.parseFrom(data); + + session.send(new PacketSelectInclinationTextScRsp(req.getInclinationTextId())); + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPamSkinCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPamSkinCsReq.java new file mode 100644 index 0000000..170ecae --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPamSkinCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.SelectPamSkinCsReqOuterClass.SelectPamSkinCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSelectPamSkinScRsp; + +@Opcodes(CmdId.SelectPamSkinCsReq) +public class HandlerSelectPamSkinCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SelectPamSkinCsReq.parseFrom(data); + + session.send(new PacketSelectPamSkinScRsp(req.getPamSkinId(), session.getPlayer())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPhoneThemeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPhoneThemeCsReq.java index 7822419..7520140 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPhoneThemeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectPhoneThemeCsReq.java @@ -1,10 +1,10 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.proto.SelectPhoneThemeCsReqOuterClass.SelectPhoneThemeCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.proto.SelectPhoneThemeCsReqOuterClass.SelectPhoneThemeCsReq; import emu.lunarcore.server.packet.send.PacketSelectPhoneThemeScRsp; import emu.lunarcore.server.packet.send.PacketSetHeadIconScRsp; @@ -14,7 +14,7 @@ public class HandlerSelectPhoneThemeCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SelectPhoneThemeCsReq.parseFrom(data); - + if (session.getPlayer().setPhoneTheme(req.getThemeId())) { // Success session.send(new PacketSelectPhoneThemeScRsp(req.getThemeId())); @@ -23,5 +23,5 @@ public class HandlerSelectPhoneThemeCsReq extends PacketHandler { session.send(new PacketSetHeadIconScRsp()); } } - + } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java deleted file mode 100644 index 0ef1bd7..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSelectRogueCommonDialogueOptionCsReq.java +++ /dev/null @@ -1,30 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.game.rogue.event.RogueEventInstance; -import emu.lunarcore.proto.SelectRogueCommonDialogueOptionCsReqOuterClass.SelectRogueCommonDialogueOptionCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSelectRogueCommonDialogueOptionScRsp; - -@Opcodes(CmdId.SelectRogueCommonDialogueOptionCsReq) -public class HandlerSelectRogueCommonDialogueOptionCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = SelectRogueCommonDialogueOptionCsReq.parseFrom(data); - - - if (session.getPlayer().getRogueInstance() == null) return; - - session.getPlayer().getRogueInstance().onSelectDialogue(req.getOptionId(), req.getEventUniqueId()); - RogueEventInstance eventInstance = session.getPlayer().getRogueInstance().getRunningEvents().get(req.getEventUniqueId()); - if (eventInstance == null) { - return; - } - - session.send(new PacketSelectRogueCommonDialogueOptionScRsp(eventInstance)); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSendMsgCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSendMsgCsReq.java index 928bf7e..7b6b30a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSendMsgCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSendMsgCsReq.java @@ -15,10 +15,12 @@ public class HandlerSendMsgCsReq extends PacketHandler { var req = SendMsgCsReq.parseFrom(data); for (int targetUid : req.getToUidList()) { - if (req.getMsgType() == MsgType.MSG_TYPE_CUSTOM_TEXT) { - session.getPlayer().getChatManager().sendChat(targetUid, req.getText()); - } else if (req.getMsgType() == MsgType.MSG_TYPE_EMOJI) { - session.getPlayer().getChatManager().sendChat(targetUid, req.getEmote()); + var content = req.getChatContent(); + + if (content.getMsgType() == MsgType.MSG_TYPE_CUSTOM_TEXT) { + session.getPlayer().getChatManager().sendChat(targetUid, content.getChatMsg().getChatText()); + } else if (content.getMsgType() == MsgType.MSG_TYPE_EMOJI) { + session.getPlayer().getChatManager().sendChat(targetUid, content.getChatMsg().getEmoteId()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAssistAvatarCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAssistAvatarCsReq.java index 68a973f..eef1d4b 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAssistAvatarCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAssistAvatarCsReq.java @@ -13,7 +13,7 @@ public class HandlerSetAssistAvatarCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetAssistAvatarCsReq.parseFrom(data); - + session.getPlayer().setAssistAvatars(req.getAvatarIdList()); session.send(new PacketSetAssistAvatarScRsp(session.getPlayer())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarEnhancedIdCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarEnhancedIdCsReq.java new file mode 100644 index 0000000..2f01626 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarEnhancedIdCsReq.java @@ -0,0 +1,46 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.game.avatar.GameAvatar; +import emu.lunarcore.proto.SetAvatarEnhancedIdCsReqOuterClass.SetAvatarEnhancedIdCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketPlayerSyncScNotify; +import emu.lunarcore.server.packet.send.PacketSetAvatarEnhancedIdScRsp; + +@Opcodes(CmdId.SetAvatarEnhancedIdCsReq) +public class HandlerSetAvatarEnhancedIdCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + // Parse request + var req = SetAvatarEnhancedIdCsReq.parseFrom(data); + + // Get avatar + GameAvatar avatar = session.getPlayer().getAvatarById(req.getAvatarId()); + if (avatar == null) { + session.send(new PacketSetAvatarEnhancedIdScRsp()); + return; + } + + // Verify enhance excel if we are changing enhance state + if (req.getAvatarEnhanceId() != 0) { + var excel = GameData.getAvatarEnhanceExcelMap().get(req.getAvatarId(), req.getAvatarEnhanceId()); + if (excel == null) { + session.send(new PacketSetAvatarEnhancedIdScRsp()); + return; + } + } + + // Set enhance id for avatar + avatar.getData().setEnhanceId(req.getAvatarEnhanceId()); + avatar.save(); + + // Sync and update on the client + session.send(new PacketPlayerSyncScNotify(avatar)); + session.send(new PacketSetAvatarEnhancedIdScRsp(avatar)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarPathCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarPathCsReq.java index 5654eaf..4d4e90a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarPathCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetAvatarPathCsReq.java @@ -13,7 +13,7 @@ public class HandlerSetAvatarPathCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetAvatarPathCsReq.parseFrom(data); - + int pathId = session.getPlayer().setAvatarPath(req.getAvatarIdValue()); session.send(new PacketSetAvatarPathScRsp(pathId)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetChallengePeakMobLineupAvatarCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetChallengePeakMobLineupAvatarCsReq.java new file mode 100644 index 0000000..0356222 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetChallengePeakMobLineupAvatarCsReq.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.SetChallengePeakMobLineupAvatarCsReqOuterClass.SetChallengePeakMobLineupAvatarCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.SetChallengePeakMobLineupAvatarCsReq) +public class HandlerSetChallengePeakMobLineupAvatarCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SetChallengePeakMobLineupAvatarCsReq.parseFrom(data); + + session.getPlayer().getChallengeManager().setChallengePeakMobLineupAvatars( + req.getChallengePeakGroupId(), + req.getLineupList() + ); + + session.send(CmdId.SetChallengePeakMobLineupAvatarScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetDisplayAvatarCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetDisplayAvatarCsReq.java index 0f94a68..1d486fd 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetDisplayAvatarCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetDisplayAvatarCsReq.java @@ -13,7 +13,7 @@ public class HandlerSetDisplayAvatarCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetDisplayAvatarCsReq.parseFrom(data); - + session.getPlayer().setDisplayAvatars(req.getDisplayAvatarList()); session.send(new PacketSetDisplayAvatarScRsp(session.getPlayer())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetGameplayBirthdayCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetGameplayBirthdayCsReq.java index 18f38a3..7811a26 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetGameplayBirthdayCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetGameplayBirthdayCsReq.java @@ -13,7 +13,7 @@ public class HandlerSetGameplayBirthdayCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetGameplayBirthdayCsReq.parseFrom(data); - + int birthday = session.getPlayer().setBirthday(req.getBirthday()); if (birthday != 0) { session.send(new PacketSetGameplayBirthdayScRsp(birthday)); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetHeadIconCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetHeadIconCsReq.java index 5a6a01d..e84992f 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetHeadIconCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetHeadIconCsReq.java @@ -13,7 +13,7 @@ public class HandlerSetHeadIconCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetHeadIconCsReq.parseFrom(data); - + if (session.getPlayer().setHeadIcon(req.getId())) { // Success session.send(new PacketSetHeadIconScRsp(req.getId())); diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetNicknameCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetNicknameCsReq.java index 785353d..49a1470 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetNicknameCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetNicknameCsReq.java @@ -12,11 +12,11 @@ public class HandlerSetNicknameCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetNicknameCsReq.parseFrom(data); - + if (req.getNickname() != null) { session.getPlayer().setNickname(req.getNickname()); } - + session.send(CmdId.SetNicknameScRsp); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetRogueCollectionCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetRogueCollectionCsReq.java new file mode 100644 index 0000000..9ae8aac --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetRogueCollectionCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.SetRogueCollectionCsReq) +public class HandlerSetRogueCollectionCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.SetRogueCollectionScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetSignatureCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetSignatureCsReq.java index a9c1156..7cb27e6 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetSignatureCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetSignatureCsReq.java @@ -13,7 +13,7 @@ public class HandlerSetSignatureCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SetSignatureCsReq.parseFrom(data); - + session.getPlayer().setSignature(req.getSignature()); session.send(new PacketSetSignatureScRsp(session.getPlayer())); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetTrainWorldIdCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetTrainWorldIdCsReq.java new file mode 100644 index 0000000..5bceb37 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSetTrainWorldIdCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.SetTrainWorldIdCsReqOuterClass.SetTrainWorldIdCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketSetTrainWorldIdScRsp; + +@Opcodes(CmdId.SetTrainWorldIdCsReq) +public class HandlerSetTrainWorldIdCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = SetTrainWorldIdCsReq.parseFrom(data); + + session.send(new PacketSetTrainWorldIdScRsp(req.getTrainWorldId())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengeCsReq.java index 0cb0132..f38dbaa 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengeCsReq.java @@ -12,7 +12,7 @@ public class HandlerStartChallengeCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = StartChallengeCsReq.parseFrom(data); - + // Parse buff ids int firstHalfBuff = 0; int secondHalfBuff = 0; @@ -26,7 +26,7 @@ public class HandlerStartChallengeCsReq extends PacketHandler { firstHalfBuff = storyBuffs.getStoryBuffOne(); secondHalfBuff = storyBuffs.getStoryBuffTwo(); } - + // Start challenge session.getPlayer().getChallengeManager().startChallenge(req.getChallengeId(), req.getFirstHalfLineup(), req.getSecondHalfLineup(), firstHalfBuff, secondHalfBuff); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengePeakCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengePeakCsReq.java new file mode 100644 index 0000000..3a67c33 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartChallengePeakCsReq.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.StartChallengePeakCsReqOuterClass.StartChallengePeakCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.StartChallengePeakCsReq) +public class HandlerStartChallengePeakCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = StartChallengePeakCsReq.parseFrom(data); + + session.getPlayer().getChallengeManager().startChallengePeak(req.getChallengePeakId()); + session.send(CmdId.StartChallengePeakScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartCocoonStageCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartCocoonStageCsReq.java index 3bdb057..c6633e7 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartCocoonStageCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartCocoonStageCsReq.java @@ -1,10 +1,12 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.game.battle.Battle; import emu.lunarcore.proto.StartCocoonStageCsReqOuterClass.StartCocoonStageCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketStartCocoonStageScRsp; @Opcodes(CmdId.StartCocoonStageCsReq) public class HandlerStartCocoonStageCsReq extends PacketHandler { @@ -12,8 +14,15 @@ public class HandlerStartCocoonStageCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = StartCocoonStageCsReq.parseFrom(data); - - session.getServer().getBattleService().startCocoon(session.getPlayer(), req.getCocoonId(), req.getWorldLevel(), req.getWave()); + + Battle battle = session.getServer().getBattleService().startCocoon( + session.getPlayer(), + req.getCocoonId(), + req.getWorldLevel(), + req.getWaveCount() + ); + + session.send(new PacketStartCocoonStageScRsp(battle)); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartPartialChallengeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartPartialChallengeCsReq.java index f785460..3b29ee9 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartPartialChallengeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartPartialChallengeCsReq.java @@ -12,22 +12,24 @@ public class HandlerStartPartialChallengeCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = StartPartialChallengeCsReq.parseFrom(data); - var manager = session.getPlayer().getChallengeManager(); - var lineup1 = manager.getLatest_lineup1(); - var lineup2 = manager.getLatest_lineup2(); - var firstHalfBuff = manager.getLatest_firstHalfBuff(); - var secondHalfBuff = manager.getLatest_secondHalfBuff(); - var is_firsthalf = req.getIsFirstHalf(); + var manager = session.getPlayer().getChallengeManager(); + + var lineup1 = manager.getLastLineup1(); + var lineup2 = manager.getLastLineup2(); + var firstHalfBuff = manager.getLastFirstHalfBuff(); + var secondHalfBuff = manager.getLastSecondHalfBuff(); + + var isFirsthalf = req.getIsFirstHalf(); if (req.hasBuffId() && req.getBuffId() != 0) { - if (is_firsthalf) { + if (isFirsthalf) { firstHalfBuff = req.getBuffId(); } else { secondHalfBuff = req.getBuffId(); } } - + manager.startChallenge(req.getChallengeId(), lineup1, lineup2, firstHalfBuff, secondHalfBuff); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java deleted file mode 100644 index a639d58..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartRogueCsReq.java +++ /dev/null @@ -1,19 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.StartRogueCsReqOuterClass.StartRogueCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; - -@Opcodes(CmdId.StartRogueCsReq) -public class HandlerStartRogueCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = StartRogueCsReq.parseFrom(data); - - session.getPlayer().getRogueManager().startRogue(req.getAreaId(), req.getBuffAeonId(), req.getBaseAvatarIdList()); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartTrialActivityCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartTrialActivityCsReq.java new file mode 100644 index 0000000..c118ea8 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerStartTrialActivityCsReq.java @@ -0,0 +1,22 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.game.trial.TrialInstance; +import emu.lunarcore.proto.StartTrialActivityCsReqOuterClass.StartTrialActivityCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketStartTrialActivityScRsp; + +@Opcodes(CmdId.StartTrialActivityCsReq) +public class HandlerStartTrialActivityCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = StartTrialActivityCsReq.parseFrom(data); + + TrialInstance trial = session.getPlayer().getTrialManager().startTrial(req.getStageId()); + session.send(new PacketStartTrialActivityScRsp(trial)); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSummonPetCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSummonPetCsReq.java index 7585cec..d4bc1dc 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSummonPetCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSummonPetCsReq.java @@ -6,6 +6,7 @@ import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.send.PacketCurPetChangedScNotify; +import emu.lunarcore.server.packet.send.PacketSummonPetScRsp; @Opcodes(CmdId.SummonPetCsReq) public class HandlerSummonPetCsReq extends PacketHandler { @@ -13,14 +14,14 @@ public class HandlerSummonPetCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = SummonPetCsReq.parseFrom(data); - + if (session.getPlayer().getUnlocks().getPets().contains(req.getSummonedPetId())) { session.getPlayer().setPetId(req.getSummonedPetId()); session.getPlayer().save(); session.send(new PacketCurPetChangedScNotify(session.getPlayer())); } - - session.send(CmdId.SummonPetScRsp); + + session.send(new PacketSummonPetScRsp(req.getSummonedPetId())); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSwitchLineupIndexCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerSwitchLineupIndexCsReq.java deleted file mode 100644 index 40208ba..0000000 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerSwitchLineupIndexCsReq.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.server.packet.recv; - -import emu.lunarcore.proto.SwitchLineupIndexCsReqOuterClass.SwitchLineupIndexCsReq; -import emu.lunarcore.server.game.GameSession; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.Opcodes; -import emu.lunarcore.server.packet.PacketHandler; -import emu.lunarcore.server.packet.send.PacketSwitchLineupIndexScRsp; - -@Opcodes(CmdId.SwitchLineupIndexCsReq) -public class HandlerSwitchLineupIndexCsReq extends PacketHandler { - - @Override - public void handle(GameSession session, byte[] data) throws Exception { - var req = SwitchLineupIndexCsReq.parseFrom(data); - - session.getPlayer().getLineupManager().switchLineup(req.getIndex()); - session.send(new PacketSwitchLineupIndexScRsp(session.getPlayer().getCurrentLineup())); - } - -} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeChallengeRewardCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeChallengeRewardCsReq.java index 0f07190..d7e29b0 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeChallengeRewardCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeChallengeRewardCsReq.java @@ -16,7 +16,7 @@ public class HandlerTakeChallengeRewardCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = TakeChallengeRewardCsReq.parseFrom(data); - + List rewardInfos = session.getPlayer().getChallengeManager().takeRewards(req.getGroupId()); session.send(new PacketTakeChallengeRewardScRsp(req.getGroupId(), rewardInfos)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeMailAttachmentCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeMailAttachmentCsReq.java index e24348b..26a6014 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeMailAttachmentCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeMailAttachmentCsReq.java @@ -16,9 +16,9 @@ public class HandlerTakeMailAttachmentCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = TakeMailAttachmentCsReq.parseFrom(data); - + List attachments = session.getPlayer().getMailbox().takeMailAttachments(req.getMailIdList()); - + session.send(new PacketTakeMailAttachmentScRsp(attachments)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeOffAvatarSkinCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeOffAvatarSkinCsReq.java new file mode 100644 index 0000000..2e7770a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakeOffAvatarSkinCsReq.java @@ -0,0 +1,28 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.TakeOffAvatarSkinCsReqOuterClass.TakeOffAvatarSkinCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.TakeOffAvatarSkinCsReq) +public class HandlerTakeOffAvatarSkinCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = TakeOffAvatarSkinCsReq.parseFrom(data); + + // Get avatar + var avatar = session.getPlayer().getAvatarById(req.getAvatarId()); + if (avatar == null) { + session.send(CmdId.TakeOffAvatarSkinScRsp); + return; + } + + // Clear skin + avatar.setSkin(0); + session.send(CmdId.TakeOffAvatarSkinScRsp); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakePromotionRewardCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakePromotionRewardCsReq.java index b61d27d..893c944 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakePromotionRewardCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTakePromotionRewardCsReq.java @@ -13,7 +13,7 @@ public class HandlerTakePromotionRewardCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = TakePromotionRewardCsReq.parseFrom(data); - + var rewards = session.getServer().getInventoryService().takePromotionRewardAvatar(session.getPlayer(), req.getBaseAvatarId(), req.getPromotion()); session.send(new PacketTakePromotionRewardScRsp(rewards)); } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTextJoinQueryCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTextJoinQueryCsReq.java index ac78ec1..fc4948a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTextJoinQueryCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTextJoinQueryCsReq.java @@ -1,11 +1,11 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.proto.TextJoinQueryCsReqOuterClass.TextJoinQueryCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.send.PacketTextJoinQueryScRsp; -import emu.lunarcore.proto.TextJoinQueryCsReqOuterClass.TextJoinQueryCsReq; @Opcodes(CmdId.TextJoinQueryCsReq) public class HandlerTextJoinQueryCsReq extends PacketHandler { diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerTrainPartyGetDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTrainPartyGetDataCsReq.java new file mode 100644 index 0000000..1196bee --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerTrainPartyGetDataCsReq.java @@ -0,0 +1,15 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; + +@Opcodes(CmdId.TrainPartyGetDataCsReq) +public class HandlerTrainPartyGetDataCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + session.send(CmdId.TrainPartyGetDataScRsp); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockAvatarPathCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockAvatarPathCsReq.java new file mode 100644 index 0000000..bf2a9c8 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockAvatarPathCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.UnlockAvatarPathCsReqOuterClass.UnlockAvatarPathCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketUnlockAvatarPathScRsp; + +@Opcodes(CmdId.UnlockAvatarPathCsReq) +public class HandlerUnlockAvatarPathCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + UnlockAvatarPathCsReq req = UnlockAvatarPathCsReq.parseFrom(data); + session.send(new PacketUnlockAvatarPathScRsp(req.getAvatarId())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockBackGroundMusicCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockBackGroundMusicCsReq.java index 5c5967a..e216a05 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockBackGroundMusicCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockBackGroundMusicCsReq.java @@ -1,10 +1,11 @@ package emu.lunarcore.server.packet.recv; +import java.util.ArrayList; +import java.util.List; + import emu.lunarcore.proto.UnlockBackGroundMusicCsReqOuterClass.UnlockBackGroundMusicCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; -import java.util.List; -import java.util.ArrayList; import emu.lunarcore.server.packet.Opcodes; import emu.lunarcore.server.packet.PacketHandler; import emu.lunarcore.server.packet.send.PacketUnlockBackGroundMusicScRsp; @@ -25,7 +26,7 @@ public class HandlerUnlockBackGroundMusicCsReq extends PacketHandler { session.send(new PacketUnlockBackGroundMusicScRsp()); } else { - session.send(new PacketUnlockBackGroundMusicScRsp(unlockIdsList)); + session.send(new PacketUnlockBackGroundMusicScRsp(unlockIdsList)); } } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockSkilltreeCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockSkilltreeCsReq.java index dc85e27..229be21 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockSkilltreeCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockSkilltreeCsReq.java @@ -1,5 +1,6 @@ package emu.lunarcore.server.packet.recv; +import emu.lunarcore.data.GameData; import emu.lunarcore.proto.UnlockSkilltreeCsReqOuterClass.UnlockSkilltreeCsReq; import emu.lunarcore.server.game.GameSession; import emu.lunarcore.server.packet.CmdId; @@ -12,15 +13,25 @@ public class HandlerUnlockSkilltreeCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { + // Parse request var req = UnlockSkilltreeCsReq.parseFrom(data); - int avatarId = req.getPointId() / 1000; // Hacky way to get avatar id - - boolean success = session.getServer().getInventoryService().unlockSkillTreeAvatar(session.getPlayer(), avatarId, req.getPointId()); + // Get excel for avatar id + var excel = GameData.getAvatarSkillTreeExcelMap().get(req.getPointId(), req.getLevel()); + + if (excel == null) { + session.send(new PacketUnlockSkilltreeScRsp()); + return; + } + + // Unlock skill tree + int avatarId = excel.getAvatarID(); + boolean success = session.getServer().getInventoryService().unlockSkillTreeAvatar(session.getPlayer(), avatarId, excel.getAnchorId(), req.getLevel()); + if (success) { session.send(new PacketUnlockSkilltreeScRsp(avatarId, req.getPointId(), req.getLevel())); } else { - session.send(new PacketUnlockSkilltreeScRsp()); + session.send(new PacketUnlockSkilltreeScRsp()); } } diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockTutorialCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockTutorialCsReq.java new file mode 100644 index 0000000..b6b3e68 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUnlockTutorialCsReq.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.UnlockTutorialCsReqOuterClass.UnlockTutorialCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketUnlockTutorialScRsp; + +@Opcodes(CmdId.UnlockTutorialCsReq) +public class HandlerUnlockTutorialCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = UnlockTutorialCsReq.parseFrom(data); + session.send(new PacketUnlockTutorialScRsp(req.getTutorialId())); + } + +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateGroupPropertyCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateGroupPropertyCsReq.java new file mode 100644 index 0000000..8d8b4e1 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateGroupPropertyCsReq.java @@ -0,0 +1,21 @@ +package emu.lunarcore.server.packet.recv; + +import emu.lunarcore.proto.UpdateGroupPropertyCsReqOuterClass.UpdateGroupPropertyCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketUpdateGroupPropertyScRsp; + +@Opcodes(CmdId.UpdateGroupPropertyCsReq) +public class HandlerUpdateGroupPropertyCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + var req = UpdateGroupPropertyCsReq.parseFrom(data); + + // TODO this is broken + session.send(new PacketUpdateGroupPropertyScRsp(req.getFloorId(), req.getGroupId(), req.getPropertyName(), req.getPropertyValue())); + } + +} diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateMarkChestCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateMarkChestCsReq.java new file mode 100644 index 0000000..ef19afe --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateMarkChestCsReq.java @@ -0,0 +1,49 @@ +package emu.lunarcore.server.packet.recv; + +import java.util.List; + +import emu.lunarcore.proto.MapPropDefInfoOuterClass.MapPropDefInfo; +import emu.lunarcore.proto.MarkChestInfoOuterClass.MarkChestInfo; +import emu.lunarcore.proto.UpdateMarkChestCsReqOuterClass.UpdateMarkChestCsReq; +import emu.lunarcore.server.game.GameSession; +import emu.lunarcore.server.packet.CmdId; +import emu.lunarcore.server.packet.Opcodes; +import emu.lunarcore.server.packet.PacketHandler; +import emu.lunarcore.server.packet.send.PacketMarkChestChangedScNotify; +import emu.lunarcore.server.packet.send.PacketUpdateMarkChestScRsp; +import it.unimi.dsi.fastutil.objects.ObjectArrayList; + +@Opcodes(CmdId.UpdateMarkChestCsReq) +public class HandlerUpdateMarkChestCsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] data) throws Exception { + UpdateMarkChestCsReq req = UpdateMarkChestCsReq.parseFrom(data); + + int funcId = req.getFuncId(); + int markAvatarId = req.getMarkAvatarId(); + List mapPropDefInfo = new ObjectArrayList<>(); + + for(MapPropDefInfo propDefInfo : req.getChestPropDefList()) { + mapPropDefInfo.add(propDefInfo); + } + + List toRsp = new ObjectArrayList<>(); + + if (session.getPlayer().getScene() != null) { + session.getPlayer().getScene().setMapPropDefInfoForFuncId(funcId, mapPropDefInfo); + } + + MarkChestInfo rsp = MarkChestInfo.newInstance() + .setFuncId(funcId); + + for (MapPropDefInfo propDefInfo : mapPropDefInfo) { + rsp.addChestPropDefList(propDefInfo); + } + + toRsp.add(rsp); + + session.send(new PacketUpdateMarkChestScRsp(funcId, markAvatarId, toRsp)); + session.send(new PacketMarkChestChangedScNotify(toRsp)); + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateServerPrefsDataCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateServerPrefsDataCsReq.java index 0ec02f4..6e7ac3a 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateServerPrefsDataCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUpdateServerPrefsDataCsReq.java @@ -13,7 +13,7 @@ public class HandlerUpdateServerPrefsDataCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = UpdateServerPrefsDataCsReq.parseFrom(data); - + if (req.hasServerPrefs()) { session.send(new PacketUpdateServerPrefsDataScRsp(req.getServerPrefs().getServerPrefsId())); } else { @@ -21,4 +21,4 @@ public class HandlerUpdateServerPrefsDataCsReq extends PacketHandler { } } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUseItemCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUseItemCsReq.java index 385fc60..54e4ffb 100644 --- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerUseItemCsReq.java +++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerUseItemCsReq.java @@ -16,7 +16,7 @@ public class HandlerUseItemCsReq extends PacketHandler { @Override public void handle(GameSession session, byte[] data) throws Exception { var req = UseItemCsReq.parseFrom(data); - + List returnItems = session.getPlayer().getInventory().useItem(req.getUseItemId(), req.getUseItemCount(), req.getBaseAvatarId()); session.send(new PacketUseItemScRsp(req.getUseItemId(), req.getUseItemCount(), returnItems)); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/Packet.java b/src/main/java/emu/lunarcore/server/packet/send/Packet.java index 67ceb61..c321046 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/Packet.java +++ b/src/main/java/emu/lunarcore/server/packet/send/Packet.java @@ -7,7 +7,7 @@ public class Packet extends BasePacket { public Packet() { super(CmdId.NONE); - + // Template - Do not delete! } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketActivateFarmElementScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketActivateFarmElementScRsp.java index 567f277..35e5b43 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketActivateFarmElementScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketActivateFarmElementScRsp.java @@ -8,20 +8,20 @@ public class PacketActivateFarmElementScRsp extends BasePacket { public PacketActivateFarmElementScRsp() { super(CmdId.ActivateFarmElementScRsp); - + var data = ActivateFarmElementScRsp.newInstance() .setRetcode(1); - + this.setData(data); } - + public PacketActivateFarmElementScRsp(int entityId, int worldLevel) { super(CmdId.ActivateFarmElementScRsp); - + var data = ActivateFarmElementScRsp.newInstance() .setEntityId(entityId) .setWorldLevel(worldLevel); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketAvatarPathChangedNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketAvatarPathChangedNotify.java index 4c2a0a7..9c58b84 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketAvatarPathChangedNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketAvatarPathChangedNotify.java @@ -10,11 +10,11 @@ public class PacketAvatarPathChangedNotify extends BasePacket { public PacketAvatarPathChangedNotify(GameAvatar avatar, AvatarMultiPath path) { super(CmdId.AvatarPathChangedNotify); - + var data = AvatarPathChangedNotify.newInstance() .setBaseAvatarId(avatar.getAvatarId()) .setChangedAvatarTypeValue(path.getExcelId()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketBattlePassInfoNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketBattlePassInfoNotify.java index 85d8a55..3f36bf2 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketBattlePassInfoNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketBattlePassInfoNotify.java @@ -11,19 +11,18 @@ public class PacketBattlePassInfoNotify extends BasePacket { super(CmdId.BattlePassInfoNotify); var data = BattlePassInfoNotify.newInstance() - .setTakenFreeReward(0xFFFFFFFFFFFFFFFFL) - .setTakenPremiumReward1(0xFFFFFFFFFFFFFFFFL) - .setTakenPremiumReward2(0x7FFFFFFFFFFFEL) - .setTakenPremiumOptionalReward(0x7FFFFFFFFFFFEL) - .setTakenFreeExtendedReward(127) - .setTakenPremiumExtendedReward(127) - //.setUnkfield(4) - .setLevel(70) - .setCurWeekAddExpSum(8000) - .setExp(800) - .setCurBpId(5) // doesn't matter - .setBpTierType(BpTierType.BP_TIER_TYPE_PREMIUM_2); - + .setTakenFreeReward(0xFFFFFFFFFFFFFFFFL) + .setTakenPremiumReward1(0xFFFFFFFFFFFFFFFFL) + .setTakenPremiumReward2(0x7FFFFFFFFFFFEL) + .setTakenPremiumOptionalReward(0x7FFFFFFFFFFFEL) + .setTakenFreeExtendedReward(127) + .setTakenPremiumExtendedReward(127) + .setLevel(70) + .setCurWeekAddExpSum(8000) + .setExp(800) + .setCurBpId(18) // doesn't matter + .setBpTierType(BpTierType.BP_TIER_TYPE_PREMIUM_2); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketBuyGoodsScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketBuyGoodsScRsp.java index 28ebf61..9e91f27 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketBuyGoodsScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketBuyGoodsScRsp.java @@ -13,13 +13,13 @@ public class PacketBuyGoodsScRsp extends BasePacket { public PacketBuyGoodsScRsp(BuyGoodsCsReq req, List items) { super(CmdId.BuyGoodsScRsp); - + var data = BuyGoodsScRsp.newInstance(); - + if (items != null) { ItemList returnItems = ItemList.newInstance(); items.stream().map(GameItem::toProto).forEach(returnItems::addItemList); - + data.setShopId(req.getShopId()); data.setGoodsId(req.getGoodsId()); data.setGoodsBuyTimes(req.getGoodsNum()); @@ -27,7 +27,7 @@ public class PacketBuyGoodsScRsp extends BasePacket { } else { data.setRetcode(1); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeLineupNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeLineupNotify.java index 49feb09..a1e7d18 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeLineupNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeLineupNotify.java @@ -8,10 +8,10 @@ public class PacketChallengeLineupNotify extends BasePacket { public PacketChallengeLineupNotify(int type) { super(CmdId.ChallengeLineupNotify); - + var data = ChallengeLineupNotify.newInstance() .setExtraLineupTypeValue(type); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketChallengePeakGroupDataUpdateScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketChallengePeakGroupDataUpdateScNotify.java new file mode 100644 index 0000000..4b3a62d --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketChallengePeakGroupDataUpdateScNotify.java @@ -0,0 +1,32 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.ChallengePeakGroupDataUpdateScNotifyOuterClass.ChallengePeakGroupDataUpdateScNotify; +import emu.lunarcore.proto.ChallengePeakLevelInfoOuterClass.ChallengePeakLevelInfo; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.IntList; + +public class PacketChallengePeakGroupDataUpdateScNotify extends BasePacket { + + public PacketChallengePeakGroupDataUpdateScNotify(int groupId, Int2ObjectMap lineupAvatars) { + super(CmdId.ChallengePeakGroupDataUpdateScNotify); + + var data = ChallengePeakGroupDataUpdateScNotify.newInstance(); + var group = data.getMutableChallengePeakGroup() + .setChallengePeakGroupId(groupId); + + for (var info : lineupAvatars.int2ObjectEntrySet()) { + var level = ChallengePeakLevelInfo.newInstance() + .setChallengePeakId(info.getIntKey()); + + for (int id : info.getValue()) { + level.addChallengeAvatarIdList(id); + } + + group.addChallengePeakLevelList(level); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeSettleNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeSettleNotify.java index 1bba0f2..5ce35b6 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeSettleNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketChallengeSettleNotify.java @@ -9,17 +9,17 @@ public class PacketChallengeSettleNotify extends BasePacket { public PacketChallengeSettleNotify(ChallengeInstance challenge) { super(CmdId.ChallengeSettleNotify); - + var data = ChallengeSettleNotify.newInstance() .setChallengeId(challenge.getExcel().getId()) .setIsWin(challenge.isWin()) .setChallengeScore(challenge.getScoreStage1()) .setScoreTwo(challenge.getScoreStage2()) .setStars(challenge.getStars()); - + // Set empty rewards - data.getMutableReward(); - + data.getMutableRewardList(); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketComposeItemScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketComposeItemScRsp.java index b3fa6db..4f033b8 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketComposeItemScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketComposeItemScRsp.java @@ -15,7 +15,7 @@ public class PacketComposeItemScRsp extends BasePacket { var data = ComposeItemScRsp.newInstance() .setComposeId(composeId) .setCount(count); - + if (returnList != null) { for (var item : returnList) { data.getMutableReturnItemList().addItemList(item.toProto()); @@ -23,7 +23,7 @@ public class PacketComposeItemScRsp extends BasePacket { } else { data.getMutableReturnItemList(); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketComposeSelectedRelicScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketComposeSelectedRelicScRsp.java index 31cf0a0..b31cb5b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketComposeSelectedRelicScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketComposeSelectedRelicScRsp.java @@ -11,10 +11,10 @@ public class PacketComposeSelectedRelicScRsp extends BasePacket { public PacketComposeSelectedRelicScRsp(int composeId, Collection returnList) { super(CmdId.ComposeSelectedRelicScRsp); - + var data = ComposeSelectedRelicScRsp.newInstance() .setComposeId(composeId); - + if (returnList != null) { for (var item : returnList) { data.getMutableReturnItemList().addItemList(item.toProto()); @@ -22,7 +22,7 @@ public class PacketComposeSelectedRelicScRsp extends BasePacket { } else { data.getMutableReturnItemList(); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketContentPackageGetDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketContentPackageGetDataScRsp.java index 8c60a31..f5e0c0c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketContentPackageGetDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketContentPackageGetDataScRsp.java @@ -11,24 +11,24 @@ public class PacketContentPackageGetDataScRsp extends BasePacket { public PacketContentPackageGetDataScRsp() { super(CmdId.ContentPackageGetDataScRsp); - + var proto = ContentPackageGetDataScRsp.newInstance(); var data = proto.getMutableData(); - + // Add content packages from excels for (var excel : GameData.getContentPackageExcelMap().values()) { var contentPackage = ContentPackageInfo.newInstance() .setContentId(excel.getId()) .setStatus(ContentPackageStatus.ContentPackageStatus_Finished); - + data.addContentPackageList(contentPackage); - + // Hacky way to set current content if (data.getCurContentId() == 0) { data.setCurContentId(excel.getId()); } } - + this.setData(proto); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketCurPetChangedScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketCurPetChangedScNotify.java index 9f54c63..ab609b0 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketCurPetChangedScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketCurPetChangedScNotify.java @@ -9,10 +9,10 @@ public class PacketCurPetChangedScNotify extends BasePacket { public PacketCurPetChangedScNotify(Player player) { super(CmdId.CurPetChangedScNotify); - + var data = CurPetChangedScNotify.newInstance() .setCurPetId(player.getPetId()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketCurTrialActivityScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketCurTrialActivityScNotify.java new file mode 100644 index 0000000..ff7d371 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketCurTrialActivityScNotify.java @@ -0,0 +1,23 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.trial.TrialInstance; +import emu.lunarcore.proto.CurTrialActivityScNotifyOuterClass.CurTrialActivityScNotify; +import emu.lunarcore.proto.TrialActivityStatusOuterClass.TrialActivityStatus; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketCurTrialActivityScNotify extends BasePacket { + + public PacketCurTrialActivityScNotify(TrialInstance trial) { + super(CmdId.CurTrialActivityScNotify); + + var proto = CurTrialActivityScNotify.newInstance() + .setTrialStageId(trial.getStageId()); + + if (trial.isFinished()) { + proto.setStatus(TrialActivityStatus.TRIAL_ACTIVITY_STATUS_FINISH); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketDailyActiveInfoNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketDailyActiveInfoNotify.java index 78f597d..a988130 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketDailyActiveInfoNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketDailyActiveInfoNotify.java @@ -1,6 +1,8 @@ package emu.lunarcore.server.packet.send; -import java.util.*; +import java.util.Arrays; +import java.util.List; + import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.DailyActiveInfoNotifyOuterClass.DailyActiveInfoNotify; import emu.lunarcore.proto.DailyActivityInfoOuterClass.DailyActivityInfo; @@ -13,20 +15,20 @@ public class PacketDailyActiveInfoNotify extends BasePacket { super(CmdId.DailyActiveInfoNotify); List questIdList = Arrays.asList(2100003,2100102,2100112,2100115,2100119,2100129); - + var data = DailyActiveInfoNotify.newInstance() - .setDailyActivePoint(700); - + .setDailyActivePoint(700); + for (int questId : questIdList) { data.addDailyActiveQuestIdList(questId); } for (int level = 1; level <= 5; level++) { DailyActivityInfo levelInfo = DailyActivityInfo.newInstance() - .setLevel(level) - .setDailyActivePoint(level * 100) - .setWorldLevel(player.getWorldLevel()) - .setIsHasTaken(true); + .setLevel(level) + .setDailyActivePoint(level * 100) + .setWorldLevel(player.getWorldLevel()) + .setIsHasTaken(true); data.addDailyActiveLevelList(levelInfo); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketDeactivateFarmElementScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketDeactivateFarmElementScRsp.java new file mode 100644 index 0000000..e0d55cf --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketDeactivateFarmElementScRsp.java @@ -0,0 +1,18 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.DeactivateFarmElementScRspOuterClass.DeactivateFarmElementScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketDeactivateFarmElementScRsp extends BasePacket { + + public PacketDeactivateFarmElementScRsp(int entityId) { + super(CmdId.DeactivateFarmElementScRsp); + + var data = DeactivateFarmElementScRsp.newInstance() + .setEntityId(entityId); + + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketDelMailScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketDelMailScRsp.java index 5d17a28..3514803 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketDelMailScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketDelMailScRsp.java @@ -9,11 +9,11 @@ public class PacketDelMailScRsp extends BasePacket { public PacketDelMailScRsp(IntList deleteList) { super(CmdId.DelMailScRsp); - + var data = DelMailScRsp.newInstance(); - + deleteList.forEach(data::addIdList); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketDeleteSocialEventServerCacheScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketDeleteSocialEventServerCacheScRsp.java new file mode 100644 index 0000000..9f981ad --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketDeleteSocialEventServerCacheScRsp.java @@ -0,0 +1,21 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.DeleteSocialEventServerCacheCsReqOuterClass.DeleteSocialEventServerCacheCsReq; +import emu.lunarcore.proto.DeleteSocialEventServerCacheScRspOuterClass.DeleteSocialEventServerCacheScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketDeleteSocialEventServerCacheScRsp extends BasePacket { + + public PacketDeleteSocialEventServerCacheScRsp(DeleteSocialEventServerCacheCsReq req) { + super(CmdId.DeleteSocialEventServerCacheScRsp); + + var data = DeleteSocialEventServerCacheScRsp.newInstance(); + + for (int cacheId : req.getDeleteCache()) { + data.addRetDeleteCache(cacheId); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketDeployRotaterScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketDeployRotaterScRsp.java deleted file mode 100644 index 4717573..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketDeployRotaterScRsp.java +++ /dev/null @@ -1,24 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.DeployRotaterScRspOuterClass.DeployRotaterScRsp; -import emu.lunarcore.proto.RotaterDataOuterClass.RotaterData; -import emu.lunarcore.proto.RotatorEnergyInfoOuterClass.RotatorEnergyInfo; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketDeployRotaterScRsp extends BasePacket { - - public PacketDeployRotaterScRsp(RotaterData rotaterData) { - super(CmdId.DeployRotaterScRsp); - - var energyInfo = RotatorEnergyInfo.newInstance() - .setMaxNum(100) - .setCurNum(100); - - var data = DeployRotaterScRsp.newInstance() - .setRotaterData(rotaterData) - .setEnergyInfo(energyInfo); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketDoGachaScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketDoGachaScRsp.java index 9c92577..fc98840 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketDoGachaScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketDoGachaScRsp.java @@ -15,7 +15,7 @@ public class PacketDoGachaScRsp extends BasePacket { public PacketDoGachaScRsp() { this(Retcode.FAIL); } - + public PacketDoGachaScRsp(Retcode retcode) { super(CmdId.DoGachaScRsp); @@ -29,7 +29,7 @@ public class PacketDoGachaScRsp extends BasePacket { .setGachaNum(num) .setCeilingNum(player.getGachaInfo().getCeilingNum()) .setGachaId(banner.getId()); - + for (GachaItem item : items) { data.addGachaItemList(item); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketEnableRogueTalentScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketEnableRogueTalentScRsp.java deleted file mode 100644 index 03f9a4c..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketEnableRogueTalentScRsp.java +++ /dev/null @@ -1,28 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueManager; -import emu.lunarcore.proto.EnableRogueTalentScRspOuterClass.EnableRogueTalentScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketEnableRogueTalentScRsp extends BasePacket { - - public PacketEnableRogueTalentScRsp() { - super(CmdId.EnableRogueTalentScRsp); - - var data = EnableRogueTalentScRsp.newInstance() - .setRetcode(1); - - this.setData(data); - } - - public PacketEnableRogueTalentScRsp(RogueManager rogueManager) { - super(CmdId.EnableRogueTalentScRsp); - - var data = EnableRogueTalentScRsp.newInstance() - .setTalentInfo(rogueManager.toTalentInfoProto()); - - this.setData(data); - } - -} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketEnhanceRogueBuffScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketEnhanceRogueBuffScRsp.java deleted file mode 100644 index 88cea75..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketEnhanceRogueBuffScRsp.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.EnhanceRogueBuffScRspOuterClass.EnhanceRogueBuffScRsp; -import emu.lunarcore.proto.RogueBuffOuterClass.RogueBuff; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketEnhanceRogueBuffScRsp extends BasePacket { - public PacketEnhanceRogueBuffScRsp(RogueBuff buff) { - super(CmdId.EnhanceRogueBuffScRsp); - - var proto = EnhanceRogueBuffScRsp.newInstance() - .setIsSuccess(true) - .setRogueBuff(buff); - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketEnterMapRotationRegionScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketEnterMapRotationRegionScRsp.java index 6e84747..936c819 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketEnterMapRotationRegionScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketEnterMapRotationRegionScRsp.java @@ -1,9 +1,9 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.proto.EnterMapRotationRegionScRspOuterClass.EnterMapRotationRegionScRsp; +import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo; import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.proto.MotionInfoOuterClass.MotionInfo;; +import emu.lunarcore.server.packet.CmdId;; public class PacketEnterMapRotationRegionScRsp extends BasePacket { @@ -11,7 +11,7 @@ public class PacketEnterMapRotationRegionScRsp extends BasePacket { super(CmdId.EnterMapRotationRegionScRsp); var data = EnterMapRotationRegionScRsp.newInstance() - .setMotion(motionInfo); + .setMotion(motionInfo); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketEnterRogueMapRoomScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketEnterRogueMapRoomScRsp.java deleted file mode 100644 index 8d3339d..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketEnterRogueMapRoomScRsp.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.player.Player; -import emu.lunarcore.game.rogue.RogueRoomData; -import emu.lunarcore.proto.EnterRogueMapRoomScRspOuterClass.EnterRogueMapRoomScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketEnterRogueMapRoomScRsp extends BasePacket { - - public PacketEnterRogueMapRoomScRsp(Player player, RogueRoomData room) { - super(CmdId.EnterRogueMapRoomScRsp); - - var data = EnterRogueMapRoomScRsp.newInstance() - .setLineup(player.getCurrentLineup().toProto()) - .setScene(player.getScene().toProto()) - .setCurSiteId(room.getSiteId()); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketEnterSceneByServerScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketEnterSceneByServerScNotify.java index 0fdec70..6686d77 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketEnterSceneByServerScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketEnterSceneByServerScNotify.java @@ -13,7 +13,7 @@ public class PacketEnterSceneByServerScNotify extends BasePacket { var data = EnterSceneByServerScNotify.newInstance() .setLineup(player.getCurrentLineup().toProto()) .setScene(player.getScene().toProto()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeGachaCeilingScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeGachaCeilingScRsp.java index 59d831b..a73d042 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeGachaCeilingScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeGachaCeilingScRsp.java @@ -12,21 +12,21 @@ public class PacketExchangeGachaCeilingScRsp extends BasePacket { public PacketExchangeGachaCeilingScRsp(Player player, int gachaType, int avatarId, Collection items) { super(CmdId.ExchangeGachaCeilingScRsp); - + var data = ExchangeGachaCeilingScRsp.newInstance(); - + if (items == null) { data.setRetcode(1); } else { data.setGachaCeiling(player.getGachaInfo().toGachaCeiling(player)); data.setGachaType(gachaType); data.setAvatarId(avatarId); - + for (var item : items) { data.getMutableTransferItemList().addItemList(item.toProto()); } } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeHcoinScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeHcoinScRsp.java new file mode 100644 index 0000000..eaf95b2 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketExchangeHcoinScRsp.java @@ -0,0 +1,16 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.ExchangeHcoinScRspOuterClass.ExchangeHcoinScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketExchangeHcoinScRsp extends BasePacket { + + public PacketExchangeHcoinScRsp(int num) { + super(CmdId.ExchangeHcoinScRsp); + + var data = ExchangeHcoinScRsp.newInstance().setNum(num); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpEquipmentScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpEquipmentScRsp.java index 55a21ab..1a0987a 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpEquipmentScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpEquipmentScRsp.java @@ -13,7 +13,7 @@ public class PacketExpUpEquipmentScRsp extends BasePacket { super(CmdId.ExpUpEquipmentScRsp); var data = ExpUpEquipmentScRsp.newInstance(); - + if (returnItems != null) { for (GameItem item : returnItems) { data.addReturnItemList(item.toPileProto()); @@ -21,8 +21,8 @@ public class PacketExpUpEquipmentScRsp extends BasePacket { } else { data.setRetcode(1); } - + this.setData(data); } - + } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpRelicScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpRelicScRsp.java index e2b58ea..bb33e82 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpRelicScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketExpUpRelicScRsp.java @@ -21,7 +21,7 @@ public class PacketExpUpRelicScRsp extends BasePacket { } else { data.setRetcode(1); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketFinishTalkMissionScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketFinishTalkMissionScRsp.java deleted file mode 100644 index 53ab6a5..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketFinishTalkMissionScRsp.java +++ /dev/null @@ -1,26 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.FinishTalkMissionCsReqOuterClass.FinishTalkMissionCsReq; -import emu.lunarcore.proto.FinishTalkMissionScRspOuterClass.FinishTalkMissionScRsp; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketFinishTalkMissionScRsp extends BasePacket { - - public PacketFinishTalkMissionScRsp(FinishTalkMissionCsReq req, Player target) { - super(CmdId.FinishTalkMissionScRsp); - - int submissionid = req.getSubMissionId(); - - var data = FinishTalkMissionScRsp.newInstance() - .setSubMissionId(submissionid) - .setTalkStr(req.getTalkStr()); - - for (var item : req.getCustomValueList()) { - data.addCustomValueList(item); - } - - this.setData(data); - } -} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketFinishTutorialGuideScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketFinishTutorialGuideScRsp.java new file mode 100644 index 0000000..2f9c75b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketFinishTutorialGuideScRsp.java @@ -0,0 +1,33 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.data.excel.TutorialGuideExcel; +import emu.lunarcore.proto.FinishTutorialGuideScRspOuterClass.FinishTutorialGuideScRsp; +import emu.lunarcore.proto.TutorialGuideOuterClass.TutorialGuide; +import emu.lunarcore.proto.TutorialStatusOuterClass.TutorialStatus; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketFinishTutorialGuideScRsp extends BasePacket { + + public PacketFinishTutorialGuideScRsp(TutorialGuideExcel excel) { + super(CmdId.FinishTutorialGuideScRsp); + + var data = FinishTutorialGuideScRsp.newInstance(); + + if (excel == null) { + data.setRetcode(1); + } else { + // Set reward + data.getMutableReward(); + + // Set tutorial guide + var tutorial = TutorialGuide.newInstance() + .setId(excel.getId()) + .setStatus(TutorialStatus.TUTORIAL_FINISH); + + data.setTutorialGuide(tutorial); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetActivityScheduleConfigScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetActivityScheduleConfigScRsp.java index 654b44a..d0c6be6 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetActivityScheduleConfigScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetActivityScheduleConfigScRsp.java @@ -1,6 +1,5 @@ package emu.lunarcore.server.packet.send; -import emu.lunarcore.data.GameDepot; import emu.lunarcore.proto.ActivityScheduleInfoOuterClass.ActivityScheduleInfo; import emu.lunarcore.proto.GetActivityScheduleConfigScRspOuterClass.GetActivityScheduleConfigScRsp; import emu.lunarcore.server.packet.BasePacket; @@ -12,19 +11,52 @@ public class PacketGetActivityScheduleConfigScRsp extends BasePacket { public PacketGetActivityScheduleConfigScRsp() { super(CmdId.GetActivityScheduleConfigScRsp); - + var data = GetActivityScheduleConfigScRsp.newInstance(); + + // Trials TODO + addActivity(data, 20027, 2002700); + addActivity(data, 20027, 2002501); + addActivity(data, 20027, 2002502); + addActivity(data, 20027, 2002601); + addActivity(data, 20030, 2003000); + addActivity(data, 20030, 2002801); + addActivity(data, 20030, 2002901); + addActivity(data, 20030, 2002803); + addActivity(data, 20033, 2003300); + addActivity(data, 20033, 2003101); + addActivity(data, 20033, 2003201); + addActivity(data, 20036, 2003600); + addActivity(data, 20036, 2003401); + addActivity(data, 20036, 2003501); + addActivity(data, 20039, 2003900); + addActivity(data, 20039, 2003701); + addActivity(data, 20039, 2003801); + addActivity(data, 20042, 2004200); + addActivity(data, 20042, 2004001); + addActivity(data, 20042, 2004101); + addActivity(data, 20042, 2004002); + addActivity(data, 20046, 2004401); + addActivity(data, 20049, 2004701); + addActivity(data, 20049, 2004801); + addActivity(data, 20052, 2005001); + addActivity(data, 20052, 2005101); + addActivity(data, 20053, 2008007); + addActivity(data, 20056, 2005401); + addActivity(data, 20056, 2005501); + addActivity(data, 20056, 2005501); - for (var activity : GameDepot.getActivityScheduleExcels()) { - var info = ActivityScheduleInfo.newInstance() - .setActivityId(activity.getActivityId()) - .setModuleId(activity.getModuleId()) - .setBeginTime(activity.getBeginTime()) - .setEndTime(activity.getEndTime()); - - data.addActivityScheduleList(info); - } - + // Add proto this.setData(data); } + + private void addActivity(GetActivityScheduleConfigScRsp data, int panelId, int moduleId) { + var info = ActivityScheduleInfo.newInstance() + .setActivityId(panelId) + .setModuleId(moduleId) + .setBeginTime(0) + .setEndTime(Integer.MAX_VALUE); + + data.addActivityScheduleList(info); + } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java index beb146b..afb6828 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetArchiveDataScRsp.java @@ -13,45 +13,33 @@ public class PacketGetArchiveDataScRsp extends BasePacket { public PacketGetArchiveDataScRsp() { super(CmdId.GetArchiveDataScRsp); - + var data = GetArchiveDataScRsp.newInstance(); - var archiveData = data.getMutableArchiveData(); - //var allRelicSetIds = GameData.getRelicExcelMap().values().stream().map(RelicExcel::getSetId).collect(Collectors.toSet()); - - //for (var avatarExcel : GameData.getAvatarExcelMap().values()) { - //archiveData.addArchiveAvatarIdList(avatarExcel.getAvatarID()); - //} + var archive = data.getMutableArchiveData(); - /* - for (int relicSetId : allRelicSetIds) { - int setType = GameData.getTypeValueFromSetID(relicSetId); - var relicSetInstance = RelicArchive.newInstance() - .setRelicId(relicSetId); - .setSlot(setType); - archiveData.addRelicList(relicSetInstance); - } - */ - - for (var monsterExcel : GameData.getMonsterExcelMap().values()) { + for (var monsterExcel : GameData.getMonsterExcelMap()) { MonsterArchive monsterinfo = MonsterArchive.newInstance() - .setMonsterId(monsterExcel.getId()) - .setNum(1); // todo: add to db + .setMonsterId(monsterExcel.getId()) + .setNum(1); // todo: add to db - archiveData.addArchiveMonsterIdList(monsterinfo); + archive.addMonsterList(monsterinfo); } - for (var relicExcel : GameData.getRelicExcelMap().values()) { + for (var relicExcel : GameData.getRelicExcelMap()) { RelicArchive relicInfo = RelicArchive.newInstance() - .setSlot(relicExcel.getType().getVal()) - .setRelicId(relicExcel.getId()); // todo: add to db + .setSlot(relicExcel.getType().getVal()) + .setRelicId(relicExcel.getSetId()); // todo: add to db - archiveData.addRelicList(relicInfo); + archive.addRelicList(relicInfo); } - - for (var equipmentExcel : GameData.getEquipExcelMap().values()) { - archiveData.addAllArchiveEquipmentIdList(equipmentExcel.getId()); + + for (var item : GameData.getItemExcelMap()) { + if (item.isEquipment()) { + var equipmentExcel = item.getEquipmentExcel(); + archive.addArchiveEquipmentIdList(equipmentExcel.getId()); + } } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetAvatarDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetAvatarDataScRsp.java index a3859cf..0851241 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetAvatarDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetAvatarDataScRsp.java @@ -1,5 +1,6 @@ package emu.lunarcore.server.packet.send; +import emu.lunarcore.game.avatar.AvatarMultiPath; import emu.lunarcore.game.avatar.GameAvatar; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetAvatarDataScRspOuterClass.GetAvatarDataScRsp; @@ -7,7 +8,7 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketGetAvatarDataScRsp extends BasePacket { - + public PacketGetAvatarDataScRsp(Player player) { super(CmdId.GetAvatarDataScRsp); @@ -15,10 +16,30 @@ public class PacketGetAvatarDataScRsp extends BasePacket { .setIsGetAll(true); for (GameAvatar avatar : player.getAvatars()) { - data.addAvatarList(avatar.toProto()); + var avatarProto = avatar.toProto(); + + if (!avatar.hasMultiPath()) { + // Add unique info + data.addAvatarPathInfoList(avatar.toPathInfoProto()); + } + + data.addAvatarList(avatarProto); } + + for (AvatarMultiPath path : player.getAvatars().getMultiPaths().values()) { + data.addAvatarPathInfoList(path.toPathInfoProto()); + data.addBasicTypeIdList(path.getExcelId()); + } + + // Avatar skins + for (int skinId : player.getUnlocks().getAvatarSkins()) { + data.addOwnedSkinList(skinId); + } + + // Set player outfit data + data.getMutablePlayerOutfitData(); this.setData(data); } - + } \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetBagScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBagScRsp.java index 19cadb8..f74a04d 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetBagScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBagScRsp.java @@ -30,6 +30,13 @@ public class PacketGetBagScRsp extends BasePacket { data.addEquipmentList(item.toEquipmentProto()); } + /* + for (int item : session.getPlayer().getUnlocks().getPets()) { + int petId = GameData.getPetItemId(item); + data.addPetList(petId); + } + */ + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetBasicInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBasicInfoScRsp.java index 80fcb62..f498db9 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetBasicInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBasicInfoScRsp.java @@ -2,7 +2,6 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetBasicInfoScRspOuterClass.GetBasicInfoScRsp; -import emu.lunarcore.proto.PlayerSettingInfoOuterClass.PlayerSettingInfo; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -15,9 +14,13 @@ public class PacketGetBasicInfoScRsp extends BasePacket { .setCurDay(1) .setIsGenderSet(true) .setGender(player.getGender().getVal()) + .setWeekCocoonFinishedCount(0) .setNextRecoverTime(player.getNextStaminaRecover() / 1000) - .setGameplayBirthday(player.getBirthday()) - .setPlayerSettingInfo(PlayerSettingInfo.newInstance()); + .setGameplayBirthday(player.getBirthday()); + + var settings = data.getMutablePlayerSettingInfo(); + settings.getMutableUnk1(); + settings.getMutableUnk2(); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataAllRecommendScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataAllRecommendScRsp.java new file mode 100644 index 0000000..7f5cb1f --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataAllRecommendScRsp.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.BigDataRecommendTypeOuterClass.BigDataRecommendType; +import emu.lunarcore.proto.GetBigDataAllRecommendScRspOuterClass.GetBigDataAllRecommendScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetBigDataAllRecommendScRsp extends BasePacket { + + public PacketGetBigDataAllRecommendScRsp(BigDataRecommendType type) { + super(CmdId.GetBigDataAllRecommendScRsp); + + var data = GetBigDataAllRecommendScRsp.newInstance() + .setRecommendType(type); + + if (type == BigDataRecommendType.BIG_DATA_RECOMMEND_TYPE_AVATAR_RELIC) { + data.getMutableRelicReccomendData(); + } else { + data.getMutableAvatarReccomendData(); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataRecommendScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataRecommendScRsp.java new file mode 100644 index 0000000..b9f09e5 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetBigDataRecommendScRsp.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.GetBigDataRecommendCsReqOuterClass.GetBigDataRecommendCsReq; +import emu.lunarcore.proto.GetBigDataRecommendScRspOuterClass.GetBigDataRecommendScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetBigDataRecommendScRsp extends BasePacket { + + public PacketGetBigDataRecommendScRsp(GetBigDataRecommendCsReq req) { + super(CmdId.GetBigDataRecommendScRsp); + + var data = GetBigDataRecommendScRsp.newInstance() + .setRecommendType(req.getRecommendType()) + .setTrailblazerPathId(req.getTrailblazerPathId()); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeGroupStatisticsScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeGroupStatisticsScRsp.java new file mode 100644 index 0000000..2b8a48a --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeGroupStatisticsScRsp.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.GetChallengeGroupStatisticsScRspOuterClass.GetChallengeGroupStatisticsScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetChallengeGroupStatisticsScRsp extends BasePacket { + + public PacketGetChallengeGroupStatisticsScRsp(int groupId) { + super(CmdId.GetChallengeGroupStatisticsScRsp); + + var data = GetChallengeGroupStatisticsScRsp.newInstance() + .setGroupId(groupId); // TODO: set the rest of the fields + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengePeakDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengePeakDataScRsp.java new file mode 100644 index 0000000..21542e7 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengePeakDataScRsp.java @@ -0,0 +1,18 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.GameConstants; +import emu.lunarcore.proto.GetChallengePeakDataScRspOuterClass.GetChallengePeakDataScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetChallengePeakDataScRsp extends BasePacket { + + public PacketGetChallengePeakDataScRsp() { + super(CmdId.GetChallengePeakDataScRsp); + + var data = GetChallengePeakDataScRsp.newInstance() + .setCurChallengePeakGroupId(GameConstants.CHALLENGE_PEAK_GROUP_ID); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeScRsp.java index ce6c9ef..306c7c5 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChallengeScRsp.java @@ -15,27 +15,28 @@ public class PacketGetChallengeScRsp extends BasePacket { super(CmdId.GetChallengeScRsp); var data = GetChallengeScRsp.newInstance(); - + if (LunarCore.getConfig().getServerOptions().unlockAllChallenges) { // Add all challenge excels to our challenge list // TODO find out which challenge groups are active so we dont have to send old challenge ids to the client for (var challengeExcel : GameData.getChallengeExcelMap().values()) { // Get challenge history var history = player.getChallengeManager().getHistory().get(challengeExcel.getId()); - + if (history != null) { data.addChallengeList(history.toProto()); } else { // Create fake completed challenge proto - var proto = Challenge.newInstance().setChallengeId(challengeExcel.getId()); - + var proto = Challenge.newInstance() + .setChallengeId(challengeExcel.getId()); + // Skip boss challenges for now TODO if (challengeExcel.getType() == ChallengeType.BOSS) { var boss = proto.getMutableExtInfo().getMutableBossInfo(); boss.getMutableFirstNode(); boss.getMutableSecondNode(); } - + data.addChallengeList(proto); } } @@ -44,11 +45,11 @@ public class PacketGetChallengeScRsp extends BasePacket { data.addChallengeList(history.toProto()); } } - + for (var reward : player.getChallengeManager().getTakenRewards().values()) { data.addChallengeRewardList(reward.toProto()); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetChessRogueNousStoryInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetChessRogueNousStoryInfoScRsp.java deleted file mode 100644 index 11473f5..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetChessRogueNousStoryInfoScRsp.java +++ /dev/null @@ -1,29 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.data.GameData; -import emu.lunarcore.proto.ChessRogueNousMainStoryInfoOuterClass.ChessRogueNousMainStoryInfo; -import emu.lunarcore.proto.ChessRogueNousSubStoryInfoOuterClass.ChessRogueNousSubStoryInfo; -import emu.lunarcore.proto.GetChessRogueNousStoryInfoScRspOuterClass.GetChessRogueNousStoryInfoScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetChessRogueNousStoryInfoScRsp extends BasePacket { - public PacketGetChessRogueNousStoryInfoScRsp() { - super(CmdId.GetChessRogueNousStoryInfoScRsp); - - var proto = GetChessRogueNousStoryInfoScRsp.newInstance(); - - for (var entry : GameData.getRogueNousMainStoryExcelMap().keySet()) { - proto.addMainStoryInfo(ChessRogueNousMainStoryInfo.newInstance() - .setStoryId(entry) - .setStatus(2)); - } - - for (var entry : GameData.getRogueNousSubStoryExcelMap().keySet()) { - proto.addSubStoryInfo(ChessRogueNousSubStoryInfo.newInstance() - .setSubStoryId(entry)); - } - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetCurChallengeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetCurChallengeScRsp.java index 4cdb49b..f8f575e 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetCurChallengeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetCurChallengeScRsp.java @@ -1,5 +1,6 @@ package emu.lunarcore.server.packet.send; +import emu.lunarcore.game.challenge.ChallengeInstance; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetCurChallengeScRspOuterClass.GetCurChallengeScRsp; import emu.lunarcore.server.packet.BasePacket; @@ -9,15 +10,16 @@ public class PacketGetCurChallengeScRsp extends BasePacket { public PacketGetCurChallengeScRsp(Player player) { super(CmdId.GetCurChallengeScRsp); - + var data = GetCurChallengeScRsp.newInstance(); - - if (player.getChallengeInstance() != null) { - data.setChallengeInfo(player.getChallengeInstance().toProto()); + + ChallengeInstance instance = player.getInstance(ChallengeInstance.class); + if (instance != null) { + data.setChallengeInfo(instance.toProto()); } else { data.setRetcode(0); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetDailyActiveInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetDailyActiveInfoScRsp.java index 5f3e059..78b9d16 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetDailyActiveInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetDailyActiveInfoScRsp.java @@ -1,9 +1,11 @@ package emu.lunarcore.server.packet.send; -import java.util.*; -import emu.lunarcore.proto.GetDailyActiveInfoScRspOuterClass.GetDailyActiveInfoScRsp; -import emu.lunarcore.proto.DailyActivityInfoOuterClass.DailyActivityInfo; +import java.util.Arrays; +import java.util.List; + import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.DailyActivityInfoOuterClass.DailyActivityInfo; +import emu.lunarcore.proto.GetDailyActiveInfoScRspOuterClass.GetDailyActiveInfoScRsp; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -13,20 +15,20 @@ public class PacketGetDailyActiveInfoScRsp extends BasePacket { super(CmdId.GetDailyActiveInfoScRsp); List questIdList = Arrays.asList(2100003,2100102,2100112,2100115,2100119,2100129); - + var data = GetDailyActiveInfoScRsp.newInstance() - .setDailyActivePoint(500); - + .setDailyActivePoint(500); + for (int questId : questIdList) { data.addDailyActiveQuestIdList(questId); } for (int level = 1; level <= 5; level++) { DailyActivityInfo levelInfo = DailyActivityInfo.newInstance() - .setLevel(level) - .setDailyActivePoint(level * 100) - .setWorldLevel(target.getWorldLevel()) - .setIsHasTaken(true); + .setLevel(level) + .setDailyActivePoint(level * 100) + .setWorldLevel(target.getWorldLevel()) + .setIsHasTaken(true); data.addDailyActiveLevelList(levelInfo); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetEnteredSceneScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetEnteredSceneScRsp.java index 7955db7..8b9db7e 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetEnteredSceneScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetEnteredSceneScRsp.java @@ -4,32 +4,30 @@ import emu.lunarcore.data.GameData; import emu.lunarcore.proto.EnteredSceneInfoOuterClass.EnteredSceneInfo; import emu.lunarcore.proto.GetEnteredSceneScRspOuterClass.GetEnteredSceneScRsp; import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CacheablePacket; import emu.lunarcore.server.packet.CmdId; -@CacheablePacket public class PacketGetEnteredSceneScRsp extends BasePacket { public PacketGetEnteredSceneScRsp() { super(CmdId.GetEnteredSceneScRsp); - + var data = GetEnteredSceneScRsp.newInstance(); - + // TODO find a better way to get these scenes for (var excel : GameData.getMapEntranceExcelMap().values()) { // Skip these if (excel.getFinishMainMissionList().length == 0 && excel.getFinishSubMissionList().length == 0) { continue; } - + // Add info var info = EnteredSceneInfo.newInstance() .setPlaneId(excel.getPlaneID()) .setFloorId(excel.getFloorID()); - + data.addEnteredSceneInfo(info); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFarmStageGachaInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFarmStageGachaInfoScRsp.java index 22c58a0..f2b2f1b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFarmStageGachaInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFarmStageGachaInfoScRsp.java @@ -10,17 +10,17 @@ public class PacketGetFarmStageGachaInfoScRsp extends BasePacket { public PacketGetFarmStageGachaInfoScRsp(RepeatedInt idList) { super(CmdId.GetFarmStageGachaInfoScRsp); - + var data = GetFarmStageGachaInfoScRsp.newInstance(); - + for (var id : idList) { var info = FarmStageGachaInfo.newInstance() .setGachaId(id) .setEndTime(Integer.MAX_VALUE); - + data.addFarmStageGachaInfoList(info); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkByPerformanceNpcScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkByPerformanceNpcScRsp.java index d8f9443..e2b0c4f 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkByPerformanceNpcScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkByPerformanceNpcScRsp.java @@ -10,16 +10,16 @@ public class PacketGetFirstTalkByPerformanceNpcScRsp extends BasePacket { public PacketGetFirstTalkByPerformanceNpcScRsp(GetFirstTalkByPerformanceNpcCsReq req) { super(CmdId.GetFirstTalkByPerformanceNpcScRsp); - + var data = GetFirstTalkByPerformanceNpcScRsp.newInstance(); - + for (int id: req.getNpcTalkList()) { var info = NpcTalkInfo.newInstance() .setNpcTalkId(id); - + data.addNpcTalkInfoList(info); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkNpcScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkNpcScRsp.java new file mode 100644 index 0000000..f499bfa --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFirstTalkNpcScRsp.java @@ -0,0 +1,25 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.FirstNpcTalkInfoOuterClass.FirstNpcTalkInfo; +import emu.lunarcore.proto.GetFirstTalkNpcCsReqOuterClass.GetFirstTalkNpcCsReq; +import emu.lunarcore.proto.GetFirstTalkNpcScRspOuterClass.GetFirstTalkNpcScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetFirstTalkNpcScRsp extends BasePacket { + + public PacketGetFirstTalkNpcScRsp(GetFirstTalkNpcCsReq req) { + super(CmdId.GetFirstTalkNpcScRsp); + + var data = GetFirstTalkNpcScRsp.newInstance(); + + for (int id: req.getNpcIdList()) { + var info = FirstNpcTalkInfo.newInstance() + .setNpcId(id); + + data.addNpcTalkInfoList(info); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java index 2c5e4d5..ac49d84 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendApplyListInfoScRsp.java @@ -12,21 +12,21 @@ public class PacketGetFriendApplyListInfoScRsp extends BasePacket { super(CmdId.GetFriendApplyListInfoScRsp); var data = GetFriendApplyListInfoScRsp.newInstance(); - + for (var friendship : friendList.getPendingFriends().values()) { // Skip if we are the asker if (friendship.getAskerUid() == friendList.getPlayer().getUid()) continue; - + // Get friend info from the server var friend = friendList.getServer().getPlayerByUid(friendship.getFriendUid(), true); if (friend == null) continue; - + var friendInfo = FriendApplyInfo.newInstance() .setSimpleInfo(friend.toSimpleInfo()); - + data.addFriendApplyList(friendInfo); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendBattleRecordDetailScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendBattleRecordDetailScRsp.java new file mode 100644 index 0000000..46e0717 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendBattleRecordDetailScRsp.java @@ -0,0 +1,123 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.AvatarTypeOuterClass.AvatarType; +import emu.lunarcore.proto.BattleRecord1InfoOuterClass.BattleRecord1Info; +import emu.lunarcore.proto.BattleRecord1OuterClass.BattleRecord1; +import emu.lunarcore.proto.BattleRecordAvatarOuterClass.BattleRecordAvatar; +import emu.lunarcore.proto.BattleRecordAvatarsOuterClass.BattleRecordAvatars; +import emu.lunarcore.proto.BattleRecordType2OuterClass.BattleRecordType2; +import emu.lunarcore.proto.BattleRecordType2OuterClass.BattleRecordType2.RecordDisplayAvatar; +import emu.lunarcore.proto.BattleRecordType2OuterClass.BattleRecordType2.RecordDisplayInfo; +import emu.lunarcore.proto.BattleRecordType2OuterClass.BattleRecordType2.RecordType2; +import emu.lunarcore.proto.DisplayRecordTypeOuterClass.DisplayRecordType; +import emu.lunarcore.proto.FriendBattleRecordType1OuterClass.FriendBattleRecordType1; +import emu.lunarcore.proto.FriendBattleRecordType2OuterClass.FriendBattleRecordType2; +import emu.lunarcore.proto.GetFriendBattleRecordDetailScRspOuterClass.GetFriendBattleRecordDetailScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetFriendBattleRecordDetailScRsp extends BasePacket { + + public static BattleRecordAvatar createBattleAvatar(int id, int index) { + return BattleRecordAvatar.newInstance() + .setLevel(80) + .setId(id) + .setIndex(index) + .setAvatarType(AvatarType.AVATAR_FORMAL_TYPE); + } + + public static RecordDisplayAvatar createRecordDisplayAvatar(int id, int slot) { + return RecordDisplayAvatar.newInstance() + .setLevel(80) + .setId(id) + .setSlot(slot) + .setAvatarType(AvatarType.AVATAR_FORMAL_TYPE); + } + + public PacketGetFriendBattleRecordDetailScRsp(int uid, DisplayRecordType type, int groupId) { + super(CmdId.GetFriendBattleRecordDetailScRsp); + + var avatarlist1 = BattleRecordAvatars.newInstance() + .addAllAvatarList( + createBattleAvatar(1305, 0), + createBattleAvatar(1309, 1), + createBattleAvatar(1112, 2), + createBattleAvatar(1304, 3) + ); + + /* + var avatarlist2 = BattleRecordAvatars.newInstance() + .addAllAvatarList( + createBattleAvatar(1308, 0), + createBattleAvatar(1303, 1), + createBattleAvatar(1217, 2), + createBattleAvatar(1101, 3) + ); + */ + + var recordInfo = BattleRecord1Info.newInstance() + .setLevel(12) + .setRoundCount(17) + .setBattleRecordStars(2) + .addAllBattleRecordAvatars(avatarlist1); + + var record = BattleRecord1.newInstance() + .setRecordId(13) + .setRecordInfo(recordInfo); + + var withGroup = FriendBattleRecordType1.newInstance() + .setStarCnt(36) + .setGroupId(groupId) + .setRecord1(record); + + var data = GetFriendBattleRecordDetailScRsp.newInstance() + .setWithGroup(withGroup) + .setUid(uid); + + this.setData(data); + } + + + public PacketGetFriendBattleRecordDetailScRsp(int uid, DisplayRecordType type) { + super(CmdId.GetFriendBattleRecordDetailScRsp); + + var displayInfo = RecordDisplayInfo.newInstance() + .addAllUnkRepeated( + 63, + 102, + 57, + 62, + 13, + 26, + 12, + 123, + 104 + ) + .addAllAvatarList( + createRecordDisplayAvatar(1315, 0), + createRecordDisplayAvatar(1309, 1), + createRecordDisplayAvatar(1208, 2), + createRecordDisplayAvatar(1306, 3) + ); + + var record = RecordType2.newInstance() + .setScore(7500) + .setIsWin(true) + .setInt1(13) + .setInt2(183) + .setDisplayInfo(displayInfo); + + var recordtype2 = BattleRecordType2.newInstance() + .setRecord(record) + .setRecordId(804); + + var noGroup = FriendBattleRecordType2.newInstance() + .setRecordType2(recordtype2); + + var data = GetFriendBattleRecordDetailScRsp.newInstance() + .setNoGroup(noGroup) + .setUid(uid); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendDevelopmentInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendDevelopmentInfoScRsp.java new file mode 100644 index 0000000..26de92c --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendDevelopmentInfoScRsp.java @@ -0,0 +1,42 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.DevelopmentTypeOuterClass.DevelopmentType; +import emu.lunarcore.proto.FriendDevelopmentInfoOuterClass.FriendDevelopmentInfo; +import emu.lunarcore.proto.GetFriendDevelopmentInfoScRspOuterClass.GetFriendDevelopmentInfoScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetFriendDevelopmentInfoScRsp extends BasePacket { + + public PacketGetFriendDevelopmentInfoScRsp(int uid) { + super(CmdId.GetFriendDevelopmentInfoScRsp); + + var data = GetFriendDevelopmentInfoScRsp.newInstance() + .setUid(uid); + + // TODO. Dont show if not a friend + data.addDevelopmentInfoList(createAvatarDevelopment(1308)); + data.addDevelopmentInfoList(createAvatarDevelopment(1309)); + data.addDevelopmentInfoList(createAvatarDevelopment(1315)); + data.addDevelopmentInfoList(createChallengeDevelopment(3212)); + + this.setData(data); + } + + private FriendDevelopmentInfo createAvatarDevelopment(int avatarId) { + return FriendDevelopmentInfo.newInstance() + .setDevelopmentType(DevelopmentType.DEVELOPMENT_UNLOCK_AVATAR) + .setAvatarId(avatarId) + .setTime(System.currentTimeMillis()); + } + + private FriendDevelopmentInfo createChallengeDevelopment(int challengeId) { + var proto = FriendDevelopmentInfo.newInstance() + .setDevelopmentType(DevelopmentType.DEVELOPMENT_MEMORY_CHALLENGE) + .setTime(System.currentTimeMillis()); + + proto.getMutableChallengeDevelopmentInfo().setChallengeId(challengeId); + + return proto; + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java index 602ce72..4d12c25 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendListInfoScRsp.java @@ -2,14 +2,15 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.GameConstants; import emu.lunarcore.LunarCore; +import emu.lunarcore.game.challenge.ChallengeInstance; import emu.lunarcore.game.friends.FriendList; import emu.lunarcore.proto.AssistSimpleInfoOuterClass.AssistSimpleInfo; import emu.lunarcore.proto.FriendListInfoOuterClass.FriendListInfo; import emu.lunarcore.proto.FriendOnlineStatusOuterClass.FriendOnlineStatus; import emu.lunarcore.proto.GetFriendListInfoScRspOuterClass.GetFriendListInfoScRsp; import emu.lunarcore.proto.PlatformTypeOuterClass.PlatformType; +import emu.lunarcore.proto.PlayerSimpleInfoOuterClass.PlayerSimpleInfo; import emu.lunarcore.proto.PlayingStateOuterClass.PlayingState; -import emu.lunarcore.proto.SimpleInfoOuterClass.SimpleInfo; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -17,59 +18,63 @@ public class PacketGetFriendListInfoScRsp extends BasePacket { public PacketGetFriendListInfoScRsp(FriendList friendList) { super(CmdId.GetFriendListInfoScRsp); - + // Get friend info from config var serverFriendInfo = LunarCore.getConfig().getServerOptions().getServerFriendInfo(); // Inject server console as friend - var consoleFriend = SimpleInfo.newInstance() + var consoleFriend = PlayerSimpleInfo.newInstance() .setUid(GameConstants.SERVER_CONSOLE_UID) .setNickname(serverFriendInfo.getName()) .setSignature(serverFriendInfo.getSignature()) .setLevel(serverFriendInfo.getLevel()) - .setChatBubbleId(serverFriendInfo.getChatBubbleId()) + .setChatBubble(serverFriendInfo.getChatBubbleId()) .setOnlineStatus(FriendOnlineStatus.FRIEND_ONLINE_STATUS_ONLINE) - .setPlatformType(PlatformType.PC) + .setPlatform(PlatformType.PC) .setHeadIcon(serverFriendInfo.getHeadIcon()); - + // Add server display avatars if (serverFriendInfo.getDisplayAvatars() != null) { for (int pos = 0; pos < serverFriendInfo.getDisplayAvatars().size(); pos++) { var displayAvatar = serverFriendInfo.getDisplayAvatars().get(pos); - + var info = AssistSimpleInfo.newInstance() .setAvatarId(displayAvatar.getAvatarId()) .setLevel(displayAvatar.getLevel()) .setPos(pos); - - consoleFriend.addAssistSimpleInfo(info); + + consoleFriend.addAssistInfoList(info); } } // Create proto and add the server console info to it var data = GetFriendListInfoScRsp.newInstance() .addFriendList(FriendListInfo.newInstance().setSimpleInfo(consoleFriend)); - + // Add friend infos for (var friendship : friendList.getFriends().values()) { + // Get player var friend = friendList.getServer().getPlayerByUid(friendship.getFriendUid(), true); if (friend == null) continue; - + // Create friend info var friendInfo = FriendListInfo.newInstance() .setSimpleInfo(friend.toSimpleInfo()); - + // Set playing state if (friend.isOnline()) { - if (friend.getChallengeInstance() != null && friend.getChallengeInstance().isStory()) { - friendInfo.setPlayingState(PlayingState.PLAYING_CHALLENGE_STORY); - } else if (friend.getChallengeInstance() != null) { - friendInfo.setPlayingState(PlayingState.PLAYING_CHALLENGE_MEMORY); - } else if (friend.getRogueInstance() != null) { - friendInfo.setPlayingState(PlayingState.PLAYING_ROGUE_COSMOS); + // Check if friend is in a challenge + ChallengeInstance challengeInstance = friend.getInstance(ChallengeInstance.class); + if (challengeInstance != null) { + PlayingState state = switch (challengeInstance.getType()) { + case STORY -> PlayingState.PLAYING_CHALLENGE_STORY; + case BOSS -> PlayingState.PLAYING_CHALLENGE_STORY; + default -> PlayingState.PLAYING_CHALLENGE_MEMORY; + }; + friendInfo.setPlayingState(state); } } - + data.addFriendList(friendInfo); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendLoginInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendLoginInfoScRsp.java index 0ef56a4..64e1e1b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendLoginInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendLoginInfoScRsp.java @@ -9,10 +9,10 @@ public class PacketGetFriendLoginInfoScRsp extends BasePacket { public PacketGetFriendLoginInfoScRsp(Player player) { super(CmdId.GetFriendLoginInfoScRsp); - + var data = GetFriendLoginInfoScRsp.newInstance() .addAllFriendUidList(player.getFriendList().toFriendUidArray()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendRecommendListInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendRecommendListInfoScRsp.java index e7721d4..d99846c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendRecommendListInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetFriendRecommendListInfoScRsp.java @@ -12,16 +12,16 @@ public class PacketGetFriendRecommendListInfoScRsp extends BasePacket { public PacketGetFriendRecommendListInfoScRsp(Collection list) { super(CmdId.GetFriendRecommendListInfoScRsp); - + var data = GetFriendRecommendListInfoScRsp.newInstance(); - + for (Player player : list) { var info = FriendRecommendInfo.newInstance() .setSimpleInfo(player.toSimpleInfo()); - + data.addFriendRecommendList(info); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetGachaCeilingScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetGachaCeilingScRsp.java index d347b57..beda785 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetGachaCeilingScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetGachaCeilingScRsp.java @@ -1,10 +1,10 @@ package emu.lunarcore.server.packet.send; -import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.game.gacha.GachaType; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetGachaCeilingScRspOuterClass.GetGachaCeilingScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; public class PacketGetGachaCeilingScRsp extends BasePacket { @@ -12,9 +12,9 @@ public class PacketGetGachaCeilingScRsp extends BasePacket { super(CmdId.GetGachaCeilingScRsp); var proto = GetGachaCeilingScRsp.newInstance() - .setGachaType(GachaType.Normal.getId()) - .setGachaCeiling(player.getGachaInfo().toGachaCeiling(player)); - + .setGachaType(GachaType.Normal.getId()) + .setGachaCeiling(player.getGachaInfo().toGachaCeiling(player)); + this.setData(proto); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java index adb338a..351b5b9 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetJukeboxDataScRsp.java @@ -1,7 +1,7 @@ package emu.lunarcore.server.packet.send; -import emu.lunarcore.game.player.Player; import emu.lunarcore.data.GameData; +import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetJukeboxDataScRspOuterClass.GetJukeboxDataScRsp; import emu.lunarcore.proto.UnlockedMusicOuterClass.UnlockedMusic; import emu.lunarcore.server.packet.BasePacket; @@ -15,13 +15,13 @@ public class PacketGetJukeboxDataScRsp extends BasePacket { var allmusicids = GameData.getAllMusicIds(); var data = GetJukeboxDataScRsp.newInstance() - .setPlayingId(player.getCurrentBgm()); + .setPlayingId(player.getCurrentBgm()); for (int musicId : allmusicids) { UnlockedMusic musicListEntry = UnlockedMusic.newInstance() - .setId(musicId) - .setUnkbool(true) - .setGroupId(GameData.getMusicGroupId(musicId)); + .setId(musicId) + .setUnkbool(true) + .setGroupId(GameData.getMusicGroupId(musicId)); data.addMusicList(musicListEntry); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetLineupAvatarDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetLineupAvatarDataScRsp.java new file mode 100644 index 0000000..b08d173 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetLineupAvatarDataScRsp.java @@ -0,0 +1,31 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.GetLineupAvatarDataScRspOuterClass.GetLineupAvatarDataScRsp; +import emu.lunarcore.proto.LineupAvatarDataOuterClass.LineupAvatarData; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetLineupAvatarDataScRsp extends BasePacket { + + public PacketGetLineupAvatarDataScRsp(Player player) { + super(CmdId.GetLineupAvatarDataScRsp); + + // Get current lineup + var lineup = player.getCurrentLineup(); + + // Set data + var data = GetLineupAvatarDataScRsp.newInstance(); + + lineup.forEachAvatar(avatar -> { + var avatarData = LineupAvatarData.newInstance() + .setId(avatar.getAvatarId()) + .setHp(avatar.getCurrentHp(lineup)) + .setAvatarType(avatar.getAvatarType()); + + data.addLineupAvatarDataList(avatarData); + }); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMailScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMailScRsp.java index 4f79a46..bf8b951 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMailScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMailScRsp.java @@ -10,15 +10,15 @@ public class PacketGetMailScRsp extends BasePacket { public PacketGetMailScRsp(Player player) { super(CmdId.GetMailScRsp); - + var data = GetMailScRsp.newInstance() .setIsEnd(true) .setTotalNum(player.getMailbox().size()); - + for (Mail mail : player.getMailbox()) { data.addMailList(mail.toProto()); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java new file mode 100644 index 0000000..f9853f9 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMainMissionCustomValueScRsp.java @@ -0,0 +1,27 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.GetMainMissionCustomValueCsReqOuterClass.GetMainMissionCustomValueCsReq; +import emu.lunarcore.proto.GetMainMissionCustomValueScRspOuterClass.GetMainMissionCustomValueScRsp; +import emu.lunarcore.proto.MainMissionDataOuterClass.MainMissionData; +import emu.lunarcore.proto.MissionStatusOuterClass.MissionStatus; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetMainMissionCustomValueScRsp extends BasePacket { + + public PacketGetMainMissionCustomValueScRsp(GetMainMissionCustomValueCsReq req) { + super(CmdId.GetMainMissionCustomValueScRsp); + + var data = GetMainMissionCustomValueScRsp.newInstance(); + + for (int missionId : req.getMainMissionIdList()) { + var info = MainMissionData.newInstance() + .setId(missionId) + .setStatus(MissionStatus.MISSION_FINISH); + + data.addMainMissionList(info); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMarkChestScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMarkChestScRsp.java new file mode 100644 index 0000000..b15a4f3 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMarkChestScRsp.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.send; + +import java.util.List; + +import emu.lunarcore.proto.GetMarkChestScRspOuterClass.GetMarkChestScRsp; +import emu.lunarcore.proto.MarkChestInfoOuterClass.MarkChestInfo; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetMarkChestScRsp extends BasePacket { + + public PacketGetMarkChestScRsp(List chestInfos) { + super(CmdId.GetMarkChestScRsp); + + var data = GetMarkChestScRsp.newInstance(); + + for (MarkChestInfo chestInfo : chestInfos) { + data.addChestGroupList(chestInfo); + } + + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMultiPathAvatarInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetMultiPathAvatarInfoScRsp.java deleted file mode 100644 index a5c2499..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetMultiPathAvatarInfoScRsp.java +++ /dev/null @@ -1,32 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.avatar.AvatarMultiPath; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.GetMultiPathAvatarInfoScRspOuterClass.GetMultiPathAvatarInfoScRsp; -import emu.lunarcore.proto.GetMultiPathAvatarInfoScRspOuterClass.GetMultiPathAvatarInfoScRsp.CurAvatarPathEntry; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetMultiPathAvatarInfoScRsp extends BasePacket { - - public PacketGetMultiPathAvatarInfoScRsp(Player player) { - super(CmdId.GetMultiPathAvatarInfoScRsp); - - var data = GetMultiPathAvatarInfoScRsp.newInstance(); - - for (AvatarMultiPath path : player.getAvatars().getMultiPaths().values()) { - data.addMultiPathAvatarInfoList(path.toProto()); - } - - for (var entry : player.getCurAvatarPaths().entrySet()) { - var info = CurAvatarPathEntry.newInstance() - .setKey(entry.getKey()) - .setValueValue(entry.getValue()); - - data.addCurAvatarPath(info); - data.addBasicTypeIdList(entry.getValue()); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetNpcTakenRewardScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetNpcTakenRewardScRsp.java index a379cfd..9ae3047 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetNpcTakenRewardScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetNpcTakenRewardScRsp.java @@ -8,10 +8,10 @@ public class PacketGetNpcTakenRewardScRsp extends BasePacket { public PacketGetNpcTakenRewardScRsp(int npcId) { super(CmdId.GetNpcTakenRewardScRsp); - + var data = GetNpcTakenRewardScRsp.newInstance() .setNpcId(npcId); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetOfferingInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetOfferingInfoScRsp.java new file mode 100644 index 0000000..6a8d7f0 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetOfferingInfoScRsp.java @@ -0,0 +1,38 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.proto.GetOfferingInfoScRspOuterClass.GetOfferingInfoScRsp; +import emu.lunarcore.proto.OfferingInfoOuterClass.OfferingInfo; +import emu.lunarcore.proto.OfferingStateOuterClass.OfferingState; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; +import us.hebi.quickbuf.RepeatedInt; + +public class PacketGetOfferingInfoScRsp extends BasePacket { + + public PacketGetOfferingInfoScRsp(RepeatedInt list) { + super(CmdId.GetOfferingInfoScRsp); + + var data = GetOfferingInfoScRsp.newInstance(); + + for (int id : list) { + var excel = GameData.getOfferingTypeExcelMap().get(id); + + if (excel == null) { + // End packet if client sends an invalid offering so that we dont get spammed by malicious packets + data.setRetcode(1); + this.setData(data); + return; + } + + var info = OfferingInfo.newInstance() + .setOfferingId(excel.getId()) + .setOfferingLevel(excel.getMaxLevel()) + .setOfferingState(OfferingState.OFFERING_STATE_OPEN); + + data.addOfferingInfoList(info); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPamSkinDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPamSkinDataScRsp.java new file mode 100644 index 0000000..dc6e080 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPamSkinDataScRsp.java @@ -0,0 +1,27 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.GetPamSkinDataScRspOuterClass.GetPamSkinDataScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetPamSkinDataScRsp extends BasePacket { + + public PacketGetPamSkinDataScRsp(Player player) { + super(CmdId.GetPamSkinDataScRsp); + + // Hack for existing accounts + if (player.getCurrentPamSkinId() == 0) { + player.setCurrentPamSkinId(252000); + } + + var pamSkinsList = GameData.getPomSkinExcelMap().getIds(); + + var data = GetPamSkinDataScRsp.newInstance() + .addAllUnlockedPamSkins(pamSkinsList.intStream().toArray()) + .setCurrentPamSkinId(player.getCurrentPamSkinId()); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPetDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPetDataScRsp.java index b21fa31..aa5024b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPetDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPetDataScRsp.java @@ -9,14 +9,14 @@ public class PacketGetPetDataScRsp extends BasePacket { public PacketGetPetDataScRsp(Player player) { super(CmdId.GetPetDataScRsp); - + var data = GetPetDataScRsp.newInstance() .setCurPetId(player.getPetId()); - + for (int id : player.getUnlocks().getPets()) { data.addPetIdList(id); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPhoneDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPhoneDataScRsp.java index 416eb20..c8a2e50 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPhoneDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPhoneDataScRsp.java @@ -1,9 +1,9 @@ package emu.lunarcore.server.packet.send; +import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.GetPhoneDataScRspOuterClass.GetPhoneDataScRsp; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.game.player.Player; public class PacketGetPhoneDataScRsp extends BasePacket { @@ -11,8 +11,9 @@ public class PacketGetPhoneDataScRsp extends BasePacket { super(CmdId.GetPhoneDataScRsp); var data = GetPhoneDataScRsp.newInstance() - .setCurChatBubble(player.getChatBubble()) - .setCurPhoneTheme(player.getPhoneTheme()); + .setCurChatBubble(player.getChatBubble()) + .setCurPhoneTheme(player.getPhoneTheme()) + .setCurPhoneCase(player.getPhoneCase()); for (int chatBubbleId : player.getUnlocks().getChatBubbles()) { data.addOwnedChatBubbles(chatBubbleId); @@ -21,6 +22,10 @@ public class PacketGetPhoneDataScRsp extends BasePacket { for (int phoneThemeId : player.getUnlocks().getPhoneThemes()) { data.addOwnedPhoneThemes(phoneThemeId); } + + for (int phoneCaseId : player.getUnlocks().getPhoneCases()) { + data.addOwnedPhoneCases(phoneCaseId); + } this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java index b68fc66..6a86ef4 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerBoardDataScRsp.java @@ -11,42 +11,42 @@ public class PacketGetPlayerBoardDataScRsp extends BasePacket { public PacketGetPlayerBoardDataScRsp(Player player) { super(CmdId.GetPlayerBoardDataScRsp); - + var data = GetPlayerBoardDataScRsp.newInstance() .setCurrentHeadIconId(player.getHeadIcon()) .setSignature(player.getSignature()); - + // Create display avatar object data.getMutableDisplayAvatarVec(); - + // Head icons, aka profile pictures for (int id : player.getUnlocks().getHeadIcons()) { data.addUnlockedHeadIconList(HeadIcon.newInstance().setId(id)); } - + // Assist avatars for (var objectId : player.getAssistAvatars()) { var avatar = player.getAvatarById(objectId); if (avatar == null) continue; - + data.addDisplaySupportAvatarVec(avatar.getAvatarId()); } - + // Display avatars for (int i = 0; i < player.getDisplayAvatars().size(); i++) { var objectId = player.getDisplayAvatars().get(i); if (objectId == null) continue; - + var avatar = player.getAvatarById(objectId); if (avatar == null) continue; - + var info = DisplayAvatar.newInstance() .setAvatarId(avatar.getAvatarId()) .setPos(i); - + data.getMutableDisplayAvatarVec().addDisplayAvatarList(info); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerDetailInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerDetailInfoScRsp.java index cbb8de0..cc963a4 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerDetailInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPlayerDetailInfoScRsp.java @@ -11,7 +11,7 @@ public class PacketGetPlayerDetailInfoScRsp extends BasePacket { super(CmdId.GetPlayerDetailInfoScRsp); var data = GetPlayerDetailInfoScRsp.newInstance(); - + if (player != null) { data.setPlayerDetailInfo(player.toDetailInfo()); } else { diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPrivateChatHistoryScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPrivateChatHistoryScRsp.java index 0013a22..a69eb67 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetPrivateChatHistoryScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetPrivateChatHistoryScRsp.java @@ -11,16 +11,16 @@ public class PacketGetPrivateChatHistoryScRsp extends BasePacket { public PacketGetPrivateChatHistoryScRsp(int targetUid, Collection messages) { super(CmdId.GetPrivateChatHistoryScRsp); - + var data = GetPrivateChatHistoryScRsp.newInstance() .setToUid(targetUid); - + if (messages != null) { for (var message : messages) { data.addChatList(message.toProto()); } } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java index e78431c..e85011c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetQuestDataScRsp.java @@ -1,29 +1,48 @@ package emu.lunarcore.server.packet.send; +import emu.lunarcore.data.GameData; import emu.lunarcore.proto.GetQuestDataScRspOuterClass.GetQuestDataScRsp; import emu.lunarcore.proto.QuestOuterClass.Quest; import emu.lunarcore.proto.QuestStatusOuterClass.QuestStatus; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.data.GameData; +import it.unimi.dsi.fastutil.ints.IntSet; public class PacketGetQuestDataScRsp extends BasePacket { + @SuppressWarnings("unused") + private static IntSet finishedQuests = IntSet.of(2200506, 2200503, 2200504, 2200505, 4080203); public PacketGetQuestDataScRsp() { super(CmdId.GetQuestDataScRsp); + + int achievements = 0; var data = GetQuestDataScRsp.newInstance(); - //.setTotalAchievementExp(69); - for (var questExcel : GameData.getQuestExcelMap().values()) { - var questItem = Quest.newInstance() - .setId(questExcel.getQuestID()) - .setStatus(QuestStatus.QUEST_CLOSE) - .setFinishTime(10000L) - .setProgress(1); + for (var excel : GameData.getQuestExcelMap().values()) { + var quest = Quest.newInstance() + .setId(excel.getQuestID()) + .setStatus(QuestStatus.QUEST_DOING); - data.addQuestList(questItem); + // Achievement + if (excel.getQuestType() == 4) { + quest.setStatus(QuestStatus.QUEST_CLOSE) + .setFinishTime(10000L) + .setProgress(1); + + achievements++; + } + + /* + if (finishedQuests.contains(excel.getQuestID())) { + quest.setStatus(QuestStatus.QUEST_FINISH); + } + */ + + data.addQuestList(quest); } + + data.setTotalAchievementExp(achievements); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java deleted file mode 100644 index a5fd880..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueBuffEnhanceInfoScRsp.java +++ /dev/null @@ -1,42 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.data.excel.RogueBuffExcel; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.GetRogueBuffEnhanceInfoScRspOuterClass.GetRogueBuffEnhanceInfoScRsp; -import emu.lunarcore.proto.ItemCostListOuterClass.ItemCostList; -import emu.lunarcore.proto.ItemCostOuterClass.ItemCost; -import emu.lunarcore.proto.PileItemOuterClass.PileItem; -import emu.lunarcore.proto.RogueBuffEnhanceInfoOuterClass.RogueBuffEnhanceInfo; -import emu.lunarcore.proto.RogueBuffEnhanceShopInfoOuterClass.RogueBuffEnhanceShopInfo; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetRogueBuffEnhanceInfoScRsp extends BasePacket { - public PacketGetRogueBuffEnhanceInfoScRsp(Player player) { - super(CmdId.GetRogueBuffEnhanceInfoScRsp); - - var buffs = player.getRogueInstance().getBuffs(); - var proto = GetRogueBuffEnhanceInfoScRsp.newInstance(); - var shop = RogueBuffEnhanceShopInfo.newInstance(); - - for (var buff : buffs.values()) { - if (buff.getLevel() > 1) continue; - shop.addBuffInfo(RogueBuffEnhanceInfo.newInstance() - .setBuffId(buff.getId()) - .setItemCostList(this.getItemCostList(buff.getExcel())) - .setUnkFloat(1)); - } - proto.setShopInfo(shop); - - this.setData(proto); - } - - public ItemCostList getItemCostList(RogueBuffExcel excel) { - int cost = 100 + (excel.getRogueBuffCategory().getVal() - 1) * 30; - return ItemCostList.newInstance() - .addItemList(ItemCost.newInstance() - .setPileItem(PileItem.newInstance() - .setItemId(31) - .setItemNum(cost))); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueHandbookDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueHandbookDataScRsp.java deleted file mode 100644 index 0845800..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueHandbookDataScRsp.java +++ /dev/null @@ -1,23 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.GetRogueHandbookDataScRspOuterClass.GetRogueHandbookDataScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetRogueHandbookDataScRsp extends BasePacket { - - public PacketGetRogueHandbookDataScRsp() { - super(CmdId.GetRogueHandbookDataScRsp); - - /* - var handbook = RogueHandbookData.newInstance() - .setRogueCurrentVersion(1) - .setIsMiracleUnlock(true); - */ - - var data = GetRogueHandbookDataScRsp.newInstance(); - data.getMutableHandbookInfo(); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInfoScRsp.java deleted file mode 100644 index ebcf448..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInfoScRsp.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.GetRogueInfoScRspOuterClass.GetRogueInfoScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetRogueInfoScRsp extends BasePacket { - - public PacketGetRogueInfoScRsp(Player player) { - super(CmdId.GetRogueInfoScRsp); - - var proto = GetRogueInfoScRsp.newInstance() - .setRogueInfo(player.getRogueManager().toProto()); - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInitialScoreScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInitialScoreScRsp.java deleted file mode 100644 index 88a7c45..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueInitialScoreScRsp.java +++ /dev/null @@ -1,28 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import java.util.stream.IntStream; -import emu.lunarcore.proto.GetRogueInitialScoreScRspOuterClass.GetRogueInitialScoreScRsp; -import emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetRogueInitialScoreScRsp extends BasePacket { - - public PacketGetRogueInitialScoreScRsp() { - super(CmdId.GetRogueInitialScoreScRsp); - - var score = RogueScoreRewardInfo.newInstance() - .setPoolId(26) // TODO pool ids should not change when world level changes - .setPoolRefreshed(true) - .setHasTakenInitialScore(true) - .setScore(14000) - .setBeginTime(0) - .setEndTime(1999999999) - .addAllHasTakenReward(IntStream.rangeClosed(1, 20).flatMap(i -> IntStream.generate(() -> i).limit(20)).toArray()); - - var proto = GetRogueInitialScoreScRsp.newInstance() - .setRogueScoreInfo(score); - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java deleted file mode 100644 index 4895db5..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueScoreRewardInfoScRsp.java +++ /dev/null @@ -1,32 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import java.util.stream.IntStream; -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -import java.util.concurrent.TimeUnit; - -public class PacketGetRogueScoreRewardInfoScRsp extends BasePacket { - - public PacketGetRogueScoreRewardInfoScRsp(Player player) { - super(CmdId.GetRogueScoreRewardInfoScRsp); - - var data = GetRogueScoreRewardInfoScRsp.newInstance(); - - long beginTime = (System.currentTimeMillis() / 1000) - TimeUnit.DAYS.toSeconds(1); - long endTime = beginTime + TimeUnit.DAYS.toSeconds(8); - - data.getMutableScoreRewardInfo() - .setPoolId(20 + player.getWorldLevel()) // TODO pool ids should not change when world level changes - .setPoolRefreshed(false) - .setScore(14000) - .setHasTakenInitialScore(true) - .setBeginTime(beginTime) - .setEndTime(endTime) - .addAllHasTakenReward(IntStream.rangeClosed(1, 20).flatMap(i -> IntStream.generate(() -> i).limit(20)).toArray()); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueTalentInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueTalentInfoScRsp.java deleted file mode 100644 index e4e1697..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetRogueTalentInfoScRsp.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueManager; -import emu.lunarcore.proto.GetRogueTalentInfoScRspOuterClass.GetRogueTalentInfoScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketGetRogueTalentInfoScRsp extends BasePacket { - - public PacketGetRogueTalentInfoScRsp(RogueManager rogueManager) { - super(CmdId.GetRogueTalentInfoScRsp); - - var data = GetRogueTalentInfoScRsp.newInstance() - .setTalentInfo(rogueManager.toTalentInfoProto()); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetSceneMapInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetSceneMapInfoScRsp.java index e8adf18..77fec22 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetSceneMapInfoScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetSceneMapInfoScRsp.java @@ -7,75 +7,100 @@ import emu.lunarcore.data.excel.MapEntranceExcel; import emu.lunarcore.game.enums.PropState; import emu.lunarcore.proto.GetSceneMapInfoScRspOuterClass.GetSceneMapInfoScRsp; import emu.lunarcore.proto.MapInfoChestTypeOuterClass.MapInfoChestType; +import emu.lunarcore.proto.MapInfoGroupOuterClass.MapInfoGroup; +import emu.lunarcore.proto.MapPropInfoOuterClass.MapPropInfo; import emu.lunarcore.proto.MazeChestOuterClass.MazeChest; -import emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup; -import emu.lunarcore.proto.MazeMapDataOuterClass.MazeMapData; -import emu.lunarcore.proto.MazePropOuterClass.MazeProp; +import emu.lunarcore.proto.SceneIdentifierInfoOuterClass.SceneIdentifierInfo; +import emu.lunarcore.proto.SceneMapInfoOuterClass.SceneMapInfo; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; -import us.hebi.quickbuf.RepeatedInt; + +import it.unimi.dsi.fastutil.ints.IntOpenHashSet; +import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet; +import us.hebi.quickbuf.RepeatedMessage; public class PacketGetSceneMapInfoScRsp extends BasePacket { - public PacketGetSceneMapInfoScRsp(RepeatedInt list) { + public PacketGetSceneMapInfoScRsp(RepeatedMessage list) { super(CmdId.GetSceneMapInfoScRsp); var data = GetSceneMapInfoScRsp.newInstance(); - for (int entryId : list) { - // Create maze map - var mazeMap = MazeMapData.newInstance() - .setEntryId(entryId); + // Map entries + var entrances = new ObjectOpenHashSet(); + var floorSet = new IntOpenHashSet(); + + // Add entry ids from floor ids TODO optimize + for (var info : list) { + floorSet.add(info.getFloorId()); + } + + for (var excel : GameData.getMapEntranceExcelMap()) { + if (floorSet.contains(excel.getFloorID())) { + entrances.add(excel); + } + } + + // Get maze map infos from entries + for (var excel : entrances) { + // Create map info + var mapInfo = SceneMapInfo.newInstance() + .setEntryId(excel.getId()) + .setDimensionId(0); + + // Set floor id + mapInfo.setFloorId(excel.getFloorID()); - // Get map entrance excel - MapEntranceExcel excel = GameData.getMapEntranceExcelMap().get(entryId); - if (excel == null) { - data.addMapList(mazeMap); - continue; + // Set scene identifier info + mapInfo.getMutableSceneIdentifier() + .setFloorId(excel.getFloorID()); + + // Map sections. TODO un hardcode + for (int i = 0; i < 1000; i++) { + mapInfo.addLightenSectionList(i); } - // Get floor info + int chestAmount = 0; + int puzzleAmount = 0; + + var mazeChest = MazeChest.newInstance() + .setMapInfoChestType(MapInfoChestType.MAP_INFO_CHEST_TYPE_NORMAL) + .setTotalAmountList(chestAmount) + .setUnlockedAmountList(chestAmount); + mapInfo.addChestList(mazeChest); + + var puzzleChest = MazeChest.newInstance() + .setMapInfoChestType(MapInfoChestType.MAP_INFO_CHEST_TYPE_PUZZLE) + .setTotalAmountList(puzzleAmount) + .setUnlockedAmountList(puzzleAmount); + mapInfo.addChestList(puzzleChest); + + // Maze groups (Npc icons on the map, etc) FloorInfo floorInfo = GameData.getFloorInfo(excel.getPlaneID(), excel.getFloorID()); - if (floorInfo == null) { - data.addMapList(mazeMap); - continue; + if (floorInfo != null) { + // Add groups + for (GroupInfo groupInfo : floorInfo.getGroups().values()) { + var mazeGroup = MapInfoGroup.newInstance().setGroupId(groupInfo.getId()); + mapInfo.addGroupList(mazeGroup); + } + // Map unlocked teleports + for (var teleport : floorInfo.getCachedTeleports().values()) { + mapInfo.addUnlockTeleportList(teleport.getMappingInfoID()); + } + // Map unlocked checkpoints that are not unlocked normally + for (var prop : floorInfo.getUnlockedCheckpoints()) { + var mazeProp = MapPropInfo.newInstance() + .setGroupId(prop.getAnchorGroupID()) + .setConfigId(prop.getID()) + .setState(PropState.CheckPointEnable.getVal()); + + mapInfo.addMapInfoPropList(mazeProp); + } } - - // Chest counts - mazeMap.addUnlockedChestList(MazeChest.newInstance().setMapInfoChestType(MapInfoChestType.MAP_INFO_CHEST_TYPE_NORMAL).setTotalAmountList(1)); - mazeMap.addUnlockedChestList(MazeChest.newInstance().setMapInfoChestType(MapInfoChestType.MAP_INFO_CHEST_TYPE_PUZZLE).setTotalAmountList(1)); - mazeMap.addUnlockedChestList(MazeChest.newInstance().setMapInfoChestType(MapInfoChestType.MAP_INFO_CHEST_TYPE_CHALLENGE).setTotalAmountList(1)); - - // Add groups (Npc icons on the map, etc) - for (GroupInfo groupInfo : floorInfo.getGroups().values()) { - var mazeGroup = MazeGroup.newInstance().setGroupId(groupInfo.getId()); - mazeMap.addMazeGroupList(mazeGroup); - } - - // Map unlocked teleports - for (var teleport : floorInfo.getCachedTeleports().values()) { - mazeMap.addAllUnlockedTeleportList(teleport.getMappingInfoID()); - } - - // Map unlocked checkpoints that are not unlocked normally - for (var prop : floorInfo.getUnlockedCheckpoints()) { - var mazeProp = MazeProp.newInstance() - .setGroupId(prop.getAnchorGroupID()) - .setConfigId(prop.getID()) - .setState(PropState.CheckPointEnable.getVal()); - - mazeMap.addMazePropList(mazeProp); - } - - // Lighten sections - for (int i = 0; i < 100; i++) { - mazeMap.addAllLightenSectionList(i); - } - - // Add to proto - data.addMapList(mazeMap); + + data.addSceneMapInfoList(mapInfo); } this.setData(data); } -} +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetShopListScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetShopListScRsp.java index 856f2ae..79bb87a 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetShopListScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetShopListScRsp.java @@ -11,15 +11,22 @@ public class PacketGetShopListScRsp extends BasePacket { public PacketGetShopListScRsp(int shopType) { super(CmdId.GetShopListScRsp); - + var data = GetShopListScRsp.newInstance() .setShopType(shopType); - + + Shop shopRecharge = Shop.newInstance() + .setShopId(988) + .setCityLevel(1) + .setEndTime(Integer.MAX_VALUE); + + data.addShopList(shopRecharge); + for (ShopExcel shopExcel : GameData.getShopExcelMap().values()) { if (shopExcel.getShopType() != shopType || shopExcel.getGoods().size() == 0) { continue; } - + Shop shop = Shop.newInstance() .setShopId(shopExcel.getId()) .setCityLevel(1) @@ -28,10 +35,10 @@ public class PacketGetShopListScRsp extends BasePacket { for (var goodsExcel : shopExcel.getGoods().values()) { shop.addGoodsList(goodsExcel.toProto()); } - + data.addShopList(shop); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetSocialEventServerCacheScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetSocialEventServerCacheScRsp.java new file mode 100644 index 0000000..43e207b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetSocialEventServerCacheScRsp.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.GetSocialEventServerCacheScRspOuterClass.GetSocialEventServerCacheScRsp; +import emu.lunarcore.proto.SocialEventServerCacheOuterClass.SocialEventServerCache; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetSocialEventServerCacheScRsp extends BasePacket { + + public PacketGetSocialEventServerCacheScRsp(Player player) { + super(CmdId.GetSocialEventServerCacheScRsp); + + var socialevent = SocialEventServerCache.newInstance() + .setSrcUid(player.getUid()) + .setAddCoin(10000) + .setId(100); + + var data = GetSocialEventServerCacheScRsp.newInstance() + .addSocialEvent(socialevent); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialGuideScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialGuideScRsp.java new file mode 100644 index 0000000..9a2e764 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialGuideScRsp.java @@ -0,0 +1,27 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.proto.GetTutorialGuideScRspOuterClass.GetTutorialGuideScRsp; +import emu.lunarcore.proto.TutorialGuideOuterClass.TutorialGuide; +import emu.lunarcore.proto.TutorialStatusOuterClass.TutorialStatus; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetTutorialGuideScRsp extends BasePacket { + + public PacketGetTutorialGuideScRsp() { + super(CmdId.GetTutorialGuideScRsp); + + var data = GetTutorialGuideScRsp.newInstance(); + + for (var excel : GameData.getTutorialGuideExcelMap()) { + var tutorial = TutorialGuide.newInstance() + .setId(excel.getId()) + .setStatus(TutorialStatus.TUTORIAL_FINISH); + + data.addTutorialGuideList(tutorial); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialScRsp.java new file mode 100644 index 0000000..5081a1f --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetTutorialScRsp.java @@ -0,0 +1,27 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.data.GameData; +import emu.lunarcore.proto.GetTutorialScRspOuterClass.GetTutorialScRsp; +import emu.lunarcore.proto.TutorialOuterClass.Tutorial; +import emu.lunarcore.proto.TutorialStatusOuterClass.TutorialStatus; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketGetTutorialScRsp extends BasePacket { + + public PacketGetTutorialScRsp() { + super(CmdId.GetTutorialScRsp); + + var data = GetTutorialScRsp.newInstance(); + + for (var excel : GameData.getTutorialExcelMap()) { + var tutorialGuide = Tutorial.newInstance() + .setId(excel.getId()) + .setStatus(TutorialStatus.TUTORIAL_FINISH); + + data.addTutorialList(tutorialGuide); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGetUnlockTeleportScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGetUnlockTeleportScRsp.java index 09a8285..104141d 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGetUnlockTeleportScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGetUnlockTeleportScRsp.java @@ -12,22 +12,22 @@ public class PacketGetUnlockTeleportScRsp extends BasePacket { public PacketGetUnlockTeleportScRsp(RepeatedInt list) { super(CmdId.GetUnlockTeleportScRsp); - + var data = GetUnlockTeleportScRsp.newInstance(); - + for (int entryId : list) { MapEntranceExcel excel = GameData.getMapEntranceExcelMap().get(entryId); if (excel == null) continue; - + FloorInfo floorInfo = GameData.getFloorInfo(excel.getPlaneID(), excel.getFloorID()); if (floorInfo == null) continue; - + // Add unlocked teleport ids for (var teleport : floorInfo.getCachedTeleports().values()) { data.addAllUnlockedTeleportList(teleport.getMappingInfoID()); } } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScNotify.java index e8fe64e..e504219 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScNotify.java @@ -10,23 +10,23 @@ public class PacketGroupStateChangeScNotify extends BasePacket { public PacketGroupStateChangeScNotify(GroupStateInfo groupInfo) { super(CmdId.GroupStateChangeScNotify); - - var data = GroupStateChangeScNotify.newInstance(); - data.setGroupStateInfo(groupInfo); - + + var data = GroupStateChangeScNotify.newInstance() + .setGroupInfo(groupInfo); + this.setData(data); } - + public PacketGroupStateChangeScNotify(int entryId, int groupId, PropState state) { super(CmdId.GroupStateChangeScNotify); - + var data = GroupStateChangeScNotify.newInstance(); - - data.getMutableGroupStateInfo() + + data.getMutableGroupInfo() .setEntryId(entryId) .setGroupId(groupId) .setGroupState(state.getVal()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScRsp.java index 335fc52..18643c9 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketGroupStateChangeScRsp.java @@ -9,10 +9,10 @@ public class PacketGroupStateChangeScRsp extends BasePacket { public PacketGroupStateChangeScRsp(GroupStateInfo groupInfo) { super(CmdId.GroupStateChangeScRsp); - + var data = GroupStateChangeScNotify.newInstance(); - data.setGroupStateInfo(groupInfo); - + data.setGroupInfo(groupInfo); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketHandleFriendScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketHandleFriendScRsp.java index 6cd430f..96bf95b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketHandleFriendScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketHandleFriendScRsp.java @@ -10,15 +10,15 @@ public class PacketHandleFriendScRsp extends BasePacket { public PacketHandleFriendScRsp(Player friend, boolean result) { super(CmdId.HandleFriendScRsp); - + var data = HandleFriendScRsp.newInstance() .setUid(friend.getUid()) .setHandleResult(result); - + if (result) { data.setHandleFriendInfo(FriendListInfo.newInstance().setSimpleInfo(friend.toSimpleInfo())); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketHandleRogueCommonPendingActionScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketHandleRogueCommonPendingActionScRsp.java deleted file mode 100644 index bc3a229..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketHandleRogueCommonPendingActionScRsp.java +++ /dev/null @@ -1,31 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.HandleRogueCommonPendingActionScRspOuterClass.HandleRogueCommonPendingActionScRsp; -import emu.lunarcore.proto.RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo; -import emu.lunarcore.proto.RogueRerollBuffOuterClass.RogueRerollBuff; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketHandleRogueCommonPendingActionScRsp extends BasePacket { - public PacketHandleRogueCommonPendingActionScRsp(HandleRogueCommonPendingActionScRsp proto) { - super(CmdId.HandleRogueCommonPendingActionScRsp); - - this.setData(proto); - } - - public PacketHandleRogueCommonPendingActionScRsp(int id) { - this(HandleRogueCommonPendingActionScRsp.newInstance() - .setActionUniqueId(id)); - } - - public PacketHandleRogueCommonPendingActionScRsp(RogueRerollBuff rogueRerollBuff, int id) { - this(HandleRogueCommonPendingActionScRsp.newInstance() - .setActionUniqueId(id) - .setRogueRerollBuff(rogueRerollBuff)); - } - - public PacketHandleRogueCommonPendingActionScRsp(RogueCommonBuffSelectInfo buffSelectInfo, int id) { - this(RogueRerollBuff.newInstance() - .setBuffSelectInfo(buffSelectInfo), id); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketInteractChargerScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketInteractChargerScRsp.java deleted file mode 100644 index e92a20a..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketInteractChargerScRsp.java +++ /dev/null @@ -1,18 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.ChargerInfoOuterClass.ChargerInfo; -import emu.lunarcore.proto.InteractChargerScRspOuterClass.InteractChargerScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketInteractChargerScRsp extends BasePacket { - - public PacketInteractChargerScRsp(ChargerInfo chargerInfo) { - super(CmdId.InteractChargerScRsp); - - var data = InteractChargerScRsp.newInstance() - .setChargerInfo(chargerInfo); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketInteractPropScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketInteractPropScRsp.java index 4851819..147ec7d 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketInteractPropScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketInteractPropScRsp.java @@ -9,14 +9,14 @@ public class PacketInteractPropScRsp extends BasePacket { public PacketInteractPropScRsp(EntityProp prop) { super(CmdId.InteractPropScRsp); - + var data = InteractPropScRsp.newInstance(); - + if (prop != null) { data.setPropEntityId(prop.getEntityId()); data.setPropState(prop.getState().getVal()); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketLeaveRogueScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketLeaveRogueScRsp.java deleted file mode 100644 index cd63ced..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketLeaveRogueScRsp.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.LeaveRogueScRspOuterClass.LeaveRogueScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketLeaveRogueScRsp extends BasePacket { - - public PacketLeaveRogueScRsp(Player player) { - super(CmdId.LeaveRogueScRsp); - - var data = LeaveRogueScRsp.newInstance() - .setLineup(player.getCurrentLineup().toProto()) - .setRogueInfo(player.getRogueManager().toProto()) - .setScene(player.getScene().toProto()); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketMarkAvatarScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketMarkAvatarScRsp.java index fc70737..ac5275e 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketMarkAvatarScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketMarkAvatarScRsp.java @@ -9,16 +9,16 @@ public class PacketMarkAvatarScRsp extends BasePacket { public PacketMarkAvatarScRsp(GameAvatar avatar) { super(CmdId.MarkAvatarScRsp); - + var data = MarkAvatarScRsp.newInstance(); - + if (avatar != null) { data.setAvatarId(avatar.getAvatarId()) - .setIsMarked(avatar.isMarked()); + .setIsMarked(avatar.isMarked()); } else { data.setRetcode(1); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketMarkChestChangedScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketMarkChestChangedScNotify.java new file mode 100644 index 0000000..a09763c --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketMarkChestChangedScNotify.java @@ -0,0 +1,23 @@ +package emu.lunarcore.server.packet.send; + +import java.util.List; + +import emu.lunarcore.proto.MarkChestChangedScNotifyOuterClass.MarkChestChangedScNotify; +import emu.lunarcore.proto.MarkChestInfoOuterClass.MarkChestInfo; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketMarkChestChangedScNotify extends BasePacket { + + public PacketMarkChestChangedScNotify(List chestPropDefList) { + super(CmdId.MarkChestChangedScNotify); + + var data = MarkChestChangedScNotify.newInstance(); + + for (MarkChestInfo chestPropDef : chestPropDefList) { + data.addChestGroupList(chestPropDef); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketNewMailScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketNewMailScNotify.java index 3c0ac55..46c36cf 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketNewMailScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketNewMailScNotify.java @@ -9,10 +9,10 @@ public class PacketNewMailScNotify extends BasePacket { public PacketNewMailScNotify(Mail mail) { super(CmdId.NewMailScNotify); - + var data = NewMailScNotify.newInstance() .addMailIdList(mail.getUniqueId()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java index 5097293..c64ea6a 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketPVEBattleResultScRsp.java @@ -9,7 +9,7 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketPVEBattleResultScRsp extends BasePacket { - + public PacketPVEBattleResultScRsp() { super(CmdId.PVEBattleResultScRsp); @@ -21,10 +21,10 @@ public class PacketPVEBattleResultScRsp extends BasePacket { public PacketPVEBattleResultScRsp(PVEBattleResultCsReq req, Battle battle) { super(CmdId.PVEBattleResultScRsp); - + // Item drop list data ItemList dropData = ItemList.newInstance(); - + for (GameItem drop : battle.getDrops()) { dropData.addItemList(drop.toProto()); } @@ -40,10 +40,10 @@ public class PacketPVEBattleResultScRsp extends BasePacket { .setCheckIdentical(true); // Set these - data.getMutableUnk1(); - data.getMutableUnk2(); - data.getMutableUnk3(); - + data.getMutableExtraDropData(); + data.getMutableUnkItemList2(); + data.getMutableUnkItemList3(); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java deleted file mode 100644 index 02ccf5a..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketPickRogueAvatarScRsp.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.PickRogueAvatarScRspOuterClass.PickRogueAvatarScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -import java.util.HashSet; - -public class PacketPickRogueAvatarScRsp extends BasePacket { - public PacketPickRogueAvatarScRsp(HashSet avatarIds) { - super(CmdId.PickRogueAvatarScRsp); - - var proto = PickRogueAvatarScRsp.newInstance(); - - for (var avatarId : avatarIds) { - proto.addBaseAvatarList(avatarId); - } - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketPlayBackGroundMusicScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPlayBackGroundMusicScRsp.java index 802f84b..8ed341b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketPlayBackGroundMusicScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketPlayBackGroundMusicScRsp.java @@ -8,11 +8,11 @@ public class PacketPlayBackGroundMusicScRsp extends BasePacket { public PacketPlayBackGroundMusicScRsp(int musicId) { super(CmdId.PlayBackGroundMusicScRsp); - + var data = PlayBackGroundMusicScRsp.newInstance() - .setPlayingId(musicId) - .setPlayMusicId(musicId); - + .setPlayingId(musicId) + .setPlayMusicId(musicId); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerHeartBeatScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerHeartBeatScRsp.java index 0d04987..db2c5dc 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerHeartBeatScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerHeartBeatScRsp.java @@ -1,7 +1,7 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.LunarCore; -import emu.lunarcore.proto.PlayerHeartbeatScRspOuterClass.PlayerHeartbeatScRsp; +import emu.lunarcore.proto.PlayerHeartBeatScRspOuterClass.PlayerHeartBeatScRsp; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -10,7 +10,7 @@ public class PacketPlayerHeartBeatScRsp extends BasePacket { public PacketPlayerHeartBeatScRsp(long clientTime) { super(CmdId.PlayerHeartBeatScRsp); - var data = PlayerHeartbeatScRsp.newInstance() + var data = PlayerHeartBeatScRsp.newInstance() .setClientTimeMs(clientTime) .setServerTimeMs(LunarCore.currentServerTime()); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerSyncScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerSyncScNotify.java index 268e55d..e3355a4 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerSyncScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketPlayerSyncScNotify.java @@ -1,7 +1,14 @@ package emu.lunarcore.server.packet.send; +import java.util.Collection; import java.util.List; +import java.util.Map; +import emu.lunarcore.LunarCore; +import emu.lunarcore.game.enums.MissionStatusType; +import emu.lunarcore.proto.MissionOuterClass.Mission; +import emu.lunarcore.proto.MissionStatusOuterClass.MissionStatus; +import emu.lunarcore.proto.MissionSyncOuterClass.MissionSync; import emu.lunarcore.proto.PlayerSyncScNotifyOuterClass.PlayerSyncScNotify; import emu.lunarcore.server.game.Syncable; import emu.lunarcore.server.packet.BasePacket; @@ -13,38 +20,200 @@ public class PacketPlayerSyncScNotify extends BasePacket { private PacketPlayerSyncScNotify() { super(CmdId.PlayerSyncScNotify); } - + public PacketPlayerSyncScNotify(Syncable object) { this(); - + var data = PlayerSyncScNotify.newInstance(); - + object.onSync(data); - + this.setData(data); } - + public PacketPlayerSyncScNotify(Syncable... objects) { this(); - + var data = PlayerSyncScNotify.newInstance(); - + for (var object : objects) { object.onSync(data); } - + this.setData(data); } - - public PacketPlayerSyncScNotify(List objects) { + + public PacketPlayerSyncScNotify(Collection objects) { this(); - + var data = PlayerSyncScNotify.newInstance(); - + for (var object : objects) { object.onSync(data); } - + + this.setData(data); + } + + public PacketPlayerSyncScNotify(Map ongoing, int mainMissionId) { + this(); + var missionSync = MissionSync.newInstance(); + + ongoing.forEach((missionId, status) -> { + + var m = Mission.newInstance() + .setId(missionId) + .setStatus(MissionStatus.valueOf(status.name())); + + if(status == MissionStatusType.MISSION_FINISH){ + m.setProgress(1); + } + + missionSync.addMissionList(m); + }); + + missionSync.addMainMissionId(mainMissionId); + + var data = PlayerSyncScNotify.newInstance().setMissionSync(missionSync); + LunarCore.getLogger().warn("PacketPlayerSyncScNotify sync {}", data.toString()); + this.setData(data); + } + + public PacketPlayerSyncScNotify(Map ongoing) { + this(); + var missionSync = MissionSync.newInstance(); + ongoing.forEach((missionId, status) -> { + var i = Mission.newInstance() + .setId(missionId) + .setStatus(MissionStatus.valueOf(status.name())); + if(status == MissionStatusType.MISSION_FINISH){ + i.setProgress(1);// TODO: make better + } + missionSync.addMissionList(i); + }); + var data = PlayerSyncScNotify.newInstance().setMissionSync(missionSync); + LunarCore.getLogger().warn("PacketPlayerSyncScNotify mapin {}", data.toString()); + this.setData(data); + } + + public PacketPlayerSyncScNotify(List next, int done, int progess) { + this(); + + var IdDone = Mission.newInstance() + .setId(done) + .setStatus(MissionStatus.MISSION_FINISH); + + if (progess != 0) { + IdDone.setProgress(progess); + } + + var missionSync = MissionSync.newInstance() + .addMissionList(IdDone); + + for (int subMissionId : next) { + + var idNext = Mission.newInstance() + .setId(subMissionId) + .setStatus(MissionStatus.MISSION_DOING); + + missionSync.addMissionList(idNext); + + } + + var data = PlayerSyncScNotify.newInstance().setMissionSync(missionSync); + + LunarCore.getLogger().warn("PacketPlayerSyncScNotify next {}",data.toString()); + + this.setData(data); + } + + public PacketPlayerSyncScNotify(int next, int done, int progess) { + this(); + + var idNext = Mission.newInstance() + .setId(next) + .setStatus(MissionStatus.MISSION_DOING); + + var IdDone = Mission.newInstance() + .setId(done) + .setStatus(MissionStatus.MISSION_FINISH); + + if(progess != 0){ + IdDone.setProgress(progess); + } + + var missionSync = MissionSync.newInstance() + .addMissionList(idNext) + .addMissionList(IdDone); + + var data = PlayerSyncScNotify.newInstance().setMissionSync(missionSync); + + LunarCore.getLogger().warn("PacketPlayerSyncScNotify next2 {}",data.toString()); + + this.setData(data); + } + + public PacketPlayerSyncScNotify(int mainMissionId, int subMissionId, MissionStatus missionStatus) { + this(); + + var missionList = Mission.newInstance() + .setId(subMissionId) + .setStatus(missionStatus); + + var missionSync = MissionSync.newInstance() + .addMissionList(missionList) + .addMainMissionId(mainMissionId); + + var data = PlayerSyncScNotify.newInstance() + .setMissionSync(missionSync); + + LunarCore.getLogger().warn("PacketPlayerSyncScNotify main and sub {}",data.toString()); + + this.setData(data); + } + + + public PacketPlayerSyncScNotify(List next, MissionStatus missionStatus, int progess) { + this(); + + var missionSync = MissionSync.newInstance(); + + for (int subMissionId : next) { + + var i = Mission.newInstance() + .setId(subMissionId) + .setStatus(missionStatus); + + if(progess != 0){ + i.setProgress(progess); + } + + missionSync.addMissionList(i); + } + + var data = PlayerSyncScNotify.newInstance().setMissionSync(missionSync); + + LunarCore.getLogger().warn("PacketPlayerSyncScNotify next and status {}",data.toString()); + + this.setData(data); + } + + public PacketPlayerSyncScNotify(int mainMissionId, int[] subMissionIds, MissionStatus missionStatus) { + this(); + + var missionSync = MissionSync.newInstance(); + + for (int subMissionId : subMissionIds) { + missionSync.addMissionList( + Mission.newInstance() + .setId(subMissionId) + .setStatus(missionStatus) + ); + } + + var data = PlayerSyncScNotify.newInstance() + .setMissionSync(missionSync); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketQueryProductInfoScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketQueryProductInfoScRsp.java new file mode 100644 index 0000000..19406af --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketQueryProductInfoScRsp.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.QueryProductInfoScRspOuterClass.QueryProductInfoScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketQueryProductInfoScRsp extends BasePacket { + + public PacketQueryProductInfoScRsp() { + super(CmdId.QueryProductInfoScRsp); + + QueryProductInfoScRsp data = QueryProductInfoScRsp.newInstance() + .setGiftCoinCurVersion(1) + .setGiftCoinBoughtHistoryVersion(1) + .setMonthCardOutdateTime(1999999999); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartCocoonStageScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartCocoonStageScRsp.java new file mode 100644 index 0000000..bf3dbf3 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartCocoonStageScRsp.java @@ -0,0 +1,26 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.proto.QuickStartCocoonStageScRspOuterClass.QuickStartCocoonStageScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketQuickStartCocoonStageScRsp extends BasePacket { + + public PacketQuickStartCocoonStageScRsp(Battle battle) { + super(CmdId.QuickStartCocoonStageScRsp); + + var data = QuickStartCocoonStageScRsp.newInstance(); + + if (battle != null) { + data.setBattleInfo(battle.toProto()) + .setCocoonId(battle.getMappingInfoId()) + .setWave(battle.getCocoonWave()) + .setWaveCount(battle.getCocoonWave()); + } else { + data.setRetcode(1); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartFarmElementScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartFarmElementScRsp.java new file mode 100644 index 0000000..066484f --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketQuickStartFarmElementScRsp.java @@ -0,0 +1,24 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.battle.Battle; +import emu.lunarcore.proto.QuickStartFarmElementScRspOuterClass.QuickStartFarmElementScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketQuickStartFarmElementScRsp extends BasePacket { + + public PacketQuickStartFarmElementScRsp(Battle battle) { + super(CmdId.QuickStartFarmElementScRsp); + + var data = QuickStartFarmElementScRsp.newInstance(); + + if (battle != null) { + data.setBattleInfo(battle.toProto()) + .setFarmElementId(battle.getMappingInfoId()); + } else { + data.setRetcode(1); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketReEnterLastElementStageScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketReEnterLastElementStageScRsp.java index 33b518d..999f542 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketReEnterLastElementStageScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketReEnterLastElementStageScRsp.java @@ -9,20 +9,20 @@ public class PacketReEnterLastElementStageScRsp extends BasePacket { public PacketReEnterLastElementStageScRsp() { super(CmdId.ReEnterLastElementStageScRsp); - + var data = ReEnterLastElementStageScRsp.newInstance() .setRetcode(1); - + this.setData(data); } - + public PacketReEnterLastElementStageScRsp(Battle battle) { super(CmdId.ReEnterLastElementStageScRsp); - + var data = ReEnterLastElementStageScRsp.newInstance() .setStageId(battle.getStage().getId()) .setBattleInfo(battle.toProto()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRecallPetScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRecallPetScRsp.java index f8a9063..fc47224 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRecallPetScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRecallPetScRsp.java @@ -8,10 +8,10 @@ public class PacketRecallPetScRsp extends BasePacket { public PacketRecallPetScRsp() { super(CmdId.RecallPetScRsp); - + var data = RecallPetScRsp.newInstance() .setCurPetId(0); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScNotify.java index bc24dc7..8e33f93 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScNotify.java @@ -9,15 +9,15 @@ public class PacketRefreshTriggerByClientScNotify extends BasePacket { public PacketRefreshTriggerByClientScNotify(int triggerEntityId, String name, RepeatedInt targetIds) { super(CmdId.RefreshTriggerByClientScNotify); - + var data = RefreshTriggerByClientScNotify.newInstance() .setTriggerName(name) .setTriggerEntityId(triggerEntityId); - + for (int id : targetIds) { data.addTriggerTargetIdList(id); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScRsp.java index 394dfbf..f8b4040 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRefreshTriggerByClientScRsp.java @@ -9,12 +9,12 @@ public class PacketRefreshTriggerByClientScRsp extends BasePacket { public PacketRefreshTriggerByClientScRsp(RefreshTriggerByClientCsReq req) { super(CmdId.RefreshTriggerByClientScRsp); - + var data = RefreshTriggerByClientScRsp.newInstance() .setTriggerEntityId(req.getTriggerEntityId()) .setTriggerName(req.getTriggerName()) .setRefreshTrigger(true); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRelicRecommendScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRelicRecommendScRsp.java deleted file mode 100644 index 4ea90c4..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRelicRecommendScRsp.java +++ /dev/null @@ -1,17 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.RelicRecommendScRspOuterClass.RelicRecommendScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketRelicRecommendScRsp extends BasePacket { - - public PacketRelicRecommendScRsp(int avatarId) { - super(CmdId.RelicRecommendScRsp); - - var data = RelicRecommendScRsp.newInstance() - .setAvatarId(avatarId); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPinRelicScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPinRelicScRsp.java new file mode 100644 index 0000000..a74ace1 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPinRelicScRsp.java @@ -0,0 +1,18 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.RelicSmartWearGetPinRelicScRspOuterClass.RelicSmartWearGetPinRelicScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketRelicSmartWearGetPinRelicScRsp extends BasePacket { + + public PacketRelicSmartWearGetPinRelicScRsp(int avatarId) { + super(CmdId.RelicSmartWearGetPinRelicScRsp); + + var data = RelicSmartWearGetPinRelicScRsp.newInstance() + .setAvatarId(avatarId); + + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPlanScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPlanScRsp.java new file mode 100644 index 0000000..57193f0 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRelicSmartWearGetPlanScRsp.java @@ -0,0 +1,18 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.RelicSmartWearGetPlanScRspOuterClass.RelicSmartWearGetPlanScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketRelicSmartWearGetPlanScRsp extends BasePacket { + + public PacketRelicSmartWearGetPlanScRsp(int avatarId) { + super(CmdId.RelicSmartWearGetPlanScRsp); + + var data = RelicSmartWearGetPlanScRsp.newInstance(); + + data.setAvatarId(avatarId); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketReserveStaminaExchangeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketReserveStaminaExchangeScRsp.java index e596ddb..3e2e429 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketReserveStaminaExchangeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketReserveStaminaExchangeScRsp.java @@ -8,15 +8,15 @@ public class PacketReserveStaminaExchangeScRsp extends BasePacket { public PacketReserveStaminaExchangeScRsp(int amount) { super(CmdId.ReserveStaminaExchangeScRsp); - + var data = ReserveStaminaExchangeScRsp.newInstance(); - + if (amount > 0) { data.setNum(amount); } else { data.setRetcode(1); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRevcMsgScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRevcMsgScNotify.java index fad61e5..34f82f6 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRevcMsgScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRevcMsgScNotify.java @@ -2,7 +2,6 @@ package emu.lunarcore.server.packet.send; import emu.lunarcore.game.chat.ChatMessage; import emu.lunarcore.proto.ChatTypeOuterClass.ChatType; -import emu.lunarcore.proto.MsgTypeOuterClass.MsgType; import emu.lunarcore.proto.RevcMsgScNotifyOuterClass.RevcMsgScNotify; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; @@ -13,18 +12,9 @@ public class PacketRevcMsgScNotify extends BasePacket { super(CmdId.RevcMsgScNotify); var data = RevcMsgScNotify.newInstance() + .setToUid(message.getToUid()) .setChatType(ChatType.CHAT_TYPE_PRIVATE) - .setFromUid(message.getFromUid()) - .setToUid(message.getToUid()); - - MsgType msgType = message.getType(); - data.setMsgType(msgType); - - if (msgType == MsgType.MSG_TYPE_CUSTOM_TEXT) { - data.setText(message.getText()); - } else { - data.setEmote(message.getEmote()); - } + .setMsg(message.toProto()); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketRotateMapScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketRotateMapScRsp.java index c34db49..4dd070d 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketRotateMapScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketRotateMapScRsp.java @@ -9,10 +9,10 @@ public class PacketRotateMapScRsp extends BasePacket { public PacketRotateMapScRsp(MotionInfo motion) { super(CmdId.RotateMapScRsp); - + var data = RotateMapScRsp.newInstance() - .setMotion(motion); - + .setMotion(motion); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillCostMpScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillCostMpScRsp.java index 1eeb09b..9e5935a 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillCostMpScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillCostMpScRsp.java @@ -8,9 +8,9 @@ public class PacketSceneCastSkillCostMpScRsp extends BasePacket { public PacketSceneCastSkillCostMpScRsp(int attackedGroupId) { super(CmdId.SceneCastSkillCostMpScRsp); - + var data = SceneCastSkillCostMpScRsp.newInstance() - .setAttackedGroupId(attackedGroupId); + .setAttackedGroupId(attackedGroupId); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillMpUpdateScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillMpUpdateScNotify.java index f3af3e7..2d42013 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillMpUpdateScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillMpUpdateScNotify.java @@ -8,11 +8,11 @@ public class PacketSceneCastSkillMpUpdateScNotify extends BasePacket { public PacketSceneCastSkillMpUpdateScNotify(int attackedGroupId, int mp) { super(CmdId.SceneCastSkillMpUpdateScNotify); - + var data = SceneCastSkillMpUpdateScNotify.newInstance() .setAttackedGroupId(attackedGroupId) .setMp(mp); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillScRsp.java index e707dac..6f20cd4 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneCastSkillScRsp.java @@ -18,7 +18,7 @@ public class PacketSceneCastSkillScRsp extends BasePacket { this.setData(data); } - + /** * No battle was started, but we still want to send the attacked group id to the client * @param attackedGroupId diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEnterStageScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEnterStageScRsp.java index b177a85..64acd0c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEnterStageScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEnterStageScRsp.java @@ -6,12 +6,18 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketSceneEnterStageScRsp extends BasePacket { + public PacketSceneEnterStageScRsp(Battle battle) { super(CmdId.SceneEnterStageScRsp); - - var proto = SceneEnterStageScRsp.newInstance() - .setBattleInfo(battle.toProto()); - + + var proto = SceneEnterStageScRsp.newInstance(); + + if (battle != null) { + proto.setBattleInfo(battle.toProto()); + } else { + proto.setRetcode(1); + } + this.setData(proto); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityMoveScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityMoveScNotify.java index 554a751..2f0abf5 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityMoveScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityMoveScNotify.java @@ -10,12 +10,12 @@ public class PacketSceneEntityMoveScNotify extends BasePacket { public PacketSceneEntityMoveScNotify(Player player) { super(CmdId.SceneEntityMoveScNotify); - + var data = SceneEntityMoveScNotify.newInstance() .setEntryId(player.getEntryId()) .setMotion(MotionInfo.newInstance().setPos(player.getPos().toProto()).setRot(player.getRot().toProto())); - + this.setData(data); } - + } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityTeleportScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityTeleportScRsp.java new file mode 100644 index 0000000..d18601b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneEntityTeleportScRsp.java @@ -0,0 +1,19 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.EntityMotionOuterClass.EntityMotion; +import emu.lunarcore.proto.SceneEntityTeleportScRspOuterClass.SceneEntityTeleportScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSceneEntityTeleportScRsp extends BasePacket { + + public PacketSceneEntityTeleportScRsp(EntityMotion motion) { + super(CmdId.SceneEntityTeleportScRsp); + + var data = SceneEntityTeleportScRsp.newInstance(); + + data.setEntityMotion(motion); + + this.setData(data); + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java index a4756b2..a03b8a3 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSceneGroupRefreshScNotify.java @@ -2,7 +2,9 @@ package emu.lunarcore.server.packet.send; import java.util.Collection; +import emu.lunarcore.game.scene.Scene; import emu.lunarcore.game.scene.entity.GameEntity; +import emu.lunarcore.proto.GroupStateInfoOuterClass.GroupStateInfo; import emu.lunarcore.proto.SceneEntityRefreshInfoOuterClass.SceneEntityRefreshInfo; import emu.lunarcore.proto.SceneGroupRefreshInfoOuterClass.SceneGroupRefreshInfo; import emu.lunarcore.proto.SceneGroupRefreshScNotifyOuterClass.SceneGroupRefreshScNotify; @@ -12,11 +14,11 @@ import emu.lunarcore.server.packet.CmdId; public class PacketSceneGroupRefreshScNotify extends BasePacket { - public PacketSceneGroupRefreshScNotify(GameEntity toAdd, GameEntity toRemove) { + public PacketSceneGroupRefreshScNotify(Scene scene, GameEntity toAdd, GameEntity toRemove) { super(CmdId.SceneGroupRefreshScNotify); var group = SceneGroupRefreshInfo.newInstance() - .setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED); + .setGroupRefreshTypeValue(3); if (toAdd != null) { group.setGroupId(toAdd.getGroupId()); @@ -27,23 +29,24 @@ public class PacketSceneGroupRefreshScNotify extends BasePacket { } var data = SceneGroupRefreshScNotify.newInstance() + .setFloorId(scene.getFloorId()) .addGroupRefreshInfo(group); this.setData(data); } - public PacketSceneGroupRefreshScNotify(Collection toAdd, Collection toRemove) { + public PacketSceneGroupRefreshScNotify(Scene scene, Collection toAdd, Collection toRemove) { super(CmdId.SceneGroupRefreshScNotify); var group = SceneGroupRefreshInfo.newInstance() - .setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED); + .setGroupRefreshTypeValue(3); if (toAdd != null) { for (var entity : toAdd) { group.addRefreshEntity(SceneEntityRefreshInfo.newInstance().setAddEntity(entity.toSceneEntityProto())); } } - + if (toRemove != null) { for (var entity : toRemove) { group.addRefreshEntity(SceneEntityRefreshInfo.newInstance().setDelEntity(entity.getEntityId())); @@ -51,6 +54,22 @@ public class PacketSceneGroupRefreshScNotify extends BasePacket { } var data = SceneGroupRefreshScNotify.newInstance() + .setFloorId(scene.getFloorId()) + .addGroupRefreshInfo(group); + + this.setData(data); + } + + public PacketSceneGroupRefreshScNotify(Scene scene, GroupStateInfo info) { + super(CmdId.SceneGroupRefreshScNotify); + + var group = SceneGroupRefreshInfo.newInstance() + .setGroupId(info.getGroupId()) + .setState(info.getGroupState()) + .setGroupRefreshType(SceneGroupRefreshType.SCENE_GROUP_REFRESH_TYPE_LOADED); + + var data = SceneGroupRefreshScNotify.newInstance() + .setFloorId(scene.getFloorId()) .addGroupRefreshInfo(group); this.setData(data); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketScenePlaneEventScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketScenePlaneEventScNotify.java index 4c6f0b1..d5e478a 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketScenePlaneEventScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketScenePlaneEventScNotify.java @@ -8,26 +8,26 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketScenePlaneEventScNotify extends BasePacket { - + public PacketScenePlaneEventScNotify(GameItem item) { super(CmdId.ScenePlaneEventScNotify); - + var data = ScenePlaneEventScNotify.newInstance(); - + if (item != null) { data.getMutableGetItemList().addItemList(item.toProto()); } else { data.getMutableGetItemList(); } - + this.setData(data); } public PacketScenePlaneEventScNotify(Collection items) { super(CmdId.ScenePlaneEventScNotify); - + var data = ScenePlaneEventScNotify.newInstance(); - + if (items != null && items.size() > 0) { for (var item : items) { data.getMutableGetItemList().addItemList(item.toProto()); @@ -35,7 +35,7 @@ public class PacketScenePlaneEventScNotify extends BasePacket { } else { data.getMutableGetItemList(); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSearchPlayerScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSearchPlayerScRsp.java index dd7ae92..aa8ecd6 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSearchPlayerScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSearchPlayerScRsp.java @@ -11,9 +11,9 @@ public class PacketSearchPlayerScRsp extends BasePacket { public PacketSearchPlayerScRsp(Collection players) { super(CmdId.SearchPlayerScRsp); - + var data = SearchPlayerScRsp.newInstance(); - + if (players != null && players.size() > 0) { for (Player player : players) { data.addSearchResultList(player.toSimpleInfo()); @@ -21,7 +21,7 @@ public class PacketSearchPlayerScRsp extends BasePacket { } else { data.setRetcode(3612); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectChatBubbleScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectChatBubbleScRsp.java index a10efde..9d4d8e8 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectChatBubbleScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectChatBubbleScRsp.java @@ -5,13 +5,13 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketSelectChatBubbleScRsp extends BasePacket { - + public PacketSelectChatBubbleScRsp() { super(CmdId.SelectChatBubbleScRsp); var data = SelectChatBubbleScRsp.newInstance() - .setRetcode(1); - + .setRetcode(1); + this.setData(data); } @@ -19,8 +19,8 @@ public class PacketSelectChatBubbleScRsp extends BasePacket { super(CmdId.SelectChatBubbleScRsp); var data = SelectChatBubbleScRsp.newInstance() - .setCurChatBubble(bubbleId); - + .setCurChatBubble(bubbleId); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectInclinationTextScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectInclinationTextScRsp.java new file mode 100644 index 0000000..90cb324 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectInclinationTextScRsp.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.SelectInclinationTextScRspOuterClass.SelectInclinationTextScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSelectInclinationTextScRsp extends BasePacket { + + public PacketSelectInclinationTextScRsp(int id) { + super(CmdId.SelectInclinationTextScRsp); + + var data = SelectInclinationTextScRsp.newInstance() + .setInclinationTextId(id); + + this.setData(data); + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPamSkinScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPamSkinScRsp.java new file mode 100644 index 0000000..061a760 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPamSkinScRsp.java @@ -0,0 +1,22 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.player.Player; +import emu.lunarcore.proto.SelectPamSkinScRspOuterClass.SelectPamSkinScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSelectPamSkinScRsp extends BasePacket { + + public PacketSelectPamSkinScRsp(int pamSkinId, Player player) { + super(CmdId.SelectPamSkinScRsp); + + player.setCurrentPamSkinId(pamSkinId); + + var data = SelectPamSkinScRsp.newInstance() + // both need to be the same, idk why + .setSelectPamSkinId(player.getCurrentPamSkinId()) + .setCurrentPamSkinId(player.getCurrentPamSkinId()); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPhoneThemeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPhoneThemeScRsp.java index 0c93ae7..be058b3 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPhoneThemeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectPhoneThemeScRsp.java @@ -5,13 +5,13 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketSelectPhoneThemeScRsp extends BasePacket { - + public PacketSelectPhoneThemeScRsp() { super(CmdId.SelectPhoneThemeScRsp); var data = SelectPhoneThemeScRsp.newInstance() - .setRetcode(1); - + .setRetcode(1); + this.setData(data); } @@ -19,8 +19,8 @@ public class PacketSelectPhoneThemeScRsp extends BasePacket { super(CmdId.SelectPhoneThemeScRsp); var data = SelectPhoneThemeScRsp.newInstance() - .setCurPhoneTheme(themeId); - + .setCurPhoneTheme(themeId); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java deleted file mode 100644 index 2a1e8ed..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueCommonDialogueOptionScRsp.java +++ /dev/null @@ -1,25 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.event.RogueEventInstance; -import emu.lunarcore.proto.SelectRogueCommonDialogueOptionScRspOuterClass.SelectRogueCommonDialogueOptionScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSelectRogueCommonDialogueOptionScRsp extends BasePacket { - - public PacketSelectRogueCommonDialogueOptionScRsp(RogueEventInstance instance) { - super(CmdId.SelectRogueCommonDialogueOptionScRsp); - - var data = SelectRogueCommonDialogueOptionScRsp.newInstance() - .setDialogueData(instance.toProto()) - .setOptionId(instance.SelectedOptionId) - .setEventUniqueId(instance.EventUniqueId) - .setEventHasEffect(true); // TODO: improve it (if any option is selected) - - for (var eVi : instance.EffectEventId) { - data.addEffectEventIdList(eVi); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java deleted file mode 100644 index 6c9974c..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSelectRogueMiracleScRsp.java +++ /dev/null @@ -1,24 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueMiracleData; -import emu.lunarcore.game.rogue.RogueMiracleSelectMenu; -import emu.lunarcore.proto.SelectRogueMiracleScRspOuterClass.SelectRogueMiracleScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSelectRogueMiracleScRsp extends BasePacket { - - public PacketSelectRogueMiracleScRsp(RogueMiracleData miracle, RogueMiracleSelectMenu miracleSelect) { - super(CmdId.NONE); // TODO update - - var data = SelectRogueMiracleScRsp.newInstance(); - - if (miracleSelect != null) { - data.setMiracleSelectInfo(miracleSelect.toProto()); - } else { - data.getMutableMiracleSelectInfo(); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetAssistAvatarScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetAssistAvatarScRsp.java index daea12a..495fb88 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetAssistAvatarScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetAssistAvatarScRsp.java @@ -9,16 +9,16 @@ public class PacketSetAssistAvatarScRsp extends BasePacket { public PacketSetAssistAvatarScRsp(Player player) { super(CmdId.SetAssistAvatarScRsp); - + var data = SetAssistAvatarScRsp.newInstance(); - + for (var objectId : player.getAssistAvatars()) { var avatar = player.getAvatarById(objectId); if (avatar == null) continue; - + data.addAvatarIdList(avatar.getAvatarId()); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarEnhancedIdScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarEnhancedIdScRsp.java new file mode 100644 index 0000000..9dfe180 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarEnhancedIdScRsp.java @@ -0,0 +1,27 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.avatar.GameAvatar; +import emu.lunarcore.proto.SetAvatarEnhancedIdScRspOuterClass.SetAvatarEnhancedIdScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSetAvatarEnhancedIdScRsp extends BasePacket { + + public PacketSetAvatarEnhancedIdScRsp() { + super(CmdId.SetAvatarEnhancedIdScRsp); + + var data = SetAvatarEnhancedIdScRsp.newInstance() + .setRetcode(1); + + this.setData(data); + } + + public PacketSetAvatarEnhancedIdScRsp(GameAvatar avatar) { + super(CmdId.SetAvatarEnhancedIdScRsp); + + var data = SetAvatarEnhancedIdScRsp.newInstance() + .setEnhanceId(avatar.getEnhanceId()); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarPathScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarPathScRsp.java index 543b914..2471bb3 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarPathScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetAvatarPathScRsp.java @@ -8,15 +8,15 @@ public class PacketSetAvatarPathScRsp extends BasePacket { public PacketSetAvatarPathScRsp(int pathId) { super(CmdId.SetAvatarPathScRsp); - + var data = SetAvatarPathScRsp.newInstance(); - + if (pathId != 0) { data.setAvatarIdValue(pathId); } else { data.setRetcode(1); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetClientPausedScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetClientPausedScRsp.java index 40e1c92..080b7d3 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetClientPausedScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetClientPausedScRsp.java @@ -9,10 +9,10 @@ public class PacketSetClientPausedScRsp extends BasePacket { public PacketSetClientPausedScRsp(Player player) { super(CmdId.SetClientPausedScRsp); - + var data = SetClientPausedScRsp.newInstance() .setPaused(player.isPaused()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetDisplayAvatarScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetDisplayAvatarScRsp.java index c769855..6389215 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetDisplayAvatarScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetDisplayAvatarScRsp.java @@ -10,23 +10,23 @@ public class PacketSetDisplayAvatarScRsp extends BasePacket { public PacketSetDisplayAvatarScRsp(Player player) { super(CmdId.SetDisplayAvatarScRsp); - + var data = SetDisplayAvatarScRsp.newInstance(); - + for (int i = 0; i < player.getDisplayAvatars().size(); i++) { var objectId = player.getDisplayAvatars().get(i); if (objectId == null) continue; - + var avatar = player.getAvatarById(objectId); if (avatar == null) continue; - + var info = DisplayAvatar.newInstance() .setAvatarId(avatar.getAvatarId()) .setPos(i); - + data.addDisplayAvatarList(info); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetGameplayBirthdayScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetGameplayBirthdayScRsp.java index 1c721c4..23de819 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetGameplayBirthdayScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetGameplayBirthdayScRsp.java @@ -11,16 +11,16 @@ public class PacketSetGameplayBirthdayScRsp extends BasePacket { var data = SetGameplayBirthdayScRsp.newInstance() .setRetcode(1); - + this.setData(data); } - + public PacketSetGameplayBirthdayScRsp(int birthday) { super(CmdId.SetGameplayBirthdayScRsp); var data = SetGameplayBirthdayScRsp.newInstance() .setBirthday(birthday); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetHeadIconScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetHeadIconScRsp.java index c34e954..e6f63e5 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetHeadIconScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetHeadIconScRsp.java @@ -8,19 +8,19 @@ public class PacketSetHeadIconScRsp extends BasePacket { public PacketSetHeadIconScRsp() { super(CmdId.SetHeadIconScRsp); - + var data = SetHeadIconScRsp.newInstance() .setRetcode(1); - + this.setData(data); } - + public PacketSetHeadIconScRsp(int headIconId) { super(CmdId.SetHeadIconScRsp); - + var data = SetHeadIconScRsp.newInstance() .setCurrentHeadIconId(headIconId); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetSignatureScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetSignatureScRsp.java index 8269676..0df5ab4 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSetSignatureScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetSignatureScRsp.java @@ -9,10 +9,10 @@ public class PacketSetSignatureScRsp extends BasePacket { public PacketSetSignatureScRsp(Player player) { super(CmdId.SetSignatureScRsp); - + var data = SetSignatureScRsp.newInstance() .setSignature(player.getSignature()); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSetTrainWorldIdScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSetTrainWorldIdScRsp.java new file mode 100644 index 0000000..2949c78 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSetTrainWorldIdScRsp.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.SetTrainWorldIdScRspOuterClass.SetTrainWorldIdScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketSetTrainWorldIdScRsp extends BasePacket { + + public PacketSetTrainWorldIdScRsp(int trainWorldId) { + super(CmdId.SetTrainWorldIdScRsp); + + var data = SetTrainWorldIdScRsp.newInstance() + .setTrainWorldId(trainWorldId); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java index d3722b0..8cf2a6c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStaminaInfoScNotify.java @@ -9,12 +9,12 @@ public class PacketStaminaInfoScNotify extends BasePacket { public PacketStaminaInfoScNotify(Player player) { super(CmdId.StaminaInfoScNotify); - + var data = StaminaInfoScNotify.newInstance() .setNextRecoverTime(player.getNextStaminaRecover() / 1000) .setStamina(player.getStamina()) .setReserveStamina((int) Math.floor(player.getStaminaReserve())); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStartChallengeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStartChallengeScRsp.java index 097d004..58e240c 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketStartChallengeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStartChallengeScRsp.java @@ -1,5 +1,6 @@ package emu.lunarcore.server.packet.send; +import emu.lunarcore.game.challenge.ChallengeInstance; import emu.lunarcore.game.challenge.ChallengeType; import emu.lunarcore.game.player.Player; import emu.lunarcore.proto.ExtraLineupTypeOuterClass.ExtraLineupType; @@ -10,37 +11,37 @@ import emu.lunarcore.server.packet.Retcode; import us.hebi.quickbuf.RepeatedInt; public class PacketStartChallengeScRsp extends BasePacket { - + public PacketStartChallengeScRsp(Retcode retcode) { super(CmdId.StartChallengeScRsp); - + var data = StartChallengeScRsp.newInstance() .setRetcode(retcode.getVal()); - + this.setData(data); } public PacketStartChallengeScRsp(Player player, int challengeId, RepeatedInt lineup1, RepeatedInt lineup2) { super(CmdId.StartChallengeScRsp); - + var data = StartChallengeScRsp.newInstance(); - var challenge = player.getChallengeInstance(); - + var challenge = player.getInstance(ChallengeInstance.class); + if (challenge != null) { data.setScene(player.getScene().toProto()); data.setChallengeInfo(challenge.toProto()); - + // Add challenge lineups data.addLineupList(player.getLineupManager().getExtraLineupByType(ExtraLineupType.LINEUP_CHALLENGE_VALUE).toProto()); - + if (challenge.getExcel().getStageNum() >= 2) { data.addLineupList(player.getLineupManager().getExtraLineupByType(ExtraLineupType.LINEUP_CHALLENGE_2_VALUE).toProto()); } - - // Fix for challenge boss/story instances + + // Fix for challenge boss instances if (challenge.getType() == ChallengeType.BOSS) { var info = data.getMutableExtInfo().getMutableBossInfo(); - + info.getMutableFirstNode(); info.getMutableSecondNode(); } else if (challenge.getType() == ChallengeType.STORY) { @@ -49,7 +50,7 @@ public class PacketStartChallengeScRsp extends BasePacket { } else { data.setRetcode(1); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStartCocoonStageScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStartCocoonStageScRsp.java index 3f78362..7566724 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketStartCocoonStageScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStartCocoonStageScRsp.java @@ -7,23 +7,20 @@ import emu.lunarcore.server.packet.CmdId; public class PacketStartCocoonStageScRsp extends BasePacket { - public PacketStartCocoonStageScRsp() { + public PacketStartCocoonStageScRsp(Battle battle) { super(CmdId.StartCocoonStageScRsp); - - var data = StartCocoonStageScRsp.newInstance() - .setRetcode(1); - - this.setData(data); - } - - public PacketStartCocoonStageScRsp(Battle battle, int cocoonId, int wave) { - super(CmdId.StartCocoonStageScRsp); - - var data = StartCocoonStageScRsp.newInstance() - .setBattleInfo(battle.toProto()) - .setCocoonId(cocoonId) - .setWave(wave); - + + var data = StartCocoonStageScRsp.newInstance(); + + if (battle != null) { + data.setBattleInfo(battle.toProto()) + .setCocoonId(battle.getMappingInfoId()) + .setWave(battle.getCocoonWave()); + } else { + data.setRetcode(1); + } + + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java deleted file mode 100644 index 3c62981..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketStartRogueScRsp.java +++ /dev/null @@ -1,33 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.StartRogueScRspOuterClass.StartRogueScRsp; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketStartRogueScRsp extends BasePacket { - - public PacketStartRogueScRsp() { - this(1); - } - - public PacketStartRogueScRsp(int retcode) { - super(CmdId.StartRogueScRsp); - - var data = StartRogueScRsp.newInstance() - .setRetcode(retcode); - - this.setData(data); - } - - public PacketStartRogueScRsp(Player player) { - super(CmdId.StartRogueScRsp); - - var data = StartRogueScRsp.newInstance() - .setRogueInfo(player.getRogueManager().toProto()) - .setLineup(player.getCurrentLineup().toProto()) - .setScene(player.getScene().toProto()); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketStartTrialActivityScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketStartTrialActivityScRsp.java new file mode 100644 index 0000000..58cd651 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketStartTrialActivityScRsp.java @@ -0,0 +1,23 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.game.trial.TrialInstance; +import emu.lunarcore.proto.StartTrialActivityScRspOuterClass.StartTrialActivityScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketStartTrialActivityScRsp extends BasePacket { + + public PacketStartTrialActivityScRsp(TrialInstance trial) { + super(CmdId.StartTrialActivityScRsp); + + var proto = StartTrialActivityScRsp.newInstance(); + + if (trial != null) { + proto.setStageId(trial.getStageId()); + } else { + proto.setRetcode(1); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSummonPetScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSummonPetScRsp.java index e1efc00..170ce9f 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSummonPetScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSummonPetScRsp.java @@ -5,22 +5,23 @@ import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; public class PacketSummonPetScRsp extends BasePacket { - + public PacketSummonPetScRsp() { super(CmdId.SummonPetScRsp); - + var data = SummonPetScRsp.newInstance() .setRetcode(1); - + this.setData(data); } public PacketSummonPetScRsp(int petId) { super(CmdId.SummonPetScRsp); - + var data = SummonPetScRsp.newInstance() - .setCurPetId(petId); - + .setCurPetId(petId) + .setNewPetId(petId); + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java index 743b499..17263b6 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncApplyFriendScNotify.java @@ -10,10 +10,10 @@ public class PacketSyncApplyFriendScNotify extends BasePacket { public PacketSyncApplyFriendScNotify(Player friend) { super(CmdId.SyncApplyFriendScNotify); - + var data = SyncApplyFriendScNotify.newInstance() .setFriendApplyInfo(FriendApplyInfo.newInstance().setSimpleInfo(friend.toSimpleInfo())); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncDeleteFriendScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncDeleteFriendScNotify.java index 3661240..db0596f 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncDeleteFriendScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncDeleteFriendScNotify.java @@ -8,10 +8,10 @@ public class PacketSyncDeleteFriendScNotify extends BasePacket { public PacketSyncDeleteFriendScNotify(int uid) { super(CmdId.SyncDeleteFriendScNotify); - + var data = SyncDeleteFriendScNotify.newInstance() .setUid(uid); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncEntityBuffChangeListScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncEntityBuffChangeListScNotify.java index 42f72e2..495b7c8 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncEntityBuffChangeListScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncEntityBuffChangeListScNotify.java @@ -10,27 +10,27 @@ public class PacketSyncEntityBuffChangeListScNotify extends BasePacket { public PacketSyncEntityBuffChangeListScNotify(int entityId, SceneBuff buff) { super(CmdId.SyncEntityBuffChangeListScNotify); - + var buffChange = EntityBuffChangeInfo.newInstance().setEntityId(entityId) .setAddBuffInfo(buff.toProto()) .setEntityId(entityId); - + var data = SyncEntityBuffChangeListScNotify.newInstance() .addEntityBuffInfoList(buffChange); - + this.setData(data); } public PacketSyncEntityBuffChangeListScNotify(int entityId, int removeBuffId) { super(CmdId.SyncEntityBuffChangeListScNotify); - + var buffChange = EntityBuffChangeInfo.newInstance().setEntityId(entityId) .setRemoveBuffId(removeBuffId) .setEntityId(entityId); - + var data = SyncEntityBuffChangeListScNotify.newInstance() .addEntityBuffInfoList(buffChange); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncHandleFriendScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncHandleFriendScNotify.java index ab93be9..ce91781 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncHandleFriendScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncHandleFriendScNotify.java @@ -10,15 +10,15 @@ public class PacketSyncHandleFriendScNotify extends BasePacket { public PacketSyncHandleFriendScNotify(Player friend, boolean result) { super(CmdId.SyncHandleFriendScNotify); - + var data = SyncHandleFriendScNotify.newInstance() .setUid(friend.getUid()) .setHandleResult(result); - + if (result) { data.setHandleFriendInfo(FriendListInfo.newInstance().setSimpleInfo(friend.toSimpleInfo())); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java deleted file mode 100644 index 06c5c2b..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonActionResultScNotify.java +++ /dev/null @@ -1,43 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.RogueBuffDataOuterClass.RogueBuffData; -import emu.lunarcore.proto.RogueMiracleDataOuterClass.RogueMiracleData; -import emu.lunarcore.proto.RogueActionResultDataOuterClass.RogueActionResultData; -import emu.lunarcore.proto.RogueActionResultOuterClass.RogueActionResult; -import emu.lunarcore.proto.RogueBuffSourceOuterClass.RogueBuffSource; -import emu.lunarcore.proto.RogueVirtualItemDataOuterClass.RogueVirtualItemData; -import emu.lunarcore.proto.SyncRogueCommonActionResultScNotifyOuterClass.SyncRogueCommonActionResultScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueCommonActionResultScNotify extends BasePacket { - - public PacketSyncRogueCommonActionResultScNotify(RogueActionResult action) { - super(CmdId.SyncRogueCommonActionResultScNotify); - - var proto = SyncRogueCommonActionResultScNotify.newInstance() - .setRogueVersionId(101); - - proto.addActionResultList(action); - - this.setData(proto); - } - - public PacketSyncRogueCommonActionResultScNotify(RogueBuffSource source, RogueActionResultData data) { - this(RogueActionResult.newInstance() - .setSource(source) - .setRogueAction(data)); - } - - public PacketSyncRogueCommonActionResultScNotify(RogueBuffSource source, RogueMiracleData miracle) { - this(source, RogueActionResultData.newInstance().setAddMiracleList(miracle)); - } - - public PacketSyncRogueCommonActionResultScNotify(RogueBuffSource source, RogueBuffData buff) { - this(source, RogueActionResultData.newInstance().setAddBuffList(buff)); - } - - public PacketSyncRogueCommonActionResultScNotify(RogueBuffSource source, int addMoneyNum) { - this(source, RogueActionResultData.newInstance().setAddItemList(RogueVirtualItemData.newInstance().setNum(addMoneyNum))); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java deleted file mode 100644 index 9b00c56..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueDataScNotify.java +++ /dev/null @@ -1,17 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.event.RogueEventInstance; -import emu.lunarcore.proto.SyncRogueCommonDialogueDataScNotifyOuterClass.SyncRogueCommonDialogueDataScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueCommonDialogueDataScNotify extends BasePacket { - public PacketSyncRogueCommonDialogueDataScNotify(RogueEventInstance event) { - super(CmdId.SyncRogueCommonDialogueDataScNotify); - - var proto = SyncRogueCommonDialogueDataScNotify.newInstance() - .addDialogueDataList(event.toProto()); - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java deleted file mode 100644 index dcd2954..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonDialogueOptionFinishScNotify.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.event.RogueEventInstance; -import emu.lunarcore.proto.SyncRogueCommonDialogueOptionFinishScNotifyOuterClass.SyncRogueCommonDialogueOptionFinishScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueCommonDialogueOptionFinishScNotify extends BasePacket { - - public PacketSyncRogueCommonDialogueOptionFinishScNotify(RogueEventInstance instance) { - super(CmdId.SelectRogueCommonDialogueOptionScRsp); - - var proto = SyncRogueCommonDialogueOptionFinishScNotify.newInstance() - .setEventUniqueId(instance.EventUniqueId) - .setOptionId(instance.SelectedOptionId) - .setResultOptionInfo(instance.Options.stream().filter(o -> o.OptionId == instance.SelectedOptionId).findFirst().get().ToProto()); - - this.setData(proto); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java deleted file mode 100644 index 21fed8d..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueCommonPendingActionScNotify.java +++ /dev/null @@ -1,49 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.proto.RogueActionOuterClass.RogueAction; -import emu.lunarcore.proto.RogueBonusSelectInfoOuterClass.RogueBonusSelectInfo; -import emu.lunarcore.proto.RogueCommonBuffSelectInfoOuterClass.RogueCommonBuffSelectInfo; -import emu.lunarcore.proto.RogueMiracleSelectInfoOuterClass.RogueMiracleSelectInfo; -import emu.lunarcore.proto.RogueCommonPendingActionOuterClass.RogueCommonPendingAction; -import emu.lunarcore.proto.SyncRogueCommonPendingActionScNotifyOuterClass.SyncRogueCommonPendingActionScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueCommonPendingActionScNotify extends BasePacket { - - public PacketSyncRogueCommonPendingActionScNotify(RogueCommonPendingAction action) { - super(CmdId.SyncRogueCommonPendingActionScNotify); - - var proto = SyncRogueCommonPendingActionScNotify.newInstance() - .setRogueCommonPendingAction(action) - .setRogueVersionId(101); - - this.setData(proto); - } - - public PacketSyncRogueCommonPendingActionScNotify(RogueAction action, int id) { - this(RogueCommonPendingAction.newInstance() - .setUniqueId(id) - .setRogueAction(action)); - } - - public PacketSyncRogueCommonPendingActionScNotify(int id) { - this(RogueAction.newInstance(), id); - } - - public PacketSyncRogueCommonPendingActionScNotify(RogueCommonBuffSelectInfo info, int id) { - this(RogueAction.newInstance().setBuffSelectInfo(info), id); - } - - public PacketSyncRogueCommonPendingActionScNotify(RogueMiracleSelectInfo info, int id) { - this(RogueAction.newInstance().setMiracleSelectInfo(info), id); - } - - public PacketSyncRogueCommonPendingActionScNotify(RogueBonusSelectInfo info, int id) { - this(RogueAction.newInstance().setBonusSelectInfo(info), id); - } - - public RogueCommonPendingAction toProto() { - return ((SyncRogueCommonPendingActionScNotify) this.getData()).getRogueCommonPendingAction(); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueFinishScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueFinishScNotify.java deleted file mode 100644 index d4558dd..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueFinishScNotify.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.SyncRogueFinishScNotifyOuterClass.SyncRogueFinishScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueFinishScNotify extends BasePacket { - - public PacketSyncRogueFinishScNotify(Player player) { - super(CmdId.SyncRogueFinishScNotify); - - var data = SyncRogueFinishScNotify.newInstance(); - - if (player.getRogueInstance() != null) { - data.setFinishInfo(player.getRogueInstance().toFinishInfoProto()); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java deleted file mode 100644 index fb8c470..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueMapRoomScNotify.java +++ /dev/null @@ -1,20 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.rogue.RogueInstance; -import emu.lunarcore.game.rogue.RogueRoomData; -import emu.lunarcore.proto.SyncRogueMapRoomScNotifyOuterClass.SyncRogueMapRoomScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueMapRoomScNotify extends BasePacket { - - public PacketSyncRogueMapRoomScNotify(RogueInstance rogue, RogueRoomData room) { - super(CmdId.SyncRogueMapRoomScNotify); - - var data = SyncRogueMapRoomScNotify.newInstance() - .setMapId(rogue.getExcel().getMapId()) - .setCurRoom(room.toProto()); - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueVirtualItemInfoScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueVirtualItemInfoScNotify.java deleted file mode 100644 index 2cc13b4..0000000 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketSyncRogueVirtualItemInfoScNotify.java +++ /dev/null @@ -1,21 +0,0 @@ -package emu.lunarcore.server.packet.send; - -import emu.lunarcore.game.player.Player; -import emu.lunarcore.proto.SyncRogueVirtualItemInfoScNotifyOuterClass.SyncRogueVirtualItemInfoScNotify; -import emu.lunarcore.server.packet.BasePacket; -import emu.lunarcore.server.packet.CmdId; - -public class PacketSyncRogueVirtualItemInfoScNotify extends BasePacket { - - public PacketSyncRogueVirtualItemInfoScNotify(Player player) { - super(CmdId.SyncRogueVirtualItemInfoScNotify); - - var data = SyncRogueVirtualItemInfoScNotify.newInstance(); - - if (player.getRogueInstance() != null) { - data.setRogueVirtualItemInfo(player.getRogueInstance().toRogueVirtualItemProto()); - } - - this.setData(data); - } -} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketTakeChallengeRewardScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketTakeChallengeRewardScRsp.java index e8a74fa..ccd77f8 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketTakeChallengeRewardScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketTakeChallengeRewardScRsp.java @@ -11,19 +11,19 @@ public class PacketTakeChallengeRewardScRsp extends BasePacket { public PacketTakeChallengeRewardScRsp(int groupId, Collection rewards) { super(CmdId.TakeChallengeRewardScRsp); - + var data = TakeChallengeRewardScRsp.newInstance(); - + if (rewards != null) { data.setGroupId(groupId); - + for (var rewardInfo : rewards) { data.getMutableTakenRewardList().add(rewardInfo); } } else { data.setRetcode(1); - } - + } + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketTakeMailAttachmentScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketTakeMailAttachmentScRsp.java index 91b07a7..6444bed 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketTakeMailAttachmentScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketTakeMailAttachmentScRsp.java @@ -12,19 +12,19 @@ public class PacketTakeMailAttachmentScRsp extends BasePacket { public PacketTakeMailAttachmentScRsp(Collection mailList) { super(CmdId.TakeMailAttachmentScRsp); - + var data = TakeMailAttachmentScRsp.newInstance(); - + for (Mail mail : mailList) { data.addSuccMailIdList(mail.getUniqueId()); - + if (mail.getAttachments() != null) { for (GameItem item : mail.getAttachments()) { data.getMutableAttachment().addItemList(item.toProto()); } } } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketTakePromotionRewardScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketTakePromotionRewardScRsp.java index 22e4a24..9d39d72 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketTakePromotionRewardScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketTakePromotionRewardScRsp.java @@ -13,7 +13,7 @@ public class PacketTakePromotionRewardScRsp extends BasePacket { super(CmdId.TakePromotionRewardScRsp); var data = TakePromotionRewardScRsp.newInstance(); - + if (rewards != null) { for (GameItem item : rewards) { data.getMutableRewardList().addItemList(item.toProto()); @@ -21,7 +21,7 @@ public class PacketTakePromotionRewardScRsp extends BasePacket { } else { data.setRetcode(1); } - + this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java index 4e22e3e..28db491 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketTextJoinQueryScRsp.java @@ -12,16 +12,15 @@ public class PacketTextJoinQueryScRsp extends BasePacket { public PacketTextJoinQueryScRsp(Player player, int[] textJoinIdList) { super(CmdId.TextJoinQueryScRsp); - var data = TextJoinQueryScRsp.newInstance(); for (int joinId : textJoinIdList) { TextJoinInfo joinInfo = TextJoinInfo.newInstance() - .setTextItemId(joinId) - .setTextItemConfigId(GameData.TextJoinItemFromId(joinId)); + .setTextItemId(joinId) + .setTextItemConfigId(GameData.TextJoinItemFromId(joinId)); data.addTextJoinList(joinInfo); } - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarPathScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarPathScRsp.java new file mode 100644 index 0000000..6e5f540 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarPathScRsp.java @@ -0,0 +1,18 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.MultiPathAvatarTypeOuterClass.MultiPathAvatarType; +import emu.lunarcore.proto.UnlockAvatarPathScRspOuterClass.UnlockAvatarPathScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUnlockAvatarPathScRsp extends BasePacket { + + public PacketUnlockAvatarPathScRsp(MultiPathAvatarType avatarId) { + super(CmdId.UnlockAvatarPathScRsp); + + var data = UnlockAvatarPathScRsp.newInstance() + .setAvatarId(avatarId); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarSkinScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarSkinScNotify.java new file mode 100644 index 0000000..303b541 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockAvatarSkinScNotify.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.UnlockAvatarSkinScNotifyOuterClass.UnlockAvatarSkinScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUnlockAvatarSkinScNotify extends BasePacket { + + public PacketUnlockAvatarSkinScNotify(int skinId) { + super(CmdId.UnlockAvatarSkinScNotify); + + var data = UnlockAvatarSkinScNotify.newInstance() + .setAvatarSkinId(skinId); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java index 9030421..c7b86c3 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockBackGroundMusicScRsp.java @@ -1,11 +1,12 @@ package emu.lunarcore.server.packet.send; import java.util.List; + +import emu.lunarcore.data.GameData; import emu.lunarcore.proto.UnlockBackGroundMusicScRspOuterClass.UnlockBackGroundMusicScRsp; import emu.lunarcore.proto.UnlockedMusicOuterClass.UnlockedMusic; import emu.lunarcore.server.packet.BasePacket; import emu.lunarcore.server.packet.CmdId; -import emu.lunarcore.data.GameData; public class PacketUnlockBackGroundMusicScRsp extends BasePacket { @@ -16,11 +17,11 @@ public class PacketUnlockBackGroundMusicScRsp extends BasePacket { for (int unlockId : unlockIds) { UnlockedMusic music = UnlockedMusic.newInstance() - .setGroupId(GameData.getMusicGroupId(unlockId)) - .setId(unlockId); + .setGroupId(GameData.getMusicGroupId(unlockId)) + .setId(unlockId); data.addMusicList(music); } - + this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockChatBubbleScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockChatBubbleScNotify.java index b182849..fe6fa5b 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockChatBubbleScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockChatBubbleScNotify.java @@ -8,10 +8,10 @@ public class PacketUnlockChatBubbleScNotify extends BasePacket { public PacketUnlockChatBubbleScNotify(int id) { super(CmdId.UnlockChatBubbleScNotify); - + var data = UnlockChatBubbleScNotify.newInstance() .setBubbleId(id); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneCaseScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneCaseScNotify.java new file mode 100644 index 0000000..1eddbf9 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneCaseScNotify.java @@ -0,0 +1,17 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.UnlockPhoneCaseScNotifyOuterClass.UnlockPhoneCaseScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUnlockPhoneCaseScNotify extends BasePacket { + + public PacketUnlockPhoneCaseScNotify(int id) { + super(CmdId.UnlockPhoneCaseScNotify); + + var data = UnlockPhoneCaseScNotify.newInstance() + .setPhoneCaseId(id); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneThemeScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneThemeScNotify.java index ed4d550..c39accd 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneThemeScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockPhoneThemeScNotify.java @@ -8,10 +8,10 @@ public class PacketUnlockPhoneThemeScNotify extends BasePacket { public PacketUnlockPhoneThemeScNotify(int id) { super(CmdId.UnlockPhoneThemeScNotify); - + var data = UnlockPhoneThemeScNotify.newInstance() .setThemeId(id); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockSkilltreeScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockSkilltreeScRsp.java index 1281b32..75c62ae 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockSkilltreeScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockSkilltreeScRsp.java @@ -10,6 +10,7 @@ public class PacketUnlockSkilltreeScRsp extends BasePacket { super(CmdId.UnlockSkilltreeScRsp); var data = UnlockSkilltreeScRsp.newInstance() + // .setBaseAvatarId(avatarId) .setPointId(pointId) .setLevel(level); diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockTutorialScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockTutorialScRsp.java new file mode 100644 index 0000000..da54ed0 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUnlockTutorialScRsp.java @@ -0,0 +1,22 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.TutorialOuterClass.Tutorial; +import emu.lunarcore.proto.TutorialStatusOuterClass.TutorialStatus; +import emu.lunarcore.proto.UnlockTutorialScRspOuterClass.UnlockTutorialScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUnlockTutorialScRsp extends BasePacket { + + public PacketUnlockTutorialScRsp(int id) { + super(CmdId.UnlockTutorialScRsp); + + var data = UnlockTutorialScRsp.newInstance() + .setTutorial(Tutorial.newInstance() + .setId(id) + .setStatus(TutorialStatus.TUTORIAL_UNLOCK) + ); + + this.setData(data); + } +} \ No newline at end of file diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateEnergyScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateEnergyScNotify.java index 0e2540f..b348b10 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateEnergyScNotify.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateEnergyScNotify.java @@ -11,11 +11,11 @@ public class PacketUpdateEnergyScNotify extends BasePacket { super(CmdId.UpdateEnergyScNotify); var temp = RotatorEnergyInfo.newInstance() - .setMaxNum(100) - .setCurNum(100); + .setMaxNum(100) + .setCurNum(100); var data = UpdateEnergyScNotify.newInstance() - .setEnergyInfo(temp); + .setEnergyInfo(temp); this.setData(data); } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateFeatureSwitchScNotify.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateFeatureSwitchScNotify.java new file mode 100644 index 0000000..3bc99d7 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateFeatureSwitchScNotify.java @@ -0,0 +1,25 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.FeatureSwitchInfoOuterClass.FeatureSwitchInfo; +import emu.lunarcore.proto.FeatureSwitchParamOuterClass.FeatureSwitchParam; +import emu.lunarcore.proto.FeatureSwitchTypeOuterClass.FeatureSwitchType; +import emu.lunarcore.proto.UpdateFeatureSwitchScNotifyOuterClass.UpdateFeatureSwitchScNotify; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUpdateFeatureSwitchScNotify extends BasePacket { + + public PacketUpdateFeatureSwitchScNotify() { + super(CmdId.UpdateFeatureSwitchScNotify); + + var data = UpdateFeatureSwitchScNotify.newInstance(); + + var switch1 = FeatureSwitchInfo.newInstance() + .setType(FeatureSwitchType.FEATURE_SWITCH_ACTIVITY_SCHEDULE) + .addAllSwitchList(FeatureSwitchParam.newInstance().addSwitchId(550002)); + + data.addSwitchInfoList(switch1); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateGroupPropertyScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateGroupPropertyScRsp.java new file mode 100644 index 0000000..36b5302 --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateGroupPropertyScRsp.java @@ -0,0 +1,20 @@ +package emu.lunarcore.server.packet.send; + +import emu.lunarcore.proto.UpdateGroupPropertyScRspOuterClass.UpdateGroupPropertyScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUpdateGroupPropertyScRsp extends BasePacket { + + public PacketUpdateGroupPropertyScRsp(int floorId, int groupId, String name, int value) { + super(CmdId.UpdateGroupPropertyScRsp); + + var data = UpdateGroupPropertyScRsp.newInstance() + .setFloorId(floorId) + .setGroupId(groupId) + .setPropertyName(name) + .setCurPropertyValue(value); + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateMarkChestScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateMarkChestScRsp.java new file mode 100644 index 0000000..9d5c52b --- /dev/null +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateMarkChestScRsp.java @@ -0,0 +1,25 @@ +package emu.lunarcore.server.packet.send; + +import java.util.List; + +import emu.lunarcore.proto.MarkChestInfoOuterClass.MarkChestInfo; +import emu.lunarcore.proto.UpdateMarkChestScRspOuterClass.UpdateMarkChestScRsp; +import emu.lunarcore.server.packet.BasePacket; +import emu.lunarcore.server.packet.CmdId; + +public class PacketUpdateMarkChestScRsp extends BasePacket { + + public PacketUpdateMarkChestScRsp(int funcId, int markAvatarId, List chestPropDefList) { + super(CmdId.UpdateMarkChestScRsp); + + var data = UpdateMarkChestScRsp.newInstance() + .setFuncId(funcId) + .setMarkAvatarId(markAvatarId); + + for (MarkChestInfo chestPropDef : chestPropDefList) { + data.addChestGroupList(chestPropDef); + } + + this.setData(data); + } +} diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateServerPrefsDataScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateServerPrefsDataScRsp.java index 003cfc3..ae2653e 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateServerPrefsDataScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUpdateServerPrefsDataScRsp.java @@ -8,10 +8,10 @@ public class PacketUpdateServerPrefsDataScRsp extends BasePacket { public PacketUpdateServerPrefsDataScRsp(int id) { super(CmdId.UpdateServerPrefsDataScRsp); - + var data = UpdateServerPrefsDataScRsp.newInstance() .setServerPrefsId(id); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/server/packet/send/PacketUseItemScRsp.java b/src/main/java/emu/lunarcore/server/packet/send/PacketUseItemScRsp.java index ccf6708..c499725 100644 --- a/src/main/java/emu/lunarcore/server/packet/send/PacketUseItemScRsp.java +++ b/src/main/java/emu/lunarcore/server/packet/send/PacketUseItemScRsp.java @@ -12,20 +12,20 @@ public class PacketUseItemScRsp extends BasePacket { public PacketUseItemScRsp(int itemId, int itemCount, List returnItems) { super(CmdId.UseItemScRsp); - + var itemList = ItemList.newInstance(); - + if (returnItems != null && returnItems.size() > 0) { for (var item : returnItems) { itemList.addItemList(item.toProto()); } } - + var data = UseItemScRsp.newInstance() .setUseItemId(itemId) .setUseItemCount(itemCount) .setReturnData(itemList); - + this.setData(data); } } diff --git a/src/main/java/emu/lunarcore/util/Handbook.java b/src/main/java/emu/lunarcore/util/Handbook.java index 321a7da..725ba4f 100644 --- a/src/main/java/emu/lunarcore/util/Handbook.java +++ b/src/main/java/emu/lunarcore/util/Handbook.java @@ -5,8 +5,10 @@ import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.nio.charset.StandardCharsets; -import java.time.LocalDateTime; +import java.time.Instant; +import java.time.ZoneId; import java.time.format.DateTimeFormatter; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -20,32 +22,32 @@ public class Handbook { public static void generate() { // Load text map - Map textMap = null; + Map textMap = new HashMap<>(); List list = null; String language = LunarCore.getConfig().getServerOptions().language; try { - textMap = JsonUtils.loadToMap(LunarCore.getConfig().getResourceDir() + "/TextMap/TextMap" + language + ".json", Long.class, String.class); + var rawMap = JsonUtils.loadToMap(LunarCore.getConfig().getResourceDir() + "/TextMap/TextMap" + language + ".json", String.class, String.class); + + for (var entry : rawMap.entrySet()) { + textMap.put(Long.parseUnsignedLong(entry.getKey()), entry.getValue()); + } } catch (Exception e) { LunarCore.getLogger().error("Error loading text map: " + language, e); return; } - if (textMap == null) { - return; - } - // Save to file String file = "./Lunar Core Handbook.txt"; try (PrintWriter writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8), true)) { // Format date for header DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"); - LocalDateTime now = LocalDateTime.now(); - + var time = Instant.ofEpochMilli(System.currentTimeMillis()).atZone(ZoneId.systemDefault()).format(dtf); + // Header writer.println("# Lunar Core " + GameConstants.VERSION + " Handbook"); - writer.println("# Created " + dtf.format(now)); + writer.println("# Created " + time); // Dump commands writer.println(System.lineSeparator()); diff --git a/src/main/java/emu/lunarcore/util/Location.java b/src/main/java/emu/lunarcore/util/Location.java new file mode 100644 index 0000000..58b3ead --- /dev/null +++ b/src/main/java/emu/lunarcore/util/Location.java @@ -0,0 +1,26 @@ +package emu.lunarcore.util; + +import emu.lunarcore.game.player.Player; +import lombok.Getter; + +@Getter +public class Location { + private int planeId; + private int floorId; + private int entryId; + private Position pos; + private Position rot; + + public Location() { + this.pos = new Position(); + this.rot = new Position(); + } + + public Location(Player player) { + this.planeId = player.getPlaneId(); + this.floorId = player.getFloorId(); + this.entryId = player.getEntryId(); + this.pos = player.getPos().clone(); + this.rot = player.getRot().clone(); + } +} diff --git a/src/main/java/emu/lunarcore/util/Position.java b/src/main/java/emu/lunarcore/util/Position.java index 135b44f..9c601ce 100644 --- a/src/main/java/emu/lunarcore/util/Position.java +++ b/src/main/java/emu/lunarcore/util/Position.java @@ -87,6 +87,15 @@ public class Position { long z = this.getZ() - pos.getZ(); return (x * x) + (z * z); } + + public long getFastDist(Position pos) { + long x = this.getX() - pos.getX(); + long y = this.getY() - pos.getY(); + long z = this.getZ() - pos.getZ(); + return (x * x) + (y * y) + (z * z); + } + + // Serialization public Vector toProto() { return Vector.newInstance().setX(x).setY(y).setZ(z); @@ -109,6 +118,6 @@ public class Position { @Override public String toString() { - return "[ " + this.getX() + " , " + this.getY() + " ]"; + return "(" + this.getX() + ", " + this.getY() + ", " + this.getZ() + ")"; } } diff --git a/src/main/java/emu/lunarcore/util/Utils.java b/src/main/java/emu/lunarcore/util/Utils.java index 5034fe4..d63c18f 100644 --- a/src/main/java/emu/lunarcore/util/Utils.java +++ b/src/main/java/emu/lunarcore/util/Utils.java @@ -193,6 +193,36 @@ public class Utils { return false; } + public static boolean arrayContains(Integer[] array, int value) { + for (Integer element : array) { + if (element != null && element.equals(value)) { + return true; + } + } + return false; + } + + public static boolean arrayContains(List list, int value) { + for (Integer element : list) { + if (element.equals(value)) { + return true; + } + } + return false; + } + + public static int[] convertListToIntArray(List list) { + // Create an int array with the same size as the list + int[] intArray = new int[list.size()]; + + // Iterate over the list and populate the int array + for (int i = 0; i < list.size(); i++) { + intArray[i] = list.get(i); + } + + return intArray; + } + /** * Base64 encodes a given byte array. * @param toEncode An array of bytes.